3 * RST reader: improve parsing of inline interpreted text roles (#4811).
5 + Use a Span with class "title-reference" for the default
7 + Use `B.text` to split up contents into `Space`s, `SoftBreak`s,
8 and `Str`s for `title-reference`.
9 + Use Code with class "interpreted-text" instead of Span and Str for
10 unknown roles. (The RST writer has also been modified to round-trip
12 + Disallow blank lines in interpreted text.
13 + Backslash-escape now works in interpreted text.
14 + Backticks followed by alphanumerics no longer end interpreted text.
15 + Remove support for nested inlines (Francesco Occhipinti).
16 RST does not allow nested emphasis, links, or other inline
17 constructs. This fixes several bugs (#4581, #4561, #4792).
19 * Org reader: fix parsers relying on `parseFromString` (#4784, Albert
20 Krewinkel). Emphasis was not parsed when it followed directly after
21 some block types (e.g., lists).
23 * Markdown reader: Allow unquoted numbers and booleans as YAML mapping
24 keys. Previously in 2.2.2 you could not do
36 With this change, both forms work.
38 * DocBook reader: metadata handling improvements.
39 Now we properly parse title and subtitle elements that are direct
40 children of book and article (as well as children of bookinfo,
41 articleinfo, or info). We also now use the `subtitle` metadata
42 field for subtitles, rather than tacking the subtitle on to the
47 + Allow images to be directly nested within links (#4810, Francesco
49 + Use `titleblock` instead of `title` variable for title block (#4803,
50 Francesco Occhipinti). `titleblock` contains a properly formatted
51 title and subtitle (using top-level headers). `title` and
52 `subtitle` variables are still available and just contain the
53 title and subtitle text. Note that this change will require an
54 update to custom rst templates.
55 + Render Code with class "interpreted-text" as interpreted text role.
57 * MediaWiki writer: Avoid extra blank line in tables with empty cells
58 (#4794). Note that the old output is semantically identical, but the
59 new output looks better.
61 * Lua Utils module: add function `blocks_to_inlines` (#4799, Albert
62 Krewinkel). Exposes a function converting which flattenes a list of
63 blocks into a list of inlines. An example use case would be the
64 conversion of Note elements into other inlines.
66 * RST template: use `titleblock` instead of `title`. Users of
67 custom RST templates will want to update this.
69 * LaTeX template: Moved some beamer code in default.latex template.
70 This change allows beamer themes to change the template and font (as
71 Metropolis does) (#4450).
73 * Better error message on `-t pdf -o out.pdf` (#1155, Mauro Bieg).
75 * Added test case for #4669 to repository.
77 * INSTALL.md: Fix broken link for cabal-install (#4806, ChanHoHo).
81 + Add beamer info for slide backgrounds (#4802, John Muccigrosso).
82 + Clarify when `csquotes` is used in LaTeX writer (#4514).
83 + Add `commonmark` to list of output formats where `raw_tex` has an
89 * Fix regression finding templates in user data directory (#4777).
90 Under version 2.2.1 and prior pandoc found latex templates in the
91 templates directory under the data directory, but this broke in 2.2.2.
93 * Fix for bug in parsing `\input` in `rawLaTeXBlock` and
94 `rawLaTeXInline` (#4781). (This primarily affects the markdown
95 reader, and other readers that accept raw tex.)
96 Starting in 2.2.2, everything after an `\input` (or `\include`)
97 in a markdown file would be parsed as raw LaTeX.
101 + Clarify `gfm` vs `markdown_github` (#4783, Mauro Bieg).
102 * Use `keywords` instead of `tags` in YAML metadata example (#4779).
103 Unlike `tags`, `keywords` is used in some of the writers
104 and default templates.
106 * Add missing `rollingLinks` option to revealjs template (#4778,
111 * Use HsYAML instead of yaml for translations and YAML metadata (#4747).
112 yaml wraps a C library; HsYAML is pure Haskell. Advances #4535.
114 Note: HsYAML implements YAML 1.2, in which the valid true
115 values are `true`, `True`, `TRUE`. This means a change in
116 the semantics of YAML metadata that could affect users:
117 `y`, `yes`, and `on` no longer count as true values.
119 * Fix regression: make `--pdf-engine` work with full paths (#4681, Mauro
122 * CommonMark reader: Handle `ascii_identifiers` extension (#4742,
123 Anders Waldenborg). Non-ascii characters were not stripped from
124 identifiers even if the `ascii_identifiers` extension was
125 enabled (which is is by default for gfm).
127 * TikiWiki reader: Improve list parsing (#4722, Mauro Bieg).
128 Remove trailing Space from list items. Parse lists that have no space
133 + Treat `lilypond` as a verbatim environment (#4725).
134 + Parse figure label into Image id (#4700, Mauro Bieg).
135 + Beamer: Allow "noframenumbering" option (#4696, Raymond Ehlers).
136 + Allow spaces around `\graphicspath` arguments (#4698).
137 + Handle includes without surrounding blanklines (#4553).
138 In addition, `\input` can now be used in an inline context,
139 e.g. to provide part of a paragraph, as it can in LaTeX.
140 + In `rawLaTeXBlock`, handle macros that resolve to a
141 `\begin` or `\end` (#4667).
142 + In `rawLaTeXBlock`, don't expand macros in macro definitions (#4653).
143 Note that this only affected LaTeX in markdown.
144 + Tighten up reading of beamer overlay specifications (#4669).
145 Ideally we'd turn these on only when reading beamer, but currently
146 beamer is not distinguished from latex as an input format.
147 This commit also activates parsing of overlay specifications
148 after commands in general (e.g. `\item`), since they can occur
149 in many contexts in beamer.
150 + Parse more siunitx unit commands (#4296, #4773).
151 + Be more forgiving in key/value option parsing (#4761).
155 + Allow empty code spans, e.g. `` ` ` ``.
156 + Emojis are now wrapped in Spans with class `emoji` and
157 attribute `data-emoji` (Anders Waldenborg, #4743).
158 This allows the writer to handle them in a special way
159 (e.g. using a special font, or just rendering the
162 * Muse reader (Alexander Krotov, except where indicated):
164 + Get rid of non-exhaustive pattern match warning (Mauro Bieg).
165 + Add support for floating images.
166 + Add support for images with specified width.
167 + Parse image URLs without "guard" and "takeExtension".
168 + Split link and image parsing into separate functions.
169 + Parse links starting with "URL:" explicitly instead of trying to strip
170 "URL:" prefix after parsing.
172 * Texinfo writer: Use `@sup` and `@sub` instead of custom macros (#4728,
175 * Markdown writer: Preserve `implicit_figures` with attributes, even if
176 `implicit_attributes` is not set, by rendering in raw HTML (#4677).
178 * Markdown and commonmark/github writers now respect the `emoji`
179 extension. So, `-f markdown+emoji -t markdown+emoji` now leaves
180 `:smile:` as `:smile:` rather than converting it to a smile
183 * Docx writer: Be sensitive to `toc` in YAML metadata (#4645).
185 * ODT/OpenDocument writer: Make internal links work (#4358).
186 This adds proper bookmarks to the headers with non-null IDs.
188 * EPUB writer: Properly escape pagetitle. Previously we weren't
189 escaping `&` and other XML characters in the pagetitle, so a title
190 containing a `&` would be invalid.
192 * AsciiDoc Writer: Eescape square brackets at start of line (#4545,
197 + Don't treat 'example' as a syntax name (#4748).
198 This fixes conversions from org with example blocks.
199 + Support `--number-sections` via the `section-numbering`
200 directive in standalone output.
202 * reveal.js writer and template: reuse mathjax URL
203 provided by the argument to `--mathjax` or the normal pandoc default,
204 rather than a hard-coded one in the template (#4701).
208 + Properly handle footnotes in table captions (#4683).
209 Refactored code from figure captions to use in both places.
210 + In beamer output, fix single digit column percentage (#4690, Mauro
213 * FB2 writer (Alexander Krotov):
215 + Convert Plain to Para in annotation (#2424).
216 + Fix order of items in title-info (#2424).
218 * Custom writer: fix error message on script failure (Albert Krewinkel).
219 Error messages produced by Lua were not displayed by Pandoc.
221 * Text.Pandoc.Emoji now exports `emojiToInline`, which returns a Span
222 inline containing the emoji character and some attributes with metadata
223 (class `emoji`, attribute `data-emoji` with emoji name). (API change,
224 Anders Waldenborg, #4743).
228 + Revert fix for #4484 (only compress images on last run, #4755).
229 This will mean some increase in the time it takes to
230 produce an image-heavy PDF with xelatex, but it will
231 make tables of contents correct, which is more important.
232 + Fix logic error in `runTeXProgram`. We were running the tex program
233 one more time than requested. This should speed up PDF production.
235 * Allow `--template` to take a URL as argument.
237 * Text.Pandoc.Highlighting: Add missing re-export of `breezeDark`
238 highlighting style (#4687, Adrian Sieber, API change).
240 * Clarify macOS install in INSTALL.md (#4661). Make the binary package
241 installer the recommended method, and note that on some older versions of
242 macOS, homebrew installs from source and takes a lot of disk space
247 + Clarify EPUB linked media (#4756, Mauro Bieg)
248 + Update manual for "true" YAML values. Now that we're using HsYAML and
249 YAML 1.2, the valid true values are `true`, `True`, `TRUE`. NOTE!
250 `y`, `yes`, `on` no longer count as true values.
251 + Document `-F` as alias for `--filter` (thanks to Gandalf Saxe).
252 + Update manual on how math is rendered in LaTeX.
253 + Add proxy description (#4131, Mauro Bieg).
254 + Clarify that `--toc` requires `--standalone` (#4703).
255 + Update citation styles link (#4699, wiefling).
257 * In API docs, clarify how `Ext_east_asian_line_breaks` extension works
258 (kaizshang91). Note that it will not take effect when readers/writers
259 are called as libraries (#4674).
261 * Improved translations/fr (#4766, lux-lth).
263 * Removed inadvertently added `.orig` files from repository (#4648).
265 * Remove `network-uri` flag and use 'Network.Socket'.
266 This removes a compiler warning. There is no need for the old
267 `network-uri` flag, since network 2.6 was released in 2014.
269 * Add stack.lts10.yaml, stack.lts11.yaml. use lts-12 in stack.yaml.
271 * Bump upper bounds for dependent packages.
273 * Exclude foundation 0.0.21 for ghc 7.10. Otherwise cabal gets
274 confused because of the way ghc 7.10 is excluded in foundation's
275 cabal file. This can be removed when haskell-foundation/foundation#500
278 * Require cabal-version >= 2.0. This is needed for haddock-library.
283 * Restored and undeprecated gladtex for HTML math (#4607).
285 + Added `GladTeX` constructor to `Text.Pandoc.Options.HTMLMathMethod`
286 [API change, reverts removal in v2.2]
287 + Restored and undeprecated `--gladtex` option, removed in v2.2.
289 * LaTeX reader: Handle `$` in `/text{..}` inside math (#4576).
291 * Org reader: Fix image filename recognition (Albert Krewinkel).
292 Use a function from the filepath library to check whether a string is a
293 valid file name. The custom validity checker that was used before gave
294 wrong results (e.g. for absolute file paths on Windows,
295 kawabata/ox-pandoc#52).
297 * FB2 reader: Replace some errors with warnings (Alexander Krotov).
301 + Strip links from headers when creating TOC (#4340).
302 Otherwise the TOC entries will not link to the sections.
303 + Fix regression with tex math environments in HTML + MathJax (#4639).
305 * Muse writer (Alexander Krotov): Add support for left-align and
306 right-align classes (#4542).
308 * Docx writer: Support underline (#4633).
310 * Text.Pandoc.Parsing: Lookahead for non-whitespace after
311 `singleQuoteStart` and `doubleQuoteStart` (#4637).
313 * `test-pandoc-utils.lua`: more robust testing on both windows
314 and \*nix. Previously the pipe tests were only run if
315 `\bin/false` and `/bin/sed` were present, which they aren't
316 in default MacOS and Windows systems. Fixed by using `tr`
317 and `false`, which should always be in the path on a \*nix
318 system, and `find` and `echo` for Windows.
320 * Text.Pandoc.Shared: add `uriPathToPath`.
321 This adjusts the path from a file: URI in a way that is sensitive
322 to Windows/Linux differences. Thus, on Windows,
323 `/c:/foo` gets interpreted as `c:/foo`, but on Linux,
324 `/c:/foo` gets interpreted as `/c:/foo`. See #4613.
326 * Use `uriPathToPath` with file: URIs (#4613).
328 * Revert piping HTML to pdf-engine (Mauro Bieg, #4413). Use a temp
331 * Text.Pandoc.Class: Catch IO errors when writing media files
332 and issue a warning, rather than an error (Francesco Occhipinti, #4559).
334 * Don't lowercase custom writer filename (Alexander Krotov, #4610).
336 * MANUAL (Mauro Bieg):
338 + Clarify truthiness in template variables (#2281).
339 + Clarify pipe table width calculation (#4520).
341 * ConTeXt template: New Greek fallback typeface (Pablo Rodríguez, #4405).
342 CMU Serif gives better typographic results than the previous
343 Greek fallback DejaVu Serif.
345 * Make HTML template polyglot (#4606, OvidiusCicero), by making
346 `<link rel="stylesheet" href="$css$">` self-closing.
348 * Use texmath 0.11, allowing better translation of non-ASCII
349 characters in math (#4642).
353 * New input format: `fb2` (FictionBook2) (Alexander Krotov).
355 * Make `--ascii` work for all XML formats (ICML, OPML, JATS,...),
356 and for `ms` and `man`.
358 * Remove deprecated `--latexmathml`, `--gladtex`, `--mimetex`, `--jsmath`, `-m`,
359 `--asciimathml` options.
361 * New module Text.Pandoc.Readers.FB2, exporting readFB2 (Alexander
366 + Allow empty key-value attributes, like `title=""` (#2944).
367 + Handle table w/o following blank line in fenced div (#4560).
368 + Remove "fallback" for `doubleQuote` parser. Previously the
369 parser tried to be efficient -- if no end double quote was found,
370 it would just return the contents. But this could backfire in a
371 case `**this should "be bold**`, since the fallback would return
372 the content `"be bold**` and the closing boldface delimiter
373 would never be encountered.
374 + Improve computation of the relative width of the last column in a
375 multiline table, so we can round-trip tables without constantly
376 shrinking the last column.
380 + Fix images with space in file path (#4344).
384 + Properly resolve section numbers with `\ref` and chapters (#4529).
385 + Parse sloppypar environment (#4517, Marc Schreiber).
386 + Improve handling of raw LaTeX (for markdown etc.) (#4589, #4594).
387 Previously there were some bugs in how macros were handled.
388 + Support `\MakeUppercase`, `\MakeLowercase', `\uppercase`, `\lowercase`,
389 and also `\MakeTextUppercase` and `\MakeTextLowercase` from textcase
394 + Fixed tables with no body rows (#4513).
395 Previously these raised an exception.
399 + Improve table parsing (#4508). This fixes detection of table
400 attributes and also handles `!` characters in cells.
404 + Properly handle title in `section` element (#4526).
405 Previously we just got `section_title` for `section` (though `sect1`,
406 `sect2`, etc. were handled properly).
407 + Read tex math as output by asciidoctor (#4569, Joe Hermaszewski).
411 + Combine adjacent CodeBlocks with the same attributes into
412 a single CodeBlock. This prevents a multiline codeblock in
413 Word from being read as different paragraphs.
417 + Allow < 3 spaces indent under directives (#4579).
418 + Fix anonymous redirects with backticks (#4598).
420 * Muse reader (Alexander Krotov):
422 + Add support for Text::Amuse multiline headings.
423 + Add `<math>` tag support.
424 + Add support for `<biblio>` and `<play>` tags.
425 + Allow links to have empty descriptions.
426 + Require block `<literal>` tags to be on separate lines.
427 + Allow `-` in anchors.
428 + Allow verse to be indented.
429 + Allow nested footnotes.
430 + Internal improvements.
432 * Muse writer (Alexander Krotov):
434 + Escape `>` only at the beginning of a line.
435 + Escape `]` in image title.
436 + Escape `]` brackets in URLs as `%5D`.
437 + Only escape brackets when necessary.
438 + Escape ordered list markers.
439 + Do not escape list markers unless preceded by space.
440 + Escape strings starting with space.
441 + Escape semicolons and markers after line break.
442 + Escape `;` to avoid accidental comments.
443 + Don't break headers, line blocks and tables with line breaks.
444 + Correctly output empty headings.
445 + Escape horizontal rule only if at the beginning of the line.
446 + Escape definition list terms starting with list markers.
447 + Place header IDs before header.
448 + Improve span writing.
449 + Do not join Spans in normalization.
450 + Don't align ordered list items.
451 + Remove key-value pairs from attributes before normalization.
452 + Enable `--wrap=preserve` for all tests by default.
453 + Reduced `<verbatim>` tags in output.
458 + Use more consistent indentation (#4563). Previously we
459 used an odd mix of 3- and 4-space indentation. Now we use 3-space
460 indentation, except for ordered lists, where indentation must
461 depend on the width of the list marker.
462 + Flatten nested inlines (#4368, Francesco Occhipinti).
463 Nested inlines are not valid RST syntax, so we flatten them following
464 some readability criteria discussed in #4368.
468 + Ensure that `pagetitle` is always set, even when structured titles
469 are used. This prevents spurious warnings about empty title
472 * FB2 writer (Alexander Krotov):
474 + Output links inline instead of producing notes. Previously all links
475 were turned into footnotes with unclickable URLs inside.
476 + Allow emphasis and notes in titles.
477 + Don't intersperse paragraph with empty lines.
478 + Convert metadata value `abstract` to book annotation.
479 + Use `<empty-line />` for `HorizontalRule` rather than `LineBreak`.
480 FB2 does not have a way to represent line breaks inside paragraphs;
481 previously we used `<empty-line />` elements, but these are not allowed
484 * Powerpoint writer (Jesse Rosenthal):
486 + Handle Quoted Inlines (#4532).
487 + Simplify code with `ParseXml`.
488 + Allow fallback options when looking for placeholder type.
489 + Check reference-doc for all layouts.
490 + Simplify speaker notes logic.
491 + Change notes state to a simpler per-slide value.
492 + Remove `Maybe` from `SpeakerNotes` in `Slide`. `mempty`
493 means no speaker notes.
494 + Add tests for improved speaker notes.
495 + Handle speaker notes earlier in the conversion process.
496 + Keep notes with related blocks (#4477). Some blocks automatically
497 split slides (imgs, tables, `column` divs). We assume that any
498 speaker notes immediately following these are connected to these
499 elements, and keep them with the related blocks, splitting after them.
500 + Remove `docProps/thumbnail.jpeg` in data dir (Jesse Rosenthal, #4588).
501 It contained a nonfree ICC color calibration profile and is not needed
502 for production of a powerpoint document.
506 + Include a blank line at the end of the row in a single-row multiline
507 table, to prevent it from being interpreted as a simple table (#4578).
511 + Correctly ignore LaTeX raw blocks when `raw_tex` is not
512 enabled (#4527, quasicomputational).
516 + Add `epub:type="footnotes"` to notes section in EPUB3 (#4489).
520 + In beamer, don't use format specifier for default ordered lists
521 (#4556). This gives better results for styles that put ordered list
522 markers in boxes or circles.
523 + Update `\lstinline` delimiters (#4369, Tim Parenti).
527 + Use `\f[R]` rather than `\f[]` to reset font (#4552).
528 + Use `\f[BI]` and `\f[CB]` in headers, instead of `\f[I]` and `\f[C]`,
529 since the header font is automatically bold (#4552).
530 + Use `\f[CB]` rather than `\f[BC]` for monospace bold (#4552).
531 + Create pdf anchor for a Div with an identifier (#4515).
532 + Escape `/` character in anchor ids (#4515).
533 + Improve escaping for anchor ids: we now use _uNNN_ instead of uNNN
538 + Don't escape U+2019 as `'` (#4550).
540 * Text.Pandoc.Options:
542 + Removed `JsMath`, `LaTeXMathML`, and `GladTeX` constructors from
543 `Text.Pandoc.Options.HTMLMathMethod` [API change].
547 + `writeMedia`: unescape URI-escaping in file path. This avoids
548 writing things like `file%20one.png` to the file system.
550 * Text.Pandoc.Parsing:
552 + Fix `romanNumeral` parser (#4480). We previously accepted 'DDC'
554 + `uri`: don't treat `*` characters at end as part of URI (#4561).
558 + Use the alias `application/eps` for EPS (#2067).
559 This will ensure that we retain the eps extension after reading the
560 image into a mediabag and writing it again.
564 + Use `withTempDir` in `html2pdf`.
565 + With `xelatex`, don't compress images til the last run (#4484).
566 This saves time for image-heavy documents.
567 + Don't try to convert EPS files (#2067). `pdflatex` converts them
568 itself, and JuicyPixels can't do it.
569 + For `pdflatex`, use a temp directory in the working directory.
570 Otherwise we can have problems with the EPS conversion pdflatex
571 tries to do, which can't operate on a file above the working
572 directory without `--shell-escape`.
574 * Changes to tests to accommodate changes in pandoc-types.
575 In <https://github.com/jgm/pandoc-types/pull/36> we changed
576 the table builder to pad cells. This commit changes tests
577 (and two readers) to accord with this behavior.
579 * Set default extensions for `beamer` same as `latex`.
583 + Add `beameroption` variable (#4359, Étienne Bersac).
584 + Use `pgfpages` package; this is needed for notes on second
585 screen in beamer (Étienne Bersac).
586 + Add `background-image` variable (#4601, John Muccigrosso).
588 * reveal.js template: Add `background-image` variable (#4600,
591 * ms template: Fix date. Previously `.ND` was used, but this only
592 works if you have a title page, which we don't. Thanks to @teoric.
594 * Removed pragmas for unused extensions (#4506, Anabra).
596 * Fix bash completion for `--print-default-data-file` (#4549).
597 Previously this looked in the filesystem, even if pandoc
598 was compiled with `embed_data_files` (and sometimes it looked
599 in a nonexistent build directory). Now the bash completion
600 script just includes a hard-coded list of data file names.
604 + Clarify template vs metadata variables (#4501, Mauro Bieg).
605 + Fix raw content example (#4479, Mauro Bieg).
606 + Specify that you use html for raw output in epub.
607 + Add examples for raw docx blocks (#4472, Tristan Stenner).
608 The documentation states that the target format name should match
609 the output format, which isn't the case for `docx`/`openxml` and
611 + Don't say that `empty_paragraphs` affects markdown output (#4540).
612 + Consolidate input/output format documentation (#4577, Mauro Bieg).
614 * New README template. Take in/out formats from manual.
616 * Fix example in lua-filters docs (#4459, HeirOfNorton).
618 * Use the `-threaded` GHC flag when building benchmarks (#4587,
619 Francesco Occhipinti).
621 * Bump temporary upper bound to 1.4.
623 * Use pandoc-citeproc 0.14.3.1.
625 * Use texmath-0.10.1.2 (fixes escapes in math in ms, #4597).
627 * Removed old lib directory. This was used for something long ago,
628 but plays no role now.
630 * Removed unneeded data file `LaTeXMathML.js`.
632 * Create 64- and 32-bit versions of Windows binary packages.
636 * Docx reader (Jesse Rosenthal):
638 + Add tests for nested smart tags.
639 + Parse nested smart tags.
640 + Make unwrapSDT into a general `unwrap` function that can unwrap both
641 nested SDT tags and smartTags. This makes the SmartTags constructor in
642 the Docx type unnecessary, so we remove it (#4446).
643 + Remove unused `docxWarnings` (Alexander Krotov).
645 * RST reader: Allow unicode bullet characters (#4454).
647 * Haddock reader: Better table handling, using haddock-library's
648 new table support, if compiled against a version that
649 includes it. Note that tables with col/rowspans will not
650 translate well into Pandoc.
652 * Muse reader (Alexander Krotov):
654 + Require closing tag to have the same indentation as opening.
655 + Do not reparse blocks inside unclosed block tag (#4425).
656 + Parse `<class>` tag (supported by Emacs Muse).
657 + Do not produce empty Str element for unindented verse lines.
658 + Don't allow footnote references inside links.
659 + Allow URL to be empty.
660 + Require that comment semicolons are in the first column (#4551).
661 + Various internal improvements.
665 + Add support to parse unit string of `\SI` command (closes #4296,
668 * Haddock writer: In the writer, we now render tables always as
669 grid tables, since Haddock supports these.
671 * DokuWiki writer: rewrite backSlashLineBreaks (#4445, Mauro Bieg).
673 * Docx writer: Fixed formatting of `DefaultStyle` ordered lists in
674 docx writer. We want decimal for the top level, not lower roman.
678 + Strip whitespace at beginning and ending of inline containers
679 (#4327, Francesco Occhipinti).
680 + Filter out empty inline containers (#4434). There is nothing in
681 RST that corresponds to e.g. `Emph []`, so we just ignore elements
682 like this (Francesco Occhipinti).
684 * Muse writer (Alexander Krotov):
686 + Support spans with anchors.
687 + Replace smallcaps with emphasis before normalization.
688 + Output smallcaps as emphasis.
689 + Expand Cite before list normalization.
690 + Write empty inline lists as `<verbatim></verbatim>`.
691 + Remove empty Str from the beginning of inline lists during normalization.
692 + Escape "-" to avoid creating bullet lists.
693 + Fix math expansion for more than one expression per paragraph.
694 + Expand math before inline list normalization.
696 * Dokuwiki writer: fix LineBreaks in Tables (#4313, Mauro Bieg).
700 + Asciify pdf anchors, since unicode anchors don't work (#4436).
701 Internal links should be converted automatically, so this shouldn't
702 affect users directly.
703 + Don't escape hyphens as `\-`; that's for a minus sign (#4467).
705 * Beamer writer: put hyperlink after `\begin{frame}` and not in the title
706 (#4307). If it's in the title, then we get a titlebar on slides with
707 the `plain` attribute, when the id is non-null. This fixes a regression
710 * EPUB writer: Remove notes from TOC in nav.xhtml (#4453, Mauro Bieg).
712 * JATS writer: Remove extraneous, significant whitespace (#4335,
715 * html2pdf: inject base tag with current working directory (#4413, Mauro
716 Bieg). This helps ensure that linked resources are included.
718 * Add Semigroup instances for everything for which we defined a
719 Monoid instance previously (API change):
721 + Text.Pandoc.Class.FileTree.
722 + Text.Pandoc.Translations.Translations.
723 + Text.Pandoc.Extensions.Extensions.
724 + Text.Pandoc.Readers.Odt.StyleReader.Styles.
725 + Text.Pandoc.Pretty.Doc.
726 + Text.Pandoc.MediaBag.MediaBag.
728 * Add custom Prelude to give clean code for Monoid and Semigroup
729 that works with ghc 7.10-8.4. The custom Prelude (`prelude/Prelude`)
730 is used for ghc versions < 8.4. `NoImplicitPrelude` is used
731 in all source files, and Prelude is explicitly imported
732 (this is necessary for ghci to work properly with the custom prelude).
734 * Text.Pandoc.Writers.Shared (Francesco Occhipinti):
736 + Export `stripLeadingTrailingSpace`.
737 + Don't wrap lines in grid tables when `--wrap=none` (#4320).
738 + `gridTable`: Don't wrap lines in tables when `--wrap=none`. Instead,
739 expand cells, even if it results in cells that don't respect relative
740 widths or surpass page column width. This change affects RST,
741 Markdown, and Haddock writers.
743 * Raise error if someone tries to print docx, odt, etc. template (#4441).
745 * LaTeX template: Provide `bidi` package's option using
746 `\PassOptionsToPackage` (#4357, Václav Haisman). This avoid a
747 clash when `polyglossia` loads it first and then it is loaded again
750 * ConTeXt template: Added `pdfa` variable to generate PDF/A (#4294, Henri
751 Menke). Instructions on how to install the ICC profiles on ConTeXt
752 standalone can be found in the wiki:
753 <http://wiki.contextgarden.net/PDFX#ICC_profiles>.
754 If the ICC profiles are not available the log will contain error
757 * Use latest pandoc-types, skylighting
759 * Use latest pandoc-citeproc in binary package.
761 * Bump upper bound for time, criterion, haddock-library, exceptions,
762 http-types, aeson, haddock-library.
764 * Bump upper bound tasty-quickcheck 0.10 (#4429, Felix Yan).
766 * pandoc.cabal: fix up other-extensions and language fields.
767 Language is now consistently `Haskell2010`, and other-extensions
768 is consistently `NoImplicitPrelude`. Everything else to be specified
769 in the module header as needed.
771 * Removed `old-locale` flag and Text.Pandoc.Compat.Time.
772 This is no longer necessary since we no longer support ghc 7.8.
774 * Make `weigh-pandoc` into a benchmark program.
775 Remove `weigh-pandoc` flag. `weigh-pandoc` is now built (and run)
776 automatically when you build (and run) benchmarks.
778 * MANUAL: add instructions for background images reveal.js (#4325, John
781 * appveyor: use VS 2013 environment instead of VS 2015 for Windows builds.
788 + Fix parsing bug with nested fenced divs (#4281). Previously we allowed
789 "nonindent spaces" before the opening and closing `:::`, but this
790 interfered with list parsing, so now we require the fences to be flush with
791 the margin of the containing block.
795 + `raw_html` is now on by default. It can be disabled explicitly
796 using `-f commonmark-raw_html`.
798 * Org reader (Albert Krewinkel):
800 + Move citation tests to separate module.
801 + Allow changing emphasis syntax (#4378). The characters allowed before
802 and after emphasis can be configured via `#+pandoc-emphasis-pre` and
803 `#+pandoc-emphasis-post`, respectively. This allows to change which
804 strings are recognized as emphasized text on a per-document or even
805 per-paragraph basis. Example:
807 #+pandoc-emphasis-pre: "-\t ('\"{"
808 #+pandoc-emphasis-post: "-\t\n .,:!?;'\")}["
812 + Fixed comments inside citations (#4374).
813 + Fix regression in package options including underscore (#4424).
814 + Make `--trace` work.
815 + Fixed parsing of `tabular*` environment (#4279).
819 + Fix regression in parsing of headers with trailing space (#4280).
821 * Muse reader (Alexander Krotov):
823 + Enable `<literal>` tags even if amuse extension is enabled.
824 Amusewiki disables <literal> tags for security reasons.
825 If user wants similar behavior in pandoc, RawBlocks and RawInlines
826 can be removed or replaced with filters.
827 + Remove space prefix from `<literal>` tag contents.
828 + Do not consume whitespace while looking for closing end tag.
829 + Convert alphabetical list markers to decimal in round-trip test.
830 Alphabetical lists are an addition of Text::Amuse.
831 They are not present in Emacs Muse and can be ambiguous
832 when list starts with "i.", "c." etc.
833 + Allow `<quote>` and other tags to be indented.
834 + Allow single colon in definition list term.
835 + Fix parsing of verse in lists.
836 + Improved parsing efficiency. Avoid `parseFromString`.
837 Lists are parsed in linear instead of exponential time now.
838 + Replace ParserState with MuseState.
839 + Prioritize lists with roman numerals over alphabetical lists.
840 This is to make sure "i." starts a roman numbered list,
841 instead of a list with letter "i" (followed by "j", "k", ...").
842 + Fix directive parsing.
843 + Parse definition lists with multiple descriptions.
844 + Parse next list item before parsing more item contents.
845 + Fixed a bug: headers did not terminate lists.
846 + Move indentation parsing from `definitionListItem` to `definitionList`.
847 + Paragraph indentation does not indicate nested quote.
848 Muse allows indentation to indicate quotation or alignment,
849 but only on the top level, not within a <quote> or list.
850 + Require that block tags are on separate lines.
851 Text::Amuse already explicitly requires it anyway.
852 + Fix matching of closing inline tags.
853 + Various internal changes.
854 + Fix parsing of nested definition lists.
855 + Require only one space for nested definition list indentation.
856 + Do not remove trailing whitespace from `<code>`.
857 + Fix parsing of trailing whitespace. Newline after whitespace now
858 results in softbreak instead of space.
860 * Docx reader (Jesse Rosenthal, except where noted):
862 + Handle nested sdt tags (#4415).
863 + Don't look up dependent run styles if `+styles` is enabled.
864 + Move pandoc inline styling inside custom-style span.
865 + Read custom styles (#1843). This will read all paragraph and
866 character classes as divs and spans, respectively. Dependent styles
867 will still be resolved, but will be wrapped with appropriate style
868 tags. It is controlled by the `+styles` extension (`-f docx+styles`).
869 This can be used in conjunction with the `custom-style` feature in the
870 docx writer for a pandoc-docx editing workflow. Users can convert from
871 an input docx, reading the custom-styles, and then use that same input
872 docx file as a reference-doc for producing an output docx file. Styles
873 will be maintained across the conversion, even if pandoc doesn't
875 + Small change to Fields hyperlink parser. Previously, unquoted string
876 required a space at the end of the line (and consumed it). Now we
877 either take a space (and don't consume it), or end of input.
878 + Pick table width from the longest row or header (Francesco Occhipinti,
881 * Muse writer (Alexander Krotov):
883 + Change verse markup: `> ` instead of `<verse>` tag.
884 + Remove empty strings during inline normalization.
885 + Don't indent nested definition lists.
886 + Use unicode quotes for quoted text.
887 + Write image width specified in percent in Text::Amuse mode.
888 + Don't wrap displayMath into `<verse>`.
889 + Escape nonbreaking space (`~~`).
890 + Join code with different attributes during normalization.
891 + Indent lists inside Div.
892 + Support definitions with multiple descriptions.
894 * Powerpoint writer (Jesse Rosenthal):
896 + Use table styles This will use the default table style in the
897 reference-doc file. As a result they will be easier when using
898 in a template, and match the color scheme.
899 + Remove empty slides. Because of the way that slides were split, these
900 could be accidentally produced by comments after images. When animations
901 are added, there will be a way to add an empty slide with either
902 incremental lists or pauses.
903 + Implement syntax highlighting. Note that background colors can't
904 be implemented in PowerPoint, so highlighting styles that require
905 these will be incomplete.
906 + New test framework for pptx. We now compare the output of the
907 Powerpoint writer with files that we know to (a) not be corrupt,
908 and (b) to show the desired output behavior (details below).
909 + Add `notesMaster` to `presentation.xml` if necessary.
910 + Ignore links and (end)notes in speaker notes.
911 + Output speaker notes.
912 + Read speaker note templates conditionally. If there are speaker
913 notes in the presentation, we read in the notesMasters templates
914 from the reference pptx file.
915 + Fix deletion track changes (#4303, Jesse Rosenthal).
917 * Markdown writer: properly escape @ to avoid capture as citation
922 + Put hypertarget inside figure environment (#4388).
923 This works around a problem with the endfloat package and
924 makes pandoc's output compatible with it.
925 + Fix image height with percentage (#4389). This previously caused
926 the image to be resized to a percentage of textwidth, rather than
929 * ConTeXt writer (Henri Menke):
931 + New section syntax and support `--section-divs` (#2609).
932 `\section[my-header]{My Header}` ->
933 `\section[title={My Header},reference={my-header}]`.
934 The ConTeXt writer now supports the `--section-divs` option to
935 write sections in the fenced style, with `\startsection` and
937 + xtables: correct wrong usage of caption (Henri Menke).
941 + Fix image resizing with multiple images (#3930, Andrew Pritchard).
942 + Use new golden framework (Jesse Rosenthal).
943 + Make more deterministic to facilitate testing (Jesse Rosenthal).
944 - `getUniqueId` now calls to the state to get an incremented digit,
945 instead of calling to P.uniqueHash.
946 - we always start the PRNG in mkNumbering/mkAbstractNum with the same
947 seed (1848), so our randoms should be the same each time.
948 + Fix ids in comment writing (Jesse Rosenthal). Comments from
949 `--track-changes=all` were producing corrupt docx, because the
950 writer was trying to get id from the `(ID,_,_)` field of
951 the attributes, and ignoring the "id" entry in the key-value pairs. We
954 * Ms writer: Added papersize variable.
958 + Use `height` instead of `depth` for images (#4331).
959 + Ensure that id prefix is always used.
960 + Don't emit `role` attribute; that was a leftover from the
962 + Use 'xml:id', not 'id' attribute (#4371).
966 + Do not output implicit heading IDs (#4363, Alexander
967 Krotov). Convert to `asciidoc-auto_identifiers` for old behaviour.
971 + Remove `blockToRST'` moving its logic into `fixBlocks`
972 (Francesco Occhipinti).
973 + Insert comment between lists and quotes (#4248, Francesco Occchipinti).
975 * RST template: remove definition of 'math' role as raw.
976 This used to be needed prior to v 0.8 of docutils, but
977 now math support is built-in.
979 * Slides: Use divs to set incremental/non-incremental (#4381,
980 Jesse Rosenthal). The old method (list inside blockquote) still
981 works, but we are encouraging the use of divs with class
982 `incremental` or `nonincremental`.
984 * Text.Pandoc.ImageSize:
986 + Make image size detection for PDFs more robust (#4322).
987 + Determine image size for PDFs (#4322).
988 + EMF Image size support (#4375, Andrew Pritchard).
990 * Text.Pandoc.Extensions:
992 + Add `Ext_styles` (Jesse Rosenthal, API change). This will be used in
993 the docx reader (defaulting to off) to read pargraph and character
994 styles not understood by pandoc (as divs and spans, respectively).
995 + Made `Ext_raw_html` default for `commonmark` format.
997 * Text.Pandoc.Parsing:
999 + Export `manyUntil` (Alexander Krotov, API change).
1000 + Export improved `sepBy1` (Alexander Krotov).
1001 + Export list marker parsers: `upperRoman`, `lowerRoman`,
1002 `decimal`, `lowerAlpha`, `upperAlpha` (Alexander Krotov, API change).
1004 * Tests/Lua: fix tests on windows (Albert Krewinkel).
1006 * Lua: register script name in global variable (#4393). The name of the Lua
1007 script which is executed is made available in the global Lua variable
1008 `PANDOC_SCRIPT_FILE`, both for Lua filters and custom writers.
1010 * Tests: Abstract powerpoint tests out to OOXML tests (Jesse Rosenthal).
1011 There is very little pptx-specific in these tests, so we abstract out
1012 the basic testing function so it can be used for docx as well. This
1013 should allow us to catch some errors in the docx writer that slipped
1014 by the roundtrip testing.
1016 * Lua filters: store constructors in registry (Albert Krewinkel). Lua
1017 functions used to construct AST element values are stored in the Lua
1018 registry for quicker access. Getting a value from the registry is much
1019 faster than getting a global value (partly to idiosyncrasies of hslua);
1020 this change results in a considerable performance boost.
1024 + `doc/org.md` Add draft of Org-mode documentation (Albert Krewinkel).
1025 + `doc/lua-filters.md`: document global vars set for filters
1027 + INSTALL.md: mention Stack version. (#4343, Adam Brandizzi).
1028 + MANUAL: add documentation on custom styles (Jesse Rosenthal).
1029 + MANUAL.txt: Document incremental and nonincremental divs (Jesse
1030 Rosenthal). Blockquoted lists are still described, but fenced divs are
1031 presented in preference.
1032 + MANUAL.txt: document header and footer variables (newmana).
1033 + MANUAL.txt: self-contained implies standalone (#4304, Daniel Lublin).
1034 + CONTRIBUTING.md: label was renamed. (#4310, Alexander Brandizzi).
1036 * Require tagsoup 0.14.3 (#4282), fixing HTML tokenization bug.
1038 * Use latest texmath.
1040 * Use latest pandoc-citeproc.
1042 * Allow exceptions 0.9.
1044 * Require aeson-pretty 0.8.5 (#4394).
1046 * Bump blaze-markup, blaze-html lower bounds to 0.8, 0.9 (#4334).
1048 * Update tagsoup to 0.14.6 (Alexander Krotov, #4282).
1050 * Removed ghc-prof-options. As of cabal 1.24, sensible defaults are used.
1052 * Update default.nix to current nixpkgs-unstable for hslua-0.9.5 (#4348,
1060 + Don't coalesce adjacent raw LaTeX blocks if they are separated by a
1061 blank line. See lierdakil/pandoc-crossref#160.
1062 + Improved `inlinesInBalancedBrackets` (#4272, jgm/pandoc-citeproc#315).
1063 The change both improves performance and fixes a regression whereby
1064 normal citations inside inline notes and figure captions were not
1069 + Better handling for headers with an anchor (#4240). Instead of creating a
1070 Div containing the header, we put the id directly on the header.
1071 This way header promotion will work properly.
1072 + Add aligned environment when needed in math (#4254). `rst2latex.py`
1073 uses an `align*` environment for math in `.. math::` blocks, so this
1074 math may contain line breaks. If it does, we put the math in an
1075 `aligned` environment to simulate `rst2latex.py`'s behavior.
1079 + Fix col width parsing for percentages < 10% (#4262, n3fariox).
1083 + Advance source position at end of stream.
1084 + Pass through macro defs in `rawLaTeXBlock` even if the `latex_macros`
1085 extension is set (#4246). This reverts to earlier behavior and is
1086 probably safer on the whole, since some macros only modify things in
1087 included packages, which pandoc's macro expansion can't modify.
1088 + Fixed pos calculation in tokenizing escaped space.
1089 + Allow macro definitions inside macros (#4253). Previously we went into
1090 an infinite loop with
1092 \newcommand{\noop}[1]{#1}
1093 \noop{\newcommand{\foo}[1]{#1}}
1096 + Fix inconsistent column widths (#4238). This fixes a bug whereby column
1097 widths for the body were different from widths for the header in some
1100 * Docx reader (Jesse Rosenthal):
1102 + Parse hyperlinks in `instrText` tags (#3389, #4266). This was a form of
1103 hyperlink found in older versions of word. The changes introduced for
1104 this, though, create a framework for parsing further fields in MS Word
1105 (see the spec, ECMA-376-1:2016, §17.16.5, for more on these fields).
1106 We introduce a new module, `Text.Pandoc.Readers.Docx.Fields` which
1107 contains a simple parsec parser. At the moment, only simple hyperlink
1108 fields are accepted, but that can be extended in the future.
1110 * Muse reader (Alexander Krotov):
1112 + Parse `~~` as non-breaking space in Text::Amuse mode.
1113 + Refactor list parsing.
1115 * Powerpoint writer (Jesse Rosenthal):
1117 + Change reference to `notesSlide` to `endNotesSlide`.
1118 + Move image sizing into `picProps`.
1119 + Improve table placement.
1120 + Make our own `_rels/.rels` file.
1121 + Import reference-doc images properly.
1122 + Move `Presentation.hs` out of `PandocMonad`.
1123 + Refactor into separate modules. T.P.W.Powerpoint.Presentation
1124 defines the Presentation datatype and goes Pandoc->Presentation;
1125 T.P.W.Pandoc.Output goes Presentation->Archive.
1126 Text.Pandoc.Writers.Powerpoint a thin wrapper around the two modules.
1127 + Avoid overlapping blocks in column output.
1128 + Position images correctly in two-column layout.
1129 + Make content shape retrieval environment-aware.
1130 + Improve image handling. We now determine image and caption placement
1131 by getting the dimensions of the content box in a given layout.
1132 This allows for images to be correctly sized and positioned in a
1133 different template. Note that images without captions and headers are
1134 no longer full-screened. We can't do this dependably in different
1135 layouts, because we don't know where the header is (it could be to
1136 the side of the content, for example).
1137 + Read presentation size from reference file. Our presentation size is
1138 now dependent on the reference/template file we use.
1139 + Handle (sub)headers above slidelevel correctly. Above the slidelevel,
1140 subheaders will be printed in bold and given a bit of extra space
1141 before them. Note that at the moment, no distinction is made between
1142 levels of headers above the slide header, though that can be changed.
1143 + Check for required files. Since we now import from reference/dist
1144 file by glob, we need to make sure that we're getting the files we
1145 need to make a non-corrupt Powerpoint. This performs that check.
1146 + Improve templating using `--reference-doc`. Templating should work
1147 much more reliably now.
1148 + Include Notes slide in TOC.
1149 + Set notes slide header to slide-level.
1150 + Add table of contents. This is triggered by the `--toc` flag. Note
1151 that in a long slide deck this risks overrunning the text box. The user
1152 can address this by setting `--toc-depth=1`.
1153 + Set notes slide number correctly.
1154 + Clean up adding metadata slide. We want to count the slide numbers
1155 correctly if it's in there.
1156 + Add anchor links. For anchor-type links (`[foo](#bar)`) we produce
1157 an anchor link. In powerpoint these are links to slides, so we keep
1158 track of a map relating anchors to the slides they occur on.
1159 + Make the slide number available to the blocks. For anchors,
1160 block-processing functions need to know what slide number
1161 they're in. We make the `envCurSlideId` available to blocks.
1162 + Move `curSlideId` to environment.
1163 + Allow setting `toc-title` in metadata.
1164 + Link notes to endnotes slide.
1168 + Fix cell width calculation (#4265). Previously we could get
1169 ever-lengthening cell widths when a table was run repeatedly through
1170 `pandoc -f markdown -t markdown`.
1174 + Escape `&` in lstinline (Robert Schütz).
1178 + Use xtables instead of Tables (#4223, Henri Menke).
1179 Default to xtables for context output. Natural Tables are used
1180 if the new `ntb` extension is set.
1184 + Fixed footnote backlinks with `--id-prefix` (#4235).
1186 * `Text.Pandoc.Extensions`: Added `Ext_ntb` constructor (API change,
1189 * `Text.Pandoc.ImageSize`: add derived `Eq` instance to `Dimension`
1190 (Jesse Rosenthal, API change).
1192 * Lua filters (Albert Krewinkel):
1194 + Make `PANDOC_READER_OPTIONS` available.
1195 The options which were used to read the document are made available to
1196 Lua filters via the `PANDOC_READER_OPTIONS` global.
1197 + Add lua module `pandoc.utils.run_json_filter`, which runs a JSON filter
1198 on a Pandoc document.
1199 + Refactor filter-handling code into `Text.Pandoc.Filter.JSON`,
1200 `Text.Pandoc.Filter.Lua`, and `Text.Pandoc.Filter.Path`.
1201 + Improve error messages. Provide more context about the task
1202 which caused an error.
1204 * data/pandoc.lua (Albert Krewinkel):
1206 + Accept singleton inline as a list. Every constructor which accepts a
1207 list of inlines now also accepts a single inline element for
1209 + Accept single block as singleton list. Every constructor which accepts
1210 a list of blocks now also accepts a single block element for
1211 convenience. Furthermore, strings are accepted as shorthand for
1212 `{pandoc.Str "text"}` in constructors.
1213 + Add attr, listAttributes accessors. Elements with
1214 attributes got an additional `attr` accessor. Attributes were
1215 accessible only via the `identifier`, `classes`, and `attributes`,
1216 which was in conflict with the documentation, which indirectly states
1217 that such elements have the an `attr` property.
1218 + Drop `_VERSION`. Having a `_VERSION` became superfluous, as this
1219 module is closely tied to the pandoc version, which is available via
1221 + Fix access to Attr components. Accessing an Attr value (e.g.,
1222 ` Attr().classes`) was broken; the more common case of accessing it via
1223 an Inline or Block element was unaffected by this.
1225 * Move `metaValueToInlines` to from Docx writer to
1226 `Text.Pandoc.Writers.Shared`, so it can be used by other writers
1231 + Clarify otherlangs in LaTeX (#4072).
1232 + Clarify `latex_macros` extension.
1233 + Recommend use of `raw_attribute` extension in header includes (#4253).
1235 * Allow latest QuickCheck, tasty, criterion.
1237 * Remove custom prelude and ghc 7.8 support.
1239 * Reduce compiler noise (exact paths for compiled modules).
1243 * Allow filters and lua filters to be interspersed (#4196). Previously
1244 we ran all lua filters before JSON filters. Now we run filters in
1245 the order they are presented on the command line, whether lua or JSON.
1246 There are two incompatible API changes: The type of `applyFilters`
1247 has changed, and `applyLuaFilters` has been removed. `Filter` is
1250 * Use latest skylighting and omit the `missingIncludes` check, fixing
1251 a major performance regression in earlier releases of the 2.x series
1252 (#4226). Behavior change: If you use a custom syntax definition that
1253 refers to a syntax you haven't loaded, pandoc will now complain when
1254 it is highlighting the text, rather than doing a check at the start.
1255 This change dramatically speeds up invocations of pandoc on short
1258 * Text.Pandoc.Class: make `FileTree` opaque (don't export
1259 `FileTree` constructor). This forces users to interact with it using
1260 `insertInFileTree` and `getFileInfo`, which normalize file names.
1264 + Rewrite `inlinesInBalancedBrackets`. The rewrite is much more
1265 direct, avoiding `parseFromString`. And it performs significantly
1266 better; unfortunately, parsing time still increases exponentially
1268 + Avoid parsing raw tex unless `\` + letter seen. This seems to
1269 help with the performance problem, #4216.
1271 * LaTeX reader: Simplified a check for raw tex command.
1273 * Muse reader (Alexander Krotov):
1275 + Enable round trip test (#4107).
1276 + Automatically translate `#cover` into `#cover-image`.
1277 Amusewiki uses #cover directive to specify cover image.
1279 * Docx reader (Jesse Rosenthal):
1281 + Allow for insertion/deletion of paragraphs (#3927).
1282 If the paragraph has a deleted or inserted paragraph break (depending
1283 on the track-changes setting) we hold onto it until the next
1284 paragraph. This takes care of accept and reject. For this we introduce
1285 a new state which holds the ils from the previous para if necessary.
1286 For `--track-changes=all`, we add an empty span with class
1287 `paragraph-insertion`/`paragraph-deletion` at the end of the paragraph
1288 prior to the break to be inserted or deleted.
1289 + Remove unused anchors (#3679). Docx produces a lot of anchors with
1290 nothing pointing to them---we now remove these to produce cleaner
1291 output. Note that this has to occur at the end of the process
1292 because it has to follow link/anchor rewriting.
1293 + Read multiple children of `w:sdtContents`.
1294 + Combine adjacent anchors. There isn't any reason to have numerous
1295 anchors in the same place, since we can't maintain docx's
1296 non-nesting overlapping. So we reduce to a single anchor.
1299 * Muse writer (Alexander Krotov): don't escape URIs from AST
1303 + Removed redundant subtitle in title (Sebastian Talmon).
1304 + `firstRow` table definition compatibility for Word 2016 (Sebastian
1305 Talmon). Word 2016 seems to use a default value of "1" for table
1306 headers, if there is no firstRow definition (although a default
1307 value of 0 is documented), so all tables get the first Row formatted
1308 as header. Setting the parameter to 0 if the table has no header
1309 row fixes this for Word 2016
1310 + Fix custom styles with spaces in the name (#3290).
1312 * Powerpoint writer (Jesse Rosenthal):
1314 + Ignore Notes div for parity with other slide outputs.
1315 + Set default slidelevel correctly. We had previously defaulted to
1316 slideLevel 2. Now we use the correct behavior of defaulting to the
1317 highest level header followed by content. We change an expected test
1318 result to match this behavior.
1319 + Split blocks correctly for linked images.
1320 + Combine adjacent runs.
1321 + Make inline code inherit code size. Previously (a) the code size
1322 wasn't set when we force size, and (b) the properties was set from
1323 the default, instead of inheriting.
1324 + Simplify `replaceNamedChildren` function.
1325 + Allow linked images. The following markdown:
1326 `[](http://www.example.com)`
1327 will now produce a linked image in the resulting PowerPoint file.
1328 + Fix error with empty table cell. We require an empty `<a:p>` tag,
1329 even if the cell contains no paragraphs---otherwise PowerPoint
1330 complains of corruption.
1331 + Implement two-column slides. This uses the columns/column div
1332 format described in the pandoc manual. At the moment, only two
1333 columns (half the screen each) are allowed. Custom widths are not
1337 * OpenDocument/ODT writers: improved rendering of formulas (#4170, oltolm).
1339 * Lua filters (Albert Krewinkel):
1341 + `data/pandoc.lua`: drop 'pandoc-api-version' from Pandoc objects
1342 + The current pandoc-types version is made available to Lua programs in
1343 the global `PANDOC_API_VERSION`. It contains the version as a list of
1345 + The pandoc version available as a global `PANDOC_VERSION` (a list
1347 + `data/pandoc.lua`: make `Attr` an `AstElement`.
1348 + `data/pandoc.lua`: make all types subtypes of `AstElement`.
1349 `Pandoc`, `Meta`, and `Citation` were just plain functions and did
1350 not set a metatable on the returned value, which made it difficult
1351 to amend objects of these types with new behavior. They are now
1352 subtypes of AstElement, meaning that all their objects can gain
1353 new features when a method is added to the behavior object
1354 (e.g., `pandoc.Pandoc.behavior`).
1355 + `data/pandoc.lua`: split type and behavior tables. Clearly distinguish
1356 between a type and the behavioral properties of an instance of that
1357 type. The behavior of a type (and all its subtypes) can now be
1358 amended by adding methods to that types `behavior` object, without
1359 exposing the type objects internals. E.g.:
1361 pandoc.Inline.behavior.frob = function () print'42' end
1362 local str = pandoc.Str'hello'
1363 str.frob() -- outputs '42'
1365 + `data/pandoc.lua`: fix Element inheritance. Extending all elements
1366 of a given type (e.g., all inline elements) was difficult, as the
1367 table used to lookup unknown methods would be reset every time a
1368 new element of that type was created, preventing recursive property
1369 lookup. This is was changed in that all methods and attributes of
1370 supertypes are now available to their subtypes.
1371 + `data/pandoc.lua`: fix attribute names of Citation (#4222). The
1372 fields were named like the Haskell fields, not like the documented,
1373 shorter version. The names are changed to match the documentation
1374 and Citations are given a shared metatable to enable simple
1376 + `data/pandoc.lua`: drop function `pandoc.global_filter`.
1377 + Bump `hslua` version to 0.9.5. This version fixes a bug that made it
1378 difficult to handle failures while getting lists or a Map from Lua.
1379 A bug in pandoc, which made it necessary to always pass a tag when
1380 using MetaList or MetaBlock, is fixed as a result. Using the pandoc
1381 module's constructor functions for these values is now optional
1382 (if still recommended).
1383 + Stop exporting `pushPandocModule` (API change). The introduction
1384 of `runPandocLua` renders direct use of this function obsolete.
1385 + Update generation of module docs for lua filters.
1386 + `Lua.Module.Utils`: make stringify work on `MetaValues` (John
1387 MacFarlane). I'm sure this was intended in the first place,
1388 but currently only `Meta` is supported.
1390 * Improve benchmarks.
1392 + Set the default extensions properly.
1393 + Improve benchmark argument parsing. You can now say
1394 `make bench BENCHARGS="markdown latex reader"` and both the
1395 markdown and latex readers will be benchmarked.
1397 * MANUAL.txt simplify and add more structure (Mauro Bieg).
1399 * Generate README.md from template and MANUAL.txt.
1400 `make README.md` will generate the README.md after changes
1401 to MANUAL.txt have been made.
1403 * Update copyright notices to include 2018 (Albert Krewinkel).
1407 * Added `jats` as an input format.
1409 + Add Text.Pandoc.Readers.JATS, exporting `readJATS` (API
1410 change) (Hamish Mackenzie).
1411 + Improved citation handling in JATS reader. JATS citations
1412 are now converted to pandoc citations, and JATS ref-lists
1413 are converted into a `references` field in metadata, suitable
1414 for use with pandoc-citeproc. Thus a JATS article with embedded
1415 bibliographic information can be processed with pandoc and
1416 pandoc-citeproc to produce a formatted bibliography.
1418 * Allow `--list-extensions` to take an optional FORMAT argument.
1419 This lists the extensions set by default for the selected FORMAT.
1420 The extensions are now alphabetized, and the `+` or `-`
1421 indicating the default setting comes before, rather than after,
1426 + Preserve original whitespace between blocks.
1427 + Recognize `\placeformula` as context.
1428 + Be pickier about table captions. A caption starts with a `:` which
1429 can't be followed by punctuation. Otherwise we can falsely interpret
1430 the start of a fenced div, or even a table header line like
1431 `:--:|:--:`, as a caption.
1432 + Always use four space rule for example lists. It would be awkward
1433 to indent example list contents to the first non-space character after
1434 the label, since example list labels are often long. Thanks to
1435 Bernhard Fisseni for the suggestion.
1436 + Improve raw tex parsing. Note that the Markdown reader is also
1437 affected by the `latex_macros` extension changes described below
1438 under the LaTeX reader.
1442 + `latex_macros` extension changes (#4179). Don't pass through macro
1443 definitions themselves when `latex_macros` is set. The macros
1444 have already been applied. If `latex_macros` is enabled, then
1445 `rawLaTeXBlock` in Text.Pandoc.Readers.LaTeX will succeed in parsing
1446 a macro definition, and will update pandoc's internal macro map
1447 accordingly, but the empty string will be returned.
1448 + Export `tokenize`, `untokenize` (API change).
1449 + Use `applyMacros` in `rawLaTeXBlock`, `rawLaTeXInline`.
1450 + Refactored `inlineCommand`.
1451 + Fix bug in tokenizer. Material following `^^` was
1452 dropped if it wasn't a character escape. This only affected
1453 invalid LaTeX, so we didn't see it in the wild, but it appeared
1454 in a QuickCheck test failure.
1455 + Fix regression in LateX tokenization (#4159). This mainly affects the
1456 Markdown reader when parsing raw LaTeX with escaped spaces.
1457 + Add tests of LaTeX tokenizer.
1458 + Support `\foreignlanguage` from babel.
1459 + Be more tolerant of `&` character (#4208). This allows us to parse
1460 unknown tabular environments as raw LaTeX.
1462 * Muse reader (Alexander Krotov):
1464 + Parse anchors immediately after headings as IDs.
1465 + Require that note references does not start with 0.
1466 + Parse empty comments correctly.
1468 * Org reader (Albert Krewinkel):
1470 + Fix asterisks-related parsing error (#4180).
1471 + Support minlevel option for includes (#4154). The level of headers
1472 in included files can be shifted to a higher level by specifying a
1473 minimum header level via the `:minlevel` parameter. E.g.
1474 `#+include: "tour.org" :minlevel 1` will shift the headers in
1475 tour.org such that the topmost headers become level 1 headers.
1476 + Break-up org reader test file into multiple modules.
1480 + Enable raw HTML and other extensions by default for notes
1481 (#4164). This fixes a regression in 2.0. Note that extensions can
1482 now be individually disabled, e.g. `-f opml-smart-raw_html`.
1486 + Allow empty list items (#4193).
1487 + More accurate parsing of references (#4156). Previously we erroneously
1488 included the enclosing backticks in a reference ID (#4156). This
1489 change also disables interpretation of syntax inside references, as
1490 in docutils. So, there is no emphasis in `` `my *link*`_ ``.
1494 + Continue lists after interruption (#4025, Jesse Rosenthal).
1495 Docx expects that lists will continue where they left off after an
1496 interruption and introduces a new id if a list is starting again. So
1497 we keep track of the state of lists and use them to define a "start"
1498 attribute, if necessary.
1499 + Add tests for structured document tags unwrapping (Jesse Rosenthal).
1500 + Preprocess Document body to unwrap `w:sdt` elements (Jesse Rosenthal,
1505 + Don't linkify table of contents.
1509 + Fix anchors for headers (#4188). We were missing an `_`.
1511 * PowerPoint writer (Jesse Rosenthal):
1513 + Treat lists inside BlockQuotes as lists. We don't yet produce
1514 incremental lists in PowerPoint, but we should at least treat lists
1515 inside BlockQuotes as lists, for compatibility with other slide formats.
1516 + Add ability to force size. This replaces the more specific
1517 `blockQuote runProp`, which only affected the size of blockquotes. We
1518 can use this for notes, etc.
1519 + Implement notes. This currently prints all notes on a final slide.
1520 Note that at the moment, there is a danger of text overflowing the
1521 note slide, since there is no logic for adding further slides.
1522 + Implement basic definition list functionality to PowerPoint writer.
1523 + Don't look for default template file for Powerpoint (#4181).
1524 + Add pptx to isTextFormat list. This is used to check standalone
1525 and not writing to the terminal.
1526 + Obey slide level option (Jesse Rosenthal).
1531 + Ensure that `distArchive` is the one that comes with pandoc
1532 (#4182). Previously a `reference.docx` in `~/.pandoc` (or the user data
1533 dir) would be used instead, and this could cause problems because a
1534 user-modified docx sometimes lacks vital sections that we count
1535 on the `distArchive` to supply.
1539 + Do not wrap "-" to avoid accidental bullet lists (Alexander Krotov).
1540 + Don't allow fn refs to wrap to beginning of line (#4171, with help from
1541 Alexander Krotov). Otherwise they can be interpreted as footnote
1544 * Muse writer (Alexander Krotov):
1546 + Don't wrap note references to the next line (#4172).
1550 + Use br elements in line blocks instead of relying on CSS
1551 (#4162). HTML-based templates have had the custom CSS for
1552 `div.line-block` removed. Those maintaining custom templates will want
1553 to remove this too. We still enclose line blocks in a div with class
1558 + Use `\renewcommand` for `\textlatin` with babel (#4161).
1559 This avoids a clash with a deprecated `\textlatin` command defined
1561 + Allow fragile=singleslide attribute in beamer slides (#4169).
1562 + Use `\endhead` after `\toprule` in headerless tables (#4207).
1566 + Add cover image specified by `cover-image` meta (Alexander Krotov,
1569 * JATS writer (Hamish Mackenzie):
1571 + Support writing `<fig>` and `<table-wrap>` elements
1572 with `<title>` and `<caption>` inside them by using Divs with class set
1573 to one of `fig`, `table-wrap` or `caption` (Hamish Mackenzie). The
1574 title is included as a Heading so the constraint on where Heading can
1575 occur is also relaxed.
1576 + Leave out empty alt attributes on links.
1577 + Deduplicate image mime type code.
1578 + Make `<p>` optional in `<td>` and `<th>` (#4178).
1579 + Self closing tags for empty xref (#4187).
1580 + Improve support for code language.
1584 + Use init file to setup Lua interpreter (Albert Krewinkel).
1585 The same init file (`data/init`) that is used to setup the Lua
1586 interpreter for Lua filters is also used to setup the interpreter of
1588 + Define instances for newtype wrapper (Albert Krewinkel). The custom
1589 writer used its own `ToLuaStack` instance definitions, which made
1590 it difficult to share code with Lua filters, as this could result
1591 in conflicting instances. A `Stringify` wrapper is introduced to
1593 + Added tests for custom writer.
1594 + Fixed definition lists and tables in `data/sample.lua`.
1596 * Fixed regression: when target is PDF, writer extensions were being
1597 ignored. So, for example, `pandoc -t latex-smart -o file.pdf`
1598 did not work properly.
1600 * Lua modules (Albert Krewinkel):
1602 + Add `pandoc.utils` module, to hold utility functions.
1603 + Create a Haskell module Text.Pandoc.Lua.Module.Pandoc to
1604 define the `pandoc` lua module.
1605 + Make a Haskell module for each Lua module. Move definitions for the
1606 `pandoc.mediabag` modules to a separate Haskell module.
1607 + Move `sha1` from the main `pandoc` module to `pandoc.utils`.
1608 + Add function `pandoc.utils.hierarchicalize` (convert list of
1609 Pandoc blocks into (hierarchical) list of Elements).
1610 + Add function `pandoc.utils.normalize_date` (parses a date and
1611 converts it (if possible) to "YYYY-MM-DD" format).
1612 + Add function `pandoc.utils.to_roman_numeral` (allows conversion
1613 of numbers below 4000 into roman numerals).
1614 + Add function `pandoc.utils.stringify` (converts any AST element
1615 to a string with formatting removed).
1616 + `data/init.lua`: load `pandoc.utils` by default
1617 + Turn pipe, read into full Haskell functions. The `pipe` and `read`
1618 utility functions are converted from hybrid lua/haskell functions
1619 into full Haskell functions. This avoids the need for intermediate
1620 `_pipe`/`_read` helper functions, which have dropped.
1621 + pandoc.lua: re-add missing MetaMap function. This was a bug
1622 introduced in version 2.0.4.
1624 * Text.Pandoc.Class: Add `insertInFileTree` [API change]. This gives
1625 a pure way to insert an ersatz file into a `FileTree`. In addition, we
1626 normalize paths both on insertion and on lookup.
1628 * Text.Pandoc.Shared: export `blocksToInlines'` (API change, Maura Bieg).
1630 * Text.Pandoc.MIME: Add opus to MIME type table as audio/ogg (#4198).
1632 * Text.Pandoc.Extensions: Alphabetical order constructors for
1633 `Extension`. This makes them appear in order in `--list-extensions`.
1635 * Allow lenient decoding of latex error logs, which are not always
1636 properly UTF8-encoded (#4200).
1638 * Update latex template to work with recent versions of beamer.
1639 The old template produced numbered sections with some recent
1640 versions of beamer. Thanks to Thomas Hodgson.
1642 * Updated reference.docx (#4175). Instead of just "Hello, world", the
1643 document now contains exemplars of most of the styles that have an
1644 effect on pandoc documents. This makes it easier to see the effect
1647 * Removed `default.theme` data file (#4096). It is no longer needed now
1648 that we have `--print-highlight-style`.
1650 * Added `stack.lts9.yaml` for building with lts 9 and ghc 8.0.2.
1651 We still need this for the alpine static linux build, since
1652 we don't have ghc 8.2.2 for that yet.
1654 * Removed `stack.pkg.yaml`. We only really need `stack.yaml`; we
1655 can put flag settings for pandoc-citeproc there.
1657 * Makefile: Add 'trypandoc' and 'pandoc-templates' targets to
1658 make releases easier.
1662 + Add note on what formats have `+smart` by default.
1663 + Use native syntax for custom-style (#4174, Mauro Bieg).
1664 + Introduce dedicated Extensions section, since some extensions
1665 affect formats other than markdown (Mauro Bieg, #4204).
1666 + Clarify default html output for `--section-divs` (Richard Edwards).
1668 * filters.md: say that Text.Pandoc.JSON comes form pandoc-types.
1669 Closes jgm/pandoc-website#16.
1671 * epub.md: Delete removed `-S` option from command (#4151, Georger Araújo).
1675 * Fix a bug in 2.0.4, whereby pandoc could not read the theme files
1676 generated with `--print-highlight-style` (#4133). Improve JSON
1677 serialization of styles.
1679 * Fix CSS issues involving line numbers (#4128).
1680 Highlighted code blocks are now enclosed in a div with class `sourceCode`.
1681 Highlighting CSS no longer sets a generic color for pre and code; we only
1682 set these for class `sourceCode`.
1684 * `--pdf-engine-opt`: fix bug where option order was reversed (#4137).
1686 * Add PowerPoint (pptx) writer (Jesse Rosenthal).
1687 It works following the standard Pandoc conventions for making other
1688 sorts of slides. Caveats:
1690 + Syntax highlighting is not yet implemented. (This is difficult
1691 because there are no character classes in Powerpoint.)
1692 + Footnotes and Definition lists are not yet implemented. (Notes will
1693 usually take the form of a final slide.
1694 + Image placement and auto-resizing has a few glitches.
1695 + Reference powerpoint files don't work dependably from the command
1696 line. This will be implemented, but at the moment users are advised
1697 to change themes from within Powerpoint.
1699 * Create shared Text.Pandoc.Writers.OOXML module (Jesse Rosenthal).
1700 This is for functions used by both Powerpoint and Docx writers.
1702 * Add default pptx data for Powerpoint writer (Jesse Rosenthal).
1704 * Add `empty_paragraphs` extension.
1706 + Deprecate `--strip-empty-paragraphs` option. Instead we now
1707 use an `empty_paragraphs` extension that can be enabled on
1708 the reader or writer. By default, disabled.
1709 + Add `Ext_empty_paragraphs` constructor to `Extension`.
1710 + Revert "Docx reader: don't strip out empty paragraphs."
1711 This reverts commit d6c58eb836f033a48955796de4d9ffb3b30e297b.
1712 + Implement `empty_paragraphs` extension in docx reader and writer,
1713 opendocument writer, HTML reader and writer.
1714 + Add tests for `empty_paragraphs` extension.
1718 + Don't parse native div as table caption (#4119).
1719 + Improved computation of column widths in pipe tables.
1720 Pipe tables with lines longer than the text width (as set
1721 by `--columns`) are now scaled to text width, with the relative
1722 widths of columns determined by the ratios between the
1723 header lines. Previously we computed column widths using
1724 the ratio of header line lengths to column width, so that
1725 tables with narrow header lines were extremely thin, which
1726 was very rarely the desired result.
1728 * LaTeX reader: fix `\` before newline (#4134). This should be a space,
1729 as long as it's not followed by a blank line. This has been fixed at the
1732 * Muse reader (Alexander Krotov):
1734 + Add test for `#disable-tables` directive in Emacs mode.
1735 + Don't allow emphasis to be preceded by letter.
1736 + Add underline support in Emacs Muse mode..
1737 + Support multiline directives in Amusewiki mode
1739 * Man writer: omit internal links (#4136). That is, just print the link
1740 text without the URL.
1742 * Markdown reader: accept processing instructions as raw HTML (#4125).
1744 * Lua filters (Albert Krewinkel):
1746 + Use script to initialize the interpreter. The file `init.lua` is
1747 used to initialize the Lua interpreter which is used in Lua filters.
1748 This gives users the option to require libraries which they want to
1749 use in all of their filters, and to extend default modules.
1750 + Fix package loading for Lua 5.1. The list of package searchers is
1751 named `package.loaders` in Lua 5.1 and LuaJIT, and `package.searchers`
1752 in Lua 5.2 and later.
1753 + Refactor lua module handling. The integration with Lua's package/module
1754 system is improved: A pandoc-specific package searcher is prepended to
1755 the searchers in `package.searchers`. The modules `pandoc` and
1756 `pandoc.mediabag` can now be loaded via `require`.
1757 + Bump lower bound of hslua. The release hslua 0.9.3 contains a new
1758 function which makes using Haskell functions as package loaders much
1761 * reveal.js template: add title-slide identifier to title slide (#4120).
1762 This allows it to be styled more easily.
1764 * LaTeX template: Added support for `pagestyle` variable (#4135,
1767 * Add `-threaded` to ghc-options for executable (#4130, fixes a build
1773 * Add `--print-highlight-style` option. This generates a JSON version
1774 of a highlighting style, which can be saved as a `.theme` file, modified,
1775 and used with `--highlight-style` (#4106, #4096).
1777 * Add `--strip-empty-paragraphs` option. This works for any input format.
1778 It is primarily intended for use with docx and odt documents where
1779 empty paragraphs have been used for inter-paragraph spaces.
1781 * Support `--webtex` for `gfm` output.
1783 * Recognize `.muse` file extension.
1785 * Support beamer `\alert` in LaTeX reader. Closes #4091.
1787 * Docx reader: don't strip out empty paragraphs (#2252).
1788 Users who have a conversion pipeline from docx may want to consider adding
1789 `--strip-empty-paragraphs` to the command line.
1791 * Org reader (Albert Krewinkel): Allow empty list items (#4090).
1793 * Muse reader (Alexander Krotov):
1795 + Parse markup in definition list terms.
1796 + Allow definition to end with EOF.
1797 + Make code blocks round trip.
1798 + Drop common space prefix from list items.
1799 + Add partial round trip test.
1800 + Don't interpret XML entities.
1802 + Parse `~~` as non-breaking space in Emacs mode.
1803 + Correctly remove indentation from notes. Exactly one space is
1804 required and considered to be part of the marker.
1805 + Allow list items to be empty.
1806 + Add ordered list test.
1807 + Add more multiline definition tests.
1808 + Don't allow blockquotes within lists.
1809 + Fix reading of multiline definitions.
1810 + Add inline `<literal>` support.
1811 + Concatenate inlines of the same type
1813 * Docx writer: allow empty paragraphs (#2252).
1815 * CommonMark/gfm writer:
1817 + Use raw html for native divs/spans (#4113). This allows a pandoc
1818 markdown native div or span to be rendered in gfm using raw html tags.
1819 + Implement `raw_html` and `raw_tex` extensions. Note that `raw_html`
1820 is enabled by default for `gfm`, while `raw_tex` is disabled by default.
1822 * Muse writer (Alexander Krotov):
1824 + Test that inline math conversion result is normalized.
1825 Without normalization this test produced
1826 `<em>a</em><em>b</em><em>c</em>`.
1827 + Improve inline list normalization and move to writer.
1828 + Escape hash symbol.
1829 + Escape `----` to avoid accidental horizontal rules.
1830 + Escape only `</code>` inside code tag.
1831 + Additional `<verbatim>` is not needed as `<code>` is verbatim already.
1835 + Allow specifying just width or height for image size.
1836 Previously both needed to be specified (unless the image was
1837 being resized to be smaller than its original size).
1838 If height but not width is specified, we now set width to
1839 textwidth. If width but not height is specified, we now set
1840 height to textheight. Since we have `keepaspectratio`, this
1841 yields the desired result.
1842 + Escape `~` and `_` in code with `--listings` (#4111).
1844 * HTML writer: export `tagWithAttributes`. This is a helper allowing
1845 other writers to create single HTML tags.
1847 * Let papersizes `a0`, `a1`, `a2`, ... be case-insensitive by
1848 converting the case as needed in LaTeX and ConTeXt writers.
1850 * Change `fixDisplayMath` from `Text.Pandoc.Writers.Shared`
1851 so that it no longer produces empty `Para`'s as an artifact.
1853 * `Text.Pandoc.Shared.blocksToInlines`: rewrote using builder.
1854 This gives us automatic normalization, so we don't get
1855 for example two consecutive Spaces.
1857 * Include default CSS for 'underline' class in HTML-based templates.
1859 * revealjs template: add `tex2jax` configuration for the
1860 math plugin. With the next release of reveal.js, this will
1861 fix the problem of `$`s outside of math contexts being
1862 interpreted as math delimiters (#4027).
1864 * `pandoc.lua` module for use in lua filters (Albert Krewinkel):
1866 + Add basic lua List module (#4099, #4081). The List module is
1867 automatically loaded, but not assigned to a global variable. It can be
1868 included in filters by calling `List = require 'List'`. Lists of blocks,
1869 lists of inlines, and lists of classes are now given `List` as a metatable,
1870 making working with them more convenient. E.g., it is now possible to
1871 concatenate lists of inlines using Lua's concatenation operator `..`
1872 (requires at least one of the operants to have `List` as a metatable):
1874 function Emph (emph)
1875 local s = {pandoc.Space(), pandoc.Str 'emphasized'}
1876 return pandoc.Span(emph.content .. s)
1879 The `List` metatable is assigned to the tables which get passed to
1880 the constructors `MetaBlocks`, `MetaInline`, and `MetaList`. This
1881 enables the use of the resulting objects as lists.
1882 + `Lua/StackInstances`: push Pandoc and Meta via constructor.
1883 Pandoc and Meta elements are now pushed by calling the respective
1884 constructor functions of the pandoc Lua module. This makes serialization
1885 consistent with the way blocks and inlines are pushed to lua and allows
1886 to use List methods with the `blocks` value.
1887 + Add documentation for pandoc.List in `lua-filters.md`.
1889 * Use latest tagsoup. This fixes a bug in parsing HTML tags with
1890 `&` (but not a valid entity) following them (#4094, #4088).
1892 * Use skylighting 0.4.4.1, fixing the color of unmarked code text
1893 when `numberLines` is used (#4103).
1895 * Make `normalizeDate` more forgiving (Mauro Bieg, #4101), not
1896 requiring a leading 0 on single-digit days.
1898 * Fix `--help` output for `--highlight-style` to include `FILE` (Mauro
1901 * Clearer deprecation warning for `--latexmathml, --asciimathml, -m`.
1902 Previously we only mentioned `--latexmathml`, even if `-m` was
1905 * Changelog: fix description of lua filters in 2.0 release
1906 (Albert Krewinkel). Lua filters were initially run *after* conventional
1907 (JSON) filters. However, this was changed later to make it easier to deal
1908 with files in the mediabag. The changelog is updated to describe that
1909 feature of the 2.0 release correctly.
1911 * Change Generic JSON instances to TemplateHaskell (Jasper Van der Jeugt,
1912 #4085). This reduces compile time and memory usage significantly.
1914 * `lua-filters.md`: Added tikz filter example.
1916 * Create alternative zip file for macOS binaries.
1918 * Create alternative zip file for Windows binaries.
1920 * Update INSTALL.md since we now provide zips for binaries.
1922 * Relax `http-types` dependency (Justus Sagemüller, #4084).
1924 * Add `epub.md`, `getting-started.md` to docs. These used to live in
1927 * Add `packages` target to Makefile.
1929 * Bump bounds for binary, http-types, tasty-hunit
1933 * Lua filters: preload text module (Albert Krewinkel, #4077).
1934 The `text` module is preloaded in lua. The module contains some UTF-8
1935 aware string functions, implemented in Haskell. The module is loaded on
1938 text = require 'text'
1940 s.text = text.upper(s.text)
1944 * Allow table-like access to attributes in lua filters (Albert Krewinkel,
1945 #4071). Attribute lists are represented as associative lists in Lua. Pure
1946 associative lists are awkward to work with. A metatable is attached to
1947 attribute lists, allowing to access and use the associative list as if
1948 the attributes were stored in as normal key-value pair in table.
1949 Note that this changes the way `pairs` works on attribute lists. Instead
1950 of producing integer keys and two-element tables, the resulting iterator
1951 function now returns the key and value of those pairs. Use `ipairs` to
1952 get the old behavior. Warning: the new iteration mechanism only works if
1953 pandoc has been compiled with Lua 5.2 or later (current default: 5.3).
1955 * Text.Pandoc.Parsing.uri: allow `&` and `=` as word characters (#4068).
1956 This fixes a bug where pandoc would stop parsing a URI with an
1957 empty attribute: for example, `&a=&b=` wolud stop at `a`.
1958 (The uri parser tries to guess which punctuation characters
1959 are part of the URI and which might be punctuation after it.)
1961 * Introduce `HasSyntaxExtensions` typeclass (Alexander Krotov, #4074).
1963 + Added new `HasSyntaxExtensions` typeclass for `ReaderOptions` and
1965 + Reimplemented `isEnabled` function from `Options.hs` to accept both
1966 `ReaderOptions` and `WriterOptions`.
1967 + Replaced `enabled` from `CommonMark.hs` with new `isEnabled`.
1969 * Add `amuse` extension (Alexander Krotov) to enable Amuse wiki
1970 behavior for `muse`. New `Ext_amuse` constructor for
1971 `Extension`. Note: this is switched on by default; for
1972 Emacs behavior, use `muse-amuse`.
1974 * Muse reader (Alexander Krotov):
1976 + Count only one space as part of list item marker.
1977 + Produce SoftBreaks on newlines. Now wrapping can be preserved
1978 with `--wrap=preserve`.
1979 + Add Text::Amuse footnote extensions. Footnote end is indicated by
1980 indentation, so footnotes can be placed anywhere in the text,
1981 not just at the end of it.
1982 + Accept Emacs Muse definition lists when `-amuse`.
1983 Emacs Muse does not require indentation.
1987 + Ensure we don't produce level 0 headers (#4076), even for chapter
1988 sections in epubs. This causes problems because writers aren't set
1990 + Allow spaces after `\(` and before `\)` with `tex_math_single_backslash`.
1991 Previously `\( \frac{1}{a} < \frac{1}{b} \)` was not parsed as math in
1992 `markdown` or `html` `+tex_math_single_backslash`.
1993 + Parse div with class `line-block` as LineBlock.
1994 + Don't fail with block-level content in figcaption (Mauro Bieg, #4183).
1996 * MANUAL: clarify that math extensions work with HTML.
1997 Clarify that `tex_math_dollars` and `tex_math_single_backslash`
1998 will work with HTML as well as Markdown.
2000 * Creole reader: Fix performance issue for longer lists (Sascha Wilde,
2003 * RST reader: better support for 'container' directive (#4066).
2004 Create a div, incorporate name attribute and classes.
2008 + Support column specs like `*{2}{r}` (#4056). This is equivalent to
2009 `rr`. We now expand it like a macro.
2010 + Allow optional args for parbox (#4056).
2011 + Allow optional arguments on `\footnote` (#4062).
2013 * EPUB writer: Fixed path for cover image (#4069). It was previously
2014 `media/media/imagename`, and should have been `media/imagename`.
2016 * Markdown writer: fix bug with doubled footnotes in grid tables
2019 * LaTeX template: include natbib/biblatex after polyglossia (#4073).
2020 Otherwise we seem to get an error; biblatex wants polyglossia
2021 language to be defined.
2023 * Added examples to lua filters documentation.
2028 * Deprecated ancient HTML math methods: `--latexmathml`, `--gladtex`,
2029 `--mimetex`, `--jsmath`.
2031 * Fixed URIs in `data/jats.csl`. They were being rendered twice,
2032 leading to invalid XML in default JATS output with pandoc-citeproc.
2034 * `lua-filters.md`: use real-world man page filter as example.
2036 * Add lua filter functions `walk_inline` and `walk_block`
2037 in the pandoc module, to apply filters inside particular
2038 inline and block elements.
2040 * Refactored some code from `Text.Pandoc.Lua.PandocModule`
2041 into new internal module `Text.Pandoc.Lua.Filter`.
2045 + Allow fenced code blocks to be indented 1-3 spaces (#4011).
2046 This brings our handling of them into alignment with CommonMark's.
2047 + Fix YAML metadata with "chomp" (`|-`). Previously if a
2048 YAML block under `|-` contained a blank line, pandoc would
2049 not parse it as metadata.
2051 * Removed `etc.` from abbreviations file. Often `etc.` ends a
2052 sentence, and we want the period to be treated as a
2053 sentence-ending period.
2055 * Fix regression with `--metadata` (#4054). Values specified with
2056 `--metadata` should replace a metadata value set in the document
2057 itself, rather than creating a list including a new value.
2061 + Fix EPUB OCF structure. #3720 had been improperly implemented.
2062 + Fix modified paths for raw HTML tags (src, poster, etc.)
2063 (#4050, #4055). This had not been updated for the new EPUB
2064 container layout, with a separate text/ subdirectory.
2065 + Fix image paths with empty `--epub-subdirectory`.
2067 * Miscellaneous code cleanup (Alexander Krotov).
2069 * Use pandoc-types 1.17.3, which adds `Walkable` instances
2070 for `[Block] Block` and `[Inline] Inline`.
2072 * Remove obsolete `stack.full.yaml` (#4052).
2074 * Change to using pandoc-citeproc 0.12.1 in binary packages.
2076 * Consolidate math output method documentation (#4049, Mauro Bieg).
2078 * `MANUAL.txt`: fix header level of "Extension: emoji" (Albert Krewinkel).
2080 * Use lua filter to generate man page from `MANUAL.txt`, replacing old
2081 Haskell filters. This is easier and faster.
2083 * Improved `INSTALL.md`.
2085 * Update commands to extract deb archive on Linux (#4043, Salim B).
2090 * Improved fix to #3989 (parsing of HTML tags containing
2091 `>` in an attribute or comment). The previous fix (in 2.0.1) only
2092 worked in certain cases.
2094 * FB2 writer (Alexander Krotov):
2096 + Add `unrecognised` genre to `<title-info>`
2097 (Alexander Krotov). XML schema requires at least one genre.
2098 + Remove `<annotation>` from `<body>`.
2100 * CommonMark writer: fix strikethrough for `gfm` (#4038).
2102 * Use texmath 0.10, which adds support for a wider range of
2103 symbols and fixes default column alignments in MathML
2106 * Highlighting fixes, using skylighting 0.4.3.2:
2109 + Support `lineAnchors` (or `line-anchors`) in HTML code blocks.
2110 + Ensure that code lines don't get duplicate identifiers (#4031).
2111 The line identifiers are built using the code block's identifier
2112 as a prefix. If the code block has null identifier, we use
2115 * Added a few abbreviations to `data/abbreviations`,
2116 and sorted the list (#3984, Wandmalfarbe).
2118 * Improved support for columns in HTML writer (#4028).
2120 + Remove `width` attribute from the `div`.
2121 + Remove space between `<div class="column">` elements,
2122 since this prevents columns whose widths sum to 100%
2123 (the space takes up space).
2124 + Move as much as possible of the CSS to the template.
2125 + Ensure that all the HTML-based templates (including epub)
2126 contain the CSS for columns.
2127 + Columns default to 50% width unless they are given a width
2128 attribute. So if you want two equal-width columns, you
2129 can use a div with class `column` and no `width` attribute.
2131 * SelfContained: use `base64` for css links with media attribute (#4026).
2132 This fixes `--self-contained` with S5.
2134 * Improve `pandoc-template-mode.el` (Vaclav Haisman).
2136 * Issue INFO, not WARNING, when a .sty file cannot be
2137 read in LaTeX reader. It is normally not an issue requiring
2138 a fix from the user if .sty files are not found.
2140 * INSTALL.md: MacOS instructions needed xar -f (adam234).
2144 + Clarify that --setext-headers doesn't affect gfm output (#4035).
2145 + Clarify what is needed to open and close a div in `fenced_divs`
2146 (#4039, Tristano Ajmone).
2147 + Removed reference to `default.beamer` in docs (#4024).
2148 Also added mention of other templates affecting PDF output
2149 with different settings.
2153 * Fixed regression in parsing of HTML comments in markdown and other
2154 non-HTML formats (`Text.Pandoc.Readers.HTML.htmlTag`) (#4019).
2155 The parser stopped at the first `>` character, even if it wasn't
2156 the end of the comment.
2158 * Creole reader (Sascha Wilde):
2160 + Fix some minor typos and formatting.
2161 + Add additional test on nowiki-block after para.
2162 + Fix lists with trailing white space.
2164 * LaTeX reader: handle `%` comment right after command.
2165 For example, `\emph%`.
2167 * Markdown reader: make sure fenced div closers work in lists.
2168 Previously the following failed:
2175 and you needed a blank line before the closing `:::`.
2177 * Make `fenced_divs` affect the Markdown writer. If `fenced_divs` is
2178 enabled, Divs will be rendered as fenced divs.
2180 * LaTeX/Beamer writer: support "blocks" inside columns and other Divs
2183 * HTML Writer: consistently use dashed class-names (Mauro Bieg, #3556).
2184 Note: this change may require some changes in CSS rules.
2185 `footnoteRef` has become `footnote-ref`, `titleslide` has
2186 become `title-slide`, and `footnoteBack` has become `footnote-back`.
2188 * JATS writer: Properly pass through author metadata (#4020).
2190 * FB2 writer (Alexander Krotov):
2192 + Write blocks outside of `<p>` in definitions.
2193 + Make bullet lists consistent with ordered lists, repeating
2194 the marker for the outer list rather than indenting sublists,
2195 since indentation does not work in readers.
2196 + Add new style FB2 tests.
2198 * `Text.Pandoc.ImageSize`: Add `Millimeter` constructor to `Dimension`
2199 (#4012) [API change]. Now sizes given in 'mm' are no longer converted
2202 * Revise documentation of small caps syntax (Andrew Dunning, #4013).
2204 * Fix broken reference links in manual (Andrew Dunning, #4014)
2206 * Fixed example of slide columns structure in changelog (#4015).
2207 Also documented this feature in MANUAL.txt.
2214 + Fixed filepaths for nonstandard epub-subdirectory values.
2215 + Ensure that epub2 is recognized as a non-text format,
2216 so that a template is used.
2217 + Don't include "prefix" attribute for ibooks for epub2.
2218 It doesn't validate.
2219 + Fix stylesheet paths; previously we had an incorrect
2220 stylesheet path for the cover page and nav page.
2224 + Insert space when needed in macro expansion (#4007).
2225 Sometimes we need to insert a space after a control sequence
2226 to prevent it merging with a following letter.
2227 + Allow unbraced arguments for macros (#4007).
2228 + Allow body of macro definition to be unbraced (#4007).
2230 * Linux package build: ensure that pandoc-citeproc is statically linked.
2232 * trypandoc: add native, ms.
2238 * New output format `ms` (groff ms). Complete support, including
2239 tables, math, syntax highlighting, and PDF bookmarks. The writer uses
2240 texmath's new eqn writer to convert math to eqn format, so a ms file
2241 produced with this writer should be processed with `groff -ms -e` if
2244 * New output format `jats` (Journal Article Tag Suite). This is an XML
2245 format used in archiving and publishing articles. Note that a
2246 URI-encoded CSL stylesheet (`data/jats.csl`) is added automatically
2247 unless a stylesheet is specified using `--css`.
2249 * New output format `gfm` (GitHub-flavored CommonMark) (#3841).
2250 This uses bindings to GitHub's fork of cmark, so it should parse
2251 gfm exactly as GitHub does (excepting certain postprocessing
2252 steps, involving notifications, emojis, etc.). `markdown_github`
2253 has been deprecated in favor of `gfm`.
2255 * New output format `muse` (Emacs Muse) (Alexander Krotov, #3489).
2257 * New input format `gfm` (GitHub-flavored CommonMark) (#3841).
2258 This uses bindings to GitHub's fork of cmark. `markdown_github`
2259 has been deprecated in favor of `gfm`.
2261 * New input format `muse` (Emacs Muse) reader (Alexander Krotov, #3620).
2263 * New input format `tikiwiki` (TikiWiki markup) (rlpowell, #3800).
2265 * New input format `vimwiki` (Vimwiki markup) (Yuchen Pei, #3705).
2266 Note that there is a new data file, `data/vimwiki.css`, which can
2267 be used to display the HTML produced by this reader and
2268 pandoc's HTML writer in the style of vimwiki's own HTML
2271 * New input format `creole` (Creole 1.0) (#3994, Sascha Wilde).
2273 * New syntax for Divs, with `fenced_divs` extension enabled by
2274 default (#168). This gives an attractive, plain-text way to create
2275 containers for block-level content.
2277 * Added new syntax for including raw content in any output format,
2278 enabled by the `raw_attribute` extension (which is on by default
2279 for `markdown` and `multimarkdown`). The syntax is the same as
2280 for fenced code blocks or code inlines, only with `{=FORMAT}` for
2281 attributes, where `FORMAT` is the name of the output format
2282 (e.g., `ms`, `html`).
2284 * Implement multicolumn support for slide formats (#1710).
2285 The structure expected is:
2287 :::::::::::::: {.columns}
2288 ::: {.column width="40%"}
2291 ::: {.column width="60%"}
2296 Support has been added for beamer and all HTML slide formats.
2298 * Allows line comments in templates, beginning with `$--` (#3806).
2299 (Requires doctemplates 0.2.1.)
2301 * Add `--eol=crlf|lf|native` flag and writer option to control line endings
2302 (Stefan Dresselhaus, #3663, #2097).
2304 * Add `--log` option to save log messages in JSON format to a file (#3392).
2306 * Add `--request-header` option, to set request headers when pandoc
2307 makes HTTP requests to fetch external resources. For example:
2308 `--request-header User-Agent:blah`.
2310 * Added lua filters (Albert Krewinkel, #3514). The new `--lua-filter`
2311 option works like `--filter` but takes pathnames of special lua filters
2312 and uses the lua interpreter baked into pandoc, so that no external
2313 interpreter is needed. Note that lua filters are all applied before
2314 regular filters, regardless of their position on the command line.
2315 For documentation of lua filters, see `doc/lua-filters.md`.
2317 * Set `PANDOC_READER_OPTIONS` in environment where filters are run.
2318 This contains a JSON representation of `ReaderOptions`, so filters
2321 * Support creation of pdf via groff `ms` and pdfroff.
2322 `pandoc -t ms -o output.pdf input.txt`.
2324 * Support for PDF generation via HTML and `weasyprint` or `prince`
2325 (Mauro Bieg, #3909). `pandoc -t html5 -o output.pdf --pdf-engine=prince`.
2327 * Added `--epub-subdirectory` option (#3720). This specifies the
2328 subdirectory in the OCF container that holds the EPUB specific content.
2329 We now put all EPUB related content in an `EPUB/` subdirectory by default
2330 (later this will be configurable).
2335 com.apple.ibooks.display-options.xml
2337 EPUB/ <<--configurable-->>
2338 fonts/ <<--static-->>
2340 media/ <<--static-->>
2343 styles/ <<--static-->>
2347 text/ <<--static-->>
2351 * Added `--resource-path=SEARCHPATH` command line option (#852).
2352 SEARCHPATH is separated by the usual character, depending on OS
2353 (: on unix, ; on windows). Default resource path is just working
2354 directory. However, the working directory must be explicitly
2355 specified if the `--resource-path` option is used.
2357 * Added `--abbreviations=FILE` option for custom abbreviations file
2358 (#256). Default abbreviations file (`data/abbreviations`) contains
2359 a list of strings that will be recognized by pandoc's
2360 Markdown parser as abbreviations. (A nonbreaking space will
2361 be inserted after the period, preventing a sentence space in
2362 formats like LaTeX.) Users can override the default by putting a file
2363 abbreviations in their user data directory (`~/.pandoc` on *nix).
2365 * Allow a theme file as argument to `--highlight-style`.
2366 Also include a sample, `default.theme`, in `data/`.
2368 * Allow `--syntax-definition` option for dynamic loading of syntax
2369 highlighting definitions (#3334).
2371 * Lists in `markdown` by default now use the CommonMark variable
2372 nesting rules (#3511). The indentation required for a block-level
2373 item to be included in a list item is no longer fixed, but is
2374 determined by the first line of the list item. To be included in
2375 the list item, a block must be indented to the level of the first
2376 non-space content after the list marker. Exception: if are 5 or more
2377 spaces after the list marker, then the content is interpreted as an
2378 indented code block, and continuation paragraphs must be indented
2379 two spaces beyond the end of the list marker. See the CommonMark
2380 spec for more details and examples.
2382 Documents that adhere to the four-space rule should, in most cases,
2383 be parsed the same way by the new rules. Here are some examples
2384 of texts that will be parsed differently:
2389 will be parsed as a list item with a sublist; under the four-space
2390 rule, it would be a list with two items.
2396 Here we have an indented code block under the list item, even though it
2397 is only indented six spaces from the margin, because it is four spaces
2398 past the point where a continuation paragraph could begin. With the
2399 four-space rule, this would be a regular paragraph rather than a code
2406 Here the code block will start with two spaces, whereas under
2407 the four-space rule, it would start with `code`. With the four-space
2408 rule, indented code under a list item always must be indented eight
2409 spaces from the margin, while the new rules require only that it
2410 be indented four spaces from the beginning of the first non-space
2411 text after the list marker (here, `a`).
2413 This change was motivated by a slew of bug reports from people
2414 who expected lists to work differently (#3125, #2367, #2575, #2210,
2415 #1990, #1137, #744, #172, #137, #128) and by the growing prevalance
2416 of CommonMark (now used by GitHub, for example). Those who
2417 prefer the old behavior can use `-f markdown+four_space_rule`.
2419 * Added `four_space_rule` extension. This triggers the old pandoc
2420 parsing rule for content nested under list items (the "four space
2423 * Added `spaced_reference_links` extension (#2602). It allows whitespace
2424 between the two parts of a reference link: e.g.
2430 This was previously enabled by default; it is now forbidden by default.
2432 * Add `space_in_atx_header` extension (#3512). This is enabled by default
2433 in pandoc and GitHub markdown but not the other flavors.
2434 This requires a space between the opening #'s and the header
2435 text in ATX headers (as CommonMark does but many other implementations
2436 do not). This is desirable to avoid falsely capturing things like
2444 * Add `sourcefile` and `outputfile` template variables (Roland Hieber,
2447 * Allow ibooks-specific metadata in epubs (#2693). You can now have
2448 the following fields in your YAML metadata, and it will be treated
2449 appropriately in the generated EPUB:
2454 specified-fonts: false
2455 ipad-orientation-lock: portrait-only
2456 iphone-orientation-lock: landscape-only
2458 scroll-axis: vertical
2464 * Reader functions no longer presuppose that CRs have been
2465 stripped from the input. (They strip CRs themselves, before
2466 parsing, to simplify the parsers.)
2468 * Added support for translations (localization) (#3559).
2469 Currently this only affects the LaTeX reader, for things
2470 like `\figurename`. Translation data files for 46 languages
2471 can be found in `data/translations`.
2473 * Make `--ascii` work with DocBook output too.
2475 * Rename `--latex-engine` to `--pdf-engine`,
2476 and `--latex-engine-opt` to `--pdf-engine-opt`.
2478 * Removed `--parse-raw` and `readerParseRaw`. These were confusing.
2479 Now we rely on the `+raw_tex` or `+raw_html` extension with latex or html
2480 input. Thus, instead of `--parse-raw -f latex` we use `-f latex+raw_tex`,
2481 and instead of `--parse-raw -f html` we use `-f html+raw_html`.
2483 * With `--filter` R filters are now recognized, even if they are
2484 not executable (#3940, #3941, Andrie de Vries).
2486 * Support SVG in PDF output, converting with `rsvg2pdf` (#1793).
2488 * Make epub an alias for epub3, not epub2.
2490 * Removed `--epub-stylesheet`; use `--css` instead (#3472, #847).
2491 Multiple stylesheets may be used. Stylesheets will be taken both from
2492 `--css` and from the `stylesheet` metadata field (which can contain
2493 either a file path or a list of them).
2495 * `--mathml` and MathML in HTMLMathMethod no longer take an argument.
2496 The argument was for a bridge JavaScript that used to be necessary
2497 in 2004. We have removed the script already.
2499 * `--katex` improvements. The latest version is used, and the
2500 autoload script is loaded by default.
2502 * Change MathJax CDN default since old one is shutting down (#3544).
2503 Note: The new URL requires a version number, which we'll have
2504 to update manually in subsequent pandoc releases in order to
2505 take advantage of mathjax improvements.
2507 * `--self-contained`: don't incorporate elements with `data-external="1"`
2508 (#2656). You can leave an external link as it is by adding the attribute
2509 data-external="1" to the element. Pandoc will then not try to
2510 incorporate its content when `--self-contained` is used. This is
2511 similar to a feature already supported by the EPUB writer.
2513 * Allow `--extract-media` to work with non-binary input formats
2514 (#1583, #2289). If `--extract-media` is supplied with a non-binary
2515 input format, pandoc will attempt to extract the contents of all
2516 linked images, whether in local files, data: uris, or external uris.
2517 They will be named based on the sha1 hash of the contents.
2519 * Make `papersize: a4` work regardless of the case of `a4`.
2520 It is converted to `a4` in LaTeX and `A4` in ConTeXt.
2522 * Make `east_asian_line_breaks` affect all readers/writers (#3703).
2524 * Underlined elements are now treated consistently by readers
2525 (#2270, hftf); they are always put in a Span with class `underline`.
2526 This allows the user to treat them differently from other emphasis,
2527 using a filter. Docx, Org, Textile, Txt2Tags, and HTML readers
2530 * Improved behavior of `auto_identifiers` when there are explicit ids
2531 (#1745). Previously only autogenerated ids were added to the list
2532 of header identifiers in state, so explicit ids weren't taken
2533 into account when generating unique identifiers. Duplicated
2534 identifiers could result. This simple fix ensures that explicitly given
2535 identifiers are also taken into account.
2537 * Use `table-of-contents` for contents of toc, make `toc` a boolean
2538 (#2872). Changed markdown, rtf, and HTML-based templates accordingly.
2539 This allows you to set `toc: true` in the metadata; this
2540 previously produced strange results in some output formats.
2541 For backwards compatibility, `toc` is still set to the
2542 toc contents. But it is recommended that you update templates
2543 to use `table-of-contents` for the toc contents and `toc`
2546 * Change behavior with binary format output to stdout.
2547 Previously, for binary formats, output to stdout was disabled
2548 unless we could detect that the output was being piped (and not
2549 sent to the terminal). Unfortunately, such detection is not
2550 possible on Windows, leaving windows users no way to pipe binary
2551 output. So we have changed the behavior in the following way:
2553 + Output to stdout is allowed when it can be determined that
2554 the output is being piped (on non-Windows platforms).
2555 + If the `-o` option is not used, binary output is never sent
2556 to stdout by default; instead, an error is raised.
2557 + If `-o -` is used, binary output is sent to stdout, regardless
2558 of whether it is being piped. This works on Windows too.
2560 * Better error behavior: uses of `error` have been replaced by
2561 raising of `PandocError`, which can be trapped and handled by the
2564 * Removed `hard_line_breaks` extension from `markdown_github` (#3594).
2565 GitHub has two Markdown modes, one for long-form documents like READMEs
2566 and one for short things like issue comments. In issue comments, a line
2567 break is treated as a hard line break. In README, wikis, etc., it is
2568 treated as a space as in regular Markdown. Since pandoc is more likely to
2569 be used to convert long-form documents from GitHub Markdown,
2570 `-hard_line_breaks` is a better default.
2572 * Include `backtick_code_blocks` extension in `mardkown_mmd` (#3637).
2574 * Escape `MetaString` values (as added with `-M/--metadata` flag) (#3792).
2575 Previously they would be transmitted to the template without any
2576 escaping. Note that `--M title='*foo*'` yields a different result from
2582 In the latter case, we have emphasis; in the former case, just
2583 a string with literal asterisks (which will be escaped
2584 in formats, like Markdown, that require it).
2586 * Allow `em`, `cm`, `in` for image height/width in HTML, LaTeX (#3450).
2588 * HTML writer: Insert `data-` in front of unsupported attributes. Thus,
2589 a span with attribute `foo` gets written to HTML5 with `data-foo`, so
2590 it is valid HTML5. HTML4 is not affected. This will allow us to use
2591 custom attributes in pandoc without producing invalid HTML. (With help
2592 from Wandmalfarbe, #3817.)
2594 * Plain writer: improved super/subscript rendering. We now
2595 handle more non-digit characters for which there are
2596 sub/superscripted unicode characters. When unicode
2597 sub/superscripted characters are not available, we use
2598 `_(..)` or `^(..)` (#3518).
2600 * Docbook, JATS, TEI writers: print INFO message when omitting interior
2601 header (#3750). This only applies to section headers inside list items,
2602 e.g., which were otherwise silently omitted.
2604 * Change to `--reference-links` in Markdown writer (#3701). With
2605 `--reference-location` of `section` or `block`, pandoc will now repeat
2606 references that have been used in earlier sections. The Markdown
2607 reader has also been modified, so that *exactly* repeated references
2608 do not generate a warning, only references with the same label but
2609 different targets. The idea is that, with references after every block,
2610 one might want to repeat references sometimes.
2612 * ODT/OpenDocument writer:
2614 + Support `lang` attribute (#1667).
2615 + Added support for `--toc` (#2836). Thanks to @anayrat.
2619 + `lang` meta, see #1667 (Mauro Bieg, #3515).
2620 + Change `FigureWithCaption` to `CaptionedFigure` (iandol, #3658).
2621 + Use `Table` rather than `Table Normal` for table style (#3275).
2622 `Table Normal` is the default table style and can't be modified.
2623 + Pass through comments (#2994). We assume that comments are defined as
2624 parsed by the docx reader:
2626 I want <span class="comment-start" id="0" author="Jesse Rosenthal"
2627 date="2016-05-09T16:13:00Z">I left a comment.</span>some text to
2628 have a comment <span class="comment-end" id="0"></span>on it.
2630 We assume also that the id attributes are unique and properly
2631 matched between comment-start and comment-end.
2632 + Bookmark improvements. Bookmark start/end now surrounds content rather
2633 than preceding it. Bookmarks generated for Div with id
2634 (jgm/pandoc-citeproc#205).
2635 + Add `keywords` metadata to docx document properties (Ian).
2637 * RST writer: support unknown interpreted text roles by
2638 parsing them as `Span` with `role` attributes (#3407). This
2639 way they can be manipulated in the AST.
2643 + Line block: Use class instead of style attribute (#1623). We now
2644 issue `<div class="line-block">` and include a default definition
2645 for `line-block` in the default templates, instead of hard-coding a
2647 + Add class `footnoteBack` to footnote back references (Timm Albers).
2648 This allows for easier CSS styling.
2649 + Render SmallCaps as span with smallcaps class (#1592), rather than
2650 using a style attribute directly. This gives the user more flexibility
2651 in styling small caps in CSS.
2652 + With reveal.js we use `data-src` instead of `src` for images for
2654 + Special-case `.stretch` class for images in reveal.js (#1291).
2655 Now in reveal.js, an image with class `stretch` in a paragraph
2656 by itself will stretch to fill the whole screen, with no
2657 caption or figure environment.
2659 * Added warnings for non-rendered blocks to writers.
2661 * Writers now raise an error on template failure.
2663 * When creating a PDF via LaTeX, warn if the font is missing some
2666 * Remove initial check for PDF-creating program (#3819).
2667 Instead, just try running it and raise the exception if it
2668 isn't found at that point. This improves things for users of Cygwin
2669 on Windows, where the executable won't be found by `findExecutable`
2670 unless `.exe` is added. The same exception is raised as before, but
2673 * Readers issue warning for duplicate header identifiers (#1745).
2674 Autogenerated header identifiers are given suffixes so as not to clash
2675 with previously used header identifiers. But they may still coincide with
2676 an explicit identifier that is given for a header later in the document,
2677 or with an identifier on a div, span, link, or image. We now issue
2678 a warning in this case, so users can supply an explicit identifier.
2680 * CommonMark reader now supports `emoji`, `hard_line_breaks`, `smart`,
2681 and `raw_html` extensions.
2685 + Don't allow backslash + newline to affect block structure (#3730).
2686 Note that as a result of this change, the following, which formerly
2687 produced a header with two lines separated by a line break, will
2688 now produce a header followed by a paragraph:
2693 This may affect some existing documents that relied on
2694 this undocumented and unintended behavior. This change makes pandoc
2695 more consistent with other Markdown implementations, and with itself
2696 (since the two-space version of a line break doesn't work inside ATX
2697 headers, and neither version works inside Setext headers).
2699 + A space between the opening # and the header is now required for
2700 pandoc and GitHub markdown (but not the other flavors). Disable
2701 the `space_in_atx_header` extension (#3512) to restore the
2705 * Org reader (Albert Krewinkel, unless noted):
2707 + Support `table.el` tables (#3314).
2708 + Support macros (#3401).
2709 + Support the `#+INCLUDE:` file inclusion mechanism (#3510).
2710 Recognized include types are `example`, `export`, `src`, and
2711 normal org file inclusion. Advanced features like line numbers
2712 and level selection are not implemented yet.
2713 + Interpret more meta value as inlines. The values of the following
2714 meta variables are now interpreted using org-markup instead of
2715 treating them as pure strings: `keywords` (comma-separated list of
2716 inlines), `subtitle` (inline values), `nocite` (inline values, can
2718 + Support `\n` export option (#3940). This turns all newlines in the
2719 text into hard linebreaks.
2723 + Improved admonition support (#223). We no longer add an
2724 `admonition` class, we just use the class for the type of admonition,
2725 `note` for example. We put the word corresponding to the label in
2726 a paragraph inside a `Div` at the beginning of the admonition with
2727 class `admonition-title`. This is about as close as we can get to
2729 + Initial support of `.. table` directive. This allows adding captions
2731 + Support `.. line-block` directive. This is deprecated but may still
2732 be in older documents.
2733 + Support scale and align attributes of images (#2662).
2734 + Implemented implicit internal header links (#3475).
2735 + Support RST-style citations (#853). The citations appear at the end
2736 of the document as a definition list in a special div with id
2737 `citations`. Citations link to the definitions.
2738 + Recurse into bodies of unknown directives (#3432).
2739 In most cases it's better to preserve the content than
2740 to emit it. This isn't guaranteed to have good results;
2741 it will fail spectacularly for unknown raw or verbatim directives.
2742 + Handle chained link definitions (#262). For example,
2745 .. _goodbye: example.com
2747 Here both `hello` and `goodbye` should link to `example.com`.
2748 + Support anchors (#262). E.g.
2756 This is supported by putting "paragraph" in a `Div` with id `hello`.
2757 + Support `:widths:` attribute for table directive.
2758 + Implement csv-table directive (#3533). Most attributes are supported,
2759 including `:file:` and `:url:`.
2760 + Support unknown interpreted text roles by parsing them as Span
2761 with "role" attributes (#3407). This way they can be manipulated in
2764 * HTML reader: parse a span with class `smallcaps` as `SmallCaps`.
2768 + Implemented `\graphicspath` (#736).
2769 + Properly handle column prefixes/suffixes. For example, in
2770 `\begin{tabular}{>{$}l<{$}>{$}l<{$} >{$}l<{$}}`
2771 each cell will be interpreted as if it has a `$`
2772 before its content and a `$` after (math mode).
2773 + Handle komascript `\dedication` (#1845). It now adds a
2774 `dedication` field to metadata. It is up to the user to supply
2775 a template that uses this variable.
2776 + Support all `\textXX` commands, where XX = `rm`, `tt`, `up`, `md`,
2777 `sf`, `bf` (#3488). Spans with a class are used when there is
2779 + Expand `\newenvironment` macros (#987).
2780 + Add support for LaTeX subfiles package (Marc Schreiber, #3530).
2781 + Better support for subfigure package (#3577).
2782 A figure with two subfigures turns into two pandoc
2783 figures; the subcaptions are used and the main caption
2784 ignored, unless there are no subcaptions.
2785 + Add support for \vdots (Marc Schreiber, #3607).
2786 + Add basic support for hyphenat package (Marc Schreiber, #3603).
2787 + Add basic `\textcolor` support (Marc Schreiber).
2788 + Add support for `tabularx` environment (Marc Schreiber, #3632).
2789 + Better handling of comments inside math environments (#3113).
2790 This solves a problem with commented out `\end{eqnarray}` inside
2791 an eqnarray (among other things).
2792 + Parse tikzpicture as raw verbatim environment if `raw_tex` extension
2793 is selected (#3692). Otherwise skip with a warning. This is better
2794 than trying to parse it as text!
2795 + Add `\colorbox` support (Marc Schreiber).
2796 + Set identifiers on Spans used for `\label`.
2797 + Have `\setmainlanguage` set `lang` in metadata.
2798 + Support etoolbox's `\ifstrequal`.
2799 + Support `plainbreak`, `fancybreak` et al from the memoir class
2800 (bucklereed, #3833).
2801 + Support `\let`. Also, fix regular macros so they're expanded at the
2802 point of use, and NOT also the point of definition. `\let` macros,
2803 by contrast, are expanded at the point of definition. Added an
2804 `ExpansionPoint` field to `Macro` to track this difference.
2805 + Support simple `\def` macros. Note that we still don't support
2806 macros with fancy parameter delimiters, like `\def\foo#1..#2{...}`.
2807 + Support \chaptername, \partname, \abstractname, etc. (#3559,
2809 + Put content of `\ref`, `\label`, `\eqref` commands into `Span` with
2810 attributes, so they can be handled in filters (Marc Schreiber, #3639)
2811 + Add Support for `glossaries` and `acronym` package (Marc Schreiber,
2812 #3589). Acronyms are not resolved by the reader, but acronym and
2813 glossary information is put into attributes on Spans so that they
2814 can be processed in filters.
2815 + Use `Link` instead of `Span` for `\ref`. This makes more sense
2816 semantically and avoids unnecessary `Span [Link]` nestings when
2817 references are resolved.
2818 + Rudimentary support for `\hyperlink`.
2819 + Support `\textquoteleft|right`, `\textquotedblleft|right` (#3849).
2820 + Support `\lq`, `\rq`.
2821 + Implement `\newtoggle`, `\iftoggle`, `\toggletrue|false` from etoolbox
2823 + Support `\RN` and `\Rn`, from biblatex (bucklereed, #3854).
2824 + Improved support for `\hyperlink`, `\hypertarget` (#2549).
2825 + Support `\k` ogonek accent.
2826 + Improve handling of accents. Handle ogonek, and fall back correctly
2827 with forms like `\"{}`.
2828 + Better support for ogonek accents.
2829 + Support for `\faCheck` and `\faClose` (Marc Schreiber, #3727).
2830 + Support for `xspace` (Marc Schreiber, #3797).
2831 + Support `\setmainlanguage` or `\setdefaultlanguage` (polyglossia)
2833 + Better handling of `\part` in LaTeX (#1905). Now we parse chapters as
2834 level 0 headers, and parts as level -1 headers. After parsing, we
2835 check for the lowest header level, and if it's less than 1 we bump
2836 everything up so that 1 is the lowest header level. So `\part` will
2837 always produce a header; no command-line options are needed.
2838 + Add block version of `\textcolor` (Marc Schreiber).
2839 + `\textcolor` works as inline and block command (Marc Schreiber).
2840 + `\textcolor` will be parse as span at the beginning of a paragraph
2842 + Read polyglossia/babel `\text(LANG){...}` (bucklereed)
2843 + Improved handling of include files in LaTeX reader (#3971).
2844 Previously `\include` wouldn't work if the included file
2845 contained, e.g., a begin without a matching end.
2846 + Support `\expandafter` (#3983).
2847 + Handle `\DeclareRobustCommand` (#3983). Currently it's just treated
2848 as a synonym for `\newcommand`.
2849 + Handle `\lettrine` (Mauro Bieg).
2851 * Math improvements due to updates in texmath:
2853 + Improved handling of accents and upper/lower delimiters.
2854 + Support for output in GNU eqn format (used with *roff).
2855 + Allow `\boldsymbol` + a token without braces, and similarly
2856 with other styling commands.
2857 + Improve parsing of `\mathop` to allow multi-character operator names.
2858 + Add thin space after math operators when "faking it with
2861 * `walk` is now used instead of `bottomUp` in the `ToJSONFilter`
2862 instance for `a -> [a]` (pandoc-types). Note that behavior
2863 will be slightly different, since `bottomUp`'s treatment of
2864 a function `[a] -> [a]` is to apply it to each sublist of a
2865 list, while walk applies it only to maximal sublists.
2866 Usually the latter behavior is what is wanted, and the
2867 former can be simulated when needed. But there may be
2868 existing filters that need to be rewritten in light of the
2869 new behavior. Performance should be improved.
2871 * There are some changes to syntax highlighting due to revisions
2872 in the `skylighting` library:
2874 + Support for `powershell` has been added, and many syntax
2875 definitions have been updated.
2876 + Background colors have been added to the `kate` style.
2877 + The way highlighted code blocks are formatted in HTML has
2878 been changed (David Baynard), in ways that may require
2879 changes in hard-coded CSS affecting highlighting.
2880 (If you haven't included hard-coded highlighting CSS in
2881 your template, you needn't change anything.)
2886 * New module `Text.Pandoc.Class` (Jesse Rosenthal, John MacFarlane).
2887 This contains definitions of the `PandocMonad` typeclass, the
2888 `PandocIO` and `PandocPure` monads, and associated functions.
2890 * Changed types of all writers and readers.
2892 + We now use `Text` instead of `String` in the interface (#3731).
2893 (We have not yet changed the internals of most readers to work
2894 with `Text`, but making this change in the API now opens up a
2895 path to doing that.)
2896 + The result is now of form `m a` with constraint `PandocMonad m`.
2897 Readers and writers can be combined to form monadic values which
2898 can be run using either `runIO` or `runPure`. If `runIO` is used,
2899 then both readers and writers will be able to do IO when needed
2900 (for include files, for example); if `runPure` is used,
2901 then the functions are pure and will not touch IO.
2902 + Where previously you used
2903 `writeRST def (readMarkdown def "[foo](url)")`, now you
2905 `runPure $ readMarkdown def (pack "[foo](url)") >>= writeRST def`.
2907 * New module `Text.Pandoc.Readers` (Albert Krewinkel). This
2908 contains reader helper functions formerly defined in the
2909 top-level `Text.Pandoc` module.
2911 + Changed `StringReader` -> `TextReader`.
2912 + `getReader` now returns a pair of a reader and
2913 `Extensions`, instead of building the extensions into the
2914 reader (#3659). The calling code must explicitly set
2915 `readerExtensions` using the `Extensions` returned. The
2916 point of the change is to make it possible for the calling
2917 code to determine what extensions are being used.
2919 * New module `Text.Pandoc.Writers` (Albert Krewinkel).
2920 This contains writer helper functions formerly defined in the
2921 top-level `Text.Pandoc` module.
2923 + Changed `StringWriter` -> `TextWriter`.
2924 + `getWriter` now returns a pair of a reader and
2925 `Extensions`, instead of building the extensions into the
2926 reader (#3659). The calling code must explicitly set
2927 `readerExtensions` using the `Extensions` returned. The
2928 point of the change is to make it possible for the calling
2929 code to determine what extensions are being used.
2931 * New module `Text.Pandoc.Lua`, exporting `runLuaFilter` (Albert Krewinkel,
2934 * New module `Text.Pandoc.App`. This abstracts out the functionality
2935 of the command line program (`convertWithOpts`), so it can be reproduced
2936 e.g. in a desktop or web application. Instead of exiting, we throw errors
2937 (#3548), which are caught (leading to exit) in pandoc.hs, but allow other
2938 users of `Text.Pandoc.App` to recover. `pandoc.hs` is now a 2-liner.
2939 The module also exports some utility functions for parsing options
2940 and running filters.
2942 * New module `Text.Pandoc.Logging` (exported module) (#3392).
2943 This now contains the `Verbosity` definition previously in
2944 `Text.Pandoc.Options`, as well as a new `LogMessage` datatype that will
2945 eventually be used instead of raw strings for warnings. This will enable
2946 us, among other things, to provide machine-readable warnings if desired.
2947 Include ToJSON instance and showLogMessage. This gives us the possibility
2948 of both machine-readable and human-readable output for log messages.
2950 * New module `Text.Pandoc.BCP47`, with `getLang`, `Lang(..)`, `parseBCP47`.
2952 * New module `Text.Pandoc.Translations`, exporting `Term`,
2953 `Translations`, `readTranslations`.
2955 * New module `Text.Pandoc.Readers.LaTeX.Types', exporting `Macro`, `Tok`,
2956 `TokType`, `Line`, `Column`.
2958 * `Text.Pandoc.Error`: added many new constructors for `PandocError`.
2960 * Expose some previously private modules (#3260). These are often
2961 helpful to people writing their own reader or writer modules:
2963 + `Text.Pandoc.Writers.Shared`
2964 + `Text.Pandoc.Parsing`
2965 + `Text.Pandoc.Asciify`
2966 + `Text.Pandoc.Emoji`
2967 + `Text.Pandoc.ImageSize`
2968 + `Text.Pandoc.Highlighting`
2970 * New module `Text.Pandoc.Extensions` (Albert Krewinkel):
2971 Extension parsing and processing functions were defined in the top-level
2972 `Text.Pandoc` module. These functions are moved to the Extensions
2973 submodule as to enable reuse in other submodules.
2975 * Add `Ext_raw_attribute` constructor for `Extension`.
2977 * Add `Ext_fenced_divs` constructor for `Extension'.
2979 * Add `Ext_four_space_rule` constructor in `Extension`.
2981 * Add `Ext_gfm_auto_identifiers` constructor for `Extension`.
2983 * Add `Monoid` instance for `Extensions`.
2985 * Add `Text.Pandoc.Writers.Ms`, exporting `writeMs`.
2987 * Add `Text.Pandoc.Writers.JATS`, exporting `writeJATS`.
2989 * Add `Text.Pandoc.Writers.Muse`, exporting `writeMuse`.
2991 * Add `Text.Pandoc.Readers.Muse`, exporting `readMuse`.
2993 * Add `Text.Pandoc.Readers.TikiWiki`, exporting `readTikiWiki`.
2995 * Add `Text.Pandoc.Readers.Vimwiki`, exporting `readVimwiki`.
2997 * Add `Text.Pandoc.Readers.Creole`, exporting `readCreole`.
2999 * Export `setVerbosity` from `Text.Pandoc`.
3001 * `Text.Pandoc.Pretty`: Add `Eq` instance for `Doc`.
3003 * `Text.Pandoc.XML`: `toEntities`: changed type to `Text -> Text`.
3005 * `Text.Pandoc.UTF8`:
3007 + Export `fromText`, `fromTextLazy`, `toText`, `toTextLazy`.
3008 Define `toString`, `toStringLazy` in terms of them.
3009 + Add new functions parameterized on `Newline`: `writeFileWith`,
3010 `putStrWith`, `putStrLnWith`, `hPutStrWith`, `hPutStrLnWith`.
3012 * `Text.Pandoc.MediaBag`: removed `extractMediaBag`.
3014 * `Text.Pandoc.Highlighting`:
3016 + `highlighting` now returns an Either rather than Maybe.
3017 This allows us to display error information returned by the skylighting
3018 library. Display a warning if the highlighting library throws an error.
3019 + Add parameter for `SyntaxMap` to `highlight`.
3021 * `Text.Pandoc.Writers.Math`:
3023 + Export `defaultMathJaxURL`, `defaultKaTeXURL`. This will ensure that
3024 we only need to update these in one place.
3026 * `Text.Pandoc.SelfContained`:
3028 + Removed `WriterOptions` parameter from `makeSelfContained`.
3029 + Put `makeSelfContained` in PandocMonad instead of IO. This removes
3030 the need to pass MediaBag around and improves exceptions. It also
3031 opens up the possibility of using makeSelfContained purely.
3032 + Export `makeDataURI`.
3034 * `Text.Pandoc.ImageSize`:
3036 + Export `lengthToDim`, new function `scaleDimension`.
3037 + Export `inEm` from ImageSize (#3450).
3038 + Change `showFl` and `show` instance for `Dimension` so
3039 extra decimal places are omitted.
3040 + Added `Em` as a constructor of `Dimension`.
3041 + Add `WriterOptions` parameter to `imageSize` signature (Mauro Bieg).
3043 * `Text.Pandoc.Templates`:
3045 + Change type of `renderTemplate'`. Now it runs in `PandocMonad`
3046 and raises a proper `PandocTemplateError` if there are problems, rather
3047 than failing with uncatchable `error`.
3048 + Change signature of `getDefaultTemplate`. Now it runs in any instance
3049 of `PandocMonad`, and returns a `String` rather than an `Either` value.
3050 And it no longer takes a `datadir` parameter, since this can be
3051 retrieved from `CommonState`.
3053 * `Text.Pandoc.Options`:
3055 + Added `writerEpubSubdirectory` to `WriterOptions` (#3720).
3056 The EPUB writer now takes its EPUB subdirectory from this option.
3057 + In `WriterOptions`, rename `writerLaTeXEngine` to `writerPdfEngine`
3058 and `writerLaTeXArgs` to `writerPdfArgs` (Mauro Bieg, #3909).
3059 + Add `writerSyntaxMap` to `WriterOptions`.
3060 + Removed `writerEpubStylesheet` from `WriterOptions`.
3061 + Remove `writerUserDataDir` from `WriterOptions`. It is now carried
3062 in `CommonState` in `PandocMonad` instances. (And thus it can be used
3064 + Changed `writerEpubMetadata` to a `Maybe String`.
3065 + Removed `readerApplyMacros` from `ReaderOptions`. Now we just check
3066 the `latex_macros` reader extension.
3067 + FromJSON/ToJSON instances for `ReaderOptions`.
3068 + In `HTMLMathMethod`, the `KaTeX` contsructor now takes only
3069 one string (for the KaTeX base URL), rather than two.
3070 + Removed `writerSourceURL` from `WriterOptions`. We now use
3071 `stSourceURL` in `CommonState`, which is set by `setInputFiles`.
3073 * `Text.Pandoc.Shared`:
3075 + `tabFilter` now takes a `Text`, not `String`.
3076 + `openURL`: Changed type from an Either. Now it will just raise
3077 an exception to be trapped later.
3078 + Remove `normalizeSpaces` (#1530).
3079 + Remove `warn`. (Use `report` from `Text.Pandoc.Class` instead.)
3080 + Export a new function `crFilter`.
3081 + Add `eastAsianLineBreakFilter` (previously in Markdown reader).
3082 + Provide custom `isURI` that rejects unknown schemes.
3083 (Albert Krewinkel, #2713). We also export the set of known
3084 `schemes`. The new function replaces the function of the same name
3085 from `Network.URI`, as the latter did not check whether a scheme is
3086 well-known. All official IANA schemes (as of 2017-05-22) are
3087 included in the set of known schemes. The four non-official schemes
3088 `doi`, `isbn`, `javascript`, and `pmid` are kept.
3090 + Remove `readDataFile`, `readDefaultDataFile`, `getReferenceDocx`,
3091 `getReferenceODT`. These now live in `Text.Pandoc.Class`,
3092 where they are defined in terms of `PandocMonad`
3093 primitives and have different signatures.
3094 + Remove `openURL`. Use `openURL` from `Text.Pandoc.Class` instead.
3095 + Add `underlineSpan`.
3097 * `Text.Pandoc.Readers.HTML`: export new `NamedTag` class.
3099 * `Text.Pandoc.Readers.Markdown`: remove `readDocxWithWarnings`.
3100 With the new API one can simply use `getLog` after running
3103 * `Text.Pandoc.Readers.LaTeX`: Changed types for `rawLaTeXInline`
3104 and `rawLaTeXBlock`. (Both now return a `String`, and they are
3105 polymorphic in state.)
3108 [bug fixes and under-the-hood improvements]
3110 * TEI writer: Added identifiers on `<div>` elements.
3112 * DokuWiki reader: Better handling for code block in list item (#3824).
3114 * Custom writer: Remove old preprocesesor conditionals (Albert Krewinkel).
3116 * ZimWiki writer: Removed internal formatting from note and table cells,
3117 because ZimWiki does not support it (Alex Ivkin, #3446).
3121 + Updated list of syntax highlighting languages (#3461).
3122 Now `r` gets you `<source>` rather than `<code>` (among others).
3123 + Add display attribute on `<math>` tags (#3452). This allows display
3124 math to be rendered properly.
3125 + Remove newline before `</ref>` (#2652).
3126 + Don't softbreak lines inside list items (#3531).
3130 + Reduce to two spaces after bullets (#3417, Albert Krewinkel).
3131 + Add unit tests (Alexander Krotov).
3132 + Stop using raw HTML to wrap divs (Albert Krewinkel, #3771).
3133 + Do not strip `#` from Org anchor links (Alexander Krotov).
3135 * CommonMark writer:
3137 + Avoid excess blank lines at end of output.
3138 + Prefer pipe tables to HTML tables even if it means losing relative
3139 column width information (#3734).
3140 + Support table, strikethrough extensions, when enabled (as with gfm).
3141 Note that we bypass the commonmark writer from cmark and construct our
3142 own pipe tables, with better results.
3143 + Properly support `--wrap=none`.
3144 + Use smallcaps class for `SmallCaps` (#1592).
3145 + Omit "fig:" prefix in image titles. This is used internally to
3146 indicate internal figures.
3150 + Properly handle table captions.
3151 + Don't wrap lines in in definition list terms. Wrapping is not allowed.
3152 + Implemented `+/-smart` and improved escaping with `+smart`.
3153 + Add empty comments when needed to avoid including a blockquote
3154 in the indented content of a preceding block (#3675).
3155 + Improve grid table output, fix bug with empty rows (#3516).
3156 Uses the new `gridTable` in Writers.Shared, which is here
3157 improved to better handle 0-width cells.
3158 + Remove space at beginning/end of RST code span (#3496). Otherwise
3159 we get invalid RST. There seems to be no way to escape the space.
3160 + Add header anchors when header has non-standard id (#3937).
3161 + Correctly handle inline code containing backticks, using a `:literal:`
3163 + Don't backslash-escape word-internal punctuation (#3978).
3167 + Don't include variables in metadata blocks. Previously variables set
3168 on the command line were included in e.g. YAML metadata, contrary to
3169 documentation and intentions.
3170 + Improved escaping with `+smart`.
3171 + Fixed grid tables embedded in grid tables (#2834).
3172 + Use span with class 'smallcaps' for SmallCaps, instead of a style
3173 attribute as before (#1592).
3174 + Escape initial `%` in a paragraph if the `pandoc_title_blocks`
3175 extension is enabled (#3454). Otherwise in a document starting with
3176 a literal `%` the first line is wrongly interpreted as a title.
3177 + Fixed false ordered lists in YAML metadata (#3492, #1685). Now we
3178 properly escape things that would otherwise start ordered lists,
3184 + Better handling of tables with empty columns (#3337). We now
3185 calculate the number of columns based on the longest row (or the
3186 length of aligns or widths).
3187 + Escape unordered list markers at beginning of paragraph (#3497), to
3188 avoid false interpretation as a list.
3189 + Escape `|` appropriately.
3190 + Ensure space before list at top level (#3487).
3191 + Avoid spurious blanklines at end of document after tables and list,
3193 + Fixed bugs in simple/multiline list output (#3384).
3194 Previously we got overlong lists with `--wrap=none`. This is fixed.
3195 Previously a multiline list could become a simple list (and would
3196 always become one with `--wrap=none`).
3197 + Don't emit a simple table if `simple_tables` disabled (#3529).
3198 + Case-insensitive reference links (David A Roberts, #3616).
3199 Ensure that we do not generate reference links whose labels differ only
3200 by case. Also allow implicit reference links when the link
3201 text and label are identical up to case.
3202 + Put space before reference link definitions (Mauro Bieg, #3630).
3203 + Better escaping for links (David A. Roberts, #3619). Previously the
3204 Markdown writer would sometimes create links where there were none
3205 in the source. This is now avoided by selectively escaping bracket
3206 characters when they occur in a place where a link might be created.
3207 + Added missing `\n` (David A. Roberts, #3647).
3208 + Fixed duplicated reference links with `--reference-links`
3209 and `--reference-location=section` (#3674). Also ensure that there
3210 are no empty link references `[]`.
3211 + Avoid inline surround-marking with empty content (#3715).
3212 E.g. we don't want `<strong></strong>` to become `****`.
3213 Similarly for emphasis, super/subscript, strikeout.
3214 + Don't allow soft break in header (#3736).
3215 + Make sure `plain`, `markdown_github`, etc. work for raw.
3216 Previously only `markdown` worked. Note: currently a raw block labeled
3217 `markdown_github` will be printed for any `markdown` format.
3218 + Ensure that `+` and `-` are escaped properly so they don't cause
3219 spurious lists (#3773). Previously they were only
3220 if succeeded by a space, not if they were at end of line.
3221 + Use pipe tables if `raw_html` disabled and `pipe_tables` enabled,
3222 even if the table has relative width information (#3734).
3223 + Markdown writer: don't crash on `Str ""`.
3224 + Make `Span` with null attribute transparent. That is, we don't use
3225 brackets or `<span>` tags to mark spans when there are no attributes;
3226 we simply output the contents.
3227 + Escape pipe characters when `pipe_tables` enabled (#3887).
3228 + Better escaping of `<` and `>`. If `all_symbols_escapable` is set,
3229 we backslash escape these. Otherwise we use entities as before.
3230 + When writing plain, don't use ` ` to separate list and indented
3231 code. There's no need for it in this context, since this isn't to be
3232 interpreted using Markdown rules.
3233 + Preserve classes in JS obfuscated links (Timm Albers, #2989).
3234 HTML links containing classes originally now preserve them when using
3235 JavaScript email obfuscation.
3236 + Render `SmallCaps` as a native span when `native_spans` are enabled.
3237 + Always write attributes with `bracketed_spans` (d-dorazio).
3241 + Fix handling of nested font commands (#3568). Previously pandoc emitted
3242 incorrect markup for bold + italic, for example, or bold + code.
3243 + Avoid error for definition lists with no definitions (#3832).
3247 + Fix internal links with `writerIdentifierPrefix opt`
3248 (#3397, Mauro Bieg).
3252 + Don't include bookmarks on headers unless non-null id (#3476).
3253 + Support 9 levels of headers (#1642).
3254 + Allow 9 list levels (#3519).
3255 + Don't take `distArchive` from datadir (#3322). The docx writer takes
3256 components from the distribution's version of `reference.docx` when it
3257 can't find them in a user's custom `reference.docx`. Previously, we
3258 allowed a `reference.docx` in the data directory (e.g. `~/.pandoc`)
3259 to be used as the distribution's reference.docx. This led to a
3260 bizarre situation where pandoc would produce a good docx using
3261 `--template ~/.pandoc/ref.docx`, but if `ref.docx` were moved to
3262 `~/.pandoc/reference.docx`, it would then produce a corrupted docx.
3263 + Fixed handling of soft hyphen (0173) (#3691).
3264 + Better handling of keywords (#3719).
3265 + Cleaner code for handling dir and style attributes for `Div`.
3266 + Use `Set` for dynamic styles to avoid duplicates.
3267 + Removed redundant element from data/docx/word/numbering.xml.
3268 The elements we need are generated when the document is
3269 compiled; this didn't do anything.
3270 + Activate `evenAndOddHeaders` from reference docx (#3901,
3271 Augustín Martín Barbero).
3273 * ODT/OpenDocument writer:
3275 + Calculate aspect ratio for percentage-sized images (Mauro Bieg, #3239).
3276 + Use more widely available bullet characters (#1400). The old
3277 characters weren't available in some font sets. These seem to work
3278 well on Windows and Linux versions of LibreOffice.
3279 + Wider labels for lists (#2421). This avoids overly narrow labels for
3280 ordered lists with `()` delimiters. However, arguably it creates
3281 overly wide labels for bullets. Also, lists now start flush with
3282 the margin, rather than indented.
3283 + Fixed dropped elements in some ordered lists (#2434).
3287 + Don't render `RawBlock` as code.
3288 + Don't fail with an error on interior headers (e.g. in list) (#3750).
3289 Instead, omit them with an INFO message.
3290 + Add support for "lang" metadata (Alexander Krotov, #3625).
3291 + Format `LineBlock` as poem (Alexander Krotov). Previously writer
3292 produced one paragraph with `<empty-line/>` elements, which are not
3293 allowed inside `<p>` according to FB2 schema.
3294 + Replace `concatMap` with `cMap` (Alexander Krotov).
3295 + Write FB2 lists without nesting blocks inside `<p>` (Alexander
3300 + Make sure `html4`, `html5` formats work for raw blocks/inlines.
3301 + Render raw inline environments when `--mathjax` used (#3816).
3302 We previously did this only with raw blocks, on the assumption
3303 that math environments would always be raw blocks. This has changed
3304 since we now parse them as inline environments.
3305 + Ensure we don't get two style attributes for width and height.
3306 + Report when not rendering raw inline/block.
3307 + Issue warning if no title specified and template used (#3473).
3308 + Info message if `lang` is unspecified (#3486).
3309 + Removed unused parameter in `dimensionsToAttributeList`.
3310 + Avoid two class attributes when adding `uri` class (#3716).
3311 + Fix internal links with `writerIdentifierPrefix opt` (#3397, Mauro
3313 + Use revealjs's math plugin for mathjax (#3743). This is a thin
3314 wrapper around mathjax that makes math look better on revealjs.
3315 + Slidy: use h1 for all slides, even if they were originally
3316 level 2 headers (#3566). Otherwise the built-in table of contents
3321 + Don't render LaTeX images with data: URIs (#3636). Note that
3322 `--extract-media` can be used when the input contains data: URIs.
3323 + Make highlighted code blocks work in footnotes (Timm Albers).
3324 + Don't use figure inside table cell (#3836).
3325 + Use proper code for list enumerators (#3891). This should fix problems
3326 with lists that don't use arabic numerals.
3327 + Always add hypertarget when there's a non-empty identifier (#2719).
3328 Previously the hypertargets were only added when there was actually
3329 a link to that identifier.
3330 + Use `%` after hypertarget before code block.
3331 + Add `\leavevmode` before hypertarget at start of paragraph (#2704,
3332 fixes formatting problems in beamer citations).
3333 + Don't use `lstinline` in \item[..] (#645). If you do, the contents
3334 of item disappear or are misplaced. Use `\texttt` instead.
3335 + Fix problem with escaping in `lstinline` (#1629). Previously the
3336 LaTeX writer created invalid LaTeX when `--listings` was specified and
3337 a code span occurred inside emphasis or another construction.
3338 + Fix error with line breaks after empty content (#2874). LaTeX
3339 requires something before a line break, so we insert a `~` if no
3340 printable content has yet been emitted.
3342 + Fixed detection of otherlangs (#3770). We weren't recursing into
3344 + Handle language in inline code with `--listings` (#3422).
3345 + Write euro symbol directly in LaTeX (Andrew Dunning, #3801).
3346 The textcomp package allows pdfLaTeX to parse `€` directly, making the
3347 `\euro` command unneeded.
3348 + Fixed footnotes in table captions (#2378). Note that if the table has
3349 a first page header and a continuation page header, the notes will
3350 appear only on the first occurrence of the header.
3351 + In `writeBeamer` output, allow hyperlinks to frames (#3220).
3352 Previously you could link to a header above or below slide level but
3353 not *to* slide level. This commit changes that. Hypertargets are
3354 inserted inside frame titles; technically the reference is to just
3355 after the title, but in normal use (where slides are viewed full
3356 screen in a slide show), this does not matter.
3357 + Remove `\strut` at beginning of table cells (#3436). This fixes a
3358 problem with alignment of lists in table cells. The `\strut` at the
3359 end seems to be enough to avoid the too-close spacing that motivated
3360 addition of the strut in #1573.
3361 + Add partial siunitx Support (Marc Schreiber, #3588).
3365 + Refactored to use BCP47 module.
3366 + Remove unnecessary `$` (Alexander Krotov, #3482).
3367 + Use header identifiers for chapters (#3968).
3371 + `title_page.xhtml` is now put in `text/`.
3372 + Don't strip formatting in TOC (#1611).
3376 + Fix bug for certain links in table cells (#3667).
3377 + Allow 'pre' code in list item (#3916).
3381 + Added warnings for ignored material (#3392).
3382 + Better sanity checks to avoid parsing unintended things as
3383 raw HTML in the Markdown reader (#3257).
3384 + Revise treatment of `li` with `id` attribute (#3596). Previously we
3385 always added an empty div before the list item, but this created
3386 problems with spacing in tight lists. Now we do this: If the list
3387 item contents begin with a `Plain` block, we modify the `Plain`
3388 block by adding a `Span` around its contents. Otherwise, we add a
3389 `Div` around the contents of the list item (instead of adding an
3390 empty `Div` to the beginning, as before).
3391 + Add `details` tag to list of block tags (#3694).
3392 + Removed `button` from block tag list (#3717). It is already in the
3393 `eitherBlockOrInlineTag` list, and should be both places.
3394 + Use `Set`s instead of lists for block tag lookup.
3395 + Rewrote to use `Text` throughout. Effect on memory usage is modest
3397 + Use the lang value of `<html>` to set the lang meta value (bucklereed,
3399 + Ensure that paragraphs are closed properly when the parent block
3400 element closes, even without `</p>` (#3794).
3401 + Parse `<figure>` and `<figcaption>` (Mauro Bieg, #3813).
3402 + Parse `<main>` like `<div role=main>` (bucklereed, #3791).
3403 `<main>` closes `<p>` and behaves like a block element generally
3404 + Support column alignments (#1881). These can be set either
3405 with a `width` attribute or with `text-width` in a `style` attribute.
3406 + Modified state type to be an instance of `HasLogMessages`, so
3407 `registerHeader` can issue warnings.
3408 + `</td>` or `</th>` should close any open block tag (#3991).
3409 + `<td>` should close an open `<th>` or `<td>`.
3410 + `htmlTag` improvements (#3989). We previously failed on cases
3411 where an attribute contained a `>` character. This patch fixes the
3412 bug, which especially affects raw HTML in Markdown.
3416 + Newline is not indentation (Alexander Krotov).
3420 + Allow extra hyphens after `|-` in tables (#2649).
3421 + Allow blank line after table start (#2649).
3422 + Fixed more table issues (#2649).
3423 + Ensure that list starts begin at left margin (#2606). Including when
3424 they're in tables or other list items.
3425 + Make smart double quotes depend on `smart` extension (#3585).
3426 + Don't do curly quotes inside `<tt>` contexts (#3585). Even if `+smart`.
3427 + Modified state type to be an instance of `HasLogMessages`, so
3428 `registerHeader` can issue warnings.
3430 * TWiki reader (Alexander Krotov):
3432 + Remove unnecessary `$` (#3597).
3433 + Simplify `linkText` (#3605).
3437 + Minor refactoring, avoiding explicit MediaBag handling.
3438 This all works behind the scenes in CommonState plumbing.
3442 + Don't drop smartTag contents (#2242).
3443 + Handle local namespace declarations (#3365). Previously we didn't
3444 recognize math, for example, when the xmlns declaration occurred on
3445 the element and not the root.
3446 + More efficient trimSps (#1530). Replacing `trimLineBreaks`. This
3447 does the work of `normalizeSpaces` as well, so we avoid the need for
3449 + Avoid 0-level headers (Jesse Rosenthal, #3830). We used to parse
3450 paragraphs styled with "HeadingN" as "nth-level header." But if a
3451 document has a custom style named "Heading0", this will produce a
3452 0-level header, which shouldn't exist. We only parse this style
3453 if N>0. Otherwise we treat it as a normal style name, and
3454 follow its dependencies, if any.
3455 + Add tests for avoiding zero-level header (Jesse Rosenthal).
3459 + Replaced `collectRights` with Rights from `Data.Either`.
3460 + Remove dead code (Albert Krewinkel).
3462 * Org reader (Albert Krewinkel, unless noted).
3464 + Don't allow tables inside list items (John MacFarlane, #3499).
3465 + Disallow tables on list marker lines (#3499).
3466 + Convert markup at beginning of footnotes (John MacFarlane, #3576).
3467 + Allow emphasized text to be followed by `[` (#3577).
3468 + Handle line numbering switch for src blocks.
3469 The line-numbering switch that can be given to source blocks (`-n` with
3470 an start number as an optional parameter) is parsed and translated to a
3471 class/key-value combination used by highlighting and other readers and
3473 + Stop adding rundoc prefix to src params. Source block parameter names
3474 are no longer prefixed with `rundoc`. This was intended to simplify
3475 working with the rundoc project, a babel runner. However, the rundoc
3476 project is unmaintained, and adding those markers is not the reader's
3477 job anyway. The original language that is specified for a source
3478 element is now retained as the `data-org-language` attribute and only
3479 added if it differs from the translated language.
3480 + Allow multi-word arguments to src block params (#3477). The reader now
3481 correctly parses src block parameter list even if parameter arguments
3482 contain multiple words.
3483 + Avoid creating `nullMeta` by applying `setMeta` directly
3485 + Replace `sequence . map` with `mapM`.
3486 + Fix smart parsing behavior. Parsing of smart quotes and special
3487 characters can either be enabled via the `smart` language extension or
3488 the `'` and `-` export options. Smart parsing is active if either the
3489 extension or export option is enabled. Only smart parsing of special
3490 characters (like ellipses and en and em dashes) is enabled by default,
3491 while smart quotes are disabled. Previously, all smart parsing was
3492 disabled unless the language extension was enabled.
3493 + Subject full doc tree to headline transformations (Albert Krewinkel,
3494 #3695). Emacs parses org documents into a tree structure, which is
3495 then post-processed during exporting. The reader is changed to do the
3496 same, turning the document into a single tree of headlines starting
3498 + Fix cite parsing behaviour (Herwig Stuetz). Until now, `org-ref`
3499 cite keys included special characters also at the end. This caused
3500 problems when citations occur right before colons or at the end of
3501 a sentence. With this change, all non alphanumeric characters at
3502 the end of a cite key are ignored. This also adds `,` to the list
3503 of special characters that are legal in cite keys to better mirror
3504 the behaviour of org-export.
3505 + Fix module names in haddock comments. Copy-pasting had lead to
3506 haddock module descriptions containing the wrong module names.
3507 + Recognize babel result blocks with attributes (#3706). Babel
3508 result blocks can have block attributes like captions and names.
3509 Result blocks with attributes were not recognized and were parsed
3510 as normal blocks without attributes.
3511 + Include tags in headlines. The Emacs default is to include tags in the
3512 headline when exporting. Instead of just empty spans, which contain the
3513 tag name as attribute, tags are rendered as small caps and wrapped in
3514 those spans. Non-breaking spaces serve as separators for multiple tags.
3515 + Respect export option for tags (#3713). Tags are appended to
3516 headlines by default, but will be omitted when the `tags` export option
3518 + Use `tag-name` attribute instead of `data-tag-name`.
3519 + Use `org-language` attribute rather than `data-org-language`.
3520 + Modified state type to be an instance of `HasLogMessages`, so
3521 `registerHeader` can issue warnings.
3522 + End footnotes after two blank lines. Footnotes can not only be
3523 terminated by the start of a new footnote or a header, but also by two
3524 consecutive blank lines.
3525 + Update emphasis border chars (#3933). The org reader was updated to
3526 match current org-mode behavior: the set of characters which are
3527 acceptable to occur as the first or last character in an org emphasis
3528 have been changed and now allows all non-whitespace chars at the
3529 inner border of emphasized text (see `org-emphasis-regexp-components`).
3533 + Fixed small bug in list parsing (#3432). Previously the parser didn't
3534 handle properly this case:
3540 + Handle multiline cells in simple tables (#1166).
3541 + Parse list table directive (Keiichiro Shikano, #3432).
3542 + Make use of `anyLineNewline` (Alexander Krotov, #3686).
3543 + Use `anyLineNewline` in `rawListItem` (Alexander Krotov, #3702).
3544 + Reorganize block parsers for ~20% faster parsing.
3545 + Fixed `..include::` directive (#3880).
3546 + Handle blank lines correctly in line blocks (Alexander Krotov, #3881).
3547 Previously pandoc would sometimes combine two line blocks separated
3548 by blanks, and ignore trailing blank lines within the line block.
3549 + Fix indirect hyperlink targets (#512).
3553 + Allow attributes in reference links to start on next line (#3674).
3554 + Parse YAML metadata in a context that sees footnotes defined in
3555 the body of the document (#1279).
3556 + When splitting pipe table cells, skip tex math (#3481).
3557 You might have a `|` character inside math. (Or for that matter
3558 something that the parser might mistake for raw HTML.)
3559 + Treat span with class `smallcaps` as SmallCaps.
3560 This allows users to specify small caps in Markdown this way:
3561 `[my text]{.smallcaps}` (#1592).
3562 + Fixed internal header links (#2397).
3563 This patch also adds `shortcut_reference_links` to the list
3565 + Treat certain environments as inline
3566 when they occur without space surrounding them (#3309, #2171).
3567 E.g. equation, math. This avoids incorrect vertical space
3569 + Optimized `nonindentSpaces`. Makes the benchmark go from 40 to 36 ms.
3570 + Allow latex macro definitions indented 1-3 spaces.
3571 Previously they only worked if nonindented.
3572 + Improved parsing of indented raw HTML blocks (#1841).
3573 Previously we inadvertently interpreted indented HTML as
3574 code blocks. This was a regression. We now seek to determine the
3575 indentation level of the contents of an HTML block, and (optionally)
3576 skip that much indentation. As a side effect, indentation may be
3577 stripped off of raw HTML blocks, if `markdown_in_html_blocks` is
3578 used. This is better than having things interpreted as indented
3580 + Fixed smart quotes after emphasis (#2228). E.g. in `*foo*'s 'foo'`.
3581 + Warn for notes defined but not used (#1718).
3582 + Use `anyLineNewline` (Alexander Krotov).
3583 + Interpret YAML metadata as Inlines when possible (#3755). If
3584 the metadata field is all on one line, we try to interpret it as
3585 Inlines, and only try parsing as Blocks if that fails. If it
3586 extends over one line (including possibly the `|` or `>` character
3587 signaling an indented block), then we parse as Blocks. This was
3588 motivated by some German users finding that `date: '22. Juin 2017'`
3589 got parsed as an ordered list.
3590 + Fixed spurious parsing as citation as reference def (#3840).
3591 We now disallow reference keys starting with `@` if the
3592 `citations` extension is enabled.
3593 + Parse `-@roe` as suppress-author citation (pandoc-citeproc#237).
3594 Previously only `[-@roe]` (with brackets) was recognized as
3595 suppress-author, and `-@roe` was treated the same as `@roe`.
3596 + Fixed parsing of fenced code after list when there is no intervening
3598 + Allow raw latex commands starting with `\start` (#3558). Previously
3599 these weren't allowed because they were interpreted as starting
3600 ConTeXt environments, even without a corresponding `\stop`...
3601 + Added `inlines`, `inlines1`.
3602 + Require nonempty alt text for `implicit_figures` (#2844).
3603 A figure with an empty caption doesn't make sense.
3604 + Removed texmath macro material; now all this is handled
3605 in the LaTeX reader functions.
3606 + Fixed bug with indented code following raw LaTeX (#3947).
3610 + Rewrote LaTeX reader with proper tokenization (#1390,
3611 #2118, #3236, #3779, #934, #982). This rewrite is primarily
3612 motivated by the need to get macros working properly. A side benefit
3613 is that the reader is significantly faster. We now tokenize the
3614 input text, then parse the token stream. Macros modify the token
3615 stream, so they should now be effective in any context, including
3616 math. Thus, we no longer need the clunky macro processing
3617 capacities of texmath.
3618 + Parse `\,` to `\8198` (six-per-em space) (Henri Werth).
3619 + Allow `\newcommand\foo{blah}` without braces.
3620 + Support `\lstinputlisting` (#2116).
3621 + Issue warnings when skipping unknown latex commands (#3392).
3622 + Include contents of `\parbox`.
3623 + Allow `\hspace` and `\vspace` to count as raw block or inline.
3624 Previously we would refuse to parse anything as raw inline if
3625 it was in the `blockCommands` list. Now we allow exceptions
3626 if they're listed under ignoreInlines in inlineCommands.
3627 This should make it easier e.g. to include an `\hspace`
3628 between two side-by-side raw LaTeX tables.
3629 + Don't drop contents of `\hypertarget`.
3630 + Handle spaces before `\cite` arguments.
3631 + Allow newpage, clearpage, pagebreak in inline contexts as well as
3632 block contexts (#3494).
3633 + Treat `{{xxx}}` the same as `{xxx}` (#2115).
3634 + Use `pMacroDefinition` in macro (for more direct parsing).
3635 Note that this means that `macro` will now parse one
3636 macro at a time, rather than parsing a whole group together.
3637 + Fixed failures on \ref{}, \label{} with `+raw_tex`. Now these
3638 commands are parsed as raw if `+raw_tex`; otherwise, their argument
3639 is parsed as a bracketed string.
3640 + Don't crash on empty `enumerate` environment (#3707).
3641 + Handle escaped `&` inside table cell (#3708).
3642 + Handle block structure inside table cells (#3709). `minipage` is no
3644 + Handle some width specifiers on table columns (#3709). Currently
3645 we only handle the form `0.9\linewidth`. Anything else would have
3646 to be converted to a percentage, using some kind arbitrary assumptions
3648 + Make sure `\write18` is parsed as raw LaTeX. The change is in the
3649 LaTeX reader's treatment of raw commands, but it also affects the
3651 + Fixed regression with starred environment names (#3803).
3652 + Handle optional args in raw `\titleformat` (#3804).
3653 + Improved heuristic for raw block/inline. An unknown command at the
3654 beginning of the line that could be either block or inline is
3655 treated as block if we have a sequence of block commands followed by
3656 a newline or a `\startXXX` command (which might start a raw ConTeXt
3658 + Don't remove macro definitions from the output, even if
3659 `Ext_latex_macros` is set, so that macros will be applied.
3660 Since they're only applied to math in Markdown, removing the macros
3661 can have bad effects. Even for math macros, keeping them should be
3663 + Removed `macro`. It is no longer necessary, since the
3664 `rawLaTeXBlock` parser will parse macro definitions. This also avoids
3665 the need for a separate `latexMacro` parser in the Markdown reader.
3666 + Use `label` instead of `data-label` for label in caption (#3639).
3667 + Fixed space after \figurename etc.
3668 + Resolve references to section numbers.
3669 + Fix `\let\a=0` case, with single character token.
3670 + Allow `@` as a letter in control sequences. `@` is commonly used
3671 in macros using `\makeatletter`. Ideally we'd make the tokenizer
3672 sensitive to `\makeatletter` and `\makeatother`, but until then this
3673 seems a good change.
3674 + Track header numbers and correlate with labels.
3675 + Allow `]` inside group in option brackets (#3857).
3676 + lstinline with braces can be used (verb cannot be used with braces)
3677 (Marc Schreiber, #3535).
3678 + Fix keyval function: pandoc did not parse options in braces correctly
3679 (Marc Schreiber, #3642).
3680 + When parsing raw LaTeX commands, include trailing space (#1773).
3681 Otherwise things like `\noindent foo` break and turn into
3682 `\noindentfoo`. Affects `-f latex+raw_tex` and `-f markdown` (and other
3683 formats that allow `raw_tex`).
3684 + Don't treat "..." as Quoted (#3958). This caused quotes to be omitted in
3686 + Add tests for existing `\includegraphics` behaviour (Ben Firshman).
3687 + Allow space before `=` in bracketd options (Ben Firshman).
3688 + Be more forgiving in parsing command options. This was needed, for
3689 example, to make some minted options work.
3690 + Strip off quotes in `\include` filenames.
3692 * Added `Text.Pandoc.CSV`, simple (unexported) CSV parser.
3694 * `Text.Pandoc.PDF`:
3696 + Got `--resource-path` working with PDF output (#852).
3697 + Fetch images when generating PDF via context (#3380).
3698 To do this, we create the temp directory as a subdirectory
3699 of the working directory. Since context mk IV by default looks
3700 for images in the parent directory, this works.
3701 + Use `report` instead of `warn`, make it sensitive to verbosity settings.
3702 + Use `fillMediaBag` and `extractMedia` to extract media to temp dir.
3703 This reduces code duplication.
3704 + `html2pdf`: use stdin instead of intermediate HTML file
3705 + Removed useless `TEXINPUTS` stuff for `context2pdf`. mkiv context
3706 doesn't use `TEXINPUTS`.
3708 * `Text.Pandoc.Pretty`:
3710 + Simplified definition of `realLength`.
3711 + Don't error for blocks of size < 1. Instead, resize to 1 (see #1785).
3713 * `Text.Pandoc.MIME`:
3715 + Use `application/javascript` (not `application/x-javascript`).
3716 + Added `emf` to mimeTypes with type `application/x-msmetafile` (#1713).
3718 * `Text.Pandoc.ImageSize`:
3720 + Improve SVG image size code (Marc Schreiber, #3580).
3721 + Make `imageSize` recognize basic SVG dimensions (Mauro Bieg, #3462).
3723 * Use `Control.Monad.State.Strict` throughout. This gives 20-30% speedup
3724 and reduction of memory usage in most of the writers.
3726 * Use `foldrWithKey` instead of deprecated `foldWithKey`.
3728 * `Text.Pandoc.SelfContained`:
3730 + Fixed problem with embedded fonts (#3629).
3731 + Refactored getData from `getDataURI` in `SelfContained`.
3732 + Don't use data URIs for script or style (#3423). Instead, just use
3733 script or style tags with the content inside. The old method with
3734 data URIs prevents certain optimizations outside pandoc. Exception:
3735 data URIs are still used when a script contains `</script>` or a
3736 style contains `</`.
3737 + SelfContained: Handle URL inside material retrieved from a URL
3738 (#3629). This can happen e.g. with an @import of a google web font.
3739 (What is imported is some CSS which contains an url reference
3740 to the font itself.) Also, allow unescaped pipe (|) in URL.
3741 + Load resources from `data-src` (needed for lazy loading in
3742 reveal.js slide shows).
3743 + Handle `data-background-image` attribute on section (#3979).
3745 * `Text.Pandoc.Parsing`:
3747 + Added `indentWith` (Alexander Krotov, #3687).
3748 + Added `stateCitations` to `ParserState`.
3749 + Removed `stateChapters` from `ParserState`.
3750 + In `ParserState`, make `stateNotes'` a Map, add `stateNoteRefs`.
3751 + Added `gobbleSpaces` and `gobbleAtMostSpaces`.
3752 + Adjusted type of `insertIncludedFile` so it can be used with token
3754 + Replace old texmath macro stuff from Parsing. Use Macro from
3755 Text.Pandoc.Readers.LaTeX.Types instead.
3756 + Export `insertIncludedFile`.
3757 + Added `HasLogMessages`, `logMessage`, `reportLogMessages` (#3447).
3758 + Replace partial with total function (Albert Krewinkel).
3759 + Introduce `HasIncludeFiles` type class (Albert Krewinkel). The
3760 `insertIncludeFile` function is generalized to work with all parser
3761 states which are instances of that class.
3762 + Add `insertIncludedFilesF` which returns F blocks (Albert Krewinkel).
3763 The `insertIncludeFiles` function was generalized and renamed
3764 to `insertIncludedFiles'`; the specialized versions are based on that.
3765 + `many1Till`: Check for the end condition before parsing (Herwig
3766 Stuetz). By not checking for the end condition before the first
3767 parse, the parser was applied too often, consuming too much of the
3768 input. This only affects `many1Till p end` where `p` matches on a
3770 + Provide `parseFromString` (#3690). This is a version of
3771 `parseFromString` specialied to ParserState, which resets
3772 `stateLastStrPos` at the end. This is almost always what we want.
3773 This fixes a bug where `_hi_` wasn't treated as emphasis in the
3774 following, because pandoc got confused about the position of the
3775 last word: `- [o] _hi_`.
3776 + Added `takeP`, `takeWhileP` for efficient parsing of `[Char]`.
3777 + Fix `blanklines` documentation (Alexander Krotov, #3843).
3778 + Give less misleading line information with `parseWithString`.
3779 Previously positions would be reported past the end of the chunk.
3780 We now reset the source position within the chunk and report
3781 positions "in chunk."
3782 + Add `anyLineNewline` (Alexander Krotov).
3783 + Provide shared F monad functions for Markdown and Org readers
3784 (Albert Krewinkel). The `F` monads used for delayed evaluation
3785 of certain values in the Markdown and Org readers are based on a
3786 shared data type capturing the common pattern of both `F` types.
3787 + Add `returnF` (Alexander Krotov).
3788 + Avoid parsing `Notes:**` as a bare URI (#3570). This avoids parsing
3789 bare URIs that start with a scheme + colon + `*`, `_`, or `]`.
3790 + Added `readerAbbreviations` to `ParserState`. Markdown reader
3791 now consults this to determine what is an abbreviation.
3792 + Combine grid table parsers (Albert Krewinkel, #3638). The grid table
3793 parsers for markdown and rst was combined into one single
3794 parser `gridTable`, slightly changing parsing behavior of both
3795 parsers: (1) The markdown parser now compactifies block content
3796 cell-wise: pure text blocks in cells are now treated as paragraphs
3797 only if the cell contains multiple paragraphs, and as plain blocks
3798 otherwise. Before, this was true only for single-column tables. (2)
3799 The rst parser now accepts newlines and multiple blocks in header
3801 + Generalize tableWith, gridTableWith (Albert Krewinkel).
3802 The parsing functions `tableWith` and `gridTableWith` are generalized
3803 to work with more parsers. The parser state only has to be an
3804 instance of the `HasOptions` class instead of requiring a concrete
3805 type. Block parsers are required to return blocks wrapped into a
3806 monad, as this makes it possible to use parsers returning results
3807 wrapped in `Future`s.
3809 * `Text.Pandoc.Shared`:
3811 + Simplify `toRomanNumeral` using guards (Alexander Krotov, #3445)
3812 + `stringify`: handle Quoted better (#3958). Previously we were losing
3813 the quotation marks in Quoted elements.
3815 * `Text.Pandoc.Writers.Shared`:
3817 + Export `metaToJSON'`, `addVariablesToJSON` (#3439).
3818 This allows us to add the variables AFTER using the metadata
3819 to generate a YAML header (in the Markdown writer).
3820 + Added `unsmartify` (previously in RST writer).
3821 Undo literal double curly quotes. Previously we left these.
3822 + Generalize type of `metaToJSON` so it can take a Text. Previously a
3823 String was needed as argument; now any ToJSON instance will do.
3824 + Added `gridTable` (previously in Markdown writer).
3825 + `gridTable`: Refactored to use widths in chars.
3826 + `gridTable`: remove unnecessary extra space in cells.
3827 + Fixed `addVariablesToJSON`. It was previously not allowing multiple
3828 values to become lists.
3829 + Pipe tables: impose minimum cell size (see #3526).
3832 [default template changes]
3834 * HTML templates (including EPUB and HTML slide show templates):
3836 + Make default.html5 polyglot markup conformant (John Luke Bentley,
3837 #3473). Polyglot markup is HTML5 that is also valid XHTML. See
3838 <https://www.w3.org/TR/html-polyglot>. With this change, pandoc's
3839 html5 writer creates HTML that is both valid HTML5 and valid XHTML.
3840 + Regularized CSS in html/epub/html slide templates (#3485).
3841 All templates now include `code{white-space: pre-wrap}`
3842 and CSS for `q` if `--html-q-tags` is used. Previously some templates
3843 had `pre` and others `pre-wrap`; the `q` styles were only sometimes
3845 + CSS for `.smallcaps`, (Mauro Bieg, #1592)
3846 + `default.revealjs`: make `history` default to true.
3847 + `default.revealjs`: use lazy loading (#2283).
3848 + `default.revealjs`: add `mathjax` variable and some conditional code
3849 to use the MathJaX plugin.
3850 + `default.slidy` uses `https` instead of `http` (ickc, #3848).
3851 + `default.dzslides`: Load Google Font using HTTPS by default
3854 * DocBook5 template: Use `lang` and `subtitle` variables (Jens Getreu,
3857 * LaTeX/Beamer template:
3859 + Combine LaTeX/Beamer templates (Andrew Dunning, #3878).
3860 `default.beamer` has been removed; beamer now uses the
3861 `default.latex` template. Beamer-specific parts are conditional
3862 on the `beamer` variable set by the writer. Note that
3863 `pandoc -D beamer` will return this (combined) template.
3864 + Use `xcolor` for `colorlinks` option (Andrew Dunning, #3877).
3865 Beamer loads `xcolor` rather than `color`, and thus the
3866 `dvipsnames` option doesn't take effect. This also provides a wider
3867 range of colour selections with the `svgnames` option.
3868 + Use starred versions of `xcolor` names (Andrew Dunning).
3869 Prevents changes to documents defined using the `dvipsnames` list (e.g.
3870 `Blue` gives a different result with svgnames enabled).
3871 + Load `polyglossia` after header-includes (#3898). It needs to be
3872 loaded as late as possible.
3873 + Use `unicode-math` (Vaclav Haisman). Use `mathspec` with only
3875 + Don't load `fontspec` before `unicode-math` (over there).
3876 The `unicode-math` package loads `fontspec` so explicit loading of
3877 `fontspec` before `unicode-math` is not necessary.
3878 + Use `unicode-math` by default in default.latex template. mathspec will
3879 be used in xelatex if the `mathspec` variable is set; otherwise
3880 unicode-math will be used (Václav Haisman).
3881 + Use `dvipsnames` options when `colorlinks` specified (otherwise
3882 we get an error for `maroon`) (Thomas Hodgson).
3883 + Added beamer `titlegraphic` and `logo` variables (Thomas Hodgson).
3884 + Fix typo in fix for notes in tables (#2378, zeeMonkeez).
3885 + Fix `hyperref` options clash (Andrew Dunning, #3847) Avoids an options
3886 clash when loading a package (e.g. `tufte-latex`) that uses
3887 `hyperref` settings different from those in the template.
3888 + Add `natbiboptions` variable (#3768).
3889 + Fix links inside captions in LaTeX output with links-as-notes
3890 (Václav Haisman, #3651). Declare our redefined `\href` robust.
3891 + Load `parskip` before `hyperref` (Václav Haisman, #3654).
3892 + Allow setting Japanese fonts when using LuaLaTeX (Václav Haisman,
3893 #3873). by using the `luatexja-fontspec` and `luatexja-preset`
3894 packages. Use existing `CJKmainfont` and `CJKoptions` template
3895 variables. Add `luatexjafontspecoptions` for `luatexja-fontspec`
3896 and `luatexjapresetoptions` for `luatexja-preset`.
3897 + Added `aspectratio` variable to beamer template (Václav Haisman,
3899 + Modified template.latex to fix XeLaTex being used with tables
3900 (lwolfsonkin, #3661). Reordered `lang` variable handling to
3901 immediately before `bidi`.
3903 * ConTeXt template: Improved font handling: `simplefonts` is now
3904 obsolete in ConTeXt (Pablo Rodríguez).
3907 [documentation improvements]
3911 + Add URL for Prince HTML > PDF engine (Ian, #3919).
3912 + Document that content above slide-level will be omitted in
3913 slide shows. See #3460, #2265.
3914 + Explain `--webtex` SVG url (Mauro Bieg, #3471)
3915 + Small clarification in YAML metadata section.
3916 + Document that html4 is technically XHTML 1.0 transitional.
3917 + Remove refs to highlighting-kate (#3672).
3918 + Document ibooks specific epub metadata.
3919 + Clarify that mathml is used for ODT math.
3920 + Mention limitations of Literate Haskell Support (#3410,
3922 + Add documentation of limitations of grid tables (Stephen
3924 + Clarify that meta-json contains transformed values (Jakob Voß,
3925 #3491) Make clear that template variable `meta-json` does not
3926 contain plain text values or JSON output format but field values
3927 transformed to the selected output format.
3931 + Clarify that templates are dual-licensed.
3932 + Clarify that pandoc-types is BSD3 licensed.
3933 + List new files not written by jgm (Albert Krewinkel).
3934 + Update dates in copyright notices (Albert Krewinkel). This follows
3935 the suggestions given by the FSF for GPL licensed software.
3936 <https://www.gnu.org/prep/maintain/html_node/Copyright-Notices.html>
3940 + Improved instructions for tests with patterns.
3941 + Put RPM-based distros on separate point (Mauro Bieg, #3449)
3945 + Fixed typos (Wandmalfarbe, #3479).
3946 + Add "ask on pandoc-discuss" (Mauro Bieg).
3948 * Add lua filter documentation in `doc/lua-filters.md`. Note that the
3949 end of this document is autogenerated from `data/pandoc.lua`
3950 using `make doc/lua-filters.md`, which uses `tools/ldoc.ltp`
3953 * Add `doc/filters.md`. This is the old scripting tutorial from
3956 * Add `doc/using-the-pandoc-api.md` (#3289). This gives an introduction
3957 to using pandoc as a Haskell library.
3960 [build infrastructure improvements]
3962 * Removed `data/templates` submodule. Templates are now a subtree
3963 in `data/templates`. This removes the need to do `git submodule
3966 * Renamed `tests` -> `test`.
3968 * Remove `https` flag. Always build with HTTPS support.
3970 * Use `file-embed` instead of `hsb2hs` to embed data files when
3971 `embed_data_files` flag is set. `file-embed` gives us better dependency
3972 tracking: if a data file changes, ghc/stack/cabal know to recompile
3973 the Data module. This also removes `hsb2hs` as a build dependency.
3975 * Add `custom-setup` stanza to pandoc, lowercase field names.
3977 * Add `static` Cabal flag.
3979 * Name change OSX -> MacOS. Add a -MacOS suffix to mac package rather
3980 than -OSX. Changed local names from osx to macos.
3982 * make_macos_package.sh - Use strip to reduce executable size.
3984 * Revised binary linux package. Now a completely static executable
3985 is created, using Docker and alpine. We create both a deb and a
3986 tarball. The old `deb` directory has been replaced with a `linux`
3987 directory. Running `make` in the `linux` directory should
3988 perform the build, putting the binary packages in `artifacts/`.
3990 * `linux/control.in`: add `Replaces:`, so existing pandoc-citeproc and
3991 pandoc-data packages will be uninstalled; this package provides
3992 both (#3822). Add latex packages as 'suggested', update
3995 * Remove cpphs build requirement -- it is no longer needed.
3997 * Replaced `{deb,macos,windows}/stack.yaml` with `stack.pkg.yaml`.
3999 * Name change OSX -> macOS (ickc, #3869).
4001 * Fix casing of Linux, UNIX, and Windows (ickc).
4003 * `.travis.yml`: create a source dist and do cabal build and test there.
4004 That way we catch errors due to files missing from the data
4005 section of pandoc.cabal.
4009 + Split `make haddock` from `make full`.
4010 + Add BRANCH variable for winpkg.
4011 + Add `lint` target.
4012 + Improve `make full`. Disable optimizations.
4013 Build everything, inc. trypandoc and benchmarks. Use parallel build.
4014 + Allow `make test` to take `TESTARGS`.
4016 * Added new command tests (`Tests.Command`), using small text files
4017 in `test/command/`. Any files added in this directory will be treated
4018 as shell tests (see smart.md for an example). This makes it very easy
4019 to add regression tests etc.
4021 * Test fixes so we can find data files. In old tests & command tests,
4022 we now set the environment variable `pandoc_datadir`. In lua tests,
4023 we set the datadir explicitly.
4025 * Refactored `compareOutput` in docx writer test.
4027 * Consolidated some common functions in `Tests.Helper`.
4029 * Small change to unbalanced bracket test to speed up test suite.
4031 * Speed up Native writer quickcheck tests.
4033 * Use tasty for tests rather than test-framework.
4035 * Add simple Emacs mode to help with Pandoc templates editing.
4036 (Václav Haisman, #3889). `tools/pandoc-template-mode.el`
4041 * Use skylighting library instead of highlighting-kate for syntax
4042 highlighting. Skylighting is faster and more accurate (#3363).
4043 Later we'll be able to add features like warning messages, dynamic
4044 loading of xml syntax definitions, and dynamic loading of themes.
4046 * Added a new highlight style, `breezeDark`.
4048 * Text.Pandoc.Highlighting: Update list of `listings` languages (#3374).
4049 This allows more languages to be used when using the `--listings`
4052 * OpenDocument writer:
4054 + Small refactoring. Removed separate 'parent' parameter in paraStyle.
4055 + Don't profilerate text styles unnecessarily (#3371).
4056 This change makes the writer create only as many temporary
4057 text styles as are absolutely necessary. It also consolidates
4058 adjacent nodes with the same style.
4060 * Org reader (Albert Krewinkel):
4062 + Allow short hand for single-line raw blocks (Albert Krewinkel,
4063 #3366). Single-line raw blocks can be given via `#+FORMAT: raw line`,
4064 where `FORMAT` must be one of `latex`, `beamer`, `html`, or `texinfo`.
4065 + Accept org-ref citations followed by commas (Albert Krewinkel).
4066 Bugfix for an issue which, whenever the citation was immediately
4067 followed by a comma, prevented correct parsing of org-ref citations.
4068 + Ensure emphasis markup can be nested. Nested emphasis markup (e.g.
4069 `/*strong and emphasized*/`) was interpreted incorrectly in that the
4070 inner markup was not recognized.
4071 + Remove pipe char irking the haddock coverage tool (Albert Krewinkel).
4073 * Docx reader: Empty header should be list of lists (Jesse Rosenthal).
4074 In the past, the docx reader wrote an empty header as an empty list. It
4075 should have the same width as a row (and be filled with empty cells).
4079 + Improved handling of display math (#3362). Sometimes display math is
4080 indented with more than one colon. Previously we handled these cases
4081 badly, generating definition lists and missing the math.
4082 + Fix quotation mark parsing (#3336, tgkokk). Change MediaWiki reader's
4083 behavior when the smart option is parsed to match other readers'
4088 + Fixed `-f markdown_github-hard_line_breaks+escaped_line_breaks`
4089 (#3341). Previously this did not properly enable escaped line breaks.
4090 + Disallow space between inline code and attributes (#3326, #3323,
4093 * DocBook5 writer: make id attribute xml:id, fixes #3329 (#3330, Mauro Bieg).
4095 * Added some test cases for ODT reader (#3306, #3308, Hubert Plociniczak).
4097 * LaTeX writer: allow tables with empty cells to count as "plain."
4098 This addresses a problem of too-wide tables when empty cells
4099 are used. Thanks to Joost Kremers for reporting the issue.
4101 * Org writer: prefix footnote numbers with `fn:` (Albert Krewinkel).
4102 Unprefixed numbers where used by older org-mode versions, but are no
4105 * HTML writer: don't process pars with empty RawInline, (#1040, #3327,
4108 * Markdown writer: Fix display math with `--webtex` (#3298).
4110 * Fix sample.lua so it properly handles raw blocks/inlines (#3358,
4115 + default.latex: Moved geometry after hyperref (Václav Haisman).
4116 Otherwise PDF sizes can be wrong in some circumstances.
4117 + Copied a few changes from default.latex to default.beamer
4119 + default.latex, default.beamer: Changed position of `\VerbatimNotes`
4120 and `fancyvrb`. This fixes hyperlinks on footnotes in documents
4121 that contain verbatim in notes (#3361). (Note: the beamer template
4122 was updated to match the LaTeX template, but at this point verbatim
4123 in notes seems not to work in beamer.)
4124 + default.latex: Allow passing `microtypeoptions` to microtype
4126 + default.latex: Add hyphen option to url package.
4127 + default.docbook5: Fix namespace declarations (Mauro Bieg).
4129 * Moved `make_osx_package.sh` to `osx/` directory.
4131 * Travis continuous integration:
4133 + Fix false positives with dist build.
4134 + Speed improvements (Kolen Cheung, #3304, #3357).
4138 + Clarify that blank space is needed around footnotes (#3352).
4139 + Fixed typo (#3351, Alexey Rogechev).
4140 + Note that `--wrap=auto` does not work in HTML output.
4141 + Default `--columns` width is 72, not 80.
4142 + Fixed broken links (#3316, Kolen Cheung).
4143 + Document usage of `@*` in nocite section (#3333, John Muccigrosso).
4147 + Indent code so it's properly formatted (#3335, Bheesham Persaud).
4148 + Added instructions for extracting binary from OSX, Windows packages.
4150 * CONTRIBUTING.md: Describe labels currently used in issue tracker
4151 (Albert Krewinkel). The labels have changed over time, the list of
4152 labels is updated to reflect the current set of labels used in the
4155 * Rearrange and extend badges in README (Albert Krewinkel, #3354)
4157 * Bumped version bounds for dependencies.
4162 * Set `PANDOC_VERSION` environment variable for filters (#2640).
4163 This allows filters to check the pandoc version that produced
4164 the JSON they are receiving.
4166 * Docx reader: Ensure one-row tables don't have header (#3285,
4167 Jesse Rosenthal). Tables in MS Word are set by default to have
4168 special first-row formatting, which pandoc uses to determine whether
4169 or not they have a header. This means that one-row tables will, by
4170 default, have only a header -- which we imagine is not what people
4171 want. This change ensures that a one-row table is not understood to
4172 be a header only. Note that this means that it is impossible to
4173 produce a header-only table from docx, even though it is legal
4174 pandoc. But we believe that in nearly all cases, it will be an
4175 accidental (and unwelcome) result
4179 + Fixed some bad regressions in HTML table parser (#3280).
4180 This regression leads to the introduction of empty rows
4181 in some circumstances.
4182 + Understand `style=width:` as well as `width` in `col` (#3286).
4186 + Print warnings when keys, substitition, notes not found.
4187 Previously the parsers failed and we got raw text. Now we get a
4188 link with an empty URL, or empty inlines in the case of a note or
4191 + Fix hyperlink aliases (#3283).
4193 * Man writer: Ensure that periods are escaped at beginning of line
4196 * LaTeX writer: Fix unnumbered headers when used with `--top-level`
4197 (#3272, Albert Krewinkel). Fix interaction of top-level divisions
4198 `part` or `chapter` with unnumbered headers when emitting LaTeX. Headers
4199 are ensured to be written using stared commands (like `\subsection*{}`).
4201 * LaTeX template: use comma not semicolon to separate keywords for
4202 `pdfkeywords`. Thanks to Wandmalfarbe.
4204 * Markdown writer: Fixed incorrect word wrapping (#3277). Previously pandoc
4205 would sometimes wrap lines too early due to this bug.
4207 * Text.Pandoc.Pretty: Added `afterBreak` [API change]. This makes it
4208 possible to insert escape codes for content that needs escaping at the
4209 beginning of a line.
4211 * Removed old MathMLInHTML.js from 2004, which should no longer
4212 be needed for MathML with modern browsers.
4214 * Fixed tests with dynamic linking (#2709).
4216 * Makefile: Use stack instead of cabal for targets. This is just
4217 a convenience for developers.
4219 * Fixed bash completion of filenames with space (#2749).
4221 * MANUAL: improved documentation on how to create a custom `reference.docx`.
4223 * Fix minor spelling typos in the manual (#3273, Anthony Geoghegan)
4227 * Changed resolution of filter paths.
4229 + We now first treat the argument of `--filter` as a full (absolute
4230 or relative) path, looking for a program there. If it's found, we
4232 + If not, and if it is a simple program name or a relative path, we
4233 try resolving it relative to `$DATADIR/filters`.
4234 + If this fails, then we treat it as a program name and look in the
4236 + Removed a hardcoded '/' that may have caused problems with
4239 Previously if you did `--filter foo` and you had `foo` in your path and
4240 also an executable `foo` in your working directory, the one in the path
4241 would be used. Now the one in the working directory is used.
4243 In addition, when you do `--filter foo/bar.hs`, pandoc will now find a
4244 filter `$DATADIR/filters/foo/bar.hs` -- assuming there isn't a
4245 `foo/bar.hs` relative to the working directory.
4247 * Allow `file://` URIs as arguments (#3196). Also improved default reader
4248 format detection. Previously with a URI ending in .md or .markdown,
4249 pandoc would assume HTML input. Now it treats these as markdown.
4251 * Allow to overwrite top-level division type heuristics (#3258,
4252 Albert Krewinkel). Pandoc uses heuristics to determine the most
4253 reasonable top-level division type when emitting LaTeX or
4254 Docbook markup. It is now possible to overwrite this implicitly set
4255 top-level division via the `top-level-division` command line parameter.
4257 * Text.Pandoc.Options \[API changes\]:
4259 + Removed `writerStandalone` field in `WriterOptions`, made
4260 `writerTemplate` a `Maybe` value. Previously setting
4261 `writerStandalone = True` did nothing unless a template was provided
4262 in writerTemplate. Now a fragment will be generated if
4263 `writerTemplate` is `Nothing`; otherwise, the specified template
4264 will be used and standalone output generated.
4265 + `Division` has been renamed `TopLevelDivision` (#3197). The
4266 `Section`, `Chapter`, and `Part` constructors were renamed to
4267 `TopLevelSection`, `TopLevelChapter`, and
4268 `TopLevelPart`, respectively. An additional `TopLevelDefault`
4269 constructor was added, which is now also the new default value of
4270 the `writerTopLevelDivision` field in `WriterOptions`.
4272 * Improved error if they give wrong arg to `--top-level-division`.
4274 * Use new module from texmath to lookup MS font codepoints in Docx reader.
4275 Removed unexported module Text.Pandoc.Readers.Docx.Fonts. Its code now
4276 lives in texmath (0.9).
4278 * DocBook reader: Fixed xref lookup (#3243). It previously only worked
4279 when the qnames lacked the docbook namespace URI.
4283 + Improved table parsing (#3027). We now check explicitly for non-1
4284 rowspan or colspan attributes, and fail when we encounter them.
4285 Previously we checked that each row had the same number of cells,
4286 but that could be true even with rowspans/colspans. And there are
4287 cases where it isn't true in tables that we can handle fine -- e.g.
4288 when a tr element is empty. So now we just pad rows with empty cells
4290 + Treat `<math>` as MathML by default unless something else is
4291 explicitly specified in xmlns. Provided it parses as MathML,
4292 of course. Also fixed default which should be to inline math if no
4293 display attribute is used.
4294 + Only treat "a" element as link if it has href (#3226). Otherwise
4297 * Docx reader (Jesse Rosenthal):
4299 + Add a placeholder value for CHART. We wrap `[CHART]` in a
4300 `<span class="chart">`. Note that it maps to inlines because, in
4301 docx, anything in a drawing tag can be part of a larger paragraph.
4302 + Be more specific in parsing images We not only want `w:drawing`,
4303 because that could also include charts. Now we specify
4304 `w:drawing/pic:pic`. This shouldn't change behavior at all, but it's
4305 a first step toward allowing other sorts of drawing data as well.
4306 + Abstract out function to avoid code repetition.
4307 + Update tests for img title and alt (#3204).
4308 + Handle Alt text and titles in images. We use the "description" field
4309 as alt text and the "title" field as title. These can be accessed
4310 through the "Format Picture" dialog in Word.
4311 + Docx reader utils: handle empty namespace in `elemName`. Previously,
4312 if given an empty namespace `(elemName ns "" "foo")` `elemName`
4313 would output a QName with a `Just ""` namespace. This is never what
4314 we want. Now we output a `Nothing`. If someone *does* want a
4315 `Just ""` in the namespace, they can enter the QName
4318 * ODT reader/writer:
4320 + Inline code when text has a special style (Hubert Plociniczak). When
4321 a piece of text has a text `Source_Text` then we assume that this is
4322 a piece of the document that represents a code that needs to
4323 be inlined. Adapted the writer to also reflect that change.
4324 Previously it was just writing a 'preformatted' text using a
4325 non-distinguishable font style. Code blocks are still not recognized
4326 by the ODT reader. That's a separate issue.
4327 + Infer table's caption from the paragraph (#3224,
4328 Hubert Plociniczak). ODT's reader always put empty captions for the
4329 parsed tables. This commit
4331 1. checks paragraphs that follow the table definition
4332 2. treats specially a paragraph with a style named 'Table'
4333 3. does some postprocessing of the paragraphs that combines tables
4334 followed immediately by captions
4336 The ODT writer used the `TableCaption` style for the caption
4337 paragraph. This commit follows the OpenOffice approach which allows
4338 for appending captions to table but uses a built-in style named
4339 `Table` instead of `TableCaption`. Users of a custom `reference.odt`
4340 should change the style's name from `TableCaption` to `Table`.
4342 * ODT reader: Infer tables' header props from rows (#3199,
4343 Hubert Plociniczak). ODT reader simply provided an empty header list
4344 which meant that the contents of the whole table, even if not empty, was
4345 simply ignored. While we still do not infer headers we at least have to
4346 provide default properties of columns.
4350 + Allow reference link labels starting with `@...` if `citations`
4351 extension disabled (#3209). Example: in
4355 `link text` isn't hyperlinked because `[@a]` is parsed as
4356 a citation. Previously this happened whether or not the `citations`
4357 extension was enabled. Now it happens only if the `citations`
4358 extension is enabled.
4359 + Allow alignments to be specified in Markdown grid tables. For
4362 +-------+---------------+--------------------+
4363 | Right | Left | Centered |
4364 +=========:+:=================+:=============:+
4365 | Bananas | $1.34 | built-in wrapper |
4366 +-------+---------------+--------------------+
4368 + Allow Small Caps elements to be created using bracketed spans (as
4369 they already can be using HTML-syntax spans) (#3191, Kolen Cheung).
4373 + Don't treat `\vspace` and `\hspace` as block commands (#3256).
4374 Fixed an error which came up, for example, with `\vspace` inside
4375 a caption. (Captions expect inlines.)
4376 + Improved table handling. We can now parse all of the tables emitted
4377 by pandoc in our tests. The only thing we don't get yet are
4378 alignments and column widths in more complex tables. See #2669.
4379 + Limited support for minipage.
4380 + Allow for `[]`s inside LaTeX optional args. Fixes cases like:
4381 + Handle BVerbatim from fancyvrb (#3203).
4382 + Handle hungarumlaut (#3201).
4383 + Allow beamer-style `<...>` options in raw LaTeX (also in Markdown)
4384 (#3184). This allows use of things like `\only<2,3>{my content}` in
4385 Markdown that is going to be converted to beamer.
4387 * Use pre-wrap for code in dzslides template (Nicolas Porcel). Otherwise
4388 overly long code will appear on every slide.
4390 * Org reader (Albert Krewinkel):
4392 + Respect column width settings (#3246). Table column properties can
4393 optionally specify a column's width with which it is displayed in
4394 the buffer. Some exporters, notably the ODT exporter in org-mode
4395 v9.0, use these values to calculate relative column widths. The org
4396 reader now implements the same behavior. Note that the org-mode
4397 LaTeX and HTML exporters in Emacs don't support this feature yet,
4398 which should be kept in mind by users who use the column
4400 + Allow HTML attribs on non-figure images (#3222). Images which are
4401 the only element in a paragraph can still be given HTML attributes,
4402 even if the image does not have a caption and is hence not a figure.
4403 The following will add set the `width` attribute of the image to
4406 +ATTR\_HTML: :width 50%
4407 =======================
4409 \[\[file:image.jpg\]\]
4411 + Support `ATTR_HTML` for special blocks (#3182). Special
4412 blocks (i.e. blocks with unrecognized names) can be prefixed with an
4413 `ATTR_HTML` block attribute. The attributes defined in that
4414 meta-directive are added to the `Div` which is used to represent the
4416 + Support the `todo` export option. The `todo` export option allows to
4417 toggle the inclusion of TODO keywords in the output. Setting this to
4418 `nil` causes TODO keywords to be dropped from headlines. The default
4419 is to include the keywords.
4420 + Add support for todo-markers. Headlines can have optional
4421 todo-markers which can be controlled via the `#+TODO`, `#+SEQ_TODO`,
4422 or `#+TYP_TODO` meta directive. Multiple such directives can be
4423 given, each adding a new set of recognized todo-markers. If no
4424 custom todo-markers are defined, the default `TODO` and `DONE`
4425 markers are used. Todo-markers are conceptually separate from
4426 headline text and are hence excluded when autogenerating
4427 headline IDs. The markers are rendered as spans and labelled with
4428 two classes: One class is the markers name, the other signals the
4429 todo-state of the marker (either `todo` or `done`).
4433 + Use `\autocites*` when "suppress-author" citation used.
4434 + Ensure that simple tables have simple cells (#2666). If cells
4435 contain more than a single Plain or Para, then we need to set
4436 nonzero widths and put contents into minipages.
4437 + Remove invalid inlines in sections (#3218, Hubert Plociniczak).
4441 + Fix calculation of column widths for aligned multiline tables
4442 (#1911, Björn Peemöller). This also fixes excessive CPU and memory
4443 usage for tables when `--columns` is set in such a way that cells
4444 must be very tiny. Now cells are guaranteed to be big enough so that
4445 single words don't need to line break, even if this pushes the line
4446 length above the column width.
4447 + Use bracketed form for native spans when `bracketed_spans`
4449 + Fixed inconsistent spacing issue (#3232). Previously a tight bullet
4450 sublist got rendered with a blank line after, while a tight ordered
4451 sublist did not. Now we don't get the blank line in either case.
4452 + Fix escaping of spaces in super/subscript (#3225). Previously two
4453 backslashes were inserted, which gave a literal backslash.
4454 + Adjust widths in Markdown grid tables so that they match
4459 + Give full detail when there are errors converting tex math.
4460 + Handle title text in images (Jesse Rosenthal). We already handled
4461 alt text. This just puts the image "title" into the docx
4463 + Fixed XML markup for empty cells (#3238). Previously the Compact
4464 style wasn't being applied properly to empty cells.
4468 + Updated `renderHtml` import from blaze-html.
4470 * Text.Pandoc.Pretty:
4472 + Fixed some bugs that caused blank lines in tables (#3251). The bugs
4473 caused spurious blank lines in grid tables when we had things like
4474 `blankline $$ blankline`.
4475 + Add exported function `minOffet` \[API change\] (Björn Peemöller).
4476 + Added error message for illegal call to `block` (Björn Peemöller).
4478 * Text.Pandoc.Shared:
4480 + Put `warn` in MonadIO.
4481 + `fetchItem`: Better handling of protocol-relative URL (#2635). If
4482 URL starts with `//` and there is no "base URL" (as there would be
4483 if a URL were used on the command line), then default to http:.
4485 * Export Text.Pandoc.getDefaultExtensions \[API change\] (#3178).
4487 * In --version, trap error in `getAppUserDataDirectory` (#3241). This
4488 fixes a crash with `pandoc --version` on unusual systems with no real
4489 user (e.g. SQL Server 2016).
4491 * Added weigh-pandoc for memory usage diagnostics (#3169).
4493 * Use correct mime types for woff and woff2 (#3228).
4495 * Remove make\_travis\_yml.hs (#3235, Kolen Cheung).
4497 * changelog: Moved an item that was misplaced in the 1.17.2 section to the
4498 1.18 section where it belongs.
4500 * CONTRIBUTING.md: minor change in wording and punctuation (#3252,
4503 * Further revisions to manual for `--version` changes (#3244).
4508 * Added `--list-input-formats`, `--list-output-formats`,
4509 `--list-extensions`, `--list-highlight-languages`, and
4510 `--list-highlight-styles` (#3173). Removed list of highlighting
4511 languages from `--version` output. Removed list of input and output
4512 formats from default `--help` output.
4514 * Added `--reference-location=block|section|document` option
4515 (Jesse Rosenthal). This determines whether Markdown link references
4516 and footnotes are placed at the end of the document, the end of the
4517 section, or the end of the top-level block.
4519 * Added `--top-level-division=section|chapter|part` (Albert Krewinkel).
4520 This determines what a level-1 header corresponds to in LaTeX,
4521 ConTeXt, DocBook, and TEI output. The default is `section`.
4522 The `--chapters` option has been deprecated in favor of
4523 `--top-level-division=chapter`.
4525 * Added `LineBlock` constructor for `Block` (Albert Krewinkel). This
4526 is now used in parsing RST and Markdown line blocks, DocBook
4527 `linegroup`/`line` combinations, and Org-mode `VERSE` blocks.
4528 Previously `Para` blocks with hard linebreaks were used. `LineBlock`s
4529 are handled specially in the following output formats: AsciiDoc
4530 (as `[verse]` blocks), ConTeXt (`\startlines`/`\endlines`),
4531 HTML (`div` with a style), Markdown (line blocks if `line_blocks`
4532 is enabled), Org-mode (`VERSE` blocks), RST (line blocks). In
4533 other output formats, a paragraph with hard linebreaks is emitted.
4535 * Allow binary formats to be written to stdout (but not to tty) (#2677).
4536 Only works on posix, since we use the unix library to check whether
4537 output is to tty. On Windows, pandoc works as before and always requires
4538 an output file parameter for binary formats.
4540 * Changed JSON output format (Jesse Rosenthal). Previously we used
4541 generically generated JSON, but this was subject to change depending
4542 on the version of aeson pandoc was compiled with. To ensure stability,
4543 we switched to using manually written ToJSON and FromJSON
4544 instances, and encoding the API version. **Note:** pandoc filter
4545 libraries will need to be revised to handle the format change.
4546 Here is a summary of the essential changes:
4548 + The toplevel JSON format is now `{"pandoc-api-version" :
4549 [MAJ, MIN, REV], "meta" : META, "blocks": BLOCKS}`
4550 instead of `[{"unMeta": META}, [BLOCKS]]`.
4551 Decoding fails if the major and minor version numbers don't
4553 + Leaf nodes no longer have an empty array for their "c" value.
4554 Thus, for example, a `Space` is encoded as `{"t":"Space"}`
4555 rather than `{"t":"Space","c":[]}` as before.
4557 * Removed `tests/Tests/Arbitrary.hs` and added a `Text.Pandoc.Arbitrary`
4558 module to pandoc-types (Jesse Rosenthal). This makes it easier
4559 to use QuickCheck with pandoc types outside of pandoc itself.
4561 * Add `bracketed_spans` Markdown extension, enabled by default
4562 in pandoc `markdown`. This allows you to create a native span
4563 using this syntax: `[Here is my span]{#id .class key="val"}`.
4565 * Added `angle_brackets_escapable` Markdown extension (#2846).
4566 This is needed because github flavored Markdown has a slightly
4567 different set of escapable symbols than original Markdown;
4568 it includes angle brackets.
4570 * Export `Text.Pandoc.Error` in `Text.Pandoc` [API change].
4572 * Print highlighting-kate version in `--version`.
4574 * `Text.Pandoc.Options`:
4576 + `Extension` has new constructors `Ext_brackted_spans` and
4577 `Ext_angle_brackets_escapable` [API change].
4578 + Added `ReferenceLocation` type [API change] (Jesse Rosenthal).
4579 + Added `writerReferenceLocation` field to `WriterOptions` (Jesse
4582 * `--filter`: we now check `$DATADIR/filters` for filters before
4583 looking in the path (#3127, Jesse Rosenthal, thanks to Jakob
4584 Voß for the idea). Filters placed in this directory need not
4585 be executable; if the extension is `.hs`, `.php`, `.pl`, `.js`,
4586 or `.rb`, pandoc will run the right interpreter.
4588 * For `--webtex`, replace deprecated Google Chart API by CodeCogs as
4589 default (Kolen Cheung).
4591 * Removed `raw_tex` extension from `markdown_mmd` defaults (Kolen Cheung).
4593 * Execute .js filters with node (Jakob Voß).
4597 + Support `bc..` extended code blocks (#3037). Also, remove trailing
4598 newline in code blocks (consistently with Markdown reader).
4599 + Improve table parsing. We now handle cell and row attributes, mostly
4600 by skipping them. However, alignments are now handled properly.
4601 Since in pandoc alignment is per-column, not per-cell, we
4602 try to devine column alignments from cell alignments.
4603 Table captions are also now parsed, and textile indicators
4604 for thead and tfoot no longer cause parse failure. (However,
4605 a row designated as tfoot will just be a regular row in pandoc.)
4606 + Improve definition list parsing. We now allow multiple terms
4607 (which we concatenate with linebreaks). An exponential parsing
4608 bug (#3020) is also fixed.
4609 + Disallow empty URL in explicit link (#3036).
4613 + Use Div instead of BlockQuote for admonitions (#3031).
4614 The Div has class `admonition` and (if relevant) one of the
4615 following: `attention`, `caution`, `danger`, `error`, `hint`,
4616 `important`, `note`, `tip`, `warning`. **Note:** This will change
4617 the rendering of some RST documents! The word ("Warning", "Attention",
4618 etc.) is no longer added; that must be done with CSS or a filter.
4619 + A Div is now used for `sidebar` as well.
4620 + Skip whitespace before note (Jesse Rosenthal, #3163). RST requires a
4621 space before a footnote marker. We discard those spaces so that footnotes
4622 will be adjacent to the text that comes before it. This is in line with
4623 what rst2latex does.
4624 + Allow empty lines when parsing line blocks (Albert Krewinkel).
4628 + Allow empty lines when parsing line blocks (Albert Krewinkel).
4629 + Allow attributes on autolinks (#3183, Daniele D'Orazio).
4633 + More robust parsing of unknown environments (#3026).
4634 We no longer fail on things like `^` inside options for tikz.
4635 + Be more forgiving of non-standard characters, e.g. `^` outside of math.
4636 Some custom environments give these a meaning, so we should try not to
4637 fall over when we encounter them.
4638 + Drop duplicate `*` in bibtexKeyChars (Albert Krewinkel)
4642 + Fix for unquoted attribute values in mediawiki tables (#3053).
4643 Previously an unquoted attribute value in a table row
4644 could cause parsing problems.
4645 + Improved treatment of verbatim constructions (#3055).
4646 Previously these yielded strings of alternating Code and Space
4647 elements; we now incorporate the spaces into the Code. Emphasis
4648 etc. is still possible inside these.
4649 + Properly interpret XML tags in pre environments (#3042). They are meant
4650 to be interpreted as literal text.
4652 * EPUB reader: don't add root path to data: URIs (#3150).
4653 Thanks to @lep for the bug report and patch.
4655 * Org reader (Albert Krewinkel):
4657 + Preserve indentation of verse lines (#3064). Leading spaces in verse
4658 lines are converted to non-breaking spaces, so indentation is preserved.
4659 + Ensure image sources are proper links. Image sources as those in plain
4660 images, image links, or figures, must be proper URIs or relative file
4661 paths to be recognized as images. This restriction is now enforced
4662 for all image sources. This also fixes the reader's usage of uncleaned
4663 image sources, leading to `file:` prefixes not being deleted from
4664 figure images. Thanks to @bsag for noticing this bug.
4665 + Trim verse lines properly (Albert Krewinkel).
4666 + Extract meta parsing code to module. Parsing of meta-data is well
4667 separable from other block parsing tasks. Moving into new module to
4668 get small files and clearly arranged code.
4669 + Read markup only for special meta keys. Most meta-keys should be read
4670 as normal string values, only a few are interpreted as marked-up text.
4671 + Allow multiple, comma-separated authors. Multiple authors can be
4672 specified in the `#+AUTHOR` meta line if they are given as a
4673 comma-separated list.
4674 + Give precedence to later meta lines. The last meta-line of any given
4675 type is the significant line. Previously the value of the first line
4676 was kept, even if more lines of the same type were encountered.
4677 + Read LaTeX_header as header-includes. LaTeX-specific header commands
4678 can be defined in `#+LaTeX_header` lines. They are parsed as
4679 format-specific inlines to ensure that they will only show up in LaTeX
4681 + Set documentclass meta from LaTeX_class.
4682 + Set classoption meta from LaTeX_class_options.
4683 + Read HTML_head as header-includes. HTML-specific head content can be
4684 defined in `#+HTML_head` lines. They are parsed as format-specific
4685 inlines to ensure that they will only show up in HTML output.
4686 + Respect `author` export option. The `author` option controls whether
4687 the author should be included in the final markup. Setting
4688 `#+OPTIONS: author:nil` will drop the author from the final meta-data
4690 + Respect `email` export option. The `email` option controls whether the
4691 email meta-field should be included in the final markup. Setting
4692 `#+OPTIONS: email:nil` will drop the email field from the final
4694 + Respect `creator` export option. The `creator` option controls whether
4695 the creator meta-field should be included in the final markup. Setting
4696 `#+OPTIONS: creator:nil` will drop the creator field from the final
4697 meta-data output. Org-mode recognizes the special value `comment` for
4698 this field, causing the creator to be included in a comment. This is
4699 difficult to translate to Pandoc internals and is hence interpreted the
4700 same as other truish values (i.e. the meta field is kept if it's
4702 + Respect unnumbered header property (#3095). Sections the `unnumbered`
4703 property should, as the name implies, be excluded from the automatic
4704 numbering of section provided by some output formats. The Pandoc
4705 convention for this is to add an "unnumbered" class to the header. The
4706 reader treats properties as key-value pairs per default, so a special
4707 case is added to translate the above property to a class instead.
4708 + Allow figure with empty caption (Albert Krewinkel, #3161).
4709 A `#+CAPTION` attribute before an image is enough to turn an image into
4710 a figure. This wasn't the case because the `parseFromString` function,
4711 which processes the caption value, would fail on empty values. Adding
4712 a newline character to the caption value fixes this.
4716 + Use XML convenience functions (Jesse Rosenthal).
4717 The functions `isElem` and `elemName` (defined in Docx/Util.hs) make
4718 the code a lot cleaner than the original XML.Light functions, but they
4719 had been used inconsistently. This puts them in wherever applicable.
4720 + Handle anchor spans with content in headers. Previously, we would only
4721 be able to figure out internal links to a header in a docx if the
4722 anchor span was empty. We change that to read the inlines out of the
4723 first anchor span in a header.
4724 + Let headers use existing id. Previously we always generated an id for
4725 headers (since they wouldn't bring one from Docx). Now we let it use an
4726 existing one if possible. This should allow us to recurs through anchor
4728 + Use all anchor spans for header ids. Previously we only used the first
4729 anchor span to affect header ids. This allows us to use all the anchor
4730 spans in a header, whether they're nested or not (#3088).
4731 + Test for nested anchor spans in header. This ensures that anchor spans
4732 in header with content (or with other anchor spans inside) will resolve
4733 to links to a header id properly.
4735 * ODT reader (Hubert Plociniczak)
4737 + Include list's starting value. Previously the starting value of
4738 the lists' items has been hardcoded to 1. In reality ODT's list
4739 style definition can provide a new starting value in one of its
4741 + Infer caption from the text following the image.
4742 Frame can contain other frames with the text boxes.
4743 + Add `fig:` to title for Image with a caption (as expected
4744 by pandoc's writers).
4745 + Basic support for images in ODT documents.
4746 + Don't duplicate text for anchors (#3143). When creating an anchor
4747 element we were adding its representation as well as the original
4748 content, leading to text duplication.
4752 + Include an anchor element when a div or span has an id (#3102).
4753 Note that DocBook does not have a class attribute, but at least this
4754 provides an anchor for internal links.
4758 + Don't use * for unnumbered paragraph, subparagraph. The starred
4759 variants don't exist. This helps with part of #3058...it gets rid of
4760 the spurious `*`s. But we still have numbers on the 4th and 5th level
4762 + Properly escape backticks in verbatim (#3121, Jesse Rosenthal).
4763 Otherwise they can cause unintended ligatures like `` ?` ``.
4764 + Handle NARRAOW NO-BREAK SPACE into LaTeX (Vaclav Zeman) as `\,`.
4765 + Don't include `[htbp]` placement for figures (#3103, Václav Haisman).
4766 This allows figure placement defaults to be changed by the user
4769 * HTML writer (slide show formats): In slide shows, don't change slide title
4770 to level 1 header (#2221).
4772 * TEI writer: remove heuristic to detect book template (Albert Krewinkel).
4773 TEI doesn't have `<book>` elements but only generic `<divN>` division
4774 elements. Checking the template for a trailing `</book>` is nonsensical.
4776 * MediaWiki writer: transform filename with underscores in images (#3052).
4777 `foo bar.jpg` becomes `foo_bar.jpg`. This was already done
4778 for internal links, but it also needs to happen for images.
4780 * ICML writer: replace partial function (!!) in table handling (#3175,
4783 * Man writer: allow section numbers that are not a single digit (#3089).
4785 * AsciiDoc writer: avoid unnecessary use of "unconstrained" emphasis
4786 (#3068). In AsciiDoc, you must use a special form of emphasis
4787 (double `__`) for intraword emphasis. Pandoc was previously using
4788 this more than necessary.
4790 * EPUB writer: use stringify instead of plain writer for metadata
4791 (#3066). This means that underscores won't be used for emphasis,
4792 or CAPS for bold. The metadata fields will just have unadorned
4797 + Implement user-defined styles (Jesse Rosenthal). Divs and Spans
4798 with a `custom-style` key in the attributes will apply the corresponding
4799 key to the contained blocks or inlines.
4800 + Add ReaderT env to the docx writer (Jesse Rosenthal).
4801 + Clean up and streamline RTL behavior (Jesse Rosenthal, #3140).
4802 You can set `dir: rtl` in YAML metadata, or use `-M dir=rtl`
4803 on the command line. For finer-grained control, you can set
4804 the `dir` attribute in Div or Span elements.
4806 * Org writer (Albert Krewinkel):
4808 + Remove blank line after figure caption. Org-mode only treats an image
4809 as a figure if it is directly preceded by a caption.
4810 + Ensure blank line after figure. An Org-mode figure should be surrounded
4811 by blank lines. The figure would be recognized regardless, but images
4812 in the following line would unintentionally be treated as figures as
4814 + Ensure link targets are paths or URLs. Org-mode treats links as
4815 document internal searches unless the link target looks like a URL or
4816 file path, either relative or absolute. This change ensures that this
4818 + Translate language identifiers. Pandoc and Org-mode use different
4819 programming language identifiers. An additional translation between
4820 those identifiers is added to avoid unexpected behavior. This fixes a
4821 problem where language specific source code would sometimes be output
4823 + Drop space before footnote markers (Albert Krewinkel, #3162).
4824 The writer no longer adds an extra space before footnote markers.
4828 + Don't emit HTML for tables unless `raw_html` extension is set (#3154).
4829 Emit `[TABLE]` if no suitable table formats are enabled and raw HTML
4831 + Check for the `raw_html` extension before emitting a raw HTML block.
4832 + Abstract out note/ref function (Jesse Rosenthal).
4833 + Add ReaderT monad for environment variables (Jesse Rosenthal).
4835 * HTML, EPUB, slidy, revealjs templates: Use `<p>` instead of `<h1>` for
4836 subtitle, author, date (#3119). Note that, as a result of this change,
4837 authors may need to update CSS.
4839 * revealjs template: Added `notes-server` option
4840 (jgm/pandoc-templates#212, Yoan Blanc).
4844 + Restore whitespace between paragraphs. This was
4845 a regression in the last release (jgm/pandoc-templates#207).
4846 + Added `themeoptions` variable (Carsten Gips).
4847 + Added `beamerarticle` variable. This causes the `beamerarticle`
4848 package to be loaded in beamer, to produce an article from beamer
4849 slides. (Carsten Gips)
4850 + Added support for `fontfamilies` structured variable
4852 + Added hypersetup options (Jake Zimmerman).
4856 + Added dummy definition for `\institute`.
4857 This isn't a standard command, and we want to avoid a crash when
4858 `institute` is used with the default template.
4859 + Define default figure placement (Václav Haisman), since pandoc
4860 no longer includes `[htbp]` for figures. Users with custom templates
4861 will want to add this. See #3103.
4862 + Use footnote package to fix notes in tables (jgm/pandoc-templates#208,
4865 * Moved template compiling/rendering code to a separate library.
4866 `doctemplates`. This allows the pandoc templating system to be
4869 * Text.Pandoc.Error: Fix out of index error in `handleError`
4870 (Matthew Pickering). The fix is to not try to show the exact line when
4871 it would cause an out-of-bounds error as a result of included files.
4873 * Text.Pandoc.Shared: Add `linesToBlock` function (Albert Krewinkel).
4875 * Text.Pandoc.Parsing.emailAddress: tighten up parsing of email
4876 addresses. Technically `**@user` is a valid email address, but if we
4877 allow things like this, we get bad results in markdown flavors
4878 that autolink raw email addresses (see #2940). So we exclude a few
4879 valid email addresses in order to avoid these more common bad cases.
4881 * Text.Pandoc.PDF: Don't crash with nonexistent image (#3100). Instead,
4882 emit the alt text, emphasized. This accords with what the ODT writer
4883 currently does. The user will still get a warning about a nonexistent
4886 * Fix example in API documentation (#3176, Thomas Weißschuh).
4888 * Tell where to get tarball in INSTALL (#3062).
4890 * Rename README to MANUAL.txt and add GitHub-friendly README.md
4891 (Albert Krewinkel, Kolen Cheung).
4893 * Replace COPYING with Markdown version COPYING.md from GNU (Kolen Cheung).
4897 + Put note on structured vars in separate paragraph (#2148, Albert
4898 Krewinkel). Make it clearer that structured author variables require a
4900 + Note that `--katex` works best with `html5` (#3077).
4901 + Fix the LaTeX and EPUB links in manual (Morton Fox).
4902 + Document `biblio-title` variable.
4904 * Improve spacing of footnotes in `--help` output (Waldir Pimenta).
4906 * Update KaTeX to v0.6.0 (Kolen Cheung).
4908 * Allow latest dependencies.
4910 * Use texmath 0.8.6.6 (#3040).
4912 * Allow http-client 0.4.30, which is the version in stackage lts.
4913 Previously we required 0.5.
4914 Remove CPP conditionals for earlier versions.
4916 * Remove support for GHC < 7.8 (Jesse Rosenthal).
4918 + Remove Compat.Monoid.
4919 + Remove an inline monad compatibility macro.
4920 + Remove Text.Pandoc.Compat.Except.
4921 + Remove directory compat.
4922 + Change constraint on mtl.
4923 + Remove unnecessary CPP condition in UTF8.
4924 + Bump base lower bound to 4.7.
4925 + Remove 7.6 build from .travis.yaml.
4926 + Bump supported ghc version in CONTRIBUTING.md.
4927 + Add note about GHC version support to INSTALL.
4928 + Remove GHC 7.6 from list of tested versions (Albert Krewinkel).
4929 + Remove TagSoup compat.
4930 + Add EOL note to time compat module. Because time 1.4 is a boot library
4931 for GHC 7.8, we will support the compatibility module as long as we
4932 support 7.8. But we should be clear about when we will no longer need
4934 + Remove blaze-html CPP conditional.
4935 + Remove unnecessary CPP in custom Prelude.
4939 * Added Zim Wiki writer, template and tests. `zimwiki` is now
4940 a valid output format. (Alex Ivkin)
4942 * Changed email-obfuscation default to no obfuscation (#2988).
4943 + `writerEmailObfuscation` in `defaultWriterOptions` is now
4945 + the default for the command-line `--email-obfuscation` option is
4948 * Docbook writer: Declare xlink namespace in Docbook5 output (Ivo Clarysse).
4952 + Support arbitrary raw inlines (Albert Krewinkel).
4953 Org mode allows arbitrary raw inlines ("export snippets" in Emacs
4954 parlance) to be included as `@@format:raw foreign format text@@`.
4955 + Improve Div handling (Albert Krewinkel). Div blocks handling is
4956 changed to make the output look more like idiomatic org mode:
4957 - Div-wrapped content is output as-is if the div's attribute is the
4959 - Div containers with an id but neither classes nor key-value pairs
4960 are unwrapped and the id is added as an anchor.
4961 - Divs with classes associated with greater block elements are
4962 wrapped in a `#+BEGIN`...`#+END` block.
4963 - The old behavior for Divs with more complex attributes is kept.
4967 + Better support for raw LaTeX environments (#2758).
4968 Previously we just passed all raw TeX through when MathJax was used for
4969 HTML math. This passed through too much. With this patch, only raw
4970 LaTeX environments that MathJax can handle get passed through.
4971 This patch also causes raw LaTeX environments to be treated
4972 as math, when possible, with MathML and WebTeX output.
4974 * Markdown writer: use raw HTML for simple, pipe tables with linebreaks
4975 (#2993). Markdown line breaks involve a newline, and simple and pipe
4976 tables can't contain one.
4978 * Make --webtex work with the Markdown writer (#1177).
4979 This is a convenient option for people using
4980 websites whose Markdown flavors don't provide for math.
4984 + Set paragraph to FirstPara after display math (Jesse Rosenthal).
4985 We treat display math like block quotes, and apply FirstParagraph style
4986 to paragraphs that follow them. These can be styled as the user
4987 wishes. (But, when the user is using indentation, this allows for
4988 paragraphs to continue after display math without indentation.)
4989 + Use actual creation time as doc prop (Jesse Rosenthal).
4990 Previously, we had used the user-supplied date, if available, for Word's
4991 document creation metadata. This could lead to weird results, as in
4992 cases where the user post-dates a document (so the modification might be
4993 prior to the creation). Here we use the actual computer time to set the
4998 + Don't URI-escape image source (#2825). Usually this is a local file,
4999 and replacing spaces with `%20` ruins things.
5000 + Allow 'standout' as a beamer frame option (#3007).
5001 `## Slide title {.standout}`.
5003 * RST reader: Fixed links with no explicit link text. The link
5004 `` `<foo>`_ `` should have `foo` as both its link text and its URL.
5005 See RST spec at <http://docutils.sourceforge.net/docs/ref/rst/restructuredtext.html#embedded-uris-and-aliases>
5006 Closes Debian #828167 -- reported by Christian Heller.
5010 + Fixed attributes (#2984). Attributes can't be followed by
5011 a space. So, `_(class)emph_` but `_(noclass) emph_`.
5012 + Fixed exponential parsing bug (#3020).
5013 + Fix overly aggressive interpretation as images (#2998).
5014 Spaces are not allowed in the image URL in textile.
5018 + Fix `\cite` so it is a NormalCitation not AuthorInText.
5019 + Strip off double quotes around image source if present (#2825).
5020 Avoids interpreting these as part of the literal filename.
5024 + Add semicolon to list of special chars (Albert Krewinkel)
5025 Semicolons are used as special characters in citations syntax. This
5026 ensures the correct parsing of Pandoc-style citations: `[prefix; @key;
5027 suffix]`. Previously, parsing would have failed unless there was a space
5028 or other special character as the last <prefix> character.
5029 + Add support for "Berkeley-style" cites (Albert Krewinkel, #1978).
5030 A specification for an official Org-mode citation syntax was drafted by
5031 Richard Lawrence and enhanced with the help of others on the orgmode
5032 mailing list. Basic support for this citation style is added to the
5034 + Support arbitrary raw inlines (Albert Krewinkel).
5035 Org mode allows arbitrary raw inlines ("export snippets" in Emacs
5036 parlance) to be included as `@@format:raw foreign format text@@`.
5037 + Remove partial functions (Albert Krewinkel, #2991).
5038 Partial functions like `head` lead to avoidable errors and should be
5039 avoided. They are replaced with total functions.
5040 + Support figure labels (Albert Krewinkel, #2496, #2999).
5041 Figure labels given as `#+LABEL: thelabel` are used as the ID of the
5042 respective image. This allows e.g. the LaTeX to add proper `\label`
5044 + Improve tag and properties type safety (Albert Krewinkel).
5045 Specific newtype definitions are used to replace stringly typing of tags
5046 and properties. Type safety is increased while readability is improved.
5047 + Parse as headlines, convert to blocks (Albert Krewinkel).
5048 Emacs org-mode is based on outline-mode, which treats documents as trees
5049 with headlines are nodes. The reader is refactored to parse into a
5050 similar tree structure. This simplifies transformations acting on
5051 document (sub-)trees.
5052 * Refactor comment tree handling (Albert Krewinkel).
5053 Comment trees were handled after parsing, as pattern matching on lists
5054 is easier than matching on sequences. The new method of reading
5055 documents as trees allows for more elegant subtree removal.
5056 * Support archived trees export options (Albert Krewinkel).
5057 Handling of archived trees can be modified using the `arch` option.
5058 Archived trees are either dropped, exported completely, or collapsed to
5059 include just the header when the `arch` option is nil, non-nil, or
5060 `headline`, respectively.
5061 * Put export setting parser into module (Albert Krewinkel).
5062 Export option parsing is distinct enough from general block parsing to
5063 justify putting it into a separate module.
5064 * Support headline levels export setting (Albert Krewinkel).
5065 The depths of headlines can be modified using the `H` option. Deeper
5066 headlines will be converted to lists.
5067 * Replace ugly code with view pattern (Albert Krewinkel).
5068 Some less-than-smart code required a pragma switching of overlapping
5069 pattern warnings in order to compile seamlessly. Using view patterns
5070 makes the code easier to read and also doesn't require overlapping
5071 pattern checks to be disabled.
5072 * Fix parsing of verbatim inlines (Albert Krewinkel, #3016).
5073 Org rules for allowed characters before or after markup chars were not
5074 checked for verbatim text. This resultet in wrong parsing outcomes of
5075 if the verbatim text contained e.g. space enclosed markup characters as
5076 part of the text (`=is_substr = True=`). Forcing the parser to update
5077 the positions of allowed/forbidden markup border characters fixes this.
5079 * LaTeX template: fix for obscure hyperref/xelatex issue.
5080 Here's a minimal case:
5082 \documentclass[]{article}
5083 \usepackage{hyperref}
5088 Without this change, this fails on the second invocation of xelatex.
5089 This affects inputs this like `# %á` with pdf output via xelatex.
5091 * trypandoc: call results 'html' instead of 'result'.
5092 This is for better compatibility with babelmark2.
5094 * Document MultiMarkdown as input/output format (Albert Krewinkel, #2973).
5095 MultiMarkdown was only mentioned as a supported Markdown dialect but not
5096 as a possible input or output format. A brief mention is added
5097 everywhere the other supported markdown dialects are mentioned.
5099 * Document Org mode as a format containing raw HTML (Albert Krewinkel)
5100 Raw HTML is kept when the output format is Emacs Org mode.
5102 * Implement `RawInline` and `RawBlock` in sample lua custom writer (#2985).
5104 * Text.Pandoc.Shared:
5106 + Introduce blocksToInlines function (Jesse Rosenthal).
5107 This is a lossy function for converting `[Block] -> [Inline]`. Its main
5108 use, at the moment, is for docx comments, which can contain arbitrary
5109 blocks (except for footnotes), but which will be converted to spans.
5110 This is, at the moment, pretty useless for everything but the basic
5111 `Para` and `Plain` comments. It can be improved, but the docx reader
5112 should probably emit a warning if the comment contains more than this.
5113 + Add BlockQuote to blocksToInlines (Jesse Rosenthal).
5114 + Add further formats for `normalizeDate` (Jesse Rosenthal).
5115 We want to avoid illegal dates -- in particular years with greater than
5116 four digits. We attempt to parse series of digits first as `%Y%m%d`, then
5117 `%Y%m`, and finally `%Y`.
5118 + `normalizeDate` should reject illegal years (Jesse Rosenthal).
5119 We only allow years between 1601 and 9999, inclusive. The ISO 8601
5120 actually says that years are supposed to start with 1583, but MS Word
5121 only allows 1601-9999. This should stop corrupted word files if the date
5122 is out of that range, or is parsed incorrectly.
5123 + Improve year sanity check in normalizeDate (Jesse Rosenthal).
5124 Previously we parsed a list of dates, took the first one, and then
5125 tested its year range. That meant that if the first one failed, we
5126 returned nothing, regardless of what the others did. Now we test for
5127 sanity before running `msum` over the list of Maybe values. Anything
5128 failing the test will be Nothing, so will not be a candidate.
5132 + Add simple comment functionality. (Jesse Rosenthal).
5133 This adds simple track-changes comment parsing to the docx reader. It is
5134 turned on with `--track-changes=all`. All comments are converted to
5135 inlines, which can list some information. In the future a warning will be
5136 added for comments with formatting that seems like it will be excessively
5137 denatured. Note that comments can extend across blocks. For that reason
5138 there are two spans: `comment-start` and `comment-end`. `comment-start`
5139 will contain the comment. `comment-end` will always be empty. The two
5140 will be associated by a numeric id.
5141 + Enable warnings in top-level reader (Jesse Rosenthal).
5142 Previously we had only allowed for warnings in the parser. Now we allow
5143 for them in the `Docx.hs` as well. The warnings are simply concatenated.
5144 + Add warning for advanced comment formatting. (Jesse Rosenthal).
5145 We can't guarantee we'll convert every comment correctly, though we'll
5146 do the best we can. This warns if the comment includes something other
5148 + Add tests for warnings. (Jesse Rosenthal).
5149 + Add tests for comments (Jesse Rosenthal).
5150 We test for comments, using all track-changes options. Note that we
5151 should only output comments if `--track-changes=all`. We also test for
5152 emitting warnings if there is complicated formatting.
5154 * README: update to include track-changes comments. (Jesse Rosenthal)
5156 * Improved Windows installer - don't ignore properties set on command-line.
5157 See #2708. Needs testing to see if this resolves the issue.
5160 * Process markdown extensions on command line in L->R order (#2995).
5161 Previously they were processed, very unintuitively, in R->L
5162 order, so that `markdown-tex_math_dollars+tex_math_dollars`
5163 had `tex_math_dollars` disabled.
5165 * Added `secnumdepth` variable to LaTeX template (#2920).
5167 * Include table of contents in README.html in Windows package.
5169 * Writers: treat SoftBreak as space for stripping (Jesse Rosenthal)
5170 In Writers.Shared, we strip leading and trailing spaces for display
5171 math. Since SoftBreak's are treated as spaces, we should strip those
5174 * beamer, latex templates: pass biblatexoptions directly in package load.
5175 This allows runtime optinos to be used. Fixes jgm/pandoc-citeproc#201
5177 * CPP workaround for deprecation of `parseUrl` in http-client.
5179 * Removed some redundant class constraints.
5181 * make_oxs_package.sh - use OSX env variable.
5183 * Replaced INSTALL with INSTALL.md, incorporating INSTALL and the
5184 old installing page from website.
5186 * Added `winpkg` target to Makefile. This downloads the windows package
5187 from appveyor and signs it using the key.
5189 * Document Org mode as a format containing raw TeX (Albert Krewinkel).
5190 Raw TeX is kept verbatim when the output format is Emacs Org mode.
5192 * Support math with haddock-library >= 1.4.
5194 * Removed `-rtsopts` from library stanza. It has no effect, and Hackage
5195 wouldn't accept the package.
5197 * Update library dependency versions.
5201 * New output format: `docbook5` (Ivo Clarysse).
5203 * `Text.Pandoc.Options`: Add `writerDocBook5` to `WriterOptions`
5208 + Add :PROPERTIES: drawer support (Albert Krewinkel, #1962).
5209 This allows header attributes to be added to org documents in the form
5210 of `:PROPERTIES:` drawers. All available attributes are stored as
5211 key/value pairs. This reflects the way the org reader handles
5212 `:PROPERTIES:` blocks.
5213 + Add drawer capability (Carlos Sosa). For the implementation of the
5214 Drawer element in the Org Writer, we make use of a generic Block
5215 container with attributes. The presence of a `drawer` class defines
5216 that the `Div` constructor is a drawer. The first class defines the
5217 drawer name to use. The key-value list in the attributes defines
5218 the keys to add inside the Drawer. Lastly, the list of Block elements
5219 contains miscellaneous blocks elements to add inside of the Drawer.
5220 + Use `CUSTOM_ID` in properties (Albert Krewinkel). The `ID` property is
5221 reserved for internal use by Org-mode and should not be used.
5222 The `CUSTOM_ID` property is to be used instead, it is converted to the
5223 `ID` property for certain export format.
5227 + Ignore `--incremental` unless output format is beamer (#2843).
5228 + Fix polyglossia to babel env mapping (Mauro Bieg, #2728).
5229 Allow for optional argument in square brackets.
5230 + Recognize `la-x-classic` as Classical Latin (Andrew Dunning).
5231 This allows one to access the hyphenation patterns in CTAN's
5233 + Add missing languages from hyph-utf8 (Andrew Dunning).
5234 + Improve use of `\strut` with `\minipage` inside tables
5235 (Jose Luis Duran). This improves spacing in multiline
5237 + Use `{}` around options containing special chars (#2892).
5238 + Avoid lazy `foldl`.
5239 + Don't escape underscore in labels (#2921). Previously they were
5241 + brazilian -> brazil for polyglossia (#2953).
5243 * HTML writer: Ensure mathjax link is added when math appears in footnote
5244 (#2881). Previously if a document only had math in a footnote, the
5245 MathJax link would not be added.
5247 * EPUB writer: set `navpage` variable on nav page.
5248 This allows templates to treat it differently.
5252 + Use docbook5 if `writerDocbook5` is set (Ivo Clarysse).
5253 + Properly handle `ulink`/`link` (Ivo Clarysse).
5257 + Unescape URIs in spine (#2924).
5258 + EPUB reader: normalise link id (Mauro Bieg).
5262 + Parse `moveTo` and `moveFrom` (Jesse Rosenthal).
5263 `moveTo` and `moveFrom` are track-changes tags that are used when a
5264 block of text is moved in the document. We now recognize these tags and
5265 treat them the same as `insert` and `delete`, respectively. So,
5266 `--track-changes=accept` will show the moved version, while
5267 `--track-changes=reject` will show the original version.
5268 + Tests for track-changes moving (Jesse Rosenthal).
5270 * ODT, EPUB, Docx readers: throw `PandocError` on unzip failure
5271 (Jesse Rosenthal) Previously, `readDocx`, `readEPUB`, and `readOdt`
5272 would error out if zip-archive failed. We change the archive extraction
5273 step from `toArchive` to `toArchiveOrFail`, which returns an Either value.
5275 * Markdown, HTML readers: be more forgiving about unescaped `&` in
5276 HTML (#2410). We are now more forgiving about parsing invalid HTML with
5277 unescaped `&` as raw HTML. (Previously any unescaped `&`
5278 would cause pandoc not to recognize the string as raw HTML.)
5282 + Added bracket syntax for native spans (#168).
5283 + Fix pandoc title blocks with lines ending in 2 spaces (#2799).
5284 + Added `-s` to markdown-reader-more test.
5286 * HTML reader: fixed bug in `pClose`. This caused exponential parsing
5287 behavior in documnets with unclosed tags in `dl`, `dd`, `dt`.
5289 * MediaWiki reader: Allow spaces before `!` in MediaWiki table header
5292 * RST reader: Support `:class:` option for code block in RST reader
5295 * Org reader (all Albert Krewinkel, except where noted otherwise):
5297 + Stop padding short table rows.
5298 Emacs Org-mode doesn't add any padding to table rows. The first
5299 row (header or first body row) is used to determine the column count,
5300 no other magic is performed.
5301 + Refactor rows-to-table conversion. This refactors
5302 the codes conversing a list table lines to an org table ADT.
5303 The old code was simplified and is now slightly less ugly.
5304 + Fix handling of empty table cells, rows (Albert Krewinkel, #2616).
5305 This fixes Org mode parsing of some corner cases regarding empty cells
5306 and rows. Empty cells weren't parsed correctly, e.g. `|||` should be
5307 two empty cells, but would be parsed as a single cell containing a pipe
5308 character. Empty rows where parsed as alignment rows and dropped from
5310 + Fix spacing after LaTeX-style symbols.
5311 The org-reader was dropping space after unescaped LaTeX-style symbol
5312 commands: `\ForAll \Auml` resulted in `∀Ä` but should give `∀ Ä`
5313 instead. This seems to be because the LaTeX-reader treats the
5314 command-terminating space as part of the command. Dropping the trailing
5315 space from the symbol-command fixes this issue.
5316 + Print empty table rows. Empty table rows should not
5317 be dropped from the output, so row-height is always set to be at least 1.
5318 + Move parser state into separate module.
5319 The org reader code has become large and confusing. Extracting smaller
5320 parts into submodules should help to clean things up.
5321 + Add support for sub/superscript export options.
5322 Org-mode allows to specify export settings via `#+OPTIONS` lines.
5323 Disabling simple sub- and superscripts is one of these export options,
5324 this options is now supported.
5325 + Support special strings export option Parsing of special strings
5326 (like `...` as ellipsis or `--` as en dash) can be toggled using the `-`
5328 + Support emphasized text export option. Parsing of emphasized text can
5329 be toggled using the `*` option. This influences parsing of text marked
5330 as emphasized, strong, strikeout, and underline. Parsing of inline math,
5331 code, and verbatim text is not affected by this option.
5332 + Support smart quotes export option. Reading of smart quotes can be
5333 toggled using the `'` option.
5334 + Parse but ignore export options. All known export options are parsed
5336 + Refactor block attribute handling. A parser state attribute was used
5337 to keep track of block attributes defined in meta-lines. Global state
5338 is undesirable, so block attributes are no longer saved as part of the
5339 parser state. Old functions and the respective part of the parser state
5341 + Use custom `anyLine`. Additional state changes need to be made after
5342 a newline is parsed, otherwise markup may not be recognized correctly.
5343 This fixes a bug where markup after certain block-types would not be
5345 + Add support for `ATTR_HTML` attributes (#1906).
5346 Arbitrary key-value pairs can be added to some block types using a
5347 `#+ATTR_HTML` line before the block. Emacs Org-mode only includes these
5348 when exporting to HTML, but since we cannot make this distinction here,
5349 the attributes are always added. The functionality is now supported
5351 + Add `:PROPERTIES:` drawer support (#1877).
5352 Headers can have optional `:PROPERTIES:` drawers associated with them.
5353 These drawers contain key/value pairs like the header's `id`. The
5354 reader adds all listed pairs to the header's attributes; `id` and
5355 `class` attributes are handled specially to match the way `Attr` are
5356 defined. This also changes behavior of how drawers of unknown type
5357 are handled. Instead of including all unknown drawers, those are not
5358 read/exported, thereby matching current Emacs behavior.
5359 + Use `CUSTOM_ID` in properties. See above on Org writer changes.
5360 + Respect drawer export setting. The `d` export option can be used
5361 to control which drawers are exported and which are discarded.
5362 Basic support for this option is added here.
5363 + Ignore leading space in org code blocks (Emanuel Evans, #2862).
5364 Also fix up tab handling for leading whitespace in code blocks.
5365 + Support new syntax for export blocks. Org-mode version 9
5366 uses a new syntax for export blocks. Instead of `#+BEGIN_<FORMAT>`,
5367 where `<FORMAT>` is the format of the block's content, the new
5368 format uses `#+BEGIN_export <FORMAT>` instead. Both types are
5370 + Refactor `BEGIN...END` block parsing.
5371 + Fix handling of whitespace in blocks, allowing content to be indented
5372 less then the block header.
5373 + Support org-ref style citations. The *org-ref* package is an
5374 org-mode extension commonly used to manage citations in org
5375 documents. Basic support for the `cite:citeKey` and
5376 `[[cite:citeKey][prefix text::suffix text]]` syntax is added.
5377 + Split code into separate modules, making for cleaner code and
5380 * Added `docbook5` template.
5382 * `--mathjax` improvements:
5384 + Use new CommonHTML output for MathJax (updated default MathJax URL,
5386 + Change default mathjax setup to use `TeX-AMS_CHTML` configuration.
5387 This is designed for cases where the input is always TeX and maximal
5388 conformity with TeX is desired. It seems to be smaller and load faster
5389 than what we used before. See #2858.
5390 + Load the full MathJax config to maximize loading speed (KolenCheung).
5392 * Bumped upper version bounds to allow use of latest packages
5393 and compilation with ghc 8.
5395 * Require texmath 0.8.6.2. Closes several texmath-related bugs (#2775,
5396 #2310, #2310, #2824). This fixes behavior of roots, e.g.
5397 `\sqrt[3]{x}`, and issues with sub/superscript positioning
5398 and matrix column alignment in docx.
5402 + Clarified documentation of `implicit_header_references` (#2904).
5403 + Improved documentation of `--columns` option.
5405 * Added appveyor setup, with artifacts (Jan Schulz).
5407 * stack.yaml versions: Use proper flags used for texmath, pandoc-citeproc.
5409 * LaTeX template: support for custom font families (vladipus).
5410 Needed for correct polyglossia operation with Cyrillic fonts and perhaps
5411 can find some other usages. Example usage in YAML metadata:
5414 - name: \cyrillicfont
5415 font: Liberation Serif
5416 - name: \cyrillicfonttt
5417 options: Scale=MatchLowercase
5420 * Create unsigned msi as build artifact in appveyor build.
5422 * On travis, test with ghc 8.0.1; drop testing for ghc 7.4.1.
5426 * LaTeX writer: Fixed position of label in figures (#2813).
5427 Previously the label wasn't in the right place, and `\ref`
5428 wouldn't work properly.
5429 * Added .tei test files to pandoc.cabal so they'll be included
5431 * Updated copyright dates.
5435 * Fixed serious regression in `htmlInBalanced`, which caused
5436 newlines to be omitted in some raw HTML blocks in Markdown
5441 * File scope is no longer used when there are no input files (i.e.,
5442 when input comes from stdin). Previously file scope was triggered
5443 when the `json` reader was specified and input came from `stdin`,
5444 and this caused no output to be produced. (Fix due to Jesse Rosenthal;
5445 thanks to Fedor Sheremetyev for calling the bug to our attention.)
5446 * Improved documentation of templates (#2797).
5450 * Added `--file-scope` option (Jesse Rosenthal).
5451 By default pandoc operates on multiple files by first concatenating
5452 them (around extra line breaks) and then processing the joined file. So
5453 it only parses a multi-file document at the document scope. This has the
5454 benefit that footnotes and links can be in different files, but for
5455 some purposes it is useful to parse the individual files first
5456 and then combine their outputs (e.g. when the files use footnotes
5457 or links with the same labels). The `--file-scope` option causes
5458 pandoc to parse the files first, and then combine the parsed output,
5459 instead of combining before parsing. `--file-scope` is selected
5460 automatically for binary input files (which cannot be concatenated)
5461 and for pandoc json.
5463 * Add TEI Writer (Chris Forster) and `tei` output format.
5465 * Added a general `ByteStringReader` with warnings, used by the docx
5466 reader (API change, Jesse Rosenthal).
5468 * Add `readDocxWithWarnings` (API change, Jesse Rosenthal).
5470 * Changed type of `Shared.uniqueIdent`'s argument from `[String]`
5471 to `Set String.` This avoids performance problems in documents with
5472 many identically named headers (API change, #2671).
5474 * Removed `tex_math_single_backslash` from `markdown_github` options
5477 * Make language extensions as well as full language names
5478 trigger syntax highlighting. For example, `py` will now work as
5479 well as `python` (jgm/highlighting-kate#83).
5481 * Added `institute` variable to latex, beamer templates (Fraser
5482 Tweedale, Josef Svenningsson).
5484 * Docx reader (Jesse Rosenthal):
5486 + Handle alternate content. Some word functions (especially graphics)
5487 give various choices for content so there can be backwards compatibility.
5488 + Don't turn numbered headers into lists.
5489 + Docx Reader: Add state to the parser, for warnings
5490 + Update feature checklist in source code.
5491 + Get rid of `Modifiable` typeclass.
5492 + Add tests for adjacent hyperlinks.
5493 + Add a "Link" modifier to `Reducible`. We want to make sure that
5494 links have their spaces removed, and are appropriately smushed
5499 + Fixed behavior of base tag (#2777).
5500 If the base path does not end with slash, the last component
5501 will be replaced. E.g. base = `http://example.com/foo`
5502 combines with `bar.html` to give `http://example.com/bar.html`.
5503 If the href begins with a slash, the whole path of the base
5504 is replaced. E.g. base = `http://example.com/foo/` combines
5505 with `/bar.html` to give `http://example.com/bar.html`.
5506 + Rewrote `htmlInBalanced`. This version avoids an exponential
5507 performance problem with `<script>` tags, and it should be faster
5509 + Properly handle an empty cell in a simple table (#2718).
5510 + Handle multiple `<meta>` tags with same name. Put them in a list
5511 in the metadata so they are all preserved, rather than (as before)
5512 throwing out all but one..
5516 + Improved pipe table parsing (#2765).
5517 + Allow `+` separators in pipe table cells. We already allowed
5518 them in the header, but not in the body rows, for some reason.
5519 This gives compatibility with org-mode tables.
5520 + Don't cross line boundary parsing pipe table row.
5521 Previously an Emph element could be parsed across the newline
5522 at the end of the pipe table row.
5523 + Use `htmlInBalanced` for `rawVerbatimBlock`, for better
5524 performance (#2730).
5525 + Fixed bug with smart quotes around tex math.
5529 + Handle interior `$` characters in math (#2743). For example,
5531 + `inlineCommand` now gobbles an empty `{}` after any command (#2687).
5532 This gives better results when people write e.g. `\TeX{}` in Markdown.
5533 + Properly handle LaTeX "math" environment as inline math (#2171).
5535 * Textile reader: Support `>`, `<`, `=`, `<>` text alignment attributes.
5538 * Org reader (Albert Krewinkel):
5540 + Prefix even empty figure names with "fig:" (#2643). The
5541 convention used by pandoc for figures is to mark them by prefixing
5542 the name with `fig:`. The org reader failed to do this if a figure
5544 + Refactor link-target processing (#2684).
5546 * ConTeXt writer: Fix whitespace at line beginning in line blocks (#2744).
5547 Thanks to @c-foster.
5549 * HTML writer: Don't include alignment attribute for default table columns.
5550 Previously these were given "left" alignment. Better to leave off
5551 alignment attributes altogether (#2694).
5553 * Markdown writer: Use hyphens for YAML metadata block bottom line, for
5554 better compatibility with other Markdown flavors (Henrik Tramberend).
5558 + Use image identifier to create a label and hypertarget for
5559 figures (Mauro Bieg).
5560 + Avoid double toprule in headerless table with caption (#2742).
5561 + Clean up options parser (Jesse Rosenthal).
5562 + Treat `memoir` template with `article` option as article, instead
5563 of treating all `memoir` templates as books.
5564 + Allow more flexible table alignment (Henrik Tramberend, #2665).
5565 New default is not to include `[c]` option (which is the default
5566 anyway if no positioning is specified). Now LaTeX emplates can
5567 control the overall table alignment in a document by setting the
5568 longtable length variables `LTleft` and `LTright`. For example,
5569 `\setlength\LTleft\parindent\setlength\LTright\fill`
5570 will create left-aligned tables that respect paragraph indentation.
5572 * Docx writer: Handle image alt text (#2754, Mauro Bieg).
5574 * Org writer - pass through RawInline with format "org".
5576 * DokuWiki writer: use `$$` for display math.
5578 * Custom writer: Pass attributes parameter to CaptionedImage (#2697).
5580 * Make protocol-relative URIs work again (#2737).
5582 * make_osx_package.sh: Use env variable for developer id certs.
5584 * Raise `tagsoup` lower bound to 0.13.7 to fix entity-related
5587 * Allow `zip-archive` 0.3.
5589 * Allow `aeson` 0.11.
5593 * Depend on deepseq rather than deepseq-generics (fpco/stackage#1096).
5595 * Fixed regression in latex smart quote parsing (#2645).
5596 In cases where a match was not found for a quote, everything
5597 from the open quote to the end of the paragraph was being dropped.
5601 * Fixed regression with `--latex-engine` (#2618). In 1.16 `--latex-engine`
5602 raises an error if a full path is given.
5604 * Org reader: Fix function dropping subtrees tagged `:noexport`
5605 (Albert Krewinkel, #2628):
5607 * Markdown reader: renormalize table column widths if they exceed 100%
5610 * Textile reader: don't allow block HTML tags in inline contexts.
5611 The reader previously did allow this, following redcloth,
5612 which happily parses
5614 Html blocks can be <div>inlined</div> as well.
5618 <p>Html blocks can be <div>inlined</div> as well.</p>
5620 This is invalid HTML. The above sample now produces;
5622 <p>Html blocks can be</p>
5628 * Improved default template lookup for custom lua scripts (#2625).
5629 Previously, if you tried to do `pandoc -s -t /path/to/lua/script.lua`,
5630 pandoc would look for the template in
5631 `~/.pandoc/templates/default./path/to/lua/script.lua`.
5632 With this change it will look in the more reasonable
5633 `~/.pandoc/templates/default.script.lua`. This makes it possible to
5634 store default templates for custom writers.
5636 * RST, Markdown writers: Fixed rendering of grid tables with blank rows
5639 * LaTeX writer: restore old treatment of Span (#2624). A Span is
5640 now rendered with surrounding `{}`, as it was before 1.16.
5642 * Entity handling fixes: improved handling of entities like
5643 `⟨` that require a trailing semicolon. Allow uppercase
5644 `x` in numerical hexadecimal character references, working
5645 around a tagsoup bug.
5647 * `stack.yaml` - use lts-4.0, but with older aeson to avoid excessive
5648 memory use on compile. With aeson 0.10 we were getting an out of
5649 memory error on a 2GB Ubuntu 64-bit VM.
5651 * Improved deb package creation script. Made `DPKGVER` work.
5652 Renamed `COMMIT` to `TREE`. You should now be able to do
5653 `TREE=1.16.0.1 DPKGVER=2 make deb`.
5658 * Added `Attr` field to `Link` and `Image` (Mauro Bieg, #261, API change).
5660 + Added syntax for link and image attributes to pandoc's Markdown.
5661 + Updated readers and writers to use link and image attributes
5663 + Support image attributes in Docx, Textile, RST readers.
5665 * Renamed link attribute extensions. The old `link_attributes` is
5666 now `mmd_link_attributes`, and `link_attributes` now enables the
5667 new pandoc-style link and image attributes (API change).
5668 Note: this change could break some existing workflows.
5670 * Implemented `SoftBreak` and new `--wrap` option (#1701, API change).
5671 Added threefold wrapping option.
5673 + Command line option: deprecated `--no-wrap`, added
5674 `--wrap=[auto|none|preserve]`
5675 + Added `WrapOption`, exported from `Text.Pandoc.Options`
5676 + Changed type of `writerWrapText` in `WriterOptions` from
5677 `Bool` to `WrapOption`.
5678 + Modified `Text.Pandoc.Shared` functions to allow `SoftBreak`.
5679 + Supported `SoftBreak` in readers and writers.
5681 * Text.Pandoc.Options: Added `writerDpi` to `WriterOptions` (API
5682 change, Mauro Bieg).
5684 * Added `--dpi` command-line option (Mauro Bieg).
5686 * Rationalized behavior of `--no-tex-ligatures` and `--smart` (#2541).
5687 This change makes `--no-tex-ligatures` affect the LaTeX reader
5688 as well as the LaTeX and ConTeXt writers. If it is used,
5689 the LaTeX reader will parse characters `` ` ``, `'`, and `-`
5690 literally, rather than parsing ligatures for quotation marks
5691 and dashes. And the LaTeX writer will print unicode quotation
5692 mark and dash characters literally, rather than converting
5693 them to the standard ASCII ligatures. Note that `--smart` has
5694 no effect on the LaTeX reader. `--smart` is still the default
5695 for all input formats when LaTeX or ConTeXt is the output format,
5696 *unless* `--no-tex-ligatures` is used.
5698 Some examples to illustrate the logic:
5701 % echo "'hi'" | pandoc -t latex
5703 % echo "'hi'" | pandoc -t latex --no-tex-ligatures
5705 % echo "'hi'" | pandoc -t latex --no-tex-ligatures --smart
5707 % echo "'hi'" | pandoc -f latex --no-tex-ligatures
5709 % echo "'hi'" | pandoc -f latex
5713 * Removed deprecated options `--offline` and `--html5`.
5715 * Fixed language code for Czech (`cs` not `cz`) (#2597).
5717 * Implemented `east_asian_line_breaks` extension (#2586).
5718 In `Text.Pandoc.Options`, added `Ext_east_asian_line_breaks` constructor
5719 to `Extension` (API change). This extension is like
5720 `ignore_line_breaks`, but smarter -- it only ignores line breaks
5721 between two East Asian wide characters. This makes it better suited
5722 for writing with a mix of East Asian and non-East Asian scripts.
5724 * Added support for PDF creation via `wkhtmltopdf`.
5725 To use this: `pandoc -t html5 -o result.pdf` (and add `--mathjax`
5726 if you have math.) Margins can be set using the variables
5727 `margin-top`, `margin-bottom`, `margin-left`, `margin-right`.
5728 Other styling can be done through CSS.
5730 * Fixed cite key parsing regression (jgm/pandoc-citeproc#201).
5731 We were capturing final colons as in `[@foo: bar]`; the citation id
5732 was being parsed as `@foo:`.
5736 + Fixed image syntax for local files (#2589).
5737 + Changed type of `writeICML` (Mauro Bieg).
5738 API change: It is now `WriterOptions -> Pandoc -> IO String`.
5739 Also handle new image attributes.
5740 + Intersperse line breaks instead of appending them to
5741 every `ParagraphStyleRange` (Mauro Bieg, #2501).
5742 + Add `Cite` style to citations (Mauro Bieg).
5743 + Added figure handling (#2590, Mauro Bieg).
5744 + Better handling of math. Instead of just printing the raw tex,
5745 we now try to fake it with unicode characters.
5747 * HTML writer: Include `example` class for example lists (#2524).
5749 * ODT/OpenDocument writer: improved image attributes (Mauro Bieg).
5751 + Support for percentage widths/heights
5752 + Use `Attr` instead of title to get dimensions from ODT walker
5753 to `writeOpenDocument`.
5757 + Support anchors in spans and divs with id elements
5758 (jgm/pandoc-citeproc#143).
5759 + Fixed code blocks (#1861).
5761 * Haddock writer: omit formatting inside links, which isn't supported
5764 * MediaWiki writer: Fixed spacing issues in table cells.
5766 + Start cell on new line unless it's a single Para or Plain
5768 + For single Para or Plain, insert a space after the `|` to
5769 avoid problems when the text begins with a character like
5772 * Beamer writer: mark frame as fragile when it contains verbatim (#1613).
5776 + Add support for GAP highlighting using listings (Raniere Silva).
5777 + Consider `header-includes` content as well as templates
5778 when determining whether to use csquotes (Andreas Lööw).
5779 + Create defaults for geometry using `margin-left` etc.
5780 If `geometry` has no value, but `margin-left`, `margin-right`,
5781 `margin-top`, and/or `-margin-bottom` are given, a default value
5782 for `geometry` is created from these. Note that these variables
5783 already affect PDF production via HTML5 with `wkhtmltopdf`.
5785 * ConTeXt writer: set default layout based on `margin-left`, etc.
5786 This sets up `\setuplayout` based on the variables `margin-left`,
5787 `margin-right`, `margin-bottom`, and `margin-top`, if no layout
5790 * Docx writer: better handling of PDF images. Previously we tried
5791 to get the image size from the image even if an explicit size was
5792 specified. Since we still can't get image size for PDFs, this made
5793 it impossible to use PDF images in docx. Now we don't try to get
5794 the image size when a size is already explicitly specified.
5796 * Markdown writer: use raw HTML for link/image attributes when
5797 the `link_attributes` extension is unset and `raw_html` is set (#2554).
5799 * MediaWiki reader: interpret markup inside `<tt>`, `<code>` (#2607).
5803 + Improved smart quote parsing (#2555). This fixes redering of
5805 + Use curly quotes for unmatched ` (#2555).
5806 + Allow blank space between braced arguments of commands (#2592).
5810 + Improved pipe table relative widths. Previously pipe table
5811 columns got relative widths (based on the header underscore lines)
5812 when the source of one of the rows was greater in width than the
5813 column width. This gave bad results in some cases where much of
5814 the width of the row was due to nonprinting material (e.g. link
5815 URLs). Now pandoc only looks at printable width (the width of a
5816 plain string version of the source), which should give better results.
5817 Thanks to John Muccigrosso for bringing up the issue.
5818 + Fixed parsing bug with macros. Previously macro definitions in
5819 indented code blocks were being parsed as macro definitions, not code.
5821 * Textile reader: skip over attribute in image source (#2515).
5822 We don't have a place yet for styles or sizes on images, but
5823 we can skip the attributes rather than incorrectly taking them
5824 to be part of the filename.
5826 * Docx reader: Handle dummy list items (Jesse Rosenthal).
5827 These come up when people create a list item and then delete the
5828 bullet. It doesn't refer to any real list item, and we used to ignore
5831 * CommonMark reader/writer rewritten to use latest `cmark`.
5833 * Fixed Emoji character definitions (#2523). There were many bugs in the
5836 * `Text.Pandoc.CSS`:
5838 + Added `pickStylesToKVs` function to extract multiple properties at
5839 once (API change, Mauro Bieg).
5840 + Parse CSS that doesn't contain the optional semicolon (Mauro Bieg).
5842 * `trypandoc`: sort drop-down lists.
5846 + Made `\euro` conditional on presence of character.
5847 for xelatex and lualatex, as it is for pdflatex (Andrew Dunning).
5848 + Moved `header-includes` before setting of title (Thomas Hodgson),
5849 to match the LaTeX template (jgm/pandoc-templates#168).
5850 + Added `section-titles` variable (defaults to true)
5851 to enable/suppress section title pages in beamer
5852 slide shows (Thomas Hodgson).
5853 + Moved beamer themes after fonts, so that themes can
5854 change fonts. (Previously the fonts set were being
5855 clobbered by lmodern.sty.) (Thomas Hodgson).
5857 * Beamer/LaTeX template changes (Thomas Hodgson):
5858 + Added `thanks` variable
5859 + Use `parskip.sty` when `indent` isn't set (fall back to using
5860 `setlength` as before if `parskip.sty` isn't available).
5861 + Use `biblio-style` with biblatex.
5862 + Added `biblatexoptions` variable.
5864 * LaTeX template changes:
5866 + Added `paper` after `$papersize$` variable in latex template.
5867 Thus you can say `papersize: a4` and the latex will contain
5868 `a4paper`. This change may break some existing workflows; if
5869 you currently specify `a4paper`, you'll get `a4paperpaper` which
5870 is meaningless. However, the change seems worth it, as it will
5871 make the `papersize` variable work uniformly across ConTeXt, LaTeX,
5872 and html->pdf via wkhtmltopdf.
5873 + Only pass options to color package if `colorlinks` is set
5875 + Make definition of `\euro` conditional in xelatex/lualatex,
5876 as it is already for pdflatex (Andrew Dunning).
5877 + Removed setting of `subject` in PDF metadata.
5878 This used to be set to the subtitle, but really the subtitle
5879 need not give the subject. Also, `subtitle` can contain formatting,
5880 so we'd need, at least, a plain text version for this.
5881 + Moved `header-includes` before setting of `\title`, `\author`,
5882 etc. This allows these macros to be redefined.
5883 + Use `\subtitle` command for `subtitle`, instead of tacking it
5884 on to the title as before. We give a no-op fallback definition if it
5885 is not defined. This change should produce much better results
5886 in classes that support `\subtitle`. With the default article
5887 class, which does not define `\subtitle`, subtitles will no
5888 longer be printed unless the user defines `\subtitle` and
5889 redefines `\maketitle`.
5890 + Moved redefinitions of `\paragraph` and `\subparagraph` to
5891 before header-includes.
5895 + Use `simplefonts` for font loading (Paolo Rodríguez). This is
5896 needed for things to work on ConTeXt stable from TeXLive 2015.
5897 + Revert use of `\setuphead` in title block (Andrew Dunning,
5900 * Update LaTeX/ConTeXt link colour usage (Andrew Dunning).
5902 * Fixed man template so disabling hyphenation actually works.
5903 The command needs to come after .TH.
5905 * Added 'navigation' variable to beamer template (#2543).
5906 Valid values are `empty` (the default), `horizontal`, `vertical`,
5907 and `frame`. Note that this changes the default behavior from
5908 `horizontal` to `empty`. Closes #2543.
5910 * Added `toc` to HTML slide format templates (Andrew Dunning),
5911 so that `--toc` creates a contents slide.
5913 * Added `stack.full.yaml` to build `pandoc-citeproc` as well.
5915 * Allow pipe tables with no body rows (#2556).
5916 Previously this raised a runtime error.
5918 * Shared: Improved `fetchItem` so that `C:/Blah/Blah.jpg` isn't treated
5919 as URL. The Haskell URI parsing routines will accept "C:" as a
5920 scheme, so we rule that out manually. This helps with
5921 `--self-contained` and absolute Windows paths.
5923 * Define a `meta-json` variable for all writers (#2019). This contains
5924 a JSON version of all the metadata, in the format selected for the
5925 writer. So, for example, to get just the YAML metadata, you can run
5926 pandoc with the following custom template: `$meta-json$`. The intent
5927 is to make it easier for static site generators and other tools to get
5930 * Document limitations of --self-contained (#2553).
5932 * Improved Citations section of README (#2551). Added information
5933 about `link-citations` and a link to the pandoc-citeproc man page.
5935 * `ImageSize`: use `safeRead` instead of `readMaybe`, which isn't
5938 * Allow .adoc file extension for AsciiDoc (Andrew Dunning).
5940 * Improved implicit pandoc-citeproc inclusion.
5941 The filter pandoc-citeproc is automatically used when
5942 `--bibliography` is specified on the command line, unless
5943 `--natbib` or `--biblatex` is used. However, previously this
5944 only worked if `--bibliography` was spelled out in full, and not
5945 if `--biblio` was used.
5947 * reveal.js: Interpret pauses correctly for all headers (#2530).
5948 Previously, when using headers below the slide level, pauses are left
5949 uninterpreted into pauses. In my opinion, unexpected behavior but
5950 intentional looking at the code.
5952 * Remove redundant `center` variable for reveal.js (Andrew Dunning).
5954 * Parsing: Add `extractIdClass`, modified type of `KeyTable` (Mauro
5957 * ImageSize: Added functions for converting between image dimensions
5960 * Use lts-3.18 in stack.yaml. This avoids Windows build
5961 issues with the HTTP library.
5963 * Bump version bounds for dependencies.
5967 * Added two missing test files, and `stack.yaml`, to
5968 `extra-source-files` so they're included in the source tarball.
5970 * reveal.js template: Fixed parallaxBackground options.
5971 `parallaxBackgroundHorizontal` and `parallaxBackgroundVertical`
5972 need integer values, not strings. (Vaughn Iverson)
5976 * `pandoc my.md -t context -o my.pdf` will now create a PDF using
5977 ConTeXt rather than LaTeX (#2463).
5979 * Fixed omitted `url(...)` in CSS data-uri with `--self-contained` (#2489).
5981 * Added `emoji` Markdown extension, enabled by default in `markdown_github`
5982 (#2523). Added `Ext_emoji` to `Extension` in `Text.Pandoc.Options`
5985 * `Text.Pandoc.Readers.HTML.parseTags`: Fixed over-eager raw HTML inline
5986 parsing (#2469). Tightened up the inline HTML parser so it disallows
5989 * Derive `Generic` instances for the types in `Text.Pandoc.Options`.
5993 + Fix paragraph/list interaction (Albert Krewinkel, #2464).
5994 Paragraphs can be followed by lists, even if there is no blank line
5995 between the two blocks. However, this should only be true if the
5996 paragraph is not within a list, were the preceding block should be
5997 parsed as a plain instead of paragraph (to allow for compact lists).
5998 Thanks to @rgaiacs for bringing this up.
5999 + Allow toggling header args (Albert Krewinkel, #2269).
6000 Org-mode allows to skip the argument of a code block header argument if
6001 it's toggling a value. Argument-less headers are now recognized,
6002 avoiding weird parsing errors.
6003 + Fix markup parsing in headers (Albert Krewinkel, #2504).
6004 Markup as the very first item in a header wasn't recognized. This was
6005 caused by an incorrect parser state: positions at which inline markup
6006 can start need to be marked explicitly by changing the parser state.
6007 This wasn't done for headers. The proper function to update the state
6008 is now called at the beginning of the header parser, fixing this issue.
6009 + Fix emphasis rules for smart parsing (Albert Krewinkel, #2513).
6010 Smart quotes, ellipses, and dashes should behave like normal quotes,
6011 single dashes, and dots with respect to text markup parsing.
6012 + Require whitespace around definition list markers (#2518).
6013 This rule was not checked before, resulting in bugs with footnotes
6014 and some link types.
6018 + Pipe tables with long lines now get relative cell widths (#2471).
6019 If a pipe table contains a line longer than the column width (as set by
6020 `--columns` or 80 by default), relative widths are computed based on the
6021 widths of the separator lines relative to the column width. This should
6022 solve persistent problems with long pipe tables in LaTeX/PDF output, and
6023 give more flexibility for determining relative column widths in other
6024 formats, too. For narrower pipe tables, column widths of 0 are used,
6025 telling pandoc not to specify widths explicitly in output formats that
6027 + Improved parser for `mmd_title_block`. We now allow blank metadata
6028 fields. These were explicitly disallowed before.
6029 + Citation keys can now contain `://`, so URLs and DOIs can be used
6030 as citation keys (jgm/pandoc-citeproc#166).
6032 * Beamer template: fix incompatibility of section slides with natbib.
6033 Natbib (and presumably biblatex) bibliography commands create
6034 their own section. Since these are in frame environments,
6035 we have an incompatibility with the `\AtBeginSection` macro
6036 which creates a special frame when a new section occurs.
6037 (We can't have a frame inside another frame.) This change disables
6038 `\AtBeginSection` inside bibliography slides. Thinks to Yihui Xie for
6039 bringing the problem to my attention. This supersedes #145. See
6042 * Textile reader: don't do smart punctuation unless explicitly asked
6043 (#2480). Note that although smart punctuation is part of the textile
6044 spec, it's not always wanted when converting from textile
6045 to, say, Markdown. So it seems better to make this an option.
6047 * LaTeX reader: Handle `comment` environment (Arata Mizuki).
6048 The `comment` environment is handled in a similar way to the
6049 `verbatim` environment, except that its content is discarded.
6051 * Docx reader: Follow relationships correctly in foot/endnotes (#2258,
6052 Jesse Rosenthal). This fixes a problem with links in notes.
6054 * LaTeX and ConTeXt writers: support `lang` attribute on divs and spans
6055 (Mauro Bieg). For LaTeX, also collect `lang` and `dir` attributes on
6056 spans and divs to set the `lang`, `otherlangs` and `dir` variables if
6057 they aren’t set already. See #895.
6061 + Use proper command for `\textarabic` (Mauro Bieg).
6062 + Added `de-CH-1901`, fixed `el-polyton` in `toPloyglossia` (Nick Bart).
6063 + Use `\hypertarget` and `\hyperlink` for links. This works correctly
6064 to link to Div or Span elements. We now don't bother defining `\label`
6065 for Div or Span elements. Closes jgm/pandoc-citeproc#174.
6066 + Avoid footnotes in list of figures (#1506).
6067 + Properly handle footnotes in captions (#1506).
6068 + Add `\protect` to `\hyperlink` (#2490). Thanks to Hadrien Mary.
6069 + Set `colorlinks` if `linkcolor`, `urlcolor`, `citecolor`, or
6070 `toccolor` is set (#2508).
6072 * Textile writer: support start number in ordered lists (#2465).
6074 * OpenDocument writer: Allow customization of opendocument
6075 automatic styles. Automatic styles can now be inserted in the
6076 template, which now provides the enclosing `<office:automatic-styles>`
6079 * Docx writer: insert space between footnote reference and note (#2527).
6080 This matches Word's default behavior.
6082 * EPUB writer: don't download linked media when `data-external` attribute
6083 set (#2473). By default pandoc downloads all linked media and includes it
6084 in the EPUB container. This can be disabled by setting `data-external` on
6085 the tags linking to media that should not be downloaded. Example:
6087 <audio controls="1">
6088 <source src="http://example.com/music/toccata.mp3"
6089 data-external="1" type="audio/mpeg">
6093 * HTML writer: use width on whole table if col widths sum to < 100%.
6094 Otherwise some browsers display the table with the columns
6095 separated far apart.
6097 * AsciiDoc template: Fix `author` and `date`; add `keywords`,
6098 `abstract` (Andrew Dunning).
6100 * HTML-based templates (Andrew Dunning):
6102 + Use en dash instead of hyphen between title prefix and title.
6103 + Add `keywords` to metadata.
6104 + Add `lang`, `dir`, `quotes` where missing.
6105 + Always make author and date display conditional.
6106 + Updated dzslides template from source.
6108 * Man template: make "generated by" comment conditional.
6110 * LaTeX, Beamer templates:
6112 + Add `babel-otherlangs` for language divs/spans; `babel-newcommands`,
6113 filled by commands that make babel understand the polyglossia-style
6114 language directives (Mauro Bieg, #137).
6115 + Improved formatting of conditionals; `$for$` is always provided to allow
6116 multiple options (Andrew Dunning, #141).
6117 + Use `Ligatures=TeX` rather than `Mapping=tex-text` with `fontspec`
6118 to improve support for LuaTeX (Andrew Dunning, #135).
6119 + Revise `hyperref` usage (Andrew Dunning, #139, #141):
6120 - use same options for all LaTeX engines;
6121 - add `subtitle` and `keywords` to PDF metadata;
6122 - do not override `hyperref` link coloring without user input, effectively making
6123 the `hidelinks` option the default (removed as a separate variable);
6124 - link colors can be enabled (using a slightly darker version of the old
6125 defaults) using a new `colorlinks` variable, automatically used by
6126 the LaTeX writer when custom colors are specified;
6127 - `pdfborder={0 0 0}` is automatically set by `hyperref` with
6128 `colorlinks`, and is only applied if `colorlinks` is disabled.
6130 * ConTeXt template (Andrew Dunning):
6132 + New variables for controlling styles: `linkstyle`, `linkcolor`,
6133 `linkcontrastcolor`, `layout`, `pagenumbering`, `whitespace`, `indenting`,
6134 `interlinespace`, `headertext`, `footertext`, `mainfont`, `sansfont`,
6135 `monofont`, `mathfont`, `fontsize`.
6136 + Default template no longer supports MkII.
6137 + Improve writing of title block (suppressing numbering of first page).
6138 + Add `title` `subtitle`, `author`, `date`, `keywords` to PDF metadata.
6139 + Support `subtitle`, `abstract`.
6140 + Support list of figures (`lof`), list of tables (`lot`).
6141 + Disable link styling by default.
6142 + Define styles for all section types.
6144 + Improved formatting of conditionals.
6146 * Beamer template: added code to prevent slide breaks inside paragraphs
6147 (#2422, thanks to Nick Bart). This will matter, in practice, only when
6148 `allowframebreaks` is used. It is especially helpful for bibliography
6151 * OpenDocument template: Add `<office:automatic-styles>` tag around
6152 automatic styles. The writer now longer provides this (see #2520).
6154 * Restored Text.Pandoc.Compat.Monoid.
6156 * Do not export (<>) from custom Prelude. The Prelude now matches
6157 base 4.8 Prelude's API.
6159 * Don't use custom prelude with ghc 7.10. Use the custom prelude
6160 only for earlier versions. This change makes `stack ghci` and
6161 `cabal repl` work (#2503), at least with ghc 7.10.
6163 * Changed § to % in operators from Odt.Arrows.Utils (#2457).
6164 This prevents problems building haddocks with "C" locale.
6166 * Change default for old-locale flag to False.
6168 * Use stack in deb, osx, and Windows package generators.
6170 * Added Vagrantfile for building deb in vm.
6171 This should help in automating binary package creation. 'make package'
6172 will make the package. 'make package COMMIT=blah' will make the package
6177 + Consistent capitalization for pandoc and Markdown.
6178 + Fixed `auto_identifiers` examples (Benoit Schweblin).
6179 + Improved documentation of template variables (Andrew Dunning).
6183 * `Text.Pandoc.Data`: store paths in dataFiles using posix separators.
6184 This way we have uniform separators, whether on Windows or Linux.
6185 This should solve a problem where on some Windows versions
6186 the data files weren't being found (#2459).
6190 * `pandocVersion` is now defined in `Text.Pandoc.Shared`
6191 and reexported from `Text.Pandoc` (Alex Vong). This allows
6192 writers to access it. (Alex Vong) (API change)
6194 * For `markdown_mmd`, add: `implicit_figures`, `superscripts`,
6195 `subscripts` (#2401).
6197 * Added `odt` as input format (Martin Linnemann). Added new module
6198 `Text.Pandoc.Reader.ODT` (API change). Fully implemented features:
6199 Paragraphs, Headers, Basic styling, Unordered lists, Ordered lists,
6200 External Links, Internal Links, Footnotes, Endnotes, Blockquotes.
6201 Partly implemented features: Citations, Tables.
6205 + Add basic tests for each header style (Ophir Lifshitz).
6206 + Add implicit header ref tests for headers with spaces (Ophir Lifshitz).
6207 + Skip spaces in headers (Ophir Lifshitz).
6208 + Handle 'id' and 'class' in parsing key/value attributes (#2396).
6209 `# Header {id="myid" class="foo bar"}`
6210 is now equivalent to `# Header {#myid .foo .bar}`.
6211 + Use '=' instead of '#' for atx-style headers in markdown+lhs.
6212 (Kristof Bastiaensen)
6213 + Pipe tables: allow indented columns. Previously the left-hand column
6214 could not start with 4 or more spaces indent. This was inconvenient
6215 for right-aligned left columns. Note that the first (header column)
6216 must still have 3 or fewer spaces indentation, or the table will be
6217 treated as an indented code block.
6218 + Fix regression: allow HTML comments containing `--`.
6219 Technically this isn't allowed in an HTML comment, but
6220 we've always allowed it, and so do most other implementations.
6221 It is handy if e.g. you want to put command line arguments
6226 + Don't eat excess whitespace after macros with only optional
6228 + Support longtable (#2411).
6229 + Implement `\Cite` (#2335).
6230 + Support abstract environment. The abstract populates an
6231 `abstract` metadata field.
6232 + Properly handle booktabs lines. Lines aren't part of the
6233 pandoc table model, so we just ignore them (#2307).
6237 + Handle type attribute on ol, e.g. `<ol type="i">` (#2313).
6238 + Updated for new automatic header attributes.
6239 + Add auto identifiers if not present on headers. This makes
6240 TOC linking work properly.
6241 + Detect `font-variant` with `pickStyleAttrProps` (Ophir Lifshitz).
6242 + Test `<ol>` type, class, and inline list-style(-type) CSS
6244 + Better handling of "section" elements (#2438). Previously
6245 `<section>` tags were just parsed as raw HTML blocks. With
6246 this change, section elements are parsed as Div elements with
6247 the class "section".
6249 * MediaWiki reader: handle unquoted table attributes (#2355).
6253 + Added proper support for DocBook `xref` elements (Frerich Raabe).
6254 Added `dbContent` field to reader state, so we can lookup
6256 + Handle `informalexample` (#2319).
6260 + Create special punctuation test (Ophir Lifshitz).
6261 + Parse soft, no-break hyphen elements (Ophir Lifshitz).
6262 + Updated headers test (Ophir Lifshitz). Replaced `styles.xml`
6263 in `headers.docx` with pandoc's current `styles.xml`, which
6264 contains styles for Heading 1 through 6. Added Heading 4
6265 through 7 to the test document. Note that Heading 7 is not
6266 parsed as a Heading because there is no Heading 7 style.
6268 * RST reader: better handling of indirect roles.
6269 Previously the parser failed on this kind of case
6271 .. role:: indirect(code)
6273 .. role:: py(indirect)
6278 Now it correctly recognizes `:py:` as a code role.
6282 + Add auto identifiers if not present on headers
6283 (#2354, Juliusz Gonera).
6284 + Allow verse blocks to contain empty lines (#2402,
6287 * EPUB reader: stop mangling external URLs (#2284).
6291 + Don't insert `\ ` when complex expression in matched pairs.
6292 E.g. `` [:sup:`3`] `` is okay; you don't need `` [:sup:`3`\ ] ``.
6293 + Ensure that `\ ` is inserted when needed before Cite and Span
6294 elements that begin with a "complex" element (jgm/pandoc-citeproc#157).
6295 + Normalize headers only in "standalone" mode (#2394).
6297 * Haddock writer: escape `*` and `^` (G. Bataille).
6301 + In TOC, add links to headers (#829).
6302 + Use unicode super/subscripts for digits in plain output
6303 (when the `superscripts` and `subscripts` extensions are
6308 + Moved invalid character stripping to `formattedString`.
6309 This avoids an inefficient generic traversal (#2356).
6310 + Use user data directory for `reference.docx` archive.
6311 This allows the test suite to work without installing pandoc first.
6312 It also brings the docx writer in line with the odt writer.
6313 + Tests: docx writer tests now use `../data` for data directory.
6314 This allows tests to be run without installing first.
6315 + Tests: Use real jpg (not empty) for docx tests to avoid warning.
6319 + Fixed detection of 'chapters' from template.
6320 If a documentclass isn't specified in metadata, but the
6321 template has a hardwired bookish documentclass, act as if
6322 `--chapters` was used. This was the default in earlier
6323 versions, but it has been broken for a little while.
6324 + Correctly recognize book documentclass in metadata (#2395).
6325 + Set language-related variables automatically, depending
6326 on the value of the `lang` field, which is now always
6327 assumed to be in BCP47 format (Mauro Bieg, #1614, #2437).
6328 + Add `\protect` to `\hyperdef` in inline context. This way we
6329 don't get an error when this is used as a moveable argument (#2136).
6330 + Support all frame attributes in Beamer.
6331 + Percent-encode more special characters in URLs (#1640, #2377).
6332 The special characters are '<','>','|','"','{','}','[',']','^', '`'.
6336 + Update KaTeX JS and CSS versions (Emily Eisenberg).
6337 + For dzslides, add `role="note"` for speaker notes (#1693).
6338 + Percent-encode more special characters in URLs (#1640, #2377).
6339 The special characters are '<','>','|','"','{','}','[',']','^', '`'.
6340 + Render Div with class `section` as `<section>` in HTML5.
6344 + In TOC, replace literal `<br/>` with space (#2105).
6345 + With `--webtex`, include image file rather than `data:` URI (#2363).
6347 * Native writer: format Div properly, with blocks separated.
6349 * Support bidirectional text output with XeLaTeX, ConTeXt and HTML
6350 (#2191, Mauro Bieg).
6354 + Add missing Header 6 style (steel blue) (Ophir Lifshitz).
6355 + Correct `outlineLvl` for Header styles (Ophir Lifshitz).
6359 + Beamer: Add `innertheme`, `outertheme` variables
6360 (Guilhem Bonnefille, #121). Add space after colon in figure caption.
6361 Integrate recent font and language updates from LaTeX template;
6362 allow use of `mainfont` variable for changing the slide text
6363 in XeTeX and LuaTeX (Andrew Dunning, #131).
6364 + LaTeX: Add `mainfontoptions`, `sansfontoptions`,
6365 `monofontoptions`, `mathfontoptions`, `fontfamilyoptions`
6366 (Andrew Dunning, #122). Support handling of bidirectional
6367 text (Mauro Bieg, #120). Improve reliability of superscripts/subscripts
6368 under XeTeX and prevent letters and numbers from appearing on a
6369 different baseline by removing use of the `realscripts` package
6370 (via `xltxtra`). To restore use of OpenType characters for these
6371 features under XeTeX or LuaTeX, add `\usepackage{realscripts}` to
6372 `header-includes` (Andrew Dunning, #130). Remove redundant
6373 reference to `xunicode` (Andrew Dunning, #130). Add `fontenc`,
6374 `indent`, `subparagraph` variables (Andrew Dunning).
6375 Allow use of `hidelinks` variable for `hyperref` package (Hugo Roy,
6376 #113). Prevent package clash with `tufte-latex` and other classes that
6377 include `hyperref` or `color` (Xavier Olive, #115).
6378 + ConTeXt: Support handling of bidirectional text (Mauro Bieg, #120).
6379 + LaTeX and ConTeXt: Use more specific language variables.
6380 Instead of directly using `lang`, we now use `babel-lang` and
6381 `polyglossia-lang` and `context-lang`. These variables are set by
6382 the writers to the necessary values, based on the `lang` variable
6383 (which now always takes a value in BCP47 format). (Mauro Bieg, #114,
6385 + HTML: Support handling of bidirectional text (Mauro Bieg, #120).
6386 Move HTML5 shiv after CSS and fix URL (Andrew Dunning).
6387 Add dir attribute in html5 (Andrew Dunning).
6388 + reveal.js: Add `controls`, `progress` variables (Grégoire Pineau, #127).
6389 Add `width`, `height` variables (Andrew Dunning). Update template
6390 from 3.1 source (Andrew Dunning). All configuration options are now
6391 available as variables, but are only be included if set (reveal.js
6392 uses defaults otherwise).
6393 + man: Added comment stating that the page is autogenerated by pandoc,
6394 giving version. Added `adjusting` and `hyphenate` variables
6397 * epub.css: added selectors for nested emphasis (Pablo Rodriguez).
6399 * MediaBag: ensure that `/` is always used as path separator.
6401 * `sample.lua`: define `CaptionedImage`, add newline at end (#2393).
6403 * Added `--bash-completion` option. This generates a bash completion
6404 script. To use: `eval "$(pandoc --bash-completion)"`.
6406 * Text.Pandoc.Error: Define Typeable and Exception instances
6407 for PandocError (#2386).
6409 * Text.Pandoc.Parsing: `toKey`: strip off outer brackets.
6410 This makes keys with extra space at the beginning and end
6417 will now be a link to bar (it wasn't before).
6419 * Text.Pandoc: disable `auto_identifiers` for epub.
6420 The epub writer inserts its own auto identifiers;
6421 this is more complex due to splitting into "chapter" files.
6423 * Renamed Text.Pandoc.Compat.Locale -> Text.Pandoc.Compat.Time.
6424 It now reexports Data.Time.
6426 * Use custom Prelude to avoid compiler warnings.
6428 + The (non-exported) prelude is in prelude/Prelude.hs.
6429 + It exports Monoid and Applicative, like base 4.8 prelude,
6430 but works with older base versions.
6431 + It exports (<>) for mappend.
6432 + It hides 'catch' on older base versions.
6434 * Added a `stack.ymal` and stack install instructions to INSTALL.
6436 * Clarified what is "out of scope" in README and CONTRIBUTING.md.
6438 * Added note to CONTRIBUTING.md about ghc versions and travis.
6440 * Clarify docs on block quotes. The space after `>` is optional (#2346).
6442 * Removed obsolete reference to default.csl (#2372).
6444 * List all styles in manual for `--reference-docx` (Chris Black)
6446 * Don't capitalize header links in man page.
6448 * Added section on repl to CONTRIBUTING.md.
6450 * README: Added space after backslash in image example (#2329).
6452 * Document details of citation locator terms (Nick Bart).
6454 * Fixed some internal links in README (#2309).
6456 * Improve CSL documentation, variables documentations,
6457 links, and cross-references in README. (Andrew Dunning)
6459 * Fix build failure with `--flags=-https` (Sergei Trofimovich).
6461 * Use `newManager` instead of `withManager` in recent `http-client`.
6462 This avoids a deprecation warning.
6464 * Allow building with latest versions of http-types,
6465 HUnit, criterion, syb, aeson.
6467 * Updated benchmark program for new criterion API.
6469 * Setup.hs: rewrite so as not to use process, directory, filepath.
6470 Using anything outside base is dangerous, since older
6471 versions of ghc may link against two different versions.
6473 * Added appveyor (Windows continuous integration) builds.
6475 * New `.travis.yml`. Autgenerated using `make_travis_yml.hs`.
6476 This script has been modified in a few ways, e.g. to add `GHCOPTS`.
6477 `make .travis.yml` regenerates it based on the tested-with
6478 field of the cabal file.
6482 * `--self-contained`: Fixed overaggressive CSS minimization (#2301, 2286).
6483 Previously `--self-contained` wiped out all spaces in CSS,
6484 including semantically significant spaces. This was a regression
6487 * Markdown reader: don't allow bare URI links or autolinks in link
6488 label (#2300). Added test cases.
6490 * `Text.Pandoc.Parsing`, `uri`: Improved bare autolink detection (#2299).
6491 Previously we disallowed `-` at the end of an autolink,
6492 and disallowed the combination `=-`. This commit liberalizes the
6493 rules for allowing punctuation in a bare URI, and adds test cases.
6494 One potential drawback is that you can no longer put a bare
6495 URI in em dashes like this:
6496 `this uri---http://example.com---is an example.`
6497 But in this respect we now match github's treatment of bare URIs.
6499 * HTML writer: support speaker notes in dzslides.
6500 With this change `<div class="notes">` and also `<div class="notes"
6501 role="note">` will be output if `-t dzslides` is used. So we can
6502 have speaker notes in dzslides too. Thanks to maybegeek.
6504 * Updated dzslides template.
6506 * Improved documentation of options to print system default files (#2298).
6507 `--print-default-data-file` and `--print-default-template`.
6509 * DokuWiki writer: use `$..$` for Math instead of `<math>..</math>`
6510 (Tiziano Müller). MathJax seems currently to be the only maintained
6511 math rendering extension for DokuWiki.
6513 * `Text.Pandoc.Shared`: Changed `hierarchicalize` so it treats references
6514 div as top-level header (#2294). This fixes a bug with `--section-divs`,
6515 where the final references section added by pandoc-citeproc, enclosed in
6516 its own div, got nested in the div for the section previous to it.
6518 * Allow vector 0.11.
6520 * Require cmark > 0.4.
6524 * HTML writer: Fixed email javascript obfuscation with `mailto:`
6525 URLs (#2280). This fixes a potential security issue. Because
6526 single quotes weren't being escaped in the link portion, a
6527 specially crafted email address could allow javascript code injection.
6529 * Markdown/HTML readers: Avoid parsing partial URLs like
6530 `<www.pandoc.org/blah#foo>` as HTML tags (#2277).
6532 * RST reader: allow inline formatting in definition list field
6533 names (Lars-Dominik Braun).
6535 * PDF: Make sure `--latex-engine-opt` goes before the filename
6536 on the command line. LaTeX needs the argument to come after
6537 the options (#1779).
6539 * CommonMark writer: fixed tags used for super/subscript.
6541 * ConTeXt template: activate hanging indent for definition lists
6544 * Make cabal require `hsb2hs` >= 0.3.1 if `embed_data_files` specified.
6545 This is done by adding `hookedPrograms` in `Setup.hs`, which allows us
6546 to include `hsb2hs` in Build-Tools in cabal.
6548 * Improved Windows installer (thanks to nkalvi).
6550 + When per-machine installation is chosen, the system path
6551 is updated instead of the user's.
6552 + An appropriate default is used for per-machine installation
6554 + Admin privileges are no longer required for a per-user install
6556 * Travis: unpack sdist for build to catch packaging bugs.
6558 * Improved documentation on where user templates go (#2272).
6562 * Added pandoc.1 man page to the repository. It is no longer
6563 built as part of the cabal build process. (This proved too
6564 fragile.) pandoc.1 can be regenerated (`make man/pandoc.1`)
6565 when `README` is changed.
6567 * Copying of the man page now respects `--destdir` (#2262).
6569 * Improved error messages for filters. User is now informed if
6570 the filter requires an interpreter that isn't found in the path,
6571 or if the filter returns an error status.
6575 * Ensure target directory is created when installing man page.
6579 * Added files needed for building man page to Extra-Source-Files.
6583 * Man page is now built and installed as part of the cabal build
6584 process. Removed Makefile target for man page.
6590 + Removed `--man1`, `--man5` options (breaking change).
6591 + Removed `Text.Pandoc.ManPages` module (breaking API change).
6592 + Makefile target for `man/man1/pandoc.1`. This uses pandoc to
6593 create the man page from README using a custom template and filters.
6594 + Added `man/` directory with template and filters needed to build
6596 + We no longer have two man pages: `pandoc.1` and `pandoc_markdown.5`.
6597 Now there is just pandoc.1, which has all the content from README.
6598 This change was needed because of the extensive cross-references
6599 between parts of the README.
6600 + Removed old `data/pandoc.1.template` and
6601 `data/pandoc_markdown.5.template`.
6603 * OpenDocument writer: Do not add a carriage return after a hard
6604 line break (Michael Chladek).
6608 + use `\goto` for internal links.
6609 + Added a `%` at end for `\reference` to avoid spurious space.
6611 * Ignore sandbox on 'make quick'
6615 * Added `--man1` and `--man5` options to pandoc, allowing pandoc
6616 to generate its own man pages. Man pages are no longer automatically
6617 generated in the build process (the process for this was too complex
6618 and prone to failure, #2190). The `make-pandoc-man-pages` executable
6619 has been removed. The `man/` directory has been removed, and man page
6620 templates have been moved to `data/`. NOTE TO PACKAGERS: You will no
6621 longer find pandoc's man pages in `man/`, but you can generate them using
6622 `pandoc --man1 > pandoc.1` and `pandoc --man5 > pandoc_markdown.5`.
6624 * Added new unexported module: `Text.Pandoc.ManPages`.
6626 * `README` now acts like a data file (even though it isn't in
6627 `data/`). So, for example, `pandoc --print-default-data-file README`
6628 will produce the README.) This change was required for the `--man1`
6629 and `--man5` options, since the man pages are produced from the
6630 README, but it may be useful for other purposes as well.
6632 * Allow `reference.docx` and `reference.odt` to be used with
6633 `--print-default-data-file` and to shadow defaults if placed in
6634 the user data directory. Note that as of 1.14, we no longer
6635 include these files as data files; instead, we include their
6636 components. This change causes pandoc to behave as if it has
6637 these data files; they are constructed on demand when needed
6638 using `getDefaultReferenceDocx` and `getDefaultReferenceODT`.
6640 * Fixed regression in CSS parsing with `--self-contained` (#2224).
6641 Pandoc 1.14.0.x used css-text to parse the CSS, but its parser
6642 silently drops big sections of CSS. This commit replaces the
6643 use of css-text with a small but principled CSS preprocessor,
6644 which removes whitespace and comments and replaces `url()` with
6645 base 64 data when possible.
6647 * Use `https://` instead of `//` for MathJax and KaTeX CDN URLs (#1920).
6648 This will allow math to work when pages are being viewed locally.
6650 * `Text.Pandoc.Options`: Export `plainExtensions`.
6651 These are the extensions used in `plain` output.
6653 * LaTeX reader: Don't parse `_` and `^` as sub/superscript outside of
6654 math mode; treat them as regular inline text. Normally these will
6655 cause an error in LaTeX, but there are contexts (e.g. `alltt`
6656 environments) where they are allowed.
6658 * HTML reader: allow `<body>` to close `<head>`.
6660 * DocBook reader: support `mediaobject`s and `figures` (#2184, Mauro Bieg).
6662 * RST reader: Fix reference names with special characters
6663 (Lars-Dominik Braun).
6665 * Textile writer: escape `+` and `-` as entities (#2225).
6667 * DokuWiki writer: Use proper `<code>` tags for code blocks (#2213).
6669 * Plain writer: don't use symbols for super/subscript (#2237).
6670 Simplified code by using `plainExtensions`.
6672 * InDesign writer: Properly escape URLs containing more than one
6673 colon character (gohai).
6675 * Docx writer: Make sure we use dist version of `reference.docx`
6676 (and not the user's version) for certain settings. Taking some
6677 settings values from a user-supplied reference.docx can lead to
6678 corruption. This fixes a regression from the last release (#2249).
6680 * `Text.Pandoc.Shared`: exports `getDefaultReferenceDocx` and
6681 `getDefaultReferenceODT` (API change). These functions have been
6682 removed from the Docx and ODT writers.
6684 * LaTeX template (Xavier Olive):
6685 + Added `CJKmainfont` and `CJKoptions` variables.
6686 + Allow dvipsnames (e.g. `MidnightBlue`) for colors (Xavier Olive).
6688 * Epub templates: use `author.role`, not `author.type`.
6690 * Bump cmark version to >= 0.3.4.
6692 * Improved Windows installer (#2205, thanks to nkalvi).
6693 Users can now select a per-user or systemwide install, and can set
6694 the installation path. At the end of installation, the install location
6695 is given. The install location is also now given in the list of
6696 installed programs in Control Panel. Cleaner WiX syntax is used for
6699 * Added `download_stats` target to Makefile.
6703 * Added missing commonmark template.
6705 * Improved try pandoc (moved button, show raw command).
6709 * Allow compilation with syb 0.5.*.
6711 * Custom writer: fixed some compiler warnings for ghc < 7.10.
6715 * Allow building with hslua 0.4.
6719 * Fixed problem with building of `reference.docx` and `reference.odt`
6720 when the `embed_data_files` flag is used. Instead of having a phase
6721 of the build where `reference.docx` and `reference.odt` are created
6722 from their constituent data files, we now construct these archives
6723 from their constituents when a `docx` or `odt` is built. The
6724 constituent files have been moved from `extra-source-files` to
6725 `data-files`, and `reference.docx` and `reference.odt` have been
6726 removed. Users can create their own `reference.docx` or
6727 `reference.odt` by using pandoc to create a simple `docx` or `odt`.
6728 `make-reference-files.hs` has been removed, simplifying the build
6731 * Don't include generated man pages in extra-source-files (#2189).
6733 * Bumped upper bound for aeson.
6735 * ConTeXt writer: create internal link anchors for Div elements with
6736 identifiers. (This is needed for linked citations to work.)
6742 * Added `commonmark` as input and output format.
6744 * Added `--verbose` flag for debugging output in PDF production (#1840,
6747 * Allow wildcards in `--epub-embed-font` arguments (#1939).
6749 * Added `--latex-engine-opt` option (#969, #1779, Sumit Sahrawat).
6751 * Added `shortcut_reference_links` extension (Konstantin Zudov, #1977).
6752 This is enabled by default for those markdown flavors that
6753 support reading shortcut reference links, namely: `markdown`,
6754 `markdown_strict`, `markdown_github`, `markdown_php`.
6755 If the extension is enabled, the reader parses shortcut reference
6756 links like `[foo]`, and the writer creates such links unless doing
6757 so would cause problems. Users of markdown flavors that support
6758 shortcut reference links should not notice a difference in reading
6759 markdown, but the markdown pandoc produces may differ.
6760 If shortcut links are not desired, the extension can be disabled
6765 * `--toc` is now supported for `docx` output (#458, Nikolay Yakimov).
6766 A "dirty" TOC is created at the beginning of document.
6767 It can be regenerated after the document has been opened.
6769 * An implicit `--filter pandoc-citeproc` is now triggered only when the
6770 `--bibliography` option is used, and not when the `bibliography`
6771 field in metadata is specified (#1849).
6775 + Reference links with `implicit_header_references` are no longer
6776 case-sensitive (#1606).
6777 + Definition lists no longer require indentation for first line (#2087).
6778 Previously the body of the definition (after the `:` or `~` marker)
6779 needed to be in column 4. This commit relaxes that requirement,
6780 to better match the behavior of PHP Markdown Extra. So, now
6781 this is a valid definition list:
6785 + Resolve a potentially ambiguity with table captions:
6795 Is "bar" a definition, or the caption for the table? We'll count
6796 it as a caption for the table.
6797 + Disallow headerless pipe tables (#1996), to conform to GFM and PHP
6798 Markdown Extra. Note: If you have been using headerless pipe tables,
6799 this change may cause existing tables to break.
6800 + Allow pipe tables with header but no body (#2017).
6801 + Allow a digit as first character of a citation key (Matthias Troffaes).
6802 See https://github.com/jgm/pandoc-citeproc/issues/97
6806 + Don't limit includes to `.tex` extension (#1882).
6807 If the extension is not `.tex`, it must be given explicitly in
6808 the `\input` or `\include`.
6812 + Allow numbering in the style file. This allows inherited styles
6813 with numbering (lists) (Jesse Rosenthal).
6817 + Support smart punctuation (Craig Bosma).
6818 + Drop trees with a :noexport: tag (Albert Krewinkel). Trees having a
6819 `:noexport:` tag set are not exported. This mirrors org-mode.
6820 + Put header tags into empty spans (Albert Krewinkel, #2160).
6821 Org mode allows headers to be tagged: `* Headline :TAG1:TAG2`.
6822 Instead of being interpreted as part of the headline, the tags are now
6823 put into the attributes of empty spans. Spans without textual content
6824 won't be visible by default, but they are detectable by filters. They
6825 can also be styled using CSS when written as HTML.
6826 + Generalize code block result parsing (Albert Krewinkel).
6827 Previously, only code blocks were recognized as result blocks;
6828 now, any kind of block can be the result.
6830 * Append newline to the LineBreak in Dokuwiki, HTML, EPUB,
6831 LaTeX, MediaWiki, OpenDocument, Texinfo writers (#1924, Tim Lin).
6835 + Add "inline" or "display" class to math spans (#1914).
6836 This allows inline and display math to be styled differently.
6837 + Include raw latex blocks if `--mathjax` specified (#1938).
6838 + Require highlighting-kate >= 0.5.14 (#1903).
6839 This ensures that all code blocks will be wrapped in a `div`
6840 with class `sourceCode`. Also, the default highlighting CSS
6841 now adds `div.sourceCode { x-overflow: auto; }`, which means
6842 that code blocks (even with line numbers) will acquire a scroll
6843 bar on screens too small to display them (e.g. mobile phones).
6844 See also jgm/highlighting-kate#65.
6848 + Use a declaration for tight lists (Jose Luis Duran, Joseph
6849 Harriott). Previously, pandoc hard-coded some commands to make
6850 tight lists in LaTeX. Now we use a custom command instead,
6851 allowing the styling to be changed in a macro in the header.
6852 (Note: existing templates may need to be modified to include
6853 the definition of this macro. See the current template.)
6854 + Beamer output: if the header introducing a slide has the
6855 class `fragile`, add the `[fragile]` option to the slide (#2119).
6859 + Use `File:` instead of the deprecated `Image:` for images and
6860 other media files (Greg Rundlett).
6864 + Render a `Div (id,_,_) [Para _]` element as a `para` element
6865 with an `id` attribute. This makes links to citations work in
6866 DocBook with pandoc-citeproc.
6870 + Normalize headings to sequential levels (Nikolay Yakimov).
6871 This is pretty much required by docutils.
6872 + Treat headings in block quotes, etc as rubrics (Nikolay Yakimov).
6873 + Better handling of raw latex inline (#1961). We use
6874 `` :raw-latex:`...` `` and add a definition for this role to
6879 + Remove `linear=no` from cover `itemref` (#1609).
6880 + Don't use `sup` element for epub footnotes (#1995).
6881 Instead, just use an a element with class `footnoteRef`.
6882 This allows more styling options, and provides better results
6883 in some readers (e.g. iBooks, where anything inside the a
6884 tag breaks popup footnotes).
6885 + Take TOC title from `toc-title` metadata field.
6889 + Implemented `FirstParagraph` style (Jesse Rosenthal).
6890 Following the ODT writer, we add the `FirstParagraph` style to the
6891 first text paragraph following an image, blockquote, table, heading,
6892 or beginning of document. This allows it to be styled differently.
6893 The default is for it to be the same as `Normal`.
6894 + Added `BodyText` style (Jesse Rosenthal).
6895 We apply a `BodyText` style to all unstyled paragraphs. This is,
6896 essentially, the same as `Normal`, except that since not everything
6897 inherits from `BodyText` (the metadata won't, for example, or
6898 the headers or footnote numbers), we can change the text in the body
6899 without having to make exceptions for everything. If we do want to
6900 change *everything*, we can still do it through `Normal`.
6901 + Altered `Blockquote` style slightly (Jesse Rosenthal).
6902 Since `BlockQuote` derives from `BodyText`, we just want to specify
6903 by default that it won't indent, regardless of what `BodyText` does.
6904 Note that this will not produce any visible difference in the default
6906 + Take TOC title from `toc-title` metadata field (Nikolay Yakimov).
6907 + Added a style to figure images (Nikolay Yakimov).
6908 Figures with empty captions use style `Figure`.
6909 Figures with nonempty captions use style `Figure with Caption`, which
6910 is based on `Figure`, and additionally has `keepNext` set.
6914 + Added figure captions (Nikolay Yakimov). The following styles are
6916 `Figure` -- for figure with empty caption),
6917 `FigureWithCaption` (based on `Figure`) -- for figure with caption,
6918 `FigureCaption` (based on `Caption`) -- for figure captions.
6919 Also, `TableCaption` (based on `Caption`) is used for table captions.
6923 * New `Text.Pandoc.Error` module with `PandocError` type
6924 (Matthew Pickering).
6926 * All readers now return `Either PandocError Pandoc` instead of `Pandoc`
6927 (Matthew Pickering). This allows better handling of errors.
6929 * Added `Text.Pandoc.Writers.CommonMark`, exporting `writeCommonMark`.
6931 * Added `Text.Pandoc.Readers.CommonMark`, exporting `readCommonMark`.
6933 * Derive `Data` and `Typeable` instances for `MediaBag`, `Extension`,
6934 `ReaderOptions`, `EPUBVersion`, `CiteMethod`, `ObfuscationMethod`,
6935 `HTMLSlideVariant`, `TrackChanges`, `WriterOptions` (Shabbaz
6938 * New `Ext_shortcut_reference_links` constructor for `Extension`
6945 + Allow smart `'` after inline math (#1909, Nikolay Yakimov).
6946 + Check for tex macros after indented code (#1973).
6947 + Rewrote `charsInBalancedBrackets` for efficiency.
6948 + Make sure a closing `</div>` doesn't get included in a
6949 definition list item (#2127).
6950 + Don't parse bracketed text as citation if it might be a link,
6951 image, or footnote (Nikolay Yakimov).
6952 + Require space after key in mmd title block (#2026, Nikolay
6953 Yakimov). Require space after key-value delimiter colon in mmd title
6955 + Require nonempty value in mmd title block (Nikolay Yakimov).
6956 + Disable all metadata block extensions when parsing
6957 metadata field values (#2026, Nikolay Yakimov). Otherwise we
6958 could get a mmd title block inside YAML metadata, for example.
6962 + Improve self-closing tag detection in `htmlInBalanced` (#2146).
6963 + Handle tables with `<th>` in body rows (#1859, Mauro Bieg).
6964 + Fixed `htmlTag` (#1820). If the tag parses as a comment, we check
6965 to see if the input starts with `<!--`. If not, it's bogus comment
6966 mode and we fail `htmlTag`.
6967 + Handle `base` tag; if it has an `href` value, this is added to
6968 all relative URLs in links and images.
6972 + Look inside "info" elements for section titles (#1931).
6976 + Parse images in deprecated vml format (Jesse Rosenthal).
6977 + Allow sub/superscript verbatims (Jesse Rosenthal).
6978 Verbatim usually shuts off all other run styles, but we don't want it
6979 to shut off sub/superscript.
6983 + Handle `tabular*` environment (#1850).
6984 Note that the table width is not actually parsed or taken into
6985 account, but pandoc no longer chokes on it.
6986 + Ignore options in `\lstinline` rather than raising error (#1997).
6987 + Add some test cases for simple tables (Mathias Schenner).
6988 + Handle valign argument in tables (Mathias Schenner) (currently
6989 we just ignore this).
6990 + Allow non-empty colsep in tables (Mathias Schenner).
6991 The `tabular` environment allows non-empty column separators
6992 with the "@{...}" syntax. Previously, pandoc would fail to
6993 parse tables if a non-empty colsep was present. With this
6994 commit, these separators are still ignored, but the table gets
6995 parsed. A test case is included.
6996 + Recognize `\newpage` as a block command.
6997 + Allow block content in \title{} (#2001).
6998 + Check for block-level newcommand aliases in blockCommand (Nikolay
7000 + Guard against paragraph starting with inline macro (Nikolay Yakimov).
7001 + Properly gobble spaces after `\\` (#2007).
7005 + Handle newlines in table cells, and empty cells (#1919).
7009 + Allow image links with non-image targets (Hans-Peter Deifel).
7010 This matches behavior of Org-Mode for links like
7011 `[[http://example.com][https://www.haskell.org/static/img/logo.png]]`.
7015 + Don't print empty id attributes (thanks to Steve Horne).
7019 + Fixed list-style-type for numbered example lists.
7020 Should be "decimal," not "example" (#1902).
7021 + Do not omit missing `alt` attribute on `img` tag (#1131,
7023 + Allow multiple colgroups in table (#2122).
7024 + In revealjs, ensure that lists in speaker notes don't add "fragment"
7025 classes, which can cause additional keypresses to be needed to
7026 advance a slide (#1394).
7030 + Don't escape `$` in URL (#1913).
7031 + Don't use listings in headers (Matthew Pickering, #1963).
7032 + Recognize book documentclass if set in metadata (#1971).
7033 This sets `--chapters` implicitly if the documentclass in metadata
7034 is a book documentclass. Previously this was done only if a book
7035 documentclass was set in a variable.
7036 + Add a `\label` in `\hyperdef` for Div, Span (or links don't work).
7037 + Make `mainlang` work when `lang` is in metadata (#2174).
7041 + Fix wrapping by using breakable spaces (Tim Lin).
7045 + Fixed toc depth in RST writer. Previously the depth was being
7046 rendered as a floating point number with a decimal point.
7050 + Improved escaping (#2086). `<` should not be escaped as `\<`, for
7051 compatibility with original Markdown. We now escape `<` and `>`
7052 with entities. Also, we now backslash-escape square brackets.
7053 + Avoid introducing spurious list items through wrapping (#1946).
7054 + Don't emit span tags if plain or raw HTML disabled.
7058 + Convert spaces to underscores in wikilink URL (#1982), like MediaWiki.
7062 + Insert some needed blank lines (#1860).
7063 + Avoid wrapping after list marker (#1858).
7067 + Properly handle internal links to IDs in spans, divs (#1884).
7068 + Use plain writer for metadata dc: fields (#2121).
7069 This gives better results when we have, e.g. multiple paragraphs.
7070 Note that tags aren't allowed in these fields.
7071 + Properly handle image links without an extension (#1855).
7072 + Improved chapter splitting and internal link rewriting (#1887,
7073 #2162, #2163). This will ensure that internal links work and
7074 that the references section produced by pandoc-citeproc is
7076 + Fixed handling of svg images (#2183).
7080 + Better handling of raw blocks and inlines (#1951).
7081 Previously these were always escaped and printed verbatim.
7082 Now they are ignored unless the format is `icml`, in which
7083 case they are passed through unescaped.
7084 + Fixed image URIs in ICML output (gohai).
7088 + Raise error if loadstring returns an error status.
7089 + Raise `PandocLuaException` instead of using 'error'.
7090 Eventually we'll change the return type so that no exception
7091 is involved, but at least this can be trapped.
7092 + Use UTF-8 aware bytestring conversion.
7093 + Set foreign encoding to UTF-8 (Nikolay Yakimov, #2101, #1634).
7094 Also factored out ByteString, since it's only used as an intermediate
7099 + Copy hyphenation settings from reference.docx (Nikolay Yakimov).
7100 + Filter out illegal XML characters (#1992, Matthew Pickering).
7101 + Added `noProof` to docx syntax highlighting `SourceCode` style.
7102 + Added footnotes id -1 and 0 (Jesse Rosenthal).
7103 Word uses, by default, footnotes with id -1 and 0 for separators. If a
7104 user modifies `reference.docx`, they will end up with a `settings.xml`
7105 file that references these footnotes, but no such footnotes in the
7106 document. This will produce a corruption error. Here we add these to the
7107 document and `settings.xml` file, so future modifications won't break
7109 + Handle lists correctly inside table cells (Jesse Rosenthal).
7110 Previously we didn't transform lists inside table cells.
7111 + Set firstRow information in tables (Nikolay Yakimov).
7112 + Don't replace `SourceCode` style in `reference.docx` if it is defined
7113 there (Nikolay Yakimov, #1872). If `--no-highlight` specified, remove
7114 any `SourceCode` and `*Tok` styles in `reference.docx`.
7115 + Attempt to match international style names (#1607, Nikolay Yakimov).
7116 + Set these styles as custom (Nikolay Yakimov): `Author`, `Abstract`,
7117 `Compact`, `Image Caption`, `Table Caption`, `Definition Term`,
7118 `Definition`, `First Paragraph`.
7119 + Rename these styles to correspond with Word `Normal.dotm` (Nikolay
7120 Yakimov): `Block Quote -> Block Text`, `Link -> Hyperlink`,
7121 `Footnote Ref -> Footnote Reference`.
7122 + Added `Caption` style (Nikolay Yakimov).
7123 + Changed these styles' inheritance (Nikolay Yakimov):
7124 `Image Caption <- Caption`, `Table Caption <- Caption`.
7125 + Remove `SourceCode` style from `reference.docx` (#1872).
7126 This is added automatically by the docx writer.
7127 + Added toc heading style to `reference.docx` (Nikolay Yakimov).
7131 + Don't suggest "Try xelatex" if xelatex already in use (Mauro Bieg,
7133 + More comprehensible errors on image conversion (#2067).
7134 EPS can't be supported without shelling out to something like
7135 ImageMagick, but at least we can avoid mysterious error messages.
7137 * `Text.Pandoc.Shared`:
7139 + Make safeRead safe (#1801, Matthew Pickering).
7140 + Added `mapLeft`, `hush` (Matthew Pickering).
7142 * `Text.Pandoc.Pretty`:
7144 + Remove partial function (Matthew Pickering).
7146 * `Text.Pandoc.SelfContained`:
7148 + Add `;charset=utf-8` to script mime type if missing (#1842).
7149 + Improved building of data URIs (#1940). Now base64 is used except
7150 for `text/*` mime types.
7151 + `cssURLs` no longer tries to fetch fragment URLs (#2121).
7152 + Properly handle data URIs in css urls (#2129).
7153 Use a proper CSS parser (adds dependency on `text-css`).
7155 * `Text.Pandoc.UTF8`:
7157 + Better handling of bare CRs in input files (#2132).
7158 Previously we just stripped them out; now we convert
7159 other line ending styles to LF line endings.
7161 * `Text.Pandoc.ImageSize`:
7163 + Fixed some exif header parsing bugs (#1834).
7164 + Make imageSize return an Either, not a Maybe (#1834).
7165 Use `runGetOrFail` (with `binary >= 0.7`) to return `Left` on
7166 parse failure (rather than `error`).
7167 + Improved warnings when image size can't be determined.
7168 + Removed error landmines (Matthew Pickering).
7170 * Added woff2 to MIME types (Alfred Wechselberger).
7172 * pandoc: When a binary input format is used, warn that file
7173 arguments past the first one are being ignored (Matthew Pickering).
7179 + Degrade gracefully if `\paragraph` not defined.
7180 + Include `grffile` together with `graphicx` (#2074).
7181 This properly handles filenames containing spaces and dots.
7182 + Redefine `\paragraph`, `\subparagraph`... to behave more
7183 like section headers (#1658).
7184 + Import hyperref before polyglossia to avoid an error with xelatex,
7185 "please load package hyperref before bidi package" (Nick Bart).
7186 + Added `toccolor` variable to control link color in toc (Kaixhin).
7188 * LaTeX, Beamer templates:
7190 + Provide `\tightlist`, which is now used by the LaTeX writer.
7191 + Use polyglossia in beamer (#85).
7192 + Use `bibliography` instead of `biblio-files`
7193 (#1661). Also use `\addbibresource` instead of `\bibliography` for
7195 + Added `setotherlanguages` in polyglossia. This uses an `otherlang`
7196 variable that is derived from a comma-separated list in `lang`;
7197 the last language is `mainlang` and the others are `otherlang`.
7201 + Use `div`, not `p`, for "rights" on title page.
7202 + Added header-includes, include-before, include-after (#1987).
7204 * OpenDocument template:
7206 + Use `text:p` instead of `text:h` for title.
7207 Using `text:h` causes problems with numbering. Closes #2059.
7208 Thanks to @nkalvi for diagnosing this.
7210 * reveal.js template:
7212 + Link to non-minified css, js. The minified versions no longer
7213 ship with the library.
7214 + Correctly include style CSS (#1949).
7215 + New configurable options options: `center`, `maxScale`, `slideNuber`
7216 (Dmitry Smirnov, pandoc-templates#89).
7217 + Moved custom CSS after theme. This allows custom CSS to modify
7218 themes, instead of being replaced by them.
7219 + Allow `center` to be set to false.
7221 [under the hood improvements]
7223 * Removed pre-built `reference.docx` and `reference.odt` (Nikolay
7224 Yakimov). Instead the repository now includes the component text files,
7225 and the zipped binaries are built from these using a helper
7226 program, `make-reference-files`. This should make maintenance of
7227 these components easier going forward.
7229 * `Text.Pandoc.Parsing`:
7231 + Added new `<+?>` combinator (Nikolay Yakimov).
7232 + Added `stateHeaderKeys` to `ParserState`.
7234 * `make_deb.sh` fixes:
7236 + Detect architecture.
7237 + Add Installed-Size to debian package control file (#1900).
7238 + Use `fakeroot` to get permissions right.
7239 + Use `mkdir` and `cp` instead of `install`.
7240 + Set permissions of directories to 755.
7241 + Install in `/usr` rather than `/usr/local`.
7242 + Compress man pages.
7243 + Combine copyright files for `pandoc`, `pandoc-citeproc`.
7245 * Added `Text.Pandoc.Compat.Locale` and `old-locale` flag
7246 to assist with transition to `time` 1.5.
7248 * Updated CONTRIBUTING.md with information about issue tags (Matthew
7251 * Updated travis installs to the new sudo-less syntax (Tim Lin).
7253 * Updated dependency version bounds.
7255 * EPUB tests: don't use `joinPath`, which varies across platforms.
7256 Instead, use a forward-slash to join paths, regardless of the
7257 platform. This matches the way `MediaBag` now works.
7259 * Clarify JSON input and output in usage message (Caleb McDaniel).
7261 * Improved INSTALL instructions.
7263 * Always build man pages. Removed make-pandoc-man-pages flag.
7265 * Makefile: removed man target, now that we generate man pages by default.
7269 + Fixed typos (J. Lewis Muir).
7270 + Added documentation on backtick_code_blocks (#2135, Nikolay Yakimov).
7271 + Added note on in-field markup in biblio databases (Nick Bart).
7272 + Fixed misleading example of raw HTML block.
7273 + Various minor formatting and consistency fixes for the program
7274 options (Andreas Lööw).
7275 + Made definition lists for options all "loose" for consistency.
7276 + Added YAML biblio format to table, and note on `pandoc-citeproc`'s
7277 `--bib2json` and `--bib2yaml` options (Nick Bart).
7278 + Removed obsolete reference to `mods2yaml` (Nick Bart).
7279 + Added section on syntax highlighting.
7280 + Documented `toccolor` variable.
7284 * Updated to build with ghc 7.10.1.
7286 * Bumped package upper bounds for filepath, blaze-html,
7291 * TWiki Reader: add new new twiki reader (API change, Alexander Sulfrian).
7295 + Better handling of paragraph in div (#1591).
7296 Previously text that ended a div would be parsed as Plain
7297 unless there was a blank line before the closing div tag.
7298 + Don't treat a citation as a reference link label (#1763).
7299 + Fix autolinks with following punctuation (#1811).
7300 The price of this is that autolinked bare URIs can no longer
7301 contain `>` characters, but this is not a big issue.
7302 + Fix `Ext_lists_without_preceding_blankline` bug (#1636, Artyom).
7303 + Allow `startnum` to work without `fancy_lists`. Formerly
7304 `pandoc -f markdown-fancy_lists+startnum` did not work properly.
7306 * RST reader (all Daniel Bergey):
7308 + Parse quoted literal blocks (#65). RST quoted literal blocks are
7309 the same as indented literal blocks (which pandoc already supports)
7310 except that the quote character is preserved in each line.
7311 + Parse RST class directives. The class directive accepts one or more
7312 class names, and creates a Div value with those classes. If the
7313 directive has an indented body, the body is parsed as the children of
7314 the Div. If not, the first block following the directive is made a
7315 child of the Div. This differs from the behavior of rst2xml, which
7316 does not create a Div element. Instead, the specified classes are
7317 applied to each child of the directive. However, most Pandoc Block
7318 constructors to not take an Attr argument, so we can't duplicate this
7320 + Warn about skipped directives.
7321 + Literal role now produces Code. Code role should have "code" class.
7322 + Improved support for custom roles
7324 - Added `sourceCode` to classes for `:code:` role, and anything
7326 - Add the name of the custom role to classes if the Inline
7327 constructor supports Attr.
7328 - If the custom role directive does not specify a parent role,
7329 inherit from the `:span:` role.
7331 This differs somewhat from the `rst2xml.py` behavior. If a custom
7332 role inherits from another custom role, Pandoc will attach both
7333 roles' names as classes. `rst2xml.py` will only use the class of
7334 the directly invoked role (though in the case of inheriting from a
7335 `:code:` role with a `:language:` defined, it will also provide the
7336 inherited language as a class).
7337 + Warn about ignored fields in role directives.
7341 + Parse label after caption into a span instead of
7342 inserting an additional paragraph of bracketed text (#1747).
7343 + Parse math environments as inline when possible (#1821).
7344 + Better handling of `\noindent` and `\greektext` (#1783).
7345 + Handle `\texorpdfstring` more gracefully.
7346 + Handle `\cref` and `\sep` (Wikiwide).
7347 + Support `\smartcite` and `\Smartcite` from biblatex.
7351 + Retain display type of MathML output (#1719, Matthew Pickering).
7352 + Recognise `<br>` tags inside `<pre>` blocks (#1620, Matthew Pickering).
7353 + Make `embed` tag either block or inline (#1756).
7357 + Handle `keycombo`, `keycap` (#1815).
7358 + Get string content in inner tags for literal elements (#1816).
7359 + Handle `menuchoice` elements better, with a `>` between (#1817).
7360 + Include `id` on section headers (#1818).
7361 + Document/test "type" as implemented (Brian O'Sullivan).
7362 + Add support for calloutlist and callout (Brian O'Sullivan).
7363 We treat a calloutlist as a bulleted list. This works well in practice.
7364 + Add support for `classname` (Bryan O'Sullivan).
7368 + Fix window path for image lookup (Jesse Rosenthal).
7369 Don't use os-sensitive "combine", since we always want the paths in our
7370 zip-archive to use forward-slashes.
7371 + Single-item headers in ordered lists are headers (Jesse Rosenthal).
7372 When users number their headers, Word understands that as a single item
7373 enumerated list. We make the assumption that such a list is, in fact,
7375 + Rewrite rewriteLink to work with new headers (Jesse Rosenthal).
7376 There could be new top-level headers after making lists, so we have to
7377 rewrite links after that.
7378 + Use polyglot header list (Jesse Rosenthal).
7379 We're just keeping a list of header formats that different languages
7380 use as their default styles. At the moment, we have English, German,
7381 Danish, and French. We can continue to add to this.
7382 This is simpler than parsing the styles file, and perhaps less
7383 error-prone, since there seems to be some variations, even within a
7384 language, of how a style file will define headers.
7385 + Remove header class properly in other langs (Jesse Rosenthal).
7386 When we encounter one of the polyglot header styles, we want to remove
7387 that from the par styles after we convert to a header. To do that, we
7388 have to keep track of the style name, and remove it appropriately.
7389 + Account for external link URLs with anchors. Previously, if a URL
7390 had an anchor, the reader would incorrectly identify it as an
7391 internal link and return only the anchor as URL. (Caleb McDaniel)
7392 + Fix for Issue #1692 (i18n styles) (Nikolay Yakimov).
7396 + Added state changing blanklines (Jesse Rosenthal).
7397 This allows us to emphasize at the beginning of a new paragraph (or, in
7398 general, after blank lines).
7399 + Fixed bug with bulleted lists:
7405 was being parsed as a list, even though an unindented `*`
7406 should make a heading. See
7407 <http://orgmode.org/manual/Plain-lists.html#fn-1>.
7408 + Org reader: absolute, relative paths in link (#1741, Albert
7409 Krewinkel). The org reader was too restrictive when parsing links;
7410 some relative links and links to files given as absolute paths
7411 were not recognized correctly.
7412 + Org reader: allow empty links (jgm/gitit#471, Albert Krewinkel).
7413 This is important for use in gitit, which uses empty links
7415 + Respect indent when parsing Org bullet lists (#1650, Timothy
7416 Humphries). Fixes issue with top-level bullet list parsing.
7417 + Fix indent issue for definition lists (Timothy Humphries,
7418 see #1650, #1698, #1680).
7419 + Parse multi-inline terms correctly in definition list (#1649,
7421 + Fix rules for emphasis recognition (Albert Krewinkel).
7422 Things like `/hello,/` or `/hi'/` were falsy recognized as emphasised
7423 strings. This is wrong, as `,` and `'` are forbidden border chars and
7424 may not occur on the inner border of emphasized text.
7425 + Drop COMMENT document trees (Albert Krewinkel).
7426 Document trees under a header starting with the word `COMMENT` are
7427 comment trees and should not be exported. Those trees are dropped
7429 + Properly handle links to `file:target` (Albert Krewinkel).
7430 Org links like `[[file:target][title]]` were not handled correctly,
7431 parsing the link target verbatim. The org reader is changed such that
7432 the leading `file:` is dropped from the link target (see #756, #1812).
7433 + Parse LaTeX-style MathML entities (#1657, Albert Krewinkel).
7434 Org supports special symbols which can be included using LaTeX syntax,
7435 but are actually MathML entities. Examples for this are
7436 `\nbsp` (non-breaking space), `\Aacute` (the letter A with accent acute)
7437 or `\copy` (the copyright sign ©)
7441 + URI handling improvements. Now we outsource most of the work to
7442 `fetchItem'`. Also, do not include queries in file extensions (#1671).
7446 + Use `\texorpdfstring` for section captions when needed (Vaclav Zeman).
7447 + Handle consecutive linebreaks (#1733).
7448 + Protect graphics in headers (Jesse Rosenthal).
7449 Graphics in `\section`/`\subsection` etc titles need to be `\protect`ed.
7450 + Put `~` before header in list item text (Jesse Rosenthal).
7451 Because of the built-in line skip, LaTeX can't handle a section header
7452 as the first element in a list item.
7453 + Avoid using reserved characters as `\lstinline` delimiters (#1595).
7454 + Better handling of display math in simple tables (#1754).
7455 We convert display math to inline math in simple tables,
7456 since LaTeX can't deal with display math in simple tables.
7457 + Escape spaces in code (#1694, Bjorn Buckwalter).
7461 + Fixed links with URL = text. Previously these were rendered as bare
7462 words, even if the URL was not an absolute URL (#1825).
7466 + Don't force all citations into footnotes.
7470 + Add blankline at end of output (#1732, Matthew Pickering).
7474 + Ensure blank line after figure.
7475 + Avoid exces whitespace after last list item (#1777).
7476 + Wrap line blocks with spaces before continuations (#1656).
7477 + Fixed double-rendering of footnotes in RST tables (#1769).
7481 + Better handling of block quotes. This change ensures that
7482 multiple paragraph blockquotes are rendered using native `>`
7483 rather than as HTML (#1738).
7484 + Fix external images (#1739). Preface relative links with ":",
7485 absolute URIs without. (Timothy Humphries)
7489 + Use protocol-relative URL for mathjax.
7490 + Put newline btw img and caption paragraph.
7491 + MathML now outputted with tex annotation (#1635, Matthew Pickering).
7492 + Add support for KaTeX HTML math (#1626, Matthew Pickering).
7493 This adds `KaTeX` to `HTMLMathMethod` (API change).
7494 + Don't double render when `email-obfuscation=none` (#1625, Matthew
7496 + Make header attributes work outside top level (#1711).
7497 Previously they only appeared on top level header elements.
7498 Now they work e.g. in blockquotes.
7502 + Correctly handle images without extensions (#1729).
7503 + Strip querystring in ODT write (#1682, Todd Sifleet).
7507 + Add newline to output.
7511 + Don't add `sourceURL` to absolute URIs (#1669).
7512 + Don't use unsupported `opf:title-type` for epub2.
7513 + Include "landmarks" section in nav document for epub3 (#1757).
7514 + Removed playOrder from navpoint elements in ncx file (#1760).
7515 These aren't required, and they make manual modification of epubs
7517 + Extract title even from structured title.
7518 + Don't include nav node in spine unless `--toc` was requested.
7519 Previously we included it in the spine with `linear="no"`, leading
7520 to odd results in some readers (#1593).
7521 + Fixed absolute URI detection (#1672).
7522 + Correctly resolve relative URIs (#1671).
7523 + Use regular page template for `nav.xhtml`, including doctype (#1759).
7527 + Put docx table captions above tables (#1641, Nikolay Yakimov).
7528 + Get the page width from the reference docx file, and use
7529 it to scale images that are too large to fit (Grégory Bataille).
7530 + Partial fix for #1607 (Nikolay Yakimov). International heading styles
7531 are inferred based on `<w:name val="heading #">` fallback, if there
7532 are no en-US "Heading#" styles
7533 + Look in user data dir for archive `reference.docx`.
7534 + Renumber header and footer relationships to avoid collisions (Jesse
7535 Rosenthal). We previously took the old relationship names of the
7536 headers and footer in secptr. That led to collisions. We now make
7537 a map of availabl names in the relationships file, and then rename
7542 + Add function toLabel (Mark Szepieniec).
7543 This function can be used to sanitize reference labels so that
7544 they do not contain any of the illegal characters \#[]",{}%()|= .
7545 Currently only Links have their labels sanitized, because they
7546 are the only Elements that use passed labels.
7548 * `Text.Pandoc.Shared`:
7550 + Moved import of `toChunks` outside of CPP conditional (#1590).
7551 + Fix `inDirectory` to reset to the original directory in case
7552 an exception occurs (Freiric Barral).
7556 + LaTeX template: load polyglossia before bibtex (jgm/pandoc-templates#70).
7557 Thanks to bluebirch.
7558 + LaTeX template: Added `\VerbatimFootnotes` if there is verbatim in notes
7560 + LaTeX template: Add shorthands=off to babel options (#1648).
7561 + EPUB, EPUB3 templates: Added `id="cover"` to body of cover page.
7562 This aids styling, making it possible for example to set 0 margins
7563 on the title page (#1758).
7564 + EPUB, EPUB3 templates: Handle structured metadata on titlepage.
7565 Previously we just expected 'title', 'subtitle', 'author', 'date'.
7566 Now we still support those, but also support the format recommended
7567 for epub metadata in the pandoc README:
7574 text: An investigation of metadata
7582 text: doi:10.234234.234/33
7584 rights: (c) 2007 John Smith, CC BY-NC
7587 * `Text.Pandoc.Templates.getDefaultTemplate`:
7588 don't fail when called with "fb2" (#1660).
7590 * `Text.Pandoc.Parsing`:
7592 + Fixed `inlineMath` so it handles `\text{..}` containing `$`.
7593 For example: `$x = \text{the $n$th root of $y$}` (#1677).
7594 + Change `parseFromString` to fail if not all input is consumed.
7596 + Moved `addWarning` from Markdown reader to `Parsing`, so it can be
7597 used by more readers (API change, Daniel Bergey).
7599 * `Text.Pandoc.Pretty`:
7601 + Improve performance of `realLength` (Matthew Pickering).
7602 + Make CR + BLANKLINE = BLANKLINE. This fixes an extra blank line we
7603 were getting at the end of markdown fragments (as well as rst, org,
7606 * `Text.Pandoc.MIME`:
7608 + Add mime type for WebVTT (Jason Ronallo).
7609 + Changed mime type for `otf` to `application/vnd.ms-opentype` (#1761).
7610 This is needed for epub3 validation.
7612 * `Text.Pandoc.MediaBag`:
7614 + Fix Windows specific path problems (#1597).
7616 * `Text.Pandoc.Shared`:
7618 + Make `collapseFilePath` OS-agnostic (Matthew Pickering).
7620 * Link the test suite using `-threaded`.
7621 This allows the test suite to be run using `+RTS -N`.
7623 * Added `network` dependency under `network-uri` flag in test section.
7625 * Give better error messages when someone tries to convert from
7626 pdf, doc, odt (#1683).
7628 * Added `track` to list of tags treated by `--self-contained` (#1664).
7632 * Fixed `--self-contained` with Windows paths (#1558).
7633 Previously `C:\foo.js` was being wrongly interpreted as a URI.
7635 * HTML reader: improved handling of tags that can be block or inline.
7636 Previously a section like this would be enclosed in a paragraph,
7637 with RawInline for the video tags (since video is a tag that can
7638 be either block or inline):
7640 <video controls="controls">
7641 <source src="../videos/test.mp4" type="video/mp4" />
7642 <source src="../videos/test.webm" type="video/webm" />
7644 The videos can not be played back on your system.<br/>
7645 Try viewing on Youtube (requires Internet connection):
7646 <a href="http://youtu.be/etE5urBps_w">Relative Velocity on
7651 This change will cause the video and source tags to be parsed
7652 as RawBlock instead, giving better output.
7653 The general change is this: when we're parsing a "plain" sequence
7654 of inlines, we don't parse anything that COULD be a block-level tag.
7658 + Be sensitive to user styles. Note that "Hyperlink" is
7659 "blacklisted," as we don't want the default underline styling to be
7660 inherited by all links by default (Jesse Rosenthal).
7661 + Read single paragraph in table cell as `Plain` (Jesse Rosenthal).
7662 This makes to docx reader's native output fit with the way the markdown
7663 reader understands its markdown output.
7665 * Textile writer: Extended the range of cases where native textile
7666 tables will be used (as opposed to raw HTML): we now handle any
7667 alignment type, but only for simple tables with no captions.
7671 + Header is now parsed only if standalone flag is set (Matthew Pickering).
7672 + The header is now parsed as meta information. The first line is the
7673 `title`, the second is the `author` and third line is the `date`
7674 (Matthew Pickering).
7675 + Corrected formatting of `%%mtime` macro (Matthew Pickering).
7676 + Fixed crash when reading from stdin.
7678 * EPUB writer: Don't use page-progression-direction in EPUB2, which
7679 doesn't support it. Also, if page-progression-direction not specified
7680 in metadata, don't include the attribute even in EPUB3; not including it
7681 is the same as including it with the value "default", as we did before.
7684 * Org writer: Accept example lines with indentation at the beginning
7689 + Refactor to use Reader monad (Matthew Pickering).
7690 + Avoid using raw HTML in table cells; instead, use `\\`
7691 instead of newlines (Jesse Rosenthal).
7692 + Properly handle HTML table cell alignments, and use spacing
7693 to make the tables look prettier (#1566).
7697 + Bibliography entries get `Bibliography` style (#1559).
7698 + Implement change tracking (Jesse Rosenthal).
7702 + Fixed a bug that caused a table caption to repeat across all pages
7704 + Improved vertical spacing in tables and made it customizable using
7705 standard lengths set by booktab. See
7706 <https://groups.google.com/forum/#!msg/pandoc-discuss/qMu6_5lYy0o/ZAU7lzAIKw0J>
7708 + Added `\strut` to fix spacing in multiline tables (Jose Luis Duran).
7709 + Use `\tabularnewline` instead of `\\` in table cells (Jose Luis Duran).
7710 + Made horizontal rules more flexible (Jose Luis Duran).
7714 + Added `MimeType` (type synonym for `String`) and `getMimeTypeDef`.
7715 Code cleanups (Artyom Kazak).
7719 + LaTeX template: disable microtype protrusion for typewriter font (#1549,
7722 * Improved OSX build procedure.
7724 * Added `network-uri` flag, to deal with split of `network-uri` from
7727 * Fix build dependencies for the `trypandoc` flag, so that they are
7728 ignored if `trypandoc` flag is set to False (Gabor Pali).
7730 * Updated README to remove outdated claim that `--self-contained`
7731 looks in the user data directory for missing files.
7737 + Fixed regression which bungled list numbering (#1544), causing
7738 all lists to appear as basic ordered lists.
7739 + Include row width in table rows (Christoffer Ackelman, Viktor Kronvall).
7740 Added a property to all table rows where the sum of column widths
7741 is specified in pct (fraction of 5000). This helps persuade Word
7742 to lay out the table with the widths we specify.
7744 * Fixed a bug in Windows 8 which caused pandoc not to find the
7745 `pandoc-citeproc` filter (#1542).
7747 * Docx reader: miscellaneous under-the-hood improvements (Jesse Rosenthal).
7748 Most significantly, the reader now uses Builder, leading to some
7749 performance improvements.
7751 * HTML reader: Parse appropriately styled span as SmallCaps.
7753 * Markdown writer: don't escape `$`, `^`, `~` when `tex_math_dollars`,
7754 `superscript`, and `subscript` extensions, respectively, are
7755 deactivated (#1127).
7757 * Added `trypandoc` flag to build CGI executable used in the online
7760 * Makefile: Added 'quick', 'osxpkg' targets.
7762 * Updated README in templates to indicate templates license.
7763 The templates are dual-licensed, BSD3 and GPL2+.
7769 * Added `docx` as an input format (Jesse Rosenthal). The docx
7770 reader includes conversion of native Word equations to pandoc
7771 LaTeX `Math` elements. Metadata is taken from paragraphs at the
7772 beginning of the document with styles `Author`, `Title`, `Subtitle`,
7773 `Date`, and `Abstract`.
7775 * Added `epub` as an input format (Matthew Pickering). The epub
7776 reader includes conversion of MathML to pandoc LaTeX `Math`
7779 * Added `t2t` (Txt2Tags) as an input format (Matthew Pickering).
7780 Txt2tags is a lightweight markup format described at
7781 <http://txt2tags.org/>.
7783 * Added `dokuwiki` as an output format (Clare Macrae).
7785 * Added `haddock` as an output format.
7787 * Added `--extract-media` option to extract media contained in a zip
7788 container (docx or epub) while adjusting image paths to point to the
7791 * Added a new markdown extension, `compact_definition_lists`, that
7792 restores the syntax for definition lists of pandoc 1.12.x, allowing
7793 tight definition lists with no blank space between items, and
7794 disallowing lazy wrapping. (See below under behavior changes.)
7796 * Added an extension `epub_html_exts` for parsing HTML in EPUBs.
7798 * Added extensions `native_spans` and `native_divs` to activate
7799 parsing of material in HTML span or div tags as Pandoc Span
7800 inlines or Div blocks.
7802 * `--trace` now works with the Markdown, HTML, Haddock, EPUB,
7803 Textile, and MediaWiki readers. This is an option intended
7804 for debugging parsing problems; ordinary users should not need
7809 * Changed behavior of the `markdown_attribute` extension, to bring
7810 it in line with PHP markdown extra and multimarkdown. Setting
7811 `markdown="1"` on an outer tag affects all contained tags,
7812 recursively, until it is reversed with `markdown="0"` (#1378).
7814 * Revised markdown definition list syntax (#1429). Both the reader
7815 and writer are affected. This change brings pandoc's definition list
7816 syntax into alignment with that used in PHP markdown extra and
7817 multimarkdown (with the exception that pandoc is more flexible about
7818 the definition markers, allowing tildes as well as colons). Lazily
7819 wrapped definitions are now allowed. Blank space is required
7820 between list items. The space before a definition is used to determine
7821 whether it is a paragraph or a "plain" element. **WARNING: This change
7822 may break existing documents!** Either check your documents for
7823 definition lists without blank space between items, or use
7824 `markdown+compact_definition_lists` for the old behavior.
7826 * `.numberLines` now works in fenced code blocks even if no language
7827 is given (#1287, jgm/highlighting-kate#40).
7829 * Improvements to `--filter`:
7831 + Don't search PATH for a filter with an explicit path.
7832 This fixed a bug wherein `--filter ./caps.py` would run `caps.py` from
7833 the system path, even if there was a `caps.py` in the working directory.
7834 + Respect shebang if filter is executable (#1389).
7835 + Don't print misleading error message.
7836 Previously pandoc would say that a filter was not found,
7837 even in a case where the filter had a syntax error.
7841 + Parse `div` and `span` elements even without `--parse-raw`,
7842 provided `native_divs` and `native_spans` extensions are set.
7843 Motivation: these now generate native pandoc Div and Span
7844 elements, not raw HTML.
7845 + Parse EPUB-specific elements if the `epub_html_exts`
7846 extension is enabled. These include `switch`, `footnote`,
7847 `rearnote`, `noteref`.
7851 + Support for inline LaTeX. Inline LaTeX is now accepted and parsed by the
7852 org-mode reader. Both math symbols (like `\tau`) and LaTeX commands (like
7853 `\cite{Coffee}`), can be used without any further escaping (Albert
7856 * Textile reader and writer:
7858 + The `raw_tex` extension is no longer set by default. You can
7859 enable it with `textile+raw_tex`.
7863 + Support `equation`, `informalequation`, `inlineequation` elements with
7864 `mml:math` content. This is converted into LaTeX and put into a Pandoc
7867 * Revised `plain` output, largely following the style of Project
7870 + Emphasis is rendered with `_underscores_`, strong emphasis
7872 + Headings are rendered differently, with space to set them off,
7873 not with setext style underlines. Level 1 headers are ALL CAPS.
7874 + Math is rendered using unicode when possible, but without the
7875 distracting emphasis markers around variables.
7876 + Footnotes use a regular `[n]` style.
7880 + Horizontal rules are now a line across the whole page.
7881 + Prettier pipe tables. Columns are now aligned (#1323).
7882 + Respect the `raw_html` extension. `pandoc -t markdown-raw_html`
7883 no longer emits any raw HTML, including span and div tags
7884 generated by Span and Div elements.
7885 + Use span with style for `SmallCaps` (#1360).
7889 + Autolinks now have class `uri`, and email autolinks have class
7890 `email`, so they can be styled.
7894 + Document formatting is carried over from `reference.docx`.
7895 This includes margins, page size, page orientation, header,
7896 and footer, including images in headers and footers.
7897 + Include abstract (if present) with `Abstract` style (#1451).
7898 + Include subtitle (if present) with `Subtitle` style, rather
7899 than tacking it on to the title (#1451).
7903 + Write empty span elements with an id attribute as org anchors.
7904 For example `Span ("uid",[],[]) []` becomes `<<uid>>`.
7908 + Put table captions above tables, to match the conventional
7909 standard. (Previously they appeared below tables.)
7910 + Use `\(..\)` instead of `$..$` for inline math (#1464).
7911 + Use `\nolinkurl` in email autolinks. This allows them to be styled
7912 using `\urlstyle{tt}`. Thanks to Ulrike Fischer for the solution.
7913 + Use `\textquotesingle` for `'` in inline code. Otherwise we get
7914 curly quotes in the PDF output (#1364).
7915 + Use `\footnote<.>{..}` for notes in beamer, so that footnotes
7916 do not appear before the overlays in which their markers appear
7918 + Don't produce a `\label{..}` for a Div or Span element. Do produce
7919 a `\hyperdef{..}` (#1519).
7923 + If the metadata includes `page-progression-direction` (which can be
7924 `ltr` or `rtl`, the `page-progression-direction` attribute will
7925 be set in the EPUB spine (#1455).
7927 * Custom lua writers:
7929 + Custom writers now work with `--template`.
7930 + Removed HTML header scaffolding from `sample.lua`.
7931 + Made citation information available in lua writers.
7933 * `--normalize` and `Text.Pandoc.Shared.normalize` now consolidate
7934 adjacent `RawBlock`s when possible.
7938 * Added `Text.Pandoc.Readers.Docx`, exporting `readDocx` (Jesse Rosenthal).
7940 * Added `Text.Pandoc.Readers.EPUB`, exporting `readEPUB` (Matthew
7943 * Added `Text.Pandoc.Readers.Txt2Tags`, exporting `readTxt2Tags` (Matthew
7946 * Added `Text.Pandoc.Writers.DokuWiki`, exporting `writeDokuWiki`
7949 * Added `Text.Pandoc.Writers.Haddock`, exporting `writeHaddock`.
7951 * Added `Text.Pandoc.MediaBag`, exporting `MediaBag`, `lookupMedia`,
7952 `insertMedia`, `mediaDirectory`, `extractMediaBag`. The docx and epub
7953 readers return a pair of a `Pandoc` document and a `MediaBag` with
7954 the media resources they contain. This can be extracted using
7955 `--extract-media`. Writers that incorporate media (PDF, Docx,
7956 ODT, EPUB, RTF, or HTML formats with `--self-contained`) will look
7957 for resources in the `MediaBag` generated by the reader, in addition to
7958 the file system or web.
7960 * `Text.Pandoc.Readers.TexMath`: Removed deprecated `readTeXMath`.
7961 Renamed `readTeXMath'` to `texMathToInlines`.
7963 * `Text.Pandoc`: Added `Reader` data type (Matthew Pickering).
7964 `readers` now associates names of readers with `Reader`
7965 structures. This allows inclusion of readers, like the docx
7966 reader, that take binary rather than textual input.
7968 * `Text.Pandoc.Shared`:
7970 + Added `capitalize` (Artyom Kazak), and replaced uses of
7971 `map toUpper` (which give bad results for many languages).
7972 + Added `collapseFilePath`, which removes intermediate `.` and
7973 `..` from a path (Matthew Pickering).
7974 + Added `fetchItem'`, which works like `fetchItem` but searches
7975 a `MediaBag` before looking on the net or file system.
7976 + Added `withTempDir`.
7977 + Added `removeFormatting`.
7978 + Added `extractSpaces` (from HTML reader) and generalized its type
7979 so that it can be used by the docx reader (Matthew Pickering).
7981 + Added `normalizeInlines`, `normalizeBlocks`.
7982 + `normalize` is now `Pandoc -> Pandoc` instead of
7983 `Data a :: a -> a`. Some users may need to change their uses of
7984 `normalize` to the newly exported `normalizeInlines` or
7987 * `Text.Pandoc.Options`:
7989 + Added `writerMediaBag` to `WriterOptions`.
7990 + Removed deprecated and no longer used `readerStrict` in
7991 `ReaderOptions`. This is handled by `readerExtensions` now.
7992 + Added `Ext_compact_definition_lists`.
7993 + Added `Ext_epub_html_exts`.
7994 + Added `Ext_native_divs` and `Ext_native_spans`.
7995 This allows users to turn off the default pandoc behavior of
7996 parsing contents of div and span tags in markdown and HTML
7997 as native pandoc Div blocks and Span inlines.
7999 * `Text.Pandoc.Parsing`:
8001 + Generalized `readWith` to `readWithM` (Matthew Pickering).
8002 + Export `runParserT` and `Stream` (Matthew Pickering).
8003 + Added `HasQuoteContext` type class (Matthew Pickering).
8004 + Generalized types of `mathInline`, `smartPunctuation`, `quoted`,
8005 `singleQuoted`, `doubleQuoted`, `failIfInQuoteContext`,
8006 `applyMacros` (Matthew Pickering).
8007 + Added custom `token` (Matthew Pickering).
8008 + Added `stateInHtmlBlock` to `ParserState`. This is used to keep
8009 track of the ending tag we're waiting for when we're parsing inside
8011 + Added `stateMarkdownAttribute` to `ParserState`. This is used
8012 to keep track of whether the markdown attribute has been set in
8014 + Generalized type of `registerHeader`, using new type classes
8015 `HasReaderOptions`, `HasIdentifierList`, `HasHeaderMap` (Matthew
8016 Pickering). These allow certain common functions to be reused
8017 even in parsers that use custom state (instead of `ParserState`),
8018 such as the MediaWiki reader.
8019 + Moved `inlineMath`, `displayMath` from Markdown reader to Parsing,
8020 and generalized their types (Matthew Pickering).
8022 * `Text.Pandoc.Pretty`:
8025 + Added `blanklines`, which guarantees a certain number of blank lines
8032 + Fixed parsing of indented code in list items. Indented code
8033 at the beginning of a list item must be indented eight spaces
8034 from the margin (or edge of the container), or four spaces
8035 from the list marker, whichever is greater.
8036 + Fixed small bug in HTML parsing with `markdown_attribute`, which
8037 caused incorrect tag nesting for input like
8038 `<aside markdown="1">*hi*</aside>`.
8039 + Fixed regression with intraword underscores (#1121).
8040 + Improved parsing of inline links containing quote characters (#1534).
8041 + Slight rewrite of `enclosure`/`emphOrStrong` code.
8042 + Revamped raw HTML block parsing in markdown (#1330).
8043 We no longer include trailing spaces and newlines in the
8044 raw blocks. We look for closing tags for elements (but without
8045 backtracking). Each block-level tag is its own `RawBlock`;
8046 we no longer try to consolidate them (though `--normalize` will do so).
8047 + Combine consecutive latex environments. This helps when you have
8048 two minipages which can't have blank lines between them (#690, #1196).
8049 + Support smallcaps through span.
8050 `<span style="font-variant:small-caps;">foo</span>` will be
8051 parsed as a `SmallCaps` inline, and will work in all output
8052 formats that support small caps (#1360).
8053 + Prevent spurious line breaks after list items (#1137). When the
8054 `hard_line_breaks` option was specified, pandoc would formerly
8055 produce a spurious line break after a tight list item.
8056 + Fixed table parsing bug (#1333).
8057 + Handle `c++` and `objective-c` as language identifiers in
8058 github-style fenced blocks (#1318).
8059 + Inline math must have nonspace before final `$` (#1313).
8063 + Handle comments at the end of tables. This resolves the issue
8064 illustrated in <http://stackoverflow.com/questions/24009489>.
8065 + Correctly handle table rows with too few cells. LaTeX seems to
8066 treat them as if they have empty cells at the end (#241).
8067 + Handle leading/trailing spaces in `\emph` better.
8068 `\emph{ hi }` gets parsed as `[Space, Emph [Str "hi"], Space]`
8069 so that we don't get things like `* hi *` in markdown output.
8070 Also applies to `\textbf` and some other constructions (#1146).
8071 + Don't assume preamble doesn't contain environments (#1338).
8072 + Allow (and discard) optional argument for `\caption` (James Aspnes).
8076 + Fixed major parsing problem with HTML tables. Table cells were
8077 being combined into one cell (#1341).
8078 + Fixed performance issue with malformed HTML tables.
8079 We let a `</table>` tag close an open `<tr>` or `<td>` (#1167).
8080 + Allow space between `<col>` and `</col>`.
8081 + Added `audio` and `source` in `eitherBlockOrInline`.
8082 + Moved `video`, `svg`, `progress`, `script`, `noscript`, `svg` from
8083 `blockTags` to `eitherBlockOrInline`.
8084 + `map` and `object` were mistakenly in both lists; they have been removed
8086 + Ignore `DOCTYPE` and `xml` declarations.
8090 + Don't parse backslash escapes inside `<source>` (#1445).
8091 + Tightened up template parsing.
8092 The opening `{{` must be followed by an alphanumeric or `:`.
8093 This prevents the exponential slowdown in #1033.
8094 + Support "Bild" for images.
8098 + Better handle elements inside code environments. Pandoc's document
8099 model does not allow structure inside code blocks, but at least this way
8100 we preserve the text (#1449).
8101 + Support `<?asciidoc-br?>` (#1236).
8105 + Fixed list parsing. Lists can now start without an intervening
8107 + HTML block-level tags that do not start a line are parsed as
8108 inline HTML and do not interrupt paragraphs (as in RedCloth).
8112 + Make tildes create inline code (#1345). Also relabeled `code` and
8113 `verbatim` parsers to accord with the org-mode manual.
8114 + Respect `:exports` header argument in code blocks (Craig Bosma).
8115 + Fixed tight lists with sublists (#1437).
8119 + Avoid excess whitespace in `nav.xhtml`. This should improve
8120 TOC view in iBooks (#1392).
8121 + Fixed regression on cover image.
8122 In 1.12.4 and 1.12.4.2, the cover image would not appear properly,
8123 because the metadata id was not correct. Now we derive the id from the
8124 actual cover image filename, which we preserve rather than using
8126 + Keep newlines between block elements. This allows
8127 easier diff-ability (#1424).
8128 + Use `stringify` instead of custom `plainify`.
8129 + Use `renderTags'` for all tag rendering. This properly handles tags
8130 that should be self-closing. Previously `<hr/>` would appear in EPUB
8131 output as `<hr></hr>` (#1420).
8132 + Better handle HTML media tags.
8133 + Handle multiple dates with OPF `event` attributes. Note: in EPUB3 we
8134 can have only one dc:date, so only the first one is used.
8138 + Correctly handle figures in notes. Notes can't contain figures in
8139 LaTeX, so we fake it to avoid an error (#1053).
8140 + Fixed strikeout + highlighted code (#1294).
8141 Previously strikeout highlighted code caused an error.
8145 + Improved detection of autolinks with URLs containing escapes.
8149 + Improved image embedding: `fetchItem'` is now used to get the
8150 images, and calculated image sizes are indicated in the RTF.
8151 + Avoid extra paragraph tags in metadata (#1421).
8155 + Deactivate "incremental" inside slide speaker notes (#1394).
8156 + Don't include empty items in the table of contents for
8157 slide shows. (These would result from creating a slide
8158 using a horizontal rule.)
8162 + Minor renaming of `st` prefixed names.
8166 + Double up emphasis and strong emphasis markers in intraword
8167 contexts, as required by asciidoc (#1441).
8171 + Avoid wrapping that might start a list, blockquote, or header (#1013).
8172 + Use Span instead of (hackish) `SmallCaps` in `plainify`.
8173 + Don't use braced attributes for fenced code (#1416).
8174 If `Ext_fenced_code_attributes` is not set, the first class
8175 attribute will be printed after the opening fence as a bare word.
8176 + Separate adjacent lists of the same kind with an HTML comment (#1458).
8180 + Fixed treatment of data uris for images (#1062).
8184 + Use Compact style for empty table cells (#1353).
8185 Otherwise we get overly tall lines when there are empty
8186 table cells and the other cells are compact.
8187 + Create overrides per-image for `media/` in reference docx.
8188 This should be somewhat more robust and cover more types of images.
8189 + Improved `entryFromArchive` to avoid an unneeded parse.
8190 + Section numbering carries over from reference.docx (#1305).
8191 + Simplified `abstractNumId` numbering. Instead of sequential numbering,
8192 we assign numbers based on the list marker styles.
8194 * `Text.Pandoc.Options`:
8196 + Removed `Ext_fenced_code_attributes` from `markdown_github`
8199 * `Text.Pandoc.ImageSize`:
8201 + Use default instead of failing if image size not found
8202 in exif header (#1358).
8203 + ignore unknown exif header tag rather than crashing.
8204 Some images seem to have tag type of 256, which was causing
8207 * `Text.Pandoc.Shared`:
8209 + `fetchItem`: unescape URI encoding before reading local file (#1427).
8210 + `fetchItem`: strip a fragment like `?#iefix` from the extension before
8211 doing mime lookup, to improve mime type guessing.
8212 + Improved logic of `fetchItem`: absolute URIs are fetched from the net;
8213 other things are treated as relative URIs if `sourceURL` is `Just _`,
8214 otherwise as file paths on the local file system.
8215 + `fetchItem` now properly handles links without a protocol (#1477).
8216 + `fetchItem` now escapes characters not allowed in URIs before trying
8218 + Fixed runtime error with `compactify'DL` on certain lists (#1452).
8220 * `pandoc.hs`: Don't strip path off of `writerSourceURL`: the path is
8221 needed to resolve relative URLs when we fetch resources (#750).
8223 * `Text.Pandoc.Parsing`
8225 + Simplified `dash` and `ellipsis` (#1419).
8226 + Removed `(>>~)` in favor of the equivalent `(<*)` (Matthew Pickering).
8227 + Generalized functions to use `ParsecT` (Matthew Pickering).
8228 + Added `isbn` and `pmid` to list of recognized schemes (Matthew
8233 * Added haddock template.
8234 * EPUB3: Added `type` attribute to `link` tags. They are supposed to
8235 be "advisory" in HTML5, but kindlegen seems to require them.
8236 * EPUB3: Put title page in section with `epub:type="titlepage"`.
8237 * LaTeX: Made `\subtitle` work properly (#1327).
8238 * LaTeX/Beamer: remove conditional around date (#1321).
8239 * LaTeX: Added `lot` and `lof` variables, which can be set to
8240 get `\listoftables` and `\listoffigures` (#1407). Note that
8241 these variables can be set at the command line with `-Vlot -Vlof`
8242 or in YAML metadata.
8244 [under the hood improvements]
8246 * Rewrote normalize for efficiency (#1385).
8248 * Rewrote Haddock reader to use `haddock-library` (#1346).
8250 + This brings pandoc's rendering of haddock markup in line
8251 with the new haddock.
8252 + Fixed line breaks in `@` code blocks.
8253 + alex and happy are no longer build-depends.
8255 * Added `Text.Pandoc.Compat.Directory` to allow building against
8256 different versions of the `directory` library.
8258 + Added `Text.Pandoc.Compat.Except` to allow building against
8259 different versions of `mtl`.
8261 * Code cleanup in some writers, using Reader monad to avoid
8262 passing options parameter around (Matej Kollar).
8264 * Improved readability in `pandoc.hs`.
8266 * Miscellaneous code cleanups (Artyom Kazak).
8268 * Avoid `import Prelude hiding (catch)` (#1309, thanks to Michael
8271 * Changed `http-conduit` flag to `https`. Depend on `http-client`
8272 and `http-client-tls` instead of `http-conduit`. (Note: pandoc still
8273 depends on `conduit` via `yaml`.)
8275 * Require `highlighting-kate >= 0.5.8.5` (#1271, #1317, Debian #753299).
8276 This change to highlighting-kate means that PHP fragments no longer need
8277 to start with `<?php`. It also fixes a serious bug causing failures with
8280 * Require latest `texmath`. This fixes `\tilde{E}` and allows
8281 `\left` to be used with `]`, `)` etc. (#1319), among many other
8284 * Require latest `zip-archive`. This has fixes for unicode path names.
8286 * Added tests for plain writer.
8288 * `Text.Pandoc.Templates`:
8290 + Fail informatively on template syntax errors.
8291 With the move from parsec to attoparsec, we lost good error
8292 reporting. In fact, since we weren't testing for end of input,
8293 malformed templates would fail silently. Here we revert back to
8294 Parsec for better error messages.
8295 + Use `ordNub` (#1022).
8299 + Made benchmarks compile again (Artyom Kazak).
8300 + Fixed so that the failure of one benchmark does not prevent others
8301 from running (Artyom Kazak).
8302 + Use `nfIO` instead of the `getLength` trick to force full evaluation.
8303 + Changed benchmark to use only the test suite, so that benchmarks
8306 * Windows build script:
8308 + Add `-windows` to file name.
8309 + Use one install command for pandoc, pandoc-citeproc.
8310 + Force install of pandoc-citeproc.
8312 * `make_osx_package`: Call zip file `pandoc-VERSION-osx.zip`.
8313 The zip should not be named `SOMETHING.pkg.zip`, or OSX finder
8314 will extract it into a folder named `SOMETHING.pkg`, which it
8315 will interpret as a defective package (#1308).
8319 + Made headers for all extensions so they have IDs and can be
8320 linked to (Beni Cherniavsky-Paskin).
8321 + Fixed typos (Phillip Alday).
8322 + Fixed documentation of attributes (#1315).
8323 + Clarified documentation on small caps (#1360).
8324 + Better documentation for `fenced_code_attributes` extension
8326 + Documented fact that you can put YAML metadata in a separate file
8332 * Require highlighting-kate >= 0.5.8. Fixes a performance regression.
8334 * Shared: `addMetaValue` now behaves slightly differently:
8335 if both the new and old values are lists, it concatenates their
8336 contents to form a new list.
8340 + Set `bibliography` in metadata from `\bibliography` or
8341 `\addbibresource` command.
8342 + Don't error on `%foo` with no trailing newline.
8346 + Support code block headers (`#+BEGIN_SRC ...`) (Albert Krewinkel).
8347 + Fix parsing of blank lines within blocks (Albert Krewinkel).
8348 + Support pandoc citation extension (Albert Krewinkel). This can
8349 be turned off by specifying `org-citations` as the input format.
8353 + `citeKey` moved to `Text.Pandoc.Parsing` so it can be used by
8354 other readers (Albert Krewinkel).
8356 * `Text.Pandoc.Parsing`:
8358 + Added `citeKey` (see above).
8359 + Added `HasLastStrPosition` type class and `updateLastStrPos`
8360 and `notAfterString` functions.
8362 * Updated copyright notices (Albert Krewinkel).
8364 * Added default.icml to data files so it installs with the package.
8368 + The binary is now built with options to ensure that it can be
8369 used with OSX 10.6+.
8370 + Moved OSX package materials to osx directory.
8371 + Added OSX package uninstall script, included in the zip container
8372 (thanks to Daniel T. Staal).
8376 * Made it possible to run filters that aren't executable (#1096).
8377 Pandoc first tries to find the executable (searching the path
8378 if path isn't given). If it fails, but the file exists and has
8379 a `.py`, `.pl`, `.rb`, `.hs`, or `.php` extension, pandoc runs the filter
8380 using the appropriate interpreter. This should make it easier to
8381 use filters on Windows, and make it more convenient for everyone.
8383 * Added Emacs org-mode reader (Albert Krewinkel).
8385 * Added InDesign ICML Writer (Mauro Bieg).
8389 + Accept image links in more languages (Jaime Marquínez Ferrándiz).
8390 + Fixed bug in certain nested lists (#1213). If a level 2 list was
8391 followed by a level 1 list, the first item of the level 1 list
8393 + Handle table rows containing just an HTML comment (#1230).
8397 + Give better location information on errors, pointing to line
8398 numbers within included files (#1274).
8399 + LaTeX reader: Better handling of `table` environment (#1204).
8400 Positioning options no longer rendered verbatim.
8401 + Better handling of figure and table with caption (#1204).
8402 + Handle `@{}` and `p{length}` in tabular. The length is not actually
8403 recorded, but at least we get a table (#1180).
8404 + Properly handle `\nocite`. It now adds a `nocite` metadata
8405 field. Citations there will appear in the bibliography but not
8406 in the text (unless you explicitly put a `$nocite$` variable
8411 + Ensure that whole numbers in YAML metadata are rendered without
8412 decimal points. (This became necessary with changes to aeson
8413 and yaml libraries. aeson >= 0.7 and yaml >= 0.8.8.2 are now required.)
8414 + Fixed regression on line breaks in strict mode (#1203).
8415 + Small efficiency improvements.
8416 + Improved parsing of nested `div`s. Formerly a closing `div` tag
8417 would be missed if it came right after other block-level tags.
8418 + Avoid backtracking when closing `</div>` not found.
8419 + Fixed bug in reference link parsing in `markdown_mmd`.
8420 + Fixed a bug in list parsing (#1154). When reading a raw list
8421 item, we now strip off up to 4 spaces.
8422 + Fixed parsing of empty reference link definitions (#1186).
8423 + Made one-column pipe tables work (#1218).
8427 + Better support for attributes. Instead of being ignored, attributes
8428 are now parsed and included in Span inlines. The output will be a bit
8429 different from stock textile: e.g. for `*(foo)hi*`, we'll get
8430 `<em><span class="foo">hi</span></em>` instead of
8431 `<em class="foo">hi</em>`. But at least the data is not lost.
8432 + Improved treatment of HTML spans (%) (#1115).
8433 + Improved link parsing. In particular we now pick up on attributes.
8434 Since pandoc links can't have attributes, we enclose the whole link in
8435 a span if there are attributes (#1008).
8436 + Implemented correct parsing rules for inline markup (#1175, Matthew
8438 + Use Builder (Matthew Pickering).
8439 + Fixed list parsing bug (#1500).
8440 + Don't allow inline formatting to extend over newlines.
8441 This matches the behavior of RedCarpet, avoids some ugly bugs,
8442 and improves performance.
8446 + Better treatment of `formalpara`. We now emit the title (if present)
8447 as a separate paragraph with boldface text (#1215).
8448 + Set metadata `author` not `authors`.
8449 + Added recognition of `authorgroup` and `releaseinfo` elements (#1214,
8451 + Converted current meta information parsing in DocBook to a more
8452 extensible version which is aware of the more recent meta
8453 representation (Matthew Pickering).
8457 + Require tagsoup 0.13.1, to fix a bug with parsing of script tags
8459 + Treat processing instructions & declarations as block. Previously
8460 these were treated as inline, and included in paragraph tags in HTML
8461 or DocBook output, which is generally not what is wanted (#1233).
8462 + Updated `closes` with rules from HTML5 spec.
8463 + Use Builder (Matthew Pickering, #1162).
8467 + Remove duplicate `http` in PEP links (Albert Krewinkel).
8468 + Make rst figures true figures (#1168, CasperVector)
8469 + Enhanced Pandoc's support for rST roles (Merijn Verstaaten).
8470 rST parser now supports: all built-in rST roles, new role definition,
8471 role inheritance, though with some limitations.
8472 + Use `author` rather than `authors` in metadata.
8473 + Better handling of directives. We now correctly handle field
8474 lists that are indented more than three spaces. We treat an
8475 `aafig` directive as a code block with attributes, so it can be
8476 processed in a filter (#1212).
8480 + Mark span contents with label if span has an ID (Albert Krewinkel).
8481 + Made `--toc-depth` work well with books in latex/pdf output (#1210).
8482 + Handle line breaks in simple table cells (#1217).
8483 + Workaround for level 4-5 headers in quotes. These previously produced
8484 invalid LaTeX: `\paragraph` or `\subparagraph` in a `quote` environment.
8485 This adds an `mbox{}` in these contexts to work around the problem.
8486 See <http://tex.stackexchange.com/a/169833/22451> (#1221).
8487 + Use `\/` to avoid en-dash ligature instead of `-{}-` (Vaclav Zeman).
8488 This is to fix LuaLaTeX output. The `-{}-` sequence does not avoid the
8489 ligature with LuaLaTeX but `\/` does.
8490 + Fixed string escaping in `hyperref` and `hyperdef` (#1130).
8492 * ConTeXt writer: Improved autolinks (#1270).
8496 + Improve handling of hard line breaks in Docbook writer
8497 (Neil Mayhew). Use a `<literallayout>` for the entire paragraph, not
8498 just for the newline character.
8499 + Don't let line breaks inside footnotes influence the enclosing
8500 paragraph (Neil Mayhew).
8501 + Distinguish tight and loose lists in DocBook output, using
8502 `spacing="compact"` (Neil Mayhew, #1250).
8504 * Docx writer: When needed files are not present in the user's
8505 `reference.docx`, fall back on the versions in the `reference.docx`
8506 in pandoc's data files. This fixes a bug that occurs when a
8507 `reference.docx` saved by LibreOffice is used. (#1185)
8511 + Include extension in epub ids. This fixes a problem with duplicate
8512 extensions for fonts and images with the same base name but different
8514 + Handle files linked in raw `img` tags (#1170).
8515 + Handle media in `audio` source tags (#1170).
8516 Note that we now use a `media` directory rather than `images`.
8517 + Incorporate files linked in `video` tags (#1170). `src` and `poster`
8518 will both be incorporated into `content.opf` and the epub container.
8522 + Add colgroup around col tags (#877). Also affects EPUB writer.
8523 + Fixed bug with unnumbered section headings. Unnumbered section
8524 headings (with class `unnumbered`) were getting numbers.
8525 + Improved detection of image links. Previously image links with
8526 queries were not recognized, causing `<embed>` to be used instead
8529 * Man writer: Ensure that terms in definition lists aren't line wrapped
8534 + Use proper escapes to avoid unwanted lists (#980). Previously we used
8535 0-width spaces, an ugly hack.
8536 + Use longer backtick fences if needed (#1206). If the content contains a
8537 backtick fence and there are attributes, make sure longer fences are
8538 used to delimit the code. Note: This works well in pandoc, but github
8539 markdown is more limited, and will interpret the first string of three
8540 or more backticks as ending the code block.
8542 * RST writer: Avoid stack overflow with certain tables (#1197).
8544 * RTF writer: Fixed table cells containing paragraphs.
8548 + Correctly handle UTF-8 in custom lua scripts (#1189).
8549 + Fix bugs with lua scripts with mixed-case filenames and
8550 paths containing `+` or `-` (#1267). Note that `getWriter`
8551 in `Text.Pandoc` no longer returns a custom writer on input
8554 * AsciiDoc writer: Handle multiblock and empty table cells
8555 (#1245, #1246). Added tests.
8557 * `Text.Pandoc.Options`: Added `readerTrace` to `ReaderOptions`
8559 * `Text.Pandoc.Shared`:
8561 + Added `compactify'DL` (formerly in markdown reader) (Albert Krewinkel).
8562 + Fixed bug in `toRomanNumeral`: numbers ending with '9' would
8563 be rendered as Roman numerals ending with 'IXIV' (#1249). Thanks to
8565 + `openURL`: set proxy with value of http_proxy env variable (#1211).
8566 Note: proxies with non-root paths are not supported, due to
8567 limitations in `http-conduit`.
8569 * `Text.Pandoc.PDF`:
8571 + Ensure that temp directories deleted on Windows (#1192). The PDF is
8572 now read as a strict bytestring, ensuring that process ownership will
8573 be terminated, so the temp directory can be deleted.
8574 + Use `/` as path separators in a few places, even on Windows.
8575 This seems to be necessary for texlive (#1151, thanks to Tim Lin).
8576 + Use `;` for `TEXINPUTS` separator on Windows (#1151).
8577 + Changes to error reporting, to handle non-UTF8 error output.
8579 * `Text.Pandoc.Templates`:
8581 + Removed unneeded datatype context (Merijn Verstraaten).
8583 + YAML objects resolve to "true" in conditionals (#1133).
8584 Note: If `address` is a YAML object and you just have `$address$`
8585 in your template, the word `true` will appear, which may be
8586 unexpected. (Previously nothing would appear.)
8588 * `Text.Pandoc.SelfContained`:
8590 + `mkSelfContained` now takes just two arguments, `WriterOptions` and
8592 * It no longer looks in data files. This only made sense when we
8593 had copies of slidy and S5 code there.
8594 * `fetchItem'` is used instead of the nearly duplicate `getItem`.
8595 + Handle `poster` attribute in `video` tags (#1188).
8597 * `Text.Pandoc.Parsing`:
8599 + Made `F` an instance of Applicative (#1138).
8600 + Added `stateCaption`.
8601 + Added `HasMacros`, simplified other typeclasses.
8602 Removed `updateHeaderMap`, `setHeaderMap`, `getHeaderMap`,
8603 `updateIdentifierList`, `setIdentifierList`, `getIdentifierList`.
8604 + Changed the smart punctuation parser to return `Inlines`
8605 rather than `Inline` (Matthew Pickering).
8606 + Changed `HasReaderOptions`, `HasHeaderMap`, `HasIdentifierList`
8607 from typeclasses of monads to typeclasses of states. This simplifies
8608 the instance definitions and provides more flexibility. Generalized
8609 type of `getOption` and added a default definition. Removed
8610 `askReaderOption`. Added `extractReaderOption`. Added
8611 `extractHeaderMap` and `updateHeaderMap` in `HasHeaderMap`.
8612 Gave default definitions for `getHeaderMap`, `putHeaderMap`,
8613 `modifyHeaderMap`. Added `extractIdentifierList` and
8614 `updateIdentifierList` in `HasIdentifierList`. Gave defaults
8615 for `getIdentifierList`, `putIdentifierList`, and
8616 `modifyIdentifierList`. The ultimate goal here is to allow different
8617 parsers to use their own, tailored parser states (instead of
8618 `ParserState`) while still using shared functions.
8622 + LaTeX template: Use `fontenc` package only with `pdflatex` (#1164).
8623 + LaTeX template: Add `linestretch` and `fontfamily` variables.
8624 + LaTeX template: Conditionalize author and date commands.
8625 + Beamer template: Consistent styles for figure and table captions
8627 + LaTeX and beamer template: Adjust widths correctly for oversized
8628 images. Use `\setkeys{Gin}{}` to set appropriate defaults for
8629 `\includegraphics` (Yihui Xie, Garrick Aden-Buie). Load
8630 `upquote` only after `fontenc` (Yihui Xie).
8631 + Beamer template: Added caption package (#1200).
8632 + Beamer template: changes for better unicode handling (KarolS).
8633 + DocBook template: use `authorgroup` if there are authors.
8634 + revealjs template: Move `include-after` to end (certainlyakey).
8635 + revealjs template: Fixed PDF print function (#1220, kevinkenan).
8637 * Bumped version bounds of dependencies.
8639 * Added a `--trace` command line option, for debugging backtracking
8640 bugs. So far this only works with the markdown reader.
8642 * MathMLinHTML: Fixed deprecation warning (#362, gwern, Albert Krewinkel).
8644 * Updated travis script to test with multiple GHC versions.
8646 * Force failure of a Travis build if GHC produces warnings (Albert
8649 * Add `.editorconfig` (Albert Krewinkel).
8650 See <http://editorconfig.org/> for details.
8652 * Give more useful error message if '-t pdf' is specified (#1155).
8654 * Added `Cite`, `SmallCaps` to `Arbitrary` instance (#1269).
8656 * Allow `html4` as a synonym of `html` as a reader (it already works
8661 + Added an explanation of how to use YAML metadata to
8662 force items to appear in the bibliography without citations in
8663 the text (like LaTeX `\nocite`).
8664 + Added note to `--bibtex/--natbib`: not for use in making PDF
8665 (#1194, thanks to nahoj).
8666 + Added explanatory notes about `--natbib` and `--biblatex`.
8667 + Added specification of legal syntax for citation keys.
8668 + Fixed variable defaults documentation (Albert Krewinkel).
8670 * Removed copyright statements for files that have been removed
8673 * Moved some doc files from `data-files` to `extra-source-files` (#1123).
8674 They aren't needed at runtime. We keep README and COPYRIGHT in data
8675 to ensure that they'll be available on all systems on which pandoc
8678 * Use cabal sandboxes in Windows build script.
8682 * To changes to source; recompiled tarball with latest alex and
8683 happy, so they will work with GHC 7.8.
8687 * Bumped version bounds for blaze-html, blaze-markup.
8689 * ImageSize: Avoid use of lookAhead, which is not in binary >= 0.6
8692 * Fixed mediawiki ordered list parsing (#1122).
8694 * HTML reader: Fixed bug reading inline math with `$$` (#225).
8696 * Added support for LaTeX style literate Haskell code blocks in rST
8697 (Merijn Verstraaten).
8701 * Relaxed version constraint on binary, allowing the use of binary 0.5.
8705 * The `--bibliography` option now sets the `biblio-files` variable.
8706 So, if you're using `--natbib` or `--biblatex`, you can just use
8707 `--bibliography=foo.bib` instead of `-V bibliofiles=foo`.
8709 * Don't run pandoc-citeproc filter if `--bibliography` is
8710 used together with `--natbib` or `--biblatex` (Florian Eitel).
8714 + Updated beamer template to include booktabs.
8715 + Added `abstract` variable to LaTeX template.
8716 + Put `header-includes` after `title` in LaTeX template (#908).
8717 + Allow use of `\includegraphics[size]` in beamer.
8718 This just required porting a macro definition from the default
8719 LaTeX template to the default beamer template.
8721 * `reference.docx`: Include `FootnoteText` style.
8722 Otherwise Word ignores the style, even when specified in the `pPr`.
8725 * `reference.odt`: Tidied `styles.xml`.
8727 * Relaxed version bounds for dependencies.
8729 * Added `withSocketsDo` around http conduit code in `openURL`,
8730 so it works on Windows (#1080).
8732 * Added `Cite` function to `sample.lua`.
8736 + Fixed regression in title blocks (#1089).
8737 If author field was empty, date was being ignored.
8738 + Allow backslash-newline hard line breaks in grid and
8739 multiline table cells.
8740 + Citation keys may now start with underscores, and may contain
8741 underscores adjacent to internal punctuation.
8745 + Add support for `Verb` macro (jrnold) (#1090).
8746 + Support babel-style quoting: `` "`..."' ``.
8748 * Properly handle script blocks in strict mode. (That is,
8749 `markdown-markdown_in_html_blocks`.) Previously a spurious
8750 `<p>` tag was being added (#1093).
8752 * Docbook reader: Avoid failure if `tbody` contains no `tr` or `row`
8757 + Factored out function for table cell creation.
8758 + Better treatment of footnotes in tables.
8759 Notes now appear in the regular sequence, rather than in the
8760 table cell. (This was a regression in 1.10.)
8762 * HTML reader: Parse name/content pairs from meta tags as metadata.
8765 * Moved `fixDisplayMath` from Docx writer to `Writer.Shared`.
8767 * OpenDocument writer: Fixed `RawInline`, `RawBlock` so they don't escape.
8769 * ODT writer: Use mathml for proper rendering of formulas.
8770 Note: LibreOffice's support for this seems a bit buggy. But
8771 it should be better than what we had before.
8773 * RST writer: Ensure no blank line after def in definition list (#992).
8775 * Markdown writer: Don't use tilde code blocks with braced attributes in
8776 `markdown_github` output. A consequence of this change is that the
8777 backtick form will be preferred in general if both are enabled. That
8778 is good, as it is much more widespread than the tilde form. (#1084)
8780 * Docx writer: Fixed problem with some modified reference docx files.
8781 Include `word/_rels/settings.xml.rels` if it exists, as well as other
8782 `rels` files besides the ones pandoc generates explicitly.
8786 + With `--toc`, headers no longer link to themselves (#1081).
8787 + Omit footnotes from TOC entries. Otherwise we get doubled
8788 footnotes when headers have notes!
8792 + Avoid duplicate notes when headings contain notes.
8793 This arose because the headings are copied into the metadata
8794 "title" field, and the note gets rendered twice. We strip the
8795 note now before putting the heading in "title".
8796 + Strip out footnotes from toc entries.
8797 + Fixed bug with `--epub-stylesheet`. Now the contents of
8798 `writerEpubStylesheet` (set by `--epub-stylesheet`)
8799 should again work, and take precedence over a stylesheet specified
8802 * `Text.Pandoc.MIME`: Added `wmf`, `emf`.
8804 * `Text.Pandoc.Shared`: `fetchItem` now handles image URLs beginning
8807 * `Text.Pandoc.ImageSize`: Parse EXIF format JPEGs. Previously
8808 we could only get size information for JFIF format, which led
8809 to squished images in Word documents. Closes #976.
8811 * Removed old `MarkdownTest_1.0.3` directory (#1104).
8815 * Markdown reader: Fixed regression in list parser, involving
8816 continuation lines containing raw HTML (or even verbatim raw HTML).
8820 * Metadata may now be included in YAML blocks in a markdown document.
8828 text: An investigation of metadata
8836 text: doi:10.234234.234/33
8838 rights: (c) 2007 John Smith, CC BY-NC
8839 cover-image: img/mypic.jpg
8842 Metadata may still be provided using `--epub-metadata`; it will
8843 be merged with the metadata in YAML blocks.
8847 + `meta` tags are now used instead of `opf` attributes for EPUB3.
8848 + Insert "svg" property as needed in opf (EPUB 3).
8849 + Simplify `imageTypeOf` using `getMimeType`.
8850 + Add properties attribute to `cover-image` item for EPUB 3.
8851 + Don't include node for `cover.xhtml` if no cover!
8852 + Ensure that same identifier is used throughout (#1044).
8853 If an identifier is given in metadata, we use that; otherwise
8854 we generate a random uuid.
8855 + Add cover reference to guide element (EPUB 2) (Shaun Attfield).
8856 Fixes an issue with Calibre putting the cover at the end of the book
8857 if the spine has `linear="no"`. Apparently this is best practice
8858 for other converters as well:
8859 <http://www.idpf.org/epub/20/spec/OPF_2.0.1_draft.htm#Section2.6>.
8860 + Allow `stylesheet` in metadata. The value is a path to the stylesheet.
8861 + Allow partial dates: `YYYY`, `YYYY-MM`.
8863 * Markdown writer: Fix rendering of tight sublists (#1050).
8864 Previously a spurious blank line was included after a tight sublist.
8866 * ODT writer: Add `draw:name` attribute to `draw:frame` elements (#1069).
8867 This is reported to be necessary to avoid an error from recent
8868 versions of Libre Office when files contain more than one image
8869 Thanks to wmanley for reporting and diagnosing the problem.
8871 * ConTeXt writer: Don't hardcode figure/table placement and numbering.
8872 Instead, let this be set in the template, using `\setupfloat`.
8873 Thanks to on4aa and Aditya Mahajan for the suggestion (#1067).
8875 * Implemented CSL flipflopping spans in DOCX, LaTeX, and HTML writers.
8877 * Fixed bug with markdown intraword emphasis. Closes #1066.
8879 * Docbook writer: Hierarchicalize block content in metadata.
8880 Previously headers just disappeared from block-level metadata
8881 when it was used in templates. Now we apply the 'hierarchicalize'
8882 transformation. Note that a block headed by a level-2 header will
8883 turn into a `<sect1>` element.
8885 * OpenDocument writer: Skip raw HTML (#1035).
8886 Previously it was erroneously included as verbatim text.
8888 * HTML/EPUB writer, footnotes: Put `<sup>` tag inside `<a>` tags.
8889 This allows better control of formatting, since the `<a>`
8890 tags have a distinguishing class (#1049).
8894 + Use mime type info returned by fetchItem.
8895 + Fixed core metadata (#1046).
8896 Don't create empty date nodes if no date given.
8897 Don't create multiple `dc:creator` nodes; instead separate by
8899 + Fix URL for core-properties in `_rels/.rels` (#1046).
8901 * Plain writer: don't print `<span>` tags.
8905 + Fix definition lists with internal links in terms (#1032).
8906 This fix puts braces around a term that contains an internal
8907 link, to avoid problems with square brackets.
8908 + Properly escape pdftitle, pdfauthor (#1059).
8909 + Use booktabs package for tables (thanks to Jose Luis Duran).
8911 * Updated beamer template. Now references should work properly
8912 (in a slide) when `--biblatex` or `--natbib` is used.
8916 + Parse contents of curly quotes or matched `"` as quotes.
8917 + Support `\textnormal` as span with class `nodecor`.
8918 This is needed for pandoc-citeproc.
8919 + Improved citation parsing. This fixes a run-time error that occurred
8920 with `\citet{}` (empty list of keys). It also ensures that empty keys
8923 * MediaWiki reader: Add automatic header identifiers.
8927 + Use pandoc `Div` and `Span` for raw `<div>`, `<span>` when
8929 + Recognize `svg` tags as block level content (thanks to MinRK).
8930 + Parse LaTeX math if appropriate options are set.
8934 + Yaml block must start immediately after `---`. If there's a blank
8935 line after `---`, we interpreted it as a horizontal rule.
8936 + Correctly handle empty bullet list items.
8937 + Stop parsing "list lines" when we hit a block tag.
8938 This fixes exponential slowdown in certain input, e.g.
8939 a series of lists followed by `</div>`.
8941 * Slides: Preserve `<div class="references">` in references slide.
8943 * `Text.Pandoc.Writer.Shared`:
8945 + Fixed bug in `tagWithAttrs`. A space was omitted before key-value
8946 attributes, leading to invalid HTML.
8947 + `normalizeDate`: Allow dates with year only (thanks to Shaun Attfield).
8948 + Fixed bug in `openURL` with `data:` URIs. Previously the base-64
8949 encoded bytestring was returned. We now decode it so it's a proper
8952 * DocBook reader: Handle numerical attributes starting with decimal.
8953 Also use `safeRead` instead of `read`.
8955 * `Text.Pandoc.Readers.TexMath`: Export `readTeXMath'`, which attends
8956 to display/inline. Deprecate `readTeXMath`, and use `readTeXMath'`
8957 in all the writers. Require `texmath >= 0.6.5.2`.
8959 * `Text.Pandoc.MIME`:
8961 + Add entry for `jfif`.
8962 + In looking up extensions, drop the encoding info.
8963 E.g. for 'image/jpg;base64' we should lookup 'image/jpg'.
8965 * Templates: Changed how array variables are resolved. Previously if
8966 `foo` is an array (which might be because multiple values were set on
8967 the command line), `$foo$` would resolve to the concatenation of the
8968 elements of foo. This is rarely useful behavior. It has been changed
8969 so that the first value is rendered. Of course, you can still iterate
8970 over the values using `$for(foo)$`. This has the result that you can
8971 override earlier settings using `-V` by putting new values later on the
8972 command line, which is useful for many purposes.
8974 * `Text.Pandoc`: Don't default to `pandocExtensions` for all writers.
8976 * Allow "epub2" as synonym for "epub", "html4" for "html".
8978 * Don't look for slidy files in data files with `--self-contained`.
8980 * Allow `https:` command line arguments to be downloaded.
8982 * Fixed `make_osx_package.sh` so data files embedded in `pandoc-citeproc`.
8986 * `Text.Pandoc.Definition`: Changed default JSON serialization format.
8987 Instead of `{"Str": "foo"}`, for example, we now have `{"t": "Str",
8988 "c": "foo"}`. This new format is easier to work with outside of Haskell.
8989 Incidentally, "t" stands for "tag", "c" for "contents".
8991 * MediaWiki reader: Trim contents of `<math>` tags, to avoid problems
8992 when converting to markdown (#1027).
8996 + Ensure that preamble doesn't contribute to the text of
8998 + Fixed character escaping in \url{}. Previously `\~` wasn't handled
8999 properly, among others.
9000 + Parse `{groups}` as `Span`. This is needed for accurate conversion of
9001 bibtex titles, since we need to know what was protected from
9002 titlecase conversions.
9006 + Specially escape non-ascii characters in labels.
9007 Otherwise we can get compile errors and other bugs when
9008 compiled with pdflatex (#1007). Thanks to begemotv2718 for the fix.
9009 + Add link anchors for code blocks with identifiers (#1025).
9011 * Throughout the code, use `isURI` instead of `isAbsoluteURI`.
9012 It allows fragments identifiers.
9016 + A Div element with class "notes" is treated as speaker
9017 notes. Currently beamer goes to `\note{}`, revealjs to
9018 `<aside class="notes">`, and the notes are simply suppressed in
9019 other formats (#925).
9020 + Fixed `. . .` (pause) on HTML slide formats. Closes #1029.
9021 The old version caused a pause to be inserted before the first
9022 material on a slide. This has been fixed.
9023 + Removed data files for s5, slideous, slidy.
9024 Users of s5 and slideous will have to download the needed
9025 files, as has been documented for some time in the README.
9026 By default, slidy code will be sought on the web, as before.
9028 * HTML writer: Insert command to typeset mathjax only in slideous output
9031 * RST writer: Skip spaces after display math. Otherwise we get indentation
9032 problems, and part of the next paragraph may be rendered as part of the
9035 * OpenDocument writer: Fix formatting of strikeout code (#995),
9036 thanks to wilx. don't use `font-face-decls` variable.
9038 * Fixed test suite so it works with cabal sandboxes.
9042 * Removed `stringable` dependency.
9046 * Allow `--metadata` to be repeated for the same key to form a list.
9047 This also has the effect that `--bibliography` can be repeated,
9050 * Handle boolean values in `--metadata`. Note that anything not parseable
9051 as a YAML boolean or string is treated as a literal string.
9052 You can get a string value with "yes", or any of the strings interpretable
9053 as booleans, by quoting it:
9055 -M boolvalue=yes -M stringvalue='"yes"'
9057 * LaTeX writer: Don't print references if `--natbib` or `--biblatex`
9060 * DOCX writer: Add `settings.xml` to the zip container. Fixes a bug
9061 in which docx files could not be read by some versions of Word
9062 and LibreOffice (#990).
9064 * Fixed a regression involving slide shows with bibliographies.
9065 The Div container around references messed up the procedure for carving
9066 a document into slides. So we now remove the surrounding Div in
9069 * More informative error message when a filter is not found in path.
9071 * Depend on pandoc-types 1.12.1. This provide `ToJSONFilter`
9072 instances for `Data a => a -> [a]` and `Data a => a -> IO [a]`.
9074 * Don't use unicode_collation in building OSX package:
9075 it adds something like 50MB of dependencies to the package.
9077 * Declare alex and happy as build-tools (#986).
9083 * Much more flexible metadata, including arbitrary fields and structured
9084 values. Metadata can be specified flexibly in pandoc markdown using
9085 YAML metadata blocks, which may occur anywhere in the document:
9088 title: Here is my title.
9090 This is the abstract.
9096 tags: [cat, dog, animal]
9099 Metadata fields automatically populate template variables.
9101 * Added `opml` (OPML) as input and output format. The `_note` attribute,
9102 used in OmniOutliner and supported by multimarkdown, is supported.
9103 We treat the contents as markdown blocks under a section header.
9105 * Added `haddock` (Haddock markup) as input format (David Lazar).
9107 * Added `revealjs` output format, for reveal.js HTML 5 slide shows.
9108 (Thanks to Jamie F. Olson for the initial patch.)
9109 Nested vertical stacks are used for hierarchical structure.
9110 Results for more than one level of nesting may be odd.
9112 * Custom writers can now be written in lua.
9114 pandoc -t data/sample.lua
9116 will load the script sample.lua and use it as a custom writer.
9117 (For a sample, do `pandoc --print-default-data-file sample.lua`.)
9118 Note that pandoc embeds a lua interpreter, so lua need not be
9119 installed separately.
9121 * New `--filter/-F` option to make it easier to run "filters"
9122 (Pandoc AST transformations that operate on JSON serializations).
9123 Filters are always passed the name of the output format, so their
9124 behavior can be tailored to it. The repository
9125 <https://github.com/jgm/pandocfilters> contains
9126 a python module for writing pandoc filters in python, with
9127 a number of examples.
9129 * Added `--metadata/-M` option.
9130 This is like `--variable/-V`, but actually adds to metadata, not
9133 * Added `--print-default-data-file` option, which allows printing
9134 of any of pandoc's data files. (For example,
9135 `pandoc --print-default-data-file reference.odt` will print
9138 * Added syntax for "pauses" in slide shows:
9146 * New markdown extensions:
9148 + `ignore_line_breaks`: causes intra-paragraph line breaks to be ignored,
9149 rather than being treated as hard line breaks or spaces. This is useful
9150 for some East Asian languages, where spaces aren't used between words,
9151 but text is separated into lines for readability.
9152 + `yaml_metadata_block`: Parse YAML metadata blocks. (Default.)
9153 + `ascii_identifiers`: This will force `auto_identifiers` to use ASCII
9154 only. (Default for `markdown_github`.) (#807)
9155 + `lists_without_preceding_blankline`: Allow lists to start without
9156 preceding blank space. (Default for `markdown_github`.) (#972)
9160 * `--toc-level` no longer implies `--toc`.
9161 Reason: EPUB users who don't want a visible TOC may still want
9162 to set the TOC level for in the book navigation.
9164 * `--help` now prints in and out formats in alphabetical order, and
9165 says something about PDF output (#720).
9167 * `--self-contained` now returns less verbose output (telling you
9168 which URLs it is fetching, but not giving the full header). In
9169 addition, there are better error messages when fetching a URL fails.
9171 * Citation support is no longer baked in to core pandoc. Users who
9172 need citations will need to install and use a separate filter
9173 (`--filter pandoc-citeproc`). This filter will take `bibliography`,
9174 `csl`, and `citation-abbreviations` from the metadata, though it
9175 may still be specified on the command line as before.
9177 * A `Cite` element is now created in parsing markdown whether or not
9178 there is a matching reference.
9180 * The `pandoc-citeproc` script will put the bibliography at the
9181 end of the document, as before. However, it will be put inside a `Div`
9182 element with class "references", allowing users some control
9183 over the styling of references. A final header, if any, will
9184 be included in the `Div`.
9186 * The markdown writer will not print a bibliography if the
9187 `citations` extension is enabled. (If the citations are formatted
9188 as markdown citations, it is redundant to have a bibliography,
9189 since one will be generated automatically.)
9191 * Previously we used to store the directory of the first input file,
9192 even if it was local, and used this as a base directory for finding
9193 images in ODT, EPUB, Docx, and PDF. This has been confusing to many
9194 users. So we now look for images relative to the current
9195 working directory, even if the first file argument is in another
9196 directory. Note that this change may break some existing workflows.
9197 If you have been assuming that relative links will be interpreted
9198 relative to the directory of the first file argument, you'll need
9199 to make that the current directory before running pandoc. (#942)
9201 * Better error reporting in some readers, due to changes in `readWith`:
9202 the line in which the error occurred is printed, with a caret pointing
9205 * All slide formats now support incremental slide view for definition lists.
9207 * Parse `\(..\)` and `\[..\]` as math in MediaWiki reader.
9208 Parse `:<math>...</math>` as display math. These notations are used with
9209 the MathJax MediaWiki extension.
9211 * All writers: template variables are set automatically from metadata
9212 fields. However, variables specified on the command line with
9213 `--variable` will completely shadow metadata fields.
9215 * If `--variable` is used to set many variables with the same name,
9218 * Man writer: The `title`, `section`, `header`, and `footer` can now
9219 all be set individually in metadata. The `description` variable has been
9220 removed. Quotes have been added so that spaces are allowed in the
9221 title. If you have a title that begins
9223 COMMAND(1) footer here | header here
9225 pandoc will still parse it into a title, section, header, and
9226 footer. But you can also specify these elements explicitly (#885).
9230 + Added support for YAML metadata blocks, which can come anywhere
9231 in the document (not just at the beginning). A document can contain
9232 multiple YAML metadata blocks.
9233 + HTML span and div tags are parsed as pandoc Span and Div elements.
9237 + Allow simple tables to be printed as grid tables,
9238 if other table options are disabled. This means you can do
9239 `pandoc -t markdown-pipe_tables-simple_tables-multiline_tables`
9240 and all tables will render as grid tables.
9241 + Support YAML title block (render fields in alphabetical order
9242 to make output predictable).
9246 * `Meta` in `Text.Pandoc.Definition` has been changed to allow
9247 structured metadata. (Note: existing code that pattern-matches
9248 on `Meta` will have to be revised.) Metadata can now contain
9249 indefinitely many fields, with content that can be a string,
9250 a Boolean, a list of `Inline` elements, a list of `Block`
9251 elements, or a map or list of these.
9253 * A new generic block container (`Div`) has been added to `Block`,
9254 and a generic inline container (`Span`) has been added to `Inline`.
9255 These can take attributes. They will render in HTML, Textile,
9256 MediaWiki, Org, RST and and Markdown (with `markdown_in_html`
9257 extension) as HTML `<div>` and `<span>` elements; in other formats
9258 they will simply pass through their contents. But they can be
9259 targeted by scripts.
9261 * `Format` is now a newtype, not an alias for String.
9262 Equality comparisons are case-insensitive.
9264 * Added `Text.Pandoc.Walk`, which exports hand-written tree-walking
9265 functions that are much faster than the SYB functions from
9266 `Text.Pandoc.Generic`. These functions are now used where possible
9267 in pandoc's code. (`Tests.Walk` verifies that `walk` and `query`
9268 match the generic traversals `bottomUp` and `queryWith`.)
9270 * Added `Text.Pandoc.JSON`, which provides `ToJSON` and `FromJSON`
9271 instances for the basic pandoc types. They use GHC generics and
9272 should be faster than the old JSON serialization using
9273 `Data.Aeson.Generic`.
9275 * Added `Text.Pandoc.Process`, exporting `pipeProcess`.
9276 This is a souped-up version of `readProcessWithErrorcode` that
9277 uses lazy bytestrings instead of strings and allows setting
9278 environment variables. (Used in `Text.Pandoc.PDF`.)
9280 * New module `Text.Pandoc.Readers.OPML`.
9282 * New module `Text.Pandoc.Writers.OPML`.
9284 * New module `Text.Pandoc.Readers.Haddock` (David Lazar).
9285 This is based on Haddock's own lexer/parser.
9287 * New module `Text.Pandoc.Writers.Custom`.
9289 * In `Text.Pandoc.Shared`, `openURL` and `fetchItem` now return an
9290 Either, for better error handling.
9292 * Made `stringify` polymorphic in `Text.Pandoc.Shared`.
9294 * Removed `stripTags` from `Text.Pandoc.XML`.
9296 * `Text.Pandoc.Templates`:
9298 + Simplified `Template` type to a newtype.
9300 + Changed type of `renderTemplate`: it now takes a JSON context
9301 and a compiled template.
9302 + Export `compileTemplate`.
9303 + Export `renderTemplate'` that takes a string instead of a compiled
9305 + Export `varListToJSON`.
9307 * `Text.Pandoc.PDF` exports `makePDF` instead of `tex2pdf`.
9308 The signature of `makePDF` has changed and now contains
9309 an additional argument for pdf engine options.
9313 + Made `toJsonFilter` an alias for `toJSONFilter` from `Text.Pandoc.JSON`.
9314 + Removed `ToJsonFilter` typeclass. `ToJSONFilter` from
9315 `Text.Pandoc.JSON` should be used instead. (Compiling against
9316 pandoc-types instead of pandoc will also produce smaller executables.)
9317 * Removed the deprecated `jsonFilter` function.
9318 + Added `readJSON`, `writeJSON` to the API (#817).
9320 * `Text.Pandoc.Options`:
9322 + Added `Ext_lists_without_preceding_blankline`,
9323 `Ext_ascii_identifiers`, `Ext_ignore_line_breaks`,
9324 `Ext_yaml_metadataBlock` to `Extension`.
9325 + Changed `writerSourceDirectory` to `writerSourceURL` and changed the
9326 type to a `Maybe`. `writerSourceURL` is set to 'Just url' when the
9327 first command-line argument is an absolute URL. (So, relative links
9328 will be resolved in relation to the first page.) Otherwise, 'Nothing'.
9329 + All bibliography-related fields have been removed from
9330 `ReaderOptions` and `WriterOptions`: `writerBiblioFiles`,
9331 `readerReferences`, `readerCitationStyle`.
9332 + Removed `writerPdfArgs` from `WriterOptions`. These are now
9333 passed in as a parameter to `makePDF`.
9335 * The `Text.Pandoc.Biblio` module has been removed. Users of the
9336 pandoc library who want citation support will need to use
9337 `Text.CSL.Pandoc` from `pandoc-citeproc`.
9342 * In markdown, don't autolink a bare URI that is followed by `</a>`
9345 * `Text.Pandoc.Shared`
9347 + `openURL` now follows redirects (#701), properly handles `data:`
9348 URIs, and prints diagnostic output to stderr rather than stdout.
9349 + `readDefaultDataFile`: normalize the paths. This fixes bugs in
9350 `--self-contained` on pandoc compiled with `embed_data_files` (#833).
9351 + Fixed `readDefaultDataFile` so it works on Windows.
9352 + Better error messages for `readDefaultDataFile`. Instead of
9353 listing the last path tried, which can confuse people who are
9354 using `--self-contained`, so now we just list the data file name.
9355 + URL-escape pipe characters. Even though these are legal, `Network.URI`
9356 doesn't regard them as legal in URLs. So we escape them first (#535).
9358 * Mathjax in HTML slide shows: include explicit "Typeset" call.
9359 This seems to be needed for some formats (e.g. slideous) and won't
9360 hurt in others (#966).
9364 + On Windows, create temdir in working directory, since the system
9365 temp directory path may contain tildes, which can cause
9366 problems in LaTeX (#777).
9367 + Put temporary output directory in `TEXINPUTS` (see #917).
9368 + `makePDF` tries to download images that are not found locally,
9369 if the first argument is a URL (#917).
9370 + If compiling with `pdflatex` yields an encoding error, offer
9371 the suggestion to use `--latex-engine=xelatex`.
9373 * Produce automatic header identifiers in parsing textile, RST,
9374 and LaTeX, unless `auto_identifiers` extension is disabled (#967).
9376 * `Text.Pandoc.SelfContained`: Strip off fragment, query of relative URL
9377 before treating as a filename. This fixes `--self-contained` when used
9378 with CSS files that include web fonts using the method described here:
9379 <http://paulirish.com/2009/bulletproof-font-face-implementation-syntax/>
9380 (#739). Handle `src` in `embed`, `audio`, `source`, `input` tags.
9382 * `Text.Pandoc.Parsing`: `uri` parser no longer treats punctuation before
9383 percent-encoding, or a `+` character, as final punctuation.
9385 * `Text.Pandoc.ImageSize`: Handle EPS (#903). This change will make
9386 EPS images properly sized on conversion to Word.
9388 * Slidy: Use slidy.js rather than slidy.js.gz.
9389 Reason: some browsers have trouble with the gzipped js file,
9390 at least on the local file system (#795).
9394 + Properly handle blank line at beginning of input (#882).
9395 + Fixed bug in unmatched reference links. The input
9396 `[*infile*] [*outfile*]` was getting improperly parsed:
9397 "infile" was emphasized, but "*outfile*" was literal (#883).
9398 + Allow internal `+` in citation identifiers (#856).
9399 + Allow `.` or `)` after `#` in ATX headers if no `fancy_lists`.
9400 + Do not generate blank title, author, or date metadata elements.
9401 Leave these out entirely if they aren't present.
9402 + Allow backtick code blocks not to be preceded by blank line (#975).
9406 + Correctly handle entities.
9407 + Improved handling of `<pre>` blocks (#927). Remove internal HTML tags
9408 in code blocks, rather than printing them verbatim. Parse attributes
9409 on `<pre>` tag for code blocks.
9411 * HTML reader: Handle non-simple tables (#893). Column widths are read from
9412 `col` tags if present, otherwise divided equally.
9416 + Support alltt environment (#892).
9417 + Support `\textasciitilde`, `\textasciicircum` (#810).
9418 + Treat `\textsl` as emphasized text reader (#850).
9419 + Skip positional options after `\begin{figure}`.
9420 + Support `\v{}` for hacek (#926).
9421 + Don't add spurious ", " to citation suffixes.
9422 This is added when needed in pandoc-citeproc.
9423 + Allow spaces in alignment spec in tables, e.g. `{ l r c }`.
9424 + Improved support for accented characters (thanks to Scott Morrison).
9425 + Parse label after section command and set id (#951).
9429 + Don't insert paragraphs where docutils doesn't.
9430 `rst2html` doesn't add `<p>` tags to list items (even when they are
9431 separated by blank lines) unless there are multiple paragraphs in the
9432 list. This commit changes the RST reader to conform more closely to
9433 what docutils does (#880).
9434 + Improved metadata. Treat initial field list as metadata when
9435 standalone specified. Previously ALL fields "title", "author",
9436 "date" in field lists were treated as metadata, even if not at
9437 the beginning. Use `subtitle` metadata field for subtitle.
9438 + Fixed 'authors' metadata parsing in reST. Semicolons separate
9443 + Allow space before table rows.
9444 + Fixed regression for `<ref>URL</ref>`.
9445 `<` is no longer allowed in URLs, according to the uri parser
9446 in `Text.Pandoc.Parsing`. Added a test case.
9447 + Correctly handle indented preformatted text without preceding
9448 or following blank line.
9449 + Fixed `|` links inside table cells. Improved attribute parsing.
9450 + Skip attributes on table rows. Previously we just crashed if
9451 rows had attributes, now we ignore them.
9452 + Ignore attributes on headers.
9453 + Allow `Image:` for images (#971).
9454 + Parse an image with caption in a paragraph by itself as a figure.
9458 + Don't use ligatures in escaping inline code.
9459 + Fixed footnote numbers in LaTeX/PDF tables. This fixes a bug
9460 wherein notes were numbered incorrectly in tables (#827).
9461 + Always create labels for sections. Previously the labels were only
9462 created when there were links to the section in the document (#871).
9463 + Stop escaping `|` in LaTeX math.
9464 This caused problems with array environments (#891).
9465 + Change `\` to `/` in paths. `/` works even on Windows in LaTeX.
9466 `\` will cause major problems if unescaped.
9467 + Write id for code block to label attribute in LaTeX when listings
9468 is used (thanks to Florian Eitel).
9469 + Scale LaTeX tables so they don't exceed columnwidth.
9470 + Avoid problem with footnotes in unnumbered headers (#940).
9472 * Beamer writer: when creating beamer slides, add `allowframebreaks` option
9473 to the slide if it is one of the header classes. It is recommended
9474 that your bibliography slide have this attribute:
9476 # References {.allowframebreaks}
9478 This causes multiple slides to be created if necessary, depending
9479 on the length of the bibliography.
9481 * ConTeXt writer: Properly handle tables without captions. The old output
9482 only worked in MkII. This should work in MkIV as well (#837).
9484 * MediaWiki writer: Use native mediawiki tables instead of HTML (#720).
9488 + Fixed `--no-highlight` (Alexander Kondratskiy).
9489 + Don't convert to lowercase in email obfuscation (#839).
9490 + Ensure proper escaping in `<title>` and `<meta>` fields.
9494 + Support `--atx-headers` (Max Rydahl Andersen).
9495 + Don't print empty identifier blocks `([[]])` on headers (Max
9500 + Fixing wrong numbered-list indentation in open document format
9501 (Alexander Kondratskiy) (#369).
9502 + `reference.odt`: Added pandoc as "generator" in `meta.xml`.
9503 + Minor changes for ODF 1.2 conformance (#939). We leave the
9504 nonconforming `contextual-spacing` attribute, which is provided by
9505 LibreOffice itself and seems well supported.
9509 + Fixed rendering of display math in lists.
9510 In 1.11 and 1.11.1, display math in lists rendered as a new list
9511 item. Now it always appears centered, just as outside of lists,
9512 and in proper display math style, no matter how far indented the
9513 containing list item is (#784).
9514 + Use `w:br` with `w:type` `textWrapping` for linebreaks.
9515 Previously we used `w:cr` (#873).
9516 + Use Compact style for Plain block elements, to
9517 differentiate between tight and loose lists (#775).
9518 + Ignore most components of `reference.docx`.
9519 We take the `word/styles.xml`, `docProps/app.xml`,
9520 `word/theme/theme1.xml`, and `word/fontTable.xml` from
9521 `reference.docx`, ignoring everything else. This should help
9522 with the corruption problems caused when different versions of
9523 Word resave the reference.docx and reorganize things.
9524 + Made `--no-highlight` work properly.
9528 + Don't add `dc:creator` tags if present in EPUB metadata.
9529 + Add `id="toc-title"` to `h1` in `nav.xhtml` (#799).
9530 + Don't put blank title page in reading sequence.
9531 Set `linear="no"` if no title block. Addresses #797.
9532 + Download webtex images and include as data URLs.
9533 This allows you to use `--webtex` in creating EPUBs.
9534 Math with `--webtex` is automatically made self-contained.
9535 + In `data/epub.css`, removed highlighting styles (which
9536 are no longer needed, since styles are added by the HTML
9537 writer according to `--highlighting-style`). Simplified
9539 + If resource not found, skip it, as in Docx writer (#916).
9543 + Properly handle characters above the 0000-FFFF range.
9544 Uses surrogate pairs. Thanks to Hiromi Ishii for the patch.
9545 + Fixed regression with RTF table of contents.
9546 + Only autolink absolute URIs. This fixes a regression, #830.
9550 + Only autolink absolute URIs. This fixes a regression, #830.
9551 + Don't wrap attributes in fenced code blocks.
9552 + Write full metadata in MMD style title blocks.
9553 + Put multiple authors on separate lines in pandoc titleblock.
9554 Also, don't wrap long author entries, as new lines get treated
9557 * `Text.Pandoc.Templates`:
9559 + Fixed bug retrieving default template for markdown variants.
9560 + Templates can now contain "record lookups" in variables;
9561 for example, `author.institution` will retrieve the `institution`
9562 field of the `author` variable.
9563 + More consistent behavior of `$for$`. When `foo` is not a list,
9564 `$for(foo)$...$endfor$` should behave like $if(foo)$...$endif$.
9565 So if `foo` resolves to "", no output should be produced.
9566 See pandoc-templates#39.
9568 * Citation processing improvements (now part of pandoc-citeproc):
9570 + Fixed `endWithPunct` The new version correctly sees a sentence
9571 ending in '.)' as ending with punctuation. This fixes a bug which
9572 led such sentences to receive an extra period at the end: '.).'.
9573 Thanks to Steve Petersen for reporting.
9574 + Don't interfere with Notes that aren't citation notes.
9575 This fixes a bug in which notes not generated from citations were
9576 being altered (e.g. first letter capitalized) (#898).
9577 + Only capitalize footnote citations when they have a prefix.
9578 + Changes in suffix parsing. A suffix beginning with a digit gets 'p'
9579 inserted before it before passing to citeproc-hs, so that bare numbers
9580 are treated as page numbers by default. A suffix not beginning with
9581 punctuation has a space added at the beginning (rather than a comma and
9582 space, as was done before for not-author-in-text citations).
9583 The result is that `\citep[23]{item1}` in LaTeX will be interpreted
9584 properly, with '23' treated as a locator of type 'page'.
9585 + Many improvements to citation rendering, due to fixes in citeproc-hs
9586 (thanks to Andrea Rossato).
9587 + Warnings are issued for undefined citations, which are rendered
9589 + Fixed hanging behavior when locale files cannot be found.
9593 * DocBook: Use DocBook 4.5 doctype.
9595 * Org: '#+TITLE:' is inserted before the title.
9596 Previously the writer did this.
9598 * LaTeX: Changes to make mathfont work with xelatex.
9599 We need the mathspec library, not just fontspec, for this.
9600 We also need to set options for setmathfont (#734).
9602 * LaTeX: Use `tex-ansi` mapping for `monofont`.
9603 This ensures that straight quotes appear as straight, rather than
9604 being treated as curly. See #889.
9606 * Made `\includegraphics` more flexible in LaTeX template.
9607 Now it can be used with options, if needed. Thanks to Bernhard Weichel.
9609 * LaTeX/Beamer: Added `classoption` variable.
9610 This is intended for class options like `oneside`; it may
9611 be repeated with different options. (Thanks to Oliver Matthews.)
9613 * Beamer: Added `fonttheme` variable. (Thanks to Luis Osa.)
9615 * LaTeX: Added `biblio-style` variable (#920).
9617 * DZSlides: title attribute on title section.
9619 * HTML5: add meta tag to allow scaling by user (Erik Evenson)
9621 [under-the-hood improvements]
9623 * Markdown reader:Improved strong/emph parsing, using the strategy of
9624 <https://github.com/jgm/Markdown>. The new parsing algorithm requires
9625 no backtracking, and no keeping track of nesting levels. It will give
9626 different results in some edge cases, but these should not affect normal
9629 * Added `Text.Pandoc.Compat.Monoid`.
9630 This allows pandoc to compile with `base` < 4.5, where `Data.Monoid`
9631 doesn't export `<>`. Thanks to Dirk Ullirch for the patch.
9633 * Added `Text.Pandoc.Compat.TagSoupEntity`.
9634 This allows pandoc to compile with `tagsoup` 0.13.x.
9635 Thanks to Dirk Ullrich for the patch.
9637 * Most of `Text.Pandoc.Readers.TeXMath` has been moved to the
9638 `texmath` module (0.6.4). (This allows `pandoc-citeproc` to
9639 handle simple math in bibliography fields.)
9641 * Added `Text.Pandoc.Writers.Shared` for shared functions used
9642 only in writers. `metaToJSON` is used in writers to create a
9643 JSON object for use in the templates from the pandoc metadata
9644 and variables. `getField`, `setField`, and `defField` are
9645 for working with JSON template contexts.
9647 * Added `Text.Pandoc.Asciify` utility module.
9648 This exports functions to create ASCII-only versions of identifiers.
9650 * `Text.Pandoc.Parsing`
9652 + Generalized state type on `readWith` (API change).
9653 + Specialize readWith to `String` input. (API change).
9654 + In `ParserState`, replace `stateTitle`, `stateAuthors`, `stateDate`
9655 with `stateMeta` and `stateMeta'`.
9657 * `Text.Pandoc.UTF8`: use strict bytestrings in reading. The use of lazy
9658 bytestrings seemed to cause problems using pandoc on 64-bit Windows
9661 * Factored out `registerHeader` from markdown reader, added to
9662 `Text.Pandoc.Parsing`.
9664 * Removed `blaze_html_0_5` flag, require `blaze-html` >= 0.5.
9665 Reason: < 0.5 does not provide a monoid instance for Attribute,
9666 which is now needed by the HTML writer (#803).
9668 * Added `http-conduit` flag, which allows fetching https resources.
9669 It also brings in a large number of dependencies (`http-conduit`
9670 and its dependencies), which is why for now it is an optional flag
9673 * Added CONTRIBUTING.md.
9675 * Improved INSTALL instructions.
9677 * `make-windows-installer.bat`: Removed explicit paths for executables.
9679 * `aeson` is now used instead of `json` for JSON.
9681 * Set default stack size to 16M. This is needed for some large
9682 conversions, esp. if pandoc is compiled with 64-bit ghc.
9684 * Various small documentation improvements.
9685 Thanks to achalddave and drothlis for patches.
9687 * Removed comment that chokes recent versions of CPP (#933).
9689 * Removed support for GHC version < 7.2, since pandoc-types now
9690 requires at least GHC 7.2 for GHC generics.
9697 + Fixed regression in which parentheses were lost in link URLs.
9698 Added tests. Closes #786.
9699 + Better handling of unmatched double quotes in `--smart` mode.
9700 These occur frequently in fiction, since it is customary not to
9701 close quotes in dialogue if the speaker does not change between
9702 paragraphs. The unmatched quotes now get turned into literal
9703 left double quotes. (No `Quoted` inline is generated, however.)
9706 * HTML writer: Fixed numbering mismatch between TOC and sections.
9707 `--number-offset` now affects TOC numbering as well
9708 as section numbering, as it should have all along. Closes #789.
9710 * Markdown writer: Reverted 1.11 change that caused citations to be rendered
9711 as markdown citations, even if `--bibliography` was specified, unless
9712 `citation` extension is disabled. Now, formatted citations are always
9713 printed if `--bibliography` was specified. If you want to reformat
9714 markdown keeping pandoc markdown citations intact, don't use
9715 `--bibliography`. Note that citations parsed from LaTeX documents will
9716 be rendered as pandoc markdown citations when `--bibliography` is not
9719 * ODT writer: Fixed regression leading to corrupt ODTs.
9720 This was due to a change in the `Show` instance for
9721 `Text.Pandoc.Pretty.Doc`. Closes #780.
9723 * Fixed spacing bugs involving code block attributes in
9724 RST reader and Markdown writer. Closes #763.
9726 * Windows package: Various improvements due to Fyodor Sheremetyev.
9728 + Automatically set installation path (Program Files or Local App Data).
9729 + Set system PATH environment variable when installing for all users.
9730 + Pandoc can installed for all users using the following command.
9731 `msiexec /i pandoc-1.11.msi ALLUSERS=1`.
9733 * Bumped QuickCheck version bound.
9737 * Added `--number-offset` option. (See README for description.)
9739 * Added `--default-image-extension` option. (See README for description.)
9741 * `--number-sections` behavior change: headers with class `unnumbered`
9742 will not be numbered.
9744 * `--version` now reports the default data directory.
9746 * `Text.Pandoc.Parsing` is no longer exposed. (API change.)
9748 * `Text.Pandoc.Highlighting` is no longer exposed. (API change.)
9750 * `Text.Pandoc.Shared`: Changed type of `Element`. `Sec` now includes
9751 a field for `Attr` rather than just `String`. (API change.)
9753 * Added `markdown_github` as input format. This was an accidental
9756 * Added `readerDefaultImageExtension` field to `ReaderOptions`. (API
9759 * Added `writerNumberOffset` field in `WriterOptions`. (API change.)
9763 + Fixed captions with longtable. Thanks to Joost Kremers.
9764 + Provide `\Oldincludegraphics` as in LaTeX template (Benjamin Bannier).
9768 + Load microtype after fonts. Microtype needs to know
9769 what fonts are being used. Thanks to dfc for the patch.
9770 + Set `secnumdepth` to 5 if `--number-sections` specified.
9771 This yields behavior equivalent to the other writers, numbering
9772 level 4 and 5 headers too. Closes #753.
9776 + Handle `<colgroup>` tag.
9777 + Preserve all header attributes.
9781 + Parse `\hrule` as `HorizontalRule`. Closes #746.
9782 + Parse starred variants of `\section` etc. as headers with
9783 attribute `unnumbered`.
9784 + Read optional attributes in `lstlisting` and `Verbatim` environments.
9785 We convert these to pandoc standard names, e.g. `numberLines`
9786 for `numbers=left`, `startFrom=100` from `firstnumber=100`.
9787 + Handle language attribute for lstlistings.
9788 + Better support for Verbatim and minted environments. Closes #763.
9792 + `-` in an attribute context = `.unnumbered`. The point of this
9793 is to provide a way to specify unnumbered headers in non-English
9795 + Fixed bug parsing key/value attributes. Parsing failed if you
9796 had an unquoted attribute immediately before the final '}'.
9797 + Make backslash escape work in attributes.
9798 + Fix title block parsing. Now if `mmd_title_blocks` is specified,
9799 pandoc will parse a MMD title block if it sees one, even if
9800 `pandoc_title_blocks` is enabled.
9801 + Refactoring: `litChar` now includes entities, so we don't need
9802 to use `fromEntities` e.g. on titles.
9803 + Allow spaces around borders in pipe tables. Closes #772.
9804 + Allow all punctuation in angle-bracket autolinks. Previously
9805 things like `----` were disallowed, because the uri parser
9806 treated them as trailing punctuation. Closes #768.
9807 + Make `implicit_header_references` work properly when
9808 headers are given explicit identifiers.
9809 + Check for tables before line blocks. Otherwise some pipe
9810 tables get treated as line blocks.
9811 + Allow `&` in emails (for entities).
9812 + Properly handle entities in titles and links. A markdown link
9813 `<http://göogle.com>` should be a link to `http://göogle.com`.
9818 + Handle attributes on headers.
9822 + Add `fig:` as title for images with captions.
9823 This is needed for them to be rendered as figures. Closes #766.
9824 + Never emit an empty paragraph. See #761.
9825 + Handle `\caption` for images in figures. Closes #766.
9826 + Parse `\section*`, etc. as unnumbered sections.
9830 + Support header attributes. The attributes go on
9831 the enclosing `section` or `div` tag if `--section-divs` is specified.
9832 + Fixed a regression (only now noticed) in html+lhs output.
9833 Previously the bird tracks were being omitted.
9837 + Omit lists with no items to avoid LaTeX errors.
9838 + Support line numbering with `--listings`.
9839 If `numberLines` class is present, we add `numbers=left`;
9840 if `startFrom` is present, we add `firstnumber=`. (#763)
9844 + Removed `\placecontent`. This produced a duplicate toc,
9845 in conjunction with `\placelist`.
9846 + Use `\title`, `\subject` etc. for headers with
9851 + Support header attributes.
9855 + Use grid tables when needed, and if enabled. Closes #740.
9856 + Render citations as pandoc-markdown citations.
9857 Previously citations were rendered as citeproc-formatted citations
9858 by default. Now we render them as pandoc citations, e.g. `[@item1]`,
9859 unless the `citations` extension is disabled.
9860 If you still want formatted citations in your markdown output,
9861 use `pandoc -t markdown-citations`.
9865 + Support `:number-lines:` in code blocks.
9869 + Better treatment of display math. Display math inside a
9870 paragraph is now put in a separate paragraph, so it will render
9871 properly (centered and without extra blank lines around it).
9872 Partially addresses #742.
9873 + Content types and document rels xml files are now created from
9874 scratch, rather than being taken over from `reference.docx`.
9875 This fixes problems that arise when you edit the `reference.docx`
9877 + We also now encode mime types for each individual image rather
9878 than using defaults. This should allow us to handle a wider
9879 range of image types (including PDF). Closes #414.
9880 + Changed style names in `reference docx`.
9881 `FootnoteReference` -> `FootnoteRef`, `Hyperlink` -> `Link`.
9882 The old names got changed by Word when the `reference.docx` was
9883 edited. Closes #414.
9887 + Fix section numbering. Previously the numbering restarted from 1
9888 in each chapter (with `--number-sections`), though the numbers in
9889 the table of contents were correct.
9890 + Headers with "unnumbered" attribute are not numbered. (Nor do they
9891 cause an increment in running numbering.) Section numbers now work
9892 properly, even when there is material before the first numbered section.
9893 + Include HTML TOC, even in epub2. The TOC is included in `<spine>`,
9894 but `linear` is set to `no` unless the `--toc` option is specified.
9895 Include `<guide>` element in OPF. This should allow the TOC to
9896 be usable in Kindles when converted with kindlegen. Closes #773.
9898 * `Text.Pandoc.Parsing`: Optimized `oneOfStringsCI`.
9899 This dramatically reduces the speed penalty that comes from enabling the
9900 `autolink_bare_uris` extension. The penalty is still substantial (in one
9901 test, from 0.33s to 0.44s), but nowhere near what it used to be.
9902 The RST reader is also much faster now, as it autodetects URIs.
9904 * `Text.Pandoc.Shared`: `hierarchicalize` will not number section
9905 with class "unnumbered". Unnumbered sections get `[]` for their
9908 * `Text.Pandoc.Pretty`:
9910 + Fixed `chomp` so it works inside `Prefixed` elements.
9911 + Changed `Show` instance so it is better for debugging.
9913 * `Text.Pandoc.ImageSize`: Added `Pdf` to `ImageType`.
9915 * `Text.Pandoc.UTF8`: Strip off BOM if present. Closes #743.
9917 * Windows installer improvements:
9919 + The installer is now signed with a certificate (thanks to
9920 Fyodor Sheremetyev).
9921 + WiX is used instead of InnoSetup. The installer is now a
9923 + The version number is now auto-detected, and need not be
9926 * OSX installer improvements:
9928 + The package and pandoc executable are now signed with a
9929 certificate (thanks to Fyodor Sheremetyev).
9930 + RTF version of license is used.
9931 + Use full path for sysctl in `InstallationCheck` script (jonahbull).
9934 * Converted COPYING to markdown.
9936 * pandoc.cabal: Require latest versions of highlighting-kate,
9937 texmath, citeproc-hs, zip-archive.
9941 * Markdown reader: various optimizations, leading to a
9942 significant performance boost.
9944 * RST reader: Allow anonymous form of inline links:
9945 `` `hello <url>`__ `` Closes #724.
9947 * Mediawiki reader: Don't require newlines after tables.
9948 Thanks to jrunningen for the patch. Closes #733.
9950 * Fixed LaTeX macro parsing. Now LaTeX macro definitions are preserved
9951 when output is LaTeX, and applied when it is another format.
9952 Partially addresses #730.
9954 * Markdown and RST readers: Added parser to `block` that skips blank
9955 lines. This fixes a subtle regression involving grid tables with
9956 empty cells. Also added test for grid table with empty cells.
9959 * RST writer: Use `.. code:: language` for code blocks with language.
9962 * DocBook writer: Fixed output for hard line breaks, adding a newline
9963 between `<literallayout>` tags.
9965 * Markdown writer: Use an autolink when link text matches url.
9966 Previously we also checked for a null title, but this
9967 test fails for links produced by citeproc-hs in bibliographies.
9968 So, if the link has a title, it will be lost on conversion
9969 to an autolink, but that seems okay.
9971 * Markdown writer: Set title, author, date variables as before.
9972 These are no longer used in the default template, since we use
9973 titleblock, but we set them anyway for those who use custom templates.
9975 * LaTeX writer: Avoid extra space at start/end of table cell.
9976 Thanks to Nick Bart for the suggestion of using @{}.
9978 * `Text.Pandoc.Parsing`:
9980 + More efficient version of `anyLine`.
9981 + Type of `macro` has changed; the parser now returns `Blocks`
9984 * Relaxed old-time version bound, allowing 1.0.*.
9986 * Removed obsolete `hsmarkdown` script. Those who need `hsmarkdown`
9987 should create a symlink as described in the README.
9991 * Markdown reader: Try `lhsCodeBlock` before `rawTeXBlock`. Otherwise
9992 `\begin{code}...\end{code}` isn't handled properly in markdown+lhs.
9993 Thanks to Daniel Miot for noticing the bug and suggesting the fix.
9995 * Markdown reader: Fixed bug with headerless grid tables.
9996 The 1.10 code assumed that each table header cell contains exactly one
9997 block. That failed for headerless tables (0) and also for tables with
9998 multiple blocks in a header cell. The code is fixed and tests provided.
9999 Thanks to Andrew Lee for pointing out the bug.
10001 * Markdown reader: Fixed regressions in fenced code blocks. Closes #722.
10003 + Tilde code fences can again take a bare language string
10004 (`~~~ haskell`), not just curly-bracketed attributes
10005 (`~~~ {.haskell}`).
10006 + Backtick code blocks can take the curly-bracketed attributes.
10007 + Backtick code blocks don't *require* a language.
10008 + Consolidated code for the two kinds of fenced code blocks.
10010 * LaTeX template: Use `\urlstyle{same}` to avoid monospace URLs.
10012 * Markdown writer: Use proportional font for email autolinks with
10013 obfuscation. Closes #714.
10015 * Corrected name of `blank_before_blockquote` in README. Closes #718.
10017 * `Text.Pandoc.Shared`: Fixed bug in `uri` parser.
10018 The bug prevented an autolink at the end of a string (e.g.
10019 at the end of a line block line) from counting as a link. Closes #711.
10021 * Use the `hsb2hs` preprocessor instead of TH for embed_data_files.
10022 This should work on Windows, unlike the TH solution with
10025 * Eliminated use of TH in test suite.
10027 * Added `Text.Pandoc.Data` (non-exported) to hold the association
10028 list of embedded data files, if the `embed_data_files` flag is selected.
10029 This isolates the code that needs special treatment with file-embed or
10032 * Changes to `make-windows-installer.bat`.
10034 + Exit batch file if any of the cabal-dev installs fail.
10035 + There's no longer any need to reinstall `highlighting-kate`.
10036 + Don't start with a `cabal update`; leave that to the user.
10037 + Force reinstall of pandoc.
10039 * Fixed EPUB writer so it builds with blaze-html 0.4.x. Thanks to
10044 * Fixed bug with escaped % in LaTeX reader. Closes #710.
10048 * Added further missing fb2 tests to cabal file.
10052 * Added fb2 tests to cabal file's extra-source-files.
10056 * Bump version bounds on test-framework packages.
10062 * New input formats: `mediawiki` (MediaWiki markup).
10064 * New output formats: `epub3` (EPUB v3 with MathML),
10065 `fb2` (FictionBook2 ebooks).
10067 * New `--toc-depth` option, specifying how many levels of
10068 headers to include in a table of contents.
10070 * New `--epub-chapter-level` option, specifying the header
10071 level at which to divide EPUBs into separate files.
10072 Note that this normally affects only performance, not the
10073 visual presentation of the EPUB in a reader.
10075 * Removed the `--strict` option. Instead of using `--strict`,
10076 one can now use the format name `markdown_strict` for either input
10077 or output. This gives more fine-grained control that `--strict`
10078 did, allowing one to convert from pandoc's markdown to strict
10079 markdown or vice versa.
10081 * It is now possible to enable or disable specific syntax
10082 extensions by appending them (with `+` or `-`) to the writer
10083 or reader name. For example,
10085 pandoc -f markdown-footnotes+hard_line_breaks
10087 disables footnotes and enables treating newlines as hard
10088 line breaks. The literate Haskell extensions are now implemented
10089 this way as well, using either `+lhs` or `+literate_haskell`.
10090 For a list of extension names, see the README under
10091 "Pandoc's Markdown."
10093 * The following aliases have been introduced for specific
10094 combinations of markdown extensions: `markdown_phpextra`,
10095 `markdown_github`, `markdown_mmd`, `markdown_strict`. These aliases
10096 work just like regular reader and writer names, and can be modified
10097 with extension modifiers as described above. (Note that conversion
10098 from one markdown dialect to another does not work perfectly,
10099 because there are differences in markdown parsers besides
10100 just the extensions, and because pandoc's internal document model is
10101 not rich enough to capture all of the extensions.)
10103 * New `--html-q-tags` option. The previous default was to use `<q>`
10104 tags for smart quotes in HTML5. But `<q>` tags are also valid HTML4.
10105 Moreover, they are not a robust way of typesetting quotes, since
10106 some user agents don't support them, and some CSS resets (e.g.
10107 bootstrap) prevent pandoc's quotes CSS from working properly.
10108 We now just insert literal quote characters by default in both
10109 `html` and `html5` output, but this option is provided for
10110 those who still want `<q>` tags.
10112 * The markdown reader now prints warnings (to stderr) about
10113 duplicate link and note references. Closes #375.
10115 * Markdown syntax extensions:
10117 + Added pipe tables. Thanks to François Gannaz for the initial patch.
10118 These conform to PHP Markdown Extra's pipe table syntax. A subset
10119 of org-mode table syntax is also supported, which means that you can
10120 use org-mode's nice table editor to create tables.
10122 + Added support for RST-style line blocks. These are
10123 useful for verse and addresses.
10125 + Attributes can now be specified for headers, using the same
10126 syntax as in code blocks. (However, currently only the
10127 identifier has any effect in most writers.) For example,
10131 See [the header above](#foo).
10133 + Pandoc will now act as if link references have been defined
10134 for all headers without explicit identifiers.
10135 So, you can do this:
10139 Link to [My header].
10140 Another link to [it][My header].
10146 + Command macros now work everywhere, including non-math.
10147 Environment macros still not supported.
10148 + `\input` now works, as well as `\include`. TEXINPUTS is used.
10149 Pandoc looks recursively into included files for more included files.
10153 * The Markdown reader no longer puts the text of autolinks in a
10154 `Code` inline. This means that autolinks will no longer appear
10155 in a monospace font.
10157 * The character `/` can now appear in markdown citation keys.
10159 * HTML blocks in strict_markdown are no longer required to begin
10160 at the left margin. Technically this is required, according to
10161 the markdown syntax document, but `Markdown.pl` and other markdown
10162 processors are more liberal.
10164 * The `-V` option has been changed so that if there are duplicate
10165 variables, those specified later on the command line take precedence.
10167 * Tight lists now work in LaTeX and ConTeXt output.
10169 * The LaTeX writer no longer relien on the `enumerate` package.
10170 Instead, it uses standard LaTeX commands to change the list numbering
10173 * The LaTeX writer now uses `longtable` instead of `ctable`. This allows
10174 tables to be split over page boundaries.
10176 * The RST writer now uses a line block to render paragraphs containing
10177 linebreaks (which previously weren't supported at all).
10179 * The markdown writer now applies the `--id-prefix` to footnote IDs.
10182 * The plain writer no longer uses backslash-escaped line breaks
10183 (which are not very "plain").
10185 * `Text.Pandoc.UTF8`: Better error message for invalid UTF8.
10186 Read bytestring and use `Text`'s decodeUtf8 instead of using
10187 `System.IO.hGetContents`. This way you get a message saying
10188 "invalid UTF-8 stream" instead of "invalid byte sequence."
10189 You are also told which byte caused the problem.
10191 * Docx, ODT, and EPUB writers now download images specified by a URL
10192 instead of skipping them or raising an error.
10196 + The default CSS now left-aligns headers by default, instead of
10197 centering. This is more consistent with the rest of the writers.
10198 + A proper multi-level table of contents is now used in `toc.ncx`.
10199 There is no longer a subsidiary table of contents at the beginning
10201 + Code highlighting now works by default.
10202 + Section divs are used by default for better semantic markup.
10203 + The title is used instead of "Title Page" in the table of contents.
10204 Otherwise we have a hard-coded English string, which looks
10205 strange in ebooks written in other languages. Closes #572.
10209 + Put mathjax in span with class "math". Closes #562.
10210 + Put citations in a span with class "citation." In HTML5, also include
10211 a `data-cite` attribute with a space-separated list of citation
10214 * `Text.Pandoc.UTF8`: use universalNewlineMode in reading.
10215 This treats both `\r\n` and `\n` as `\n` on input, no matter
10216 what platform we're running on.
10218 * Citation processing is now done in the Markdown and LaTeX
10219 readers, not in `pandoc.hs`. This makes it easier for library users
10224 * HTML: Added css to template to preserve spaces in `<code>` tags.
10225 Thanks to Dirk Laurie.
10227 * Beamer: Remove English-centric strings in section pages.
10228 Section pages used to have "Section" and a number as well as the
10229 section title. Now they just have the title. Similarly for part
10230 and subsection. Closes #566.
10232 * LaTeX, ConTeXt: Added papersize variable.
10234 * LaTeX, Beamer templates: Use longtable instead of ctable.
10236 * LaTeX, Beamer templates: Don't require 'float' package for tables.
10237 We don't actually seem to use the '[H]' option.
10239 * LaTeX: Use `upquote` package if it is available. This fixes
10240 straight quotes in verbatim environments.
10242 * Markdown, plain: Fixed titleblock so it is just a single string.
10243 Previously separate title, author, and date variables were used,
10244 but this didn't allow different kinds of title blocks.
10248 + Rationalized templates. Previously there were three different
10249 templates involved in epub production. There is now just one
10250 template, `default.epub` or `default.epub3`. It can now be
10251 overridden using `--template`, just like other templates.
10252 The titlepage is now folded into the default template.
10253 A `titlepage` variable selects it.
10254 + UTF-8, lang tag, meta tags, title element.
10256 * Added scale-to-width feature to beamer template
10260 * `Text.Pandoc.Definition`: Added `Attr` field to `Header`.
10261 Previously header identifiers were autogenerated by the writers.
10262 Now they are added in the readers (either automatically or explicitly).
10264 * `Text.Pandoc.Builder`:
10266 + `Inlines` and `Blocks` are now synonyms for `Many Inline` and
10267 `Many Block`. `Many` is a newtype wrapper around `Seq`, with
10268 custom Monoid instances for `Many Inline` and `Many Block. This
10269 allows `Many` to be made an instance of `Foldable` and `Traversable`.
10270 + The old `Listable` class has been removed.
10271 + The module now exports `isNull`, `toList`, `fromList`.
10272 + The old `Read` and `Show` instances have been removed; derived
10273 instances are now used.
10274 + Added `headerWith`.
10276 * The readers now take a `ReaderOptions` rather than a `ParserState`
10277 as a parameter. Indeed, not all parsers use the `ParserState` type;
10278 some have a custom state. The motivation for this change was to separate
10279 user-specifiable options from the accounting functions of parser state.
10281 * New module `Text.Pandoc.Options`. This includes the `WriterOptions`
10282 formerly in `Text.Pandoc.Shared`, and its associated
10283 data types. It also includes a new type `ReaderOptions`, which
10284 contains many options formerly in `ParserState`, and its associated
10287 + `ParserState.stateParseRaw` -> `ReaderOptions.readerParseRaw`.
10288 + `ParserState.stateColumns` -> `ReaderOptions.readerColumns`.
10289 + `ParserState.stateTabStop` -> `ReaderOptions.readerTabStop`.
10290 + `ParserState.stateOldDashes` -> `ReaderOptions.readerOldDashes`.
10291 + `ParserState.stateLiterateHaskell` -> `ReaderOptions.readerLiterateHaskell`.
10292 + `ParserState.stateCitations` -> `ReaderOptions.readerReferences`.
10293 + `ParserState.stateApplyMacros` -> `ReaderOptions.readerApplyMacros`.
10294 + `ParserState.stateIndentedCodeClasses` ->
10295 `ReaderOptions.readerIndentedCodeClasses`.
10296 + Added `ReaderOptions.readerCitationStyle`.
10298 * `WriterOptions` now includes `writerEpubVersion`, `writerEpubChapterLevel`,
10299 `writerEpubStylesheet`, `writerEpubFonts`, `writerReferenceODT`,
10300 `writerReferenceDocx`, and `writerTOCDepth`. `writerEPUBMetadata` has
10301 been renamed `writerEpubMetadata` for consistency.
10303 * Changed signatures of `writeODT`, `writeDocx`, `writeEPUB`, since they no
10304 longer stylesheet, fonts, reference files as separate parameters.
10306 * Removed `writerLiterateHaskell` from `WriterOptions`, and
10307 `readerLiterateHaskell` from `ReaderOptions`. LHS is now handled
10308 by an extension (`Ext_literate_haskell`).
10310 * Removed deprecated `writerXeTeX`.
10312 * Removed `writerStrict` from `WriterOptions`. Added `writerExtensions`.
10313 Strict is now handled through extensions.
10315 * `Text.Pandoc.Options` exports `pandocExtensions`, `strictExtensions`,
10316 `phpMarkdownExtraExtensions`, `githubMarkdownExtensions`,
10317 and `multimarkdownExtensions`, as well as the `Extensions` type.
10319 * New `Text.Pandoc.Readers.MediaWiki` module, exporting
10322 * New `Text.Pandoc.Writers.FB2` module, exporting `writeFB2`
10323 (thanks to Sergey Astanin).
10327 + Added `getReader`, `getWriter` to `Text.Pandoc`.
10328 + `writers` is now an association list `(String, Writer)`.
10329 A `Writer` can be a `PureStringWriter`, an `IOStringWriter`, or
10330 an `IOByteStringWriter`. ALL writers are now in the 'writers'
10331 list, including the binary writers and FB2 writer. This allows
10332 code in `pandoc.hs` to be simplified.
10333 + Changed type of `readers`, so all readers are in IO.
10334 Users who want pure readers can still get them form the reader
10335 modules; this just affects the function `getReader` that looks up
10336 a reader based on the format name. The point of this change is to
10337 make it possible to print warnings from the parser.
10339 * `Text.Pandoc.Parsing`:
10341 + `Text.Parsec` now exports all Parsec functions used in pandoc code.
10342 No other module directly imports Parsec. This will make it easier
10343 to change the parsing backend in the future, if we want to.
10344 + `Text.Parsec` is used instead of `Text.ParserCombinators.Parsec`.
10345 + Export the type synonym `Parser`.
10346 + Export `widthsFromIndices`, `NoteTable'`, `KeyTable'`, `Key'`, `toKey'`,
10347 `withQuoteContext`, `singleQuoteStart`, `singleQuoteEnd`,
10348 `doubleQuoteStart`, `doubleQuoteEnd`, `ellipses`, `apostrophe`,
10349 `dash`, `nested`, `F(..)`, `askF`, `asksF`, `runF`, `lineBlockLines`.
10350 + `ParserState` is no longer an instance of `Show`.
10351 + Added `stateSubstitutions` and `stateWarnings` to `ParserState`.
10352 + Generalized type of `withQuoteContext`.
10353 + Added `guardEnabled`, `guardDisabled`, `getOption`.
10354 + Removed `failIfStrict`.
10355 + `lookupKeySrc` and `fromKey` are no longer exported.
10357 * `Data.Default` instances are now provided for `ReaderOptions`,
10358 `WriterOptions`, and `ParserState`. `Text.Pandoc` re-exports `def`.
10359 Now you can use `def` (which is re-exported by `Text.Pandoc`) instead
10360 of `defaultWriterOptions` (which is still defined). Closes #546.
10362 * `Text.Pandoc.Shared`:
10364 + Added `safeRead`.
10365 + Renamed `removedLeadingTrailingSpace` to `trim`,
10366 `removeLeadingSpace` to `triml`, and `removeTrailingSpace` to `trimr`.
10367 + Count `\r` as space in `trim` functions.
10368 + Moved `renderTags'` from HTML reader and `Text.Pandoc.SelfContained`
10370 + Removed `failUnlessLHS`.
10371 + Export `compactify'`, formerly in Markdown reader.
10372 + Export `isTightList`.
10373 + Do not export `findDataFile`.
10374 + `readDataFile` now returns a strict ByteString.
10375 + Export `readDataFileUTF8` which returns a String, like the
10376 old `readDataFile`.
10377 + Export `fetchItem` and `openURL`.
10379 * `Text.Pandoc.ImageSize`: Use strict, not lazy bytestrings.
10380 Removed `readImageSize`.
10382 * `Text.Pandoc.UTF8`: Export `encodePath`, `decodePath`,
10383 `decodeArg`, `toString`, `fromString`, `toStringLazy`,
10386 * `Text.Pandoc.UTF8` is now an exposed module.
10388 * `Text.Pandoc.Biblio`:
10390 + csl parameter now a `String` rather than a `FilePath`.
10391 + Changed type of `processBiblio`. It is no longer in the IO monad.
10392 It now takes a `Maybe Style` argument rather than parameters for CSL
10393 and abbrev filenames. (`pandoc.hs` now calls the functions to parse
10394 the style file and add abbreviations.)
10396 * Markdown reader now exports `readMarkdownWithWarnings`.
10398 * `Text.Pandoc.RTF` now exports `writeRTFWithEmbeddedImages` instead of
10403 * Make `--ascii` work properly with `--self-contained`. Closes #568.
10407 + Fixed link parser to avoid exponential slowdowns. Closes #620.
10408 Previously the parser would hang on input like this:
10410 [[[[[[[[[[[[[[[[[[hi
10412 We fixed this by making the link parser parser characters
10413 between balanced brackets (skipping brackets in inline code spans),
10414 then parsing the result as an inline list. One change is that
10416 [hi *there]* bud](/url)
10418 is now no longer parsed as a link. But in this respect pandoc behaved
10419 differently from most other implementations anyway, so that seems okay.
10421 + Look for raw html/latex blocks before tables.
10422 Otherwise the following gets parsed as a table:
10433 + Added support for `:target:` on `.. image::` blocks
10435 + Field list fixes:
10437 - Fixed field lists items with body beginning after a new line
10439 - Allow any char but ':' in names of field lists in RST reader
10441 - Don't allow line breaks in field names.
10442 - Require whitespace after field list field names.
10443 - Don't create empty definition list for metadata field lists.
10444 Previously a field list consisting only of metadata fields (author,
10445 title, date) would be parsed as an empty DefinitionList, which is
10446 not legal in LaTeX and not needed in any format.
10448 + Don't recognize inline-markup starts inside words.
10449 For example, `2*2 = 4*1` should not contain an emphasized
10450 section. Added test case for "Literal symbols". Closes #569.
10451 + Allow dashes as separator in simple tables. Closes #555.
10452 + Added support for `container`, `compound`, `epigraph`,
10453 `rubric`, `highlights`, `pull-quote`.
10454 + Added support for `.. code::`.
10455 + Made directive labels case-insensitive.
10456 + Removed requirement that directives begin at left margin.
10457 This was (correctly) not in earlier releases; docutils doesn't
10458 make the requirement.
10459 + Added support for `replace::` and `unicode::` substitutions.
10460 + Ignore unknown interpreted roles.
10461 + Renamed image parser to `subst`, since it now handles all
10462 substitution references.
10466 + Allow newlines before pipes in table. Closes #654.
10467 + Fixed bug with list items containing line breaks.
10468 Now pandoc correctly handles hard line breaks inside list items.
10469 Previously they broke list parsing.
10470 + Implemented comment blocks.
10471 + Fixed bug affected words ending in hyphen.
10472 + Properly handle links with surrounding brackets.
10473 Square brackets need to be used when the link isn't surrounded by
10474 spaces or punctuation, or when the URL ending may be ambiguous.
10476 + Removed nullBlock. Better to know about parsing problems than
10477 to skip stuff when we get stuck.
10478 + Allow ID attributes on headers.
10479 + Textile reader: Avoid parsing dashes as strikeout.
10480 Previously the input
10487 would be parsed with strikeouts rather than dashes. This fixes
10488 the problem by requiring that a strikeout delimiting - not be
10489 followed by a -. Closes #631.
10490 + Expanded list of `stringBreakers`.
10491 This fixes a bug on input like "(_hello_)" which should
10492 be a parenthesized emphasized "hello".
10493 The new list is taken from the PHP source of textile 2.4.
10494 + Fixed autolinks. Previously the textile reader and writer
10495 incorrectly implented RST-style autolinks for URLs and email
10496 addresses. This has been fixed. Now an autolink is done this way:
10497 `"$":http://myurl.com`.
10498 + Fixed footnotes bug in textile. This affected notes occurring
10499 before punctuation, e.g. `foo[1].`. Closes #518.
10503 + Better handling of citation commands.
10504 + Better handling of `\noindent`.
10505 + Added a 'try' in rawLaTeXBlock, so we can handle `\begin` without `{`.
10507 + Made `rawLaTeXInline` try to parse block commands as well. This
10508 is usually what we want, given how `rawLaTeXInline` is used in
10509 the markdown and textile readers. If a block-level LaTeX command
10510 is used in the middle of a paragraph (e.g. `\subtitle` inside a title),
10511 we can treat it as raw inline LaTeX.
10512 + Handle \slash command. Closes #605.
10513 + Basic `\enquote` support.
10514 + Fixed parsing of paragraphs beginning with a group. Closes #606.
10515 + Use curly quotes for bare straight quotes.
10516 + Support obeylines environment. Closes #604.
10517 + Guard against "begin", "end" in inlineCommand and
10519 + Better error messages for environments. Now it should tell you that
10520 it was looking for \end{env}, instead of giving "unknown parse error."
10524 + Added HTML 5 tags to list of block-level tags.
10525 + HTML reader: Fixed bug in `htmlBalanced`, which
10526 caused hangs in parsing certain markdown input using
10528 + Parse `<q>` as `Quoted DoubleQuote`.
10529 + Handle nested `<q>` tags properly.
10530 + Modified `htmlTag` for fewer false positives.
10531 A tag must start with `<` followed by `!`,`?`, `/`, or a letter.
10532 This makes it more useful in the wikimedia and markdown parsers.
10534 * DocBook reader: Support title in "figure" element. Closes #650.
10536 * MediaWiki writer:
10538 + Remove newline after `<br/>` in translation of `LineBreak`
10539 There's no particular need for a newline (other than making the
10540 generated MediaWiki source look nice to a human), and in fact
10541 sometimes it is incorrect: in particular, inside an enumeration, list
10542 items cannot have embedded newline characters. (Brent Yorgey)
10543 + Use `<code>` not `<tt>` for Code.
10545 * Man writer: Escape `-` as `\-`.
10546 Unescaped `-`'s become hyphens, while `\-`'s are left as ascii minus
10547 signs. That is preferable for use with command-line options. See
10548 <http://lintian.debian.org/tags/hyphen-used-as-minus-sign.html>. Thanks
10549 to Andrea Bolognani for bringing the issue to our attention.
10553 + Improved line block output. Use nonbreaking spaces for
10554 initial indent (otherwise lost in HTML and LaTeX).
10555 Allow multiple paragraphs in a single line block.
10556 Allow soft breaks w continuations in line blocks.
10557 + Properly handle images with no alt text. Closes #678.
10558 + Fixed bug with links with duplicate text. We now (a) use anonymous
10559 links for links with inline URLs, and (b) use an inline link instead
10560 of a reference link if the reference link would require a label that
10561 has already been used for a different link. Closes #511.
10562 + Fixed hyperlinked images. Closes #611. Use `:target:`
10563 field when you have a simple linked image.
10564 + Don't add `:align: center` to figures.
10566 * Texinfo writer: Fixed internal cross-references.
10567 Now we insert anchors after each header, and use `@ref` instead of `@uref`
10568 for links. Commas are now escaped as `@comma{}` only when needed;
10569 previously all commas were escaped. (This change is needed, in part,
10570 because `@ref` commands must be followed by a real comma or period.) Also
10571 insert a blank line in from of `@verbatim` environments.
10575 + Made --id-prefix work in DocBook as well as HTML.
10577 + Don't include empty captions in figures. Closes #581.
10581 + Use `\hspace*` for nonbreaking space after line break,
10582 since `~` spaces after a line break are just ignored.
10584 + Don't escape `_` in URLs or hyperref identifiers.
10585 + Properly escape strings inside \url{}. Closes #576.
10586 + Use `[fragile]` only for slides containing code rendered
10587 using listings. Closes #649.
10588 + Escape `|` as `\vert` in LaTeX math. This avoids a clash with
10589 highlighting-kate's macros, which redefine `|` as a short verbatim
10590 delimiter. Thanks to Björn Peemöller for raising this issue.
10591 + Use minipage rather than parbox for block containers in tables.
10592 This allows verbatim code to be included in grid tables.
10594 + Prevent paragraphs containing only linebreaks or spaces.
10598 + Included `highlighting-css` for code spans, too.
10599 Previously it was only included if used in a code block. Closes #653.
10600 + Improved line breaks with `<dd>` tags. We now put a newline between
10601 `</dd>` and `<dd>` when there are multiple definitions.
10602 + Changed mathjax cdn url so it doesn't use https. (This caused
10603 problems when used with `--self-contained`.) See #609.
10607 + `--number-sections` now works properly.
10608 + Don't strip meta and link elements in epub metadata.
10609 Patch from aberrancy. Closes #589.
10610 + Fixed a couple validation bugs.
10611 + Use ch001, ch002, etc. for chapter filenames. This improves sorting
10612 of chapters in some readers, which apparently sort ch2 after ch10.
10615 * ODT writer: properly set title property (Arlo O'Keeffe).
10619 + Fixed bug with nested lists. Previously a list like
10626 would come out with a bullet instead of "2."
10627 Thanks to Russell Allen for reporting the bug.
10628 + Use `w:cr` in `w:r` instead of `w:br` for linebreaks.
10629 This seems to fix a problem viewing pandoc-generated
10630 docx files in LibreOffice.
10631 + Use integer ids for bookmarks. Closes #626.
10632 + Added nsid to abstractNum elements. This helps when merging
10633 word documents with numbered or bulleted lists. Closes #627.
10634 + Use separate footnotes.xml for notes.
10635 This seems to help LibreOffice convert the file, even though
10636 it was valid docx before. Closes #637.
10637 + Use rIdNN identifiers for r:embed in images.
10638 + Avoid reading image files again when we've already processed them.
10639 + Fixed typo in `referenc.docx` that prevented image captions from
10640 working. Thanks to Huashan Chen.
10642 * `Text.Pandoc.Parsing`:
10644 + Fixed bug in `withRaw`, which didn't correctly handle the case
10645 where nothing is parsed.
10646 + Made `emailAddress` parser more correct. Now it is based on RFC 822,
10647 though it still doesn't implement quoted strings in email addresses.
10648 + Revised URI parser. It now allows many more schemes, allows
10649 uppercase URIs, and better handles trailing punctuation and
10650 trailing slashes in bare URIs. Added many tests.
10651 + Simplified and improved singleQuoteStart. This makes `'s'`, `'l'`,
10652 etc. parse properly. Formerly we had some English-centric heuristics,
10653 but they are no longer needed. Closes #698.
10655 * `Text.Pandoc.Pretty`: Added wide punctuation range to `charWidth`.
10656 This fixes bug with Chinese commas in markdown and reST tables, and
10657 a bug that caused combining characters to be dropped.
10659 * `Text.Pandoc.MIME`: Added MIME types for .wof and .eot. Closes #640.
10661 * `Text.Pandoc.Biblio`:
10663 + Run `mvPunc` and `deNote` on metadata too.
10664 This fixed a bug with notes on titles using footnote styles.
10665 + Fixed bug in fetching CSL files from CSL data directory.
10667 * `pandoc.hs`: Give correct value to `writerSourceDirectory` when a URL
10668 is provided. It should be the URL up to the path.
10670 * Fixed/simplified diff output for tests.
10671 Biblio: Make sure mvPunc and deNote run on metadata too.
10672 This fixed a bug with notes on titles using footnote styles.
10674 [under the hood improvements]
10676 * We no longer depend on `utf8-string`. Instead we use functions
10677 defined in `Text.Pandoc.UTF8` that use `Data.Text`'s conversions.
10679 * Use `safeRead` instead of using `reads` directly (various modules).
10681 * "Implicit figures" (images alone in a paragraph) are now handled
10682 differently. The markdown reader gives their titles the prefix `fig:`; the
10683 writers look for this before treating the image as a figure. Though this
10684 is a bit of a hack, it has two advantages: (i) implicit figures can be
10685 limited to the markdown reader, and (ii) they can be deactivated by turning
10686 off the `implicit_figures` extension.
10688 * `catch` from `Control.Exception` is now used instead of the
10689 old Preface `catch`.
10691 * `Text.Pandoc.Shared`: Improved algorithm for `normalizeSpaces`
10692 and `oneOfStrings` (which is now non-backtracking).
10694 * `Text.Pandoc.Biblio`: Remove workaround for `toCapital`.
10695 Now citeproc-hs is fixed upstream, so this is no longer needed.
10698 * Textile reader: Improved speed of `hyphenedWords`.
10699 This speeds up the textile reader by about a factor of 4.
10701 * Use `Text.Pandoc.Builder` in RST reader, for more flexibility,
10702 better performance, and automatic normalization.
10704 * Major rewrite of markdown reader:
10706 + Use `Text.Pandoc.Builder` instead of lists. This also
10707 means that everything is normalized automatically.
10708 + Move to a one-pass parsing strategy, returning values in the reader
10709 monad, which are then run (at the end of parsing) against the final
10712 * In HTML writer, we now use `toHtml` instead of pre-escaping.
10713 We work around the problem that blaze-html unnecessarily escapes `'`
10714 by pre-escaping just the `'` characters, instead of the whole string.
10715 If blaze-html later stops escaping `'` characters, we can simplify
10716 `strToHtml` to `toHtml`. Closes #629.
10718 * Moved code for embedding images in RTFs from `pandoc.hs` to the
10719 RTF writer (which now exports `writeRTFWithEmbeddedImages`).
10721 * Moved citation processing from `pandoc.hs` into the readers.
10722 This makes things more convenient for library users.
10724 * The man pages are now built by an executable `make-pandoc-man-pages`,
10725 which has its own stanza in the cabal file so that dependencies can be
10726 handled by Cabal. Special treatment in `Setup.hs` ensures that this
10727 executable never gets installed; it is only used to create the man pages.
10729 * The cabal file has been modified so that the pandoc library is used
10730 in building the pandoc executable. (This required moving `pandoc.hs`
10731 from `src` to `.`.) This cuts compile time in half.
10733 * `-O2` is no longer used in building pandoc. The performance improvement
10734 it yields is so slight that it is not worth it. (Measured with
10735 benchmarks on ghc 7.4.)
10737 * The `executable` and `library` flags have been removed.
10739 * `-threaded` has been removed from ghc-options.
10741 * Version bounds of dependencies have been raised, and the
10742 `blaze_html_0_5` flag now defaults to True. Pandoc now compiles on
10745 * We now require base >= 4.2.
10747 * Integrated the benchmark program into cabal. One can now do:
10749 cabal configure --enable-benchmarks && cabal build
10750 cabal bench --benchmark-option='markdown' --benchmark-option='-s 20'
10752 The benchmark now uses README + testsuite, so benchmark results
10753 from older versions aren't comparable.
10755 * Integrated test suite with cabal.
10756 To run tests, configure with `--enable-tests`, then `cabal test`.
10757 You can specify particular tests using `--test-options='-t markdown'`.
10758 No output is shown unless tests fail. The Haskell test modules
10759 have been moved from `src/` to `tests/`.
10761 * Moved all data files and templates to the `data/` subdirectory.
10763 * Added an `embed_data_files` cabal flag. This causes all
10764 data files to be embedded in the binary, so that the binary
10765 is self-sufficient and can be relocated anywhere, copied on
10766 a USB key, etc. The Windows installer now uses this.
10767 (Since we no longer have the option to build the executable
10768 without the library, this is the only way to get a relocatable
10769 binary on Windows.)
10771 * Removed pcre3.dll from windows package.
10772 It isn't needed unless highlighting-kate is compilled with the
10773 `pcre-light` flag. By default, regex-prce-builtin is used.
10778 * Don't encode/decode file paths if base >= 4.4.
10779 Prior to base 4.4, filepaths and command line arguments were treated
10780 as unencoded lists of bytes, not unicode strings, so we had to work
10781 around that by encoding and decoding them. This commit adds CPP
10782 checks for the base version that intelligibly enable encoding/decoding
10783 when needed. Fixes a bug with multilingual filenames when pandoc was
10784 compiled with ghc 7.4 (#540).
10786 * Don't generate an empty H1 after hrule slide breaks.
10787 We now use a slide-level header with contents `[Str "\0"]` to mark
10788 an hrule break. This avoids creation of an empty H1 in these
10789 contexts. Closes #484.
10791 * Docbook reader: Added support for "bold" emphasis. Thanks to Mauro Bieg.
10793 * In make_osx_package.sh, ensure citeproc-hs is built with the
10794 embed_data_files flag.
10796 * MediaWiki writer: Avoid extra blank lines after sublists (Gavin Beatty).
10798 * ConTeXt writer: Don't escape `&`, `^`, `<`, `>`, `_`,
10799 simplified escapes for `}` and `{` to `\{` and `\}` (Aditya Mahajan).
10801 * Fixed handling of absolute URLs in CSS imports with `--self-contained`.
10804 * Added webm to mime types. Closes #543.
10806 * Added some missing exports and tests to the cabal file
10807 (Alexander V Vershilov).
10809 * Compile with `-rtsopts` and `-threaded` by default.
10813 * Markdown reader: Added `cf.` and `cp.` to list of likely abbreviations.
10815 * LaTeX template: Added `linkcolor`, `urlcolor` and `links-as-notes`
10816 variables. Make TOC links black.
10818 * LaTeX template improvements.
10820 + Don't print date unless one is given explicitly in the document.
10821 + Simplified templates.
10822 + Use fontenc [T1] by default, and lmodern.
10823 + Use microtype if available.
10827 + Add comma to beginning of bare suffix, e.g. `@item1 [50]`.
10828 Motivation: `@item1 [50]` should be as close as possible to
10830 + Added workaround for a bug in citeproc-hs 0.3.4 that causes footnotes
10831 beginning with a citation to be empty. Closes #531.
10833 * Fixed documentation on mixed lists. Closes #533.
10837 * Simplified `Text.Pandoc.Biblio` and fixed bugs with citations inside
10838 footnotes and captions. We now handle note citations by inserting
10839 footnotes during initial citation processing, and doing a separate
10840 pass later to remove notes inside notes.
10842 * Added 'zenburn' highlight style from highlighting-kate.
10844 * Added Slideous writer. Slideous is an HTML + javascript slide show
10845 format, similar to Slidy, but works with IE 7. (Jonas Smedegaard)
10849 + Ensure we don't have extra blank lines at ends of cells.
10850 This can cause LaTeX errors, as they are interpreted as new paragraphs.
10851 + More consistent interblock spacing.
10852 + Require highlighting-kate >= 0.5.1, for proper highlighted inline
10853 code in LaTeX. Closes #527.
10854 + Ensure that a Verbatim at the end of a footnote is followed by
10855 a newline. (Fixes a regression in the previous version.)
10856 + In default template, use black for internal links and TOC.
10857 Added commented-out code to use footnotes for links, as would
10858 be suitable in print output.
10860 * Beamer writer: When `--incremental` is used, lists inside
10861 a block quote should appear all at once. (This makes Beamer
10862 output consistent with the HTML slide show formats.)
10866 + Escape `%` as `\letterpercent{}` not `\letterpercent `,
10867 to avoid gobbling spaces after the `%` sign.
10868 + Ensure space after `\stopformula`.
10872 + Use `:` form instead of `~` in definition lists, for better
10873 compatibility with other markdown implementations.
10874 + Don't wrap the term, because it breaks definition lists.
10875 + Use a nonzero space to prevent false recognition
10876 of list marker in ordered lists. Closes #516.
10878 * Org writer: Add space before language name. Closes #523.
10880 * Docx writer: Simplified bullet characters so they work properly
10881 with Word 2007. Closes #520.
10883 * LaTeX reader: Support `\centerline`.
10885 * RST reader: handle figures. Closes #522.
10887 * Textile reader: fix for `<notextile>` and `==`. Closes #517.
10892 * Fixed bug in `fromEntities`. The previous version would turn
10893 `hi & low you know;` into `hi &`.
10897 + Don't skip nonbreaking spaces.
10898 Previously a paragraph containing just ` ` would be rendered
10899 as an empty paragraph. Thanks to Paul Vorbach for pointing out the bug.
10900 + Support `<col>` and `<caption>` in tables. Closes #486.
10904 + Don't recognize references inside delimited code blocks.
10905 + Allow list items to begin with lists.
10907 * Added basic docbook reader (John MacFarlane and Mauro Bieg).
10911 + Handle `\bgroup`, `\egroup`, `\begingroup`, `\endgroup`.
10912 + Control sequences can't be followed by a letter.
10913 This fixes a bug where `\begingroup` was parsed as `\begin`
10914 followed by `group`.
10915 + Parse 'dimension' arguments to unknown commands. e.g. `\parindent0pt`
10916 + Make `\label` and `\ref` sensitive to `--parse-raw`.
10917 If `--parse-raw` is selected, these will be parsed as raw latex
10918 inlines, rather than bracketed text.
10919 + Don't crash on unknown block commands (like `\vspace{10pt}`)
10920 inside `\author`; just skip them. Closes #505.
10924 + Implemented literal escapes with `==` and `<notextile>`. Closes #473.
10925 + Added support for LaTeX blocks and inlines (Paul Rivier).
10926 + Better conformance to RedCloth inline parsing (Paul Rivier).
10927 + Parse '+text+' as emphasized (should be underlined, but this
10928 is better than leaving literal plus characters in the output.
10930 * Docx writer: Fixed multi-paragraph list items. Previously they each
10931 got a list marker. Closes #457.
10935 + Added `--no-tex-ligatures` option to avoid replacing
10936 quotation marks and dashes with TeX ligatures.
10937 + Use `fixltx2e` package to provide '\textsubscript'.
10938 + Improve spacing around LaTeX block environments:
10939 quote, verbatim, itemize, description, enumerate.
10941 + Use blue instead of pink for URL links in latex/pdf output.
10943 * ConTeXt writer: Fixed escaping of `%`.
10944 In text, `%` needs to be escaped as `\letterpercent`, not `\%`
10945 Inside URLs, `%` needs to be escaped as `\%`
10946 Thanks to jmarca and adityam for the fix. Closes #492.
10948 * Texinfo writer: Escape special characters in node titles.
10949 This fixes a problem pointed out by Joost Kremers. Pandoc used
10950 to escape an '@' in a chapter title, but not in the corresponding
10951 node title, leading to invalid texinfo.
10953 * Fixed document encoding in texinfo template.
10954 Resolves Debian Bug #667816.
10958 + Don't force delimited code blocks to be flush left.
10959 Fixes bug with delimited code blocks inside lists etc.
10960 + Escape `<` and `$`.
10962 * LaTeX writer: Use `\hyperref[ident]{text}` for internal links.
10963 Previously we used `\href{\#ident}{text}`, which didn't work on
10964 all systems. Thanks to Dirk Laurie.
10966 * RST writer: Don't wrap link references. Closes #487.
10968 * Updated to use latest versions of blaze-html, mtl.
10975 + Made `lstlisting` work as a proper verbatim environment.
10976 + Fixed bug parsing LaTeX tables with one column.
10980 + Use `{}` around `ctable` caption, so that formatting can be used.
10981 + Don't require eurosym package unless document has a €.
10983 * LaTeX template: Added variables for `geometry`, `romanfont`,
10984 `sansfont`, `mathfont`, `mainfont` so users can more easily
10989 + Run latex engine at least two times, to ensure
10990 that PDFs will have hyperlinked bookmarks.
10991 + Added PDF metadata (title,author) in LaTeX standalone + PDF output.
10993 * Texinfo writer: retain directories in image paths. (Peter Wang)
10995 * RST writer: Better handling of inline formatting, in accord
10996 with docutils' "inline markup recognition rules" (though we don't
10997 implement the unicode rules fully). Now `hi*there*hi` gets
10998 rendered properly as `hi\ *there*\ hi`, and unnecessary
10999 `\ ` are avoided around `:math:`, `:sub:`, `:sup:`.
11003 + Parse `\ ` as null, not escaped space.
11004 + Allow `` :math:`...` `` even when not followed by blank
11005 or `\`. This does not implement the complex rule docutils follows,
11006 but it should be good enough for most purposes.
11007 + Add support for the rST default-role directive. (Greg Maslov)
11009 * Text.Pandoc.Parsing: Added `stateRstDefaultRole` field to `ParserState`.
11012 * Markdown reader: Properly handle citations nested in other inline
11015 * Markdown writer: don't replace empty alt in image with "image".
11017 * DZSlides: Updated template.html and styles in default template.
11018 Removed bizarre CSS for `q` in dzslides template.
11020 * Avoid repeated `id` attribute in section and header in HTML slides.
11022 * README improvements: new instructions on internal links,
11023 removed misleading note on reST math.
11027 + Fixed Windows installer so that dzslides works.
11028 + Removed stripansi.sh.
11029 + Added .travis.yml for Travis continuous integration support..
11030 + Fixed upper bound for zlib (Sergei Trofimovich).
11031 + Fixed upper bound for test-framework.
11032 + Updated haddocks for haddock-2.10 (Sergei Trofimovich).
11036 * Added `beamer+lhs` as output format.
11038 * Don't escape `<` in `<style>` tags with `--self-contained`.
11039 This fixes a bug which prevented highlighting from working
11040 when using `--self-contained`.
11042 * PDF: run latex engine three times if `--toc` specified.
11043 This fixes page numbers in the table of contents.
11045 * Docx writer: Added TableNormal style to tables.
11047 * LaTeX math environment fixes. `aligned` is now used instead of
11048 the nonexistent `aligned*`. `multline` instead of the nonexistent
11051 * LaTeX writer: Use `\textasciitilde` for literal `~`.
11053 * HTML writer: Don't escape contents of EQ tags with --gladtex.
11054 This fixes a regression from 1.8.
11056 * Use `<q>` tags for Quoted items for HTML5 output.
11057 The quote style can be changed by modifying the template
11058 or including a css file. A default quote style is included.
11060 * LaTeX reader: Fixed accents (\~{a}, `\c{c}`).
11061 Correctly handle \^{}. Support "minted" as a LaTeX verbatim block.
11063 * Updated LaTeX template for better language support.
11064 Use `polyglossia` instead of `babel` with xetex.
11065 Set `lang` as documentclass option.
11066 `\setmainlanguage` will use the last of a comma-separated
11067 list of languages. Thanks to François Gannaz.
11069 * Fixed default LaTeX template so `\euro` and `€` work. The
11070 `eurosym` package is needed if you are using pdflatex.
11072 * Fixed escaping of period in man writer (thanks to Michael Thompson).
11074 * Fixed list label positions in beamer.
11076 * Set `mainlang` variable in context writer.
11077 This parallels behavior of latex writer. `mainlang` is the last
11078 of a comma-separated list of languages in lang.
11080 * EPUB language metadat: convert e.g. `en_US` from locale to `en-US`.
11082 * Changed `-V` so that you can specify a key without a value.
11083 Such keys get the value `true`.
11085 * Fixed permissions on installed man pages - thanks Magnus Therning.
11087 * Windows installer: require XP or higher. The installer is
11088 now compiled on a Windows 7 machine, which fixes a problem
11089 using citation functions on Windows 7.
11091 * OSX package: Check for 64-bit Intel CPU before installing.
11095 * Better handling of raw latex environments in markdown. Now
11101 turns into a raw latex block as expected.
11103 * Improvements to LaTeX reader:
11105 + Skip options after block commands.
11106 + Correctly handle `{\\}` in braced.
11107 + Added a needed 'try'.
11108 + Citations: add `, ` to suffix if it doesn't start with space or
11109 punctuation. Otherwise we get no space between the year and the
11110 suffix in author-date styles.
11112 * Added two needed data files for S5. This fixes a problem with
11113 `pandoc -t s5 --self-contained`. Also removed `slides.min.js`,
11114 which was no longer being used.
11116 * Fixed some minor problems in `reference.docx`:
11117 name on "Date" style, `xCs` instead of `xIs`.
11119 * Fixed a problem creating docx files using a reference docx
11120 modified using Word. The problem seems to be that Word
11121 modifies `_rels/.rels`, changing the Type of the Relationship to
11122 `docProps/core.xml`. Pandoc now changes this back to the correct
11123 value if it has been altered, fixing the problem.
11125 * Fixed html5 template so it works properly with highlighting.
11131 + Fixed regression in 1.9; properly handle escaped $ in latex math.
11132 + Put LaTeX verse environments in blockquotes.
11136 + Limit nesting of strong/emph. This avoids exponential lookahead
11137 in parasitic cases, like `a**a*a**a*a**a*a**a*a**a*a**a*a**a*a**`.
11138 + Improved attributes syntax (inn code blocks/spans):
11139 (1) Attributes can contain line breaks. (2) Values in key-value
11140 attributes can be surrounded by either double or single quotes, or
11141 left unquoted if they contain no spaces.
11143 * Don't wrap headers in markdown or RST writers.
11145 * Added `stateMaxNestingLevel` to `ParserState`.
11146 We set this to 6, so you can still have `Emph` inside `Emph`,
11147 just not indefinitely.
11149 * More efficient implementation of `nowrap` in `Text.Pandoc.Pretty`.
11151 * `Text.Pandoc.PDF`: Only run latex twice if `\tableofcontents`
11154 * Require highlighting-kate >= 0.5.0.2, texmath >= 0.6.0.2.
11158 * Changed cabal file so that build-depends for the test program
11159 are not required unless the tests flag is used.
11161 * LaTeX writer: insert `{}` between adjacent hyphens so they don't
11162 form ligatures (dashes) in code spans.
11166 * Raised version bound on test-framework to avoid problems
11167 compiling tests on GHC 7.4.1.
11169 * LaTeX reader: Use raw LaTeX as fallback inline text for Cites,
11170 so citations don't just disappear unless you process with
11171 citeproc. Ignore `\bibliographystyle`, `\nocite`.
11173 * Simplified tex2pdf; it will always run latex twice to
11174 resolve table of contents and hyperrefs.
11178 * Require Cabal >= 1.10.
11179 * Tweaked cabal file to meet Cabal 1.10 requirements.
11183 * Allow build with json 0.4 or 0.5. Otherwise we can't build with
11190 * Added a Microsoft Word `docx` writer. The writer includes support
11191 for highlighted code and for math (which is converted from TeX to OMML,
11192 Office's native math markup language, using texmath's new OMML module).
11193 A new option `--reference-docx` allows the user to customize the
11196 * Added an `asciidoc` writer (<http://www.methods.co.nz/asciidoc/>).
11198 * Better support for slide shows:
11200 + Added a `dzslides` writer. DZSlides is a lightweight HTML5/javascript
11201 slide show format due to Paul Rouget (<http://paulrouget.com/dzslides/>).
11203 + Added a LaTeX `beamer` writer. Beamer is a LaTeX package for creating
11204 slide presentations.
11206 + New, flexible rules for dividing documents into sections and slides
11207 (see the "Structuring the slide show" in the User's Guide). These
11208 are backward-compatible with the old rules, but they allow slide
11209 shows to be organized into sections and subsections containing
11212 + A new `--slide-level` option allows users to override defaults
11213 and select a slide level below the first header level with content.
11215 * A new `--self-contained` option produces HTML output that does not
11216 depend on an internet connection or the presence of any external
11217 files. Linked images, CSS, and javascript is downloaded (or fetched
11218 locally) and encoded in `data:` URIs. This is useful for making portable
11219 `HTML slide shows. The --offline` option has been deprecated and is now
11220 `treated as a synonym or --self-contained`.
11222 * Support for PDF output:
11224 + Removed the old `markdown2pdf`.
11225 + `pandoc` can now create PDFs (assuming you have latex and a set of
11226 appropriate packages installed): just specify an output file with the
11228 + A new option `--latex-engine` allows you to specify `pdflatex`,
11229 `xelatex`, or `lualatex` as the processor.
11231 * Highlighting changes:
11233 + Syntax highlighting is now a standard feature; the `highlighting`
11234 flag is no longer needed when compiling.
11235 + A new `--no-highlight` option allows highlighting to be disabled.
11236 + Highlighting now works in `docx`, `latex`, and `epub`, as well as
11237 `html`, `html5`, `dzslides`, `s5`, and `slidy`.
11238 + A new `--highlight-style` option selects between various highlighting
11241 * Internal links to sections now work in ConTeXt and LaTeX as well as HTML.
11243 * LaTeX `\include` and `\usepackage` commands are now processed,
11244 provided the files are in the working directory.
11246 * EPUB improvements:
11248 + Internal and external links now work in EPUB.
11249 + Raw HTML is allowed.
11250 + New `--epub-embed-font` option.
11251 + Customizable templates for EPUB pages offer more control over
11252 formatting: `epub-page.html`, `epub-coverimage.html`,
11253 `epub-titlepage.html`.
11255 * `--mathml` now works with DocBook.
11257 * Added support for math in RST reader and writer. Inline math uses the
11258 `` :math:`...` `` construct. Display math uses
11262 or if the math is multiline,
11268 These constructions are now supported now by `rst2latex.py`.
11270 * GitHub syntax for fenced code blocks is supported in pandoc's
11271 markdown. You can now write
11283 * Easier scripting: a new `toJsonFilter` function makes it easier to
11284 write Haskell scripts to manipulate the Pandoc AST.
11288 * Fixed parsing of consecutive lists in markdown.
11289 Pandoc previously behaved like Markdown.pl for consecutive
11290 lists of different styles. Thus, the following would be parsed
11291 as a single ordered list, rather than an ordered list followed
11292 by an unordered list:
11300 This change makes pandoc behave more sensibly, parsing this as
11301 two lists. Any change in list type (ordered/unordered) or in
11302 list number style will trigger a new list. Thus, the following
11303 will also be parsed as two lists:
11311 Since we regard this as a bug in Markdown.pl, and not something
11312 anyone would ever rely on, we do not preserve the old behavior
11313 even when `--strict` is selected.
11315 * Dashes work differently with `--smart`: `---` is always em-dash,
11316 and `--` is always en-dash. Pandoc no longer tries to guess when
11317 `-` should be en-dash. *Note:* This may change how existing documents
11318 look when processed with pandoc. A new option, `--old-dashes`,
11319 is provided for legacy documents.
11321 * The markdown writer now uses setext headers for levels 1-2.
11322 The old behavior (ATX headers for all levels) can be restored
11323 using the new `--atx-headers` option.
11325 * Links are now allowed in markdown image captions. They are also
11326 allowed in links, but will appear there as regular text. So,
11328 [link with [link](/url)](/url)
11332 <p><a href="/url">link with link</a></p>
11334 * Improved handling of citations using `citeproc-hs-0.3.4`.
11335 Added `--citation-abbreviations` option.
11337 * Citation keys can no longer end with a punctuation character.
11338 This means that `@item1.` will be parsed as a citation with key
11339 'item1', followed by a period, instead of a citation with key
11340 'item1.', as was the case previously.
11342 * In HTML output, citations are now put in a span with class `citation`.
11344 * The markdown reader now recognizes DocBook block and inline tags.
11345 It was always possible to include raw DocBook tags in a markdown
11346 document, but now pandoc will be able to distinguish block from
11347 inline tags and behave accordingly. Thus, for example,
11353 will not be wrapped in `<para>` tags.
11355 * The LaTeX parser has been completely rewritten; it is now much more
11356 accurate, robust, and extensible. However, there are two important
11357 changes in how it treats unknown LaTeX. (1) Previously, unknown
11358 environments became BlockQuote elements; now, they are treated
11359 as "transparent", so `\begin{unknown}xyz\end{unknown}` is the
11360 same as `xyz`. (2) Previously, arguments of unknown commands
11361 were passed through with their braces; now the braces are stripped
11364 * `--smart` is no longer selected automatically with `man` output.
11366 * The deprecated `--xetex` option has been removed.
11368 * The `--html5`/`-5` option has been deprecated. Use `-t html5`
11369 instead. `html5` and `html5+lhs` are now separate output formats.
11371 * Single quotes are no longer escaped in HTML output. They do not
11372 need to be escaped outside of attributes.
11374 * Pandoc will no longer transform leading newlines in code
11375 blocks to `<br/>` tags.
11377 * The ODT writer now sizes images appropriately, using the image
11378 size and DPI information embedded in the image.
11380 * `--standalone` is once again implicitly for a non-text output format
11381 (ODT, EPUB). You can again do `pandoc test.txt -o test.odt`
11382 and get a standalone ODT file.
11384 * The Docbook writer now uses `<sect1>`, `<sect2>`, etc. instead of
11387 * The HTML writer now uses `<del>` for strikeout.
11389 * In HTML output with `--section-divs`, the classes `section` and
11390 `level[1,2,..6]` are put on the `div` tags so they can be styled.
11391 In HTML 5 output with `--section-divs`, the classes
11392 `level[1,2,...6]` are put on `section` tags.
11394 * EPUB writer changes:
11396 + The `lang` variable now sets the language
11397 in the metadata (if it is not set, we default to the locale).
11398 + EPUB: UTF-8 is used rather than decimal entities.
11400 * Added `titleslide` class to title slide in S5 template.
11402 * In HTML, EPUB, and docx metadata, the date is normalized into
11403 YYYY-MM-DD format if possible. (This is required for validation.)
11405 * Attributes in highlighted code blocks are now preserved in HTML.
11406 The container element will have the classes, id, and key-value attributes
11407 you specified in the delimited code block. Previously these were stripped
11410 * The reference backlink in the HTML writer no longer has a special
11411 `footnoteBacklink` class.
11413 * The HTML template has been split into `html` and `html5` templates.
11415 * Author and date are treated more consistently in HTML templates.
11416 Authors are now `<h2>`, date `<h3>`.
11418 * URLs are hyphenated in the ConTeXt writer (B. Scott Michel).
11420 * In `Text.Pandoc.Builder`, `+++` has been replaced by `<>`.
11424 * Better support for combining characters and East Asian wide characters
11425 in markdown and reST.
11427 * Better handling of single quotes with `--smart`.
11428 Previously `D'oh l'*aide*` would be parsed with left and right single
11429 quotes instead of apostrophes. This kind of error is now fixed.
11431 * Highlighting: Use `reads` instead of `read` for better error handling.
11432 Fixes crash on `startNum="abc"`.
11434 * Added blank comment after directives in rst template.
11436 * Unescape entities in citation `refId`. The `refId`s coming
11437 from citeproc contain XML numeric entities, and these don't match with the
11438 citation keys parsed by pandoc. Solution is to unescape them.
11440 * HTML reader: Fixed bug parsing tables with both thead and tbody.
11444 + Better handling of escapes in link URLs and titles.
11445 + Fixed backslash escapes in reference links.
11446 + Fixed bug in table/hrule parsing, by checking that the top
11447 line of a table is not followed by a blank line. This bug caused
11448 slowdowns on some files with hrules and tables, as pandoc tried to
11449 interpret the hrules as the tops of multiline tables.
11450 + Fixed bug in code block attribute parser. Previously the ID attribute
11451 got lost if it didn't come first. Now attributes can come in any order.
11453 * RST reader: allow footnotes followed by newline without space characters.
11457 + Ignore empty groups {}, { }.
11458 + LaTeX reader: Handle \@.
11459 + LaTeX reader: Don't crash on commands like `\itemsep`.
11460 + LaTeX reader: Better handling of letter environments.
11462 * RST writer: Fixed bug involving empty table cells. isSimple was being
11463 calculated in a way that assumed there were no non-empty cells.
11467 + Made `--toc` work even without `--number-sections`.
11468 + Escape # in link URLs.
11469 + Use buffering for footnotes containing code blocks.
11470 + Changed 'descr' to 'description', fixed alignment.
11474 + Escape euro character.
11475 + Don't escape ~ inside href{...}.
11476 + Escape # in href URLs.
11477 + Improved detection of book classes. We now check the
11478 `documentclass` variable, and if that is not set, we look through
11479 the template itself. Also, we have added the KOMA classes scrreprt
11480 and scrbook. You can now make a book using
11481 `pandoc -V documentclass:book mybook.txt -o mybook.pdf`
11482 + LHS files now set the "listings" variable, so that the definition
11483 of the `code` environment will be included in the template.
11484 + Links are colored blue by default (this can be changed by
11485 modifying `hyperref` settings in the template).
11486 + Added `lang` variable to LaTeX template.
11490 + Fixed bug in HTML template with html5 and mathml.
11491 + Don't use self-closing img, br, hr tags for HTML5.
11492 + Use `<section>` for footnotes if HTML5.
11493 + Update HTML templates to use Content-Style-Type meta tag.
11494 + Use separate variables for meta-date, meta-author.
11495 This makes footnotes work in author and date fields.
11496 + Use 'vertical-align:middle' in WebTeX math for better alignment.
11498 * S5/slidy writer: Make footnotes appear on separate slide at end.
11500 * MIME: Added 'layout-cache' to getMimeType. This ensures that the
11501 META-INF/manifest.xml for ODT files will have everything it needs, so
11502 that ODT files modified by LibreOffice can be used as `--reference-odt`.
11504 * `Text.Pandoc.Templates`: Return empty string for json template.
11506 * `Text.Pandoc.Biblio`:
11508 + Expand citations recursively inside nested inlines.
11509 + Treat `\160` as space when parsing locator and suffix.
11510 This fixes a bug with "p. 33" when `--smart` is used. Previously
11511 the whole "p. 33" would be included in the suffix, with no locator.
11512 + Put whole author-in-text citation in a Cite. Previously just the
11513 date and other info went in the Cite.
11514 + Don't add comma+space to prefix if it ends in punctuation.
11516 * Updated chicago-author-date.csl. The old version did not work
11517 properly for edited volumes with no author.
11521 + Add date to EPUB titlepage and metadata.
11522 + Added TOC identifier in EPUB page template.
11523 + Don't generate superfluous file `cover-image.jpg`.
11525 [under the hood improvements]
11527 * Modified `make_osx_package.sh` to use cabal-dev.
11528 Items are no longer installed as root.
11529 Man pages are zipped and given proper permissions.
11531 * Modified windows installer generator to use cabal-dev.
11533 * Setup: Making man pages now works with cabal-dev (at least on OSX). In
11534 Setup.hs we now invoke 'runghc' in a way that points it to the correct
11535 package databases, instead of always falling back to the default user
11538 * Updated to work with GHC 7.4.1.
11540 * Removed dependency on old-time.
11542 * Removed dependency on dlist.
11544 * New slidy directory for "self-contained."
11546 * TeXMath writer: Use unicode thin spaces for thin spaces.
11548 * Markdown citations: don't strip off initial space in locator.
11552 * Removed `Apostrophe`, `EmDash`, `EnDash`, and `Ellipses`
11553 from the native `Inline` type in pandoc-types. Now we use `Str`
11554 elements with unicode.
11556 * Improvements to `Text.Pandoc.Builder`:
11558 + `Inlines` and `Blocks` are now newtypes (not synonyms for
11560 + Instances are defined for `IsString`, `Show`, `Read`, `Monoid`,
11561 and a new `Listable` class, which allows these to be manipulated
11562 to some extent like lists. Monoid append includes automatic
11564 + `+++` has been replaced by `<>` (mappend).
11566 * Use blaze-html instead of xhtml for HTML generation.
11567 This changes the type of `writeHtml`.
11569 * `Text.Pandoc.Shared`:
11571 + Added `warn` and `err`.
11572 + Removed `unescapeURI`, modified `escapeURI`.
11573 (See under [behavior changes], above.)
11575 * Changes in URI escaping: Previously the readers escaped URIs by
11576 converting unicode characters to octets and then percent encoding.
11577 Now unicode characters are left as they are, and `escapeURI` only
11578 percent-encodes space characters. This gives more readable
11579 URIs, and works well with modern user agents. URIs are no longer unescaped
11580 at all on conversion to `markdown`, `asciidoc`, `rst`, `org`.
11582 * New module `Text.Pandoc.SelfContained`.
11584 * New module `Text.Pandoc.Docx`.
11586 * New module `Text.Pandoc.PDF`.
11588 * Added `writerBeamer` to `WriterOptions`.
11590 * Added `normalizeDate` to `Text.Pandoc.Shared`.
11592 * Added `splitStringWithIndices` in `Text.Pandoc.Shared`.
11593 This is like `splitWithIndices`, but it is sensitive to distinctions
11594 between wide, combining, and regular characters.
11596 * `Text.Pandoc.Pretty`:
11598 + Added `chomp` combinator.
11599 + Added `beforeNonBreak` combinator. This allows you to include
11600 something conditionally on it being before a nonblank.
11601 Used for RST inline math.
11602 + Added `charWidth` function. All characters marked W or F in the unicode
11603 spec EastAsianWidth.txt get width 2.
11604 + Added `realLength`, based on `charWidth`. `realLength` is now
11605 used in calculating offsets.
11607 * New module `Text.Pandoc.Slides`, for common functions for breaking
11608 a document into slides.
11610 * Removed `Text.Pandoc.S5`, which is no longer needed.
11612 * Removed `Text.Pandoc.CharacterReferences`. Moved
11613 `characterReference` to `Text.Pandoc.Parsing`.
11614 `decodeCharacterReferences` is replaced by `fromEntities`
11615 in `Text.Pandoc.XML`.
11617 * Added `Text.Pandoc.ImageSize`. This is intened for use
11618 in `docx` and `odt` writers, so the size and dpi of images
11621 * Removed `writerAscii` in `WriterOptions`.
11623 * Added `writerHighlight` to `WriterOptions`.
11625 * Added `DZSlides` to `HTMLSlideVariant`.
11627 * `writeEPUB` has a new argument for font files to embed.
11629 * Added `stateLastStrPos` to `ParserState`. This lets us keep track
11630 of whether we're parsing the position immediately after a regular
11631 (non-space, non-symbol) string, which is useful for distinguishing
11632 apostrophes from single quote starts.
11634 * `Text.Pandoc.Parsing`:
11636 + `escaped` now returns a `Char`.
11637 + Removed `charsInBalanced'`, added a character parser as
11638 a parameter of `charsInBalanced`. This is needed for
11639 proper handling of escapes, etc.
11642 * Added `toEntities` to `Text.Pandoc.XML`.
11644 * `Text.Pandoc.Readers.LaTeX`:
11646 + Export `handleIncludes`.
11647 + Export `rawLaTeXBlock` instead of `rawLaTeXEnvironment'`.
11649 * Added `ToJsonFilter` class and `toJsonFilter` function to
11650 `Text.Pandoc`, deprecating the old `jsonFilter` function.
11652 * `Text.Pandoc.Highlighting`:
11654 + Removed `highlightHtml`, `defaultHighlightingCss`.
11655 + Export `formatLaTeXInline`, `formatLaTeXBlock`, and `highlight`, plus
11656 key functions from highlighting-kate.
11657 + Changed types of highlighting function. `highlight` returns a
11658 `Maybe`, not an `Either`.
11662 * Relaxed cabal consntraints for test-framework (S. Trofimovich).
11664 * Relaxed cabal constraints for pandoc-types.
11666 * Adjusted Arbitrary instance to help avoid timeouts in tests.
11668 * Added `Tests.Writers.Markdown` to cabal file.
11672 * Added script to produce OS X package.
11674 * Made `templates` directory a git submodule. This should make it
11675 easier for people to revise their custom templates when the default
11678 * Changed template naming scheme: `FORMAT.template` -> `default.FORMAT`.
11679 **Note:** If you have existing templates in `~/.pandoc/templates`, you
11680 must rename them to conform to the new scheme!
11682 * Fixed smart quotes bug, now handling `'...hi'` properly.
11686 + Partial support for labeled footnotes.
11687 + Improved accuracy of `simpleReferenceName` parser.
11691 + Substitute correct unicode characters for
11692 characters in the 128..159 range, which are often found even in
11693 HTML that purports to be UTF-8.
11695 * LaTeX reader: Handle `\subtitle` command (a subtitle is added
11696 to the title, after a colon and linebreak). Closes #280.
11698 * Leaner `reference.odt`.
11700 * Added unexported module `Text.Pandoc.MIME` for use in
11703 * ODT writer: Construct `manifest.xml` based on archive contents.
11704 This fixes a bug in ODTs containing images. Recent versions of
11705 LibreOffice would reject these as corrupt, because `manifest.xml`
11706 did not contain a reference to the image files.
11710 + Make verbatim environments flush to avoid spurious
11711 blank lines. Closes #277.
11712 + Use `\texttt` and escapes insntead of `\verb!...!`, which
11713 is too fragile (doesn't work in command arguments).
11714 + Use `\enquote{}` for quotes if the template includes
11715 the `csquotes` package. This provides better support for
11716 local quoting styles. (Thanks to Andreas Wagner for the idea.)
11718 * ConTeXt writer: Make `\starttyping`/`\stoptyping` flush with
11719 margin, preventing spurious blank lines.
11723 + Use non-minimized version of `slidy.css` with `--offline`
11724 option, so users can more easily edit it.
11725 + Also fixed a bug in the CSS that prevented proper centering
11726 of title (now reported and fixed upstream).
11730 + Replaced `s5/default/slides.js.{comment,packed}` with
11731 new compressed `s5/default/slides.min.js`.
11732 + Use `data:` protocol to embed S5 CSS in `<link>` tags,
11733 when `--offline` is specified. Using inline CSS didn't
11734 work with Chrome or Safari. This fixes offline
11735 S5 on those browsers.
11737 * HTML writer: Removed English title on footnote backlinks.
11738 This is incongrous in non-English documents.
11742 + Use CALS tables. (Some older docbook software does not work
11743 well with XHTML tables.) Closes #77.
11744 + Use `programlisting` tags (instead of `screen`) for code blocks.
11748 + Calls latex with `-halt-on-error -interaction nonstopmode` instead
11749 of `-interaction=batchmode`, which essentially just ignored errors,
11750 leading to bad results. Better to know when something is wrong.
11751 + Fixed issues with non-UTF-8 output of `pdflatex`.
11752 + Better error reporting.
11754 * `--mathjax` now takes an optional URL argument. If it is not
11755 provided, pandoc links directly to the (secure) mathjax CDN,
11756 as now recommended (thanks to dsanson).
11758 * Deprecated `--xetex` option in `pandoc`. It is no longer needed,
11759 since the LaTeX writer now produces a file that can be processed by
11760 `latex`, `pdflatex`, `lualatex`, or `xelatex`.
11762 * Introduced `--luatex` option to `markdown2pdf`. This causes `lualatex`
11763 to be used to create the PDF.
11765 * If a template specified with `--template` is not found, look for it
11766 in `datadir`. Also, if no extension is provided, supply one based
11767 on the writer. So now you can put your `special.latex` template in
11768 `~/.pandoc/templates`, and use it from any directory via
11769 `pandoc -t latex --template special`.
11771 * Default template improvements:
11773 + HTML: Display author and date after title.
11774 + HTML: Made table of contents more customizable. The container
11775 for the TOC is now in the template, so users can insert a header
11776 or other styling. (Thanks to Bruce D'Arcus for the suggestion.)
11777 + HTML, Slidy, S5: Enclose scripts in CDATA tags.
11778 + Slidy, S5: Added `s5-url` and `slidy-url` variables, instead of
11779 hard-coding. If you want to put your slidy files in the slidy
11780 subdirectory, for example, you can do
11781 `pandoc -t slidy -V slidy-url=slidy -s`.
11782 + LaTeX: Use `\and` to separate authors in LaTeX documents (reader
11783 & writer). Closes #279.
11784 + LaTeX: Use different `hyperref` options for `xetex`, fixing
11785 problems with unicode bookmarks (thanks to CircleCode).
11786 + LaTeX: Removed `ucs` package, use `utf8` rather than `utf8x`
11787 with `inputenc`. This covers fewer characters but is more
11788 robust with other packages, and `ucs` is unmaintained. Users
11789 who need better unicode support should use xelatex or lualatex.
11793 * Added `--epub-cover-image` option.
11795 * Documented `--biblatex` and `--natbib` options.
11797 * Allow `--section-divs` with slidy output. Resolves Issue #296.
11799 * Disallow notes within notes in reST and markdown.
11800 These previously caused infinite looping and stack overflows.
11807 Note references are allowed in reST notes, so this isn't a full
11808 implementation of reST. That can come later. For now we need to
11809 prevent the stack overflows. Partially resolves Issue #297.
11811 * EPUB writer: Allow non-plain math methods.
11813 * Forbid ()s in citation item keys. Resolves Issue #304: problems with
11814 `(@item1; @item2)` because the final paren was being parsed as part of
11817 * Changed URI parser so it doesn't include trailing punctuation.
11818 So, in RST, `http://google.com.` should be parsed as a link followed by a
11819 period. The parser is smart enough to recognize balanced parentheses, as
11820 often occur in wikipedia links: `http://foo.bar/baz_(bam)`.
11822 * Markdown+lhs reader: Require space after inverse bird tracks, so that
11823 HTML tags can be used freely at the left margin of a markdown+lhs document.
11824 Thanks to Conal Elliot for the suggestion.
11828 + Improved emph/strong parsing; fixes bug found by Perry Wagle.
11829 + Fixed bug in footnote order (reported by CircleCode).
11832 + Fixed bug in in field lists with multi-line items at the
11834 + Added parentheses to RST `specialChars`, so
11835 `(http://google.com)` will be parsed as a link in parens.
11836 Resolves Issue #291.
11837 + Allow `|` followed by newline in RST line block.
11841 + Gobble option & space after linebreak `\\[10pt]`.
11844 + Make it possible to have colons after links. (qerub)
11845 + Make it possible to have colons after links. (Christoffer Sawicki)
11848 + Skip spaces after `<b>`, `<emph>`, etc.
11849 + Handle tbody, thead in simple tables. Closes #274.
11850 + Implicit `Para`s instead of `Plains` in some contexts.
11852 * OpenDocument writer: Use special `First paragraph` style for
11853 first paragraph after most non-paragraph blocks. This allows users to
11854 specify e.g. that only paragraphs after the first paragraph of a block are
11855 to be indented. Thanks to Andrea Rossato for the patch. Closes #20.
11857 * LaTeX writer: use `deVerb` on table and picture captions.
11858 Otherwise LaTeX complains about `\verb` inside command argument.
11859 Thanks to bbanier for reporting the bug.
11861 * Markdown writer: Insert HTML comment btw list and indented code block.
11862 This prevents the code block from being interpreted as part of the list.
11864 * EPUB writer: Add a meta element specify the cover.
11865 Some EPUB e-readers, such as the Nook, require a meta element inside the
11866 OPF metadata block to ensure the cover image is properly displayed.
11869 * HTML writer: Use embed tag for images with non-image extensions.
11870 (e.g. PDFs). Closes #264.
11872 * LaTeX writer: Improved tables.
11874 + More space between lines, top-align cells.
11875 + Use ctable package, which allows footnotes and
11876 provides additional options.
11877 + Made cell alignments work in multiline tables.
11878 + Closes #271, #272.
11880 * Un-URI-escape image filenames in LaTeX, ConTeXt, RTF, Texinfo.
11881 Also do this when copying image files into EPUBs and ODTs.
11884 * Changed to github issue tracker.
11886 * Added failing emph/strong markdown test case due to Perry Wagle.
11888 * Slidy improvements:
11889 + Updated to use Slidy2.
11890 + Fixed bug, unclosed div tag.
11891 + Added `duration` variable in template.
11892 Setting this activates the timer.
11893 + Use 'titlepage' instead of 'cover' for title div.
11897 * `markdown2pdf`: Removed some debugging lines accidentally included
11898 in the 1.8.1 release. With those lines, the temp directory is created
11899 in the working directory, and it is not deleted. This fix restores
11900 the original behavior.
11904 * Added `--ascii` option. Currently supported only in HTML writer,
11905 which it causes to use numerical entities instead of UTF-8.
11907 * EPUB writer: `--toc` now works to provide a table of contents
11908 at the beginning of each chapter.
11910 * LaTeX writer: Change figure defaults to `htbp`.
11911 This prevents "too many unprocessed floats." Resolves
11914 * `Text.Pandoc.UTF8`: Encode filenames even when using recent
11917 * `markdown2pdf`: Fixed filename encoding issues. With help from Paulo
11918 Tanimoto. Resolves Issue #286.
11920 * HTML writer: Put line breaks in section divs.
11922 * `Text.Pandoc.Shared`: Make `writerSectionDivs` default to False.
11926 * Fixed Source-repository stanza in cabal file.
11932 + Stringify alt text instead of converting to HTML.
11933 + Break lines after block elements, not inside tags.
11934 HTML output now closely resembles that of tidy. Resolves Issue #134.
11936 * Markdown reader: Fixed bug in footnote block parser (pointed out
11937 by Jesse Rosenthal). The problem arose when the blank line
11938 at the end of a footnote block contained indenting spaces.
11940 * Shared: Improved 'normalize' function so it normalizes Spaces too.
11941 In normal form, Space elements only occur to separate two non-Space
11942 elements. So, we never have [Space], or [, ..., Space].
11946 + Improved Arbitrary instance.
11947 + Added timeout for test instances.
11951 + Added section on four-space rule for lists. Resolves Issue #283.
11952 + Clarified optional arguments on math options.
11954 * markdown2pdf: Fixed bug with output file extensions.
11955 Previously `markdown2pdf test.txt -o test.en.pdf` would produce
11956 `test.pdf`, not `test.en.pdf`. Thanks to Paolo Tanimoto for the fix.
11960 * Revised Interact.hs so that it works with the CPP macros
11961 in the UTF8 module.
11963 * Revised Setup.hs so that we don't call MakeManPage.hs unless
11964 the man pages are out of date.
11970 * Support for citations using Andrea Rossato's `citeproc-hs` 0.3.
11971 You can now write, for example,
11973 Water is wet [see @doe99, pp. 33-35; also @smith04, ch. 1].
11975 and, when you process your document using `pandoc`, specifying
11976 a citation style using `--csl` and a bibliography using `--bibliography`,
11977 the citation will be replaced by an appropriately formatted
11978 citation, and a list of works cited will be added to the end
11981 This means that you can switch effortlessly between different citation
11982 and bibliography styles, including footnote, numerical, and author-date
11983 formats. The bibliography can be in any of the following formats: MODS,
11984 BibTeX, BibLaTeX, RIS, EndNote, EndNote XML, ISI, MEDLINE, Copac, or JSON.
11985 See the README for further details.
11987 Citations are supported in the markdown reader, using a special
11988 syntax, and in the LaTeX reader, using natbib or biblatex syntax.
11989 (Thanks to Nathan Gass for the natbib and biblatex support.)
11991 * New `textile` reader and writer. Thanks to Paul Rivier for contributing
11992 the `textile` reader, an almost complete implementation of the textile
11993 syntax used by the ruby [RedCloth library](http://redcloth.org/textile).
11994 Resolves Issue #51.
11996 * New `org` writer, for Emacs Org-mode, contributed by Puneeth Chaganti.
11998 * New `json` reader and writer, for reading and writing a JSON
11999 representation of the native Pandoc AST. These are much faster
12000 than the `native` reader and writer, and should be used for
12001 serializing Pandoc to text. To convert between the JSON representation
12002 and native Pandoc, use `encodeJSON` and `decodeJSON` from
12003 `Text.JSON.Generic`.
12005 * A new `jsonFilter` function in `Text.Pandoc` makes it easy
12006 to write scripts that transform a JSON-encoded pandoc document.
12009 -- removelinks.hs - removes links from document
12011 main = interact $ jsonFilter $ bottomUp removeLink
12012 where removeLink (Link xs _) = Emph xs
12015 To use this to remove links while translating markdown to LaTeX:
12017 pandoc -t json | runghc removelinks.hs | pandoc -f json -t latex
12019 * Attributes are now allowed in inline `Code` elements, for example:
12021 In this code, `ulist ! [theclass "special"] << elts`{.haskell} is...
12023 The attribute syntax is the same as for delimited code blocks.
12024 `Code` inline has an extra argument place for attributes, just like
12025 `CodeBlock`. Inline code will be highlighted in HTML output, if pandoc
12026 is compiled with highlighting support. Resolves Issue #119.
12028 * New `RawBlock` and `RawInline` elements (replacing `RawHtml`,
12029 `HtmlInline`, and `TeX`) provide lots of flexibility in writing
12030 scripts to transform Pandoc documents. Scripts can now change
12031 how each element is rendered in each output format.
12033 * You can now define LaTeX macros in markdown documents, and pandoc
12034 will apply them to TeX math. For example,
12036 \newcommand{\plus}[2]{#1 + #2}
12039 yields `3+4`. Since the macros are applied in the reader, they
12040 will work in every output format, not just LaTeX.
12042 * LaTeX macros can also be used in LaTeX documents (both in math
12043 and in non-math contexts).
12045 * A new `--mathjax` option has been added for displaying
12046 math in HTML using MathJax. Resolves issue #259.
12048 * Footnotes are now supported in the RST reader. (Note, however,
12049 that unlike docutils, pandoc ignores the numeral or symbol used in
12050 the note; footnotes are put in an auto-numbered ordered list.)
12051 Resolves Issue #258.
12053 * A new `--normalize` option causes pandoc to normalize the AST
12054 before writing the document. This means that, for example,
12055 `*hi**there*` will be rendered as `<em>hithere</em>`
12056 instead of `<em>hi</em><em>there</em>`. This is not the default,
12057 because there is a significant performance penalty.
12059 * A new `--chapters` command-line option causes headers
12060 in DocBook, LaTeX, and ConTeXt to start with "chapter" (level one).
12061 Resolves Issue #265.
12063 * In DocBook output, `<chapter>` is now used for top-level
12064 headers if the template contains `<book>`. Resolves Issue #265.
12066 * A new `--listings` option in `pandoc` and `markdown2pdf` causes
12067 the LaTeX writer to use the listings package for code blocks.
12068 (Thanks to Josef Svennigsson for the pandoc patch, and Etienne
12069 Millon for the markdown2pdf patch.)
12071 * `markdown2pdf` now supports `--data-dir`.
12073 * URLs in autolinks now have class "url" so they can be styled.
12075 * Improved prettyprinting in most formats. Lines will be wrapped
12076 more evenly and duplicate blank lines avoided.
12078 * New `--columns` command-line option sets the column width for
12079 line wrapping and relative width calculations for tables.
12081 * Made `--smart` work in HTML, RST, and Textile readers, as well
12084 * Added `--html5` option for HTML5 output.
12086 * Added support for listings package in LaTeX reader
12087 (Puneeth Chaganti).
12089 * Added support for simple tables in the LaTeX reader.
12091 * Added support for simple tables in the HTML reader.
12093 * Significant performance improvements in many readers and writers.
12095 [API and program changes]
12097 * Moved `Text.Pandoc.Definition` from the `pandoc` package to a new
12098 auxiliary package, `pandoc-types`. This will make it possible for other
12099 programs to supply output in Pandoc format, without depending on the whole
12102 * Added `Attr` field to `Code`.
12104 * Removed `RawHtml`, `HtmlInline`, and `TeX` elements; added generic
12105 `RawBlock` and `RawInline`.
12107 * Moved generic functions to `Text.Pandoc.Generic`. Deprecated
12108 `processWith`, replacing it with two functions, `bottomUp` and `topDown`.
12109 Removed previously deprecated functions `processPandoc` and `queryPandoc`.
12111 * Added `Text.Pandoc.Builder`, for building `Pandoc` structures.
12113 * `Text.Pandoc` now exports association lists `readers` and `writers`.
12115 * Added `Text.Pandoc.Readers.Native`, which exports `readNative`.
12116 `readNative` can now read full pandoc documents, block lists, blocks,
12117 inline lists, or inlines. It will interpret `Str "hi"`
12118 as if it were `Pandoc (Meta [] [] []) [Plain [Str "hi"]]`.
12119 This should make testing easier.
12121 * Removed deprecated `-C/--custom-header` option.
12122 Use `--template` instead.
12124 * `--biblio-file` has been replaced by `--bibliography`.
12125 `--biblio-format` has been removed; pandoc now guesses the format
12126 from the file extension (see README).
12128 * pandoc will treat an argument as a URI only if it has an
12129 `http(s)` scheme. Previously pandoc would treat some
12130 Windows pathnames beginning with `C:/` as URIs.
12132 * The `--sanitize-html` option and the `stateSanitize` field in
12133 `ParserState` have been removed. Sanitization is better done in the
12134 resulting HTML using `xss-sanitize`, which is based on pandoc's
12135 sanitization, but improved.
12137 * pandoc now adds a newline to the end of its output in fragment
12138 mode (= not `--standalone`).
12140 * Added support for `lang` in `html` tag in the HTML template,
12141 so you can do `pandoc -s -V lang=es`, for example.
12143 * `highlightHtml` in `Text.Pandoc.Highlighting` now takes
12144 a boolean argument that selects between "inline" and
12147 * `Text.Pandoc.Writers.RTF` now exports `rtfEmbedImage`.
12148 Images are embedded in RTF output when possible (png, jpeg).
12149 Resolves Issue #275.
12151 * Added `Text.Pandoc.Pretty`. This is better suited for pandoc than the
12152 `pretty` package. Changed all writers that used
12153 `Text.PrettyPrint.HughesPJ` to use `Text.Pandoc.Pretty` instead.
12155 * Rewrote `writeNative` using the new prettyprinting module. It is
12156 now much faster. The output has been made more consistent and compressed.
12157 `writeNative` is also now sensitive to writerStandalone`, and will simply
12158 `print a block list if writerStandalone` is False.
12160 * Removed `Text.Pandoc.Blocks`. `Text.Pandoc.Pretty` allows you to define
12161 blocks and concatenate them, so a separate module is no longer needed.
12163 * `Text.Pandoc.Shared`:
12165 + Added `writerColumns`, `writerChapters`, and `writerHtml5` to
12167 + Added `normalize`.
12168 + Removed unneeded prettyprinting functions:
12169 `wrapped`, `wrapIfNeeded`, `wrappedTeX`, `wrapTeXIfNeeded`, `hang'`,
12170 `BlockWrapper`, `wrappedBlocksToDoc`.
12171 + Made `splitBy` take a test instead of an element.
12172 + Added `findDataFile`, refactored `readDataFile`.
12173 + Added `stringify`. Rewrote `inlineListToIdentifier` using `stringify`.
12174 + Fixed `inlineListToIdentifier` to treat '\160' as ' '.
12176 * `Text.Pandoc.Readers.HTML`:
12178 + Removed `rawHtmlBlock`, `anyHtmlBlockTag`, `anyHtmlInlineTag`,
12179 `anyHtmlTag`, `anyHtmlEndTag`, `htmlEndTag`, `extractTagType`,
12180 `htmlBlockElement`, `htmlComment`
12181 + Added `htmlTag`, `htmlInBalanced`, `isInlineTag`, `isBlockTag`,
12184 * Moved `smartPunctuation` from `Text.Pandoc.Readers.Markdown`
12185 to `Text.Pandoc.Readers.Parsing`, and parameterized it with
12188 * Added `nonspaceChar` to `Text.Pandoc.Parsing`.
12190 * Ellipses are no longer allowed to contain spaces.
12191 Previously we allowed '. . .', ' . . . ', etc. This caused
12192 too many complications, and removed author's flexibility in
12193 combining ellipses with spaces and periods.
12195 * Allow linebreaks in URLs (treat as spaces). Also, a string of
12196 consecutive spaces or tabs is now parsed as a single space. If you have
12197 multiple spaces in your URL, use `%20%20`.
12199 * `Text.Pandoc.Parsing`:
12201 + Removed `refsMatch`.
12202 + Hid `Key` constructor.
12203 + Removed custom `Ord` and `Eq` instances for `Key`.
12204 + Added `toKey` and `fromKey` to convert between `Key` and `[Inline]`.
12205 + Generalized type on `readWith`.
12207 * Small change in calculation of relative widths of table columns.
12208 If the size of the header > the specified column width, use
12209 the header size as 100% for purposes of calculating
12210 relative widths of columns.
12212 * Markdown writer now uses some pandoc-specific features when `--strict`
12213 is not specified: `\` newline is used for a hard linebreak instead of
12214 two spaces then a newline. And delimited code blocks are used when
12215 there are attributes.
12217 * HTML writer: improved gladTeX output by setting ENV appropriately
12218 for display or inline math (Jonathan Daugherty).
12220 * LaTeX writer: Use `\paragraph`, `\subparagraph` for level 4,5 headers.
12224 + `\label{foo}` and `\ref{foo}` now become `{foo}` instead of `(foo)`.
12225 + `\index{}` commands are skipped.
12227 * Added `fontsize` variable to default LaTeX template.
12228 This makes it easy to set the font size using `markdown2pdf`:
12229 `markdown2pdf -V fontsize=12pt input.txt`.
12231 * Fixed problem with strikeout in LaTeX headers when using
12232 hyperref, by adding a command to the default LaTeX template
12233 that disables `\sout` inside pdf strings. Thanks to Joost Kremers
12236 * The `COLUMNS` environment variable no longer has any effect.
12238 [under-the-hood improvements]
12240 * Pandoc now compiles with GHC 7. (This alone leads to a
12241 significant performance improvement, 15-20%.)
12243 * Completely rewrote HTML reader using tagsoup as a lexer. The
12244 new reader is faster and more accurate. Unlike the
12245 old reader, it does not get bogged down on some input
12246 (Issues #277, 255). And it handles namespaces in tags
12249 * Replaced `escapeStringAsXML` with a faster version.
12251 * Rewrote `spaceChar` and some other parsers in Text.Pandoc.Parsing
12252 for a significant performance boost.
12254 * Improved performance of all readers by rewriting parsers.
12256 * Simplified Text.Pandoc.CharacterReferences by using
12257 entity lookup functions from TagSoup.
12259 * `Text.Pandoc.UTF8` now uses the unicode-aware IO functions
12260 from `System.IO` if base >= 4.2. This gives support for
12261 windows line endings on windows.
12263 * Remove duplications in documentation by generating the
12264 pandoc man page from README, using `MakeManPage.hs`.
12266 * README now includes a full description of markdown syntax,
12267 including non-pandoc-specific parts. A new `pandoc_markdown`
12268 man page is extracted from this, so you can look up markdown
12269 syntax by doing `man pandoc_markdown`.
12271 * Completely revised test framework (with help from Nathan Gass).
12272 The new test framework is built when the `tests` Cabal flag is set. It
12273 includes the old integration tests, but also some new unit and quickcheck
12274 tests. Test output has been much improved, and you can now specify a glob
12275 pattern after `cabal test` to indicate which tests should be run;
12276 for example `cabal test citations` will run all the citation tests.
12278 * Added a shell script, `stripansi.sh`, for filtering ANSI control
12279 sequences from test output: `cabal test | ./stripansi.sh > test.log`.
12281 * Added `Interact.hs` to make it easier to use ghci while developing.
12282 `Interact.hs` loads `ghci` from the `src` directory, specifying
12283 all the options needed to load pandoc modules (including
12284 specific package dependencies, which it gets by parsing
12285 dist/setup-config).
12287 * Added `Benchmark.hs`, testing all readers + writers using criterion.
12289 * Added `stats.sh`, to make it easier to collect and archive
12290 benchmark and lines-of-code stats.
12292 * Added upper bounds to all cabal dependencies.
12294 * Include man pages in extra-source-files. This allows users to
12295 install pandoc from the tarball without needing to build the man
12300 * Filenames are encoded as UTF8. Resolves Issue #252.
12302 * Handle curly quotes better in `--smart` mode. Previously, curly quotes
12303 were just parsed literally, leading to problems in some output formats.
12304 Now they are parsed as `Quoted` inlines, if `--smart` is specified.
12305 Resolves Issue #270.
12307 * Text.Pandoc.Parsing: Fixed bug in grid table parser.
12308 Spaces at end of line were not being stripped properly,
12309 resulting in unintended LineBreaks.
12313 + Allow HTML comments as inline elements in markdown.
12314 So, `aaa <!-- comment --> bbb` can be a single paragraph.
12315 + Fixed superscripts with links: `^[link](/foo)^` gets
12316 recognized as a superscripted link, not an inline note followed by
12318 + Fixed regression, making markdown reference keys case-insensitive again.
12319 Resolves Issue #272.
12320 + Properly handle abbreviations (like `Mr.`) at the end of a line.
12321 + Better handling of intraword underscores, avoiding exponential
12322 slowdowns in some cases. Resolves Issue #182.
12323 + Fixed bug in alignments in tables with blank rows in the header.
12327 + Field lists now allow spaces in field names, and
12328 block content in field values. (Thanks to Lachlan Musicman
12329 for pointing out the bug.)
12330 + Definition list items are now always `Para` instead of
12331 `Plain`, matching behavior of `rst2xml.py`.
12332 + In image blocks, the description is parsed properly and
12333 used for the alt attribute, not also the title.
12334 + Skip blank lines at beginning of file. Resolves
12339 + Improved parsing of preamble.
12340 Previously you'd get unexpected behavior on a document that
12341 contained `\begin{document}` in, say, a verbatim block.
12342 + Allow spaces between `\begin` or `\end` and `{`.
12343 + Support `\L` and `\l`.
12344 + Skip comments inside paragraphs.
12348 + Escape strings in `\href{..}`.
12349 + In nonsimple tables, put cells in `\parbox`.
12351 * OpenDocument writer: don't print raw TeX.
12355 + Fixed bug in `Image`. URI was getting unescaped twice!
12356 + Avoid printing extra blank lines at the end if there are
12357 no notes or references.
12359 * LaTeX and ConTeXt: Escape `[` and `]` as `{[}` and `{]}`.
12360 This avoids unwanted interpretation as an optional argument.
12362 * ConTeXt writer: Fixed problem with inline code. Previously
12363 `}` would be rendered `\type{}}`. Now we check the string for '}' and '{'.
12364 If it contains neither, use `\type{}`; otherwise use `\mono{}`
12365 with an escaped version of the string.
12367 * `:` now allowed in HTML tags. Resolves Issue #274.
12371 [ John MacFarlane ]
12373 * New EPUB and HTML Slidy writers. (Issue #122)
12375 - EPUB is a standard ebook format, used in Apple's iBooks for
12376 the iPad and iPhone, Barnes and Noble's nook reader, the Sony
12377 reader, and many other devices.
12378 - Slidy, like S5, is a system for producing HTML+javascript slide
12381 * All input is assumed to be UTF-8, no matter what the locale and ghc
12382 version, and all output is UTF-8. This reverts to pre-1.5 behavior.
12383 Also, a BOM, if present, is stripped from the input.
12385 * Markdown now supports grid tables, whose cells can contain
12386 arbitrary block elements. (Issue #43)
12388 * Sequentially numbered example lists in markdown with `@` marker.
12390 * Markdown table captions can begin with a bare colon and no longer need
12391 to include the English word "table." Also, a caption can now occur
12392 either before or after the table. (Issue #227)
12394 * New command-line options:
12396 - `--epub-stylesheet` allows you to specify a CSS file that will
12397 be used to style your ebook.
12398 - `--epub-metadata` allows you to specify metadata for the ebook.
12399 - `--offline` causes the generated HTML slideshow to include all
12400 needed scripts and stylesheets.
12401 - `--webtex` causes TeX math to be converted to images using the
12402 Google Charts API (unless a different URL is specified).
12403 - `--section-divs` causes div tags to be added around each section
12404 in an HTML document. (Issue #230, 239)
12406 * Default behavior of S5 writer in standalone mode has changed:
12407 previously, it would include all needed scripts and stylesheets
12408 in the generated HTML; now, only links are included unless
12409 the `--offline` option is used.
12411 * Default behavior of HTML writer has changed. Between 1.2 and 1.5,
12412 pandoc would enclose sections in div tags with identifiers on the
12413 div tags, so that the sections can be manipulated in javascript.
12414 This caused undesirable interactions with raw HTML div tags. So,
12415 starting with 1.6, the default is to put the identifiers directly
12416 on the header tags, and not to include the divs. The `--section-divs`
12417 option selects the 1.2-1.5 behavior.
12421 - `HTMLMathMethod`: Added `WebTeX`, removed `MimeTeX`.
12422 - `WriterOptions`: Added `writerUserDataDir`, `writerSourceDirectory`,
12423 `writerEPUBMetadata` fields. Removed `writerIncludeBefore`,
12424 `writerIncludeAfter`.
12425 - Added `headerShift` to `Text.Pandoc.Shared`.
12426 - Moved parsing code and `ParserState` from `Text.Pandoc.Shared`
12427 to a new module, `Text.Pandoc.Parsing`.
12428 - Added `stateHasChapters` to `ParserState`.
12429 - Added `HTMLSlideVariant`.
12430 - Made `KeyTable` a map instead of an association list.
12431 - Added accessors for `Meta` fields (`docTitle`, `docAuthors`,
12433 - `Pandoc`, `Meta`, `Inline`, and `Block` have been given `Ord`
12435 - Reference keys now have a type of their own (`Key`), with its
12436 own `Ord` instance for case-insensitive comparison.
12437 - Added `Text.Pandoc.Writers.EPUB`.
12438 - Added `Text.Pandoc.UUID`.
12439 - Removed `Text.Pandoc.ODT`, added `Text.Pandoc.Writers.ODT`.
12440 Removed `saveOpenDocumentAsODT`, added `writeODT`.
12441 - Added `Text.Pandoc.Writers.Native` and `writeNative`.
12442 Removed `prettyPandoc`.
12443 - Added `Text.Pandoc.UTF8` for portable UTF8 string IO.
12444 - Removed `Text.Pandoc.Writers.S5` and the `writeS5` function.
12445 Moved `s5Includes` to a new module, `Text.Pandoc.S5`.
12446 To write S5, you now use `writeHtml` with `writerSlideVariant`
12447 set to `S5Slides` or `SlidySlides`.
12449 * Template changes. If you use custom templates, please update them,
12450 particularly if you use syntax highlighting with pandoc. The old HTML
12451 templates hardcoded highlighting CSS that will no longer work with
12452 the most recent version of highlighting-kate.
12454 - HTML template: avoid empty meta tag if no date.
12455 - HTML template: Use default highlighting CSS from highlighting-kate
12456 instead of hard-coding the CSS into the template.
12457 - HTML template: insert-before text goes before the title, and
12458 immediately after the <body> tag, as documented. (Issue #241)
12459 - Added slidy and s5 templates.
12460 - Added amssymb to preamble of latex template. (github Issue 1)
12462 * Removed excess newlines at the end of output. Note: because output
12463 will not contain an extra newline, you may need to make adjustments
12464 if you are inserting pandoc's output into a template.
12466 * In S5 and slidy, horizontal rules now cause a new slide, so you
12467 are no longer limited to one slide per section.
12469 * Improved handling of code in man writer. Inline code is now monospace,
12470 not bold, and code blocks now use .nf (no fill) and .IP (indented para).
12472 * HTML reader parses `<tt>` as Code. (Issue #247)
12474 * html+lhs output now contains bird tracks, even when compiled without
12475 highlighting support. (Issue #242)
12477 * Colons are now no longer allowed in autogenerated XML/HTML identifiers,
12478 since they have a special meaning in XML.
12480 * Code improvements in ODT writer. Remote images are now replaced with
12481 their alt text rather than a broken link.
12483 * LaTeX reader improvements:
12485 - Made latex `\section`, `\chapter` parsers more forgiving of
12487 - Parse `\chapter{}` in latex.
12488 - Changed `rawLaTeXInline` to accept `\section`, `\begin`, etc.
12489 - Use new `rawLaTeXInline'` in LaTeX reader, and export `rawLaTeXInline`
12490 for use in markdown reader.
12491 - Fixes bug wherein `\section{foo}` was not recognized as raw TeX
12492 in markdown document.
12494 * LaTeX writer: images are automatically shrunk if they would extend
12495 beyond the page margin.
12497 * Plain, markdown, RST writers now use unicode for smart punctuation.
12499 * Man writer converts math to unicode when possible, as in other writers.
12501 * `markdown2pdf` can now recognize citeproc options.
12503 * Command-line arguments are converted to UTF-8. (Issue #234)
12505 * `Text.Pandoc.TeXMath` has been rewritten to use texmath's parser.
12506 This allows it to handle a wider range of formulas. Also, if a formula
12507 cannot be converted, it is left in raw TeX; formulas are no longer
12508 partially converted.
12510 * Unicode curly quotes are left alone when parsing smart quotes. (Issue
12513 * Cabal file changes:
12515 - Removed parsec < 3 restriction.
12516 - Added 'threaded' flag for architectures where GHC lacks a threaded
12518 - Use 'threaded' only for markdown2pdf; it is not needed for pandoc.
12519 - Require highlighting-kate 0.2.7.
12521 * Use explicit imports from `Data.Generics`. Otherwise we have a
12522 conflict with the 'empty' symbol, introduced in syb >= 0.2. (Issue #237)
12524 * New data files: slidy/slidy.min.js, slidy/slidy.min.css, epub.css.
12528 [ John MacFarlane ]
12530 * Fixed uniqueIdent in Shared so that header identifiers work as
12531 advertized in the README and are are valid XHTML names.
12535 [ John MacFarlane ]
12537 * Fixed treatment of unicode characters in URIs.
12538 + Shared now exports escapeURI and unescapeURI. These handle
12539 UTF8 encoding and decoding as well as URI escaping/unescaping.
12540 + Shared: uri and emailAddress now return a pair of the original
12541 parsed text and the escaped URI (in the latter case, with
12542 the mailto: prefix).
12543 + HTML reader: unsanitaryURI has been modified to allow unicode
12544 high characters in a URI.
12545 + Readers: All link and image URIs are now escaped using
12547 + Markdown and RST writers: unescapeURI is used so that URIs
12548 in these formats are human-readable.
12550 * Setup.hs: Don't assume that the build directory is "dist".
12551 Instead, get it from localBuildInfo.
12553 * OpenDocument writer: Use a Map for stTextStyleAttr.
12554 This avoids duplicates (and invalid xml). Resolves Issue #222.
12558 [ John MacFarlane ]
12560 * HTML writer: Fixed error in math writer (with MathML option)
12561 that caused an infinite loop for unparsable MathML.
12565 [ John MacFarlane ]
12567 * Added --mathml option. When this is selected, pandoc will convert
12568 TeX math into MathML.
12569 + Added data/MathMLinHTML.js, which is included when no URL is
12570 provided for --mathml. This allows MathML to be displayed (in
12571 better browsers) as text/html.
12572 + Removed Text.Pandoc.LaTeXMathML. The module was no longer
12573 necessary; it was replaced by two lines in pandoc.hs.
12574 + Replaced LaTeXMathML.js.comment and LaTeXMathML.js.packed with a
12575 single combined file, LaTeXMathML.js.
12577 * Added --data-dir option.
12578 This specifies a user data directory. If not specified, will default
12579 to ~/.pandoc on unix or Application Data\pandoc on Windows.
12580 Files placed in the user data directory will override system default
12583 * Added Maybe datadir parameter to readDataFile, saveOpenDocumentAsODT,
12584 latexMathMLScript, s5HeaderIncludes, and getDefaultTemplate. If
12585 Nothing, no user directory is searched for an override.
12587 * Added 'plain' output format. This is similar to markdown, but
12588 removes links, pictures, inline formatting, and most anything that
12589 looks even vaguely markupish. The function writePlain is exported by
12590 Text.Pandoc.Writers.Markdown, with which it shares most of its code.
12592 * Allow multi-line titles and authors in meta block.
12593 Titles may span multiple lines, provided continuation lines
12594 begin with a space character. Separate authors may be put on
12595 multiple lines, provided each line after the first begins with
12596 a space character. Each author must fit on one line. Multiple
12597 authors on a single line may still be separated by a semicolon.
12598 Based on a patch by Justin Bogner.
12600 * When given an absolute URI as parameter, pandoc will try to fetch
12601 the content via HTTP. So you can do:
12602 'pandoc -r html -w markdown http://www.fsf.org'
12603 Adds dependency on HTTP.
12605 * Made HTML reader much more forgiving.
12606 + Incorporated idea (from HXT) that an element can be closed
12607 by an open tag for another element.
12608 + Javascript is partially parsed to make sure that a <script>
12609 section is not closed by a </script> in a comment or string.
12610 + More lenient non-quoted attribute values.
12611 Now we accept anything but a space character, quote, or <>.
12612 This helps in parsing e.g. www.google.com!
12613 + Bare & signs are now parsed as a string. This is a common
12615 + Skip a bare < in malformed HTML.
12617 * Removed html2markdown and hsmarkdown.
12618 + html2markdown is no longer needed, since you can now pass URI
12619 arguments to pandoc and directly convert web pages. (Note,
12620 however, that pandoc assumes the pages are UTF8. html2markdown
12621 made an attempt to guess the encoding and convert them.)
12622 + hsmarkdown is pointless -- a large executable that could be
12623 replaced by 'pandoc --strict'.
12625 * In most writers, an image in a paragraph by itself is now rendered
12626 as a figure, with the alt text as the caption. (Texinfo, HTML, RST,
12627 MediaWiki, Docbook, LaTeX, ConTeXt, HTML.) Other images are
12630 * Depend on extensible-exceptions. This allows pandoc to be compiled
12633 * Added --base-header-level option. For example, --base-header-level=2
12634 will change level 1 headers to level 2, level 2 to level 3, etc.
12635 Closes Debian #563416.
12637 * Incomplete support for RST tables (simple and grid).
12638 Thanks to Eric Kow. Colspans and rowspans not yet supported.
12640 * Added accessors (docTitle, docAuthors, docDate) to Meta type.
12642 * MediaWiki writer: format links with relative URLs as wikilinks.
12643 The new rule: If the link target is an absolute URL, an external
12644 link is created. Otherwise, a wikilink is created.
12646 * Text.Pandoc.Shared: Export uniqueIdent, and don't allow tilde in
12647 identifier. Note: This may break links to sections that involve
12650 * Markdown(+lhs) reader: handle "inverse bird tracks."
12651 Inverse bird tracks (<) are used for haskell example code that is not
12652 part of the literate Haskell program. Resolves Issue #211.
12655 + Recognize '\ ' (interword space).
12656 + Recognize nonbreaking space '~'.
12657 + Ignore \section, \pdfannot, \pdfstringdef. Ignore alt title in
12658 section headers. Don't treat \section as inline LaTeX.
12659 Resolves Issue #202.
12660 + LaTeX reader: allow any special character to be escaped.
12661 Resolves Issue #221.
12662 + LaTeX reader: treat \paragraph and \subparagraph as level 4, 5
12663 headers. Resolves Issue #207.
12665 * Use template variables for include-before/after.
12666 + These options now imply -s; previously they worked also in fragment
12668 + Users can now adjust position of include-before and include-after
12669 text in the templates.
12670 + Default position of include-before moved back (as it was before 1.4)
12671 before table of contents.
12672 + Resolves Issue #217.
12674 * Don't print an empty table header: (all writers).
12675 Resolves Issue #210.
12677 * HTML, Docbook writer: Use tbody, thead, and cols in tables.
12679 * HTML writer: Don't include TOC div if table of contents is empty.
12681 * Markdown writer: Fixed citations.
12682 Previously the markdown writer printed raw citation codes, e.g.
12683 [geach1970], rather than the expanded citations provided by
12684 citeproc, e.g. (Geach 1970). Now it prints the expanded citations.
12685 This means that the document produced can be processed as a markdown
12686 document without citeproc. Thanks to dsanson for reporting, and
12687 Andrea Rossato for the patch.
12689 * Improved and simplified title block in context template.
12690 Previously it caused an error if there was no title.
12691 This method should also be easier for users to customize.
12694 + Treat p., pp., sec., ch., as abbreviations in smart mode.
12695 + Disallow blank lines in inline code span.
12696 + Allow footnotes to be indented < 4 spaces.
12697 This fixes a regression. A test case has been added.
12698 + Escape spaces in URLs as %20. Previously they were incorrectly
12699 escaped as +, which is appropriate only for the query part of
12700 a URL. Resolves Issue #220.
12701 + Require two spaces after capital letter + period for list item.
12702 Otherwise "E. coli" starts a list. This might change the semantics
12703 of some existing documents, since previously the two-space
12704 requirement was only enforced when the second word started
12705 with a capital letter. But it is consistent with the existing
12706 documentation and follows the principle of least surprise.
12707 Resolves Issue #212.
12709 * LaTeX template: redefine labelwidth when using enumerate package.
12710 Otherwise the list labels (numbers) often extend past the left
12711 margin, which looks bad.
12713 * Mediawiki writer: Don't print a "== Notes ==" header before
12714 references. This is too English-centric. Writers can provide their
12715 own header at the end of the document.
12717 * Promoted mediawiki headers. '= head =' is now level 1, '== head =='
12718 level 2, etc. This seems to be correct; it's only by convention
12719 that wikipedia articles have level 2 headers at most.
12720 Patch due to Eric Kow.
12722 * RunTests.hs: Set LANG to a UTF-8 locale. Use 'pandoc --data-dir=' so
12723 data files don't need to have been installed. This removes the need to
12727 + Handle spaces before <html>. Resolves Issue #216.
12728 + Be forgiving in parsing a bare list within a list.
12729 The following is not valid xhtml, but the intent is clear:
12732 <ol><li>sub</li></ol>
12735 We'll treat the <ol> as if it's in a <li>. Resolves Issue #215.
12737 * Updated INSTALL instructions. cabal method is now promoted.
12739 * Updated markdown2pdf man page. It no longer says all pandoc options
12742 * README/man pages: Removed advice to pipe through tidy before HTML
12743 reader. This is obsolete, now that we have a forgiving HTML parser.
12745 * LaTeX writer: set numbersections template variable, so
12746 the section numbering options work again.
12748 * Removed obsolete Makefile.
12750 * Website: renamed index.txt.in -> index.txt.
12752 * New batch file to make-windows-installer.
12753 + Removed old Makefile.windows
12754 + Added make-windows-installer.bat
12755 + Modified default installer name in pandoc-setup.iss
12757 * Removed freebsd and macports directories.
12758 They are no longer up to date.
12761 + Made man page building sensitive to build verbosity.
12762 + Improved detection of highlighting support in test hook.
12763 + Install wrapper scripts into cabal bin directory.
12764 + Also simplified installManpages.
12765 + Setup.hs: install manpages to mandir. Code borrowed from darcs.
12767 * Changed default of writerXeTeX to False.
12769 * HTML writer: don't include empty UL if --toc but no sections.
12770 Resolves Issue #199.
12774 + If book, report, or memoir documentclass, use \chapter{}
12775 for first-level headers. Otherwise use \section{}.
12776 + Removed stLink, link template variable. Reason: we now always
12777 include hyperref in the template.
12781 + Only show \author if there are some.
12782 + Always include hyperref package. It is used not just for links but
12783 for toc, section heading bookmarks, footnotes, etc. Also added
12784 unicode=true on hyperref options.
12786 * markdown2pdf: always do at least two runs. hyperref bookmarks
12789 * cabal file: Removed unneeded dependency on template-haskell.
12791 * Windows installer - fixed bug in data file locations.
12792 Resolves Issue #197.
12794 * Deprecated --custom-header in documentation.
12795 Removed old "Custom Headers" section in README.
12799 [ John MacFarlane ]
12801 * Pandoc will now compile with either GHC 6.10 or 6.12.
12802 + Don't use System.IO.UTF8 when compiling with 6.12
12803 + Use -fno-warn-unused-do-bind option when compiling with 6.12
12805 * Replaced old headers with templates. Now users have much more
12806 control over the way documents appear in --standalone mode,
12807 and writer code is simplified. Resolves Issues #59, 147.
12808 Every effort has been made to retain backwards compatibility.
12809 So, the --custom-header option should still work as before.
12811 + Added Text.Pandoc.Templates. This provides functions for
12812 retrieving default templates and for rendering templates.
12813 + System templates (in the pandoc data directory) can be
12814 overridden by user templates in $HOME/.pandoc/templates.
12815 + Removed Text.Pandoc.DefaultHeaders.
12816 + Removed data/headers directory.
12817 + Added templates directory.
12818 + Added writerTemplate and writerVariables fields to WriterOptions.
12819 + Removed writerTitlePrefix, writerHeader fields from WriterOptions.
12820 + Changed --print-default-header to --print-default-template.
12821 + Added --template option.
12822 + Added -V/--variable option to set custom template variables.
12824 * Pandoc no longer requires Template Haskell. Resolves Issue #186.
12826 + Removed need for TH in ODT module. Instead get reference.odt from
12827 data file at run time.
12828 + Removed TH dependency from S5 module. S5 module now exports
12829 s5HeaderIncludes, which pandoc.hs includes if writer is s5 and
12831 + Refactored LaTeXMathML not to use TH.
12833 * Meta is now Meta [Inline] [[Inline]] [Inline] rather than
12834 Meta [Inline] [String] String. Authors and date in Meta are now lists
12835 of Inline elements rather than raw strings. This means that they can
12836 be formatted and can include footnotes. NOTE: This may be a breaking
12837 change for those using pandoc as a library.
12839 * Added readDataFile to Text.Pandoc.Shared. This retrieves
12840 a data file from the user pandoc data directory (~/.pandoc
12841 on unix), or, if not found there, from the system data
12842 directory ($CABALDIR/shared/pandoc-VERSION/). All data
12843 files, including templates, LaTeXMathML.js, s5 styles,
12844 and reference.odt, can be overridden by the user.
12846 * s5 files moved from data/ui/default to s5/default.
12848 * Use unicode instead of entities in HTML and XML output. Resolves
12851 * Prettier HTML footnote references: put anchor inside sup,
12852 instead of other way. Resolves Issue #191. Thanks to
12855 * Added --xetex option to pandoc and markdown2pdf.
12856 If --xetex is specified, pandoc produces latex suitable for
12857 processing by xelatex, and markdown2pdf uses xelatex to create
12858 the PDF. Resolves Issue #185.
12860 * RTF writer: multiple authors now occupy multiple paragraphs rather
12861 than using a line break.
12863 * Man writer: now the "--after-body" will come after the "AUTHORS"
12864 section, whereas before it would come before it. This is a
12865 slight break from backwards compatibility.
12867 * Added --reference-odt option, so users may customize the styles
12868 used in pandoc-generated ODT files. Users may also place a
12869 default reference.odt in the ~\.pandoc directory.
12872 + Indented and line-broke styles.xml so it can be modified more easily.
12873 + Omitted some unnecessary style declarations.
12874 + Don't wrap text in OpenDocument writer. The tags are too long, making
12875 wrapping ugly and pointless.
12877 * LaTeX reader: use \\ to separate multiple authors.
12879 * Markdown reader: use ; as separator between authors.
12880 This allows you to use ',' within author names: e.g. "John Jones, Jr."
12882 * S5 writer: use linebreak to separate authors in title page.
12884 * RST reader: Allow :: before lhs code block. The RST spec requires the
12885 :: before verbatim blocks. This :: should not be treated as literal
12886 colons. Resolves Issue #189.
12888 * Documented pandoc 1.3's new definition list syntax in README.
12889 (An oversight in the last release.)
12892 + interpret ! in a log as an error line.
12893 + --toc now works properly.
12895 * Changes in RunTests.hs:
12896 + Use the Diff library rather than a local copy of Diff.hs.
12897 (This vastly increases performance.) This change means that 'cabal
12898 test' presupposes that the Diff library is installed.
12899 + Removed tests/Diff.hs from cabal file.
12900 + Changed RunTests to use local environment. We need at least HOME, so
12901 pandoc can find its data directory.
12903 * Updated windows installer to install data files in the app directory.
12905 * Windows installer now installs portable wrappers hsmarkdown and
12910 [ John MacFarlane ]
12912 * Added --id-prefix option (Issue #41). This adds a prefix to all
12913 automatically generated HTML identifiers, which helps prevent
12914 duplicate identifiers when you're generating a fragment (say a blog
12917 * Added --indented-code-classes option. This specifies classes
12918 to use for indented code blocks. (Patch due to buttock; Issue #87.)
12920 * --number-sections now affects HTML output as well as ConTeXt and LaTeX
12923 * Improved syntax for markdown definition lists (Issue #24).
12924 Definition lists are now more compatible with PHP Markdown Extra.
12925 + You can have multiple definitions for a term (but still not
12927 + Multi-block definitions no longer need a column before each block
12928 (indeed, this will now cause multiple definitions).
12929 + The marker no longer needs to be flush with the left margin,
12930 but can be indented at or two spaces. Also, ~ as well as :
12931 can be used as the marker (this suggestion due to David
12933 + There can now be a blank line between the term and the
12936 * Better looking simple tables. Resolves Issue #180.
12937 + Markdown reader: simple tables are now given column widths of 0.
12938 + Column width of 0 is interpreted as meaning: use default column width.
12939 + Writers now include explicit column width information only
12940 for multiline tables. (Exception: RTF writer, which requires
12941 column widths. In this case, columns are given equal widths,
12942 adding up to the text width.)
12943 + Simple tables should now look better in most output formats.
12945 * Allow markdown tables without headers (Issue #50).
12946 The new syntax is described in README. Also allow optional line of
12947 dashes at bottom of simple tables.
12949 * Compensate for width of final table column (Issue #144).
12951 * Treat a backslash followed by a newline as a hard line break
12952 in markdown. Resolves Issue #154. This is a nice alternative
12953 to markdown's "invisible" way of indicating hardline breaks
12954 using lines that end with two spaces.
12956 * Improved performance of markdown reader by ~10% by eliminating the
12957 need for a separate parsing pass for notes. Raw notes are now stored
12958 on the first pass (which parses references), then parsed when the
12959 note is inserted into the AST. The stateNotes field in ParserState
12960 is now a list of [(String, String)] pairs instead of [(String,
12963 * In markdown reader, treat 4 or more * or _ in a row as literal
12964 text. (Trying to parse long strings of * or _ as strong or emph
12965 leads to exponential performance problems.)
12967 * Markdown reader: Use + rather than %20 for spaces in URLs.
12969 * Fixed htmlComment parser, adding a needed 'try'.
12971 * Don't print raw HTML in man output.
12973 * Allow . _ and ~ in header identifiers.
12975 * Specially mark code blocks that were "literate" in the input.
12976 They can then be treated differently in the writers. This allows
12977 authors to distinguish bits of the literate program they are writing
12978 from source code examples, even if the examples are marked as
12979 Haskell for highlighting. (Issue #174.)
12981 * Modified html+lhs output to use "haskell" highlighter instead
12982 of "literateHaskell". The highlighting module now adds bird tracks
12983 after highlighting (for HTML output), if the code block has the
12984 "literate" class. This gives better results, because kate's
12985 haskell highlighter is much better than the literateHaskell
12988 * Fixed handling of footnotes in titles (HTML) and headers (LaTeX).
12991 * Support for "..code-block" directive in RST reader. Not core
12992 RST, but used in Sphinx for code blocks annotated with syntax
12993 information. Thanks to Luke Plant for the patch.
12995 * Added "head" to list of block-level HTML tags. Resolves
12998 * Added stripTags to Text.Pandoc.XML. This is used in the HTML writer.
13000 * Set utf-8 encoding in texinfo headers.
13002 * Docbook writer: add ids to sections. Use link for internal links.
13005 * Blank lines after lists in MediaWiki writer.
13007 * Properly handle commented-out list items in markdown.
13008 Resolves Issue #142. Example:
13016 * Changed heuristic in compactify. compactify has to decide whether a
13017 Para that ends a list is a Para intentionally, or just because of
13018 the blank lines at the end of every list. In the latter case the
13019 Para is turned to a Plain. The old heuristic was: change final Para
13020 to Plain iff the other items all end in Plain. This produces bad
13021 results when, for example, an item contains just a Plain and an HTML
13022 comment, as it does in the list above. The new heuristic: change
13023 final Para to Plain iff the other items don't contain a Para.
13025 * Added % as an rst underline character. Resolves Issue #173.
13027 * Fix inline math parser so that \$ is allowed in math.
13028 Resolves Issue #169.
13030 * Translate \int (integral) into unicode when using unicode math
13031 method. Resolves Issue #177.
13033 * markdown2pdf.hs improvements:
13034 + Use System.IO.UTF8.
13035 + Print error messages on last attempt.
13036 + Do not create a backup when overwriting a PDF (Issue #166).
13037 + Accept --longopt=val options.
13038 + Added man/man1/markdown2pdf.1 to extra-tmp-files in cabal, so that
13039 it is properly cleaned.
13041 * Added haddock comments warning that readers assume \n line endings.
13043 * Updated COPYRIGHT file.
13045 * Makefile: Changed EXECSBASE so it doesn't pull in hsmarkdown &
13046 markdown2pdf. Otherwise strip tries to strip shell scripts when you
13047 install using 'make'.
13049 * Changed Makefile so it doesn't build Haskell wrappers.
13051 * Fixed Makefile so it doesn't try to build man pages in build-doc.
13053 * Install pcre3.dll in Windows install script; this allows us to
13054 package a version of pandoc with highlighting support.
13058 [ John MacFarlane ]
13060 * Fixed regression with --preserveTabs. Brought back optPreserveTabs.
13061 The trick of setting tabStop to 0 to mean "preserve tabs" had a bad
13062 side effect: strings of 0 spaces were interpreted as indentation.
13063 So, with --preserve-tabs, unindented paragraphs were treated as
13064 code. Resolves Issue #138.
13066 * HTML writer: wrap sections in divs. Resolves Issue #70.
13068 + hierarchicalize has been rationalized; it builds a hierarchical
13069 representation of the document from the headers, and simultaneously
13070 gives each section a unique identifier based on the heading title.
13071 + Identifiers are now attached to the divs rather than
13072 to the headers themselves.
13073 + Table of content backlinks go to the beginning of the table, rather
13074 than to the section reference that was clicked.
13075 + Code for constructing identifiers has been moved to Text.Pandoc.Shared
13076 from the HTML writer, since it is now consumed only by
13078 + In --strict mode, pandoc just prints bare headings, as before
13079 (unless --toc has been specified).
13080 + In s5 output, it does not wrap sections in divs, as that seems to
13081 confuse the s5 javascript.
13083 * Man writer: break lines at end of each sentence. groff expects this
13084 and treats '.' and '?' differently when followed by line ending as
13085 opposed to ordinary space. Also, don't escape periods. Instead, use
13086 zero-width character \& to avoid unwanted interpretation of periods
13087 at start of line. Resolves Issue #148.
13089 * Markdown writer: Added '#' and '>' to list of characters to be
13090 escaped in markdown output. Removed '<', as it is not an officially
13091 escapable character. This partially resolves Issue #96.
13093 * Make --smart the default for man output format. Otherwise we have
13094 trouble dividing lists of endlines into sentences.
13096 * DocBook writer: Use language attribute to indicate source language
13101 + Allow # to continue list, even if the list was started with an
13102 explicit marker. For example:
13107 Resolves Issue #140.
13108 + Allow continuation lines in line blocks. Also added test cases for
13109 line blocks for RST reader. Resolves Issue #149.
13110 + Allow explicit links with spaces in URL: `link <to this>`_
13112 * Improved LaTeX reader's coverage of math modes. Remove displaymath*
13113 (which is not in LaTeX) and recognize all the amsmath environments
13114 that are alternatives to eqnarray, namely equation, equation*,
13115 gather, gather*, gathered, multline, multline*, align, align*,
13116 alignat, alignat*, aligned, alignedat, split. Resolves Issue #103.
13117 Thanks to shreevatsa.public for the patch.
13121 + Allow -, _, :, . in markdown attribute names. These are legal in
13122 XML attribute names.
13123 + Use non-breaking spaces in abbreviations.
13124 + Markdown reader: improved efficiency of abbreviation parsing.
13125 Instead of a separate abbrev parser, we just check for
13126 abbreviations each time we parse a string. This gives a huge
13127 performance boost with -S. Resolves Issue #141.
13129 * Improved efficiency of shared parsers: hexNum, htmlComment,
13130 whitespace, indentSpaces.
13132 * Export HTMLMathMethod in Text.Pandoc.
13134 * Export languagesByExtension in Text.Pandoc.Highlighting.
13136 * Added new Haskell version of markdown2pdf, due to
13137 Paulo Tanimoto. This should be more portable than the old
13140 * Made 'pandoc -v' more explicit about compiler options.
13141 Resolves Issue #139.
13143 * pandoc.hs: Made --strict compatible with --standalone, --toc.
13145 * Use Paths_pandoc to get version number, instead of hard-coding it
13146 into Text/Pandoc.hs.
13150 [ John MacFarlane ]
13152 * Added support for literate Haskell. lhs support is triggered by
13153 '+lhs' suffixes in formats. For example, 'latex+lhs' is literate
13154 Haskell LaTeX. '.lhs' files are treated by default as literate
13157 + Added stateLiterateHaskell to parser state.
13158 + Added parser for lhsCodeBlock to Markdown, RST, LaTeX readers.
13159 + Added parser for |inline lhs| to LaTeX reader.
13160 + Added writerLiterateHaskell to WriterOptions.
13161 + Added lhs support to Markdown, RST, LaTeX, HTML writers.
13162 + Added definition of code environment to LaTeX header.
13163 + Added tests (run only if highlighting support compiled in).
13164 + Documented lhs features in man page and README.
13166 * In Text.Pandoc.Definition, added processWith, processWithM,
13167 and queryWith, and deprecated processPandoc and queryPandoc
13168 for these more general functions.
13170 * Fixed bug in mediawiki writer: improper closing tags in tables.
13171 Thanks to Benct Philip Jonsson for reporting the bug.
13173 * Added --email-obfuscation option.
13175 + Added writer option for email obfuscation.
13176 + Implemented email obfuscation options in HTML writer.
13177 + Added option to option parser.
13178 + Documented in README and pandoc man page.
13179 + Resolves Issue #97.
13181 * LaTeX writer: fixed bug with empty table cells.
13182 Resolves Issue #107. Thanks to rodja.trappe for the patch.
13184 * Fixed bug with header spacing in Markdown and RST writers.
13185 A null header (Meta [] [] []) should not cause a blank line
13186 at the beginning of output. But a blank line is needed between
13187 a non-null header and the main text.
13189 * Markdown reader: Relax spacing rules for $$ in display math. Now
13190 space and newlines are allowed after the opening $$ and before the
13191 closing $$. However, the display math cannot contain an entirely
13192 blank line. Resolves Issue #105.
13194 * Markdown reader: Gobble space after Plain blocks containing only
13195 raw html inline. Otherwise following header blocks are not parsed
13196 correctly, since the parser sees blank space before them. Resolves
13199 * Markdown reader: Allow " as well as '' to end a latex double-quote.
13201 * Conditionally depend on syb and base >= 4 if ghc >= 6.10.
13202 Resolves Issue #109.
13204 * Fixed problems in RST and markdown output due to bug in pretty-1.0.1.0
13206 + Added hang' function to Text.Pandoc.Shared; this will be used instead
13207 of hang, which doesn't work properly in pretty-1.0.1.0. When pretty
13208 is upgraded, we can go back to hang.
13209 See http://article.gmane.org/gmane.comp.lang.haskell.general/16687
13210 + Use hang' (and some different techniques) in RST and markdown writers.
13211 Some output is now a bit different.
13213 * Brought citeproc support up to date for citeproc-hs-0.2.
13214 (Patch by Andrea Rossato.)
13216 * Moved all haskell source to src subdirectory. Renamed Main.hs to
13219 * Rewrote hsmarkdown in Haskell for portability (src/hsmarkdown.hs).
13220 For now, keeping the old shell script too.
13222 * Added TemplateHaskell to Extensions for executable, removed
13223 -threaded for library. Thanks to duncan.coutts for the bug report.
13224 Resolves Issue #121.
13226 * Moved some Extra-Source-Files to Data-Files.
13228 * Moved tabFilter to Shared.
13230 * In pandoc.hs, removed optPreserveTabs; instead, tabstop of 0 means
13233 * Minor code cleanup based on hlint suggestions.
13237 [ John MacFarlane ]
13241 + Changed date on copyright message in Main.hs.
13242 + Have the '-v' option print syntax highlighting languages
13243 separated by commas, and wrapped in lines, instead of in five
13246 * Added --jsmath option. Resolves Issue #68.
13248 + Added --jsmath option to Main.hs
13249 + Added JsMath to HTMLMathMethod in Text.Pandoc.Shared.
13250 + Handle math appropriately in HTML writer when JsMath selected.
13251 + Documented the option in README and man page.
13253 * Text.Pandoc.Shared: Changed compactify to use a better heuristic
13254 for tight and loose lists. Final Para is changed to Plain if all
13255 other list items *end* with a Plain block. Addresses Issue #99.
13259 + Added colons to protocols in unsanitaryURI. Closes Issue #88.
13260 + HTML reader: Don't interpret contents of <pre> blocks as markdown.
13261 Added rawVerbatimBlock parser. Resolves Issue #94.
13265 + Allow URLs with spaces in them in links and references, but escape
13267 + Allow blank space at the end of horizontal rules.
13269 * RST reader: Modified 'unknownDirective' parser to handle comment
13270 blocks correctly, and added tests for comment blocks. Resolves Issue
13271 #86. Closes Debian Bug #500662.
13275 + Include classes on tr elements in HTML output:
13276 "header", "odd", "even". This allows tables to be styled with
13277 lines in alternating colors. Resolves Issue #91.
13278 + Enclose all LaTeXMathML bits in <span class="LaTeX">.
13279 This prevents parts of the document that are not math from being
13280 interpreted as math by LaTeXMathML.js.
13282 * OpenDocument and ODT writers: Added support for HorizontalRule elements,
13283 which were formerly ignored. Resolves Issue #95.
13285 * Text.Pandoc.Shared: Modified wrappedTeX to eliminate the line break
13286 between a footnote and immediately following nonspace characters in
13287 LaTeX and ConTeXt output. (This gets interpreted as a space, which
13288 is not desired in cases like `text^[note]---`.) Resolves Issue #93.
13290 * Windows installer: Don't require admin privileges to run
13291 installer. Modified pandoc-setup.iss, and changed modpath.iss to
13292 modify HKCU path if user lacks admin privileges. Also fixed case
13293 where oldpath is empty (previously this led to the new path
13294 beginning with a semicolon).
13296 * Updated INSTALL instructions for Arch packages and OS X install using
13299 * Removed the (now unneeded) debian directory.
13300 Removed empty Codec and System directories.
13302 * Moved odt-styles/ to data/. Removed unneeded variable in Makefile.
13304 * Modified Setup.hs so that the "test" target returns an error status
13305 when tests fail, and "build" returns a success status if
13306 the build succeeds. Resolves Issue #100.
13308 * Added BUGS to files in tarball.
13313 [ John MacFarlane ]
13315 * Removed spurious reference to pdf output format from pandoc(1) man page.
13321 * Added new OpenDocument writer.
13323 * Added support for SmallCaps inline element.
13325 * Added support for integrating pandoc with citeproc-hs.
13327 + Added Cite element to definition and writers.
13328 + Added Text.Pandoc.Biblio module
13329 + Note: This support is included only if the 'citeproc'
13330 Cabal configuration flag is set.
13332 * Made Pandoc data structure an instance of Typeable.
13333 Added new processPandoc and queryPandoc functions, to query
13334 or transform matching elements in a Pandoc structure.
13338 * Added new Texinfo writer.
13340 [ John MacFarlane ]
13342 * Changes to Texinfo writer:
13344 + No space between paragraph and following @verbatim (provides more
13345 pleasing appearance in text formats)
13346 + Blank line consistently after list environments.
13348 + Use @code instead of @verb for inline code (this solves the character
13349 escaping problem for texi2dvi and texi2pdf).
13350 + Added news of Texinfo writer to README.
13351 + Added Texinfo to list of formats in man page, and removed extra 'groff'.
13352 + Added texi & texinfo extensions to Main.hs, and fixed bug in determining
13353 default output extension.
13354 + Modified disallowedInNode in Texinfo writer to correct list of disallowed characters.
13356 * Added tests for OpenDocument writer.
13358 * Added ODT writer (using zip-archive library to package output of
13359 OpenDocument writer). Added odt-styles directory with default ODT styles.
13361 * Added new mediawiki writer and tests.
13363 * Markdown reader: Added support for delimited code blocks, with optional
13364 syntax highlighting using highlighting-kate (if the 'highlighting'
13365 configuration option is selected).
13367 + Currently highlighting is supported only in the HTML writer.
13368 + Delimited code blocks can have attributes; using the language name as
13369 class triggers highlighting.
13370 + New Attributes parameter in CodeBlock structure.
13371 + --version now indicates whether syntax highlighting support is compiled
13372 in, and prints a list of supported languages
13374 * Removed debian directory. Pandoc is no longer a native debian package.
13376 * Changes to build process: pandoc can now be built from the repository
13377 using Cabal. No unix tools are needed (so, pandoc can be built on Windows
13380 + Include shell scripts themselves in repo, rather than generating from wrappers.
13381 Removed wrappers directory and wrappers Makefile target.
13382 + Text/Pandoc/ASCIIMathML.hs, Text/Pandoc/DefaultHeaders.hs,
13383 and Text/Pandoc/Writers/S5.hs are no longer built in Makefile
13384 from templates in the templates/ directory. Instead, they use template
13385 haskell to read data at compile time from the relevant files in data/.
13386 Template haskell functions go in a new module, Text.Pandoc.TH.
13387 + man pages are now generated in Setup.hs hook, not by Makefile
13388 + Makefile 'tarball' target now calls Cabal's 'sdist'
13389 + Added "Extra-Source-Files" to pandoc.cabal, so sdist contains everything needed
13390 + Added "Build-Type" field to pandoc.cabal to avoid warning.
13391 + Added to "Extra-source-files" and "Extra-tmp-files" in pandoc.cabal,
13392 so 'sdist' and 'clean' will work properly.
13393 + Setup.hs now generates man pages in a postbuild hook.
13394 + Added dependency-checking to Setup.hs, so it only rebuilds things
13395 that need rebuilding.
13396 + Added 'library' and 'executable' configuration flags.
13397 Cabal can now be told to build just the library or just the executable.
13398 + CABALOPTS may now be specified with 'make' to pass Cabal configuration flags.
13399 For example: CABALOPTS=-fhighlighting make
13401 * Rewrote test suite so it doesn't depend on perl or unix tools.
13403 + Replaced old runtests.pl with a Haskell script RunTests.hs.
13404 + Added Diff.hs module to be used by RunTests.hs instead of unix 'diff'.
13405 + Added test hook to Setup.hs, so tests may be run from cabal.
13406 + Changed Makefile's 'test' target to run tests via cabal.
13407 + Removed old generate.sh.
13408 + Since we no longer have 'sed' to filter out raw HTML sections
13409 from the docbook writer test, or raw LaTeX sections from the
13410 context writer test, we now just include these sections.
13411 They can be taken out if it is necessary to process the files.
13412 + Updated latex and context writer tests to remove extra spaces
13414 + Added a markdown table reader test.
13415 + Added markdown-reader-more.txt to test suite, for additional test cases
13416 for raw ConTeXt environments and more.
13418 * Compatibility fixes for CPP, Cabal, and haddock:
13420 + Use CPP in "Extensions" field in pandoc.cabal.
13421 + Removed use of backslash string continuations in source files.
13423 * Removed pandoc.cabal.ghc66. We now require Cabal >= 1.2, GHC >= 6.8,
13426 * Require parsec < 3.
13427 The compatibility module in parsec 3.0.0 gives far worse performance than
13428 parsec 2.1. Eventually pandoc will be upgraded to use the new bytestring
13429 version of parsec, and then we'll go to parsec 3.0.0.
13431 * Removed Text.Regex dependencies by rewriting using plain Haskell
13432 (Text.Pandoc.Writers.RTF, Text.Pandoc.Writers.HTML, Main.hs)
13434 * Moved Text.Pandoc.Writers.DefaultHeaders -> Text.Pandoc.DefaultHeaders.
13438 + Added 'configure' as dependency of 'uninstall-all'.
13439 (It uses the Cabal build program.)
13440 + Makefile: only use --with-hc-pkg if GHC_PKG is defined.
13441 Note that Cabal will automatically choose the ghc-pkg appropriate
13442 for the compiler selected, so normally specifying GHC by itself
13445 * Removed Text.Pandoc.UTF8 module; instead, depend on utf8-string and use
13446 its IO and conversion functions.
13448 * Added -Wall to ghc-options in pandoc.cabal. Cleaned up modules so that
13449 everything is -Wall clean.
13451 + Added pragma to HTML writer to avoid deprecation warning for use of "start" attribute.
13452 + Added pragma to Text/Pandoc/Shared.hs to get rid of "orphan instance" warnings.
13453 (These are caused by the Lift instance for ByteString.)
13455 * Changed the comment used to replace unsafe HTML if sanitize-html option
13458 * Made -c/--css option repeatable on the command line (like -H, -A, -B).
13460 * Moved XML-formatting functions to new unexported module Text.Pandoc.XML.
13462 * Escape '\160' as " ", not " " in XML.
13463 "nbsp" isn't a predefined XML entity.
13465 * Fixed bug in RST reader, which would choke on: "p. one\ntwo\n".
13466 Added some try's in ordered list parsers.
13468 * Man writer: don't escape " as \".
13470 * Allow newline before URL in markdown link references. Resolves Issue #81.
13471 Added tests for this issue in new "markdown-reader-more" tests.
13472 Changed RunTests.hs to run these tests.
13474 * Support for display math. Resolves Issue #47.
13476 + Added a DisplayMath/InlineMath selector to Math inlines.
13477 + Markdown parser yields DisplayMath for $$...$$.
13478 + LaTeX parser yields DisplayMath when appropriate. Removed
13479 mathBlock parsers, since the same effect is achieved by the math
13480 inline parsers, now that they handle display math.
13481 + Writers handle DisplayMath as appropriate for the format.
13482 + Modified tests accordingly; added new tests for display math.
13484 * Use LaTeXMathML instead of ASCIIMathML. LaTeXMathML is closer
13485 to LaTeX in its display of math, and supports many non-math LaTeX environments.
13487 + Changed -m option to use LaTeXMathML rather than ASCIIMathML.
13488 + Modified HTML writer to print raw TeX when LaTeXMathML is
13489 being used instead of suppressing it.
13490 + Removed ASCIIMathML files from data/ and added LaTeXMathML.
13491 + Replaced ASCIIMathML with LaTeXMathML in source files.
13492 + Modified README and pandoc man page source.
13493 + Added --latexmathml option (kept --asciimathml as a synonym
13494 for backwards compatibility)
13496 * Markdown reader: Parse setext headers before atx headers.
13500 parsed by Markdown.pl as an H1 header with contents "# hi".
13502 * Markdown reader: Treat "mixed" lists the same way as Markdown.pl does.
13503 The marker on the first list item determines the type of the whole
13504 list. Thus, a list like
13508 gets parsed as a single ordered list. (Previous versions of pandoc
13509 treated this as an ordered list with an unordered sublist.)
13511 * Markdown smart typography:
13513 + Em dashes no longer eat surrounding whitespace. Resolves Issue #69.
13514 + Use nonbreaking spaces after known abbreviations in markdown parser.
13515 Thus, for example, "Mr. Brown" comes out as "Mr.~Brown" in LaTeX, and does
13516 not produce a sentence-separating space. Resolves Issue #75.
13518 * Markdown writer: Print unicode \160 literally, rather than as .
13520 * Treat '\ ' in (extended) markdown as nonbreaking space.
13521 Print nonbreaking space appropriately in each writer (e.g. ~ in LaTeX).
13523 * The '--sanitize-html' option now examines URIs in markdown links
13524 and images, and in HTML href and src attributes. If the URI scheme
13525 is not on a whitelist of safe schemes, it is rejected. The main point
13526 is to prevent cross-site scripting attacks using 'javascript:' URIs.
13527 See http://www.mail-archive.com/markdown-discuss@six.pairlist.net/msg01186.html
13528 and http://ha.ckers.org/xss.html. Resolves Issue #62.
13532 + Override Text.XHtml's stringToHtml function,
13533 so that characters below 0xff are not converted to numerical entity
13534 references. Also convert '\160' to " ". This should aid readability
13535 and editability of the HTML source. It does presuppose that the HTML
13536 will be served as UTF-8.
13537 + In code blocks, change leading newlines to <br /> tags.
13538 (Some browsers ignore them.) Resolves Issue #71.
13539 See http://six.pairlist.net/pipermail/markdown-discuss/2008-May/001297.html
13540 + Use style attributes rather than css classes for strikethrough
13541 and ordered list styles. This works better when fragments, rather than
13542 standalone documents, are generated.
13544 * HTML reader: Count anything that isn't a known block (HTML) tag as an
13545 inline tag (rather than the other way around). Added "html", "head", and
13546 "body" to list of block tags. Resolves Issue #66, allowing
13547 <lj> to count as an inline tag.
13549 * RTF writer: Fixed bug. Extra spaces were being printed after emphasized,
13550 boldface, and other inline elements. Resolves Issue #64.
13552 * LaTeX reader: improvements in raw LaTeX parsing.
13554 + "loose punctuation" (like {}) parsed as Space
13555 + Para elements must contain more than Str "" and Space elements
13556 + Added parser for "\ignore" command used in literate haskell.
13557 + Reworked unknownCommand and rawLaTeXInline: when not in "parse raw"
13558 mode, these parsers simply strip off the command part and allow
13559 the arguments to be parsed normally. So, for example,
13560 \blorg{\emph{hi}} will be parsed as Emph "hi" rather than
13561 Str "{\\emph{hi}}".
13562 + Parse lhs "code" environments as verbatim.
13563 Refactored parsers for verbatim environments.
13564 + Removed specialEnvironment parser.
13565 + parse '{}', if present, after \textless, \textgreater,
13566 \textbar, \textbackslash, \ldots.
13567 + Parse unescaped special characters verbatim rather than
13568 changing them to spaces. This way arguments of unknown
13569 commands will appear in braces.
13571 * Parse raw ConTeXt environments as TeX in markdown reader.
13572 Resolves Issue #73.
13574 * Moved BlockWrapper and wrappedBlocksToDoc from ConTeXt writer to Shared.
13576 * Made some structural changes to parsing of raw LaTeX environments.
13577 Previously there was a special block parser for LaTeX environments.
13578 It returned a Para element containing the raw TeX inline. This has
13579 been removed, and the raw LaTeX environment parser is now used in the
13580 rawLaTeXInline parser. The effect is exactly the same, except that we
13581 can now handle consecutive LaTeX and ConTeXt environments not separated
13582 by spaces. This new flexibility is required by the example in
13585 \placeformula \startformula
13589 API change: The LaTeX reader now exports rawLaTeXEnvironment' (which
13590 returns a string) rather than rawLaTeXEnvironment (which returns a block
13591 element). This is more likely to be useful in other applications.
13593 * Use \textsubscr instead of \textsubscript for LaTeX subscript macro.
13594 \textsubscript conflicts with a definition in the memoir class.
13595 Resolves Issue #65.
13597 * Removed unneeded space after "\\item" in LaTeX and ConTeXt output.
13599 * Added amsmath package to default LaTeX header. Resolves Issue #48.
13601 * Added \setupitemize[autointro] to ConTeXt header, to prevent orphaned
13602 list introduction lines.
13604 * Changed Float to Double in definition of Table element.
13605 (Double is more efficient in GHC.)
13607 * Fixed bug in Markdown parser: regular $s triggering math mode.
13608 For example: "shoes ($20) and socks ($5)."
13609 The fix consists in two new restrictions:
13611 + the $ that ends a math span may not be directly followed by a digit.
13612 + no blank lines may be included within a math span.
13614 Thanks to Joseph Reagle for noticing the bug.
13616 * Use Data.List's 'intercalate' instead of custom 'joinWithSep'.
13617 Removed 'joinWithSep' from Text.Pandoc.Shared.
13619 * Updated README and man pages. Acknowledge contributors in README.
13620 Added paragraph to README about producing S5 with separate CSS/javascript.
13622 * Updated INSTALL to reflect new build system (including configuration
13623 options) and document new dependencies. Added note to INSTALL that
13624 Cabal >= 1.2 is required for build. Resolves Issue #74.
13626 * Fixed some haddock documentation errors.
13628 * Small fix to markdown2pdf man page: only input needs to be piped through iconv.
13630pandoc (0.46) unstable; urgency=low
13632 [ John MacFarlane ]
13634 * Made -H, -A, and -B options cumulative: if they are specified
13635 multiple times, multiple files will be included.
13637 * Added optional HTML sanitization using a whitelist.
13638 When this option is specified (--sanitize-html on the command line),
13639 unsafe HTML tags will be replaced by HTML comments, and unsafe HTML
13640 attributes will be removed. This option should be especially useful
13641 for those who want to use pandoc libraries in web applications, where
13642 users will provide the input.
13644 + Main.hs: Added --sanitize-html option.
13646 + Text.Pandoc.Shared: Added stateSanitizeHTML to ParserState.
13648 + Text.Pandoc.Readers.HTML:
13649 - Added whitelists of sanitaryTags and sanitaryAttributes.
13650 - Added parsers to check these lists (and state) to see if a given
13651 tag or attribute should be counted unsafe.
13652 - Modified anyHtmlTag and anyHtmlEndTag to replace unsafe tags
13654 - Modified htmlAttribute to remove unsafe attributes.
13655 - Modified htmlScript and htmlStyle to remove these elements if
13658 + Modified README and man pages to document new option.
13660 * Improved handling of email addresses in markdown and reStructuredText.
13661 Consolidated uri and email address parsers. (Resolves Issue #37.)
13663 + New emailAddress and uri parsers in Text.Pandoc.Shared.
13664 - uri parser uses parseURI from Network.URI.
13665 - emailAddress parser properly handles email addresses with periods
13668 + Removed uri and emailAddress parsers from Text.Pandoc.Readers.RST
13669 and Text.Pandoc.Readers.Markdown.
13673 + Fixed emph parser so that "*hi **there***" is parsed as a Strong
13674 nested in an Emph. (A '*' is only recognized as the end of the
13675 emphasis if it's not the beginning of a strong emphasis.)
13677 + Moved blockQuote parser before list parsers for performance.
13679 + Modified 'source' parser to allow backslash-escapes in URLs.
13680 So, for example, [my](/url\(1\)) yields a link to /url(1).
13681 Resolves Issue #34.
13683 + Disallowed links within links. (Resolves Issue #35.)
13684 - Replaced inlinesInBalanced with inlinesInBalancedBrackets, which
13685 instead of hard-coding the inline parser takes an inline parser
13687 - Modified reference and inlineNote to use inlinesInBalancedBrackets.
13688 - Removed unneeded inlineString function.
13689 - Added inlineNonLink parser, which is now used in the definition of
13691 - Added inlineParsers list and redefined inline and inlineNonLink parsers
13693 - Added failIfLink parser.
13695 + Better handling of parentheses in URLs and quotation marks in titles.
13696 - 'source' parser first tries to parse URL with balanced parentheses;
13697 if that doesn't work, it tries to parse everything beginning with
13698 '(' and ending with ')'.
13699 - source parser now uses an auxiliary function source'.
13700 - linkTitle parser simplified and improved, under assumption that it
13701 will be called in context of source'.
13703 + Make 'block' conditional on strictness state, instead of using
13704 failIfStrict in block parsers. Use a different ordering of parsers
13705 in strict mode (raw HTML block before paragraph) for performance.
13706 In non-strict mode use rawHtmlBlocks instead of htmlBlock.
13707 Simplified htmlBlock, since we know it's only called in strict
13710 + Improved handling of raw HTML. (Resolves Issue #36.)
13711 - Tags that can be either block or inline (e.g. <ins>) should
13712 be treated as block when appropriate and as inline when
13713 appropriate. Thus, for example,
13715 should be treated as a paragraph with inline <ins> tags, while
13719 should be treated as a paragraph within <ins> tags.
13720 - Moved htmlBlock after para in list of block parsers. This ensures
13721 that tags that can be either block or inline get parsed as inline
13723 - Modified rawHtmlInline' so that block elements aren't treated as
13725 - Modified para parser so that paragraphs containing only HTML tags and
13726 blank space are not allowed. Treat these as raw HTML blocks instead.
13728 + Fixed bug wherein HTML preceding a code block could cause it to
13729 be parsed as a paragraph. The problem is that the HTML parser
13730 used to eat all blank space after an HTML block, including the
13731 indentation of the code block. (Resolves Issue #39.)
13732 - In Text.Pandoc.Readers.HTML, removed parsing of following space
13734 - In Text.Pandoc.Readers.Markdown, modified rawHtmlBlocks so that
13735 indentation is eaten *only* on the first line after the HTML
13736 block. This means that in
13740 the foo won't be treated as a code block, but in
13746 it will. This seems the right approach for least surprise.
13750 + Fixed bug in parsing explicit links (resolves Issue #44).
13751 The problem was that we were looking for inlines until a '<' character
13752 signaled the start of the URL; so, if you hit a reference-style link,
13753 it would keep looking til the end of the document. Fix: change
13754 inline => (notFollowedBy (char '`') >> inline). Note that this won't
13755 allow code inlines in links, but these aren't allowed in resT anyway.
13757 + Cleaned up parsing of reference names in key blocks and links.
13758 Allow nonquoted reference links to contain isolated '.', '-', '_', so
13759 so that strings like 'a_b_' count as links.
13761 + Removed unnecessary check for following link in str.
13762 This is unnecessary now that link is above str in the definition of
13767 + Modified rawHtmlBlock so it parses </html> and </body> tags.
13768 This allows these tags to be handled correctly in Markdown.
13769 HTML reader now uses rawHtmlBlock', which excludes </html> and </body>,
13770 since these are handled in parseHtml. (Resolves Issue #38.)
13772 + Fixed bug (emph parser was looking for `<IT>` tag, not `<I>`).
13774 + Don't interpret contents of style tags as markdown.
13775 (Resolves Issue #40.)
13776 - Added htmlStyle, analogous to htmlScript.
13777 - Use htmlStyle in htmlBlockElement and rawHtmlInline.
13778 - Moved "script" from the list of tags that can be either block or
13779 inline to the list of block tags.
13781 + Modified rawHtmlBlock to use anyHtmlBlockTag instead of anyHtmlTag
13782 and anyHtmlEndTag. This fixes a bug in markdown parsing, where
13783 inline tags would be included in raw HTML blocks.
13785 + Modified anyHtmlBlockTag to test for (not inline) rather than
13786 directly for block. This allows us to handle e.g. docbook in
13787 the markdown reader.
13789 * LaTeX reader: Properly recognize --parse-raw in rawLaTeXInline.
13790 Updated LaTeX reader test to use --parse-raw.
13794 + Modified rules for automatic HTML header identifiers to
13795 ensure that identifiers begin with an alphabetic character.
13796 The new rules are described in README. (Resolves Issue #33.)
13798 + Changed handling of titles in HTML writer so you don't get
13799 "titleprefix - " followed by nothing.
13801 * ConTeXt writer: Use wrappers around Doc elements to ensure proper
13802 spacing. Each block element is wrapped with either Pad or Reg.
13803 Pad'ed elements are guaranteed to have a blank line in between.
13807 + Refactored RST writer to use a record instead of a tuple for state,
13808 and to include options in state so it doesn't need to be passed as
13811 + Use an interpreted text role to render math in restructuredText.
13812 See http://www.american.edu/econ/itex2mml/mathhack.rst for the
13817 * Debian packaging changes:
13819 + Remove the empty 'include' directory in -dev package, which lintian
13821 + Bump Standarts-Version to 3.7.3.
13822 + Use new 'Homepage:' field to specify the upstream URL on suggestion of
13825 -- Recai Oktaş <roktas@debian.org> Tue, 08 Jan 2008 05:13:31 +0200
13827pandoc (0.45) unstable; urgency=low
13829 [ John MacFarlane ]
13831 * Simplified parsing of reference keys and notes in markdown and RST
13832 readers: The Reference data structure from Text.Pandoc.Shared is no
13833 longer needed, since referenceKey and noteBlock parses return strings
13834 (as many blank lines as were occupied by the key or note) and update
13835 state themselves. getPosition and setPosition are now used to ensure
13836 that error messages will give the correct line number. This yields
13837 cleaner (and slightly faster) code, with more accurate parsing error
13840 * Added new Math inline element:
13842 + Markdown and LaTeX readers now convert TeX math into Math elements,
13844 + This allows math to be treated differently from raw TeX in output.
13845 TeX elements are no longer printed in output formats other than
13846 Markdown, LaTeX, and ConTeXt. But Math elements are always printed.
13848 * New default handling of math in writers:
13850 + New module Text.Pandoc.Readers.TeXMath exports readTeXMath, which
13851 parses raw TeX math and outputs a string of Pandoc inlines that
13852 tries to render it as far as possible using unicode characters,
13853 lapsing into literal TeX when needed.
13854 + readTeXMath is now used for default HTML output in HTML, S5, RTF,
13855 and Docbook, if no other method for displaying math in HTML is
13856 specified. Enclosing $'s are no longer printed by default.
13857 + By default, math is put inside `<span class="math">`. This way it can be
13858 distinguished from the surrounding text, e.g. put in a different
13861 * New --gladtex and --mimetex options for display of math in HTML:
13863 + If --gladtex is specified, math is output between `<eq>` tags, so
13864 it can be processed by gladTeX.
13865 + If --mimetex is specified, math is put in `<img>` tags with a link
13866 to the mimetex CGI script (or any other script that takes TeX math
13867 as input and outputs an image). The URL of the script may be
13868 specified, but defaults to /cgi-bin/mimetex.cgi.
13869 + HTMLMathMethod structure in WriterOptions keeps track of how to
13870 display math in HTML output.
13871 + Updated README with a description of the four options for displaying
13876 + Fixed bug: parser for minimized attributes should not swallow
13878 + Simplified HTML attribute parsing.
13879 + Changed parsing of code blocks in HTML reader: `<code>` tag is no
13880 longer needed. `<pre>` suffices. All HTML tags in the code block
13881 (e.g. for syntax highlighting) are skipped, because they are not
13882 portable to other output formats. A `<code>...</code>` block not
13883 surrounded by `<pre>` now counts as inline HTML, not a code block.
13884 + Remove just one leading and one trailing newline from contents of
13885 `<pre>...</pre>` in codeBlock parser.
13889 + Removed support for box-style block quotes.
13890 + Require space before title in links and references.
13891 This fixes a bug in parsing URLs like http://silly/url(withparen).
13892 + Improved and simplified setextHeader parser.
13893 + Fixed logic in smart quote parsing, adding some needed 'try'
13895 + Fixed smart quote parsing so that unicode characters 8216 and 8217
13896 are recognized as single quotes, and 8220 and 8221 as double quotes.
13900 + Fixed bug in parsing of code blocks. Previously a full tab indent
13901 was required, but RST allows code to be indented any amount.
13902 Resolves Issue #27.
13903 + Allow field lists to be indented.
13904 + Parse the contents of field lists instead of treating as a raw string.
13905 + Represent field lists as definition lists instead of blockquotes.
13906 + Fixed bug in which metadata would be overridden if the document
13907 contained multiple field lists.
13908 + Parse fields associated with '.. image::' blocks, and use 'alt'
13909 field, if given, for image alt and title attributes.
13913 + Modified specialChar so that '"' characters are parsed.
13914 + Fixed a bug in parsing of \[ \] math blocks (thanks to Mark Kalderon).
13918 + Changes in handling of math (see above).
13919 + Don't produce HTML for table of contents if there are
13920 no headers. (This would be an empty list, which is invalid XHTML.)
13924 + Don't print title attribute if title is empty. (This differs from
13925 the behavior of Markdown.pl, and agrees with PHP Markdown. But John
13926 Gruber has indicated that he prefers this behavior.) Adjusted test
13928 + Fixed incorrect line wrapping in paragraphs including hard line
13929 breaks. Resolves Issue #25.
13930 + Fixed bug in markdown writer: If an ordered list item began with
13931 a marker greater than 3 characters in width, and the item took more
13932 than one line, it would appear on the line after the list marker,
13939 Now it works as follows:
13946 + Fixed bug in RST writer's handling of ordered lists. Previously,
13947 list items with multiple lines would not always line up with
13948 single-line list items. Now, list items are nested the length of
13949 the list marker + 1. This looks better and ensures that list items
13950 all line up. (Note that list markers are padded to the length of
13951 the longest list marker in the series.)
13952 + Use 3-space indent for unordered lists.
13953 + If label for a link reference contains a colon, surround it by `
13954 signs so it won't be interpreted as the end of the link label.
13958 + Cleaner output for footnotes. Footnotes now always begin on a new
13959 line, and the final } is on a line by itself only when it needs to
13960 be (i.e. only when the note ends with a Verbatim environment).
13961 + Added writer options to state, so state doesn't need to be passed as
13963 + Text wrapping now provided, using wrapTeXIfNeeded.
13965 * ConTeXt writer: many improvements for more idiomatic ConTeXt output
13966 (thanks to Idris Samawi Hamid for suggestions).
13968 + PrettyPrint module now used for output.
13969 + Writer options are now in state, so they don't have to be passed as
13971 + Text wrapping now provided, using wrapTeXIfNeeded.
13972 + Better treatment of footnotes: footnotes are always on lines by
13973 themselves, and the final } is on a line by itself only when
13974 it needs to be (after \stoptyping).
13975 + Use \subject, \subsubject, ... or \section, \subsection, ... for headings,
13976 depending on whether --number-sections option is selected.
13977 + Extra blank line inserted after \stopitemize
13978 + Use new, "official" definition of blockquote environment. Also, use
13979 blank line after \startblockquote to balance blank line at the end.
13980 + Both itemized and enumerated lists are now generated using
13981 \start-stopitemize, with appropriate options. Removed definitions
13982 of ltxenum and ltxitem, which are no longer needed. Provided
13983 defaults for itemized lists in the preamble. State keeps track of
13984 ordered list level, so that when default numbering is specified,
13985 the appropriate scheme can be used.
13986 + Changed \useurl to \useURL.
13987 + Changed link color from red to blue.
13988 + Use \subsubsubsubsection etc., since these are supported
13989 (up to at least sub x 5).
13991 * Text.Pandoc.Shared:
13993 + Save and restore position in parseFromString, so that accurate
13994 error messages can be given.
13995 + Improved efficiency of romanNumeral parser.
13996 + Added wrappedTeX and wrapTeXIfNeeded functions. These ensure
13997 that footnotes occur on lines by themselves (to make them
13998 easier to see and move) and do not screw up line wrapping.
14000 * Text.Pandoc.UTF8: modified fromUTF8 to strip out the BOM
14001 if present. Windows Notepad and other applications insert a
14002 BOM at the beginning of a UTF8 file.
14004 * Main.hs (tabFilter): Treat '\r' at end of line as newline (in
14005 addition to "\r\n" and '\n').
14007 * Added a writer option for wrapped text and a command-line option
14008 '--no-wrap', which disables text wrapping and minimizes whitespace
14009 in HTML. (Resolves Issue #26.)
14011 + Added support for '--no-wrap' to Main.hs.
14012 + Added wrapIfNeeded function to Text.Pandoc.Shared.
14013 + Use wrapIfNeeded instead of wrapped in the RST, Man, Docbook, and
14015 + Added render and renderFragment helpers to HTML writer.
14017 * Modified html2markdown to run tidy only if the HTML cannot be
14018 parsed. Previously html2markdown piped all input through tidy
14019 before passing it to pandoc. This caused problems on certain pages
14020 (e.g. http://daringfireball.com/markdown) which have well-formed
14021 XHTML that causes tidy to choke. The solution is to pipe through
14022 tidy only if pandoc cannot parse the input by itself. This means
14023 that a temp file is now always used, even when input comes from a
14024 local file or standard input.
14026 * Removed 'version' constant from Main.hs; added 'pandocVersion' to
14027 Text.Pandoc library.
14031 + Modified to work with GHC 6.8 and Cabal configurations. (For GHC
14032 6.8, pretty and containers must be added to Build-Depends, and it
14033 is desirable to use the -O2 compiler option.) Cabal configurations
14034 allows one to select options depending on the compiler version.
14035 For GHC 6.6, the splitBase option can be disabled.
14036 + pandoc.cabal.ghc66 is provided for users with older versions of
14037 Cabal, which do not support configurations.
14038 + Use Ghc-Prof-Options to ensure that '-auto-all' is used when
14039 '--enable-(executable|library)-profiling' is specified. Updated
14040 PROFILING instructions accordingly.
14044 + Makefile now checks GHC version. If GHC is 6.6, pandoc.cabal.ghc66
14045 is copied to pandoc.cabal, and the old pandoc.cabal is copied
14046 to pandoc.cabal.orig. Otherwise, pandoc.cabal is copied to
14047 pandoc.cabal.orig but otherwise unmodified. This way, the Makefile
14048 will work properly with either GHC 6.6 or 6.8.
14049 + Changed BUILDCONF to point to dist/setup-config, not .setup-config.
14050 This is where current versions of Cabal put it.
14051 + Added $(BUILDCMD) target, so setup doesn't get compiled every time.
14052 + Removed dependency of templates on ./templates, which is circular
14053 now that templates is a subdirectory of the top-level.
14055 * MacPorts Portfile:
14057 + Modified to install the pandoc library in addition to programs.
14058 + Installation must be done manually rather than using Makefile's
14060 + Note that the library must be registered in the activate phase,
14061 after the library files have been copied out of the destroot.
14062 Cabal generates a 'register.sh' script that will do this.
14064 * debian/control: Added libghc6-network-dev, libghc6-xhtml-dev, and
14065 libghc6-mtl-dev as dependencies for libghc6-pandoc-dev.
14068 * debian/rules: Converted to UTF-8.
14070 * Changed pandoc home page to http://johnmacfarlane.net/pandoc/.
14072 * Updated ASCIIMathML.js to latest version.
14074 * Directory structure:
14076 + Moved everything from src into the top-level directory.
14077 + Changed references to source directory in Makefile and
14079 + Moved ASCIIMathML.js, headers, and ui into templates directory.
14080 + Modified fillTemplates.pl to reflect new paths.
14084 * Makefile: Fixed the issue of having two copies of the library
14085 documentation under some usage scenarios.
14087 * Replaced 'ghc' with '$(GHC)' in Makefile, and made GHC
14088 and GHC_PKG configurable through the environment, to support
14089 unusual ghc installations. For example:
14090 GHC=/opt/ghc/bin/ghc GHC_PKG=/opt/ghc/bin/ghc-pkg make
14092 -- Recai Oktaş <roktas@debian.org> Sun, 07 Oct 2007 20:51:43 +0300
14094pandoc (0.44) unstable; urgency=low
14096 [ John MacFarlane ]
14098 * Fixed bug in HTML writer: when --toc was used, anchors were put around
14099 headers, which is invalid XHTML (block content within inline element).
14100 Now the anchors are put inside the header tags. Resolves Issue #23.
14102 * Added xmlns attribute to html element in html writer tests.
14103 This attribute is added by more recent versions of the
14104 xhtml library (>= 3000), and is required for valid XHTML.
14108 * On configure, compile 'Setup.hs' to 'setup' and use 'setup' as the build
14109 command instead of 'runhaskell', which, on some platforms (such as s390,
14110 alpha, m68k), throws the following error:
14112 runhaskell Setup.hs configure --prefix=/usr
14113 ghc-6.6.1: not built for interactive use
14115 This causes a serious FTBFS bug. Closes: #440668.
14117 -- Recai Oktaş <roktas@debian.org> Mon, 03 Sep 2007 18:24:02 +0300
14119pandoc (0.43) unstable; urgency=low
14121 [ John MacFarlane ]
14123 * The focus of this release is performance. The markdown parser
14124 is about five times faster than in 0.42, based on benchmarks
14125 with the TextMate manual.
14127 * Main.hs: Replaced CRFilter and tabFilter with single function
14128 tabFilter, which operates on the whole string rather than breaking
14129 it into lines, and handles dos-style line-endings as well as tabs.
14131 * Added separate LaTeX reader and native reader tests; removed
14134 * Text.Pandoc.Shared:
14136 + Removed tabsToSpaces and tabsInLine (they were used only in Main.hs.)
14137 + General code cleanup (to elimante warnings when compiling with -Wall.)
14138 + Added 'wrapped' function, which helps wrap text into paragraphs,
14139 using the prettyprinting library.
14140 + Rewrote charsInBalanced and charsInBalanced'.
14141 - Documented restriction: open and close must be distinct characters.
14142 - Rearranged options for greater efficiency.
14143 - Bug fix: Changed inner call to charsInBalanced inside
14144 charsInBalanced' to charsInBalanced'.
14145 + anyLine now requires that the line end with a newline (not eof).
14146 This is a harmless assumption, since we always add newlines to the
14147 end of a block before parsing with anyLine, and it yields a 10% speed
14149 + Removed unnecessary 'try' in anyLine.
14150 + Removed unneeded 'try' from romanNumeral parser.
14151 + Use notFollowedBy instead of notFollowedBy' in charsInBalanced.
14152 + Removed unneeded 'try' in parseFromString.
14153 + Removed unneeded 'try' from stringAnyCase. (Now it behaves
14155 + Changed definition of 'enclosed' in Text.Pandoc.Shared so that
14156 'try' is not automatically applied to the 'end' parser. Added
14157 'try' in calls to 'enclosed' where needed. Slight speed increase.
14161 + Replaced individual wrapping routines in RST, Man, and Markdown
14162 writers with 'wrapped' from Text.Pandoc.Shared.
14163 + Rewrote LaTeX writer to use the prettyprinting library,
14164 so we get word wrapping, etc.
14165 + Modified latex writer tests for new latex writer using prettyprinter.
14166 + Fixed bug in LaTeX writer: autolinks would not cause
14167 '\usepackage{url}' to be put in the document header. Also, changes
14168 to state in enumerated list items would be overwritten.
14169 + In Markdown writer, escape paragraphs that begin with ordered list
14170 markers, so they don't get interpreted as ordered lists.
14172 * Text.Pandoc.Reades.LaTeX:
14174 + Fixed bug in LaTeX reader, which wrongly assumed that the roman
14175 numeral after "enum" in "setcounter" would consist entirely of
14176 "i"s. 'enumiv' is legitimate.
14177 + LaTeX command and environment names can't contain numbers.
14178 + Rearranged order of parsers in inline for slight speed improvement.
14179 + Added '`' to special characters and 'unescapedChar'.
14181 * Text.Pandoc.Readers.RST:
14183 + Removed unneeded try's in RST reader; also minor code cleanup.
14185 + Rearranged parsers in inline (doubled speed).
14187 * Text.Pandoc.Readers.Markdown:
14189 + Skip notes parsing if running in strict mode. (This yields a nice
14190 speed improvement in strict mode.)
14191 + Simplify autolink parsing code, using Network.URI to test for
14192 URIs. Added dependency on network library to debian/control and
14194 + More perspicuous definition of nonindentSpaces.
14195 + Removed unneeded 'try' in 'rawLine'.
14196 + Combined linebreak and whitespace into a new whitespace parser, to
14197 avoid unnecessary reparsing of space characters.
14198 + Removed unnecessary 'try' in 'codeBlock', 'ellipses', 'noteMarker',
14199 'multilineRow', 'dashedLine', 'rawHtmlBlocks'.
14200 + Use lookAhead in parsers for setext headers and definition lists
14201 to see if the next line begins appropriately; if not, don't waste
14202 any more time parsing.
14203 + Don't require blank lines after code block. (It's sufficient to
14204 end code block with a nonindented line.)
14205 + Changed definition of 'emph': italics with '_' must not
14206 be followed by an alphanumeric character. This is to help
14207 prevent interpretation of e.g. `[LC_TYPE]: my_type` as
14208 `[LC<em>TYPE]:my</em>type`.
14209 + Improved Markdown.pl-compatibility in referenceLink: the two parts
14210 of a reference-style link may be separated by one space, but not
14211 more... [a] [link], [not] [a link].
14212 + Fixed markdown inline code parsing so it better accords with
14213 Markdown.pl: the marker for the end of the code section is a clump
14214 of the same number of `'s with which the section began, followed
14215 by a non-` character. So, for example,
14216 ` h ``` i ` -> `<code>h ``` i</code>`.
14217 + Split 'title' into 'linkTitle' and 'referenceTitle', since the
14218 rules are slightly different.
14219 + Rewrote 'para' for greater efficiency.
14220 + Rewrote link parsers for greater efficiency.
14221 + Removed redundant 'referenceLink' in definition of inline (it's
14222 already in 'link').
14223 + Refactored escapeChar so it doesn't need 'try'.
14224 + Refactored hrule for performance in Markdown reader.
14225 + More intelligent rearranging of 'inline' so that most frequently
14226 used parsers are tried first.
14227 + Removed tabchar parser, as whitespace handles tabs anyway.
14229 * Text.Pandoc.CharacterReferences:
14232 + Removed unnecessary 'try's for a speed improvement.
14233 + Removed unnecessary '&' and ';' from the entity table.
14237 + Makefile: Get VERSION from cabal file, not Main.hs.
14238 + Modified MacPorts Portfile:
14239 - Depend on haddock
14240 - Build and install libraries and library documentation in
14241 addition to pandoc executable
14242 - Added template item for md5 sum in Portfile.in.
14243 - Incorporated changes from MacPorts repository (r28278).
14244 + FreeBSD port: Don't try to generate distinfo in Makefile.
14245 It can be made using 'make makesum' in FreeBSD.
14246 + Make both freebsd and macports targets depend on tarball.
14248 * Website and documentation:
14250 + Updated INSTALL instructions.
14251 + Added pandocwiki demo to website.
14252 + Removed local references to Portfile, since pandoc is now in the
14253 MacPorts repository.
14255 -- Recai Oktaş <roktas@debian.org> Sun, 02 Sep 2007 15:50:11 +0300
14257pandoc (0.42) unstable; urgency=low
14259 [ John MacFarlane ]
14261 * Main.hs: Use utf8 conversion on the extra files loaded with
14262 the -H, -C, -B, and -A options. This fixes problems with unicode
14263 characters in these files.
14265 * Exposed Text.Pandoc.ASCIIMathML, since it is imported in
14266 Text.Pandoc.Readers.HTML and without it we get a linking error when
14271 + Added new rule for enhanced markdown ordered lists: if the list
14272 marker is a capital letter followed by a period (including a
14273 single-letter capital roman numeral), then it must be followed by
14274 at least two spaces. The point of this is to avoid accidentally
14275 treating people's initials as list markers: a paragraph might begin,
14276 "B. Russell was an English philosopher," and this shouldn't be
14277 treated as a list. Documented change in README.
14278 + Blocks that start with "p. " and a digit are no longer treated
14279 as ordered lists (it's a page number).
14280 + Added a needed 'try' to listItem.
14281 + Removed check for a following setext header in endline.
14282 A full test is too inefficient (doubles benchmark time), and the
14283 substitute we had before is not 100% accurate.
14284 + Don't use Code elements for autolinks if --strict specified.
14286 * LaTeX writer: When a footnote ends with a Verbatim environment, the
14287 close } of the footnote cannot occur on the same line or an error occurs.
14288 Fixed this by adding a newline before the closing } of every footnote.
14291 + Removed incorrect "{}" around style information in HTML tables.
14292 Column widths now work properly in HTML.
14293 + If --strict option is specified (and --toc is not), don't include
14294 identifiers in headers, for better Markdown compatibility.
14298 + Separated $(web_dest) and website targets.
14299 + In website, index.txt is now constructed from template index.txt.in.
14300 + Added freebsd target to Markefile. This creates the freebsd Makefile
14301 from Makefile.in, and creates distinfo. Removed Makefile and distinfo
14302 from the repository.
14303 + Added macport target to Makefile. Portfile is built from template
14305 + Removed OSX package targets. (Too many difficulties involving
14306 dependencies on dynamic libraries.)
14307 + More complete INSTALL instructions for all architectures.
14310 + Added a programming demo, pandocwiki.
14314 * Do not forget to close pandoc's ITP. Closes: #391666
14316 -- Recai Oktaş <roktas@debian.org> Sun, 26 Aug 2007 22:51:32 +0300
14318pandoc (0.41) unstable; urgency=low
14320 [ John MacFarlane ]
14322 * Fixed bugs in HTML reader:
14323 + Skip material at end *only if* `</html>` is present (previously,
14324 only part of the document would be parsed if an error was
14325 found; now a proper error message is given).
14326 + Added new constant eitherBlockOrInline with elements that may
14327 count either as block-level or as inline. Modified isInline and
14328 isBlock to take this into account.
14329 + Modified rawHtmlBlock to accept any tag (even an inline tag):
14330 this is innocuous, because rawHtmlBlock is tried only if a regular
14331 inline element can't be parsed.
14332 + Added a necessary 'try' in definition of 'para'.
14334 * Fixed bug in markdown ordered list parsing. The problem was that
14335 anyOrderedListStart did not check for a space following the
14336 ordered list marker. So in 'A.B. 2007' the parser would be
14337 expecting a list item, but would not find one, causing an error.
14338 Fixed a similar bug in the RST reader. Resolves Issue #22.
14340 * Refactored RST and Markdown readers using parseFromString.
14342 * LaTeX reader will now skip anything after \end{document}.
14344 * Fixed blockquote output in markdown writer: previously, block
14345 quotes in indented contexts would be indented only in the first
14348 * Added note to INSTALL about variations in versions of the xhtml
14349 library that can lead to failed tests (thanks to Leif LeBaron).
14351 -- Recai Oktaş <roktas@debian.org> Sun, 19 Aug 2007 23:26:07 +0300
14353pandoc (0.4) unstable; urgency=low
14355 [ John MacFarlane ]
14357 * Added two new output formats: groff man pages and ConTeXt. By
14358 default, output files with extensions ".ctx" and ".context" are
14359 assumed to be ConTeXt, and output files with single-digit extensions
14360 are assumed to be man pages.
14362 * Enhanced ordered lists (documented in README, under Lists):
14363 + The OrderedList block element now stores information about
14364 list number style, list number delimiter, and starting number.
14365 + The readers parse this information when possible.
14366 + The writers use this information to style ordered lists.
14367 + The enhancement can be disabled using the --strict option.
14369 * Added support for tables (with a new Table block element). Two kinds
14370 of tables are supported: a simple table with one-line rows, and a
14371 more complex variety with multiline rows. All output formats are
14372 supported, but only markdown tables are parsed at the moment. The
14373 syntax is documented in README.
14375 * Added support for definition lists (with a new DefinitionList block
14376 element). All output and input formats are supported. The syntax is
14377 documented in README.
14379 * Added support for superscripts and subscripts (with new Superscript
14380 and Subscript inline elements). All input and output
14381 formats. The syntax is documented in README.
14383 * Added support for strikeout (with a new Strikeout inline element).
14384 All input and output formats are supported. Thanks to Bradley Kuhn,
14385 who contributed a patch. The syntax is documented in README. Resolves
14388 * Added a --toc|--table-of-contents option. This causes an automatically
14389 generated table of contents (or an instruction that creates one) to
14390 be inserted at the beginning of the document. Not supported in S5,
14391 DocBook, or man page writers.
14393 * Modified the -m|--asciimathml option:
14395 + If an optional URL argument is provided, a link is inserted
14396 instead of the contents of the ASCIIMathML.js script.
14397 + Nothing is inserted unless the document actually contains
14400 * Removed Blank block element as unnecessary.
14402 * Removed Key and Note blocks from the Pandoc data structure. All
14403 links are now stored as explicit links, and note contents are
14404 stored with the (inline) notes.
14406 + All link Targets are now explicit (URL, title) pairs; there
14407 is no longer a 'Ref' target.
14408 + Markdown and RST parsers now need to extract data from key and
14409 note blocks and insert them into the relevant inline elements.
14410 Other parsers have been simplified, since there is no longer any need
14411 to construct separate key and note blocks.
14412 + Markdown, RST, and HTML writers need to construct lists of
14413 notes; Markdown and RST writers need to construct lists of link
14414 references (when the --reference-links option is specified); and
14415 the RST writer needs to construct a list of image substitution
14416 references. All writers have been rewritten to use the State monad
14417 when state is required.
14418 + Several functions (generateReference, keyTable,
14419 replaceReferenceLinks, replaceRefLinksBlockList, and some auxiliaries
14420 used by them) have been removed from Text.Pandoc.Shared, since
14421 they are no longer needed. New functions and data structures
14422 (Reference, isNoteBlock, isKeyBlock, isLineClump) have been
14423 added. The functions inTags, selfClosingTag, inTagsSimple, and
14424 inTagsIndented have been moved to the DocBook writer, since that
14425 is now the only module that uses them. NoteTable is now exported
14426 in Text.Pandoc.Shared.
14427 + Added stateKeys and stateNotes to ParserState; removed stateKeyBlocks,
14428 stateKeysUsed, stateNoteBlocks, stateNoteIdentifiers, stateInlineLinks.
14429 + Added writerNotes and writerReferenceLinks to WriterOptions.
14431 * Added Text.Pandoc module that exports basic readers, writers,
14432 definitions, and utility functions. This should export everything
14433 needed for most uses of Pandoc libraries. The haddock documentation
14434 includes a short example program.
14436 * Text.Pandoc.ASCIIMathML is no longer an exported module.
14438 * Added Text.Pandoc.Blocks module to help in printing markdown
14439 and RST tables. This module provides functions for working with
14440 fixed-width blocks of text--e.g., placing them side by side, as
14443 * Refactored to avoid reliance on Haskell's Text.Regex library, which
14444 (a) is slow, and (b) does not properly handle unicode. This fixed
14445 some strange bugs, e.g. in parsing S-cedilla, and improved performance.
14447 + Replaced 'gsub' with a general list function 'substitute'
14448 that does not rely on Text.Regex.
14449 + Rewrote extractTagType in HTML reader so that it doesn't use
14451 + In Markdown reader, replaced email regex test with a custom email
14452 autolink parser (autoLinkEmail). Also replaced selfClosingTag regex
14453 with a custom function isSelfClosingTag.
14454 + Modified Docbook writer so that it doesn't rely on Text.Regex for
14455 detecting 'mailto' links.
14456 + Removed escapePreservingRegex and reamped entity-handling
14457 functions in Text.Pandoc.Shared and Text.Pandoc.CharacterReferences to
14458 avoid reliance on Text.Regex (see below on character reference
14461 * Renamed Text.Pandoc.Entities as Text.Pandoc.CharacterReferences.
14463 * Changed handling of XML entities. Entities are now parsed (and unicode
14464 characters returned) in the Markdown and HTML readers, rather than being
14465 handled in the writers. In HTML and Docbook writers, UTF-8 is now used
14466 instead of entities for characters above 128. This makes the HTML and
14467 DocBook output much more readable and more easily editable.
14469 + Removed sgmlHexEntity, sgmlDecimalEntity, sgmlNamedEntity, and
14470 sgmlCharacterEntity regexes from Text.Pandoc.Shared.
14471 + Renamed escapeSGMLChar to escapeCharForXML. Added escapeStringForXML.
14472 Moved both functions to Text.Pandoc.Writers.Docbook.
14473 + Added characterReference parser to Text.Pandoc.CharacterReferences.
14474 This parses a string and return a unicode character.
14475 + Rewrote decodeCharacterReferences to use the new parser instead of
14477 + Added new charRef parser for Markdown and HTML, which replaces the
14478 old 'entity' parser. Added '&' as a special character in Markdown reader.
14479 + Modified HTML and Markdown readers to call decodeEntities on all raw
14480 strings (e.g. authors, dates, link titles), to ensure that no
14481 unprocessed entities are included in the native representation of
14482 the document. (In the HTML reader, most of this work is done by a
14483 change in extractAttributeName.)
14484 + In XML and Markdown output, escape unicode nonbreaking space as ' ',
14485 since a unicode non-breaking space is impossible to distinguish visually
14486 from a regular space. (Resolves Issue #3.)
14487 + Removed encodeEntitiesNumerical.
14488 + Use Data.Map for entityTable and (new) reverseEntityTable, for a
14489 slight performance boost over the old association list.
14490 + Removed unneeded decodeEntities from 'str' parser in HTML and
14493 * Text.Pandoc.UTF8: Renamed encodeUTF8 to toUTF8, decodeUTF8 to
14494 fromUTF8, for clarity.
14496 * Replaced old haskell98 module names replaced by hierarchical module
14497 names, e.g. List by Data.List. Removed haskell98 from dependencies
14498 in pandoc.cabal, and added mtl (needed for state monad). Substituted
14501 * Refactored and cleaned up character escaping in writers, using
14502 backslashEscapes and escapeStringUsing functions.
14504 * Instead of adding "\n\n" to the end of an input string in Main.hs,
14505 this is now done in the readers. This makes the libraries behave
14506 the way you'd expect from the pandoc program. Resolves Issue #10.
14508 * URLs and email addresses in autolinks are now typeset as Code.
14510 * In Main.hs, changed putStr to putStrLn -- mainly because MacOS X
14511 doesn't display the whole output unless there's a line ending.
14513 * Major code cleanup in all modules, for greater consistency, concision,
14518 + Fixed several bugs (extractTagType, attribute parsing).
14519 + Remove Null blocks in lists of blocks when possible.
14520 + Allow HTML comments as raw HTML inline.
14524 + Ordered list items may no longer begin with uppercase letters, or
14525 letters greater than 'n'. (This prevents first initials and page
14526 reference, e.g. 'p. 400', from being parsed as beginning lists.)
14527 Also, numbers beginning list items may no longer end with ')',
14528 which is now allowed only after letters. Note: These changes
14529 may cause documents to be parsed differently. Users should take
14531 + Changed autoLink parsing to conform better to Markdown.pl's
14532 behavior. `<google.com>` is not treated as a link, but
14533 `<http://google.com>`, `<ftp://google.com>`, and
14534 `<mailto:google@google.com>` are.
14535 + Cleaned up handling of embedded quotes in link titles. Now these are
14536 stored as a '"' character, not as '"'.
14537 + Use lookAhead parser for the 'first pass' (looking for reference keys),
14538 instead of parsing normally, then using setInput to reset input. This
14539 yields a slight performance boost.
14540 + Fixed several bugs in smart quote recognition.
14541 + Fixed bug in indentSpaces (which didn't properly handle
14542 cases with mixed spaces and tabs).
14543 + Consolidated 'text', 'special', and 'inline' into 'inline'.
14544 + Fixed bug which allowed URL and title to be separated by multiple blank
14545 lines in links and reference keys. They can be on separate lines but
14546 can't have blank lines between them.
14547 + Correctly handle bracketed text inside inline footnotes and links,using
14548 new function inlinesInBalanced. Resolves Issue #14.
14549 + Fixed bug in footnotes: links in footnotes were not being
14550 processed. Solution: three-stage parse. First, get all the
14551 reference keys and add information to state. Next, get all the
14552 notes and add information to state. (Reference keys may be needed
14553 at this stage.) Finally, parse everything else.
14554 + Replaced named constants like 'emphStart' with literals.
14555 + Removed an extra occurrence of escapedChar in definition of inline.
14559 + Allow the URI in a RST hyperlink target to start on the line
14560 after the reference key.
14561 + Added 'try' in front of 'string', where needed, or used a different
14562 parser. This fixes a bug where ````` would not be correctly parsed as
14564 + Fixed slow performance in parsing inline literals in RST reader. The
14565 problem was that ``#`` was seen by 'inline' as a potential link or image.
14566 Fix: inserted 'notFollowedBy (char '`')' in link parsers.
14568 + Use lookAhead instead of getInput/setInput in RST reader. Removed
14569 unneeded getState call, since lookAhead automatically saves and
14570 restores the parser state.
14571 + Allow hyperlink target URIs to be split over multiple lines, and
14572 to start on the line after the reference. Resolves Issue #7.
14573 + Fixed handling of autolinks.
14577 + Replaced 'choice [(try (string ...), ...]' idiom with 'oneOfStrings',
14579 + Added clauses for tilde and caret. Tilde is \ensuremath{\sim}, and
14580 caret is \^{}, not \^ as before.
14581 + Added parsing for \url.
14582 + Parse \texttt{} as code, provided there's nothing fancy inside.
14586 + Modified HTML writer to use the Text.XHtml library. This results
14587 in cleaner, faster code, and it makes it easier to use Pandoc in
14588 other projects, like wikis, which use Text.XHtml. Two functions are
14589 now provided, writeHtml and writeHtmlString: the former outputs an
14590 Html structure, the latter a rendered string. The S5 writer is also
14591 changed, in parallel ways (writeS5, writeS5String).
14592 + The Html header is now written programmatically, so it has been
14593 removed from the 'headers' directory. The S5 header is still
14594 needed, but the doctype and some of the meta declarations have
14595 been removed, since they are written programmatically. This change
14596 introduces a new dependency on the xhtml package.
14597 + Fixed two bugs in email obfuscation involving improper escaping
14598 of '&' in the `<noscript>` section and in `--strict` mode. Resolves
14600 + Fixed another bug in email obfuscation: If the text to be obfuscated
14601 contains an entity, this needs to be decoded before obfuscation.
14602 Thanks to thsutton for the patch. Resolves Issue #15.
14603 + Changed the way the backlink is displayed in HTML footnotes.
14604 Instead of appearing on a line by itself, it now generally
14605 appears on the last line of the note. (Exception: when the
14606 note does not end with a Plain or Para block.) This saves space
14608 + Added automatic unique identifiers to headers:
14609 - The identifier is derived from the header via a scheme
14610 documented in README.
14611 - WriterState now includes a list of header identifiers and a table
14612 of contents in addition to notes.
14613 - The function uniqueIdentifiers creates a list of unique identifiers
14614 from a list of inline lists (e.g. headers).
14615 - This list is part of WriterState and gets consumed by blockToHtml
14616 each time a header is encountered.
14617 + Include CSS for .strikethrough class in header only if strikethrough
14618 text appears in the document.
14619 + If the 'strict' option is specified, elements that do not appear in
14620 standard markdown (like definition lists) are passed through as
14622 + Simplified treatment of autolinks, using pattern matching instead of
14627 + Links in markdown output are now printed as inline links by default,
14628 rather than reference links. A --reference-links option has been added
14629 that forces links to be printed as reference links. Resolves Issue #4.
14630 + Use autolinks when possible. Instead of `[site.com](site.com)`,
14635 + Rewrote to use the State monad. The preamble now includes only those
14636 packages that are actually required, given the document's content.
14637 Thus, for example, if strikeout is not used, ulem is not required.
14638 Modified LaTeXHeader accordingly.
14639 + Modified LaTeX writer to insert '\,' between consecutive quotes.
14640 + Removed unused function tableRowColumnWidths.
14641 + Simplified code for escaping special characters.
14642 + Leave extra blank line after \maketitle.
14643 + Include empty '\author{}' when no author specified to avoid LaTeX
14645 + Include fancyvrb code in header only if needed -- that is, only
14646 if there is actually code in a footnote.
14647 + Use \url{} for autolinks.
14648 + Include [mathletters] option in ucs package, so that basic unicode
14649 Greek letters will work correctly.
14651 * RST writer: Force blank line before lists, so that sublists will
14652 be handled correctly.
14654 * Docbook writer: Fixed a bug: email links with text, like
14655 [foo](me@bar.baz), were being incorrectly treated as autolinks.
14657 * Removed Text.ParserCombinators.Pandoc and moved all its functions to
14658 Text.Pandoc.Shared.
14660 * Text.Pandoc.Shared:
14662 + Added defaultWriterOptions.
14663 + Added writerTableOfContents to WriterOptions.
14664 + Added writerIgnoreNotes option to WriterOptions. This is needed
14665 for processing header blocks for a table of contents, since notes on
14666 headers should not appear in the TOC.
14667 + Added prettyprinting for native Table format.
14668 + Removed some unneeded imports.
14669 + Moved escape and nullBlock parsers from
14670 Text.ParserCombinators.Pandoc, since the latter is for
14671 general-purpose parsers that don't depend on Text.Pandoc.Definition.
14672 + Moved isHeaderBlock from Text.Pandoc.Writers.HTML.
14673 + Moved Element, headerAtLeast, and hierarchicalize from Docbook
14674 writer, because HTML writer now uses these in constructing a table
14676 + Added clauses for new inline elements (Strikeout, Superscript,
14677 Subscript) to refsMatch.
14678 + Removed backslashEscape; added new functions escapeStringUsing and
14680 + Moved failIfStrict from markdown reader, since it is now used also
14681 by the HTML reader.
14682 + Added a 'try' to the definition of indentSpaces.
14683 + In definition of 'reference', added check to make sure it's not a note
14685 + Added functions: camelCaseToHyphenated, toRomanNumeral,
14686 anyOrderedListMarker, orderedListmarker, orderedListMarkers,
14687 charsInBalanced', withHorizDisplacement, romanNumeral
14688 + Fixed a bug in the anyLine parser. Previously it would parse an empty
14689 string "", but it should fail on an empty string, or we get an error
14690 when it is used inside "many" combinators.
14691 + Removed followedBy' parser, replacing it with the lookAhead parser from
14693 + Added some needed 'try's before multicharacter parsers, especially in
14695 + Removed the 'try' from the 'end' parser in 'enclosed', so that
14696 'enclosed' behaves like 'option', 'manyTill', etc.
14697 + Added lineClump parser, which parses a raw line block up to and
14698 including any following blank lines.
14699 + Renamed parseFromStr to parseFromString.
14700 + Added a 'try' to the 'end' parser in 'enclosed'. This makes errors in
14701 the use of 'enclosed' less likely. Removed some now-unnecessary 'try's
14703 + Removed unneeded 'try' in blanklines.
14704 + Removed endsWith function and rewrote calling functions to use
14705 isSuffixOf instead.
14706 + Added >>~ combinator.
14707 + Fixed bug in normalizeSpaces: Space:Str "":Space should compress to
14710 * Refactored runtests.pl; added separate tests for tables.
14714 + Added -asxhtml flag to tidy in html2markdown. This will
14715 perhaps help the parser, which expects closing tags.
14716 + Modified markdown2pdf to run pdflatex a second time if --toc or
14717 --table-of-contents was specified; otherwise the table of
14718 contents won't appear.
14719 + Modified markdown2pdf to print a helpful message if the 'ulem'
14720 LaTeX package is required and not found.
14722 * Changes to build process:
14724 + Dropped support for compilation with GHC 6.4. GHC 6.6 or higher
14726 + Removed cabalize and Pandoc.cabal.in. The repository now contains
14727 pandoc.cabal itself.
14728 + Pandoc.cabal has been changed to pandoc.cabal, because HackageDB
14729 likes the cabal file to have the same name as the tarball.
14730 + Expanded and revised the package description in pandoc.cabal.
14731 Revised the package synopsis.
14732 + The tarball built by 'make tarball' now contains files built from
14733 templates (including man pages and shell scripts), so pandoc can
14734 be built directly using Cabal tools, without preprocessing.
14735 + Executable binaries are now stripped before installing.
14736 + Man pages are now generated from markdown sources, using pandoc's
14738 + Use HTML version of README (instead of RTF) in Mac OS X installer.
14739 + Instead of testing for the existence of a pandoc symlink in build-exec,
14744 + Updated README and man pages with information on new features.
14745 + Updated INSTALL instructions with some useful clarifications and
14747 + Updated web content.
14749 * Added FreeBSD port.
14755 + Changed pandoc's Build-Depends to include libghc6-mtl-dev and
14756 libghc6-xhtml-dev. Removed libghc6-html-dev.
14757 + Suggest texlive-latex-recommended | tetex-extra instead of
14758 tetex-bin. This brings in fancyvrb and unicode support.
14760 -- Recai Oktaş <roktas@debian.org> Tue, 16 Jan 2007 00:37:21 +0200
14762pandoc (0.3) unstable; urgency=low
14764 [ John MacFarlane ]
14766 * Changes in pandoc options:
14768 + Allow options to follow or precede arguments.
14769 + Changed '--smartypants' to '--smart' and adjusted symbols accordingly.
14770 + Added '--strict' option.
14771 + Added '-o/--output' option.
14772 + Added '--dump-args' and '--ignore-args' options (for use in wrappers).
14773 + Modified '-v' and '-h' output to go to STDERR, not STDOUT, and return
14774 error conditions. This is helpful for writing wrappers.
14775 + Added copyright message to '-v' output, modeled after FSF messages.
14776 + Reformatted usage message so that it doesn't wrap illegibly.
14777 + Removed extra blanks after '-h' and '-D' output.
14779 * Added docbook writer.
14781 * Added implicit setting of default input and output format based
14782 on input and output filename extensions. These defaults are
14783 overridden if explicit input and output formats are specified using
14784 '-t', '-f', '-r', or '-w' options. Documented in pandoc(1) man page
14787 * Allow ordered list items to begin with (single) letters, as well
14788 as numbers. The list item marker may now be terminated either by
14789 '.' or by ')'. This extension to standard markdown is documented
14792 * Revised footnote syntax. (See README for full details.) The
14793 '[^1]' format now standard in markdown extensions is supported,
14794 as are inline footnotes with this syntax: `^[My note.]`.
14795 The earlier footnote syntax `^(1)` is no longer supported.
14797 * Improved HTML representation of footnotes. All footnotes
14798 are now auto-numbered and appear in an ordered list at the
14799 end of the HTML document. Since the default appearance is now
14800 acceptable, the old footnote styles have been removed from the
14805 + Fixed a serious bug in the markdown, LaTeX, and RST readers.
14806 These readers ran 'runParser' on processed chunks of text to handle
14807 embedded block lists in lists and quotation blocks. But then
14808 any changes made to the parser state in these chunks was lost,
14809 as the state is local to the parser. So, for example, footnotes
14810 didn't work in quotes or list items. The fix: instead of calling
14811 runParser on some raw text, use setInput to make it the input, then
14812 parse it, then use setInput to restore the input to what it was
14813 before. This is shorter and more elegant, and it fixes the problem.
14814 + Fixed bug in notFollowedBy' combinator (adding 'try' before
14815 'parser'). Adjusted code that uses this combinator accordingly.
14816 + Fixed bug in RTF writer that caused improper indentation on
14817 footnotes occurring in indented blocks like lists.
14818 + Fixed parsing of metadata in LaTeX reader. Now the title, author,
14819 and date are parsed correctly. Everything else in the preamble
14821 + Modified escapedChar in LaTeX reader to allow a '\' at the end of a
14822 line to count as escaped whitespace.
14823 + Modified LaTeX reader to produce inline links rather than reference
14824 links. Otherwise, links in footnotes aren't handled properly.
14825 + Fixed handling of titles in links in Markdown reader, so that
14826 embedded quotation marks are now handled properly.
14827 + Fixed Markdown reader's handling of embedded brackets in links.
14828 + Fixed Markdown reader so that it only parses bracketed material
14829 as a reference link if there is actually a corresponding key.
14830 + Revised inline code parsing in Markdown reader to conform to
14831 markdown standard. Now any number of `s can begin inline code,
14832 which will end with the same number of `s. For example, to
14833 have two backticks as code, write ``` `` ```. Modified Markdown
14834 writer accordingly.
14835 + Fixed bug in text-wrapping routine in Markdown and RST writers.
14836 Now LineBreaks no longer cause wrapping problems.
14837 + Supported hexadecimal numerical entity references as well as
14839 + Fixed bug in Markdown reader's handling of underscores and other
14840 inline formatting markers inside reference labels: for example,
14841 in '[A_B]: /url/a_b', the material between underscores was being
14842 parsed as emphasized inlines.
14843 + Changed Markdown reader's handling of backslash escapes so that
14844 only non-alphanumeric characters can be escaped. Strict mode
14845 follows Markdown.pl in only allowing a select group of punctuation
14846 characters to be escaped.
14847 + Modified HTML reader to skip a newline following a `<br>` tag.
14848 Otherwise the newline will be treated as a space at the beginning
14851 * Made handling of code blocks more consistent. Previously, some
14852 readers allowed trailing newlines, while others stripped them.
14853 Now, all readers strip trailing newlines in code blocks. Writers
14854 insert a newline at the end of code blocks as needed.
14856 * Modified readers to make spacing at the end of output more consistent.
14858 * Minor improvements to LaTeX reader:
14860 + '\thanks' now treated like a footnote.
14861 + Simplified parsing of LaTeX command arguments and options.
14862 commandArgs now returns a list of arguments OR options (in
14863 whatever order they appear). The brackets are included, and
14864 a new stripFirstAndLast function is provided to strip them off
14865 when needed. This fixes a problem in dealing with \newcommand
14866 and \newenvironment.
14868 * Revised RTF writer:
14870 + Default font is now Helvetica.
14871 + An '\f0' is added to each '\pard', so that font resizing works
14874 * Moved handling of "smart typography" from the writers to the Markdown
14875 and LaTeX readers. This allows great simplification of the writers
14876 and more accurate smart quotes, dashes, and ellipses. DocBook can
14877 now use `<quote>`. The '--smart' option now toggles an option in
14878 the parser state rather than a writer option. Several new kinds
14879 of inline elements have been added: Quoted, Ellipses, Apostrophe,
14882 * Changes in HTML writer:
14884 + Include title block in header even when title is null.
14885 + Made javascript obfuscation of emails even more obfuscatory,
14886 by combining it with entity obfuscation.
14888 * Changed default ASCIIMathML text color to black.
14892 + Added --strip-trailing-cr option to diff in runtests.pl, for
14893 compatibility with Windows.
14894 + Added regression tests with footnotes in quote blocks and lists.
14896 * Makefile changes:
14898 + osx-pkg target creates a Mac OS X package (directory). New osx
14899 directory contains files needed for construction of the package.
14900 + osx-dmg target creates a compressed disk image containing the package.
14901 + win-pkg target creates Windows binary package.
14902 + tarball target creates distribution source tarball.
14903 + website target generates pandoc's website automatically, including
14904 demos. New 'web' directory contains files needed for construction
14905 of the website (which will be created as the 'pandoc' subdirectory
14907 + Makefile checks to see if we're running Windows/Cygwin; if so,
14908 a '.exe' extension is added to each executable in EXECS.
14910 * Removed all wrappers except markdown2pdf and html2markdown.
14912 * Added new wrapper hsmarkdown, to be used as a drop-in replacement
14913 for Markdown.pl. hsmarkdown calls pandoc with the '--strict'
14914 option and disables other options.
14916 * Added code to html2markdown that tries to determine the character
14917 encoding of an HTML file, by parsing the "Content-type" meta tag.
14919 + If the encoding can't be determined, then if the content is local,
14920 the local encoding is used; if it comes from a URL, UTF-8 is used
14922 + If input is from STDIN, don't try to determine character encoding.
14923 + Encoding can be specified explicitly using '-e' option.
14925 * Improved warning messages in wrappers:
14927 + Print warning if iconv not available
14928 + More user-friendly error messages in markdown2pdf, when
14933 + Renamed 'Text/Pandoc/HtmlEntities' module to
14934 'Text/Pandoc/Entities'. Also changed function names so as
14935 not to be HTML-specific.
14936 + Refactored SGML string escaping functions from HTML and Docbook
14937 writers into Text/Pandoc/Shared. (escapeSGML, stringToSGML)
14938 + Removed 'BlockQuoteContext' from ParserContext, as it isn't
14940 + Removed splitBySpace and replaced it with a general, polymorphic
14942 + Refactored LaTeX reader for clarity (added isArg function).
14943 + Converted some CR's to LF's in src/ui/default/print.css.
14944 + Added license text to top of source files.
14945 + Added module data for haddock to source files.
14946 + Reformatted code for consistency.
14948 * Rewrote documentation and man pages. Split README into INSTALL
14951 * Split LICENSE into COPYING and COPYRIGHT.
14953 * Removed TODO, since we now maintain ToDo on the wiki.
14955 * Made COPYRIGHT in top level a symlink to debian/copyright, to avoid
14960 * Revamped build process to conform to debian standards and created
14961 a proper debian package. Closes: #391666.
14963 * Modified build process to support GHC 6.6.
14965 + The package can still be compiled using GHC 6.4.2, though because
14966 of dependencies the "make deb" target works only with GHC 6.6+.
14967 + The script 'cabalize' is used to create an appropriate
14968 'Pandoc.cabal' from 'Pandoc.cabal.in', depending on the GHC and
14971 * Refactored template processing (fillTemplates.pl).
14973 * Modified wrapper scripts to make them more robust and portable.
14974 To avoid code duplication and ensure consistency, wrappers are
14975 generated via a templating system from templates in src/wrappers.
14977 + Wrappers now accept multiple filenames, when appropriate.
14978 + Spaces and tabs allowed in filenames.
14979 + getopts shell builtin is used for portable option parsing.
14980 + Improved html2markdown's web grabber code, making it more robust,
14981 configurable and verbose. Added '-e', '-g' options.
14983 -- Recai Oktaş <roktas@debian.org> Fri, 05 Jan 2007 09:41:19 +0200
14985pandoc (0.2) unstable; urgency=low
14987 * Fixed unicode/utf-8 translation
14989 -- John MacFarlane <jgm@berkeley.edu> Mon, 14 Aug 2006 00:00:00 -0400
14991pandoc (0.1) unstable; urgency=low
14993 * Initial creation of debian package
14995 -- John MacFarlane <jgm@berkeley.edu> Mon, 14 Aug 2006 00:00:00 -0400
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list