git.iko.soy/typeable/pandoc
on 2.2.2 help sign in
typeable/pandoc/changelog
14882 lines 641 kB history raw
1pandoc (2.2.2)
3 * Use HsYAML instead of yaml for translations and YAML metadata (#4747).
4 yaml wraps a C library; HsYAML is pure Haskell. Advances #4535.
6 Note: HsYAML implements YAML 1.2, in which the valid true
7 values are `true`, `True`, `TRUE`. This means a change in
8 the semantics of YAML metadata that could affect users:
9 `y`, `yes`, and `on` no longer count as true values.
11 * Fix regression: make `--pdf-engine` work with full paths (#4681, Mauro
12 Bieg).
14 * CommonMark reader: Handle `ascii_identifiers` extension (#4742,
15 Anders Waldenborg). Non-ascii characters were not stripped from
16 identifiers even if the `ascii_identifiers` extension was
17 enabled (which is is by default for gfm).
19 * TikiWiki reader: Improve list parsing (#4722, Mauro Bieg).
20 Remove trailing Space from list items. Parse lists that have no space
21 after marker.
23 * LaTeX reader:
25 + Treat `lilypond` as a verbatim environment (#4725).
26 + Parse figure label into Image id (#4700, Mauro Bieg).
27 + Beamer: Allow "noframenumbering" option (#4696, Raymond Ehlers).
28 + Allow spaces around `\graphicspath` arguments (#4698).
29 + Handle includes without surrounding blanklines (#4553).
30 In addition, `\input` can now be used in an inline context,
31 e.g. to provide part of a paragraph, as it can in LaTeX.
32 + In `rawLaTeXBlock`, handle macros that resolve to a
33 `\begin` or `\end` (#4667).
34 + In `rawLaTeXBlock`, don't expand macros in macro definitions (#4653).
35 Note that this only affected LaTeX in markdown.
36 + Tighten up reading of beamer overlay specifications (#4669).
37 Ideally we'd turn these on only when reading beamer, but currently
38 beamer is not distinguished from latex as an input format.
39 This commit also activates parsing of overlay specifications
40 after commands in general (e.g. `\item`), since they can occur
41 in many contexts in beamer.
42 + Parse more siunitx unit commands (#4296, #4773).
43 + Be more forgiving in key/value option parsing (#4761).
45 * Markdown reader:
47 + Allow empty code spans, e.g. `` ` ` ``.
48 + Emojis are now wrapped in Spans with class `emoji` and
49 attribute `data-emoji` (Anders Waldenborg, #4743).
50 This allows the writer to handle them in a special way
51 (e.g. using a special font, or just rendering the
52 emoji name).
54 * Muse reader (Alexander Krotov, except where indicated):
56 + Get rid of non-exhaustive pattern match warning (Mauro Bieg).
57 + Add support for floating images.
58 + Add support for images with specified width.
59 + Parse image URLs without "guard" and "takeExtension".
60 + Split link and image parsing into separate functions.
61 + Parse links starting with "URL:" explicitly instead of trying to strip
62 "URL:" prefix after parsing.
64 * Texinfo writer: Use `@sup` and `@sub` instead of custom macros (#4728,
65 Alexander Krotov).
67 * Markdown writer: Preserve `implicit_figures` with attributes, even if
68 `implicit_attributes` is not set, by rendering in raw HTML (#4677).
70 * Markdown and commonmark/github writers now respect the `emoji`
71 extension. So, `-f markdown+emoji -t markdown+emoji` now leaves
72 `:smile:` as `:smile:` rather than converting it to a smile
73 character.
75 * Docx writer: Be sensitive to `toc` in YAML metadata (#4645).
77 * ODT/OpenDocument writer: Make internal links work (#4358).
78 This adds proper bookmarks to the headers with non-null IDs.
80 * EPUB writer: Properly escape pagetitle. Previously we weren't
81 escaping `&` and other XML characters in the pagetitle, so a title
82 containing a `&` would be invalid.
84 * AsciiDoc Writer: Eescape square brackets at start of line (#4545,
85 Mauro Bieg).
87 * RST writer:
89 + Don't treat 'example' as a syntax name (#4748).
90 This fixes conversions from org with example blocks.
91 + Support `--number-sections` via the `section-numbering`
92 directive in standalone output.
94 * reveal.js writer and template: reuse mathjax URL
95 provided by the argument to `--mathjax` or the normal pandoc default,
96 rather than a hard-coded one in the template (#4701).
98 * LaTeX writer:
100 + Properly handle footnotes in table captions (#4683).
101 Refactored code from figure captions to use in both places.
102 + In beamer output, fix single digit column percentage (#4690, Mauro
103 Bieg).
105 * FB2 writer (Alexander Krotov):
107 + Convert Plain to Para in annotation (#2424).
108 + Fix order of items in title-info (#2424).
110 * Custom writer: fix error message on script failure (Albert Krewinkel).
111 Error messages produced by Lua were not displayed by Pandoc.
113 * Text.Pandoc.Emoji now exports `emojiToInline`, which returns a Span
114 inline containing the emoji character and some attributes with metadata
115 (class `emoji`, attribute `data-emoji` with emoji name). (API change,
116 Anders Waldenborg, #4743).
118 * Text.Pandoc.PDF:
120 + Revert fix for #4484 (only compress images on last run, #4755).
121 This will mean some increase in the time it takes to
122 produce an image-heavy PDF with xelatex, but it will
123 make tables of contents correct, which is more important.
124 + Fix logic error in `runTeXProgram`. We were running the tex program
125 one more time than requested. This should speed up PDF production.
127 * Allow `--template` to take a URL as argument.
129 * Text.Pandoc.Highlighting: Add missing re-export of `breezeDark`
130 highlighting style (#4687, Adrian Sieber, API change).
132 * Clarify macOS install in INSTALL.md (#4661). Make the binary package
133 installer the recommended method, and note that on some older versions of
134 macOS, homebrew installs from source and takes a lot of disk space
135 (#4664, Ian).
137 * MANUAL:
139 + Clarify EPUB linked media (#4756, Mauro Bieg)
140 + Update manual for "true" YAML values. Now that we're using HsYAML and
141 YAML 1.2, the valid true values are `true`, `True`, `TRUE`. NOTE!
142 `y`, `yes`, `on` no longer count as true values.
143 + Document `-F` as alias for `--filter` (thanks to Gandalf Saxe).
144 + Update manual on how math is rendered in LaTeX.
145 + Add proxy description (#4131, Mauro Bieg).
146 + Clarify that `--toc` requires `--standalone` (#4703).
147 + Update citation styles link (#4699, wiefling).
149 * In API docs, clarify how `Ext_east_asian_line_breaks` extension works
150 (kaizshang91). Note that it will not take effect when readers/writers
151 are called as libraries (#4674).
153 * Improved translations/fr (#4766, lux-lth).
155 * Removed inadvertently added `.orig` files from repository (#4648).
157 * Remove `network-uri` flag and use 'Network.Socket'.
158 This removes a compiler warning. There is no need for the old
159 `network-uri` flag, since network 2.6 was released in 2014.
161 * Add stack.lts10.yaml, stack.lts11.yaml. use lts-12 in stack.yaml.
163 * Bump upper bounds for dependent packages.
165 * Exclude foundation 0.0.21 for ghc 7.10. Otherwise cabal gets
166 confused because of the way ghc 7.10 is excluded in foundation's
167 cabal file. This can be removed when haskell-foundation/foundation#500
168 is fixed.
170 * Require cabal-version >= 2.0. This is needed for haddock-library.
173pandoc (2.2.1)
175 * Restored and undeprecated gladtex for HTML math (#4607).
177 + Added `GladTeX` constructor to `Text.Pandoc.Options.HTMLMathMethod`
178 [API change, reverts removal in v2.2]
179 + Restored and undeprecated `--gladtex` option, removed in v2.2.
181 * LaTeX reader: Handle `$` in `/text{..}` inside math (#4576).
183 * Org reader: Fix image filename recognition (Albert Krewinkel).
184 Use a function from the filepath library to check whether a string is a
185 valid file name. The custom validity checker that was used before gave
186 wrong results (e.g. for absolute file paths on Windows,
187 kawabata/ox-pandoc#52).
189 * FB2 reader: Replace some errors with warnings (Alexander Krotov).
191 * HTML writer:
193 + Strip links from headers when creating TOC (#4340).
194 Otherwise the TOC entries will not link to the sections.
195 + Fix regression with tex math environments in HTML + MathJax (#4639).
197 * Muse writer (Alexander Krotov): Add support for left-align and
198 right-align classes (#4542).
200 * Docx writer: Support underline (#4633).
202 * Text.Pandoc.Parsing: Lookahead for non-whitespace after
203 `singleQuoteStart` and `doubleQuoteStart` (#4637).
205 * `test-pandoc-utils.lua`: more robust testing on both windows
206 and \*nix. Previously the pipe tests were only run if
207 `\bin/false` and `/bin/sed` were present, which they aren't
208 in default MacOS and Windows systems. Fixed by using `tr`
209 and `false`, which should always be in the path on a \*nix
210 system, and `find` and `echo` for Windows.
212 * Text.Pandoc.Shared: add `uriPathToPath`.
213 This adjusts the path from a file: URI in a way that is sensitive
214 to Windows/Linux differences. Thus, on Windows,
215 `/c:/foo` gets interpreted as `c:/foo`, but on Linux,
216 `/c:/foo` gets interpreted as `/c:/foo`. See #4613.
218 * Use `uriPathToPath` with file: URIs (#4613).
220 * Revert piping HTML to pdf-engine (Mauro Bieg, #4413). Use a temp
221 file as before.
223 * Text.Pandoc.Class: Catch IO errors when writing media files
224 and issue a warning, rather than an error (Francesco Occhipinti, #4559).
226 * Don't lowercase custom writer filename (Alexander Krotov, #4610).
228 * MANUAL (Mauro Bieg):
230 + Clarify truthiness in template variables (#2281).
231 + Clarify pipe table width calculation (#4520).
233 * ConTeXt template: New Greek fallback typeface (Pablo Rodríguez, #4405).
234 CMU Serif gives better typographic results than the previous
235 Greek fallback DejaVu Serif.
237 * Make HTML template polyglot (#4606, OvidiusCicero), by making
238 `<link rel="stylesheet" href="$css$">` self-closing.
240 * Use texmath 0.11, allowing better translation of non-ASCII
241 characters in math (#4642).
243pandoc (2.2)
245 * New input format: `fb2` (FictionBook2) (Alexander Krotov).
247 * Make `--ascii` work for all XML formats (ICML, OPML, JATS,...),
248 and for `ms` and `man`.
250 * Remove deprecated `--latexmathml`, `--gladtex`, `--mimetex`, `--jsmath`, `-m`,
251 `--asciimathml` options.
253 * New module Text.Pandoc.Readers.FB2, exporting readFB2 (Alexander
254 Krotov, API change).
256 * Markdown reader:
258 + Allow empty key-value attributes, like `title=""` (#2944).
259 + Handle table w/o following blank line in fenced div (#4560).
260 + Remove "fallback" for `doubleQuote` parser. Previously the
261 parser tried to be efficient -- if no end double quote was found,
262 it would just return the contents. But this could backfire in a
263 case `**this should "be bold**`, since the fallback would return
264 the content `"be bold**` and the closing boldface delimiter
265 would never be encountered.
266 + Improve computation of the relative width of the last column in a
267 multiline table, so we can round-trip tables without constantly
268 shrinking the last column.
270 * EPUB reader:
272 + Fix images with space in file path (#4344).
274 * LaTeX reader:
276 + Properly resolve section numbers with `\ref` and chapters (#4529).
277 + Parse sloppypar environment (#4517, Marc Schreiber).
278 + Improve handling of raw LaTeX (for markdown etc.) (#4589, #4594).
279 Previously there were some bugs in how macros were handled.
280 + Support `\MakeUppercase`, `\MakeLowercase', `\uppercase`, `\lowercase`,
281 and also `\MakeTextUppercase` and `\MakeTextLowercase` from textcase
282 (#4959).
284 * Textile reader:
286 + Fixed tables with no body rows (#4513).
287 Previously these raised an exception.
289 * Mediawiki reader:
291 + Improve table parsing (#4508). This fixes detection of table
292 attributes and also handles `!` characters in cells.
294 * DocBook reader:
296 + Properly handle title in `section` element (#4526).
297 Previously we just got `section_title` for `section` (though `sect1`,
298 `sect2`, etc. were handled properly).
299 + Read tex math as output by asciidoctor (#4569, Joe Hermaszewski).
301 * Docx reader:
303 + Combine adjacent CodeBlocks with the same attributes into
304 a single CodeBlock. This prevents a multiline codeblock in
305 Word from being read as different paragraphs.
307 * RST reader:
309 + Allow < 3 spaces indent under directives (#4579).
310 + Fix anonymous redirects with backticks (#4598).
312 * Muse reader (Alexander Krotov):
314 + Add support for Text::Amuse multiline headings.
315 + Add `<math>` tag support.
316 + Add support for `<biblio>` and `<play>` tags.
317 + Allow links to have empty descriptions.
318 + Require block `<literal>` tags to be on separate lines.
319 + Allow `-` in anchors.
320 + Allow verse to be indented.
321 + Allow nested footnotes.
322 + Internal improvements.
324 * Muse writer (Alexander Krotov):
326 + Escape `>` only at the beginning of a line.
327 + Escape `]` in image title.
328 + Escape `]` brackets in URLs as `%5D`.
329 + Only escape brackets when necessary.
330 + Escape ordered list markers.
331 + Do not escape list markers unless preceded by space.
332 + Escape strings starting with space.
333 + Escape semicolons and markers after line break.
334 + Escape `;` to avoid accidental comments.
335 + Don't break headers, line blocks and tables with line breaks.
336 + Correctly output empty headings.
337 + Escape horizontal rule only if at the beginning of the line.
338 + Escape definition list terms starting with list markers.
339 + Place header IDs before header.
340 + Improve span writing.
341 + Do not join Spans in normalization.
342 + Don't align ordered list items.
343 + Remove key-value pairs from attributes before normalization.
344 + Enable `--wrap=preserve` for all tests by default.
345 + Reduced `<verbatim>` tags in output.
346 + Internal changes.
348 * RST writer:
350 + Use more consistent indentation (#4563). Previously we
351 used an odd mix of 3- and 4-space indentation. Now we use 3-space
352 indentation, except for ordered lists, where indentation must
353 depend on the width of the list marker.
354 + Flatten nested inlines (#4368, Francesco Occhipinti).
355 Nested inlines are not valid RST syntax, so we flatten them following
356 some readability criteria discussed in #4368.
358 * EPUB writer:
360 + Ensure that `pagetitle` is always set, even when structured titles
361 are used. This prevents spurious warnings about empty title
362 elements (#4486).
364 * FB2 writer (Alexander Krotov):
366 + Output links inline instead of producing notes. Previously all links
367 were turned into footnotes with unclickable URLs inside.
368 + Allow emphasis and notes in titles.
369 + Don't intersperse paragraph with empty lines.
370 + Convert metadata value `abstract` to book annotation.
371 + Use `<empty-line />` for `HorizontalRule` rather than `LineBreak`.
372 FB2 does not have a way to represent line breaks inside paragraphs;
373 previously we used `<empty-line />` elements, but these are not allowed
374 inside paragraphs.
376 * Powerpoint writer (Jesse Rosenthal):
378 + Handle Quoted Inlines (#4532).
379 + Simplify code with `ParseXml`.
380 + Allow fallback options when looking for placeholder type.
381 + Check reference-doc for all layouts.
382 + Simplify speaker notes logic.
383 + Change notes state to a simpler per-slide value.
384 + Remove `Maybe` from `SpeakerNotes` in `Slide`. `mempty`
385 means no speaker notes.
386 + Add tests for improved speaker notes.
387 + Handle speaker notes earlier in the conversion process.
388 + Keep notes with related blocks (#4477). Some blocks automatically
389 split slides (imgs, tables, `column` divs). We assume that any
390 speaker notes immediately following these are connected to these
391 elements, and keep them with the related blocks, splitting after them.
392 + Remove `docProps/thumbnail.jpeg` in data dir (Jesse Rosenthal, #4588).
393 It contained a nonfree ICC color calibration profile and is not needed
394 for production of a powerpoint document.
396 * Markdown writer:
398 + Include a blank line at the end of the row in a single-row multiline
399 table, to prevent it from being interpreted as a simple table (#4578).
401 * CommonMark writer:
403 + Correctly ignore LaTeX raw blocks when `raw_tex` is not
404 enabled (#4527, quasicomputational).
406 * EPUB writer:
408 + Add `epub:type="footnotes"` to notes section in EPUB3 (#4489).
410 * LaTeX writer:
412 + In beamer, don't use format specifier for default ordered lists
413 (#4556). This gives better results for styles that put ordered list
414 markers in boxes or circles.
415 + Update `\lstinline` delimiters (#4369, Tim Parenti).
417 * Ms writer:
419 + Use `\f[R]` rather than `\f[]` to reset font (#4552).
420 + Use `\f[BI]` and `\f[CB]` in headers, instead of `\f[I]` and `\f[C]`,
421 since the header font is automatically bold (#4552).
422 + Use `\f[CB]` rather than `\f[BC]` for monospace bold (#4552).
423 + Create pdf anchor for a Div with an identifier (#4515).
424 + Escape `/` character in anchor ids (#4515).
425 + Improve escaping for anchor ids: we now use _uNNN_ instead of uNNN
426 to avoid ambiguity.
428 * Man writer:
430 + Don't escape U+2019 as `'` (#4550).
432 * Text.Pandoc.Options:
434 + Removed `JsMath`, `LaTeXMathML`, and `GladTeX` constructors from
435 `Text.Pandoc.Options.HTMLMathMethod` [API change].
437 * Text.Pandoc.Class:
439 + `writeMedia`: unescape URI-escaping in file path. This avoids
440 writing things like `file%20one.png` to the file system.
442 * Text.Pandoc.Parsing:
444 + Fix `romanNumeral` parser (#4480). We previously accepted 'DDC'
445 as 1100.
446 + `uri`: don't treat `*` characters at end as part of URI (#4561).
448 * Text.Pandoc.MIME:
450 + Use the alias `application/eps` for EPS (#2067).
451 This will ensure that we retain the eps extension after reading the
452 image into a mediabag and writing it again.
454 * Text.Pandoc.PDF:
456 + Use `withTempDir` in `html2pdf`.
457 + With `xelatex`, don't compress images til the last run (#4484).
458 This saves time for image-heavy documents.
459 + Don't try to convert EPS files (#2067). `pdflatex` converts them
460 itself, and JuicyPixels can't do it.
461 + For `pdflatex`, use a temp directory in the working directory.
462 Otherwise we can have problems with the EPS conversion pdflatex
463 tries to do, which can't operate on a file above the working
464 directory without `--shell-escape`.
466 * Changes to tests to accommodate changes in pandoc-types.
467 In <https://github.com/jgm/pandoc-types/pull/36> we changed
468 the table builder to pad cells. This commit changes tests
469 (and two readers) to accord with this behavior.
471 * Set default extensions for `beamer` same as `latex`.
473 * LaTeX template:
475 + Add `beameroption` variable (#4359, Étienne Bersac).
476 + Use `pgfpages` package; this is needed for notes on second
477 screen in beamer (Étienne Bersac).
478 + Add `background-image` variable (#4601, John Muccigrosso).
480 * reveal.js template: Add `background-image` variable (#4600,
481 John Muccigrosso).
483 * ms template: Fix date. Previously `.ND` was used, but this only
484 works if you have a title page, which we don't. Thanks to @teoric.
486 * Removed pragmas for unused extensions (#4506, Anabra).
488 * Fix bash completion for `--print-default-data-file` (#4549).
489 Previously this looked in the filesystem, even if pandoc
490 was compiled with `embed_data_files` (and sometimes it looked
491 in a nonexistent build directory). Now the bash completion
492 script just includes a hard-coded list of data file names.
494 * MANUAL:
496 + Clarify template vs metadata variables (#4501, Mauro Bieg).
497 + Fix raw content example (#4479, Mauro Bieg).
498 + Specify that you use html for raw output in epub.
499 + Add examples for raw docx blocks (#4472, Tristan Stenner).
500 The documentation states that the target format name should match
501 the output format, which isn't the case for `docx`/`openxml` and
502 some others.
503 + Don't say that `empty_paragraphs` affects markdown output (#4540).
504 + Consolidate input/output format documentation (#4577, Mauro Bieg).
506 * New README template. Take in/out formats from manual.
508 * Fix example in lua-filters docs (#4459, HeirOfNorton).
510 * Use the `-threaded` GHC flag when building benchmarks (#4587,
511 Francesco Occhipinti).
513 * Bump temporary upper bound to 1.4.
515 * Use pandoc-citeproc 0.14.3.1.
517 * Use texmath-0.10.1.2 (fixes escapes in math in ms, #4597).
519 * Removed old lib directory. This was used for something long ago,
520 but plays no role now.
522 * Removed unneeded data file `LaTeXMathML.js`.
524 * Create 64- and 32-bit versions of Windows binary packages.
526pandoc (2.1.3)
528 * Docx reader (Jesse Rosenthal):
530 + Add tests for nested smart tags.
531 + Parse nested smart tags.
532 + Make unwrapSDT into a general `unwrap` function that can unwrap both
533 nested SDT tags and smartTags. This makes the SmartTags constructor in
534 the Docx type unnecessary, so we remove it (#4446).
535 + Remove unused `docxWarnings` (Alexander Krotov).
537 * RST reader: Allow unicode bullet characters (#4454).
539 * Haddock reader: Better table handling, using haddock-library's
540 new table support, if compiled against a version that
541 includes it. Note that tables with col/rowspans will not
542 translate well into Pandoc.
544 * Muse reader (Alexander Krotov):
546 + Require closing tag to have the same indentation as opening.
547 + Do not reparse blocks inside unclosed block tag (#4425).
548 + Parse `<class>` tag (supported by Emacs Muse).
549 + Do not produce empty Str element for unindented verse lines.
550 + Don't allow footnote references inside links.
551 + Allow URL to be empty.
552 + Require that comment semicolons are in the first column (#4551).
553 + Various internal improvements.
555 * LaTeX reader:
557 + Add support to parse unit string of `\SI` command (closes #4296,
558 Marc Schreiber).
560 * Haddock writer: In the writer, we now render tables always as
561 grid tables, since Haddock supports these.
563 * DokuWiki writer: rewrite backSlashLineBreaks (#4445, Mauro Bieg).
565 * Docx writer: Fixed formatting of `DefaultStyle` ordered lists in
566 docx writer. We want decimal for the top level, not lower roman.
568 * RST writer:
570 + Strip whitespace at beginning and ending of inline containers
571 (#4327, Francesco Occhipinti).
572 + Filter out empty inline containers (#4434). There is nothing in
573 RST that corresponds to e.g. `Emph []`, so we just ignore elements
574 like this (Francesco Occhipinti).
576 * Muse writer (Alexander Krotov):
578 + Support spans with anchors.
579 + Replace smallcaps with emphasis before normalization.
580 + Output smallcaps as emphasis.
581 + Expand Cite before list normalization.
582 + Write empty inline lists as `<verbatim></verbatim>`.
583 + Remove empty Str from the beginning of inline lists during normalization.
584 + Escape "-" to avoid creating bullet lists.
585 + Fix math expansion for more than one expression per paragraph.
586 + Expand math before inline list normalization.
588 * Dokuwiki writer: fix LineBreaks in Tables (#4313, Mauro Bieg).
590 * Ms writer:
592 + Asciify pdf anchors, since unicode anchors don't work (#4436).
593 Internal links should be converted automatically, so this shouldn't
594 affect users directly.
595 + Don't escape hyphens as `\-`; that's for a minus sign (#4467).
597 * Beamer writer: put hyperlink after `\begin{frame}` and not in the title
598 (#4307). If it's in the title, then we get a titlebar on slides with
599 the `plain` attribute, when the id is non-null. This fixes a regression
600 in 2.0.
602 * EPUB writer: Remove notes from TOC in nav.xhtml (#4453, Mauro Bieg).
604 * JATS writer: Remove extraneous, significant whitespace (#4335,
605 Nokome Bentley).
607 * html2pdf: inject base tag with current working directory (#4413, Mauro
608 Bieg). This helps ensure that linked resources are included.
610 * Add Semigroup instances for everything for which we defined a
611 Monoid instance previously (API change):
613 + Text.Pandoc.Class.FileTree.
614 + Text.Pandoc.Translations.Translations.
615 + Text.Pandoc.Extensions.Extensions.
616 + Text.Pandoc.Readers.Odt.StyleReader.Styles.
617 + Text.Pandoc.Pretty.Doc.
618 + Text.Pandoc.MediaBag.MediaBag.
620 * Add custom Prelude to give clean code for Monoid and Semigroup
621 that works with ghc 7.10-8.4. The custom Prelude (`prelude/Prelude`)
622 is used for ghc versions < 8.4. `NoImplicitPrelude` is used
623 in all source files, and Prelude is explicitly imported
624 (this is necessary for ghci to work properly with the custom prelude).
626 * Text.Pandoc.Writers.Shared (Francesco Occhipinti):
628 + Export `stripLeadingTrailingSpace`.
629 + Don't wrap lines in grid tables when `--wrap=none` (#4320).
630 + `gridTable`: Don't wrap lines in tables when `--wrap=none`. Instead,
631 expand cells, even if it results in cells that don't respect relative
632 widths or surpass page column width. This change affects RST,
633 Markdown, and Haddock writers.
635 * Raise error if someone tries to print docx, odt, etc. template (#4441).
637 * LaTeX template: Provide `bidi` package's option using
638 `\PassOptionsToPackage` (#4357, Václav Haisman). This avoid a
639 clash when `polyglossia` loads it first and then it is loaded again
640 for XeLaTeX.
642 * ConTeXt template: Added `pdfa` variable to generate PDF/A (#4294, Henri
643 Menke). Instructions on how to install the ICC profiles on ConTeXt
644 standalone can be found in the wiki:
645 <http://wiki.contextgarden.net/PDFX#ICC_profiles>.
646 If the ICC profiles are not available the log will contain error
647 messages.
649 * Use latest pandoc-types, skylighting
651 * Use latest pandoc-citeproc in binary package.
653 * Bump upper bound for time, criterion, haddock-library, exceptions,
654 http-types, aeson, haddock-library.
656 * Bump upper bound tasty-quickcheck 0.10 (#4429, Felix Yan).
658 * pandoc.cabal: fix up other-extensions and language fields.
659 Language is now consistently `Haskell2010`, and other-extensions
660 is consistently `NoImplicitPrelude`. Everything else to be specified
661 in the module header as needed.
663 * Removed `old-locale` flag and Text.Pandoc.Compat.Time.
664 This is no longer necessary since we no longer support ghc 7.8.
666 * Make `weigh-pandoc` into a benchmark program.
667 Remove `weigh-pandoc` flag. `weigh-pandoc` is now built (and run)
668 automatically when you build (and run) benchmarks.
670 * MANUAL: add instructions for background images reveal.js (#4325, John
671 Muccigrosso).
673 * appveyor: use VS 2013 environment instead of VS 2015 for Windows builds.
676pandoc (2.1.2)
678 * Markdown reader:
680 + Fix parsing bug with nested fenced divs (#4281). Previously we allowed
681 "nonindent spaces" before the opening and closing `:::`, but this
682 interfered with list parsing, so now we require the fences to be flush with
683 the margin of the containing block.
685 * Commonmark reader:
687 + `raw_html` is now on by default. It can be disabled explicitly
688 using `-f commonmark-raw_html`.
690 * Org reader (Albert Krewinkel):
692 + Move citation tests to separate module.
693 + Allow changing emphasis syntax (#4378). The characters allowed before
694 and after emphasis can be configured via `#+pandoc-emphasis-pre` and
695 `#+pandoc-emphasis-post`, respectively. This allows to change which
696 strings are recognized as emphasized text on a per-document or even
697 per-paragraph basis. Example:
699 #+pandoc-emphasis-pre: "-\t ('\"{"
700 #+pandoc-emphasis-post: "-\t\n .,:!?;'\")}["
702 * LaTeX reader:
704 + Fixed comments inside citations (#4374).
705 + Fix regression in package options including underscore (#4424).
706 + Make `--trace` work.
707 + Fixed parsing of `tabular*` environment (#4279).
709 * RST reader:
711 + Fix regression in parsing of headers with trailing space (#4280).
713 * Muse reader (Alexander Krotov):
715 + Enable `<literal>` tags even if amuse extension is enabled.
716 Amusewiki disables <literal> tags for security reasons.
717 If user wants similar behavior in pandoc, RawBlocks and RawInlines
718 can be removed or replaced with filters.
719 + Remove space prefix from `<literal>` tag contents.
720 + Do not consume whitespace while looking for closing end tag.
721 + Convert alphabetical list markers to decimal in round-trip test.
722 Alphabetical lists are an addition of Text::Amuse.
723 They are not present in Emacs Muse and can be ambiguous
724 when list starts with "i.", "c." etc.
725 + Allow `<quote>` and other tags to be indented.
726 + Allow single colon in definition list term.
727 + Fix parsing of verse in lists.
728 + Improved parsing efficiency. Avoid `parseFromString`.
729 Lists are parsed in linear instead of exponential time now.
730 + Replace ParserState with MuseState.
731 + Prioritize lists with roman numerals over alphabetical lists.
732 This is to make sure "i." starts a roman numbered list,
733 instead of a list with letter "i" (followed by "j", "k", ...").
734 + Fix directive parsing.
735 + Parse definition lists with multiple descriptions.
736 + Parse next list item before parsing more item contents.
737 + Fixed a bug: headers did not terminate lists.
738 + Move indentation parsing from `definitionListItem` to `definitionList`.
739 + Paragraph indentation does not indicate nested quote.
740 Muse allows indentation to indicate quotation or alignment,
741 but only on the top level, not within a <quote> or list.
742 + Require that block tags are on separate lines.
743 Text::Amuse already explicitly requires it anyway.
744 + Fix matching of closing inline tags.
745 + Various internal changes.
746 + Fix parsing of nested definition lists.
747 + Require only one space for nested definition list indentation.
748 + Do not remove trailing whitespace from `<code>`.
749 + Fix parsing of trailing whitespace. Newline after whitespace now
750 results in softbreak instead of space.
752 * Docx reader (Jesse Rosenthal, except where noted):
754 + Handle nested sdt tags (#4415).
755 + Don't look up dependent run styles if `+styles` is enabled.
756 + Move pandoc inline styling inside custom-style span.
757 + Read custom styles (#1843). This will read all paragraph and
758 character classes as divs and spans, respectively. Dependent styles
759 will still be resolved, but will be wrapped with appropriate style
760 tags. It is controlled by the `+styles` extension (`-f docx+styles`).
761 This can be used in conjunction with the `custom-style` feature in the
762 docx writer for a pandoc-docx editing workflow. Users can convert from
763 an input docx, reading the custom-styles, and then use that same input
764 docx file as a reference-doc for producing an output docx file. Styles
765 will be maintained across the conversion, even if pandoc doesn't
766 understand them.
767 + Small change to Fields hyperlink parser. Previously, unquoted string
768 required a space at the end of the line (and consumed it). Now we
769 either take a space (and don't consume it), or end of input.
770 + Pick table width from the longest row or header (Francesco Occhipinti,
771 #4360).
773 * Muse writer (Alexander Krotov):
775 + Change verse markup: `> ` instead of `<verse>` tag.
776 + Remove empty strings during inline normalization.
777 + Don't indent nested definition lists.
778 + Use unicode quotes for quoted text.
779 + Write image width specified in percent in Text::Amuse mode.
780 + Don't wrap displayMath into `<verse>`.
781 + Escape nonbreaking space (`~~`).
782 + Join code with different attributes during normalization.
783 + Indent lists inside Div.
784 + Support definitions with multiple descriptions.
786 * Powerpoint writer (Jesse Rosenthal):
788 + Use table styles This will use the default table style in the
789 reference-doc file. As a result they will be easier when using
790 in a template, and match the color scheme.
791 + Remove empty slides. Because of the way that slides were split, these
792 could be accidentally produced by comments after images. When animations
793 are added, there will be a way to add an empty slide with either
794 incremental lists or pauses.
795 + Implement syntax highlighting. Note that background colors can't
796 be implemented in PowerPoint, so highlighting styles that require
797 these will be incomplete.
798 + New test framework for pptx. We now compare the output of the
799 Powerpoint writer with files that we know to (a) not be corrupt,
800 and (b) to show the desired output behavior (details below).
801 + Add `notesMaster` to `presentation.xml` if necessary.
802 + Ignore links and (end)notes in speaker notes.
803 + Output speaker notes.
804 + Read speaker note templates conditionally. If there are speaker
805 notes in the presentation, we read in the notesMasters templates
806 from the reference pptx file.
807 + Fix deletion track changes (#4303, Jesse Rosenthal).
809 * Markdown writer: properly escape @ to avoid capture as citation
810 (#4366).
812 * LaTeX writer:
814 + Put hypertarget inside figure environment (#4388).
815 This works around a problem with the endfloat package and
816 makes pandoc's output compatible with it.
817 + Fix image height with percentage (#4389). This previously caused
818 the image to be resized to a percentage of textwidth, rather than
819 textheight.
821 * ConTeXt writer (Henri Menke):
823 + New section syntax and support `--section-divs` (#2609).
824 `\section[my-header]{My Header}` ->
825 `\section[title={My Header},reference={my-header}]`.
826 The ConTeXt writer now supports the `--section-divs` option to
827 write sections in the fenced style, with `\startsection` and
828 `\stopsection`.
829 + xtables: correct wrong usage of caption (Henri Menke).
831 * Docx writer:
833 + Fix image resizing with multiple images (#3930, Andrew Pritchard).
834 + Use new golden framework (Jesse Rosenthal).
835 + Make more deterministic to facilitate testing (Jesse Rosenthal).
836 - `getUniqueId` now calls to the state to get an incremented digit,
837 instead of calling to P.uniqueHash.
838 - we always start the PRNG in mkNumbering/mkAbstractNum with the same
839 seed (1848), so our randoms should be the same each time.
840 + Fix ids in comment writing (Jesse Rosenthal). Comments from
841 `--track-changes=all` were producing corrupt docx, because the
842 writer was trying to get id from the `(ID,_,_)` field of
843 the attributes, and ignoring the "id" entry in the key-value pairs. We
844 now check both.
846 * Ms writer: Added papersize variable.
848 * TEI writer:
850 + Use `height` instead of `depth` for images (#4331).
851 + Ensure that id prefix is always used.
852 + Don't emit `role` attribute; that was a leftover from the
853 Docbook writer.
854 + Use 'xml:id', not 'id' attribute (#4371).
856 * AsciiDoc writer:
858 + Do not output implicit heading IDs (#4363, Alexander
859 Krotov). Convert to `asciidoc-auto_identifiers` for old behaviour.
861 * RST writer:
863 + Remove `blockToRST'` moving its logic into `fixBlocks`
864 (Francesco Occhipinti).
865 + Insert comment between lists and quotes (#4248, Francesco Occchipinti).
867 * RST template: remove definition of 'math' role as raw.
868 This used to be needed prior to v 0.8 of docutils, but
869 now math support is built-in.
871 * Slides: Use divs to set incremental/non-incremental (#4381,
872 Jesse Rosenthal). The old method (list inside blockquote) still
873 works, but we are encouraging the use of divs with class
874 `incremental` or `nonincremental`.
876 * Text.Pandoc.ImageSize:
878 + Make image size detection for PDFs more robust (#4322).
879 + Determine image size for PDFs (#4322).
880 + EMF Image size support (#4375, Andrew Pritchard).
882 * Text.Pandoc.Extensions:
884 + Add `Ext_styles` (Jesse Rosenthal, API change). This will be used in
885 the docx reader (defaulting to off) to read pargraph and character
886 styles not understood by pandoc (as divs and spans, respectively).
887 + Made `Ext_raw_html` default for `commonmark` format.
889 * Text.Pandoc.Parsing:
891 + Export `manyUntil` (Alexander Krotov, API change).
892 + Export improved `sepBy1` (Alexander Krotov).
893 + Export list marker parsers: `upperRoman`, `lowerRoman`,
894 `decimal`, `lowerAlpha`, `upperAlpha` (Alexander Krotov, API change).
896 * Tests/Lua: fix tests on windows (Albert Krewinkel).
898 * Lua: register script name in global variable (#4393). The name of the Lua
899 script which is executed is made available in the global Lua variable
900 `PANDOC_SCRIPT_FILE`, both for Lua filters and custom writers.
902 * Tests: Abstract powerpoint tests out to OOXML tests (Jesse Rosenthal).
903 There is very little pptx-specific in these tests, so we abstract out
904 the basic testing function so it can be used for docx as well. This
905 should allow us to catch some errors in the docx writer that slipped
906 by the roundtrip testing.
908 * Lua filters: store constructors in registry (Albert Krewinkel). Lua
909 functions used to construct AST element values are stored in the Lua
910 registry for quicker access. Getting a value from the registry is much
911 faster than getting a global value (partly to idiosyncrasies of hslua);
912 this change results in a considerable performance boost.
914 * Documentation:
916 + `doc/org.md` Add draft of Org-mode documentation (Albert Krewinkel).
917 + `doc/lua-filters.md`: document global vars set for filters
918 (Albert Krewinkel).
919 + INSTALL.md: mention Stack version. (#4343, Adam Brandizzi).
920 + MANUAL: add documentation on custom styles (Jesse Rosenthal).
921 + MANUAL.txt: Document incremental and nonincremental divs (Jesse
922 Rosenthal). Blockquoted lists are still described, but fenced divs are
923 presented in preference.
924 + MANUAL.txt: document header and footer variables (newmana).
925 + MANUAL.txt: self-contained implies standalone (#4304, Daniel Lublin).
926 + CONTRIBUTING.md: label was renamed. (#4310, Alexander Brandizzi).
928 * Require tagsoup 0.14.3 (#4282), fixing HTML tokenization bug.
930 * Use latest texmath.
932 * Use latest pandoc-citeproc.
934 * Allow exceptions 0.9.
936 * Require aeson-pretty 0.8.5 (#4394).
938 * Bump blaze-markup, blaze-html lower bounds to 0.8, 0.9 (#4334).
940 * Update tagsoup to 0.14.6 (Alexander Krotov, #4282).
942 * Removed ghc-prof-options. As of cabal 1.24, sensible defaults are used.
944 * Update default.nix to current nixpkgs-unstable for hslua-0.9.5 (#4348,
945 jarlg).
948pandoc (2.1.1)
950 * Markdown reader:
952 + Don't coalesce adjacent raw LaTeX blocks if they are separated by a
953 blank line. See lierdakil/pandoc-crossref#160.
954 + Improved `inlinesInBalancedBrackets` (#4272, jgm/pandoc-citeproc#315).
955 The change both improves performance and fixes a regression whereby
956 normal citations inside inline notes and figure captions were not
957 parsed correctly.
959 * RST reader:
961 + Better handling for headers with an anchor (#4240). Instead of creating a
962 Div containing the header, we put the id directly on the header.
963 This way header promotion will work properly.
964 + Add aligned environment when needed in math (#4254). `rst2latex.py`
965 uses an `align*` environment for math in `.. math::` blocks, so this
966 math may contain line breaks. If it does, we put the math in an
967 `aligned` environment to simulate `rst2latex.py`'s behavior.
969 * HTML reader:
971 + Fix col width parsing for percentages < 10% (#4262, n3fariox).
973 * LaTeX reader:
975 + Advance source position at end of stream.
976 + Pass through macro defs in `rawLaTeXBlock` even if the `latex_macros`
977 extension is set (#4246). This reverts to earlier behavior and is
978 probably safer on the whole, since some macros only modify things in
979 included packages, which pandoc's macro expansion can't modify.
980 + Fixed pos calculation in tokenizing escaped space.
981 + Allow macro definitions inside macros (#4253). Previously we went into
982 an infinite loop with
983 ```
984 \newcommand{\noop}[1]{#1}
985 \noop{\newcommand{\foo}[1]{#1}}
986 \foo{hi}
987 ```
988 + Fix inconsistent column widths (#4238). This fixes a bug whereby column
989 widths for the body were different from widths for the header in some
990 tables.
992 * Docx reader (Jesse Rosenthal):
994 + Parse hyperlinks in `instrText` tags (#3389, #4266). This was a form of
995 hyperlink found in older versions of word. The changes introduced for
996 this, though, create a framework for parsing further fields in MS Word
997 (see the spec, ECMA-376-1:2016, §17.16.5, for more on these fields).
998 We introduce a new module, `Text.Pandoc.Readers.Docx.Fields` which
999 contains a simple parsec parser. At the moment, only simple hyperlink
1000 fields are accepted, but that can be extended in the future.
1002 * Muse reader (Alexander Krotov):
1004 + Parse `~~` as non-breaking space in Text::Amuse mode.
1005 + Refactor list parsing.
1007 * Powerpoint writer (Jesse Rosenthal):
1009 + Change reference to `notesSlide` to `endNotesSlide`.
1010 + Move image sizing into `picProps`.
1011 + Improve table placement.
1012 + Make our own `_rels/.rels` file.
1013 + Import reference-doc images properly.
1014 + Move `Presentation.hs` out of `PandocMonad`.
1015 + Refactor into separate modules. T.P.W.Powerpoint.Presentation
1016 defines the Presentation datatype and goes Pandoc->Presentation;
1017 T.P.W.Pandoc.Output goes Presentation->Archive.
1018 Text.Pandoc.Writers.Powerpoint a thin wrapper around the two modules.
1019 + Avoid overlapping blocks in column output.
1020 + Position images correctly in two-column layout.
1021 + Make content shape retrieval environment-aware.
1022 + Improve image handling. We now determine image and caption placement
1023 by getting the dimensions of the content box in a given layout.
1024 This allows for images to be correctly sized and positioned in a
1025 different template. Note that images without captions and headers are
1026 no longer full-screened. We can't do this dependably in different
1027 layouts, because we don't know where the header is (it could be to
1028 the side of the content, for example).
1029 + Read presentation size from reference file. Our presentation size is
1030 now dependent on the reference/template file we use.
1031 + Handle (sub)headers above slidelevel correctly. Above the slidelevel,
1032 subheaders will be printed in bold and given a bit of extra space
1033 before them. Note that at the moment, no distinction is made between
1034 levels of headers above the slide header, though that can be changed.
1035 + Check for required files. Since we now import from reference/dist
1036 file by glob, we need to make sure that we're getting the files we
1037 need to make a non-corrupt Powerpoint. This performs that check.
1038 + Improve templating using `--reference-doc`. Templating should work
1039 much more reliably now.
1040 + Include Notes slide in TOC.
1041 + Set notes slide header to slide-level.
1042 + Add table of contents. This is triggered by the `--toc` flag. Note
1043 that in a long slide deck this risks overrunning the text box. The user
1044 can address this by setting `--toc-depth=1`.
1045 + Set notes slide number correctly.
1046 + Clean up adding metadata slide. We want to count the slide numbers
1047 correctly if it's in there.
1048 + Add anchor links. For anchor-type links (`[foo](#bar)`) we produce
1049 an anchor link. In powerpoint these are links to slides, so we keep
1050 track of a map relating anchors to the slides they occur on.
1051 + Make the slide number available to the blocks. For anchors,
1052 block-processing functions need to know what slide number
1053 they're in. We make the `envCurSlideId` available to blocks.
1054 + Move `curSlideId` to environment.
1055 + Allow setting `toc-title` in metadata.
1056 + Link notes to endnotes slide.
1058 * Markdown writer:
1060 + Fix cell width calculation (#4265). Previously we could get
1061 ever-lengthening cell widths when a table was run repeatedly through
1062 `pandoc -f markdown -t markdown`.
1064 * LaTeX writer:
1066 + Escape `&` in lstinline (Robert Schütz).
1068 * ConTeXt writer:
1070 + Use xtables instead of Tables (#4223, Henri Menke).
1071 Default to xtables for context output. Natural Tables are used
1072 if the new `ntb` extension is set.
1074 * HTML writer:
1076 + Fixed footnote backlinks with `--id-prefix` (#4235).
1078 * `Text.Pandoc.Extensions`: Added `Ext_ntb` constructor (API change,
1079 Henri Menke).
1081 * `Text.Pandoc.ImageSize`: add derived `Eq` instance to `Dimension`
1082 (Jesse Rosenthal, API change).
1084 * Lua filters (Albert Krewinkel):
1086 + Make `PANDOC_READER_OPTIONS` available.
1087 The options which were used to read the document are made available to
1088 Lua filters via the `PANDOC_READER_OPTIONS` global.
1089 + Add lua module `pandoc.utils.run_json_filter`, which runs a JSON filter
1090 on a Pandoc document.
1091 + Refactor filter-handling code into `Text.Pandoc.Filter.JSON`,
1092 `Text.Pandoc.Filter.Lua`, and `Text.Pandoc.Filter.Path`.
1093 + Improve error messages. Provide more context about the task
1094 which caused an error.
1096 * data/pandoc.lua (Albert Krewinkel):
1098 + Accept singleton inline as a list. Every constructor which accepts a
1099 list of inlines now also accepts a single inline element for
1100 convenience.
1101 + Accept single block as singleton list. Every constructor which accepts
1102 a list of blocks now also accepts a single block element for
1103 convenience. Furthermore, strings are accepted as shorthand for
1104 `{pandoc.Str "text"}` in constructors.
1105 + Add attr, listAttributes accessors. Elements with
1106 attributes got an additional `attr` accessor. Attributes were
1107 accessible only via the `identifier`, `classes`, and `attributes`,
1108 which was in conflict with the documentation, which indirectly states
1109 that such elements have the an `attr` property.
1110 + Drop `_VERSION`. Having a `_VERSION` became superfluous, as this
1111 module is closely tied to the pandoc version, which is available via
1112 `PANDOC_VERSION`.
1113 + Fix access to Attr components. Accessing an Attr value (e.g.,
1114 ` Attr().classes`) was broken; the more common case of accessing it via
1115 an Inline or Block element was unaffected by this.
1117 * Move `metaValueToInlines` to from Docx writer to
1118 `Text.Pandoc.Writers.Shared`, so it can be used by other writers
1119 (Jesse Rosenthal).
1121 * MANUAL.txt:
1123 + Clarify otherlangs in LaTeX (#4072).
1124 + Clarify `latex_macros` extension.
1125 + Recommend use of `raw_attribute` extension in header includes (#4253).
1127 * Allow latest QuickCheck, tasty, criterion.
1129 * Remove custom prelude and ghc 7.8 support.
1131 * Reduce compiler noise (exact paths for compiled modules).
1133pandoc (2.1)
1135 * Allow filters and lua filters to be interspersed (#4196). Previously
1136 we ran all lua filters before JSON filters. Now we run filters in
1137 the order they are presented on the command line, whether lua or JSON.
1138 There are two incompatible API changes: The type of `applyFilters`
1139 has changed, and `applyLuaFilters` has been removed. `Filter` is
1140 also now exported.
1142 * Use latest skylighting and omit the `missingIncludes` check, fixing
1143 a major performance regression in earlier releases of the 2.x series
1144 (#4226). Behavior change: If you use a custom syntax definition that
1145 refers to a syntax you haven't loaded, pandoc will now complain when
1146 it is highlighting the text, rather than doing a check at the start.
1147 This change dramatically speeds up invocations of pandoc on short
1148 inputs.
1150 * Text.Pandoc.Class: make `FileTree` opaque (don't export
1151 `FileTree` constructor). This forces users to interact with it using
1152 `insertInFileTree` and `getFileInfo`, which normalize file names.
1154 * Markdown reader:
1156 + Rewrite `inlinesInBalancedBrackets`. The rewrite is much more
1157 direct, avoiding `parseFromString`. And it performs significantly
1158 better; unfortunately, parsing time still increases exponentially
1159 (see #1735).
1160 + Avoid parsing raw tex unless `\` + letter seen. This seems to
1161 help with the performance problem, #4216.
1163 * LaTeX reader: Simplified a check for raw tex command.
1165 * Muse reader (Alexander Krotov):
1167 + Enable round trip test (#4107).
1168 + Automatically translate `#cover` into `#cover-image`.
1169 Amusewiki uses #cover directive to specify cover image.
1171 * Docx reader (Jesse Rosenthal):
1173 + Allow for insertion/deletion of paragraphs (#3927).
1174 If the paragraph has a deleted or inserted paragraph break (depending
1175 on the track-changes setting) we hold onto it until the next
1176 paragraph. This takes care of accept and reject. For this we introduce
1177 a new state which holds the ils from the previous para if necessary.
1178 For `--track-changes=all`, we add an empty span with class
1179 `paragraph-insertion`/`paragraph-deletion` at the end of the paragraph
1180 prior to the break to be inserted or deleted.
1181 + Remove unused anchors (#3679). Docx produces a lot of anchors with
1182 nothing pointing to them---we now remove these to produce cleaner
1183 output. Note that this has to occur at the end of the process
1184 because it has to follow link/anchor rewriting.
1185 + Read multiple children of `w:sdtContents`.
1186 + Combine adjacent anchors. There isn't any reason to have numerous
1187 anchors in the same place, since we can't maintain docx's
1188 non-nesting overlapping. So we reduce to a single anchor.
1189 + Improved tests.
1191 * Muse writer (Alexander Krotov): don't escape URIs from AST
1193 * Docx writer:
1195 + Removed redundant subtitle in title (Sebastian Talmon).
1196 + `firstRow` table definition compatibility for Word 2016 (Sebastian
1197 Talmon). Word 2016 seems to use a default value of "1" for table
1198 headers, if there is no firstRow definition (although a default
1199 value of 0 is documented), so all tables get the first Row formatted
1200 as header. Setting the parameter to 0 if the table has no header
1201 row fixes this for Word 2016
1202 + Fix custom styles with spaces in the name (#3290).
1204 * Powerpoint writer (Jesse Rosenthal):
1206 + Ignore Notes div for parity with other slide outputs.
1207 + Set default slidelevel correctly. We had previously defaulted to
1208 slideLevel 2. Now we use the correct behavior of defaulting to the
1209 highest level header followed by content. We change an expected test
1210 result to match this behavior.
1211 + Split blocks correctly for linked images.
1212 + Combine adjacent runs.
1213 + Make inline code inherit code size. Previously (a) the code size
1214 wasn't set when we force size, and (b) the properties was set from
1215 the default, instead of inheriting.
1216 + Simplify `replaceNamedChildren` function.
1217 + Allow linked images. The following markdown:
1218 `[![Image Title](image.jpg)](http://www.example.com)`
1219 will now produce a linked image in the resulting PowerPoint file.
1220 + Fix error with empty table cell. We require an empty `<a:p>` tag,
1221 even if the cell contains no paragraphs---otherwise PowerPoint
1222 complains of corruption.
1223 + Implement two-column slides. This uses the columns/column div
1224 format described in the pandoc manual. At the moment, only two
1225 columns (half the screen each) are allowed. Custom widths are not
1226 supported.
1227 + Added more tests.
1229 * OpenDocument/ODT writers: improved rendering of formulas (#4170, oltolm).
1231 * Lua filters (Albert Krewinkel):
1233 + `data/pandoc.lua`: drop 'pandoc-api-version' from Pandoc objects
1234 + The current pandoc-types version is made available to Lua programs in
1235 the global `PANDOC_API_VERSION`. It contains the version as a list of
1236 numbers.
1237 + The pandoc version available as a global `PANDOC_VERSION` (a list
1238 of numbers).
1239 + `data/pandoc.lua`: make `Attr` an `AstElement`.
1240 + `data/pandoc.lua`: make all types subtypes of `AstElement`.
1241 `Pandoc`, `Meta`, and `Citation` were just plain functions and did
1242 not set a metatable on the returned value, which made it difficult
1243 to amend objects of these types with new behavior. They are now
1244 subtypes of AstElement, meaning that all their objects can gain
1245 new features when a method is added to the behavior object
1246 (e.g., `pandoc.Pandoc.behavior`).
1247 + `data/pandoc.lua`: split type and behavior tables. Clearly distinguish
1248 between a type and the behavioral properties of an instance of that
1249 type. The behavior of a type (and all its subtypes) can now be
1250 amended by adding methods to that types `behavior` object, without
1251 exposing the type objects internals. E.g.:
1252 ```lua
1253 pandoc.Inline.behavior.frob = function () print'42' end
1254 local str = pandoc.Str'hello'
1255 str.frob() -- outputs '42'
1256 ```
1257 + `data/pandoc.lua`: fix Element inheritance. Extending all elements
1258 of a given type (e.g., all inline elements) was difficult, as the
1259 table used to lookup unknown methods would be reset every time a
1260 new element of that type was created, preventing recursive property
1261 lookup. This is was changed in that all methods and attributes of
1262 supertypes are now available to their subtypes.
1263 + `data/pandoc.lua`: fix attribute names of Citation (#4222). The
1264 fields were named like the Haskell fields, not like the documented,
1265 shorter version. The names are changed to match the documentation
1266 and Citations are given a shared metatable to enable simple
1267 extensibility.
1268 + `data/pandoc.lua`: drop function `pandoc.global_filter`.
1269 + Bump `hslua` version to 0.9.5. This version fixes a bug that made it
1270 difficult to handle failures while getting lists or a Map from Lua.
1271 A bug in pandoc, which made it necessary to always pass a tag when
1272 using MetaList or MetaBlock, is fixed as a result. Using the pandoc
1273 module's constructor functions for these values is now optional
1274 (if still recommended).
1275 + Stop exporting `pushPandocModule` (API change). The introduction
1276 of `runPandocLua` renders direct use of this function obsolete.
1277 + Update generation of module docs for lua filters.
1278 + `Lua.Module.Utils`: make stringify work on `MetaValues` (John
1279 MacFarlane). I'm sure this was intended in the first place,
1280 but currently only `Meta` is supported.
1282 * Improve benchmarks.
1284 + Set the default extensions properly.
1285 + Improve benchmark argument parsing. You can now say
1286 `make bench BENCHARGS="markdown latex reader"` and both the
1287 markdown and latex readers will be benchmarked.
1289 * MANUAL.txt simplify and add more structure (Mauro Bieg).
1291 * Generate README.md from template and MANUAL.txt.
1292 `make README.md` will generate the README.md after changes
1293 to MANUAL.txt have been made.
1295 * Update copyright notices to include 2018 (Albert Krewinkel).
1297pandoc (2.0.6)
1299 * Added `jats` as an input format.
1301 + Add Text.Pandoc.Readers.JATS, exporting `readJATS` (API
1302 change) (Hamish Mackenzie).
1303 + Improved citation handling in JATS reader. JATS citations
1304 are now converted to pandoc citations, and JATS ref-lists
1305 are converted into a `references` field in metadata, suitable
1306 for use with pandoc-citeproc. Thus a JATS article with embedded
1307 bibliographic information can be processed with pandoc and
1308 pandoc-citeproc to produce a formatted bibliography.
1310 * Allow `--list-extensions` to take an optional FORMAT argument.
1311 This lists the extensions set by default for the selected FORMAT.
1312 The extensions are now alphabetized, and the `+` or `-`
1313 indicating the default setting comes before, rather than after,
1314 the extension.
1316 * Markdown reader:
1318 + Preserve original whitespace between blocks.
1319 + Recognize `\placeformula` as context.
1320 + Be pickier about table captions. A caption starts with a `:` which
1321 can't be followed by punctuation. Otherwise we can falsely interpret
1322 the start of a fenced div, or even a table header line like
1323 `:--:|:--:`, as a caption.
1324 + Always use four space rule for example lists. It would be awkward
1325 to indent example list contents to the first non-space character after
1326 the label, since example list labels are often long. Thanks to
1327 Bernhard Fisseni for the suggestion.
1328 + Improve raw tex parsing. Note that the Markdown reader is also
1329 affected by the `latex_macros` extension changes described below
1330 under the LaTeX reader.
1332 * LaTeX reader:
1334 + `latex_macros` extension changes (#4179). Don't pass through macro
1335 definitions themselves when `latex_macros` is set. The macros
1336 have already been applied. If `latex_macros` is enabled, then
1337 `rawLaTeXBlock` in Text.Pandoc.Readers.LaTeX will succeed in parsing
1338 a macro definition, and will update pandoc's internal macro map
1339 accordingly, but the empty string will be returned.
1340 + Export `tokenize`, `untokenize` (API change).
1341 + Use `applyMacros` in `rawLaTeXBlock`, `rawLaTeXInline`.
1342 + Refactored `inlineCommand`.
1343 + Fix bug in tokenizer. Material following `^^` was
1344 dropped if it wasn't a character escape. This only affected
1345 invalid LaTeX, so we didn't see it in the wild, but it appeared
1346 in a QuickCheck test failure.
1347 + Fix regression in LateX tokenization (#4159). This mainly affects the
1348 Markdown reader when parsing raw LaTeX with escaped spaces.
1349 + Add tests of LaTeX tokenizer.
1350 + Support `\foreignlanguage` from babel.
1351 + Be more tolerant of `&` character (#4208). This allows us to parse
1352 unknown tabular environments as raw LaTeX.
1354 * Muse reader (Alexander Krotov):
1356 + Parse anchors immediately after headings as IDs.
1357 + Require that note references does not start with 0.
1358 + Parse empty comments correctly.
1360 * Org reader (Albert Krewinkel):
1362 + Fix asterisks-related parsing error (#4180).
1363 + Support minlevel option for includes (#4154). The level of headers
1364 in included files can be shifted to a higher level by specifying a
1365 minimum header level via the `:minlevel` parameter. E.g.
1366 `#+include: "tour.org" :minlevel 1` will shift the headers in
1367 tour.org such that the topmost headers become level 1 headers.
1368 + Break-up org reader test file into multiple modules.
1370 * OPML reader:
1372 + Enable raw HTML and other extensions by default for notes
1373 (#4164). This fixes a regression in 2.0. Note that extensions can
1374 now be individually disabled, e.g. `-f opml-smart-raw_html`.
1376 * RST reader:
1378 + Allow empty list items (#4193).
1379 + More accurate parsing of references (#4156). Previously we erroneously
1380 included the enclosing backticks in a reference ID (#4156). This
1381 change also disables interpretation of syntax inside references, as
1382 in docutils. So, there is no emphasis in `` `my *link*`_ ``.
1384 * Docx reader:
1386 + Continue lists after interruption (#4025, Jesse Rosenthal).
1387 Docx expects that lists will continue where they left off after an
1388 interruption and introduces a new id if a list is starting again. So
1389 we keep track of the state of lists and use them to define a "start"
1390 attribute, if necessary.
1391 + Add tests for structured document tags unwrapping (Jesse Rosenthal).
1392 + Preprocess Document body to unwrap `w:sdt` elements (Jesse Rosenthal,
1393 #4190).
1395 * Plain writer:
1397 + Don't linkify table of contents.
1399 * RST writer:
1401 + Fix anchors for headers (#4188). We were missing an `_`.
1403 * PowerPoint writer (Jesse Rosenthal):
1405 + Treat lists inside BlockQuotes as lists. We don't yet produce
1406 incremental lists in PowerPoint, but we should at least treat lists
1407 inside BlockQuotes as lists, for compatibility with other slide formats.
1408 + Add ability to force size. This replaces the more specific
1409 `blockQuote runProp`, which only affected the size of blockquotes. We
1410 can use this for notes, etc.
1411 + Implement notes. This currently prints all notes on a final slide.
1412 Note that at the moment, there is a danger of text overflowing the
1413 note slide, since there is no logic for adding further slides.
1414 + Implement basic definition list functionality to PowerPoint writer.
1415 + Don't look for default template file for Powerpoint (#4181).
1416 + Add pptx to isTextFormat list. This is used to check standalone
1417 and not writing to the terminal.
1418 + Obey slide level option (Jesse Rosenthal).
1419 + Introduce tests.
1421 * Docx writer:
1423 + Ensure that `distArchive` is the one that comes with pandoc
1424 (#4182). Previously a `reference.docx` in `~/.pandoc` (or the user data
1425 dir) would be used instead, and this could cause problems because a
1426 user-modified docx sometimes lacks vital sections that we count
1427 on the `distArchive` to supply.
1429 * Org writer:
1431 + Do not wrap "-" to avoid accidental bullet lists (Alexander Krotov).
1432 + Don't allow fn refs to wrap to beginning of line (#4171, with help from
1433 Alexander Krotov). Otherwise they can be interpreted as footnote
1434 definitions.
1436 * Muse writer (Alexander Krotov):
1438 + Don't wrap note references to the next line (#4172).
1440 * HTML writer:
1442 + Use br elements in line blocks instead of relying on CSS
1443 (#4162). HTML-based templates have had the custom CSS for
1444 `div.line-block` removed. Those maintaining custom templates will want
1445 to remove this too. We still enclose line blocks in a div with class
1446 `line-block`.
1448 * LaTeX writer:
1450 + Use `\renewcommand` for `\textlatin` with babel (#4161).
1451 This avoids a clash with a deprecated `\textlatin` command defined
1452 in Babel.
1453 + Allow fragile=singleslide attribute in beamer slides (#4169).
1454 + Use `\endhead` after `\toprule` in headerless tables (#4207).
1456 * FB2 writer:
1458 + Add cover image specified by `cover-image` meta (Alexander Krotov,
1459 #4195).
1461 * JATS writer (Hamish Mackenzie):
1463 + Support writing `<fig>` and `<table-wrap>` elements
1464 with `<title>` and `<caption>` inside them by using Divs with class set
1465 to one of `fig`, `table-wrap` or `caption` (Hamish Mackenzie). The
1466 title is included as a Heading so the constraint on where Heading can
1467 occur is also relaxed.
1468 + Leave out empty alt attributes on links.
1469 + Deduplicate image mime type code.
1470 + Make `<p>` optional in `<td>` and `<th>` (#4178).
1471 + Self closing tags for empty xref (#4187).
1472 + Improve support for code language.
1474 * Custom writer:
1476 + Use init file to setup Lua interpreter (Albert Krewinkel).
1477 The same init file (`data/init`) that is used to setup the Lua
1478 interpreter for Lua filters is also used to setup the interpreter of
1479 custom writers.lua.
1480 + Define instances for newtype wrapper (Albert Krewinkel). The custom
1481 writer used its own `ToLuaStack` instance definitions, which made
1482 it difficult to share code with Lua filters, as this could result
1483 in conflicting instances. A `Stringify` wrapper is introduced to
1484 avoid this problem.
1485 + Added tests for custom writer.
1486 + Fixed definition lists and tables in `data/sample.lua`.
1488 * Fixed regression: when target is PDF, writer extensions were being
1489 ignored. So, for example, `pandoc -t latex-smart -o file.pdf`
1490 did not work properly.
1492 * Lua modules (Albert Krewinkel):
1494 + Add `pandoc.utils` module, to hold utility functions.
1495 + Create a Haskell module Text.Pandoc.Lua.Module.Pandoc to
1496 define the `pandoc` lua module.
1497 + Make a Haskell module for each Lua module. Move definitions for the
1498 `pandoc.mediabag` modules to a separate Haskell module.
1499 + Move `sha1` from the main `pandoc` module to `pandoc.utils`.
1500 + Add function `pandoc.utils.hierarchicalize` (convert list of
1501 Pandoc blocks into (hierarchical) list of Elements).
1502 + Add function `pandoc.utils.normalize_date` (parses a date and
1503 converts it (if possible) to "YYYY-MM-DD" format).
1504 + Add function `pandoc.utils.to_roman_numeral` (allows conversion
1505 of numbers below 4000 into roman numerals).
1506 + Add function `pandoc.utils.stringify` (converts any AST element
1507 to a string with formatting removed).
1508 + `data/init.lua`: load `pandoc.utils` by default
1509 + Turn pipe, read into full Haskell functions. The `pipe` and `read`
1510 utility functions are converted from hybrid lua/haskell functions
1511 into full Haskell functions. This avoids the need for intermediate
1512 `_pipe`/`_read` helper functions, which have dropped.
1513 + pandoc.lua: re-add missing MetaMap function. This was a bug
1514 introduced in version 2.0.4.
1516 * Text.Pandoc.Class: Add `insertInFileTree` [API change]. This gives
1517 a pure way to insert an ersatz file into a `FileTree`. In addition, we
1518 normalize paths both on insertion and on lookup.
1520 * Text.Pandoc.Shared: export `blocksToInlines'` (API change, Maura Bieg).
1522 * Text.Pandoc.MIME: Add opus to MIME type table as audio/ogg (#4198).
1524 * Text.Pandoc.Extensions: Alphabetical order constructors for
1525 `Extension`. This makes them appear in order in `--list-extensions`.
1527 * Allow lenient decoding of latex error logs, which are not always
1528 properly UTF8-encoded (#4200).
1530 * Update latex template to work with recent versions of beamer.
1531 The old template produced numbered sections with some recent
1532 versions of beamer. Thanks to Thomas Hodgson.
1534 * Updated reference.docx (#4175). Instead of just "Hello, world", the
1535 document now contains exemplars of most of the styles that have an
1536 effect on pandoc documents. This makes it easier to see the effect
1537 of style changes.
1539 * Removed `default.theme` data file (#4096). It is no longer needed now
1540 that we have `--print-highlight-style`.
1542 * Added `stack.lts9.yaml` for building with lts 9 and ghc 8.0.2.
1543 We still need this for the alpine static linux build, since
1544 we don't have ghc 8.2.2 for that yet.
1546 * Removed `stack.pkg.yaml`. We only really need `stack.yaml`; we
1547 can put flag settings for pandoc-citeproc there.
1549 * Makefile: Add 'trypandoc' and 'pandoc-templates' targets to
1550 make releases easier.
1552 * MANUAL.txt:
1554 + Add note on what formats have `+smart` by default.
1555 + Use native syntax for custom-style (#4174, Mauro Bieg).
1556 + Introduce dedicated Extensions section, since some extensions
1557 affect formats other than markdown (Mauro Bieg, #4204).
1558 + Clarify default html output for `--section-divs` (Richard Edwards).
1560 * filters.md: say that Text.Pandoc.JSON comes form pandoc-types.
1561 Closes jgm/pandoc-website#16.
1563 * epub.md: Delete removed `-S` option from command (#4151, Georger Araújo).
1565pandoc (2.0.5)
1567 * Fix a bug in 2.0.4, whereby pandoc could not read the theme files
1568 generated with `--print-highlight-style` (#4133). Improve JSON
1569 serialization of styles.
1571 * Fix CSS issues involving line numbers (#4128).
1572 Highlighted code blocks are now enclosed in a div with class `sourceCode`.
1573 Highlighting CSS no longer sets a generic color for pre and code; we only
1574 set these for class `sourceCode`.
1576 * `--pdf-engine-opt`: fix bug where option order was reversed (#4137).
1578 * Add PowerPoint (pptx) writer (Jesse Rosenthal).
1579 It works following the standard Pandoc conventions for making other
1580 sorts of slides. Caveats:
1582 + Syntax highlighting is not yet implemented. (This is difficult
1583 because there are no character classes in Powerpoint.)
1584 + Footnotes and Definition lists are not yet implemented. (Notes will
1585 usually take the form of a final slide.
1586 + Image placement and auto-resizing has a few glitches.
1587 + Reference powerpoint files don't work dependably from the command
1588 line. This will be implemented, but at the moment users are advised
1589 to change themes from within Powerpoint.
1591 * Create shared Text.Pandoc.Writers.OOXML module (Jesse Rosenthal).
1592 This is for functions used by both Powerpoint and Docx writers.
1594 * Add default pptx data for Powerpoint writer (Jesse Rosenthal).
1596 * Add `empty_paragraphs` extension.
1598 + Deprecate `--strip-empty-paragraphs` option. Instead we now
1599 use an `empty_paragraphs` extension that can be enabled on
1600 the reader or writer. By default, disabled.
1601 + Add `Ext_empty_paragraphs` constructor to `Extension`.
1602 + Revert "Docx reader: don't strip out empty paragraphs."
1603 This reverts commit d6c58eb836f033a48955796de4d9ffb3b30e297b.
1604 + Implement `empty_paragraphs` extension in docx reader and writer,
1605 opendocument writer, HTML reader and writer.
1606 + Add tests for `empty_paragraphs` extension.
1608 * Markdown reader:
1610 + Don't parse native div as table caption (#4119).
1611 + Improved computation of column widths in pipe tables.
1612 Pipe tables with lines longer than the text width (as set
1613 by `--columns`) are now scaled to text width, with the relative
1614 widths of columns determined by the ratios between the
1615 header lines. Previously we computed column widths using
1616 the ratio of header line lengths to column width, so that
1617 tables with narrow header lines were extremely thin, which
1618 was very rarely the desired result.
1620 * LaTeX reader: fix `\` before newline (#4134). This should be a space,
1621 as long as it's not followed by a blank line. This has been fixed at the
1622 tokenizer level.
1624 * Muse reader (Alexander Krotov):
1626 + Add test for `#disable-tables` directive in Emacs mode.
1627 + Don't allow emphasis to be preceded by letter.
1628 + Add underline support in Emacs Muse mode..
1629 + Support multiline directives in Amusewiki mode
1631 * Man writer: omit internal links (#4136). That is, just print the link
1632 text without the URL.
1634 * Markdown reader: accept processing instructions as raw HTML (#4125).
1636 * Lua filters (Albert Krewinkel):
1638 + Use script to initialize the interpreter. The file `init.lua` is
1639 used to initialize the Lua interpreter which is used in Lua filters.
1640 This gives users the option to require libraries which they want to
1641 use in all of their filters, and to extend default modules.
1642 + Fix package loading for Lua 5.1. The list of package searchers is
1643 named `package.loaders` in Lua 5.1 and LuaJIT, and `package.searchers`
1644 in Lua 5.2 and later.
1645 + Refactor lua module handling. The integration with Lua's package/module
1646 system is improved: A pandoc-specific package searcher is prepended to
1647 the searchers in `package.searchers`. The modules `pandoc` and
1648 `pandoc.mediabag` can now be loaded via `require`.
1649 + Bump lower bound of hslua. The release hslua 0.9.3 contains a new
1650 function which makes using Haskell functions as package loaders much
1651 easier.
1653 * reveal.js template: add title-slide identifier to title slide (#4120).
1654 This allows it to be styled more easily.
1656 * LaTeX template: Added support for `pagestyle` variable (#4135,
1657 Thomas Hodgson)
1659 * Add `-threaded` to ghc-options for executable (#4130, fixes a build
1660 error on linux).
1663pandoc (2.0.4)
1665 * Add `--print-highlight-style` option. This generates a JSON version
1666 of a highlighting style, which can be saved as a `.theme` file, modified,
1667 and used with `--highlight-style` (#4106, #4096).
1669 * Add `--strip-empty-paragraphs` option. This works for any input format.
1670 It is primarily intended for use with docx and odt documents where
1671 empty paragraphs have been used for inter-paragraph spaces.
1673 * Support `--webtex` for `gfm` output.
1675 * Recognize `.muse` file extension.
1677 * Support beamer `\alert` in LaTeX reader. Closes #4091.
1679 * Docx reader: don't strip out empty paragraphs (#2252).
1680 Users who have a conversion pipeline from docx may want to consider adding
1681 `--strip-empty-paragraphs` to the command line.
1683 * Org reader (Albert Krewinkel): Allow empty list items (#4090).
1685 * Muse reader (Alexander Krotov):
1687 + Parse markup in definition list terms.
1688 + Allow definition to end with EOF.
1689 + Make code blocks round trip.
1690 + Drop common space prefix from list items.
1691 + Add partial round trip test.
1692 + Don't interpret XML entities.
1693 + Remove `nested`.
1694 + Parse `~~` as non-breaking space in Emacs mode.
1695 + Correctly remove indentation from notes. Exactly one space is
1696 required and considered to be part of the marker.
1697 + Allow list items to be empty.
1698 + Add ordered list test.
1699 + Add more multiline definition tests.
1700 + Don't allow blockquotes within lists.
1701 + Fix reading of multiline definitions.
1702 + Add inline `<literal>` support.
1703 + Concatenate inlines of the same type
1705 * Docx writer: allow empty paragraphs (#2252).
1707 * CommonMark/gfm writer:
1709 + Use raw html for native divs/spans (#4113). This allows a pandoc
1710 markdown native div or span to be rendered in gfm using raw html tags.
1711 + Implement `raw_html` and `raw_tex` extensions. Note that `raw_html`
1712 is enabled by default for `gfm`, while `raw_tex` is disabled by default.
1714 * Muse writer (Alexander Krotov):
1716 + Test that inline math conversion result is normalized.
1717 Without normalization this test produced
1718 `<em>a</em><em>b</em><em>c</em>`.
1719 + Improve inline list normalization and move to writer.
1720 + Escape hash symbol.
1721 + Escape `----` to avoid accidental horizontal rules.
1722 + Escape only `</code>` inside code tag.
1723 + Additional `<verbatim>` is not needed as `<code>` is verbatim already.
1725 * LaTeX writer:
1727 + Allow specifying just width or height for image size.
1728 Previously both needed to be specified (unless the image was
1729 being resized to be smaller than its original size).
1730 If height but not width is specified, we now set width to
1731 textwidth. If width but not height is specified, we now set
1732 height to textheight. Since we have `keepaspectratio`, this
1733 yields the desired result.
1734 + Escape `~` and `_` in code with `--listings` (#4111).
1736 * HTML writer: export `tagWithAttributes`. This is a helper allowing
1737 other writers to create single HTML tags.
1739 * Let papersizes `a0`, `a1`, `a2`, ... be case-insensitive by
1740 converting the case as needed in LaTeX and ConTeXt writers.
1742 * Change `fixDisplayMath` from `Text.Pandoc.Writers.Shared`
1743 so that it no longer produces empty `Para`'s as an artifact.
1745 * `Text.Pandoc.Shared.blocksToInlines`: rewrote using builder.
1746 This gives us automatic normalization, so we don't get
1747 for example two consecutive Spaces.
1749 * Include default CSS for 'underline' class in HTML-based templates.
1751 * revealjs template: add `tex2jax` configuration for the
1752 math plugin. With the next release of reveal.js, this will
1753 fix the problem of `$`s outside of math contexts being
1754 interpreted as math delimiters (#4027).
1756 * `pandoc.lua` module for use in lua filters (Albert Krewinkel):
1758 + Add basic lua List module (#4099, #4081). The List module is
1759 automatically loaded, but not assigned to a global variable. It can be
1760 included in filters by calling `List = require 'List'`. Lists of blocks,
1761 lists of inlines, and lists of classes are now given `List` as a metatable,
1762 making working with them more convenient. E.g., it is now possible to
1763 concatenate lists of inlines using Lua's concatenation operator `..`
1764 (requires at least one of the operants to have `List` as a metatable):
1766 function Emph (emph)
1767 local s = {pandoc.Space(), pandoc.Str 'emphasized'}
1768 return pandoc.Span(emph.content .. s)
1769 end
1771 The `List` metatable is assigned to the tables which get passed to
1772 the constructors `MetaBlocks`, `MetaInline`, and `MetaList`. This
1773 enables the use of the resulting objects as lists.
1774 + `Lua/StackInstances`: push Pandoc and Meta via constructor.
1775 Pandoc and Meta elements are now pushed by calling the respective
1776 constructor functions of the pandoc Lua module. This makes serialization
1777 consistent with the way blocks and inlines are pushed to lua and allows
1778 to use List methods with the `blocks` value.
1779 + Add documentation for pandoc.List in `lua-filters.md`.
1781 * Use latest tagsoup. This fixes a bug in parsing HTML tags with
1782 `&` (but not a valid entity) following them (#4094, #4088).
1784 * Use skylighting 0.4.4.1, fixing the color of unmarked code text
1785 when `numberLines` is used (#4103).
1787 * Make `normalizeDate` more forgiving (Mauro Bieg, #4101), not
1788 requiring a leading 0 on single-digit days.
1790 * Fix `--help` output for `--highlight-style` to include `FILE` (Mauro
1791 Bieg, #4095).
1793 * Clearer deprecation warning for `--latexmathml, --asciimathml, -m`.
1794 Previously we only mentioned `--latexmathml`, even if `-m` was
1795 used.
1797 * Changelog: fix description of lua filters in 2.0 release
1798 (Albert Krewinkel). Lua filters were initially run *after* conventional
1799 (JSON) filters. However, this was changed later to make it easier to deal
1800 with files in the mediabag. The changelog is updated to describe that
1801 feature of the 2.0 release correctly.
1803 * Change Generic JSON instances to TemplateHaskell (Jasper Van der Jeugt,
1804 #4085). This reduces compile time and memory usage significantly.
1806 * `lua-filters.md`: Added tikz filter example.
1808 * Create alternative zip file for macOS binaries.
1810 * Create alternative zip file for Windows binaries.
1812 * Update INSTALL.md since we now provide zips for binaries.
1814 * Relax `http-types` dependency (Justus Sagemüller, #4084).
1816 * Add `epub.md`, `getting-started.md` to docs. These used to live in
1817 the website repo.
1819 * Add `packages` target to Makefile.
1821 * Bump bounds for binary, http-types, tasty-hunit
1823pandoc (2.0.3)
1825 * Lua filters: preload text module (Albert Krewinkel, #4077).
1826 The `text` module is preloaded in lua. The module contains some UTF-8
1827 aware string functions, implemented in Haskell. The module is loaded on
1828 request only, e.g.:
1830 text = require 'text'
1831 function Str (s)
1832 s.text = text.upper(s.text)
1833 return s
1834 end
1836 * Allow table-like access to attributes in lua filters (Albert Krewinkel,
1837 #4071). Attribute lists are represented as associative lists in Lua. Pure
1838 associative lists are awkward to work with. A metatable is attached to
1839 attribute lists, allowing to access and use the associative list as if
1840 the attributes were stored in as normal key-value pair in table.
1841 Note that this changes the way `pairs` works on attribute lists. Instead
1842 of producing integer keys and two-element tables, the resulting iterator
1843 function now returns the key and value of those pairs. Use `ipairs` to
1844 get the old behavior. Warning: the new iteration mechanism only works if
1845 pandoc has been compiled with Lua 5.2 or later (current default: 5.3).
1847 * Text.Pandoc.Parsing.uri: allow `&` and `=` as word characters (#4068).
1848 This fixes a bug where pandoc would stop parsing a URI with an
1849 empty attribute: for example, `&a=&b=` wolud stop at `a`.
1850 (The uri parser tries to guess which punctuation characters
1851 are part of the URI and which might be punctuation after it.)
1853 * Introduce `HasSyntaxExtensions` typeclass (Alexander Krotov, #4074).
1855 + Added new `HasSyntaxExtensions` typeclass for `ReaderOptions` and
1856 `WriterOptions`.
1857 + Reimplemented `isEnabled` function from `Options.hs` to accept both
1858 `ReaderOptions` and `WriterOptions`.
1859 + Replaced `enabled` from `CommonMark.hs` with new `isEnabled`.
1861 * Add `amuse` extension (Alexander Krotov) to enable Amuse wiki
1862 behavior for `muse`. New `Ext_amuse` constructor for
1863 `Extension`. Note: this is switched on by default; for
1864 Emacs behavior, use `muse-amuse`.
1866 * Muse reader (Alexander Krotov):
1868 + Count only one space as part of list item marker.
1869 + Produce SoftBreaks on newlines. Now wrapping can be preserved
1870 with `--wrap=preserve`.
1871 + Add Text::Amuse footnote extensions. Footnote end is indicated by
1872 indentation, so footnotes can be placed anywhere in the text,
1873 not just at the end of it.
1874 + Accept Emacs Muse definition lists when `-amuse`.
1875 Emacs Muse does not require indentation.
1877 * HTML reader:
1879 + Ensure we don't produce level 0 headers (#4076), even for chapter
1880 sections in epubs. This causes problems because writers aren't set
1881 up to expect these.
1882 + Allow spaces after `\(` and before `\)` with `tex_math_single_backslash`.
1883 Previously `\( \frac{1}{a} < \frac{1}{b} \)` was not parsed as math in
1884 `markdown` or `html` `+tex_math_single_backslash`.
1885 + Parse div with class `line-block` as LineBlock.
1886 + Don't fail with block-level content in figcaption (Mauro Bieg, #4183).
1888 * MANUAL: clarify that math extensions work with HTML.
1889 Clarify that `tex_math_dollars` and `tex_math_single_backslash`
1890 will work with HTML as well as Markdown.
1892 * Creole reader: Fix performance issue for longer lists (Sascha Wilde,
1893 #4067).
1895 * RST reader: better support for 'container' directive (#4066).
1896 Create a div, incorporate name attribute and classes.
1898 * LaTeX reader:
1900 + Support column specs like `*{2}{r}` (#4056). This is equivalent to
1901 `rr`. We now expand it like a macro.
1902 + Allow optional args for parbox (#4056).
1903 + Allow optional arguments on `\footnote` (#4062).
1905 * EPUB writer: Fixed path for cover image (#4069). It was previously
1906 `media/media/imagename`, and should have been `media/imagename`.
1908 * Markdown writer: fix bug with doubled footnotes in grid tables
1909 (#4061).
1911 * LaTeX template: include natbib/biblatex after polyglossia (#4073).
1912 Otherwise we seem to get an error; biblatex wants polyglossia
1913 language to be defined.
1915 * Added examples to lua filters documentation.
1918pandoc (2.0.2)
1920 * Deprecated ancient HTML math methods: `--latexmathml`, `--gladtex`,
1921 `--mimetex`, `--jsmath`.
1923 * Fixed URIs in `data/jats.csl`. They were being rendered twice,
1924 leading to invalid XML in default JATS output with pandoc-citeproc.
1926 * `lua-filters.md`: use real-world man page filter as example.
1928 * Add lua filter functions `walk_inline` and `walk_block`
1929 in the pandoc module, to apply filters inside particular
1930 inline and block elements.
1932 * Refactored some code from `Text.Pandoc.Lua.PandocModule`
1933 into new internal module `Text.Pandoc.Lua.Filter`.
1935 * Markdown reader:
1937 + Allow fenced code blocks to be indented 1-3 spaces (#4011).
1938 This brings our handling of them into alignment with CommonMark's.
1939 + Fix YAML metadata with "chomp" (`|-`). Previously if a
1940 YAML block under `|-` contained a blank line, pandoc would
1941 not parse it as metadata.
1943 * Removed `etc.` from abbreviations file. Often `etc.` ends a
1944 sentence, and we want the period to be treated as a
1945 sentence-ending period.
1947 * Fix regression with `--metadata` (#4054). Values specified with
1948 `--metadata` should replace a metadata value set in the document
1949 itself, rather than creating a list including a new value.
1951 * EPUB writer:
1953 + Fix EPUB OCF structure. #3720 had been improperly implemented.
1954 + Fix modified paths for raw HTML tags (src, poster, etc.)
1955 (#4050, #4055). This had not been updated for the new EPUB
1956 container layout, with a separate text/ subdirectory.
1957 + Fix image paths with empty `--epub-subdirectory`.
1959 * Miscellaneous code cleanup (Alexander Krotov).
1961 * Use pandoc-types 1.17.3, which adds `Walkable` instances
1962 for `[Block] Block` and `[Inline] Inline`.
1964 * Remove obsolete `stack.full.yaml` (#4052).
1966 * Change to using pandoc-citeproc 0.12.1 in binary packages.
1968 * Consolidate math output method documentation (#4049, Mauro Bieg).
1970 * `MANUAL.txt`: fix header level of "Extension: emoji" (Albert Krewinkel).
1972 * Use lua filter to generate man page from `MANUAL.txt`, replacing old
1973 Haskell filters. This is easier and faster.
1975 * Improved `INSTALL.md`.
1977 * Update commands to extract deb archive on Linux (#4043, Salim B).
1980pandoc (2.0.1.1)
1982 * Improved fix to #3989 (parsing of HTML tags containing
1983 `>` in an attribute or comment). The previous fix (in 2.0.1) only
1984 worked in certain cases.
1986 * FB2 writer (Alexander Krotov):
1988 + Add `unrecognised` genre to `<title-info>`
1989 (Alexander Krotov). XML schema requires at least one genre.
1990 + Remove `<annotation>` from `<body>`.
1992 * CommonMark writer: fix strikethrough for `gfm` (#4038).
1994 * Use texmath 0.10, which adds support for a wider range of
1995 symbols and fixes default column alignments in MathML
1996 and OMML.
1998 * Highlighting fixes, using skylighting 0.4.3.2:
2000 + Fix invalid CSS.
2001 + Support `lineAnchors` (or `line-anchors`) in HTML code blocks.
2002 + Ensure that code lines don't get duplicate identifiers (#4031).
2003 The line identifiers are built using the code block's identifier
2004 as a prefix. If the code block has null identifier, we use
2005 `cb1`, `cb2`, etc.
2007 * Added a few abbreviations to `data/abbreviations`,
2008 and sorted the list (#3984, Wandmalfarbe).
2010 * Improved support for columns in HTML writer (#4028).
2012 + Remove `width` attribute from the `div`.
2013 + Remove space between `<div class="column">` elements,
2014 since this prevents columns whose widths sum to 100%
2015 (the space takes up space).
2016 + Move as much as possible of the CSS to the template.
2017 + Ensure that all the HTML-based templates (including epub)
2018 contain the CSS for columns.
2019 + Columns default to 50% width unless they are given a width
2020 attribute. So if you want two equal-width columns, you
2021 can use a div with class `column` and no `width` attribute.
2023 * SelfContained: use `base64` for css links with media attribute (#4026).
2024 This fixes `--self-contained` with S5.
2026 * Improve `pandoc-template-mode.el` (Vaclav Haisman).
2028 * Issue INFO, not WARNING, when a .sty file cannot be
2029 read in LaTeX reader. It is normally not an issue requiring
2030 a fix from the user if .sty files are not found.
2032 * INSTALL.md: MacOS instructions needed xar -f (adam234).
2034 * MANUAL.txt:
2036 + Clarify that --setext-headers doesn't affect gfm output (#4035).
2037 + Clarify what is needed to open and close a div in `fenced_divs`
2038 (#4039, Tristano Ajmone).
2039 + Removed reference to `default.beamer` in docs (#4024).
2040 Also added mention of other templates affecting PDF output
2041 with different settings.
2043pandoc (2.0.1)
2045 * Fixed regression in parsing of HTML comments in markdown and other
2046 non-HTML formats (`Text.Pandoc.Readers.HTML.htmlTag`) (#4019).
2047 The parser stopped at the first `>` character, even if it wasn't
2048 the end of the comment.
2050 * Creole reader (Sascha Wilde):
2052 + Fix some minor typos and formatting.
2053 + Add additional test on nowiki-block after para.
2054 + Fix lists with trailing white space.
2056 * LaTeX reader: handle `%` comment right after command.
2057 For example, `\emph%`.
2059 * Markdown reader: make sure fenced div closers work in lists.
2060 Previously the following failed:
2062 ::: {.class}
2063 1. one
2064 2. two
2065 :::
2067 and you needed a blank line before the closing `:::`.
2069 * Make `fenced_divs` affect the Markdown writer. If `fenced_divs` is
2070 enabled, Divs will be rendered as fenced divs.
2072 * LaTeX/Beamer writer: support "blocks" inside columns and other Divs
2073 (#4016).
2075 * HTML Writer: consistently use dashed class-names (Mauro Bieg, #3556).
2076 Note: this change may require some changes in CSS rules.
2077 `footnoteRef` has become `footnote-ref`, `titleslide` has
2078 become `title-slide`, and `footnoteBack` has become `footnote-back`.
2080 * JATS writer: Properly pass through author metadata (#4020).
2082 * FB2 writer (Alexander Krotov):
2084 + Write blocks outside of `<p>` in definitions.
2085 + Make bullet lists consistent with ordered lists, repeating
2086 the marker for the outer list rather than indenting sublists,
2087 since indentation does not work in readers.
2088 + Add new style FB2 tests.
2090 * `Text.Pandoc.ImageSize`: Add `Millimeter` constructor to `Dimension`
2091 (#4012) [API change]. Now sizes given in 'mm' are no longer converted
2092 to 'cm'.
2094 * Revise documentation of small caps syntax (Andrew Dunning, #4013).
2096 * Fix broken reference links in manual (Andrew Dunning, #4014)
2098 * Fixed example of slide columns structure in changelog (#4015).
2099 Also documented this feature in MANUAL.txt.
2102pandoc (2.0.0.1)
2104 * EPUB writer:
2106 + Fixed filepaths for nonstandard epub-subdirectory values.
2107 + Ensure that epub2 is recognized as a non-text format,
2108 so that a template is used.
2109 + Don't include "prefix" attribute for ibooks for epub2.
2110 It doesn't validate.
2111 + Fix stylesheet paths; previously we had an incorrect
2112 stylesheet path for the cover page and nav page.
2114 * LaTeX reader:
2116 + Insert space when needed in macro expansion (#4007).
2117 Sometimes we need to insert a space after a control sequence
2118 to prevent it merging with a following letter.
2119 + Allow unbraced arguments for macros (#4007).
2120 + Allow body of macro definition to be unbraced (#4007).
2122 * Linux package build: ensure that pandoc-citeproc is statically linked.
2124 * trypandoc: add native, ms.
2126pandoc (2.0)
2128 [new features]
2130 * New output format `ms` (groff ms). Complete support, including
2131 tables, math, syntax highlighting, and PDF bookmarks. The writer uses
2132 texmath's new eqn writer to convert math to eqn format, so a ms file
2133 produced with this writer should be processed with `groff -ms -e` if
2134 it contains math.
2136 * New output format `jats` (Journal Article Tag Suite). This is an XML
2137 format used in archiving and publishing articles. Note that a
2138 URI-encoded CSL stylesheet (`data/jats.csl`) is added automatically
2139 unless a stylesheet is specified using `--css`.
2141 * New output format `gfm` (GitHub-flavored CommonMark) (#3841).
2142 This uses bindings to GitHub's fork of cmark, so it should parse
2143 gfm exactly as GitHub does (excepting certain postprocessing
2144 steps, involving notifications, emojis, etc.). `markdown_github`
2145 has been deprecated in favor of `gfm`.
2147 * New output format `muse` (Emacs Muse) (Alexander Krotov, #3489).
2149 * New input format `gfm` (GitHub-flavored CommonMark) (#3841).
2150 This uses bindings to GitHub's fork of cmark. `markdown_github`
2151 has been deprecated in favor of `gfm`.
2153 * New input format `muse` (Emacs Muse) reader (Alexander Krotov, #3620).
2155 * New input format `tikiwiki` (TikiWiki markup) (rlpowell, #3800).
2157 * New input format `vimwiki` (Vimwiki markup) (Yuchen Pei, #3705).
2158 Note that there is a new data file, `data/vimwiki.css`, which can
2159 be used to display the HTML produced by this reader and
2160 pandoc's HTML writer in the style of vimwiki's own HTML
2161 export.
2163 * New input format `creole` (Creole 1.0) (#3994, Sascha Wilde).
2165 * New syntax for Divs, with `fenced_divs` extension enabled by
2166 default (#168). This gives an attractive, plain-text way to create
2167 containers for block-level content.
2169 * Added new syntax for including raw content in any output format,
2170 enabled by the `raw_attribute` extension (which is on by default
2171 for `markdown` and `multimarkdown`). The syntax is the same as
2172 for fenced code blocks or code inlines, only with `{=FORMAT}` for
2173 attributes, where `FORMAT` is the name of the output format
2174 (e.g., `ms`, `html`).
2176 * Implement multicolumn support for slide formats (#1710).
2177 The structure expected is:
2179 :::::::::::::: {.columns}
2180 ::: {.column width="40%"}
2181 contents...
2182 :::
2183 ::: {.column width="60%"}
2184 contents...
2185 :::
2186 ::::::::::::::
2188 Support has been added for beamer and all HTML slide formats.
2190 * Allows line comments in templates, beginning with `$--` (#3806).
2191 (Requires doctemplates 0.2.1.)
2193 * Add `--eol=crlf|lf|native` flag and writer option to control line endings
2194 (Stefan Dresselhaus, #3663, #2097).
2196 * Add `--log` option to save log messages in JSON format to a file (#3392).
2198 * Add `--request-header` option, to set request headers when pandoc
2199 makes HTTP requests to fetch external resources. For example:
2200 `--request-header User-Agent:blah`.
2202 * Added lua filters (Albert Krewinkel, #3514). The new `--lua-filter`
2203 option works like `--filter` but takes pathnames of special lua filters
2204 and uses the lua interpreter baked into pandoc, so that no external
2205 interpreter is needed. Note that lua filters are all applied before
2206 regular filters, regardless of their position on the command line.
2207 For documentation of lua filters, see `doc/lua-filters.md`.
2209 * Set `PANDOC_READER_OPTIONS` in environment where filters are run.
2210 This contains a JSON representation of `ReaderOptions`, so filters
2211 can access it.
2213 * Support creation of pdf via groff `ms` and pdfroff.
2214 `pandoc -t ms -o output.pdf input.txt`.
2216 * Support for PDF generation via HTML and `weasyprint` or `prince`
2217 (Mauro Bieg, #3909). `pandoc -t html5 -o output.pdf --pdf-engine=prince`.
2219 * Added `--epub-subdirectory` option (#3720). This specifies the
2220 subdirectory in the OCF container that holds the EPUB specific content.
2221 We now put all EPUB related content in an `EPUB/` subdirectory by default
2222 (later this will be configurable).
2224 ```
2225 mimetype
2226 META-INF/
2227 com.apple.ibooks.display-options.xml
2228 container.xml
2229 EPUB/ <<--configurable-->>
2230 fonts/ <<--static-->>
2231 font.otf
2232 media/ <<--static-->>
2233 cover.jpg
2234 fig1.jpg
2235 styles/ <<--static-->>
2236 stylesheet.css
2237 content.opf
2238 toc.ncx
2239 text/ <<--static-->>
2240 ch001.xhtml
2241 ```
2243 * Added `--resource-path=SEARCHPATH` command line option (#852).
2244 SEARCHPATH is separated by the usual character, depending on OS
2245 (: on unix, ; on windows). Default resource path is just working
2246 directory. However, the working directory must be explicitly
2247 specified if the `--resource-path` option is used.
2249 * Added `--abbreviations=FILE` option for custom abbreviations file
2250 (#256). Default abbreviations file (`data/abbreviations`) contains
2251 a list of strings that will be recognized by pandoc's
2252 Markdown parser as abbreviations. (A nonbreaking space will
2253 be inserted after the period, preventing a sentence space in
2254 formats like LaTeX.) Users can override the default by putting a file
2255 abbreviations in their user data directory (`~/.pandoc` on *nix).
2257 * Allow a theme file as argument to `--highlight-style`.
2258 Also include a sample, `default.theme`, in `data/`.
2260 * Allow `--syntax-definition` option for dynamic loading of syntax
2261 highlighting definitions (#3334).
2263 * Lists in `markdown` by default now use the CommonMark variable
2264 nesting rules (#3511). The indentation required for a block-level
2265 item to be included in a list item is no longer fixed, but is
2266 determined by the first line of the list item. To be included in
2267 the list item, a block must be indented to the level of the first
2268 non-space content after the list marker. Exception: if are 5 or more
2269 spaces after the list marker, then the content is interpreted as an
2270 indented code block, and continuation paragraphs must be indented
2271 two spaces beyond the end of the list marker. See the CommonMark
2272 spec for more details and examples.
2274 Documents that adhere to the four-space rule should, in most cases,
2275 be parsed the same way by the new rules. Here are some examples
2276 of texts that will be parsed differently:
2278 - a
2279 - b
2281 will be parsed as a list item with a sublist; under the four-space
2282 rule, it would be a list with two items.
2284 - a
2286 code
2288 Here we have an indented code block under the list item, even though it
2289 is only indented six spaces from the margin, because it is four spaces
2290 past the point where a continuation paragraph could begin. With the
2291 four-space rule, this would be a regular paragraph rather than a code
2292 block.
2294 - a
2296 code
2298 Here the code block will start with two spaces, whereas under
2299 the four-space rule, it would start with `code`. With the four-space
2300 rule, indented code under a list item always must be indented eight
2301 spaces from the margin, while the new rules require only that it
2302 be indented four spaces from the beginning of the first non-space
2303 text after the list marker (here, `a`).
2305 This change was motivated by a slew of bug reports from people
2306 who expected lists to work differently (#3125, #2367, #2575, #2210,
2307 #1990, #1137, #744, #172, #137, #128) and by the growing prevalance
2308 of CommonMark (now used by GitHub, for example). Those who
2309 prefer the old behavior can use `-f markdown+four_space_rule`.
2311 * Added `four_space_rule` extension. This triggers the old pandoc
2312 parsing rule for content nested under list items (the "four space
2313 rule").
2315 * Added `spaced_reference_links` extension (#2602). It allows whitespace
2316 between the two parts of a reference link: e.g.
2318 [a] [b]
2320 [b]: url
2322 This was previously enabled by default; it is now forbidden by default.
2324 * Add `space_in_atx_header` extension (#3512). This is enabled by default
2325 in pandoc and GitHub markdown but not the other flavors.
2326 This requires a space between the opening #'s and the header
2327 text in ATX headers (as CommonMark does but many other implementations
2328 do not). This is desirable to avoid falsely capturing things like
2330 #hashtag
2332 or
2334 #5
2336 * Add `sourcefile` and `outputfile` template variables (Roland Hieber,
2337 #3431).
2339 * Allow ibooks-specific metadata in epubs (#2693). You can now have
2340 the following fields in your YAML metadata, and it will be treated
2341 appropriately in the generated EPUB:
2343 ```
2344 ibooks:
2345 version: 1.3.4
2346 specified-fonts: false
2347 ipad-orientation-lock: portrait-only
2348 iphone-orientation-lock: landscape-only
2349 binding: true
2350 scroll-axis: vertical
2351 ```
2354 [behavior changes]
2356 * Reader functions no longer presuppose that CRs have been
2357 stripped from the input. (They strip CRs themselves, before
2358 parsing, to simplify the parsers.)
2360 * Added support for translations (localization) (#3559).
2361 Currently this only affects the LaTeX reader, for things
2362 like `\figurename`. Translation data files for 46 languages
2363 can be found in `data/translations`.
2365 * Make `--ascii` work with DocBook output too.
2367 * Rename `--latex-engine` to `--pdf-engine`,
2368 and `--latex-engine-opt` to `--pdf-engine-opt`.
2370 * Removed `--parse-raw` and `readerParseRaw`. These were confusing.
2371 Now we rely on the `+raw_tex` or `+raw_html` extension with latex or html
2372 input. Thus, instead of `--parse-raw -f latex` we use `-f latex+raw_tex`,
2373 and instead of `--parse-raw -f html` we use `-f html+raw_html`.
2375 * With `--filter` R filters are now recognized, even if they are
2376 not executable (#3940, #3941, Andrie de Vries).
2378 * Support SVG in PDF output, converting with `rsvg2pdf` (#1793).
2380 * Make epub an alias for epub3, not epub2.
2382 * Removed `--epub-stylesheet`; use `--css` instead (#3472, #847).
2383 Multiple stylesheets may be used. Stylesheets will be taken both from
2384 `--css` and from the `stylesheet` metadata field (which can contain
2385 either a file path or a list of them).
2387 * `--mathml` and MathML in HTMLMathMethod no longer take an argument.
2388 The argument was for a bridge JavaScript that used to be necessary
2389 in 2004. We have removed the script already.
2391 * `--katex` improvements. The latest version is used, and the
2392 autoload script is loaded by default.
2394 * Change MathJax CDN default since old one is shutting down (#3544).
2395 Note: The new URL requires a version number, which we'll have
2396 to update manually in subsequent pandoc releases in order to
2397 take advantage of mathjax improvements.
2399 * `--self-contained`: don't incorporate elements with `data-external="1"`
2400 (#2656). You can leave an external link as it is by adding the attribute
2401 data-external="1" to the element. Pandoc will then not try to
2402 incorporate its content when `--self-contained` is used. This is
2403 similar to a feature already supported by the EPUB writer.
2405 * Allow `--extract-media` to work with non-binary input formats
2406 (#1583, #2289). If `--extract-media` is supplied with a non-binary
2407 input format, pandoc will attempt to extract the contents of all
2408 linked images, whether in local files, data: uris, or external uris.
2409 They will be named based on the sha1 hash of the contents.
2411 * Make `papersize: a4` work regardless of the case of `a4`.
2412 It is converted to `a4` in LaTeX and `A4` in ConTeXt.
2414 * Make `east_asian_line_breaks` affect all readers/writers (#3703).
2416 * Underlined elements are now treated consistently by readers
2417 (#2270, hftf); they are always put in a Span with class `underline`.
2418 This allows the user to treat them differently from other emphasis,
2419 using a filter. Docx, Org, Textile, Txt2Tags, and HTML readers
2420 have been changed.
2422 * Improved behavior of `auto_identifiers` when there are explicit ids
2423 (#1745). Previously only autogenerated ids were added to the list
2424 of header identifiers in state, so explicit ids weren't taken
2425 into account when generating unique identifiers. Duplicated
2426 identifiers could result. This simple fix ensures that explicitly given
2427 identifiers are also taken into account.
2429 * Use `table-of-contents` for contents of toc, make `toc` a boolean
2430 (#2872). Changed markdown, rtf, and HTML-based templates accordingly.
2431 This allows you to set `toc: true` in the metadata; this
2432 previously produced strange results in some output formats.
2433 For backwards compatibility, `toc` is still set to the
2434 toc contents. But it is recommended that you update templates
2435 to use `table-of-contents` for the toc contents and `toc`
2436 for a boolean flag.
2438 * Change behavior with binary format output to stdout.
2439 Previously, for binary formats, output to stdout was disabled
2440 unless we could detect that the output was being piped (and not
2441 sent to the terminal). Unfortunately, such detection is not
2442 possible on Windows, leaving windows users no way to pipe binary
2443 output. So we have changed the behavior in the following way:
2445 + Output to stdout is allowed when it can be determined that
2446 the output is being piped (on non-Windows platforms).
2447 + If the `-o` option is not used, binary output is never sent
2448 to stdout by default; instead, an error is raised.
2449 + If `-o -` is used, binary output is sent to stdout, regardless
2450 of whether it is being piped. This works on Windows too.
2452 * Better error behavior: uses of `error` have been replaced by
2453 raising of `PandocError`, which can be trapped and handled by the
2454 calling program.
2456 * Removed `hard_line_breaks` extension from `markdown_github` (#3594).
2457 GitHub has two Markdown modes, one for long-form documents like READMEs
2458 and one for short things like issue comments. In issue comments, a line
2459 break is treated as a hard line break. In README, wikis, etc., it is
2460 treated as a space as in regular Markdown. Since pandoc is more likely to
2461 be used to convert long-form documents from GitHub Markdown,
2462 `-hard_line_breaks` is a better default.
2464 * Include `backtick_code_blocks` extension in `mardkown_mmd` (#3637).
2466 * Escape `MetaString` values (as added with `-M/--metadata` flag) (#3792).
2467 Previously they would be transmitted to the template without any
2468 escaping. Note that `--M title='*foo*'` yields a different result from
2470 ---
2471 title: *foo*
2472 ---
2474 In the latter case, we have emphasis; in the former case, just
2475 a string with literal asterisks (which will be escaped
2476 in formats, like Markdown, that require it).
2478 * Allow `em`, `cm`, `in` for image height/width in HTML, LaTeX (#3450).
2480 * HTML writer: Insert `data-` in front of unsupported attributes. Thus,
2481 a span with attribute `foo` gets written to HTML5 with `data-foo`, so
2482 it is valid HTML5. HTML4 is not affected. This will allow us to use
2483 custom attributes in pandoc without producing invalid HTML. (With help
2484 from Wandmalfarbe, #3817.)
2486 * Plain writer: improved super/subscript rendering. We now
2487 handle more non-digit characters for which there are
2488 sub/superscripted unicode characters. When unicode
2489 sub/superscripted characters are not available, we use
2490 `_(..)` or `^(..)` (#3518).
2492 * Docbook, JATS, TEI writers: print INFO message when omitting interior
2493 header (#3750). This only applies to section headers inside list items,
2494 e.g., which were otherwise silently omitted.
2496 * Change to `--reference-links` in Markdown writer (#3701). With
2497 `--reference-location` of `section` or `block`, pandoc will now repeat
2498 references that have been used in earlier sections. The Markdown
2499 reader has also been modified, so that *exactly* repeated references
2500 do not generate a warning, only references with the same label but
2501 different targets. The idea is that, with references after every block,
2502 one might want to repeat references sometimes.
2504 * ODT/OpenDocument writer:
2506 + Support `lang` attribute (#1667).
2507 + Added support for `--toc` (#2836). Thanks to @anayrat.
2509 * Docx writer:
2511 + `lang` meta, see #1667 (Mauro Bieg, #3515).
2512 + Change `FigureWithCaption` to `CaptionedFigure` (iandol, #3658).
2513 + Use `Table` rather than `Table Normal` for table style (#3275).
2514 `Table Normal` is the default table style and can't be modified.
2515 + Pass through comments (#2994). We assume that comments are defined as
2516 parsed by the docx reader:
2518 I want <span class="comment-start" id="0" author="Jesse Rosenthal"
2519 date="2016-05-09T16:13:00Z">I left a comment.</span>some text to
2520 have a comment <span class="comment-end" id="0"></span>on it.
2522 We assume also that the id attributes are unique and properly
2523 matched between comment-start and comment-end.
2524 + Bookmark improvements. Bookmark start/end now surrounds content rather
2525 than preceding it. Bookmarks generated for Div with id
2526 (jgm/pandoc-citeproc#205).
2527 + Add `keywords` metadata to docx document properties (Ian).
2529 * RST writer: support unknown interpreted text roles by
2530 parsing them as `Span` with `role` attributes (#3407). This
2531 way they can be manipulated in the AST.
2533 * HTML writer:
2535 + Line block: Use class instead of style attribute (#1623). We now
2536 issue `<div class="line-block">` and include a default definition
2537 for `line-block` in the default templates, instead of hard-coding a
2538 `style` on the div.
2539 + Add class `footnoteBack` to footnote back references (Timm Albers).
2540 This allows for easier CSS styling.
2541 + Render SmallCaps as span with smallcaps class (#1592), rather than
2542 using a style attribute directly. This gives the user more flexibility
2543 in styling small caps in CSS.
2544 + With reveal.js we use `data-src` instead of `src` for images for
2545 lazy loading.
2546 + Special-case `.stretch` class for images in reveal.js (#1291).
2547 Now in reveal.js, an image with class `stretch` in a paragraph
2548 by itself will stretch to fill the whole screen, with no
2549 caption or figure environment.
2551 * Added warnings for non-rendered blocks to writers.
2553 * Writers now raise an error on template failure.
2555 * When creating a PDF via LaTeX, warn if the font is missing some
2556 characters (#3742).
2558 * Remove initial check for PDF-creating program (#3819).
2559 Instead, just try running it and raise the exception if it
2560 isn't found at that point. This improves things for users of Cygwin
2561 on Windows, where the executable won't be found by `findExecutable`
2562 unless `.exe` is added. The same exception is raised as before, but
2563 at a later point.
2565 * Readers issue warning for duplicate header identifiers (#1745).
2566 Autogenerated header identifiers are given suffixes so as not to clash
2567 with previously used header identifiers. But they may still coincide with
2568 an explicit identifier that is given for a header later in the document,
2569 or with an identifier on a div, span, link, or image. We now issue
2570 a warning in this case, so users can supply an explicit identifier.
2572 * CommonMark reader now supports `emoji`, `hard_line_breaks`, `smart`,
2573 and `raw_html` extensions.
2575 * Markdown reader:
2577 + Don't allow backslash + newline to affect block structure (#3730).
2578 Note that as a result of this change, the following, which formerly
2579 produced a header with two lines separated by a line break, will
2580 now produce a header followed by a paragraph:
2582 # Hi\
2583 there
2585 This may affect some existing documents that relied on
2586 this undocumented and unintended behavior. This change makes pandoc
2587 more consistent with other Markdown implementations, and with itself
2588 (since the two-space version of a line break doesn't work inside ATX
2589 headers, and neither version works inside Setext headers).
2592 * Org reader (Albert Krewinkel, unless noted):
2594 + Support `table.el` tables (#3314).
2595 + Support macros (#3401).
2596 + Support the `#+INCLUDE:` file inclusion mechanism (#3510).
2597 Recognized include types are `example`, `export`, `src`, and
2598 normal org file inclusion. Advanced features like line numbers
2599 and level selection are not implemented yet.
2600 + Interpret more meta value as inlines. The values of the following
2601 meta variables are now interpreted using org-markup instead of
2602 treating them as pure strings: `keywords` (comma-separated list of
2603 inlines), `subtitle` (inline values), `nocite` (inline values, can
2604 be repeated).
2605 + Support `\n` export option (#3940). This turns all newlines in the
2606 text into hard linebreaks.
2608 * RST reader:
2610 + Improved admonition support (#223). We no longer add an
2611 `admonition` class, we just use the class for the type of admonition,
2612 `note` for example. We put the word corresponding to the label in
2613 a paragraph inside a `Div` at the beginning of the admonition with
2614 class `admonition-title`. This is about as close as we can get to
2615 RST's own output.
2616 + Initial support of `.. table` directive. This allows adding captions
2617 to tables.
2618 + Support `.. line-block` directive. This is deprecated but may still
2619 be in older documents.
2620 + Support scale and align attributes of images (#2662).
2621 + Implemented implicit internal header links (#3475).
2622 + Support RST-style citations (#853). The citations appear at the end
2623 of the document as a definition list in a special div with id
2624 `citations`. Citations link to the definitions.
2625 + Recurse into bodies of unknown directives (#3432).
2626 In most cases it's better to preserve the content than
2627 to emit it. This isn't guaranteed to have good results;
2628 it will fail spectacularly for unknown raw or verbatim directives.
2629 + Handle chained link definitions (#262). For example,
2631 .. _hello:
2632 .. _goodbye: example.com
2634 Here both `hello` and `goodbye` should link to `example.com`.
2635 + Support anchors (#262). E.g.
2637 `hello`
2639 .. _hello:
2641 paragraph
2643 This is supported by putting "paragraph" in a `Div` with id `hello`.
2644 + Support `:widths:` attribute for table directive.
2645 + Implement csv-table directive (#3533). Most attributes are supported,
2646 including `:file:` and `:url:`.
2647 + Support unknown interpreted text roles by parsing them as Span
2648 with "role" attributes (#3407). This way they can be manipulated in
2649 the AST.
2651 * HTML reader: parse a span with class `smallcaps` as `SmallCaps`.
2653 * LaTeX reader:
2655 + Implemented `\graphicspath` (#736).
2656 + Properly handle column prefixes/suffixes. For example, in
2657 `\begin{tabular}{>{$}l<{$}>{$}l<{$} >{$}l<{$}}`
2658 each cell will be interpreted as if it has a `$`
2659 before its content and a `$` after (math mode).
2660 + Handle komascript `\dedication` (#1845). It now adds a
2661 `dedication` field to metadata. It is up to the user to supply
2662 a template that uses this variable.
2663 + Support all `\textXX` commands, where XX = `rm`, `tt`, `up`, `md`,
2664 `sf`, `bf` (#3488). Spans with a class are used when there is
2665 nothing better.
2666 + Expand `\newenvironment` macros (#987).
2667 + Add support for LaTeX subfiles package (Marc Schreiber, #3530).
2668 + Better support for subfigure package (#3577).
2669 A figure with two subfigures turns into two pandoc
2670 figures; the subcaptions are used and the main caption
2671 ignored, unless there are no subcaptions.
2672 + Add support for \vdots (Marc Schreiber, #3607).
2673 + Add basic support for hyphenat package (Marc Schreiber, #3603).
2674 + Add basic `\textcolor` support (Marc Schreiber).
2675 + Add support for `tabularx` environment (Marc Schreiber, #3632).
2676 + Better handling of comments inside math environments (#3113).
2677 This solves a problem with commented out `\end{eqnarray}` inside
2678 an eqnarray (among other things).
2679 + Parse tikzpicture as raw verbatim environment if `raw_tex` extension
2680 is selected (#3692). Otherwise skip with a warning. This is better
2681 than trying to parse it as text!
2682 + Add `\colorbox` support (Marc Schreiber).
2683 + Set identifiers on Spans used for `\label`.
2684 + Have `\setmainlanguage` set `lang` in metadata.
2685 + Support etoolbox's `\ifstrequal`.
2686 + Support `plainbreak`, `fancybreak` et al from the memoir class
2687 (bucklereed, #3833).
2688 + Support `\let`. Also, fix regular macros so they're expanded at the
2689 point of use, and NOT also the point of definition. `\let` macros,
2690 by contrast, are expanded at the point of definition. Added an
2691 `ExpansionPoint` field to `Macro` to track this difference.
2692 + Support simple `\def` macros. Note that we still don't support
2693 macros with fancy parameter delimiters, like `\def\foo#1..#2{...}`.
2694 + Support \chaptername, \partname, \abstractname, etc. (#3559,
2695 obsoletes #3560).
2696 + Put content of `\ref`, `\label`, `\eqref` commands into `Span` with
2697 attributes, so they can be handled in filters (Marc Schreiber, #3639)
2698 + Add Support for `glossaries` and `acronym` package (Marc Schreiber,
2699 #3589). Acronyms are not resolved by the reader, but acronym and
2700 glossary information is put into attributes on Spans so that they
2701 can be processed in filters.
2702 + Use `Link` instead of `Span` for `\ref`. This makes more sense
2703 semantically and avoids unnecessary `Span [Link]` nestings when
2704 references are resolved.
2705 + Rudimentary support for `\hyperlink`.
2706 + Support `\textquoteleft|right`, `\textquotedblleft|right` (#3849).
2707 + Support `\lq`, `\rq`.
2708 + Implement `\newtoggle`, `\iftoggle`, `\toggletrue|false` from etoolbox
2709 (#3853).
2710 + Support `\RN` and `\Rn`, from biblatex (bucklereed, #3854).
2711 + Improved support for `\hyperlink`, `\hypertarget` (#2549).
2712 + Support `\k` ogonek accent.
2713 + Improve handling of accents. Handle ogonek, and fall back correctly
2714 with forms like `\"{}`.
2715 + Better support for ogonek accents.
2716 + Support for `\faCheck` and `\faClose` (Marc Schreiber, #3727).
2717 + Support for `xspace` (Marc Schreiber, #3797).
2718 + Support `\setmainlanguage` or `\setdefaultlanguage` (polyglossia)
2719 and `\figurename`.
2720 + Better handling of `\part` in LaTeX (#1905). Now we parse chapters as
2721 level 0 headers, and parts as level -1 headers. After parsing, we
2722 check for the lowest header level, and if it's less than 1 we bump
2723 everything up so that 1 is the lowest header level. So `\part` will
2724 always produce a header; no command-line options are needed.
2725 + Add block version of `\textcolor` (Marc Schreiber).
2726 + `\textcolor` works as inline and block command (Marc Schreiber).
2727 + `\textcolor` will be parse as span at the beginning of a paragraph
2728 (Marc Schreiber).
2729 + Read polyglossia/babel `\text(LANG){...}` (bucklereed)
2730 + Improved handling of include files in LaTeX reader (#3971).
2731 Previously `\include` wouldn't work if the included file
2732 contained, e.g., a begin without a matching end.
2733 + Support `\expandafter` (#3983).
2734 + Handle `\DeclareRobustCommand` (#3983). Currently it's just treated
2735 as a synonym for `\newcommand`.
2736 + Handle `\lettrine` (Mauro Bieg).
2738 * Math improvements due to updates in texmath:
2740 + Improved handling of accents and upper/lower delimiters.
2741 + Support for output in GNU eqn format (used with *roff).
2742 + Allow `\boldsymbol` + a token without braces, and similarly
2743 with other styling commands.
2744 + Improve parsing of `\mathop` to allow multi-character operator names.
2745 + Add thin space after math operators when "faking it with
2746 unicode."
2748 * `walk` is now used instead of `bottomUp` in the `ToJSONFilter`
2749 instance for `a -> [a]` (pandoc-types). Note that behavior
2750 will be slightly different, since `bottomUp`'s treatment of
2751 a function `[a] -> [a]` is to apply it to each sublist of a
2752 list, while walk applies it only to maximal sublists.
2753 Usually the latter behavior is what is wanted, and the
2754 former can be simulated when needed. But there may be
2755 existing filters that need to be rewritten in light of the
2756 new behavior. Performance should be improved.
2758 * There are some changes to syntax highlighting due to revisions
2759 in the `skylighting` library:
2761 + Support for `powershell` has been added, and many syntax
2762 definitions have been updated.
2763 + Background colors have been added to the `kate` style.
2764 + The way highlighted code blocks are formatted in HTML has
2765 been changed (David Baynard), in ways that may require
2766 changes in hard-coded CSS affecting highlighting.
2767 (If you haven't included hard-coded highlighting CSS in
2768 your template, you needn't change anything.)
2771 [API changes]
2773 * New module `Text.Pandoc.Class` (Jesse Rosenthal, John MacFarlane).
2774 This contains definitions of the `PandocMonad` typeclass, the
2775 `PandocIO` and `PandocPure` monads, and associated functions.
2777 * Changed types of all writers and readers.
2779 + We now use `Text` instead of `String` in the interface (#3731).
2780 (We have not yet changed the internals of most readers to work
2781 with `Text`, but making this change in the API now opens up a
2782 path to doing that.)
2783 + The result is now of form `m a` with constraint `PandocMonad m`.
2784 Readers and writers can be combined to form monadic values which
2785 can be run using either `runIO` or `runPure`. If `runIO` is used,
2786 then both readers and writers will be able to do IO when needed
2787 (for include files, for example); if `runPure` is used,
2788 then the functions are pure and will not touch IO.
2789 + Where previously you used
2790 `writeRST def (readMarkdown def "[foo](url)")`, now you
2791 would use
2792 `runPure $ readMarkdown def (pack "[foo](url)") >>= writeRST def`.
2794 * New module `Text.Pandoc.Readers` (Albert Krewinkel). This
2795 contains reader helper functions formerly defined in the
2796 top-level `Text.Pandoc` module.
2798 + Changed `StringReader` -> `TextReader`.
2799 + `getReader` now returns a pair of a reader and
2800 `Extensions`, instead of building the extensions into the
2801 reader (#3659). The calling code must explicitly set
2802 `readerExtensions` using the `Extensions` returned. The
2803 point of the change is to make it possible for the calling
2804 code to determine what extensions are being used.
2806 * New module `Text.Pandoc.Writers` (Albert Krewinkel).
2807 This contains writer helper functions formerly defined in the
2808 top-level `Text.Pandoc` module.
2810 + Changed `StringWriter` -> `TextWriter`.
2811 + `getWriter` now returns a pair of a reader and
2812 `Extensions`, instead of building the extensions into the
2813 reader (#3659). The calling code must explicitly set
2814 `readerExtensions` using the `Extensions` returned. The
2815 point of the change is to make it possible for the calling
2816 code to determine what extensions are being used.
2818 * New module `Text.Pandoc.Lua`, exporting `runLuaFilter` (Albert Krewinkel,
2819 #3514).
2821 * New module `Text.Pandoc.App`. This abstracts out the functionality
2822 of the command line program (`convertWithOpts`), so it can be reproduced
2823 e.g. in a desktop or web application. Instead of exiting, we throw errors
2824 (#3548), which are caught (leading to exit) in pandoc.hs, but allow other
2825 users of `Text.Pandoc.App` to recover. `pandoc.hs` is now a 2-liner.
2826 The module also exports some utility functions for parsing options
2827 and running filters.
2829 * New module `Text.Pandoc.Logging` (exported module) (#3392).
2830 This now contains the `Verbosity` definition previously in
2831 `Text.Pandoc.Options`, as well as a new `LogMessage` datatype that will
2832 eventually be used instead of raw strings for warnings. This will enable
2833 us, among other things, to provide machine-readable warnings if desired.
2834 Include ToJSON instance and showLogMessage. This gives us the possibility
2835 of both machine-readable and human-readable output for log messages.
2837 * New module `Text.Pandoc.BCP47`, with `getLang`, `Lang(..)`, `parseBCP47`.
2839 * New module `Text.Pandoc.Translations`, exporting `Term`,
2840 `Translations`, `readTranslations`.
2842 * New module `Text.Pandoc.Readers.LaTeX.Types', exporting `Macro`, `Tok`,
2843 `TokType`, `Line`, `Column`.
2845 * `Text.Pandoc.Error`: added many new constructors for `PandocError`.
2847 * Expose some previously private modules (#3260). These are often
2848 helpful to people writing their own reader or writer modules:
2850 + `Text.Pandoc.Writers.Shared`
2851 + `Text.Pandoc.Parsing`
2852 + `Text.Pandoc.Asciify`
2853 + `Text.Pandoc.Emoji`
2854 + `Text.Pandoc.ImageSize`
2855 + `Text.Pandoc.Highlighting`
2857 * New module `Text.Pandoc.Extensions` (Albert Krewinkel):
2858 Extension parsing and processing functions were defined in the top-level
2859 `Text.Pandoc` module. These functions are moved to the Extensions
2860 submodule as to enable reuse in other submodules.
2862 * Add `Ext_raw_attribute` constructor for `Extension`.
2864 * Add `Ext_fenced_divs` constructor for `Extension'.
2866 * Add `Ext_four_space_rule` constructor in `Extension`.
2868 * Add `Ext_gfm_auto_identifiers` constructor for `Extension`.
2870 * Add `Monoid` instance for `Extensions`.
2872 * Add `Text.Pandoc.Writers.Ms`, exporting `writeMs`.
2874 * Add `Text.Pandoc.Writers.JATS`, exporting `writeJATS`.
2876 * Add `Text.Pandoc.Writers.Muse`, exporting `writeMuse`.
2878 * Add `Text.Pandoc.Readers.Muse`, exporting `readMuse`.
2880 * Add `Text.Pandoc.Readers.TikiWiki`, exporting `readTikiWiki`.
2882 * Add `Text.Pandoc.Readers.Vimwiki`, exporting `readVimwiki`.
2884 * Add `Text.Pandoc.Readers.Creole`, exporting `readCreole`.
2886 * Export `setVerbosity` from `Text.Pandoc`.
2888 * `Text.Pandoc.Pretty`: Add `Eq` instance for `Doc`.
2890 * `Text.Pandoc.XML`: `toEntities`: changed type to `Text -> Text`.
2892 * `Text.Pandoc.UTF8`:
2894 + Export `fromText`, `fromTextLazy`, `toText`, `toTextLazy`.
2895 Define `toString`, `toStringLazy` in terms of them.
2896 + Add new functions parameterized on `Newline`: `writeFileWith`,
2897 `putStrWith`, `putStrLnWith`, `hPutStrWith`, `hPutStrLnWith`.
2899 * `Text.Pandoc.MediaBag`: removed `extractMediaBag`.
2901 * `Text.Pandoc.Highlighting`:
2903 + `highlighting` now returns an Either rather than Maybe.
2904 This allows us to display error information returned by the skylighting
2905 library. Display a warning if the highlighting library throws an error.
2906 + Add parameter for `SyntaxMap` to `highlight`.
2908 * `Text.Pandoc.Writers.Math`:
2910 + Export `defaultMathJaxURL`, `defaultKaTeXURL`. This will ensure that
2911 we only need to update these in one place.
2913 * `Text.Pandoc.SelfContained`:
2915 + Removed `WriterOptions` parameter from `makeSelfContained`.
2916 + Put `makeSelfContained` in PandocMonad instead of IO. This removes
2917 the need to pass MediaBag around and improves exceptions. It also
2918 opens up the possibility of using makeSelfContained purely.
2919 + Export `makeDataURI`.
2921 * `Text.Pandoc.ImageSize`:
2923 + Export `lengthToDim`, new function `scaleDimension`.
2924 + Export `inEm` from ImageSize (#3450).
2925 + Change `showFl` and `show` instance for `Dimension` so
2926 extra decimal places are omitted.
2927 + Added `Em` as a constructor of `Dimension`.
2928 + Add `WriterOptions` parameter to `imageSize` signature (Mauro Bieg).
2930 * `Text.Pandoc.Templates`:
2932 + Change type of `renderTemplate'`. Now it runs in `PandocMonad`
2933 and raises a proper `PandocTemplateError` if there are problems, rather
2934 than failing with uncatchable `error`.
2935 + Change signature of `getDefaultTemplate`. Now it runs in any instance
2936 of `PandocMonad`, and returns a `String` rather than an `Either` value.
2937 And it no longer takes a `datadir` parameter, since this can be
2938 retrieved from `CommonState`.
2940 * `Text.Pandoc.Options`:
2942 + Added `writerEpubSubdirectory` to `WriterOptions` (#3720).
2943 The EPUB writer now takes its EPUB subdirectory from this option.
2944 + In `WriterOptions`, rename `writerLaTeXEngine` to `writerPdfEngine`
2945 and `writerLaTeXArgs` to `writerPdfArgs` (Mauro Bieg, #3909).
2946 + Add `writerSyntaxMap` to `WriterOptions`.
2947 + Removed `writerEpubStylesheet` from `WriterOptions`.
2948 + Remove `writerUserDataDir` from `WriterOptions`. It is now carried
2949 in `CommonState` in `PandocMonad` instances. (And thus it can be used
2950 by readers too.)
2951 + Changed `writerEpubMetadata` to a `Maybe String`.
2952 + Removed `readerApplyMacros` from `ReaderOptions`. Now we just check
2953 the `latex_macros` reader extension.
2954 + FromJSON/ToJSON instances for `ReaderOptions`.
2955 + In `HTMLMathMethod`, the `KaTeX` contsructor now takes only
2956 one string (for the KaTeX base URL), rather than two.
2957 + Removed `writerSourceURL` from `WriterOptions`. We now use
2958 `stSourceURL` in `CommonState`, which is set by `setInputFiles`.
2960 * `Text.Pandoc.Shared`:
2962 + `tabFilter` now takes a `Text`, not `String`.
2963 + `openURL`: Changed type from an Either. Now it will just raise
2964 an exception to be trapped later.
2965 + Remove `normalizeSpaces` (#1530).
2966 + Remove `warn`. (Use `report` from `Text.Pandoc.Class` instead.)
2967 + Export a new function `crFilter`.
2968 + Add `eastAsianLineBreakFilter` (previously in Markdown reader).
2969 + Provide custom `isURI` that rejects unknown schemes.
2970 (Albert Krewinkel, #2713). We also export the set of known
2971 `schemes`. The new function replaces the function of the same name
2972 from `Network.URI`, as the latter did not check whether a scheme is
2973 well-known. All official IANA schemes (as of 2017-05-22) are
2974 included in the set of known schemes. The four non-official schemes
2975 `doi`, `isbn`, `javascript`, and `pmid` are kept.
2976 + Remove `err`.
2977 + Remove `readDataFile`, `readDefaultDataFile`, `getReferenceDocx`,
2978 `getReferenceODT`. These now live in `Text.Pandoc.Class`,
2979 where they are defined in terms of `PandocMonad`
2980 primitives and have different signatures.
2981 + Remove `openURL`. Use `openURL` from `Text.Pandoc.Class` instead.
2982 + Add `underlineSpan`.
2984 * `Text.Pandoc.Readers.HTML`: export new `NamedTag` class.
2986 * `Text.Pandoc.Readers.Markdown`: remove `readDocxWithWarnings`.
2987 With the new API one can simply use `getLog` after running
2988 the reader.
2990 * `Text.Pandoc.Readers.LaTeX`: Changed types for `rawLaTeXInline`
2991 and `rawLaTeXBlock`. (Both now return a `String`, and they are
2992 polymorphic in state.)
2995 [bug fixes and under-the-hood improvements]
2997 * TEI writer: Added identifiers on `<div>` elements.
2999 * DokuWiki reader: Better handling for code block in list item (#3824).
3001 * Custom writer: Remove old preprocesesor conditionals (Albert Krewinkel).
3003 * ZimWiki writer: Removed internal formatting from note and table cells,
3004 because ZimWiki does not support it (Alex Ivkin, #3446).
3006 * MediaWiki writer:
3008 + Updated list of syntax highlighting languages (#3461).
3009 Now `r` gets you `<source>` rather than `<code>` (among others).
3010 + Add display attribute on `<math>` tags (#3452). This allows display
3011 math to be rendered properly.
3012 + Remove newline before `</ref>` (#2652).
3013 + Don't softbreak lines inside list items (#3531).
3015 * Org writer:
3017 + Reduce to two spaces after bullets (#3417, Albert Krewinkel).
3018 + Add unit tests (Alexander Krotov).
3019 + Stop using raw HTML to wrap divs (Albert Krewinkel, #3771).
3020 + Do not strip `#` from Org anchor links (Alexander Krotov).
3022 * CommonMark writer:
3024 + Avoid excess blank lines at end of output.
3025 + Prefer pipe tables to HTML tables even if it means losing relative
3026 column width information (#3734).
3027 + Support table, strikethrough extensions, when enabled (as with gfm).
3028 Note that we bypass the commonmark writer from cmark and construct our
3029 own pipe tables, with better results.
3030 + Properly support `--wrap=none`.
3031 + Use smallcaps class for `SmallCaps` (#1592).
3032 + Omit "fig:" prefix in image titles. This is used internally to
3033 indicate internal figures.
3035 * RST writer:
3037 + Properly handle table captions.
3038 + Don't wrap lines in in definition list terms. Wrapping is not allowed.
3039 + Implemented `+/-smart` and improved escaping with `+smart`.
3040 + Add empty comments when needed to avoid including a blockquote
3041 in the indented content of a preceding block (#3675).
3042 + Improve grid table output, fix bug with empty rows (#3516).
3043 Uses the new `gridTable` in Writers.Shared, which is here
3044 improved to better handle 0-width cells.
3045 + Remove space at beginning/end of RST code span (#3496). Otherwise
3046 we get invalid RST. There seems to be no way to escape the space.
3047 + Add header anchors when header has non-standard id (#3937).
3048 + Correctly handle inline code containing backticks, using a `:literal:`
3049 role (#3974).
3050 + Don't backslash-escape word-internal punctuation (#3978).
3052 * Markdown writer:
3054 + Don't include variables in metadata blocks. Previously variables set
3055 on the command line were included in e.g. YAML metadata, contrary to
3056 documentation and intentions.
3057 + Improved escaping with `+smart`.
3058 + Fixed grid tables embedded in grid tables (#2834).
3059 + Use span with class 'smallcaps' for SmallCaps, instead of a style
3060 attribute as before (#1592).
3061 + Escape initial `%` in a paragraph if the `pandoc_title_blocks`
3062 extension is enabled (#3454). Otherwise in a document starting with
3063 a literal `%` the first line is wrongly interpreted as a title.
3064 + Fixed false ordered lists in YAML metadata (#3492, #1685). Now we
3065 properly escape things that would otherwise start ordered lists,
3066 such as
3068 ---
3069 title: 1. inline
3070 ...
3071 + Better handling of tables with empty columns (#3337). We now
3072 calculate the number of columns based on the longest row (or the
3073 length of aligns or widths).
3074 + Escape unordered list markers at beginning of paragraph (#3497), to
3075 avoid false interpretation as a list.
3076 + Escape `|` appropriately.
3077 + Ensure space before list at top level (#3487).
3078 + Avoid spurious blanklines at end of document after tables and list,
3079 for example.
3080 + Fixed bugs in simple/multiline list output (#3384).
3081 Previously we got overlong lists with `--wrap=none`. This is fixed.
3082 Previously a multiline list could become a simple list (and would
3083 always become one with `--wrap=none`).
3084 + Don't emit a simple table if `simple_tables` disabled (#3529).
3085 + Case-insensitive reference links (David A Roberts, #3616).
3086 Ensure that we do not generate reference links whose labels differ only
3087 by case. Also allow implicit reference links when the link
3088 text and label are identical up to case.
3089 + Put space before reference link definitions (Mauro Bieg, #3630).
3090 + Better escaping for links (David A. Roberts, #3619). Previously the
3091 Markdown writer would sometimes create links where there were none
3092 in the source. This is now avoided by selectively escaping bracket
3093 characters when they occur in a place where a link might be created.
3094 + Added missing `\n` (David A. Roberts, #3647).
3095 + Fixed duplicated reference links with `--reference-links`
3096 and `--reference-location=section` (#3674). Also ensure that there
3097 are no empty link references `[]`.
3098 + Avoid inline surround-marking with empty content (#3715).
3099 E.g. we don't want `<strong></strong>` to become `****`.
3100 Similarly for emphasis, super/subscript, strikeout.
3101 + Don't allow soft break in header (#3736).
3102 + Make sure `plain`, `markdown_github`, etc. work for raw.
3103 Previously only `markdown` worked. Note: currently a raw block labeled
3104 `markdown_github` will be printed for any `markdown` format.
3105 + Ensure that `+` and `-` are escaped properly so they don't cause
3106 spurious lists (#3773). Previously they were only
3107 if succeeded by a space, not if they were at end of line.
3108 + Use pipe tables if `raw_html` disabled and `pipe_tables` enabled,
3109 even if the table has relative width information (#3734).
3110 + Markdown writer: don't crash on `Str ""`.
3111 + Make `Span` with null attribute transparent. That is, we don't use
3112 brackets or `<span>` tags to mark spans when there are no attributes;
3113 we simply output the contents.
3114 + Escape pipe characters when `pipe_tables` enabled (#3887).
3115 + Better escaping of `<` and `>`. If `all_symbols_escapable` is set,
3116 we backslash escape these. Otherwise we use entities as before.
3117 + When writing plain, don't use `&nbsp;` to separate list and indented
3118 code. There's no need for it in this context, since this isn't to be
3119 interpreted using Markdown rules.
3120 + Preserve classes in JS obfuscated links (Timm Albers, #2989).
3121 HTML links containing classes originally now preserve them when using
3122 JavaScript email obfuscation.
3123 + Render `SmallCaps` as a native span when `native_spans` are enabled.
3124 + Always write attributes with `bracketed_spans` (d-dorazio).
3126 * Man writer:
3128 + Fix handling of nested font commands (#3568). Previously pandoc emitted
3129 incorrect markup for bold + italic, for example, or bold + code.
3130 + Avoid error for definition lists with no definitions (#3832).
3132 * DocBook writer:
3134 + Fix internal links with `writerIdentifierPrefix opt`
3135 (#3397, Mauro Bieg).
3137 * Docx writer:
3139 + Don't include bookmarks on headers unless non-null id (#3476).
3140 + Support 9 levels of headers (#1642).
3141 + Allow 9 list levels (#3519).
3142 + Don't take `distArchive` from datadir (#3322). The docx writer takes
3143 components from the distribution's version of `reference.docx` when it
3144 can't find them in a user's custom `reference.docx`. Previously, we
3145 allowed a `reference.docx` in the data directory (e.g. `~/.pandoc`)
3146 to be used as the distribution's reference.docx. This led to a
3147 bizarre situation where pandoc would produce a good docx using
3148 `--template ~/.pandoc/ref.docx`, but if `ref.docx` were moved to
3149 `~/.pandoc/reference.docx`, it would then produce a corrupted docx.
3150 + Fixed handling of soft hyphen (0173) (#3691).
3151 + Better handling of keywords (#3719).
3152 + Cleaner code for handling dir and style attributes for `Div`.
3153 + Use `Set` for dynamic styles to avoid duplicates.
3154 + Removed redundant element from data/docx/word/numbering.xml.
3155 The elements we need are generated when the document is
3156 compiled; this didn't do anything.
3157 + Activate `evenAndOddHeaders` from reference docx (#3901,
3158 Augustín Martín Barbero).
3160 * ODT/OpenDocument writer:
3162 + Calculate aspect ratio for percentage-sized images (Mauro Bieg, #3239).
3163 + Use more widely available bullet characters (#1400). The old
3164 characters weren't available in some font sets. These seem to work
3165 well on Windows and Linux versions of LibreOffice.
3166 + Wider labels for lists (#2421). This avoids overly narrow labels for
3167 ordered lists with `()` delimiters. However, arguably it creates
3168 overly wide labels for bullets. Also, lists now start flush with
3169 the margin, rather than indented.
3170 + Fixed dropped elements in some ordered lists (#2434).
3172 * FB2 writer:
3174 + Don't render `RawBlock` as code.
3175 + Don't fail with an error on interior headers (e.g. in list) (#3750).
3176 Instead, omit them with an INFO message.
3177 + Add support for "lang" metadata (Alexander Krotov, #3625).
3178 + Format `LineBlock` as poem (Alexander Krotov). Previously writer
3179 produced one paragraph with `<empty-line/>` elements, which are not
3180 allowed inside `<p>` according to FB2 schema.
3181 + Replace `concatMap` with `cMap` (Alexander Krotov).
3182 + Write FB2 lists without nesting blocks inside `<p>` (Alexander
3183 Krotov, #4004)
3185 * HTML writer:
3187 + Make sure `html4`, `html5` formats work for raw blocks/inlines.
3188 + Render raw inline environments when `--mathjax` used (#3816).
3189 We previously did this only with raw blocks, on the assumption
3190 that math environments would always be raw blocks. This has changed
3191 since we now parse them as inline environments.
3192 + Ensure we don't get two style attributes for width and height.
3193 + Report when not rendering raw inline/block.
3194 + Issue warning if no title specified and template used (#3473).
3195 + Info message if `lang` is unspecified (#3486).
3196 + Removed unused parameter in `dimensionsToAttributeList`.
3197 + Avoid two class attributes when adding `uri` class (#3716).
3198 + Fix internal links with `writerIdentifierPrefix opt` (#3397, Mauro
3199 Bieg).
3200 + Use revealjs's math plugin for mathjax (#3743). This is a thin
3201 wrapper around mathjax that makes math look better on revealjs.
3202 + Slidy: use h1 for all slides, even if they were originally
3203 level 2 headers (#3566). Otherwise the built-in table of contents
3204 in Slidy breaks.
3206 * LaTeX writer:
3208 + Don't render LaTeX images with data: URIs (#3636). Note that
3209 `--extract-media` can be used when the input contains data: URIs.
3210 + Make highlighted code blocks work in footnotes (Timm Albers).
3211 + Don't use figure inside table cell (#3836).
3212 + Use proper code for list enumerators (#3891). This should fix problems
3213 with lists that don't use arabic numerals.
3214 + Always add hypertarget when there's a non-empty identifier (#2719).
3215 Previously the hypertargets were only added when there was actually
3216 a link to that identifier.
3217 + Use `%` after hypertarget before code block.
3218 + Add `\leavevmode` before hypertarget at start of paragraph (#2704,
3219 fixes formatting problems in beamer citations).
3220 + Don't use `lstinline` in \item[..] (#645). If you do, the contents
3221 of item disappear or are misplaced. Use `\texttt` instead.
3222 + Fix problem with escaping in `lstinline` (#1629). Previously the
3223 LaTeX writer created invalid LaTeX when `--listings` was specified and
3224 a code span occurred inside emphasis or another construction.
3225 + Fix error with line breaks after empty content (#2874). LaTeX
3226 requires something before a line break, so we insert a `~` if no
3227 printable content has yet been emitted.
3228 + Use BCP47 parser.
3229 + Fixed detection of otherlangs (#3770). We weren't recursing into
3230 inline contexts.
3231 + Handle language in inline code with `--listings` (#3422).
3232 + Write euro symbol directly in LaTeX (Andrew Dunning, #3801).
3233 The textcomp package allows pdfLaTeX to parse `€` directly, making the
3234 `\euro` command unneeded.
3235 + Fixed footnotes in table captions (#2378). Note that if the table has
3236 a first page header and a continuation page header, the notes will
3237 appear only on the first occurrence of the header.
3238 + In `writeBeamer` output, allow hyperlinks to frames (#3220).
3239 Previously you could link to a header above or below slide level but
3240 not *to* slide level. This commit changes that. Hypertargets are
3241 inserted inside frame titles; technically the reference is to just
3242 after the title, but in normal use (where slides are viewed full
3243 screen in a slide show), this does not matter.
3244 + Remove `\strut` at beginning of table cells (#3436). This fixes a
3245 problem with alignment of lists in table cells. The `\strut` at the
3246 end seems to be enough to avoid the too-close spacing that motivated
3247 addition of the strut in #1573.
3248 + Add partial siunitx Support (Marc Schreiber, #3588).
3250 * ConTeXt writer:
3252 + Refactored to use BCP47 module.
3253 + Remove unnecessary `$` (Alexander Krotov, #3482).
3254 + Use header identifiers for chapters (#3968).
3256 * EPUB writer:
3258 + `title_page.xhtml` is now put in `text/`.
3259 + Don't strip formatting in TOC (#1611).
3261 * Textile reader:
3263 + Fix bug for certain links in table cells (#3667).
3264 + Allow 'pre' code in list item (#3916).
3266 * HTML reader:
3268 + Added warnings for ignored material (#3392).
3269 + Better sanity checks to avoid parsing unintended things as
3270 raw HTML in the Markdown reader (#3257).
3271 + Revise treatment of `li` with `id` attribute (#3596). Previously we
3272 always added an empty div before the list item, but this created
3273 problems with spacing in tight lists. Now we do this: If the list
3274 item contents begin with a `Plain` block, we modify the `Plain`
3275 block by adding a `Span` around its contents. Otherwise, we add a
3276 `Div` around the contents of the list item (instead of adding an
3277 empty `Div` to the beginning, as before).
3278 + Add `details` tag to list of block tags (#3694).
3279 + Removed `button` from block tag list (#3717). It is already in the
3280 `eitherBlockOrInlineTag` list, and should be both places.
3281 + Use `Set`s instead of lists for block tag lookup.
3282 + Rewrote to use `Text` throughout. Effect on memory usage is modest
3283 (< 10%).
3284 + Use the lang value of `<html>` to set the lang meta value (bucklereed,
3285 #3765).
3286 + Ensure that paragraphs are closed properly when the parent block
3287 element closes, even without `</p>` (#3794).
3288 + Parse `<figure>` and `<figcaption>` (Mauro Bieg, #3813).
3289 + Parse `<main>` like `<div role=main>` (bucklereed, #3791).
3290 `<main>` closes `<p>` and behaves like a block element generally
3291 + Support column alignments (#1881). These can be set either
3292 with a `width` attribute or with `text-width` in a `style` attribute.
3293 + Modified state type to be an instance of `HasLogMessages`, so
3294 `registerHeader` can issue warnings.
3295 + `</td>` or `</th>` should close any open block tag (#3991).
3296 + `<td>` should close an open `<th>` or `<td>`.
3297 + `htmlTag` improvements (#3989). We previously failed on cases
3298 where an attribute contained a `>` character. This patch fixes the
3299 bug, which especially affects raw HTML in Markdown.
3301 * Txt2Tags reader:
3303 + Newline is not indentation (Alexander Krotov).
3305 * MediaWiki reader:
3307 + Allow extra hyphens after `|-` in tables (#2649).
3308 + Allow blank line after table start (#2649).
3309 + Fixed more table issues (#2649).
3310 + Ensure that list starts begin at left margin (#2606). Including when
3311 they're in tables or other list items.
3312 + Make smart double quotes depend on `smart` extension (#3585).
3313 + Don't do curly quotes inside `<tt>` contexts (#3585). Even if `+smart`.
3314 + Modified state type to be an instance of `HasLogMessages`, so
3315 `registerHeader` can issue warnings.
3317 * TWiki reader (Alexander Krotov):
3319 + Remove unnecessary `$` (#3597).
3320 + Simplify `linkText` (#3605).
3322 * EPUB reader:
3324 + Minor refactoring, avoiding explicit MediaBag handling.
3325 This all works behind the scenes in CommonState plumbing.
3327 * Docx reader:
3329 + Don't drop smartTag contents (#2242).
3330 + Handle local namespace declarations (#3365). Previously we didn't
3331 recognize math, for example, when the xmlns declaration occurred on
3332 the element and not the root.
3333 + More efficient trimSps (#1530). Replacing `trimLineBreaks`. This
3334 does the work of `normalizeSpaces` as well, so we avoid the need for
3335 that function here.
3336 + Avoid 0-level headers (Jesse Rosenthal, #3830). We used to parse
3337 paragraphs styled with "HeadingN" as "nth-level header." But if a
3338 document has a custom style named "Heading0", this will produce a
3339 0-level header, which shouldn't exist. We only parse this style
3340 if N>0. Otherwise we treat it as a normal style name, and
3341 follow its dependencies, if any.
3342 + Add tests for avoiding zero-level header (Jesse Rosenthal).
3344 * ODT reader:
3346 + Replaced `collectRights` with Rights from `Data.Either`.
3347 + Remove dead code (Albert Krewinkel).
3349 * Org reader (Albert Krewinkel, unless noted).
3351 + Don't allow tables inside list items (John MacFarlane, #3499).
3352 + Disallow tables on list marker lines (#3499).
3353 + Convert markup at beginning of footnotes (John MacFarlane, #3576).
3354 + Allow emphasized text to be followed by `[` (#3577).
3355 + Handle line numbering switch for src blocks.
3356 The line-numbering switch that can be given to source blocks (`-n` with
3357 an start number as an optional parameter) is parsed and translated to a
3358 class/key-value combination used by highlighting and other readers and
3359 writers.
3360 + Stop adding rundoc prefix to src params. Source block parameter names
3361 are no longer prefixed with `rundoc`. This was intended to simplify
3362 working with the rundoc project, a babel runner. However, the rundoc
3363 project is unmaintained, and adding those markers is not the reader's
3364 job anyway. The original language that is specified for a source
3365 element is now retained as the `data-org-language` attribute and only
3366 added if it differs from the translated language.
3367 + Allow multi-word arguments to src block params (#3477). The reader now
3368 correctly parses src block parameter list even if parameter arguments
3369 contain multiple words.
3370 + Avoid creating `nullMeta` by applying `setMeta` directly
3371 (Alexander Krotov).
3372 + Replace `sequence . map` with `mapM`.
3373 + Fix smart parsing behavior. Parsing of smart quotes and special
3374 characters can either be enabled via the `smart` language extension or
3375 the `'` and `-` export options. Smart parsing is active if either the
3376 extension or export option is enabled. Only smart parsing of special
3377 characters (like ellipses and en and em dashes) is enabled by default,
3378 while smart quotes are disabled. Previously, all smart parsing was
3379 disabled unless the language extension was enabled.
3380 + Subject full doc tree to headline transformations (Albert Krewinkel,
3381 #3695). Emacs parses org documents into a tree structure, which is
3382 then post-processed during exporting. The reader is changed to do the
3383 same, turning the document into a single tree of headlines starting
3384 at level 0.
3385 + Fix cite parsing behaviour (Herwig Stuetz). Until now, `org-ref`
3386 cite keys included special characters also at the end. This caused
3387 problems when citations occur right before colons or at the end of
3388 a sentence. With this change, all non alphanumeric characters at
3389 the end of a cite key are ignored. This also adds `,` to the list
3390 of special characters that are legal in cite keys to better mirror
3391 the behaviour of org-export.
3392 + Fix module names in haddock comments. Copy-pasting had lead to
3393 haddock module descriptions containing the wrong module names.
3394 + Recognize babel result blocks with attributes (#3706). Babel
3395 result blocks can have block attributes like captions and names.
3396 Result blocks with attributes were not recognized and were parsed
3397 as normal blocks without attributes.
3398 + Include tags in headlines. The Emacs default is to include tags in the
3399 headline when exporting. Instead of just empty spans, which contain the
3400 tag name as attribute, tags are rendered as small caps and wrapped in
3401 those spans. Non-breaking spaces serve as separators for multiple tags.
3402 + Respect export option for tags (#3713). Tags are appended to
3403 headlines by default, but will be omitted when the `tags` export option
3404 is set to nil.
3405 + Use `tag-name` attribute instead of `data-tag-name`.
3406 + Use `org-language` attribute rather than `data-org-language`.
3407 + Modified state type to be an instance of `HasLogMessages`, so
3408 `registerHeader` can issue warnings.
3409 + End footnotes after two blank lines. Footnotes can not only be
3410 terminated by the start of a new footnote or a header, but also by two
3411 consecutive blank lines.
3412 + Update emphasis border chars (#3933). The org reader was updated to
3413 match current org-mode behavior: the set of characters which are
3414 acceptable to occur as the first or last character in an org emphasis
3415 have been changed and now allows all non-whitespace chars at the
3416 inner border of emphasized text (see `org-emphasis-regexp-components`).
3418 * RST reader:
3420 + Fixed small bug in list parsing (#3432). Previously the parser didn't
3421 handle properly this case:
3423 * - a
3424 - b
3425 * - c
3426 - d
3427 + Handle multiline cells in simple tables (#1166).
3428 + Parse list table directive (Keiichiro Shikano, #3432).
3429 + Make use of `anyLineNewline` (Alexander Krotov, #3686).
3430 + Use `anyLineNewline` in `rawListItem` (Alexander Krotov, #3702).
3431 + Reorganize block parsers for ~20% faster parsing.
3432 + Fixed `..include::` directive (#3880).
3433 + Handle blank lines correctly in line blocks (Alexander Krotov, #3881).
3434 Previously pandoc would sometimes combine two line blocks separated
3435 by blanks, and ignore trailing blank lines within the line block.
3436 + Fix indirect hyperlink targets (#512).
3438 * Markdown reader:
3440 + Allow attributes in reference links to start on next line (#3674).
3441 + Parse YAML metadata in a context that sees footnotes defined in
3442 the body of the document (#1279).
3443 + When splitting pipe table cells, skip tex math (#3481).
3444 You might have a `|` character inside math. (Or for that matter
3445 something that the parser might mistake for raw HTML.)
3446 + Treat span with class `smallcaps` as SmallCaps.
3447 This allows users to specify small caps in Markdown this way:
3448 `[my text]{.smallcaps}` (#1592).
3449 + Fixed internal header links (#2397).
3450 This patch also adds `shortcut_reference_links` to the list
3451 of mmd extensions.
3452 + Treat certain environments as inline
3453 when they occur without space surrounding them (#3309, #2171).
3454 E.g. equation, math. This avoids incorrect vertical space
3455 around equations.
3456 + Optimized `nonindentSpaces`. Makes the benchmark go from 40 to 36 ms.
3457 + Allow latex macro definitions indented 1-3 spaces.
3458 Previously they only worked if nonindented.
3459 + Improved parsing of indented raw HTML blocks (#1841).
3460 Previously we inadvertently interpreted indented HTML as
3461 code blocks. This was a regression. We now seek to determine the
3462 indentation level of the contents of an HTML block, and (optionally)
3463 skip that much indentation. As a side effect, indentation may be
3464 stripped off of raw HTML blocks, if `markdown_in_html_blocks` is
3465 used. This is better than having things interpreted as indented
3466 code blocks.
3467 + Fixed smart quotes after emphasis (#2228). E.g. in `*foo*'s 'foo'`.
3468 + Warn for notes defined but not used (#1718).
3469 + Use `anyLineNewline` (Alexander Krotov).
3470 + Interpret YAML metadata as Inlines when possible (#3755). If
3471 the metadata field is all on one line, we try to interpret it as
3472 Inlines, and only try parsing as Blocks if that fails. If it
3473 extends over one line (including possibly the `|` or `>` character
3474 signaling an indented block), then we parse as Blocks. This was
3475 motivated by some German users finding that `date: '22. Juin 2017'`
3476 got parsed as an ordered list.
3477 + Fixed spurious parsing as citation as reference def (#3840).
3478 We now disallow reference keys starting with `@` if the
3479 `citations` extension is enabled.
3480 + Parse `-@roe` as suppress-author citation (pandoc-citeproc#237).
3481 Previously only `[-@roe]` (with brackets) was recognized as
3482 suppress-author, and `-@roe` was treated the same as `@roe`.
3483 + Fixed parsing of fenced code after list when there is no intervening
3484 blank line (#3733).
3485 + Allow raw latex commands starting with `\start` (#3558). Previously
3486 these weren't allowed because they were interpreted as starting
3487 ConTeXt environments, even without a corresponding `\stop`...
3488 + Added `inlines`, `inlines1`.
3489 + Require nonempty alt text for `implicit_figures` (#2844).
3490 A figure with an empty caption doesn't make sense.
3491 + Removed texmath macro material; now all this is handled
3492 in the LaTeX reader functions.
3493 + Fixed bug with indented code following raw LaTeX (#3947).
3495 * LaTeX reader:
3497 + Rewrote LaTeX reader with proper tokenization (#1390,
3498 #2118, #3236, #3779, #934, #982). This rewrite is primarily
3499 motivated by the need to get macros working properly. A side benefit
3500 is that the reader is significantly faster. We now tokenize the
3501 input text, then parse the token stream. Macros modify the token
3502 stream, so they should now be effective in any context, including
3503 math. Thus, we no longer need the clunky macro processing
3504 capacities of texmath.
3505 + Parse `\,` to `\8198` (six-per-em space) (Henri Werth).
3506 + Allow `\newcommand\foo{blah}` without braces.
3507 + Support `\lstinputlisting` (#2116).
3508 + Issue warnings when skipping unknown latex commands (#3392).
3509 + Include contents of `\parbox`.
3510 + Allow `\hspace` and `\vspace` to count as raw block or inline.
3511 Previously we would refuse to parse anything as raw inline if
3512 it was in the `blockCommands` list. Now we allow exceptions
3513 if they're listed under ignoreInlines in inlineCommands.
3514 This should make it easier e.g. to include an `\hspace`
3515 between two side-by-side raw LaTeX tables.
3516 + Don't drop contents of `\hypertarget`.
3517 + Handle spaces before `\cite` arguments.
3518 + Allow newpage, clearpage, pagebreak in inline contexts as well as
3519 block contexts (#3494).
3520 + Treat `{{xxx}}` the same as `{xxx}` (#2115).
3521 + Use `pMacroDefinition` in macro (for more direct parsing).
3522 Note that this means that `macro` will now parse one
3523 macro at a time, rather than parsing a whole group together.
3524 + Fixed failures on \ref{}, \label{} with `+raw_tex`. Now these
3525 commands are parsed as raw if `+raw_tex`; otherwise, their argument
3526 is parsed as a bracketed string.
3527 + Don't crash on empty `enumerate` environment (#3707).
3528 + Handle escaped `&` inside table cell (#3708).
3529 + Handle block structure inside table cells (#3709). `minipage` is no
3530 longer required.
3531 + Handle some width specifiers on table columns (#3709). Currently
3532 we only handle the form `0.9\linewidth`. Anything else would have
3533 to be converted to a percentage, using some kind arbitrary assumptions
3534 about line widths.
3535 + Make sure `\write18` is parsed as raw LaTeX. The change is in the
3536 LaTeX reader's treatment of raw commands, but it also affects the
3537 Markdown reader.
3538 + Fixed regression with starred environment names (#3803).
3539 + Handle optional args in raw `\titleformat` (#3804).
3540 + Improved heuristic for raw block/inline. An unknown command at the
3541 beginning of the line that could be either block or inline is
3542 treated as block if we have a sequence of block commands followed by
3543 a newline or a `\startXXX` command (which might start a raw ConTeXt
3544 environment).
3545 + Don't remove macro definitions from the output, even if
3546 `Ext_latex_macros` is set, so that macros will be applied.
3547 Since they're only applied to math in Markdown, removing the macros
3548 can have bad effects. Even for math macros, keeping them should be
3549 harmless.
3550 + Removed `macro`. It is no longer necessary, since the
3551 `rawLaTeXBlock` parser will parse macro definitions. This also avoids
3552 the need for a separate `latexMacro` parser in the Markdown reader.
3553 + Use `label` instead of `data-label` for label in caption (#3639).
3554 + Fixed space after \figurename etc.
3555 + Resolve references to section numbers.
3556 + Fix `\let\a=0` case, with single character token.
3557 + Allow `@` as a letter in control sequences. `@` is commonly used
3558 in macros using `\makeatletter`. Ideally we'd make the tokenizer
3559 sensitive to `\makeatletter` and `\makeatother`, but until then this
3560 seems a good change.
3561 + Track header numbers and correlate with labels.
3562 + Allow `]` inside group in option brackets (#3857).
3563 + lstinline with braces can be used (verb cannot be used with braces)
3564 (Marc Schreiber, #3535).
3565 + Fix keyval function: pandoc did not parse options in braces correctly
3566 (Marc Schreiber, #3642).
3567 + When parsing raw LaTeX commands, include trailing space (#1773).
3568 Otherwise things like `\noindent foo` break and turn into
3569 `\noindentfoo`. Affects `-f latex+raw_tex` and `-f markdown` (and other
3570 formats that allow `raw_tex`).
3571 + Don't treat "..." as Quoted (#3958). This caused quotes to be omitted in
3572 `\texttt` contexts.
3573 + Add tests for existing `\includegraphics` behaviour (Ben Firshman).
3574 + Allow space before `=` in bracketd options (Ben Firshman).
3575 + Be more forgiving in parsing command options. This was needed, for
3576 example, to make some minted options work.
3577 + Strip off quotes in `\include` filenames.
3579 * Added `Text.Pandoc.CSV`, simple (unexported) CSV parser.
3581 * `Text.Pandoc.PDF`:
3583 + Got `--resource-path` working with PDF output (#852).
3584 + Fetch images when generating PDF via context (#3380).
3585 To do this, we create the temp directory as a subdirectory
3586 of the working directory. Since context mk IV by default looks
3587 for images in the parent directory, this works.
3588 + Use `report` instead of `warn`, make it sensitive to verbosity settings.
3589 + Use `fillMediaBag` and `extractMedia` to extract media to temp dir.
3590 This reduces code duplication.
3591 + `html2pdf`: use stdin instead of intermediate HTML file
3592 + Removed useless `TEXINPUTS` stuff for `context2pdf`. mkiv context
3593 doesn't use `TEXINPUTS`.
3595 * `Text.Pandoc.Pretty`:
3597 + Simplified definition of `realLength`.
3598 + Don't error for blocks of size < 1. Instead, resize to 1 (see #1785).
3600 * `Text.Pandoc.MIME`:
3602 + Use `application/javascript` (not `application/x-javascript`).
3603 + Added `emf` to mimeTypes with type `application/x-msmetafile` (#1713).
3605 * `Text.Pandoc.ImageSize`:
3607 + Improve SVG image size code (Marc Schreiber, #3580).
3608 + Make `imageSize` recognize basic SVG dimensions (Mauro Bieg, #3462).
3610 * Use `Control.Monad.State.Strict` throughout. This gives 20-30% speedup
3611 and reduction of memory usage in most of the writers.
3613 * Use `foldrWithKey` instead of deprecated `foldWithKey`.
3615 * `Text.Pandoc.SelfContained`:
3617 + Fixed problem with embedded fonts (#3629).
3618 + Refactored getData from `getDataURI` in `SelfContained`.
3619 + Don't use data URIs for script or style (#3423). Instead, just use
3620 script or style tags with the content inside. The old method with
3621 data URIs prevents certain optimizations outside pandoc. Exception:
3622 data URIs are still used when a script contains `</script>` or a
3623 style contains `</`.
3624 + SelfContained: Handle URL inside material retrieved from a URL
3625 (#3629). This can happen e.g. with an @import of a google web font.
3626 (What is imported is some CSS which contains an url reference
3627 to the font itself.) Also, allow unescaped pipe (|) in URL.
3628 + Load resources from `data-src` (needed for lazy loading in
3629 reveal.js slide shows).
3630 + Handle `data-background-image` attribute on section (#3979).
3632 * `Text.Pandoc.Parsing`:
3634 + Added `indentWith` (Alexander Krotov, #3687).
3635 + Added `stateCitations` to `ParserState`.
3636 + Removed `stateChapters` from `ParserState`.
3637 + In `ParserState`, make `stateNotes'` a Map, add `stateNoteRefs`.
3638 + Added `gobbleSpaces` and `gobbleAtMostSpaces`.
3639 + Adjusted type of `insertIncludedFile` so it can be used with token
3640 parser.
3641 + Replace old texmath macro stuff from Parsing. Use Macro from
3642 Text.Pandoc.Readers.LaTeX.Types instead.
3643 + Export `insertIncludedFile`.
3644 + Added `HasLogMessages`, `logMessage`, `reportLogMessages` (#3447).
3645 + Replace partial with total function (Albert Krewinkel).
3646 + Introduce `HasIncludeFiles` type class (Albert Krewinkel). The
3647 `insertIncludeFile` function is generalized to work with all parser
3648 states which are instances of that class.
3649 + Add `insertIncludedFilesF` which returns F blocks (Albert Krewinkel).
3650 The `insertIncludeFiles` function was generalized and renamed
3651 to `insertIncludedFiles'`; the specialized versions are based on that.
3652 + `many1Till`: Check for the end condition before parsing (Herwig
3653 Stuetz). By not checking for the end condition before the first
3654 parse, the parser was applied too often, consuming too much of the
3655 input. This only affects `many1Till p end` where `p` matches on a
3656 prefix of `end`.
3657 + Provide `parseFromString` (#3690). This is a version of
3658 `parseFromString` specialied to ParserState, which resets
3659 `stateLastStrPos` at the end. This is almost always what we want.
3660 This fixes a bug where `_hi_` wasn't treated as emphasis in the
3661 following, because pandoc got confused about the position of the
3662 last word: `- [o] _hi_`.
3663 + Added `takeP`, `takeWhileP` for efficient parsing of `[Char]`.
3664 + Fix `blanklines` documentation (Alexander Krotov, #3843).
3665 + Give less misleading line information with `parseWithString`.
3666 Previously positions would be reported past the end of the chunk.
3667 We now reset the source position within the chunk and report
3668 positions "in chunk."
3669 + Add `anyLineNewline` (Alexander Krotov).
3670 + Provide shared F monad functions for Markdown and Org readers
3671 (Albert Krewinkel). The `F` monads used for delayed evaluation
3672 of certain values in the Markdown and Org readers are based on a
3673 shared data type capturing the common pattern of both `F` types.
3674 + Add `returnF` (Alexander Krotov).
3675 + Avoid parsing `Notes:**` as a bare URI (#3570). This avoids parsing
3676 bare URIs that start with a scheme + colon + `*`, `_`, or `]`.
3677 + Added `readerAbbreviations` to `ParserState`. Markdown reader
3678 now consults this to determine what is an abbreviation.
3679 + Combine grid table parsers (Albert Krewinkel, #3638). The grid table
3680 parsers for markdown and rst was combined into one single
3681 parser `gridTable`, slightly changing parsing behavior of both
3682 parsers: (1) The markdown parser now compactifies block content
3683 cell-wise: pure text blocks in cells are now treated as paragraphs
3684 only if the cell contains multiple paragraphs, and as plain blocks
3685 otherwise. Before, this was true only for single-column tables. (2)
3686 The rst parser now accepts newlines and multiple blocks in header
3687 cells.
3688 + Generalize tableWith, gridTableWith (Albert Krewinkel).
3689 The parsing functions `tableWith` and `gridTableWith` are generalized
3690 to work with more parsers. The parser state only has to be an
3691 instance of the `HasOptions` class instead of requiring a concrete
3692 type. Block parsers are required to return blocks wrapped into a
3693 monad, as this makes it possible to use parsers returning results
3694 wrapped in `Future`s.
3696 * `Text.Pandoc.Shared`:
3698 + Simplify `toRomanNumeral` using guards (Alexander Krotov, #3445)
3699 + `stringify`: handle Quoted better (#3958). Previously we were losing
3700 the quotation marks in Quoted elements.
3702 * `Text.Pandoc.Writers.Shared`:
3704 + Export `metaToJSON'`, `addVariablesToJSON` (#3439).
3705 This allows us to add the variables AFTER using the metadata
3706 to generate a YAML header (in the Markdown writer).
3707 + Added `unsmartify` (previously in RST writer).
3708 Undo literal double curly quotes. Previously we left these.
3709 + Generalize type of `metaToJSON` so it can take a Text. Previously a
3710 String was needed as argument; now any ToJSON instance will do.
3711 + Added `gridTable` (previously in Markdown writer).
3712 + `gridTable`: Refactored to use widths in chars.
3713 + `gridTable`: remove unnecessary extra space in cells.
3714 + Fixed `addVariablesToJSON`. It was previously not allowing multiple
3715 values to become lists.
3716 + Pipe tables: impose minimum cell size (see #3526).
3719 [default template changes]
3721 * HTML templates (including EPUB and HTML slide show templates):
3723 + Make default.html5 polyglot markup conformant (John Luke Bentley,
3724 #3473). Polyglot markup is HTML5 that is also valid XHTML. See
3725 <https://www.w3.org/TR/html-polyglot>. With this change, pandoc's
3726 html5 writer creates HTML that is both valid HTML5 and valid XHTML.
3727 + Regularized CSS in html/epub/html slide templates (#3485).
3728 All templates now include `code{white-space: pre-wrap}`
3729 and CSS for `q` if `--html-q-tags` is used. Previously some templates
3730 had `pre` and others `pre-wrap`; the `q` styles were only sometimes
3731 included.
3732 + CSS for `.smallcaps`, (Mauro Bieg, #1592)
3733 + `default.revealjs`: make `history` default to true.
3734 + `default.revealjs`: use lazy loading (#2283).
3735 + `default.revealjs`: add `mathjax` variable and some conditional code
3736 to use the MathJaX plugin.
3737 + `default.slidy` uses `https` instead of `http` (ickc, #3848).
3738 + `default.dzslides`: Load Google Font using HTTPS by default
3739 (Yoan Blanc).
3741 * DocBook5 template: Use `lang` and `subtitle` variables (Jens Getreu,
3742 #3855).
3744 * LaTeX/Beamer template:
3746 + Combine LaTeX/Beamer templates (Andrew Dunning, #3878).
3747 `default.beamer` has been removed; beamer now uses the
3748 `default.latex` template. Beamer-specific parts are conditional
3749 on the `beamer` variable set by the writer. Note that
3750 `pandoc -D beamer` will return this (combined) template.
3751 + Use `xcolor` for `colorlinks` option (Andrew Dunning, #3877).
3752 Beamer loads `xcolor` rather than `color`, and thus the
3753 `dvipsnames` option doesn't take effect. This also provides a wider
3754 range of colour selections with the `svgnames` option.
3755 + Use starred versions of `xcolor` names (Andrew Dunning).
3756 Prevents changes to documents defined using the `dvipsnames` list (e.g.
3757 `Blue` gives a different result with svgnames enabled).
3758 + Load `polyglossia` after header-includes (#3898). It needs to be
3759 loaded as late as possible.
3760 + Use `unicode-math` (Vaclav Haisman). Use `mathspec` with only
3761 XeLaTeX on request.
3762 + Don't load `fontspec` before `unicode-math` (over there).
3763 The `unicode-math` package loads `fontspec` so explicit loading of
3764 `fontspec` before `unicode-math` is not necessary.
3765 + Use `unicode-math` by default in default.latex template. mathspec will
3766 be used in xelatex if the `mathspec` variable is set; otherwise
3767 unicode-math will be used (Václav Haisman).
3768 + Use `dvipsnames` options when `colorlinks` specified (otherwise
3769 we get an error for `maroon`) (Thomas Hodgson).
3770 + Added beamer `titlegraphic` and `logo` variables (Thomas Hodgson).
3771 + Fix typo in fix for notes in tables (#2378, zeeMonkeez).
3772 + Fix `hyperref` options clash (Andrew Dunning, #3847) Avoids an options
3773 clash when loading a package (e.g. `tufte-latex`) that uses
3774 `hyperref` settings different from those in the template.
3775 + Add `natbiboptions` variable (#3768).
3776 + Fix links inside captions in LaTeX output with links-as-notes
3777 (Václav Haisman, #3651). Declare our redefined `\href` robust.
3778 + Load `parskip` before `hyperref` (Václav Haisman, #3654).
3779 + Allow setting Japanese fonts when using LuaLaTeX (Václav Haisman,
3780 #3873). by using the `luatexja-fontspec` and `luatexja-preset`
3781 packages. Use existing `CJKmainfont` and `CJKoptions` template
3782 variables. Add `luatexjafontspecoptions` for `luatexja-fontspec`
3783 and `luatexjapresetoptions` for `luatexja-preset`.
3784 + Added `aspectratio` variable to beamer template (Václav Haisman,
3785 #3723).
3786 + Modified template.latex to fix XeLaTex being used with tables
3787 (lwolfsonkin, #3661). Reordered `lang` variable handling to
3788 immediately before `bidi`.
3790 * ConTeXt template: Improved font handling: `simplefonts` is now
3791 obsolete in ConTeXt (Pablo Rodríguez).
3794 [documentation improvements]
3796 * MANUAL.txt:
3798 + Add URL for Prince HTML > PDF engine (Ian, #3919).
3799 + Document that content above slide-level will be omitted in
3800 slide shows. See #3460, #2265.
3801 + Explain `--webtex` SVG url (Mauro Bieg, #3471)
3802 + Small clarification in YAML metadata section.
3803 + Document that html4 is technically XHTML 1.0 transitional.
3804 + Remove refs to highlighting-kate (#3672).
3805 + Document ibooks specific epub metadata.
3806 + Clarify that mathml is used for ODT math.
3807 + Mention limitations of Literate Haskell Support (#3410,
3808 Joachim Breitner).
3809 + Add documentation of limitations of grid tables (Stephen
3810 McDowell, #3864).
3811 + Clarify that meta-json contains transformed values (Jakob Voß,
3812 #3491) Make clear that template variable `meta-json` does not
3813 contain plain text values or JSON output format but field values
3814 transformed to the selected output format.
3816 * COPYRIGHT:
3818 + Clarify that templates are dual-licensed.
3819 + Clarify that pandoc-types is BSD3 licensed.
3820 + List new files not written by jgm (Albert Krewinkel).
3821 + Update dates in copyright notices (Albert Krewinkel). This follows
3822 the suggestions given by the FSF for GPL licensed software.
3823 <https://www.gnu.org/prep/maintain/html_node/Copyright-Notices.html>
3825 * INSTALL.md:
3827 + Improved instructions for tests with patterns.
3828 + Put RPM-based distros on separate point (Mauro Bieg, #3449)
3830 * CONTRIBUTING.md:
3832 + Fixed typos (Wandmalfarbe, #3479).
3833 + Add "ask on pandoc-discuss" (Mauro Bieg).
3835 * Add lua filter documentation in `doc/lua-filters.md`. Note that the
3836 end of this document is autogenerated from `data/pandoc.lua`
3837 using `make doc/lua-filters.md`, which uses `tools/ldoc.ltp`
3838 (Albert Krewinkel).
3840 * Add `doc/filters.md`. This is the old scripting tutorial from
3841 the website.
3843 * Add `doc/using-the-pandoc-api.md` (#3289). This gives an introduction
3844 to using pandoc as a Haskell library.
3847 [build infrastructure improvements]
3849 * Removed `data/templates` submodule. Templates are now a subtree
3850 in `data/templates`. This removes the need to do `git submodule
3851 update`.
3853 * Renamed `tests` -> `test`.
3855 * Remove `https` flag. Always build with HTTPS support.
3857 * Use `file-embed` instead of `hsb2hs` to embed data files when
3858 `embed_data_files` flag is set. `file-embed` gives us better dependency
3859 tracking: if a data file changes, ghc/stack/cabal know to recompile
3860 the Data module. This also removes `hsb2hs` as a build dependency.
3862 * Add `custom-setup` stanza to pandoc, lowercase field names.
3864 * Add `static` Cabal flag.
3866 * Name change OSX -> MacOS. Add a -MacOS suffix to mac package rather
3867 than -OSX. Changed local names from osx to macos.
3869 * make_macos_package.sh - Use strip to reduce executable size.
3871 * Revised binary linux package. Now a completely static executable
3872 is created, using Docker and alpine. We create both a deb and a
3873 tarball. The old `deb` directory has been replaced with a `linux`
3874 directory. Running `make` in the `linux` directory should
3875 perform the build, putting the binary packages in `artifacts/`.
3877 * `linux/control.in`: add `Replaces:`, so existing pandoc-citeproc and
3878 pandoc-data packages will be uninstalled; this package provides
3879 both (#3822). Add latex packages as 'suggested', update
3880 description.
3882 * Remove cpphs build requirement -- it is no longer needed.
3884 * Replaced `{deb,macos,windows}/stack.yaml` with `stack.pkg.yaml`.
3886 * Name change OSX -> macOS (ickc, #3869).
3888 * Fix casing of Linux, UNIX, and Windows (ickc).
3890 * `.travis.yml`: create a source dist and do cabal build and test there.
3891 That way we catch errors due to files missing from the data
3892 section of pandoc.cabal.
3894 * Makefile:
3896 + Split `make haddock` from `make full`.
3897 + Add BRANCH variable for winpkg.
3898 + Add `lint` target.
3899 + Improve `make full`. Disable optimizations.
3900 Build everything, inc. trypandoc and benchmarks. Use parallel build.
3901 + Allow `make test` to take `TESTARGS`.
3903 * Added new command tests (`Tests.Command`), using small text files
3904 in `test/command/`. Any files added in this directory will be treated
3905 as shell tests (see smart.md for an example). This makes it very easy
3906 to add regression tests etc.
3908 * Test fixes so we can find data files. In old tests & command tests,
3909 we now set the environment variable `pandoc_datadir`. In lua tests,
3910 we set the datadir explicitly.
3912 * Refactored `compareOutput` in docx writer test.
3914 * Consolidated some common functions in `Tests.Helper`.
3916 * Small change to unbalanced bracket test to speed up test suite.
3918 * Speed up Native writer quickcheck tests.
3920 * Use tasty for tests rather than test-framework.
3922 * Add simple Emacs mode to help with Pandoc templates editing.
3923 (Václav Haisman, #3889). `tools/pandoc-template-mode.el`
3926pandoc (1.19.2)
3928 * Use skylighting library instead of highlighting-kate for syntax
3929 highlighting. Skylighting is faster and more accurate (#3363).
3930 Later we'll be able to add features like warning messages, dynamic
3931 loading of xml syntax definitions, and dynamic loading of themes.
3933 * Added a new highlight style, `breezeDark`.
3935 * Text.Pandoc.Highlighting: Update list of `listings` languages (#3374).
3936 This allows more languages to be used when using the `--listings`
3937 option.
3939 * OpenDocument writer:
3941 + Small refactoring. Removed separate 'parent' parameter in paraStyle.
3942 + Don't profilerate text styles unnecessarily (#3371).
3943 This change makes the writer create only as many temporary
3944 text styles as are absolutely necessary. It also consolidates
3945 adjacent nodes with the same style.
3947 * Org reader (Albert Krewinkel):
3949 + Allow short hand for single-line raw blocks (Albert Krewinkel,
3950 #3366). Single-line raw blocks can be given via `#+FORMAT: raw line`,
3951 where `FORMAT` must be one of `latex`, `beamer`, `html`, or `texinfo`.
3952 + Accept org-ref citations followed by commas (Albert Krewinkel).
3953 Bugfix for an issue which, whenever the citation was immediately
3954 followed by a comma, prevented correct parsing of org-ref citations.
3955 + Ensure emphasis markup can be nested. Nested emphasis markup (e.g.
3956 `/*strong and emphasized*/`) was interpreted incorrectly in that the
3957 inner markup was not recognized.
3958 + Remove pipe char irking the haddock coverage tool (Albert Krewinkel).
3960 * Docx reader: Empty header should be list of lists (Jesse Rosenthal).
3961 In the past, the docx reader wrote an empty header as an empty list. It
3962 should have the same width as a row (and be filled with empty cells).
3964 * MediaWiki reader:
3966 + Improved handling of display math (#3362). Sometimes display math is
3967 indented with more than one colon. Previously we handled these cases
3968 badly, generating definition lists and missing the math.
3969 + Fix quotation mark parsing (#3336, tgkokk). Change MediaWiki reader's
3970 behavior when the smart option is parsed to match other readers'
3971 behavior.
3973 * Markdown reader:
3975 + Fixed `-f markdown_github-hard_line_breaks+escaped_line_breaks`
3976 (#3341). Previously this did not properly enable escaped line breaks.
3977 + Disallow space between inline code and attributes (#3326, #3323,
3978 Mauro Bieg).
3980 * DocBook5 writer: make id attribute xml:id, fixes #3329 (#3330, Mauro Bieg).
3982 * Added some test cases for ODT reader (#3306, #3308, Hubert Plociniczak).
3984 * LaTeX writer: allow tables with empty cells to count as "plain."
3985 This addresses a problem of too-wide tables when empty cells
3986 are used. Thanks to Joost Kremers for reporting the issue.
3988 * Org writer: prefix footnote numbers with `fn:` (Albert Krewinkel).
3989 Unprefixed numbers where used by older org-mode versions, but are no
3990 longer supported.
3992 * HTML writer: don't process pars with empty RawInline, (#1040, #3327,
3993 Mauro Bieg).
3995 * Markdown writer: Fix display math with `--webtex` (#3298).
3997 * Fix sample.lua so it properly handles raw blocks/inlines (#3358,
3998 bumper314).
4000 * Templates:
4002 + default.latex: Moved geometry after hyperref (Václav Haisman).
4003 Otherwise PDF sizes can be wrong in some circumstances.
4004 + Copied a few changes from default.latex to default.beamer
4005 (Wandmalfarbe).
4006 + default.latex, default.beamer: Changed position of `\VerbatimNotes`
4007 and `fancyvrb`. This fixes hyperlinks on footnotes in documents
4008 that contain verbatim in notes (#3361). (Note: the beamer template
4009 was updated to match the LaTeX template, but at this point verbatim
4010 in notes seems not to work in beamer.)
4011 + default.latex: Allow passing `microtypeoptions` to microtype
4012 (Václav Haisman).
4013 + default.latex: Add hyphen option to url package.
4014 + default.docbook5: Fix namespace declarations (Mauro Bieg).
4016 * Moved `make_osx_package.sh` to `osx/` directory.
4018 * Travis continuous integration:
4020 + Fix false positives with dist build.
4021 + Speed improvements (Kolen Cheung, #3304, #3357).
4023 * MANUAL.txt:
4025 + Clarify that blank space is needed around footnotes (#3352).
4026 + Fixed typo (#3351, Alexey Rogechev).
4027 + Note that `--wrap=auto` does not work in HTML output.
4028 + Default `--columns` width is 72, not 80.
4029 + Fixed broken links (#3316, Kolen Cheung).
4030 + Document usage of `@*` in nocite section (#3333, John Muccigrosso).
4032 * INSTALL.md:
4034 + Indent code so it's properly formatted (#3335, Bheesham Persaud).
4035 + Added instructions for extracting binary from OSX, Windows packages.
4037 * CONTRIBUTING.md: Describe labels currently used in issue tracker
4038 (Albert Krewinkel). The labels have changed over time, the list of
4039 labels is updated to reflect the current set of labels used in the
4040 issue tracker.
4042 * Rearrange and extend badges in README (Albert Krewinkel, #3354)
4044 * Bumped version bounds for dependencies.
4047pandoc (1.19.1)
4049 * Set `PANDOC_VERSION` environment variable for filters (#2640).
4050 This allows filters to check the pandoc version that produced
4051 the JSON they are receiving.
4053 * Docx reader: Ensure one-row tables don't have header (#3285,
4054 Jesse Rosenthal). Tables in MS Word are set by default to have
4055 special first-row formatting, which pandoc uses to determine whether
4056 or not they have a header. This means that one-row tables will, by
4057 default, have only a header -- which we imagine is not what people
4058 want. This change ensures that a one-row table is not understood to
4059 be a header only. Note that this means that it is impossible to
4060 produce a header-only table from docx, even though it is legal
4061 pandoc. But we believe that in nearly all cases, it will be an
4062 accidental (and unwelcome) result
4064 * HTML reader:
4066 + Fixed some bad regressions in HTML table parser (#3280).
4067 This regression leads to the introduction of empty rows
4068 in some circumstances.
4069 + Understand `style=width:` as well as `width` in `col` (#3286).
4071 * RST reader:
4073 + Print warnings when keys, substitition, notes not found.
4074 Previously the parsers failed and we got raw text. Now we get a
4075 link with an empty URL, or empty inlines in the case of a note or
4076 substitution.
4078 + Fix hyperlink aliases (#3283).
4080 * Man writer: Ensure that periods are escaped at beginning of line
4081 (#3270).
4083 * LaTeX writer: Fix unnumbered headers when used with `--top-level`
4084 (#3272, Albert Krewinkel). Fix interaction of top-level divisions
4085 `part` or `chapter` with unnumbered headers when emitting LaTeX. Headers
4086 are ensured to be written using stared commands (like `\subsection*{}`).
4088 * LaTeX template: use comma not semicolon to separate keywords for
4089 `pdfkeywords`. Thanks to Wandmalfarbe.
4091 * Markdown writer: Fixed incorrect word wrapping (#3277). Previously pandoc
4092 would sometimes wrap lines too early due to this bug.
4094 * Text.Pandoc.Pretty: Added `afterBreak` [API change]. This makes it
4095 possible to insert escape codes for content that needs escaping at the
4096 beginning of a line.
4098 * Removed old MathMLInHTML.js from 2004, which should no longer
4099 be needed for MathML with modern browsers.
4101 * Fixed tests with dynamic linking (#2709).
4103 * Makefile: Use stack instead of cabal for targets. This is just
4104 a convenience for developers.
4106 * Fixed bash completion of filenames with space (#2749).
4108 * MANUAL: improved documentation on how to create a custom `reference.docx`.
4110 * Fix minor spelling typos in the manual (#3273, Anthony Geoghegan)
4112pandoc (1.19)
4114 * Changed resolution of filter paths.
4116 + We now first treat the argument of `--filter` as a full (absolute
4117 or relative) path, looking for a program there. If it's found, we
4118 run it.
4119 + If not, and if it is a simple program name or a relative path, we
4120 try resolving it relative to `$DATADIR/filters`.
4121 + If this fails, then we treat it as a program name and look in the
4122 user's PATH.
4123 + Removed a hardcoded '/' that may have caused problems with
4124 Windows paths.
4126 Previously if you did `--filter foo` and you had `foo` in your path and
4127 also an executable `foo` in your working directory, the one in the path
4128 would be used. Now the one in the working directory is used.
4130 In addition, when you do `--filter foo/bar.hs`, pandoc will now find a
4131 filter `$DATADIR/filters/foo/bar.hs` -- assuming there isn't a
4132 `foo/bar.hs` relative to the working directory.
4134 * Allow `file://` URIs as arguments (#3196). Also improved default reader
4135 format detection. Previously with a URI ending in .md or .markdown,
4136 pandoc would assume HTML input. Now it treats these as markdown.
4138 * Allow to overwrite top-level division type heuristics (#3258,
4139 Albert Krewinkel). Pandoc uses heuristics to determine the most
4140 reasonable top-level division type when emitting LaTeX or
4141 Docbook markup. It is now possible to overwrite this implicitly set
4142 top-level division via the `top-level-division` command line parameter.
4144 * Text.Pandoc.Options \[API changes\]:
4146 + Removed `writerStandalone` field in `WriterOptions`, made
4147 `writerTemplate` a `Maybe` value. Previously setting
4148 `writerStandalone = True` did nothing unless a template was provided
4149 in writerTemplate. Now a fragment will be generated if
4150 `writerTemplate` is `Nothing`; otherwise, the specified template
4151 will be used and standalone output generated.
4152 + `Division` has been renamed `TopLevelDivision` (#3197). The
4153 `Section`, `Chapter`, and `Part` constructors were renamed to
4154 `TopLevelSection`, `TopLevelChapter`, and
4155 `TopLevelPart`, respectively. An additional `TopLevelDefault`
4156 constructor was added, which is now also the new default value of
4157 the `writerTopLevelDivision` field in `WriterOptions`.
4159 * Improved error if they give wrong arg to `--top-level-division`.
4161 * Use new module from texmath to lookup MS font codepoints in Docx reader.
4162 Removed unexported module Text.Pandoc.Readers.Docx.Fonts. Its code now
4163 lives in texmath (0.9).
4165 * DocBook reader: Fixed xref lookup (#3243). It previously only worked
4166 when the qnames lacked the docbook namespace URI.
4168 * HTML reader:
4170 + Improved table parsing (#3027). We now check explicitly for non-1
4171 rowspan or colspan attributes, and fail when we encounter them.
4172 Previously we checked that each row had the same number of cells,
4173 but that could be true even with rowspans/colspans. And there are
4174 cases where it isn't true in tables that we can handle fine -- e.g.
4175 when a tr element is empty. So now we just pad rows with empty cells
4176 when needed.
4177 + Treat `<math>` as MathML by default unless something else is
4178 explicitly specified in xmlns. Provided it parses as MathML,
4179 of course. Also fixed default which should be to inline math if no
4180 display attribute is used.
4181 + Only treat "a" element as link if it has href (#3226). Otherwise
4182 treat as span.
4184 * Docx reader (Jesse Rosenthal):
4186 + Add a placeholder value for CHART. We wrap `[CHART]` in a
4187 `<span class="chart">`. Note that it maps to inlines because, in
4188 docx, anything in a drawing tag can be part of a larger paragraph.
4189 + Be more specific in parsing images We not only want `w:drawing`,
4190 because that could also include charts. Now we specify
4191 `w:drawing/pic:pic`. This shouldn't change behavior at all, but it's
4192 a first step toward allowing other sorts of drawing data as well.
4193 + Abstract out function to avoid code repetition.
4194 + Update tests for img title and alt (#3204).
4195 + Handle Alt text and titles in images. We use the "description" field
4196 as alt text and the "title" field as title. These can be accessed
4197 through the "Format Picture" dialog in Word.
4198 + Docx reader utils: handle empty namespace in `elemName`. Previously,
4199 if given an empty namespace `(elemName ns "" "foo")` `elemName`
4200 would output a QName with a `Just ""` namespace. This is never what
4201 we want. Now we output a `Nothing`. If someone *does* want a
4202 `Just ""` in the namespace, they can enter the QName
4203 value explicitly.
4205 * ODT reader/writer:
4207 + Inline code when text has a special style (Hubert Plociniczak). When
4208 a piece of text has a text `Source_Text` then we assume that this is
4209 a piece of the document that represents a code that needs to
4210 be inlined. Adapted the writer to also reflect that change.
4211 Previously it was just writing a 'preformatted' text using a
4212 non-distinguishable font style. Code blocks are still not recognized
4213 by the ODT reader. That's a separate issue.
4214 + Infer table's caption from the paragraph (#3224,
4215 Hubert Plociniczak). ODT's reader always put empty captions for the
4216 parsed tables. This commit
4218 1. checks paragraphs that follow the table definition
4219 2. treats specially a paragraph with a style named 'Table'
4220 3. does some postprocessing of the paragraphs that combines tables
4221 followed immediately by captions
4223 The ODT writer used the `TableCaption` style for the caption
4224 paragraph. This commit follows the OpenOffice approach which allows
4225 for appending captions to table but uses a built-in style named
4226 `Table` instead of `TableCaption`. Users of a custom `reference.odt`
4227 should change the style's name from `TableCaption` to `Table`.
4229 * ODT reader: Infer tables' header props from rows (#3199,
4230 Hubert Plociniczak). ODT reader simply provided an empty header list
4231 which meant that the contents of the whole table, even if not empty, was
4232 simply ignored. While we still do not infer headers we at least have to
4233 provide default properties of columns.
4235 * Markdown reader:
4237 + Allow reference link labels starting with `@...` if `citations`
4238 extension disabled (#3209). Example: in
4240 \[link text\]\[@a\]
4242 `link text` isn't hyperlinked because `[@a]` is parsed as
4243 a citation. Previously this happened whether or not the `citations`
4244 extension was enabled. Now it happens only if the `citations`
4245 extension is enabled.
4246 + Allow alignments to be specified in Markdown grid tables. For
4247 example,
4249 +-------+---------------+--------------------+
4250 | Right | Left | Centered |
4251 +=========:+:=================+:=============:+
4252 | Bananas | $1.34 | built-in wrapper |
4253 +-------+---------------+--------------------+
4255 + Allow Small Caps elements to be created using bracketed spans (as
4256 they already can be using HTML-syntax spans) (#3191, Kolen Cheung).
4258 * LaTeX reader:
4260 + Don't treat `\vspace` and `\hspace` as block commands (#3256).
4261 Fixed an error which came up, for example, with `\vspace` inside
4262 a caption. (Captions expect inlines.)
4263 + Improved table handling. We can now parse all of the tables emitted
4264 by pandoc in our tests. The only thing we don't get yet are
4265 alignments and column widths in more complex tables. See #2669.
4266 + Limited support for minipage.
4267 + Allow for `[]`s inside LaTeX optional args. Fixes cases like:
4268 + Handle BVerbatim from fancyvrb (#3203).
4269 + Handle hungarumlaut (#3201).
4270 + Allow beamer-style `<...>` options in raw LaTeX (also in Markdown)
4271 (#3184). This allows use of things like `\only<2,3>{my content}` in
4272 Markdown that is going to be converted to beamer.
4274 * Use pre-wrap for code in dzslides template (Nicolas Porcel). Otherwise
4275 overly long code will appear on every slide.
4277 * Org reader (Albert Krewinkel):
4279 + Respect column width settings (#3246). Table column properties can
4280 optionally specify a column's width with which it is displayed in
4281 the buffer. Some exporters, notably the ODT exporter in org-mode
4282 v9.0, use these values to calculate relative column widths. The org
4283 reader now implements the same behavior. Note that the org-mode
4284 LaTeX and HTML exporters in Emacs don't support this feature yet,
4285 which should be kept in mind by users who use the column
4286 widths parameters.
4287 + Allow HTML attribs on non-figure images (#3222). Images which are
4288 the only element in a paragraph can still be given HTML attributes,
4289 even if the image does not have a caption and is hence not a figure.
4290 The following will add set the `width` attribute of the image to
4291 `50%`:
4293 +ATTR\_HTML: :width 50%
4294 =======================
4296 \[\[file:image.jpg\]\]
4298 + Support `ATTR_HTML` for special blocks (#3182). Special
4299 blocks (i.e. blocks with unrecognized names) can be prefixed with an
4300 `ATTR_HTML` block attribute. The attributes defined in that
4301 meta-directive are added to the `Div` which is used to represent the
4302 special block.
4303 + Support the `todo` export option. The `todo` export option allows to
4304 toggle the inclusion of TODO keywords in the output. Setting this to
4305 `nil` causes TODO keywords to be dropped from headlines. The default
4306 is to include the keywords.
4307 + Add support for todo-markers. Headlines can have optional
4308 todo-markers which can be controlled via the `#+TODO`, `#+SEQ_TODO`,
4309 or `#+TYP_TODO` meta directive. Multiple such directives can be
4310 given, each adding a new set of recognized todo-markers. If no
4311 custom todo-markers are defined, the default `TODO` and `DONE`
4312 markers are used. Todo-markers are conceptually separate from
4313 headline text and are hence excluded when autogenerating
4314 headline IDs. The markers are rendered as spans and labelled with
4315 two classes: One class is the markers name, the other signals the
4316 todo-state of the marker (either `todo` or `done`).
4318 * LaTeX writer:
4320 + Use `\autocites*` when "suppress-author" citation used.
4321 + Ensure that simple tables have simple cells (#2666). If cells
4322 contain more than a single Plain or Para, then we need to set
4323 nonzero widths and put contents into minipages.
4324 + Remove invalid inlines in sections (#3218, Hubert Plociniczak).
4326 * Markdown writer:
4328 + Fix calculation of column widths for aligned multiline tables
4329 (#1911, Björn Peemöller). This also fixes excessive CPU and memory
4330 usage for tables when `--columns` is set in such a way that cells
4331 must be very tiny. Now cells are guaranteed to be big enough so that
4332 single words don't need to line break, even if this pushes the line
4333 length above the column width.
4334 + Use bracketed form for native spans when `bracketed_spans`
4335 enabled (#3229).
4336 + Fixed inconsistent spacing issue (#3232). Previously a tight bullet
4337 sublist got rendered with a blank line after, while a tight ordered
4338 sublist did not. Now we don't get the blank line in either case.
4339 + Fix escaping of spaces in super/subscript (#3225). Previously two
4340 backslashes were inserted, which gave a literal backslash.
4341 + Adjust widths in Markdown grid tables so that they match
4342 on round-trip.
4344 * Docx writer:
4346 + Give full detail when there are errors converting tex math.
4347 + Handle title text in images (Jesse Rosenthal). We already handled
4348 alt text. This just puts the image "title" into the docx
4349 "title" attr.
4350 + Fixed XML markup for empty cells (#3238). Previously the Compact
4351 style wasn't being applied properly to empty cells.
4353 * HTML writer:
4355 + Updated `renderHtml` import from blaze-html.
4357 * Text.Pandoc.Pretty:
4359 + Fixed some bugs that caused blank lines in tables (#3251). The bugs
4360 caused spurious blank lines in grid tables when we had things like
4361 `blankline $$ blankline`.
4362 + Add exported function `minOffet` \[API change\] (Björn Peemöller).
4363 + Added error message for illegal call to `block` (Björn Peemöller).
4365 * Text.Pandoc.Shared:
4367 + Put `warn` in MonadIO.
4368 + `fetchItem`: Better handling of protocol-relative URL (#2635). If
4369 URL starts with `//` and there is no "base URL" (as there would be
4370 if a URL were used on the command line), then default to http:.
4372 * Export Text.Pandoc.getDefaultExtensions \[API change\] (#3178).
4374 * In --version, trap error in `getAppUserDataDirectory` (#3241). This
4375 fixes a crash with `pandoc --version` on unusual systems with no real
4376 user (e.g. SQL Server 2016).
4378 * Added weigh-pandoc for memory usage diagnostics (#3169).
4380 * Use correct mime types for woff and woff2 (#3228).
4382 * Remove make\_travis\_yml.hs (#3235, Kolen Cheung).
4384 * changelog: Moved an item that was misplaced in the 1.17.2 section to the
4385 1.18 section where it belongs.
4387 * CONTRIBUTING.md: minor change in wording and punctuation (#3252,
4388 Kolen Cheung).
4390 * Further revisions to manual for `--version` changes (#3244).
4393pandoc (1.18)
4395 * Added `--list-input-formats`, `--list-output-formats`,
4396 `--list-extensions`, `--list-highlight-languages`, and
4397 `--list-highlight-styles` (#3173). Removed list of highlighting
4398 languages from `--version` output. Removed list of input and output
4399 formats from default `--help` output.
4401 * Added `--reference-location=block|section|document` option
4402 (Jesse Rosenthal). This determines whether Markdown link references
4403 and footnotes are placed at the end of the document, the end of the
4404 section, or the end of the top-level block.
4406 * Added `--top-level-division=section|chapter|part` (Albert Krewinkel).
4407 This determines what a level-1 header corresponds to in LaTeX,
4408 ConTeXt, DocBook, and TEI output. The default is `section`.
4409 The `--chapters` option has been deprecated in favor of
4410 `--top-level-division=chapter`.
4412 * Added `LineBlock` constructor for `Block` (Albert Krewinkel). This
4413 is now used in parsing RST and Markdown line blocks, DocBook
4414 `linegroup`/`line` combinations, and Org-mode `VERSE` blocks.
4415 Previously `Para` blocks with hard linebreaks were used. `LineBlock`s
4416 are handled specially in the following output formats: AsciiDoc
4417 (as `[verse]` blocks), ConTeXt (`\startlines`/`\endlines`),
4418 HTML (`div` with a style), Markdown (line blocks if `line_blocks`
4419 is enabled), Org-mode (`VERSE` blocks), RST (line blocks). In
4420 other output formats, a paragraph with hard linebreaks is emitted.
4422 * Allow binary formats to be written to stdout (but not to tty) (#2677).
4423 Only works on posix, since we use the unix library to check whether
4424 output is to tty. On Windows, pandoc works as before and always requires
4425 an output file parameter for binary formats.
4427 * Changed JSON output format (Jesse Rosenthal). Previously we used
4428 generically generated JSON, but this was subject to change depending
4429 on the version of aeson pandoc was compiled with. To ensure stability,
4430 we switched to using manually written ToJSON and FromJSON
4431 instances, and encoding the API version. **Note:** pandoc filter
4432 libraries will need to be revised to handle the format change.
4433 Here is a summary of the essential changes:
4435 + The toplevel JSON format is now `{"pandoc-api-version" :
4436 [MAJ, MIN, REV], "meta" : META, "blocks": BLOCKS}`
4437 instead of `[{"unMeta": META}, [BLOCKS]]`.
4438 Decoding fails if the major and minor version numbers don't
4439 match.
4440 + Leaf nodes no longer have an empty array for their "c" value.
4441 Thus, for example, a `Space` is encoded as `{"t":"Space"}`
4442 rather than `{"t":"Space","c":[]}` as before.
4444 * Removed `tests/Tests/Arbitrary.hs` and added a `Text.Pandoc.Arbitrary`
4445 module to pandoc-types (Jesse Rosenthal). This makes it easier
4446 to use QuickCheck with pandoc types outside of pandoc itself.
4448 * Add `bracketed_spans` Markdown extension, enabled by default
4449 in pandoc `markdown`. This allows you to create a native span
4450 using this syntax: `[Here is my span]{#id .class key="val"}`.
4452 * Added `angle_brackets_escapable` Markdown extension (#2846).
4453 This is needed because github flavored Markdown has a slightly
4454 different set of escapable symbols than original Markdown;
4455 it includes angle brackets.
4457 * Export `Text.Pandoc.Error` in `Text.Pandoc` [API change].
4459 * Print highlighting-kate version in `--version`.
4461 * `Text.Pandoc.Options`:
4463 + `Extension` has new constructors `Ext_brackted_spans` and
4464 `Ext_angle_brackets_escapable` [API change].
4465 + Added `ReferenceLocation` type [API change] (Jesse Rosenthal).
4466 + Added `writerReferenceLocation` field to `WriterOptions` (Jesse
4467 Rosenthal).
4469 * `--filter`: we now check `$DATADIR/filters` for filters before
4470 looking in the path (#3127, Jesse Rosenthal, thanks to Jakob
4471 Voß for the idea). Filters placed in this directory need not
4472 be executable; if the extension is `.hs`, `.php`, `.pl`, `.js`,
4473 or `.rb`, pandoc will run the right interpreter.
4475 * For `--webtex`, replace deprecated Google Chart API by CodeCogs as
4476 default (Kolen Cheung).
4478 * Removed `raw_tex` extension from `markdown_mmd` defaults (Kolen Cheung).
4480 * Execute .js filters with node (Jakob Voß).
4482 * Textile reader:
4484 + Support `bc..` extended code blocks (#3037). Also, remove trailing
4485 newline in code blocks (consistently with Markdown reader).
4486 + Improve table parsing. We now handle cell and row attributes, mostly
4487 by skipping them. However, alignments are now handled properly.
4488 Since in pandoc alignment is per-column, not per-cell, we
4489 try to devine column alignments from cell alignments.
4490 Table captions are also now parsed, and textile indicators
4491 for thead and tfoot no longer cause parse failure. (However,
4492 a row designated as tfoot will just be a regular row in pandoc.)
4493 + Improve definition list parsing. We now allow multiple terms
4494 (which we concatenate with linebreaks). An exponential parsing
4495 bug (#3020) is also fixed.
4496 + Disallow empty URL in explicit link (#3036).
4498 * RST reader:
4500 + Use Div instead of BlockQuote for admonitions (#3031).
4501 The Div has class `admonition` and (if relevant) one of the
4502 following: `attention`, `caution`, `danger`, `error`, `hint`,
4503 `important`, `note`, `tip`, `warning`. **Note:** This will change
4504 the rendering of some RST documents! The word ("Warning", "Attention",
4505 etc.) is no longer added; that must be done with CSS or a filter.
4506 + A Div is now used for `sidebar` as well.
4507 + Skip whitespace before note (Jesse Rosenthal, #3163). RST requires a
4508 space before a footnote marker. We discard those spaces so that footnotes
4509 will be adjacent to the text that comes before it. This is in line with
4510 what rst2latex does.
4511 + Allow empty lines when parsing line blocks (Albert Krewinkel).
4513 * Markdown reader:
4515 + Allow empty lines when parsing line blocks (Albert Krewinkel).
4516 + Allow attributes on autolinks (#3183, Daniele D'Orazio).
4518 * LaTeX reader:
4520 + More robust parsing of unknown environments (#3026).
4521 We no longer fail on things like `^` inside options for tikz.
4522 + Be more forgiving of non-standard characters, e.g. `^` outside of math.
4523 Some custom environments give these a meaning, so we should try not to
4524 fall over when we encounter them.
4525 + Drop duplicate `*` in bibtexKeyChars (Albert Krewinkel)
4527 * MediaWiki reader:
4529 + Fix for unquoted attribute values in mediawiki tables (#3053).
4530 Previously an unquoted attribute value in a table row
4531 could cause parsing problems.
4532 + Improved treatment of verbatim constructions (#3055).
4533 Previously these yielded strings of alternating Code and Space
4534 elements; we now incorporate the spaces into the Code. Emphasis
4535 etc. is still possible inside these.
4536 + Properly interpret XML tags in pre environments (#3042). They are meant
4537 to be interpreted as literal text.
4539 * EPUB reader: don't add root path to data: URIs (#3150).
4540 Thanks to @lep for the bug report and patch.
4542 * Org reader (Albert Krewinkel):
4544 + Preserve indentation of verse lines (#3064). Leading spaces in verse
4545 lines are converted to non-breaking spaces, so indentation is preserved.
4546 + Ensure image sources are proper links. Image sources as those in plain
4547 images, image links, or figures, must be proper URIs or relative file
4548 paths to be recognized as images. This restriction is now enforced
4549 for all image sources. This also fixes the reader's usage of uncleaned
4550 image sources, leading to `file:` prefixes not being deleted from
4551 figure images. Thanks to @bsag for noticing this bug.
4552 + Trim verse lines properly (Albert Krewinkel).
4553 + Extract meta parsing code to module. Parsing of meta-data is well
4554 separable from other block parsing tasks. Moving into new module to
4555 get small files and clearly arranged code.
4556 + Read markup only for special meta keys. Most meta-keys should be read
4557 as normal string values, only a few are interpreted as marked-up text.
4558 + Allow multiple, comma-separated authors. Multiple authors can be
4559 specified in the `#+AUTHOR` meta line if they are given as a
4560 comma-separated list.
4561 + Give precedence to later meta lines. The last meta-line of any given
4562 type is the significant line. Previously the value of the first line
4563 was kept, even if more lines of the same type were encountered.
4564 + Read LaTeX_header as header-includes. LaTeX-specific header commands
4565 can be defined in `#+LaTeX_header` lines. They are parsed as
4566 format-specific inlines to ensure that they will only show up in LaTeX
4567 output.
4568 + Set documentclass meta from LaTeX_class.
4569 + Set classoption meta from LaTeX_class_options.
4570 + Read HTML_head as header-includes. HTML-specific head content can be
4571 defined in `#+HTML_head` lines. They are parsed as format-specific
4572 inlines to ensure that they will only show up in HTML output.
4573 + Respect `author` export option. The `author` option controls whether
4574 the author should be included in the final markup. Setting
4575 `#+OPTIONS: author:nil` will drop the author from the final meta-data
4576 output.
4577 + Respect `email` export option. The `email` option controls whether the
4578 email meta-field should be included in the final markup. Setting
4579 `#+OPTIONS: email:nil` will drop the email field from the final
4580 meta-data output.
4581 + Respect `creator` export option. The `creator` option controls whether
4582 the creator meta-field should be included in the final markup. Setting
4583 `#+OPTIONS: creator:nil` will drop the creator field from the final
4584 meta-data output. Org-mode recognizes the special value `comment` for
4585 this field, causing the creator to be included in a comment. This is
4586 difficult to translate to Pandoc internals and is hence interpreted the
4587 same as other truish values (i.e. the meta field is kept if it's
4588 present).
4589 + Respect unnumbered header property (#3095). Sections the `unnumbered`
4590 property should, as the name implies, be excluded from the automatic
4591 numbering of section provided by some output formats. The Pandoc
4592 convention for this is to add an "unnumbered" class to the header. The
4593 reader treats properties as key-value pairs per default, so a special
4594 case is added to translate the above property to a class instead.
4595 + Allow figure with empty caption (Albert Krewinkel, #3161).
4596 A `#+CAPTION` attribute before an image is enough to turn an image into
4597 a figure. This wasn't the case because the `parseFromString` function,
4598 which processes the caption value, would fail on empty values. Adding
4599 a newline character to the caption value fixes this.
4601 * Docx reader:
4603 + Use XML convenience functions (Jesse Rosenthal).
4604 The functions `isElem` and `elemName` (defined in Docx/Util.hs) make
4605 the code a lot cleaner than the original XML.Light functions, but they
4606 had been used inconsistently. This puts them in wherever applicable.
4607 + Handle anchor spans with content in headers. Previously, we would only
4608 be able to figure out internal links to a header in a docx if the
4609 anchor span was empty. We change that to read the inlines out of the
4610 first anchor span in a header.
4611 + Let headers use existing id. Previously we always generated an id for
4612 headers (since they wouldn't bring one from Docx). Now we let it use an
4613 existing one if possible. This should allow us to recurs through anchor
4614 spans.
4615 + Use all anchor spans for header ids. Previously we only used the first
4616 anchor span to affect header ids. This allows us to use all the anchor
4617 spans in a header, whether they're nested or not (#3088).
4618 + Test for nested anchor spans in header. This ensures that anchor spans
4619 in header with content (or with other anchor spans inside) will resolve
4620 to links to a header id properly.
4622 * ODT reader (Hubert Plociniczak)
4624 + Include list's starting value. Previously the starting value of
4625 the lists' items has been hardcoded to 1. In reality ODT's list
4626 style definition can provide a new starting value in one of its
4627 attributes.
4628 + Infer caption from the text following the image.
4629 Frame can contain other frames with the text boxes.
4630 + Add `fig:` to title for Image with a caption (as expected
4631 by pandoc's writers).
4632 + Basic support for images in ODT documents.
4633 + Don't duplicate text for anchors (#3143). When creating an anchor
4634 element we were adding its representation as well as the original
4635 content, leading to text duplication.
4637 * DocBook writer:
4639 + Include an anchor element when a div or span has an id (#3102).
4640 Note that DocBook does not have a class attribute, but at least this
4641 provides an anchor for internal links.
4643 * LaTeX writer:
4645 + Don't use * for unnumbered paragraph, subparagraph. The starred
4646 variants don't exist. This helps with part of #3058...it gets rid of
4647 the spurious `*`s. But we still have numbers on the 4th and 5th level
4648 headers.
4649 + Properly escape backticks in verbatim (#3121, Jesse Rosenthal).
4650 Otherwise they can cause unintended ligatures like `` ?` ``.
4651 + Handle NARRAOW NO-BREAK SPACE into LaTeX (Vaclav Zeman) as `\,`.
4652 + Don't include `[htbp]` placement for figures (#3103, Václav Haisman).
4653 This allows figure placement defaults to be changed by the user
4654 in the template.
4656 * HTML writer (slide show formats): In slide shows, don't change slide title
4657 to level 1 header (#2221).
4659 * TEI writer: remove heuristic to detect book template (Albert Krewinkel).
4660 TEI doesn't have `<book>` elements but only generic `<divN>` division
4661 elements. Checking the template for a trailing `</book>` is nonsensical.
4663 * MediaWiki writer: transform filename with underscores in images (#3052).
4664 `foo bar.jpg` becomes `foo_bar.jpg`. This was already done
4665 for internal links, but it also needs to happen for images.
4667 * ICML writer: replace partial function (!!) in table handling (#3175,
4668 Mauro Bieg).
4670 * Man writer: allow section numbers that are not a single digit (#3089).
4672 * AsciiDoc writer: avoid unnecessary use of "unconstrained" emphasis
4673 (#3068). In AsciiDoc, you must use a special form of emphasis
4674 (double `__`) for intraword emphasis. Pandoc was previously using
4675 this more than necessary.
4677 * EPUB writer: use stringify instead of plain writer for metadata
4678 (#3066). This means that underscores won't be used for emphasis,
4679 or CAPS for bold. The metadata fields will just have unadorned
4680 text.
4682 * Docx Writer:
4684 + Implement user-defined styles (Jesse Rosenthal). Divs and Spans
4685 with a `custom-style` key in the attributes will apply the corresponding
4686 key to the contained blocks or inlines.
4687 + Add ReaderT env to the docx writer (Jesse Rosenthal).
4688 + Clean up and streamline RTL behavior (Jesse Rosenthal, #3140).
4689 You can set `dir: rtl` in YAML metadata, or use `-M dir=rtl`
4690 on the command line. For finer-grained control, you can set
4691 the `dir` attribute in Div or Span elements.
4693 * Org writer (Albert Krewinkel):
4695 + Remove blank line after figure caption. Org-mode only treats an image
4696 as a figure if it is directly preceded by a caption.
4697 + Ensure blank line after figure. An Org-mode figure should be surrounded
4698 by blank lines. The figure would be recognized regardless, but images
4699 in the following line would unintentionally be treated as figures as
4700 well.
4701 + Ensure link targets are paths or URLs. Org-mode treats links as
4702 document internal searches unless the link target looks like a URL or
4703 file path, either relative or absolute. This change ensures that this
4704 is always the case.
4705 + Translate language identifiers. Pandoc and Org-mode use different
4706 programming language identifiers. An additional translation between
4707 those identifiers is added to avoid unexpected behavior. This fixes a
4708 problem where language specific source code would sometimes be output
4709 as example code.
4710 + Drop space before footnote markers (Albert Krewinkel, #3162).
4711 The writer no longer adds an extra space before footnote markers.
4713 * Markdown writer:
4715 + Don't emit HTML for tables unless `raw_html` extension is set (#3154).
4716 Emit `[TABLE]` if no suitable table formats are enabled and raw HTML
4717 is disabled.
4718 + Check for the `raw_html` extension before emitting a raw HTML block.
4719 + Abstract out note/ref function (Jesse Rosenthal).
4720 + Add ReaderT monad for environment variables (Jesse Rosenthal).
4722 * HTML, EPUB, slidy, revealjs templates: Use `<p>` instead of `<h1>` for
4723 subtitle, author, date (#3119). Note that, as a result of this change,
4724 authors may need to update CSS.
4726 * revealjs template: Added `notes-server` option
4727 (jgm/pandoc-templates#212, Yoan Blanc).
4729 * Beamer template:
4731 + Restore whitespace between paragraphs. This was
4732 a regression in the last release (jgm/pandoc-templates#207).
4733 + Added `themeoptions` variable (Carsten Gips).
4734 + Added `beamerarticle` variable. This causes the `beamerarticle`
4735 package to be loaded in beamer, to produce an article from beamer
4736 slides. (Carsten Gips)
4737 + Added support for `fontfamilies` structured variable
4738 (Artem Klevtsov).
4739 + Added hypersetup options (Jake Zimmerman).
4741 * LaTeX template:
4743 + Added dummy definition for `\institute`.
4744 This isn't a standard command, and we want to avoid a crash when
4745 `institute` is used with the default template.
4746 + Define default figure placement (Václav Haisman), since pandoc
4747 no longer includes `[htbp]` for figures. Users with custom templates
4748 will want to add this. See #3103.
4749 + Use footnote package to fix notes in tables (jgm/pandoc-templates#208,
4750 Václav Haisman).
4752 * Moved template compiling/rendering code to a separate library.
4753 `doctemplates`. This allows the pandoc templating system to be
4754 used independently.
4756 * Text.Pandoc.Error: Fix out of index error in `handleError`
4757 (Matthew Pickering). The fix is to not try to show the exact line when
4758 it would cause an out-of-bounds error as a result of included files.
4760 * Text.Pandoc.Shared: Add `linesToBlock` function (Albert Krewinkel).
4762 * Text.Pandoc.Parsing.emailAddress: tighten up parsing of email
4763 addresses. Technically `**@user` is a valid email address, but if we
4764 allow things like this, we get bad results in markdown flavors
4765 that autolink raw email addresses (see #2940). So we exclude a few
4766 valid email addresses in order to avoid these more common bad cases.
4768 * Text.Pandoc.PDF: Don't crash with nonexistent image (#3100). Instead,
4769 emit the alt text, emphasized. This accords with what the ODT writer
4770 currently does. The user will still get a warning about a nonexistent
4771 image.
4773 * Fix example in API documentation (#3176, Thomas Weißschuh).
4775 * Tell where to get tarball in INSTALL (#3062).
4777 * Rename README to MANUAL.txt and add GitHub-friendly README.md
4778 (Albert Krewinkel, Kolen Cheung).
4780 * Replace COPYING with Markdown version COPYING.md from GNU (Kolen Cheung).
4782 * MANUAL.txt:
4784 + Put note on structured vars in separate paragraph (#2148, Albert
4785 Krewinkel). Make it clearer that structured author variables require a
4786 custom template
4787 + Note that `--katex` works best with `html5` (#3077).
4788 + Fix the LaTeX and EPUB links in manual (Morton Fox).
4789 + Document `biblio-title` variable.
4791 * Improve spacing of footnotes in `--help` output (Waldir Pimenta).
4793 * Update KaTeX to v0.6.0 (Kolen Cheung).
4795 * Allow latest dependencies.
4797 * Use texmath 0.8.6.6 (#3040).
4799 * Allow http-client 0.4.30, which is the version in stackage lts.
4800 Previously we required 0.5.
4801 Remove CPP conditionals for earlier versions.
4803 * Remove support for GHC < 7.8 (Jesse Rosenthal).
4805 + Remove Compat.Monoid.
4806 + Remove an inline monad compatibility macro.
4807 + Remove Text.Pandoc.Compat.Except.
4808 + Remove directory compat.
4809 + Change constraint on mtl.
4810 + Remove unnecessary CPP condition in UTF8.
4811 + Bump base lower bound to 4.7.
4812 + Remove 7.6 build from .travis.yaml.
4813 + Bump supported ghc version in CONTRIBUTING.md.
4814 + Add note about GHC version support to INSTALL.
4815 + Remove GHC 7.6 from list of tested versions (Albert Krewinkel).
4816 + Remove TagSoup compat.
4817 + Add EOL note to time compat module. Because time 1.4 is a boot library
4818 for GHC 7.8, we will support the compatibility module as long as we
4819 support 7.8. But we should be clear about when we will no longer need
4820 it.
4821 + Remove blaze-html CPP conditional.
4822 + Remove unnecessary CPP in custom Prelude.
4824pandoc (1.17.2)
4826 * Added Zim Wiki writer, template and tests. `zimwiki` is now
4827 a valid output format. (Alex Ivkin)
4829 * Changed email-obfuscation default to no obfuscation (#2988).
4830 + `writerEmailObfuscation` in `defaultWriterOptions` is now
4831 `NoObfuscation`.
4832 + the default for the command-line `--email-obfuscation` option is
4833 now `none`.
4835 * Docbook writer: Declare xlink namespace in Docbook5 output (Ivo Clarysse).
4837 * Org writer:
4839 + Support arbitrary raw inlines (Albert Krewinkel).
4840 Org mode allows arbitrary raw inlines ("export snippets" in Emacs
4841 parlance) to be included as `@@format:raw foreign format text@@`.
4842 + Improve Div handling (Albert Krewinkel). Div blocks handling is
4843 changed to make the output look more like idiomatic org mode:
4844 - Div-wrapped content is output as-is if the div's attribute is the
4845 null attribute.
4846 - Div containers with an id but neither classes nor key-value pairs
4847 are unwrapped and the id is added as an anchor.
4848 - Divs with classes associated with greater block elements are
4849 wrapped in a `#+BEGIN`...`#+END` block.
4850 - The old behavior for Divs with more complex attributes is kept.
4852 * HTML writer:
4854 + Better support for raw LaTeX environments (#2758).
4855 Previously we just passed all raw TeX through when MathJax was used for
4856 HTML math. This passed through too much. With this patch, only raw
4857 LaTeX environments that MathJax can handle get passed through.
4858 This patch also causes raw LaTeX environments to be treated
4859 as math, when possible, with MathML and WebTeX output.
4861 * Markdown writer: use raw HTML for simple, pipe tables with linebreaks
4862 (#2993). Markdown line breaks involve a newline, and simple and pipe
4863 tables can't contain one.
4865 * Make --webtex work with the Markdown writer (#1177).
4866 This is a convenient option for people using
4867 websites whose Markdown flavors don't provide for math.
4869 * Docx writer:
4871 + Set paragraph to FirstPara after display math (Jesse Rosenthal).
4872 We treat display math like block quotes, and apply FirstParagraph style
4873 to paragraphs that follow them. These can be styled as the user
4874 wishes. (But, when the user is using indentation, this allows for
4875 paragraphs to continue after display math without indentation.)
4876 + Use actual creation time as doc prop (Jesse Rosenthal).
4877 Previously, we had used the user-supplied date, if available, for Word's
4878 document creation metadata. This could lead to weird results, as in
4879 cases where the user post-dates a document (so the modification might be
4880 prior to the creation). Here we use the actual computer time to set the
4881 document creation.
4883 * LaTeX writer:
4885 + Don't URI-escape image source (#2825). Usually this is a local file,
4886 and replacing spaces with `%20` ruins things.
4887 + Allow 'standout' as a beamer frame option (#3007).
4888 `## Slide title {.standout}`.
4890 * RST reader: Fixed links with no explicit link text. The link
4891 `` `<foo>`_ `` should have `foo` as both its link text and its URL.
4892 See RST spec at <http://docutils.sourceforge.net/docs/ref/rst/restructuredtext.html#embedded-uris-and-aliases>
4893 Closes Debian #828167 -- reported by Christian Heller.
4895 * Textile reader:
4897 + Fixed attributes (#2984). Attributes can't be followed by
4898 a space. So, `_(class)emph_` but `_(noclass) emph_`.
4899 + Fixed exponential parsing bug (#3020).
4900 + Fix overly aggressive interpretation as images (#2998).
4901 Spaces are not allowed in the image URL in textile.
4903 * LaTeX reader:
4905 + Fix `\cite` so it is a NormalCitation not AuthorInText.
4906 + Strip off double quotes around image source if present (#2825).
4907 Avoids interpreting these as part of the literal filename.
4909 * Org reader:
4911 + Add semicolon to list of special chars (Albert Krewinkel)
4912 Semicolons are used as special characters in citations syntax. This
4913 ensures the correct parsing of Pandoc-style citations: `[prefix; @key;
4914 suffix]`. Previously, parsing would have failed unless there was a space
4915 or other special character as the last <prefix> character.
4916 + Add support for "Berkeley-style" cites (Albert Krewinkel, #1978).
4917 A specification for an official Org-mode citation syntax was drafted by
4918 Richard Lawrence and enhanced with the help of others on the orgmode
4919 mailing list. Basic support for this citation style is added to the
4920 reader.
4921 + Support arbitrary raw inlines (Albert Krewinkel).
4922 Org mode allows arbitrary raw inlines ("export snippets" in Emacs
4923 parlance) to be included as `@@format:raw foreign format text@@`.
4924 + Remove partial functions (Albert Krewinkel, #2991).
4925 Partial functions like `head` lead to avoidable errors and should be
4926 avoided. They are replaced with total functions.
4927 + Support figure labels (Albert Krewinkel, #2496, #2999).
4928 Figure labels given as `#+LABEL: thelabel` are used as the ID of the
4929 respective image. This allows e.g. the LaTeX to add proper `\label`
4930 markup.
4931 + Improve tag and properties type safety (Albert Krewinkel).
4932 Specific newtype definitions are used to replace stringly typing of tags
4933 and properties. Type safety is increased while readability is improved.
4934 + Parse as headlines, convert to blocks (Albert Krewinkel).
4935 Emacs org-mode is based on outline-mode, which treats documents as trees
4936 with headlines are nodes. The reader is refactored to parse into a
4937 similar tree structure. This simplifies transformations acting on
4938 document (sub-)trees.
4939 * Refactor comment tree handling (Albert Krewinkel).
4940 Comment trees were handled after parsing, as pattern matching on lists
4941 is easier than matching on sequences. The new method of reading
4942 documents as trees allows for more elegant subtree removal.
4943 * Support archived trees export options (Albert Krewinkel).
4944 Handling of archived trees can be modified using the `arch` option.
4945 Archived trees are either dropped, exported completely, or collapsed to
4946 include just the header when the `arch` option is nil, non-nil, or
4947 `headline`, respectively.
4948 * Put export setting parser into module (Albert Krewinkel).
4949 Export option parsing is distinct enough from general block parsing to
4950 justify putting it into a separate module.
4951 * Support headline levels export setting (Albert Krewinkel).
4952 The depths of headlines can be modified using the `H` option. Deeper
4953 headlines will be converted to lists.
4954 * Replace ugly code with view pattern (Albert Krewinkel).
4955 Some less-than-smart code required a pragma switching of overlapping
4956 pattern warnings in order to compile seamlessly. Using view patterns
4957 makes the code easier to read and also doesn't require overlapping
4958 pattern checks to be disabled.
4959 * Fix parsing of verbatim inlines (Albert Krewinkel, #3016).
4960 Org rules for allowed characters before or after markup chars were not
4961 checked for verbatim text. This resultet in wrong parsing outcomes of
4962 if the verbatim text contained e.g. space enclosed markup characters as
4963 part of the text (`=is_substr = True=`). Forcing the parser to update
4964 the positions of allowed/forbidden markup border characters fixes this.
4966 * LaTeX template: fix for obscure hyperref/xelatex issue.
4967 Here's a minimal case:
4969 \documentclass[]{article}
4970 \usepackage{hyperref}
4971 \begin{document}
4972 \section{\%á}
4973 \end{document}
4975 Without this change, this fails on the second invocation of xelatex.
4976 This affects inputs this like `# %á` with pdf output via xelatex.
4978 * trypandoc: call results 'html' instead of 'result'.
4979 This is for better compatibility with babelmark2.
4981 * Document MultiMarkdown as input/output format (Albert Krewinkel, #2973).
4982 MultiMarkdown was only mentioned as a supported Markdown dialect but not
4983 as a possible input or output format. A brief mention is added
4984 everywhere the other supported markdown dialects are mentioned.
4986 * Document Org mode as a format containing raw HTML (Albert Krewinkel)
4987 Raw HTML is kept when the output format is Emacs Org mode.
4989 * Implement `RawInline` and `RawBlock` in sample lua custom writer (#2985).
4991 * Text.Pandoc.Shared:
4993 + Introduce blocksToInlines function (Jesse Rosenthal).
4994 This is a lossy function for converting `[Block] -> [Inline]`. Its main
4995 use, at the moment, is for docx comments, which can contain arbitrary
4996 blocks (except for footnotes), but which will be converted to spans.
4997 This is, at the moment, pretty useless for everything but the basic
4998 `Para` and `Plain` comments. It can be improved, but the docx reader
4999 should probably emit a warning if the comment contains more than this.
5000 + Add BlockQuote to blocksToInlines (Jesse Rosenthal).
5001 + Add further formats for `normalizeDate` (Jesse Rosenthal).
5002 We want to avoid illegal dates -- in particular years with greater than
5003 four digits. We attempt to parse series of digits first as `%Y%m%d`, then
5004 `%Y%m`, and finally `%Y`.
5005 + `normalizeDate` should reject illegal years (Jesse Rosenthal).
5006 We only allow years between 1601 and 9999, inclusive. The ISO 8601
5007 actually says that years are supposed to start with 1583, but MS Word
5008 only allows 1601-9999. This should stop corrupted word files if the date
5009 is out of that range, or is parsed incorrectly.
5010 + Improve year sanity check in normalizeDate (Jesse Rosenthal).
5011 Previously we parsed a list of dates, took the first one, and then
5012 tested its year range. That meant that if the first one failed, we
5013 returned nothing, regardless of what the others did. Now we test for
5014 sanity before running `msum` over the list of Maybe values. Anything
5015 failing the test will be Nothing, so will not be a candidate.
5017 * Docx reader:
5019 + Add simple comment functionality. (Jesse Rosenthal).
5020 This adds simple track-changes comment parsing to the docx reader. It is
5021 turned on with `--track-changes=all`. All comments are converted to
5022 inlines, which can list some information. In the future a warning will be
5023 added for comments with formatting that seems like it will be excessively
5024 denatured. Note that comments can extend across blocks. For that reason
5025 there are two spans: `comment-start` and `comment-end`. `comment-start`
5026 will contain the comment. `comment-end` will always be empty. The two
5027 will be associated by a numeric id.
5028 + Enable warnings in top-level reader (Jesse Rosenthal).
5029 Previously we had only allowed for warnings in the parser. Now we allow
5030 for them in the `Docx.hs` as well. The warnings are simply concatenated.
5031 + Add warning for advanced comment formatting. (Jesse Rosenthal).
5032 We can't guarantee we'll convert every comment correctly, though we'll
5033 do the best we can. This warns if the comment includes something other
5034 than Para or Plain.
5035 + Add tests for warnings. (Jesse Rosenthal).
5036 + Add tests for comments (Jesse Rosenthal).
5037 We test for comments, using all track-changes options. Note that we
5038 should only output comments if `--track-changes=all`. We also test for
5039 emitting warnings if there is complicated formatting.
5041 * README: update to include track-changes comments. (Jesse Rosenthal)
5043 * Improved Windows installer - don't ignore properties set on command-line.
5044 See #2708. Needs testing to see if this resolves the issue.
5045 Thanks to @nkalvi.
5047 * Process markdown extensions on command line in L->R order (#2995).
5048 Previously they were processed, very unintuitively, in R->L
5049 order, so that `markdown-tex_math_dollars+tex_math_dollars`
5050 had `tex_math_dollars` disabled.
5052 * Added `secnumdepth` variable to LaTeX template (#2920).
5054 * Include table of contents in README.html in Windows package.
5056 * Writers: treat SoftBreak as space for stripping (Jesse Rosenthal)
5057 In Writers.Shared, we strip leading and trailing spaces for display
5058 math. Since SoftBreak's are treated as spaces, we should strip those
5059 too.
5061 * beamer, latex templates: pass biblatexoptions directly in package load.
5062 This allows runtime optinos to be used. Fixes jgm/pandoc-citeproc#201
5064 * CPP workaround for deprecation of `parseUrl` in http-client.
5066 * Removed some redundant class constraints.
5068 * make_oxs_package.sh - use OSX env variable.
5070 * Replaced INSTALL with INSTALL.md, incorporating INSTALL and the
5071 old installing page from website.
5073 * Added `winpkg` target to Makefile. This downloads the windows package
5074 from appveyor and signs it using the key.
5076 * Document Org mode as a format containing raw TeX (Albert Krewinkel).
5077 Raw TeX is kept verbatim when the output format is Emacs Org mode.
5079 * Support math with haddock-library >= 1.4.
5081 * Removed `-rtsopts` from library stanza. It has no effect, and Hackage
5082 wouldn't accept the package.
5084 * Update library dependency versions.
5086pandoc (1.17.1)
5088 * New output format: `docbook5` (Ivo Clarysse).
5090 * `Text.Pandoc.Options`: Add `writerDocBook5` to `WriterOptions`
5091 (API change).
5093 * Org writer:
5095 + Add :PROPERTIES: drawer support (Albert Krewinkel, #1962).
5096 This allows header attributes to be added to org documents in the form
5097 of `:PROPERTIES:` drawers. All available attributes are stored as
5098 key/value pairs. This reflects the way the org reader handles
5099 `:PROPERTIES:` blocks.
5100 + Add drawer capability (Carlos Sosa). For the implementation of the
5101 Drawer element in the Org Writer, we make use of a generic Block
5102 container with attributes. The presence of a `drawer` class defines
5103 that the `Div` constructor is a drawer. The first class defines the
5104 drawer name to use. The key-value list in the attributes defines
5105 the keys to add inside the Drawer. Lastly, the list of Block elements
5106 contains miscellaneous blocks elements to add inside of the Drawer.
5107 + Use `CUSTOM_ID` in properties (Albert Krewinkel). The `ID` property is
5108 reserved for internal use by Org-mode and should not be used.
5109 The `CUSTOM_ID` property is to be used instead, it is converted to the
5110 `ID` property for certain export format.
5112 * LaTeX writer:
5114 + Ignore `--incremental` unless output format is beamer (#2843).
5115 + Fix polyglossia to babel env mapping (Mauro Bieg, #2728).
5116 Allow for optional argument in square brackets.
5117 + Recognize `la-x-classic` as Classical Latin (Andrew Dunning).
5118 This allows one to access the hyphenation patterns in CTAN's
5119 hyph-utf8.
5120 + Add missing languages from hyph-utf8 (Andrew Dunning).
5121 + Improve use of `\strut` with `\minipage` inside tables
5122 (Jose Luis Duran). This improves spacing in multiline
5123 tables.
5124 + Use `{}` around options containing special chars (#2892).
5125 + Avoid lazy `foldl`.
5126 + Don't escape underscore in labels (#2921). Previously they were
5127 escaped as `ux5f`.
5128 + brazilian -> brazil for polyglossia (#2953).
5130 * HTML writer: Ensure mathjax link is added when math appears in footnote
5131 (#2881). Previously if a document only had math in a footnote, the
5132 MathJax link would not be added.
5134 * EPUB writer: set `navpage` variable on nav page.
5135 This allows templates to treat it differently.
5137 * DocBook writer:
5139 + Use docbook5 if `writerDocbook5` is set (Ivo Clarysse).
5140 + Properly handle `ulink`/`link` (Ivo Clarysse).
5142 * EPUB reader:
5144 + Unescape URIs in spine (#2924).
5145 + EPUB reader: normalise link id (Mauro Bieg).
5147 * Docx Reader:
5149 + Parse `moveTo` and `moveFrom` (Jesse Rosenthal).
5150 `moveTo` and `moveFrom` are track-changes tags that are used when a
5151 block of text is moved in the document. We now recognize these tags and
5152 treat them the same as `insert` and `delete`, respectively. So,
5153 `--track-changes=accept` will show the moved version, while
5154 `--track-changes=reject` will show the original version.
5155 + Tests for track-changes moving (Jesse Rosenthal).
5157 * ODT, EPUB, Docx readers: throw `PandocError` on unzip failure
5158 (Jesse Rosenthal) Previously, `readDocx`, `readEPUB`, and `readOdt`
5159 would error out if zip-archive failed. We change the archive extraction
5160 step from `toArchive` to `toArchiveOrFail`, which returns an Either value.
5162 * Markdown, HTML readers: be more forgiving about unescaped `&` in
5163 HTML (#2410). We are now more forgiving about parsing invalid HTML with
5164 unescaped `&` as raw HTML. (Previously any unescaped `&`
5165 would cause pandoc not to recognize the string as raw HTML.)
5167 * Markdown reader:
5169 + Added bracket syntax for native spans (#168).
5170 + Fix pandoc title blocks with lines ending in 2 spaces (#2799).
5171 + Added `-s` to markdown-reader-more test.
5173 * HTML reader: fixed bug in `pClose`. This caused exponential parsing
5174 behavior in documnets with unclosed tags in `dl`, `dd`, `dt`.
5176 * MediaWiki reader: Allow spaces before `!` in MediaWiki table header
5177 (roblabla).
5179 * RST reader: Support `:class:` option for code block in RST reader
5180 (Sidharth Kapur).
5182 * Org reader (all Albert Krewinkel, except where noted otherwise):
5184 + Stop padding short table rows.
5185 Emacs Org-mode doesn't add any padding to table rows. The first
5186 row (header or first body row) is used to determine the column count,
5187 no other magic is performed.
5188 + Refactor rows-to-table conversion. This refactors
5189 the codes conversing a list table lines to an org table ADT.
5190 The old code was simplified and is now slightly less ugly.
5191 + Fix handling of empty table cells, rows (Albert Krewinkel, #2616).
5192 This fixes Org mode parsing of some corner cases regarding empty cells
5193 and rows. Empty cells weren't parsed correctly, e.g. `|||` should be
5194 two empty cells, but would be parsed as a single cell containing a pipe
5195 character. Empty rows where parsed as alignment rows and dropped from
5196 the output.
5197 + Fix spacing after LaTeX-style symbols.
5198 The org-reader was dropping space after unescaped LaTeX-style symbol
5199 commands: `\ForAll \Auml` resulted in `∀Ä` but should give `∀ Ä`
5200 instead. This seems to be because the LaTeX-reader treats the
5201 command-terminating space as part of the command. Dropping the trailing
5202 space from the symbol-command fixes this issue.
5203 + Print empty table rows. Empty table rows should not
5204 be dropped from the output, so row-height is always set to be at least 1.
5205 + Move parser state into separate module.
5206 The org reader code has become large and confusing. Extracting smaller
5207 parts into submodules should help to clean things up.
5208 + Add support for sub/superscript export options.
5209 Org-mode allows to specify export settings via `#+OPTIONS` lines.
5210 Disabling simple sub- and superscripts is one of these export options,
5211 this options is now supported.
5212 + Support special strings export option Parsing of special strings
5213 (like `...` as ellipsis or `--` as en dash) can be toggled using the `-`
5214 option.
5215 + Support emphasized text export option. Parsing of emphasized text can
5216 be toggled using the `*` option. This influences parsing of text marked
5217 as emphasized, strong, strikeout, and underline. Parsing of inline math,
5218 code, and verbatim text is not affected by this option.
5219 + Support smart quotes export option. Reading of smart quotes can be
5220 toggled using the `'` option.
5221 + Parse but ignore export options. All known export options are parsed
5222 but ignored.
5223 + Refactor block attribute handling. A parser state attribute was used
5224 to keep track of block attributes defined in meta-lines. Global state
5225 is undesirable, so block attributes are no longer saved as part of the
5226 parser state. Old functions and the respective part of the parser state
5227 are removed.
5228 + Use custom `anyLine`. Additional state changes need to be made after
5229 a newline is parsed, otherwise markup may not be recognized correctly.
5230 This fixes a bug where markup after certain block-types would not be
5231 recognized.
5232 + Add support for `ATTR_HTML` attributes (#1906).
5233 Arbitrary key-value pairs can be added to some block types using a
5234 `#+ATTR_HTML` line before the block. Emacs Org-mode only includes these
5235 when exporting to HTML, but since we cannot make this distinction here,
5236 the attributes are always added. The functionality is now supported
5237 for figures.
5238 + Add `:PROPERTIES:` drawer support (#1877).
5239 Headers can have optional `:PROPERTIES:` drawers associated with them.
5240 These drawers contain key/value pairs like the header's `id`. The
5241 reader adds all listed pairs to the header's attributes; `id` and
5242 `class` attributes are handled specially to match the way `Attr` are
5243 defined. This also changes behavior of how drawers of unknown type
5244 are handled. Instead of including all unknown drawers, those are not
5245 read/exported, thereby matching current Emacs behavior.
5246 + Use `CUSTOM_ID` in properties. See above on Org writer changes.
5247 + Respect drawer export setting. The `d` export option can be used
5248 to control which drawers are exported and which are discarded.
5249 Basic support for this option is added here.
5250 + Ignore leading space in org code blocks (Emanuel Evans, #2862).
5251 Also fix up tab handling for leading whitespace in code blocks.
5252 + Support new syntax for export blocks. Org-mode version 9
5253 uses a new syntax for export blocks. Instead of `#+BEGIN_<FORMAT>`,
5254 where `<FORMAT>` is the format of the block's content, the new
5255 format uses `#+BEGIN_export <FORMAT>` instead. Both types are
5256 supported.
5257 + Refactor `BEGIN...END` block parsing.
5258 + Fix handling of whitespace in blocks, allowing content to be indented
5259 less then the block header.
5260 + Support org-ref style citations. The *org-ref* package is an
5261 org-mode extension commonly used to manage citations in org
5262 documents. Basic support for the `cite:citeKey` and
5263 `[[cite:citeKey][prefix text::suffix text]]` syntax is added.
5264 + Split code into separate modules, making for cleaner code and
5265 better decoupling.
5267 * Added `docbook5` template.
5269 * `--mathjax` improvements:
5271 + Use new CommonHTML output for MathJax (updated default MathJax URL,
5272 #2858).
5273 + Change default mathjax setup to use `TeX-AMS_CHTML` configuration.
5274 This is designed for cases where the input is always TeX and maximal
5275 conformity with TeX is desired. It seems to be smaller and load faster
5276 than what we used before. See #2858.
5277 + Load the full MathJax config to maximize loading speed (KolenCheung).
5279 * Bumped upper version bounds to allow use of latest packages
5280 and compilation with ghc 8.
5282 * Require texmath 0.8.6.2. Closes several texmath-related bugs (#2775,
5283 #2310, #2310, #2824). This fixes behavior of roots, e.g.
5284 `\sqrt[3]{x}`, and issues with sub/superscript positioning
5285 and matrix column alignment in docx.
5287 * README:
5289 + Clarified documentation of `implicit_header_references` (#2904).
5290 + Improved documentation of `--columns` option.
5292 * Added appveyor setup, with artifacts (Jan Schulz).
5294 * stack.yaml versions: Use proper flags used for texmath, pandoc-citeproc.
5296 * LaTeX template: support for custom font families (vladipus).
5297 Needed for correct polyglossia operation with Cyrillic fonts and perhaps
5298 can find some other usages. Example usage in YAML metadata:
5300 fontfamilies:
5301 - name: \cyrillicfont
5302 font: Liberation Serif
5303 - name: \cyrillicfonttt
5304 options: Scale=MatchLowercase
5305 font: Liberation
5307 * Create unsigned msi as build artifact in appveyor build.
5309 * On travis, test with ghc 8.0.1; drop testing for ghc 7.4.1.
5311pandoc (1.17.0.3)
5313 * LaTeX writer: Fixed position of label in figures (#2813).
5314 Previously the label wasn't in the right place, and `\ref`
5315 wouldn't work properly.
5316 * Added .tei test files to pandoc.cabal so they'll be included
5317 in tarball (#2811).
5318 * Updated copyright dates.
5320pandoc (1.17.0.2)
5322 * Fixed serious regression in `htmlInBalanced`, which caused
5323 newlines to be omitted in some raw HTML blocks in Markdown
5324 (#2804).
5326pandoc (1.17.0.1)
5328 * File scope is no longer used when there are no input files (i.e.,
5329 when input comes from stdin). Previously file scope was triggered
5330 when the `json` reader was specified and input came from `stdin`,
5331 and this caused no output to be produced. (Fix due to Jesse Rosenthal;
5332 thanks to Fedor Sheremetyev for calling the bug to our attention.)
5333 * Improved documentation of templates (#2797).
5335pandoc (1.17)
5337 * Added `--file-scope` option (Jesse Rosenthal).
5338 By default pandoc operates on multiple files by first concatenating
5339 them (around extra line breaks) and then processing the joined file. So
5340 it only parses a multi-file document at the document scope. This has the
5341 benefit that footnotes and links can be in different files, but for
5342 some purposes it is useful to parse the individual files first
5343 and then combine their outputs (e.g. when the files use footnotes
5344 or links with the same labels). The `--file-scope` option causes
5345 pandoc to parse the files first, and then combine the parsed output,
5346 instead of combining before parsing. `--file-scope` is selected
5347 automatically for binary input files (which cannot be concatenated)
5348 and for pandoc json.
5350 * Add TEI Writer (Chris Forster) and `tei` output format.
5352 * Added a general `ByteStringReader` with warnings, used by the docx
5353 reader (API change, Jesse Rosenthal).
5355 * Add `readDocxWithWarnings` (API change, Jesse Rosenthal).
5357 * Changed type of `Shared.uniqueIdent`'s argument from `[String]`
5358 to `Set String.` This avoids performance problems in documents with
5359 many identically named headers (API change, #2671).
5361 * Removed `tex_math_single_backslash` from `markdown_github` options
5362 (#2707).
5364 * Make language extensions as well as full language names
5365 trigger syntax highlighting. For example, `py` will now work as
5366 well as `python` (jgm/highlighting-kate#83).
5368 * Added `institute` variable to latex, beamer templates (Fraser
5369 Tweedale, Josef Svenningsson).
5371 * Docx reader (Jesse Rosenthal):
5373 + Handle alternate content. Some word functions (especially graphics)
5374 give various choices for content so there can be backwards compatibility.
5375 + Don't turn numbered headers into lists.
5376 + Docx Reader: Add state to the parser, for warnings
5377 + Update feature checklist in source code.
5378 + Get rid of `Modifiable` typeclass.
5379 + Add tests for adjacent hyperlinks.
5380 + Add a "Link" modifier to `Reducible`. We want to make sure that
5381 links have their spaces removed, and are appropriately smushed
5382 together (#2689).
5384 * HTML reader:
5386 + Fixed behavior of base tag (#2777).
5387 If the base path does not end with slash, the last component
5388 will be replaced. E.g. base = `http://example.com/foo`
5389 combines with `bar.html` to give `http://example.com/bar.html`.
5390 If the href begins with a slash, the whole path of the base
5391 is replaced. E.g. base = `http://example.com/foo/` combines
5392 with `/bar.html` to give `http://example.com/bar.html`.
5393 + Rewrote `htmlInBalanced`. This version avoids an exponential
5394 performance problem with `<script>` tags, and it should be faster
5395 in general (#2730).
5396 + Properly handle an empty cell in a simple table (#2718).
5397 + Handle multiple `<meta>` tags with same name. Put them in a list
5398 in the metadata so they are all preserved, rather than (as before)
5399 throwing out all but one..
5401 * Markdown reader:
5403 + Improved pipe table parsing (#2765).
5404 + Allow `+` separators in pipe table cells. We already allowed
5405 them in the header, but not in the body rows, for some reason.
5406 This gives compatibility with org-mode tables.
5407 + Don't cross line boundary parsing pipe table row.
5408 Previously an Emph element could be parsed across the newline
5409 at the end of the pipe table row.
5410 + Use `htmlInBalanced` for `rawVerbatimBlock`, for better
5411 performance (#2730).
5412 + Fixed bug with smart quotes around tex math.
5414 * LaTeX reader:
5416 + Handle interior `$` characters in math (#2743). For example,
5417 `$$\hbox{$i$}$$`.
5418 + `inlineCommand` now gobbles an empty `{}` after any command (#2687).
5419 This gives better results when people write e.g. `\TeX{}` in Markdown.
5420 + Properly handle LaTeX "math" environment as inline math (#2171).
5422 * Textile reader: Support `>`, `<`, `=`, `<>` text alignment attributes.
5423 Closes #2674.
5425 * Org reader (Albert Krewinkel):
5427 + Prefix even empty figure names with "fig:" (#2643). The
5428 convention used by pandoc for figures is to mark them by prefixing
5429 the name with `fig:`. The org reader failed to do this if a figure
5430 had no name.
5431 + Refactor link-target processing (#2684).
5433 * ConTeXt writer: Fix whitespace at line beginning in line blocks (#2744).
5434 Thanks to @c-foster.
5436 * HTML writer: Don't include alignment attribute for default table columns.
5437 Previously these were given "left" alignment. Better to leave off
5438 alignment attributes altogether (#2694).
5440 * Markdown writer: Use hyphens for YAML metadata block bottom line, for
5441 better compatibility with other Markdown flavors (Henrik Tramberend).
5443 * LaTeX writer:
5445 + Use image identifier to create a label and hypertarget for
5446 figures (Mauro Bieg).
5447 + Avoid double toprule in headerless table with caption (#2742).
5448 + Clean up options parser (Jesse Rosenthal).
5449 + Treat `memoir` template with `article` option as article, instead
5450 of treating all `memoir` templates as books.
5451 + Allow more flexible table alignment (Henrik Tramberend, #2665).
5452 New default is not to include `[c]` option (which is the default
5453 anyway if no positioning is specified). Now LaTeX emplates can
5454 control the overall table alignment in a document by setting the
5455 longtable length variables `LTleft` and `LTright`. For example,
5456 `\setlength\LTleft\parindent\setlength\LTright\fill`
5457 will create left-aligned tables that respect paragraph indentation.
5459 * Docx writer: Handle image alt text (#2754, Mauro Bieg).
5461 * Org writer - pass through RawInline with format "org".
5463 * DokuWiki writer: use `$$` for display math.
5465 * Custom writer: Pass attributes parameter to CaptionedImage (#2697).
5467 * Make protocol-relative URIs work again (#2737).
5469 * make_osx_package.sh: Use env variable for developer id certs.
5471 * Raise `tagsoup` lower bound to 0.13.7 to fix entity-related
5472 problems (#2734).
5474 * Allow `zip-archive` 0.3.
5476 * Allow `aeson` 0.11.
5478pandoc (1.16.0.2)
5480 * Depend on deepseq rather than deepseq-generics (fpco/stackage#1096).
5482 * Fixed regression in latex smart quote parsing (#2645).
5483 In cases where a match was not found for a quote, everything
5484 from the open quote to the end of the paragraph was being dropped.
5486pandoc (1.16.0.1)
5488 * Fixed regression with `--latex-engine` (#2618). In 1.16 `--latex-engine`
5489 raises an error if a full path is given.
5491 * Org reader: Fix function dropping subtrees tagged `:noexport`
5492 (Albert Krewinkel, #2628):
5494 * Markdown reader: renormalize table column widths if they exceed 100%
5495 (#2626).
5497 * Textile reader: don't allow block HTML tags in inline contexts.
5498 The reader previously did allow this, following redcloth,
5499 which happily parses
5501 Html blocks can be <div>inlined</div> as well.
5503 as
5505 <p>Html blocks can be <div>inlined</div> as well.</p>
5507 This is invalid HTML. The above sample now produces;
5509 <p>Html blocks can be</p>
5510 <div>
5511 <p>inlined</p>
5512 </div>
5513 <p>as well.</p>
5515 * Improved default template lookup for custom lua scripts (#2625).
5516 Previously, if you tried to do `pandoc -s -t /path/to/lua/script.lua`,
5517 pandoc would look for the template in
5518 `~/.pandoc/templates/default./path/to/lua/script.lua`.
5519 With this change it will look in the more reasonable
5520 `~/.pandoc/templates/default.script.lua`. This makes it possible to
5521 store default templates for custom writers.
5523 * RST, Markdown writers: Fixed rendering of grid tables with blank rows
5524 (#2615).
5526 * LaTeX writer: restore old treatment of Span (#2624). A Span is
5527 now rendered with surrounding `{}`, as it was before 1.16.
5529 * Entity handling fixes: improved handling of entities like
5530 `&lang;` that require a trailing semicolon. Allow uppercase
5531 `x` in numerical hexadecimal character references, working
5532 around a tagsoup bug.
5534 * `stack.yaml` - use lts-4.0, but with older aeson to avoid excessive
5535 memory use on compile. With aeson 0.10 we were getting an out of
5536 memory error on a 2GB Ubuntu 64-bit VM.
5538 * Improved deb package creation script. Made `DPKGVER` work.
5539 Renamed `COMMIT` to `TREE`. You should now be able to do
5540 `TREE=1.16.0.1 DPKGVER=2 make deb`.
5543pandoc (1.16)
5545 * Added `Attr` field to `Link` and `Image` (Mauro Bieg, #261, API change).
5547 + Added syntax for link and image attributes to pandoc's Markdown.
5548 + Updated readers and writers to use link and image attributes
5549 when appropriate.
5550 + Support image attributes in Docx, Textile, RST readers.
5552 * Renamed link attribute extensions. The old `link_attributes` is
5553 now `mmd_link_attributes`, and `link_attributes` now enables the
5554 new pandoc-style link and image attributes (API change).
5555 Note: this change could break some existing workflows.
5557 * Implemented `SoftBreak` and new `--wrap` option (#1701, API change).
5558 Added threefold wrapping option.
5560 + Command line option: deprecated `--no-wrap`, added
5561 `--wrap=[auto|none|preserve]`
5562 + Added `WrapOption`, exported from `Text.Pandoc.Options`
5563 + Changed type of `writerWrapText` in `WriterOptions` from
5564 `Bool` to `WrapOption`.
5565 + Modified `Text.Pandoc.Shared` functions to allow `SoftBreak`.
5566 + Supported `SoftBreak` in readers and writers.
5568 * Text.Pandoc.Options: Added `writerDpi` to `WriterOptions` (API
5569 change, Mauro Bieg).
5571 * Added `--dpi` command-line option (Mauro Bieg).
5573 * Rationalized behavior of `--no-tex-ligatures` and `--smart` (#2541).
5574 This change makes `--no-tex-ligatures` affect the LaTeX reader
5575 as well as the LaTeX and ConTeXt writers. If it is used,
5576 the LaTeX reader will parse characters `` ` ``, `'`, and `-`
5577 literally, rather than parsing ligatures for quotation marks
5578 and dashes. And the LaTeX writer will print unicode quotation
5579 mark and dash characters literally, rather than converting
5580 them to the standard ASCII ligatures. Note that `--smart` has
5581 no effect on the LaTeX reader. `--smart` is still the default
5582 for all input formats when LaTeX or ConTeXt is the output format,
5583 *unless* `--no-tex-ligatures` is used.
5585 Some examples to illustrate the logic:
5587 ```
5588 % echo "'hi'" | pandoc -t latex
5589 `hi'
5590 % echo "'hi'" | pandoc -t latex --no-tex-ligatures
5591 'hi'
5592 % echo "'hi'" | pandoc -t latex --no-tex-ligatures --smart
5593 ‘hi’
5594 % echo "'hi'" | pandoc -f latex --no-tex-ligatures
5595 <p>'hi'</p>
5596 % echo "'hi'" | pandoc -f latex
5597 <p>’hi’</p>
5598 ```
5600 * Removed deprecated options `--offline` and `--html5`.
5602 * Fixed language code for Czech (`cs` not `cz`) (#2597).
5604 * Implemented `east_asian_line_breaks` extension (#2586).
5605 In `Text.Pandoc.Options`, added `Ext_east_asian_line_breaks` constructor
5606 to `Extension` (API change). This extension is like
5607 `ignore_line_breaks`, but smarter -- it only ignores line breaks
5608 between two East Asian wide characters. This makes it better suited
5609 for writing with a mix of East Asian and non-East Asian scripts.
5611 * Added support for PDF creation via `wkhtmltopdf`.
5612 To use this: `pandoc -t html5 -o result.pdf` (and add `--mathjax`
5613 if you have math.) Margins can be set using the variables
5614 `margin-top`, `margin-bottom`, `margin-left`, `margin-right`.
5615 Other styling can be done through CSS.
5617 * Fixed cite key parsing regression (jgm/pandoc-citeproc#201).
5618 We were capturing final colons as in `[@foo: bar]`; the citation id
5619 was being parsed as `@foo:`.
5621 * ICML writer:
5623 + Fixed image syntax for local files (#2589).
5624 + Changed type of `writeICML` (Mauro Bieg).
5625 API change: It is now `WriterOptions -> Pandoc -> IO String`.
5626 Also handle new image attributes.
5627 + Intersperse line breaks instead of appending them to
5628 every `ParagraphStyleRange` (Mauro Bieg, #2501).
5629 + Add `Cite` style to citations (Mauro Bieg).
5630 + Added figure handling (#2590, Mauro Bieg).
5631 + Better handling of math. Instead of just printing the raw tex,
5632 we now try to fake it with unicode characters.
5634 * HTML writer: Include `example` class for example lists (#2524).
5636 * ODT/OpenDocument writer: improved image attributes (Mauro Bieg).
5638 + Support for percentage widths/heights
5639 + Use `Attr` instead of title to get dimensions from ODT walker
5640 to `writeOpenDocument`.
5642 * AsciiDoc writer:
5644 + Support anchors in spans and divs with id elements
5645 (jgm/pandoc-citeproc#143).
5646 + Fixed code blocks (#1861).
5648 * Haddock writer: omit formatting inside links, which isn't supported
5649 by Haddock (#2515).
5651 * MediaWiki writer: Fixed spacing issues in table cells.
5653 + Start cell on new line unless it's a single Para or Plain
5654 (#2606).
5655 + For single Para or Plain, insert a space after the `|` to
5656 avoid problems when the text begins with a character like
5657 `-` (#2604).
5659 * Beamer writer: mark frame as fragile when it contains verbatim (#1613).
5661 * LaTeX writer:
5663 + Add support for GAP highlighting using listings (Raniere Silva).
5664 + Consider `header-includes` content as well as templates
5665 when determining whether to use csquotes (Andreas Lööw).
5666 + Create defaults for geometry using `margin-left` etc.
5667 If `geometry` has no value, but `margin-left`, `margin-right`,
5668 `margin-top`, and/or `-margin-bottom` are given, a default value
5669 for `geometry` is created from these. Note that these variables
5670 already affect PDF production via HTML5 with `wkhtmltopdf`.
5672 * ConTeXt writer: set default layout based on `margin-left`, etc.
5673 This sets up `\setuplayout` based on the variables `margin-left`,
5674 `margin-right`, `margin-bottom`, and `margin-top`, if no layout
5675 is given.
5677 * Docx writer: better handling of PDF images. Previously we tried
5678 to get the image size from the image even if an explicit size was
5679 specified. Since we still can't get image size for PDFs, this made
5680 it impossible to use PDF images in docx. Now we don't try to get
5681 the image size when a size is already explicitly specified.
5683 * Markdown writer: use raw HTML for link/image attributes when
5684 the `link_attributes` extension is unset and `raw_html` is set (#2554).
5686 * MediaWiki reader: interpret markup inside `<tt>`, `<code>` (#2607).
5688 * LaTeX reader:
5690 + Improved smart quote parsing (#2555). This fixes redering of
5691 unmatched quotes.
5692 + Use curly quotes for unmatched ` (#2555).
5693 + Allow blank space between braced arguments of commands (#2592).
5695 * Markdown reader:
5697 + Improved pipe table relative widths. Previously pipe table
5698 columns got relative widths (based on the header underscore lines)
5699 when the source of one of the rows was greater in width than the
5700 column width. This gave bad results in some cases where much of
5701 the width of the row was due to nonprinting material (e.g. link
5702 URLs). Now pandoc only looks at printable width (the width of a
5703 plain string version of the source), which should give better results.
5704 Thanks to John Muccigrosso for bringing up the issue.
5705 + Fixed parsing bug with macros. Previously macro definitions in
5706 indented code blocks were being parsed as macro definitions, not code.
5708 * Textile reader: skip over attribute in image source (#2515).
5709 We don't have a place yet for styles or sizes on images, but
5710 we can skip the attributes rather than incorrectly taking them
5711 to be part of the filename.
5713 * Docx reader: Handle dummy list items (Jesse Rosenthal).
5714 These come up when people create a list item and then delete the
5715 bullet. It doesn't refer to any real list item, and we used to ignore
5716 it.
5718 * CommonMark reader/writer rewritten to use latest `cmark`.
5720 * Fixed Emoji character definitions (#2523). There were many bugs in the
5721 definitions.
5723 * `Text.Pandoc.CSS`:
5725 + Added `pickStylesToKVs` function to extract multiple properties at
5726 once (API change, Mauro Bieg).
5727 + Parse CSS that doesn't contain the optional semicolon (Mauro Bieg).
5729 * `trypandoc`: sort drop-down lists.
5731 * Beamer template:
5733 + Made `\euro` conditional on presence of character.
5734 for xelatex and lualatex, as it is for pdflatex (Andrew Dunning).
5735 + Moved `header-includes` before setting of title (Thomas Hodgson),
5736 to match the LaTeX template (jgm/pandoc-templates#168).
5737 + Added `section-titles` variable (defaults to true)
5738 to enable/suppress section title pages in beamer
5739 slide shows (Thomas Hodgson).
5740 + Moved beamer themes after fonts, so that themes can
5741 change fonts. (Previously the fonts set were being
5742 clobbered by lmodern.sty.) (Thomas Hodgson).
5744 * Beamer/LaTeX template changes (Thomas Hodgson):
5745 + Added `thanks` variable
5746 + Use `parskip.sty` when `indent` isn't set (fall back to using
5747 `setlength` as before if `parskip.sty` isn't available).
5748 + Use `biblio-style` with biblatex.
5749 + Added `biblatexoptions` variable.
5751 * LaTeX template changes:
5753 + Added `paper` after `$papersize$` variable in latex template.
5754 Thus you can say `papersize: a4` and the latex will contain
5755 `a4paper`. This change may break some existing workflows; if
5756 you currently specify `a4paper`, you'll get `a4paperpaper` which
5757 is meaningless. However, the change seems worth it, as it will
5758 make the `papersize` variable work uniformly across ConTeXt, LaTeX,
5759 and html->pdf via wkhtmltopdf.
5760 + Only pass options to color package if `colorlinks` is set
5761 (Andrew Dunning).
5762 + Make definition of `\euro` conditional in xelatex/lualatex,
5763 as it is already for pdflatex (Andrew Dunning).
5764 + Removed setting of `subject` in PDF metadata.
5765 This used to be set to the subtitle, but really the subtitle
5766 need not give the subject. Also, `subtitle` can contain formatting,
5767 so we'd need, at least, a plain text version for this.
5768 + Moved `header-includes` before setting of `\title`, `\author`,
5769 etc. This allows these macros to be redefined.
5770 + Use `\subtitle` command for `subtitle`, instead of tacking it
5771 on to the title as before. We give a no-op fallback definition if it
5772 is not defined. This change should produce much better results
5773 in classes that support `\subtitle`. With the default article
5774 class, which does not define `\subtitle`, subtitles will no
5775 longer be printed unless the user defines `\subtitle` and
5776 redefines `\maketitle`.
5777 + Moved redefinitions of `\paragraph` and `\subparagraph` to
5778 before header-includes.
5780 * Context template:
5782 + Use `simplefonts` for font loading (Paolo Rodríguez). This is
5783 needed for things to work on ConTeXt stable from TeXLive 2015.
5784 + Revert use of `\setuphead` in title block (Andrew Dunning,
5785 Rik Kabel).
5787 * Update LaTeX/ConTeXt link colour usage (Andrew Dunning).
5789 * Fixed man template so disabling hyphenation actually works.
5790 The command needs to come after .TH.
5792 * Added 'navigation' variable to beamer template (#2543).
5793 Valid values are `empty` (the default), `horizontal`, `vertical`,
5794 and `frame`. Note that this changes the default behavior from
5795 `horizontal` to `empty`. Closes #2543.
5797 * Added `toc` to HTML slide format templates (Andrew Dunning),
5798 so that `--toc` creates a contents slide.
5800 * Added `stack.full.yaml` to build `pandoc-citeproc` as well.
5802 * Allow pipe tables with no body rows (#2556).
5803 Previously this raised a runtime error.
5805 * Shared: Improved `fetchItem` so that `C:/Blah/Blah.jpg` isn't treated
5806 as URL. The Haskell URI parsing routines will accept "C:" as a
5807 scheme, so we rule that out manually. This helps with
5808 `--self-contained` and absolute Windows paths.
5810 * Define a `meta-json` variable for all writers (#2019). This contains
5811 a JSON version of all the metadata, in the format selected for the
5812 writer. So, for example, to get just the YAML metadata, you can run
5813 pandoc with the following custom template: `$meta-json$`. The intent
5814 is to make it easier for static site generators and other tools to get
5815 at the metadata.
5817 * Document limitations of --self-contained (#2553).
5819 * Improved Citations section of README (#2551). Added information
5820 about `link-citations` and a link to the pandoc-citeproc man page.
5822 * `ImageSize`: use `safeRead` instead of `readMaybe`, which isn't
5823 in base < 4.6.
5825 * Allow .adoc file extension for AsciiDoc (Andrew Dunning).
5827 * Improved implicit pandoc-citeproc inclusion.
5828 The filter pandoc-citeproc is automatically used when
5829 `--bibliography` is specified on the command line, unless
5830 `--natbib` or `--biblatex` is used. However, previously this
5831 only worked if `--bibliography` was spelled out in full, and not
5832 if `--biblio` was used.
5834 * reveal.js: Interpret pauses correctly for all headers (#2530).
5835 Previously, when using headers below the slide level, pauses are left
5836 uninterpreted into pauses. In my opinion, unexpected behavior but
5837 intentional looking at the code.
5839 * Remove redundant `center` variable for reveal.js (Andrew Dunning).
5841 * Parsing: Add `extractIdClass`, modified type of `KeyTable` (Mauro
5842 Bieg, API change).
5844 * ImageSize: Added functions for converting between image dimensions
5845 (Mauro Bieg).
5847 * Use lts-3.18 in stack.yaml. This avoids Windows build
5848 issues with the HTTP library.
5850 * Bump version bounds for dependencies.
5852pandoc (1.15.2.1)
5854 * Added two missing test files, and `stack.yaml`, to
5855 `extra-source-files` so they're included in the source tarball.
5857 * reveal.js template: Fixed parallaxBackground options.
5858 `parallaxBackgroundHorizontal` and `parallaxBackgroundVertical`
5859 need integer values, not strings. (Vaughn Iverson)
5861pandoc (1.15.2)
5863 * `pandoc my.md -t context -o my.pdf` will now create a PDF using
5864 ConTeXt rather than LaTeX (#2463).
5866 * Fixed omitted `url(...)` in CSS data-uri with `--self-contained` (#2489).
5868 * Added `emoji` Markdown extension, enabled by default in `markdown_github`
5869 (#2523). Added `Ext_emoji` to `Extension` in `Text.Pandoc.Options`
5870 (API change).
5872 * `Text.Pandoc.Readers.HTML.parseTags`: Fixed over-eager raw HTML inline
5873 parsing (#2469). Tightened up the inline HTML parser so it disallows
5874 TagWarnings.
5876 * Derive `Generic` instances for the types in `Text.Pandoc.Options`.
5878 * Org reader:
5880 + Fix paragraph/list interaction (Albert Krewinkel, #2464).
5881 Paragraphs can be followed by lists, even if there is no blank line
5882 between the two blocks. However, this should only be true if the
5883 paragraph is not within a list, were the preceding block should be
5884 parsed as a plain instead of paragraph (to allow for compact lists).
5885 Thanks to @rgaiacs for bringing this up.
5886 + Allow toggling header args (Albert Krewinkel, #2269).
5887 Org-mode allows to skip the argument of a code block header argument if
5888 it's toggling a value. Argument-less headers are now recognized,
5889 avoiding weird parsing errors.
5890 + Fix markup parsing in headers (Albert Krewinkel, #2504).
5891 Markup as the very first item in a header wasn't recognized. This was
5892 caused by an incorrect parser state: positions at which inline markup
5893 can start need to be marked explicitly by changing the parser state.
5894 This wasn't done for headers. The proper function to update the state
5895 is now called at the beginning of the header parser, fixing this issue.
5896 + Fix emphasis rules for smart parsing (Albert Krewinkel, #2513).
5897 Smart quotes, ellipses, and dashes should behave like normal quotes,
5898 single dashes, and dots with respect to text markup parsing.
5899 + Require whitespace around definition list markers (#2518).
5900 This rule was not checked before, resulting in bugs with footnotes
5901 and some link types.
5903 * Markdown reader:
5905 + Pipe tables with long lines now get relative cell widths (#2471).
5906 If a pipe table contains a line longer than the column width (as set by
5907 `--columns` or 80 by default), relative widths are computed based on the
5908 widths of the separator lines relative to the column width. This should
5909 solve persistent problems with long pipe tables in LaTeX/PDF output, and
5910 give more flexibility for determining relative column widths in other
5911 formats, too. For narrower pipe tables, column widths of 0 are used,
5912 telling pandoc not to specify widths explicitly in output formats that
5913 permit this.
5914 + Improved parser for `mmd_title_block`. We now allow blank metadata
5915 fields. These were explicitly disallowed before.
5916 + Citation keys can now contain `://`, so URLs and DOIs can be used
5917 as citation keys (jgm/pandoc-citeproc#166).
5919 * Beamer template: fix incompatibility of section slides with natbib.
5920 Natbib (and presumably biblatex) bibliography commands create
5921 their own section. Since these are in frame environments,
5922 we have an incompatibility with the `\AtBeginSection` macro
5923 which creates a special frame when a new section occurs.
5924 (We can't have a frame inside another frame.) This change disables
5925 `\AtBeginSection` inside bibliography slides. Thinks to Yihui Xie for
5926 bringing the problem to my attention. This supersedes #145. See
5927 discussion there.
5929 * Textile reader: don't do smart punctuation unless explicitly asked
5930 (#2480). Note that although smart punctuation is part of the textile
5931 spec, it's not always wanted when converting from textile
5932 to, say, Markdown. So it seems better to make this an option.
5934 * LaTeX reader: Handle `comment` environment (Arata Mizuki).
5935 The `comment` environment is handled in a similar way to the
5936 `verbatim` environment, except that its content is discarded.
5938 * Docx reader: Follow relationships correctly in foot/endnotes (#2258,
5939 Jesse Rosenthal). This fixes a problem with links in notes.
5941 * LaTeX and ConTeXt writers: support `lang` attribute on divs and spans
5942 (Mauro Bieg). For LaTeX, also collect `lang` and `dir` attributes on
5943 spans and divs to set the `lang`, `otherlangs` and `dir` variables if
5944 they aren’t set already. See #895.
5946 * LaTeX writer:
5948 + Use proper command for `\textarabic` (Mauro Bieg).
5949 + Added `de-CH-1901`, fixed `el-polyton` in `toPloyglossia` (Nick Bart).
5950 + Use `\hypertarget` and `\hyperlink` for links. This works correctly
5951 to link to Div or Span elements. We now don't bother defining `\label`
5952 for Div or Span elements. Closes jgm/pandoc-citeproc#174.
5953 + Avoid footnotes in list of figures (#1506).
5954 + Properly handle footnotes in captions (#1506).
5955 + Add `\protect` to `\hyperlink` (#2490). Thanks to Hadrien Mary.
5956 + Set `colorlinks` if `linkcolor`, `urlcolor`, `citecolor`, or
5957 `toccolor` is set (#2508).
5959 * Textile writer: support start number in ordered lists (#2465).
5961 * OpenDocument writer: Allow customization of opendocument
5962 automatic styles. Automatic styles can now be inserted in the
5963 template, which now provides the enclosing `<office:automatic-styles>`
5964 tags (#2520).
5966 * Docx writer: insert space between footnote reference and note (#2527).
5967 This matches Word's default behavior.
5969 * EPUB writer: don't download linked media when `data-external` attribute
5970 set (#2473). By default pandoc downloads all linked media and includes it
5971 in the EPUB container. This can be disabled by setting `data-external` on
5972 the tags linking to media that should not be downloaded. Example:
5974 <audio controls="1">
5975 <source src="http://example.com/music/toccata.mp3"
5976 data-external="1" type="audio/mpeg">
5977 </source>
5978 </audio>
5980 * HTML writer: use width on whole table if col widths sum to < 100%.
5981 Otherwise some browsers display the table with the columns
5982 separated far apart.
5984 * AsciiDoc template: Fix `author` and `date`; add `keywords`,
5985 `abstract` (Andrew Dunning).
5987 * HTML-based templates (Andrew Dunning):
5989 + Use en dash instead of hyphen between title prefix and title.
5990 + Add `keywords` to metadata.
5991 + Add `lang`, `dir`, `quotes` where missing.
5992 + Always make author and date display conditional.
5993 + Updated dzslides template from source.
5995 * Man template: make "generated by" comment conditional.
5997 * LaTeX, Beamer templates:
5999 + Add `babel-otherlangs` for language divs/spans; `babel-newcommands`,
6000 filled by commands that make babel understand the polyglossia-style
6001 language directives (Mauro Bieg, #137).
6002 + Improved formatting of conditionals; `$for$` is always provided to allow
6003 multiple options (Andrew Dunning, #141).
6004 + Use `Ligatures=TeX` rather than `Mapping=tex-text` with `fontspec`
6005 to improve support for LuaTeX (Andrew Dunning, #135).
6006 + Revise `hyperref` usage (Andrew Dunning, #139, #141):
6007 - use same options for all LaTeX engines;
6008 - add `subtitle` and `keywords` to PDF metadata;
6009 - do not override `hyperref` link coloring without user input, effectively making
6010 the `hidelinks` option the default (removed as a separate variable);
6011 - link colors can be enabled (using a slightly darker version of the old
6012 defaults) using a new `colorlinks` variable, automatically used by
6013 the LaTeX writer when custom colors are specified;
6014 - `pdfborder={0 0 0}` is automatically set by `hyperref` with
6015 `colorlinks`, and is only applied if `colorlinks` is disabled.
6017 * ConTeXt template (Andrew Dunning):
6019 + New variables for controlling styles: `linkstyle`, `linkcolor`,
6020 `linkcontrastcolor`, `layout`, `pagenumbering`, `whitespace`, `indenting`,
6021 `interlinespace`, `headertext`, `footertext`, `mainfont`, `sansfont`,
6022 `monofont`, `mathfont`, `fontsize`.
6023 + Default template no longer supports MkII.
6024 + Improve writing of title block (suppressing numbering of first page).
6025 + Add `title` `subtitle`, `author`, `date`, `keywords` to PDF metadata.
6026 + Support `subtitle`, `abstract`.
6027 + Support list of figures (`lof`), list of tables (`lot`).
6028 + Disable link styling by default.
6029 + Define styles for all section types.
6030 + Enable microtype.
6031 + Improved formatting of conditionals.
6033 * Beamer template: added code to prevent slide breaks inside paragraphs
6034 (#2422, thanks to Nick Bart). This will matter, in practice, only when
6035 `allowframebreaks` is used. It is especially helpful for bibliography
6036 slides.
6038 * OpenDocument template: Add `<office:automatic-styles>` tag around
6039 automatic styles. The writer now longer provides this (see #2520).
6041 * Restored Text.Pandoc.Compat.Monoid.
6043 * Do not export (<>) from custom Prelude. The Prelude now matches
6044 base 4.8 Prelude's API.
6046 * Don't use custom prelude with ghc 7.10. Use the custom prelude
6047 only for earlier versions. This change makes `stack ghci` and
6048 `cabal repl` work (#2503), at least with ghc 7.10.
6050 * Changed § to % in operators from Odt.Arrows.Utils (#2457).
6051 This prevents problems building haddocks with "C" locale.
6053 * Change default for old-locale flag to False.
6055 * Use stack in deb, osx, and Windows package generators.
6057 * Added Vagrantfile for building deb in vm.
6058 This should help in automating binary package creation. 'make package'
6059 will make the package. 'make package COMMIT=blah' will make the package
6060 from commit blah.
6062 * README:
6064 + Consistent capitalization for pandoc and Markdown.
6065 + Fixed `auto_identifiers` examples (Benoit Schweblin).
6066 + Improved documentation of template variables (Andrew Dunning).
6068pandoc (1.15.1.1)
6070 * `Text.Pandoc.Data`: store paths in dataFiles using posix separators.
6071 This way we have uniform separators, whether on Windows or Linux.
6072 This should solve a problem where on some Windows versions
6073 the data files weren't being found (#2459).
6075pandoc (1.15.1)
6077 * `pandocVersion` is now defined in `Text.Pandoc.Shared`
6078 and reexported from `Text.Pandoc` (Alex Vong). This allows
6079 writers to access it. (Alex Vong) (API change)
6081 * For `markdown_mmd`, add: `implicit_figures`, `superscripts`,
6082 `subscripts` (#2401).
6084 * Added `odt` as input format (Martin Linnemann). Added new module
6085 `Text.Pandoc.Reader.ODT` (API change). Fully implemented features:
6086 Paragraphs, Headers, Basic styling, Unordered lists, Ordered lists,
6087 External Links, Internal Links, Footnotes, Endnotes, Blockquotes.
6088 Partly implemented features: Citations, Tables.
6090 * Markdown Reader:
6092 + Add basic tests for each header style (Ophir Lifshitz).
6093 + Add implicit header ref tests for headers with spaces (Ophir Lifshitz).
6094 + Skip spaces in headers (Ophir Lifshitz).
6095 + Handle 'id' and 'class' in parsing key/value attributes (#2396).
6096 `# Header {id="myid" class="foo bar"}`
6097 is now equivalent to `# Header {#myid .foo .bar}`.
6098 + Use '=' instead of '#' for atx-style headers in markdown+lhs.
6099 (Kristof Bastiaensen)
6100 + Pipe tables: allow indented columns. Previously the left-hand column
6101 could not start with 4 or more spaces indent. This was inconvenient
6102 for right-aligned left columns. Note that the first (header column)
6103 must still have 3 or fewer spaces indentation, or the table will be
6104 treated as an indented code block.
6105 + Fix regression: allow HTML comments containing `--`.
6106 Technically this isn't allowed in an HTML comment, but
6107 we've always allowed it, and so do most other implementations.
6108 It is handy if e.g. you want to put command line arguments
6109 in HTML comments.
6111 * LaTeX reader:
6113 + Don't eat excess whitespace after macros with only optional
6114 arguments (#2446).
6115 + Support longtable (#2411).
6116 + Implement `\Cite` (#2335).
6117 + Support abstract environment. The abstract populates an
6118 `abstract` metadata field.
6119 + Properly handle booktabs lines. Lines aren't part of the
6120 pandoc table model, so we just ignore them (#2307).
6122 * HTML reader:
6124 + Handle type attribute on ol, e.g. `<ol type="i">` (#2313).
6125 + Updated for new automatic header attributes.
6126 + Add auto identifiers if not present on headers. This makes
6127 TOC linking work properly.
6128 + Detect `font-variant` with `pickStyleAttrProps` (Ophir Lifshitz).
6129 + Test `<ol>` type, class, and inline list-style(-type) CSS
6130 (Ophir Lifshitz).
6131 + Better handling of "section" elements (#2438). Previously
6132 `<section>` tags were just parsed as raw HTML blocks. With
6133 this change, section elements are parsed as Div elements with
6134 the class "section".
6136 * MediaWiki reader: handle unquoted table attributes (#2355).
6138 * DocBook reader:
6140 + Added proper support for DocBook `xref` elements (Frerich Raabe).
6141 Added `dbContent` field to reader state, so we can lookup
6142 cross refs.
6143 + Handle `informalexample` (#2319).
6145 * Docx Reader:
6147 + Create special punctuation test (Ophir Lifshitz).
6148 + Parse soft, no-break hyphen elements (Ophir Lifshitz).
6149 + Updated headers test (Ophir Lifshitz). Replaced `styles.xml`
6150 in `headers.docx` with pandoc's current `styles.xml`, which
6151 contains styles for Heading 1 through 6. Added Heading 4
6152 through 7 to the test document. Note that Heading 7 is not
6153 parsed as a Heading because there is no Heading 7 style.
6155 * RST reader: better handling of indirect roles.
6156 Previously the parser failed on this kind of case
6158 .. role:: indirect(code)
6160 .. role:: py(indirect)
6161 :language: python
6163 :py:`hi`
6165 Now it correctly recognizes `:py:` as a code role.
6167 * Org reader:
6169 + Add auto identifiers if not present on headers
6170 (#2354, Juliusz Gonera).
6171 + Allow verse blocks to contain empty lines (#2402,
6172 Albert Krewinkel).
6174 * EPUB reader: stop mangling external URLs (#2284).
6176 * RST writer:
6178 + Don't insert `\ ` when complex expression in matched pairs.
6179 E.g. `` [:sup:`3`] `` is okay; you don't need `` [:sup:`3`\ ] ``.
6180 + Ensure that `\ ` is inserted when needed before Cite and Span
6181 elements that begin with a "complex" element (jgm/pandoc-citeproc#157).
6182 + Normalize headers only in "standalone" mode (#2394).
6184 * Haddock writer: escape `*` and `^` (G. Bataille).
6186 * Markdown writer:
6188 + In TOC, add links to headers (#829).
6189 + Use unicode super/subscripts for digits in plain output
6190 (when the `superscripts` and `subscripts` extensions are
6191 not enabled).
6193 * Docx writer:
6195 + Moved invalid character stripping to `formattedString`.
6196 This avoids an inefficient generic traversal (#2356).
6197 + Use user data directory for `reference.docx` archive.
6198 This allows the test suite to work without installing pandoc first.
6199 It also brings the docx writer in line with the odt writer.
6200 + Tests: docx writer tests now use `../data` for data directory.
6201 This allows tests to be run without installing first.
6202 + Tests: Use real jpg (not empty) for docx tests to avoid warning.
6204 * LaTeX writer:
6206 + Fixed detection of 'chapters' from template.
6207 If a documentclass isn't specified in metadata, but the
6208 template has a hardwired bookish documentclass, act as if
6209 `--chapters` was used. This was the default in earlier
6210 versions, but it has been broken for a little while.
6211 + Correctly recognize book documentclass in metadata (#2395).
6212 + Set language-related variables automatically, depending
6213 on the value of the `lang` field, which is now always
6214 assumed to be in BCP47 format (Mauro Bieg, #1614, #2437).
6215 + Add `\protect` to `\hyperdef` in inline context. This way we
6216 don't get an error when this is used as a moveable argument (#2136).
6217 + Support all frame attributes in Beamer.
6218 + Percent-encode more special characters in URLs (#1640, #2377).
6219 The special characters are '<','>','|','"','{','}','[',']','^', '`'.
6221 * HTML writer:
6223 + Update KaTeX JS and CSS versions (Emily Eisenberg).
6224 + For dzslides, add `role="note"` for speaker notes (#1693).
6225 + Percent-encode more special characters in URLs (#1640, #2377).
6226 The special characters are '<','>','|','"','{','}','[',']','^', '`'.
6227 + Render Div with class `section` as `<section>` in HTML5.
6229 * EPUB writer:
6231 + In TOC, replace literal `<br/>` with space (#2105).
6232 + With `--webtex`, include image file rather than `data:` URI (#2363).
6234 * Native writer: format Div properly, with blocks separated.
6236 * Support bidirectional text output with XeLaTeX, ConTeXt and HTML
6237 (#2191, Mauro Bieg).
6239 * Reference Docx:
6241 + Add missing Header 6 style (steel blue) (Ophir Lifshitz).
6242 + Correct `outlineLvl` for Header styles (Ophir Lifshitz).
6244 * Templates
6246 + Beamer: Add `innertheme`, `outertheme` variables
6247 (Guilhem Bonnefille, #121). Add space after colon in figure caption.
6248 Integrate recent font and language updates from LaTeX template;
6249 allow use of `mainfont` variable for changing the slide text
6250 in XeTeX and LuaTeX (Andrew Dunning, #131).
6251 + LaTeX: Add `mainfontoptions`, `sansfontoptions`,
6252 `monofontoptions`, `mathfontoptions`, `fontfamilyoptions`
6253 (Andrew Dunning, #122). Support handling of bidirectional
6254 text (Mauro Bieg, #120). Improve reliability of superscripts/subscripts
6255 under XeTeX and prevent letters and numbers from appearing on a
6256 different baseline by removing use of the `realscripts` package
6257 (via `xltxtra`). To restore use of OpenType characters for these
6258 features under XeTeX or LuaTeX, add `\usepackage{realscripts}` to
6259 `header-includes` (Andrew Dunning, #130). Remove redundant
6260 reference to `xunicode` (Andrew Dunning, #130). Add `fontenc`,
6261 `indent`, `subparagraph` variables (Andrew Dunning).
6262 Allow use of `hidelinks` variable for `hyperref` package (Hugo Roy,
6263 #113). Prevent package clash with `tufte-latex` and other classes that
6264 include `hyperref` or `color` (Xavier Olive, #115).
6265 + ConTeXt: Support handling of bidirectional text (Mauro Bieg, #120).
6266 + LaTeX and ConTeXt: Use more specific language variables.
6267 Instead of directly using `lang`, we now use `babel-lang` and
6268 `polyglossia-lang` and `context-lang`. These variables are set by
6269 the writers to the necessary values, based on the `lang` variable
6270 (which now always takes a value in BCP47 format). (Mauro Bieg, #114,
6271 #129).
6272 + HTML: Support handling of bidirectional text (Mauro Bieg, #120).
6273 Move HTML5 shiv after CSS and fix URL (Andrew Dunning).
6274 Add dir attribute in html5 (Andrew Dunning).
6275 + reveal.js: Add `controls`, `progress` variables (Grégoire Pineau, #127).
6276 Add `width`, `height` variables (Andrew Dunning). Update template
6277 from 3.1 source (Andrew Dunning). All configuration options are now
6278 available as variables, but are only be included if set (reveal.js
6279 uses defaults otherwise).
6280 + man: Added comment stating that the page is autogenerated by pandoc,
6281 giving version. Added `adjusting` and `hyphenate` variables
6282 (Alex Vong, #123).
6284 * epub.css: added selectors for nested emphasis (Pablo Rodriguez).
6286 * MediaBag: ensure that `/` is always used as path separator.
6288 * `sample.lua`: define `CaptionedImage`, add newline at end (#2393).
6290 * Added `--bash-completion` option. This generates a bash completion
6291 script. To use: `eval "$(pandoc --bash-completion)"`.
6293 * Text.Pandoc.Error: Define Typeable and Exception instances
6294 for PandocError (#2386).
6296 * Text.Pandoc.Parsing: `toKey`: strip off outer brackets.
6297 This makes keys with extra space at the beginning and end
6298 work: e.g.
6300 [foo]: bar
6302 [ foo ]
6304 will now be a link to bar (it wasn't before).
6306 * Text.Pandoc: disable `auto_identifiers` for epub.
6307 The epub writer inserts its own auto identifiers;
6308 this is more complex due to splitting into "chapter" files.
6310 * Renamed Text.Pandoc.Compat.Locale -> Text.Pandoc.Compat.Time.
6311 It now reexports Data.Time.
6313 * Use custom Prelude to avoid compiler warnings.
6315 + The (non-exported) prelude is in prelude/Prelude.hs.
6316 + It exports Monoid and Applicative, like base 4.8 prelude,
6317 but works with older base versions.
6318 + It exports (<>) for mappend.
6319 + It hides 'catch' on older base versions.
6321 * Added a `stack.ymal` and stack install instructions to INSTALL.
6323 * Clarified what is "out of scope" in README and CONTRIBUTING.md.
6325 * Added note to CONTRIBUTING.md about ghc versions and travis.
6327 * Clarify docs on block quotes. The space after `>` is optional (#2346).
6329 * Removed obsolete reference to default.csl (#2372).
6331 * List all styles in manual for `--reference-docx` (Chris Black)
6333 * Don't capitalize header links in man page.
6335 * Added section on repl to CONTRIBUTING.md.
6337 * README: Added space after backslash in image example (#2329).
6339 * Document details of citation locator terms (Nick Bart).
6341 * Fixed some internal links in README (#2309).
6343 * Improve CSL documentation, variables documentations,
6344 links, and cross-references in README. (Andrew Dunning)
6346 * Fix build failure with `--flags=-https` (Sergei Trofimovich).
6348 * Use `newManager` instead of `withManager` in recent `http-client`.
6349 This avoids a deprecation warning.
6351 * Allow building with latest versions of http-types,
6352 HUnit, criterion, syb, aeson.
6354 * Updated benchmark program for new criterion API.
6356 * Setup.hs: rewrite so as not to use process, directory, filepath.
6357 Using anything outside base is dangerous, since older
6358 versions of ghc may link against two different versions.
6360 * Added appveyor (Windows continuous integration) builds.
6362 * New `.travis.yml`. Autgenerated using `make_travis_yml.hs`.
6363 This script has been modified in a few ways, e.g. to add `GHCOPTS`.
6364 `make .travis.yml` regenerates it based on the tested-with
6365 field of the cabal file.
6367pandoc (1.15.0.6)
6369 * `--self-contained`: Fixed overaggressive CSS minimization (#2301, 2286).
6370 Previously `--self-contained` wiped out all spaces in CSS,
6371 including semantically significant spaces. This was a regression
6372 from 1.14.x.
6374 * Markdown reader: don't allow bare URI links or autolinks in link
6375 label (#2300). Added test cases.
6377 * `Text.Pandoc.Parsing`, `uri`: Improved bare autolink detection (#2299).
6378 Previously we disallowed `-` at the end of an autolink,
6379 and disallowed the combination `=-`. This commit liberalizes the
6380 rules for allowing punctuation in a bare URI, and adds test cases.
6381 One potential drawback is that you can no longer put a bare
6382 URI in em dashes like this:
6383 `this uri---http://example.com---is an example.`
6384 But in this respect we now match github's treatment of bare URIs.
6386 * HTML writer: support speaker notes in dzslides.
6387 With this change `<div class="notes">` and also `<div class="notes"
6388 role="note">` will be output if `-t dzslides` is used. So we can
6389 have speaker notes in dzslides too. Thanks to maybegeek.
6391 * Updated dzslides template.
6393 * Improved documentation of options to print system default files (#2298).
6394 `--print-default-data-file` and `--print-default-template`.
6396 * DokuWiki writer: use `$..$` for Math instead of `<math>..</math>`
6397 (Tiziano Müller). MathJax seems currently to be the only maintained
6398 math rendering extension for DokuWiki.
6400 * `Text.Pandoc.Shared`: Changed `hierarchicalize` so it treats references
6401 div as top-level header (#2294). This fixes a bug with `--section-divs`,
6402 where the final references section added by pandoc-citeproc, enclosed in
6403 its own div, got nested in the div for the section previous to it.
6405 * Allow vector 0.11.
6407 * Require cmark > 0.4.
6409pandoc (1.15.0.5)
6411 * HTML writer: Fixed email javascript obfuscation with `mailto:`
6412 URLs (#2280). This fixes a potential security issue. Because
6413 single quotes weren't being escaped in the link portion, a
6414 specially crafted email address could allow javascript code injection.
6416 * Markdown/HTML readers: Avoid parsing partial URLs like
6417 `<www.pandoc.org/blah#foo>` as HTML tags (#2277).
6419 * RST reader: allow inline formatting in definition list field
6420 names (Lars-Dominik Braun).
6422 * PDF: Make sure `--latex-engine-opt` goes before the filename
6423 on the command line. LaTeX needs the argument to come after
6424 the options (#1779).
6426 * CommonMark writer: fixed tags used for super/subscript.
6428 * ConTeXt template: activate hanging indent for definition lists
6429 (Mauro Bieg).
6431 * Make cabal require `hsb2hs` >= 0.3.1 if `embed_data_files` specified.
6432 This is done by adding `hookedPrograms` in `Setup.hs`, which allows us
6433 to include `hsb2hs` in Build-Tools in cabal.
6435 * Improved Windows installer (thanks to nkalvi).
6437 + When per-machine installation is chosen, the system path
6438 is updated instead of the user's.
6439 + An appropriate default is used for per-machine installation
6440 directory.
6441 + Admin privileges are no longer required for a per-user install
6443 * Travis: unpack sdist for build to catch packaging bugs.
6445 * Improved documentation on where user templates go (#2272).
6447pandoc (1.15.0.4)
6449 * Added pandoc.1 man page to the repository. It is no longer
6450 built as part of the cabal build process. (This proved too
6451 fragile.) pandoc.1 can be regenerated (`make man/pandoc.1`)
6452 when `README` is changed.
6454 * Copying of the man page now respects `--destdir` (#2262).
6456 * Improved error messages for filters. User is now informed if
6457 the filter requires an interpreter that isn't found in the path,
6458 or if the filter returns an error status.
6460pandoc (1.15.0.3)
6462 * Ensure target directory is created when installing man page.
6464pandoc (1.15.0.2)
6466 * Added files needed for building man page to Extra-Source-Files.
6468pandoc (1.15.0.1)
6470 * Man page is now built and installed as part of the cabal build
6471 process. Removed Makefile target for man page.
6473pandoc (1.15)
6475 * Man page changes:
6477 + Removed `--man1`, `--man5` options (breaking change).
6478 + Removed `Text.Pandoc.ManPages` module (breaking API change).
6479 + Makefile target for `man/man1/pandoc.1`. This uses pandoc to
6480 create the man page from README using a custom template and filters.
6481 + Added `man/` directory with template and filters needed to build
6482 man page.
6483 + We no longer have two man pages: `pandoc.1` and `pandoc_markdown.5`.
6484 Now there is just pandoc.1, which has all the content from README.
6485 This change was needed because of the extensive cross-references
6486 between parts of the README.
6487 + Removed old `data/pandoc.1.template` and
6488 `data/pandoc_markdown.5.template`.
6490 * OpenDocument writer: Do not add a carriage return after a hard
6491 line break (Michael Chladek).
6493 * ConTeXt writer:
6495 + use `\goto` for internal links.
6496 + Added a `%` at end for `\reference` to avoid spurious space.
6498 * Ignore sandbox on 'make quick'
6500pandoc (1.14.1)
6502 * Added `--man1` and `--man5` options to pandoc, allowing pandoc
6503 to generate its own man pages. Man pages are no longer automatically
6504 generated in the build process (the process for this was too complex
6505 and prone to failure, #2190). The `make-pandoc-man-pages` executable
6506 has been removed. The `man/` directory has been removed, and man page
6507 templates have been moved to `data/`. NOTE TO PACKAGERS: You will no
6508 longer find pandoc's man pages in `man/`, but you can generate them using
6509 `pandoc --man1 > pandoc.1` and `pandoc --man5 > pandoc_markdown.5`.
6511 * Added new unexported module: `Text.Pandoc.ManPages`.
6513 * `README` now acts like a data file (even though it isn't in
6514 `data/`). So, for example, `pandoc --print-default-data-file README`
6515 will produce the README.) This change was required for the `--man1`
6516 and `--man5` options, since the man pages are produced from the
6517 README, but it may be useful for other purposes as well.
6519 * Allow `reference.docx` and `reference.odt` to be used with
6520 `--print-default-data-file` and to shadow defaults if placed in
6521 the user data directory. Note that as of 1.14, we no longer
6522 include these files as data files; instead, we include their
6523 components. This change causes pandoc to behave as if it has
6524 these data files; they are constructed on demand when needed
6525 using `getDefaultReferenceDocx` and `getDefaultReferenceODT`.
6527 * Fixed regression in CSS parsing with `--self-contained` (#2224).
6528 Pandoc 1.14.0.x used css-text to parse the CSS, but its parser
6529 silently drops big sections of CSS. This commit replaces the
6530 use of css-text with a small but principled CSS preprocessor,
6531 which removes whitespace and comments and replaces `url()` with
6532 base 64 data when possible.
6534 * Use `https://` instead of `//` for MathJax and KaTeX CDN URLs (#1920).
6535 This will allow math to work when pages are being viewed locally.
6537 * `Text.Pandoc.Options`: Export `plainExtensions`.
6538 These are the extensions used in `plain` output.
6540 * LaTeX reader: Don't parse `_` and `^` as sub/superscript outside of
6541 math mode; treat them as regular inline text. Normally these will
6542 cause an error in LaTeX, but there are contexts (e.g. `alltt`
6543 environments) where they are allowed.
6545 * HTML reader: allow `<body>` to close `<head>`.
6547 * DocBook reader: support `mediaobject`s and `figures` (#2184, Mauro Bieg).
6549 * RST reader: Fix reference names with special characters
6550 (Lars-Dominik Braun).
6552 * Textile writer: escape `+` and `-` as entities (#2225).
6554 * DokuWiki writer: Use proper `<code>` tags for code blocks (#2213).
6556 * Plain writer: don't use symbols for super/subscript (#2237).
6557 Simplified code by using `plainExtensions`.
6559 * InDesign writer: Properly escape URLs containing more than one
6560 colon character (gohai).
6562 * Docx writer: Make sure we use dist version of `reference.docx`
6563 (and not the user's version) for certain settings. Taking some
6564 settings values from a user-supplied reference.docx can lead to
6565 corruption. This fixes a regression from the last release (#2249).
6567 * `Text.Pandoc.Shared`: exports `getDefaultReferenceDocx` and
6568 `getDefaultReferenceODT` (API change). These functions have been
6569 removed from the Docx and ODT writers.
6571 * LaTeX template (Xavier Olive):
6572 + Added `CJKmainfont` and `CJKoptions` variables.
6573 + Allow dvipsnames (e.g. `MidnightBlue`) for colors (Xavier Olive).
6575 * Epub templates: use `author.role`, not `author.type`.
6577 * Bump cmark version to >= 0.3.4.
6579 * Improved Windows installer (#2205, thanks to nkalvi).
6580 Users can now select a per-user or systemwide install, and can set
6581 the installation path. At the end of installation, the install location
6582 is given. The install location is also now given in the list of
6583 installed programs in Control Panel. Cleaner WiX syntax is used for
6584 setting the path.
6586 * Added `download_stats` target to Makefile.
6588pandoc (1.14.0.4)
6590 * Added missing commonmark template.
6592 * Improved try pandoc (moved button, show raw command).
6594pandoc (1.14.0.3)
6596 * Allow compilation with syb 0.5.*.
6598 * Custom writer: fixed some compiler warnings for ghc < 7.10.
6600pandoc (1.14.0.2)
6602 * Allow building with hslua 0.4.
6604pandoc (1.14.0.1)
6606 * Fixed problem with building of `reference.docx` and `reference.odt`
6607 when the `embed_data_files` flag is used. Instead of having a phase
6608 of the build where `reference.docx` and `reference.odt` are created
6609 from their constituent data files, we now construct these archives
6610 from their constituents when a `docx` or `odt` is built. The
6611 constituent files have been moved from `extra-source-files` to
6612 `data-files`, and `reference.docx` and `reference.odt` have been
6613 removed. Users can create their own `reference.docx` or
6614 `reference.odt` by using pandoc to create a simple `docx` or `odt`.
6615 `make-reference-files.hs` has been removed, simplifying the build
6616 process (#2187)
6618 * Don't include generated man pages in extra-source-files (#2189).
6620 * Bumped upper bound for aeson.
6622 * ConTeXt writer: create internal link anchors for Div elements with
6623 identifiers. (This is needed for linked citations to work.)
6625pandoc (1.14)
6627 [new features]
6629 * Added `commonmark` as input and output format.
6631 * Added `--verbose` flag for debugging output in PDF production (#1840,
6632 #1653).
6634 * Allow wildcards in `--epub-embed-font` arguments (#1939).
6636 * Added `--latex-engine-opt` option (#969, #1779, Sumit Sahrawat).
6638 * Added `shortcut_reference_links` extension (Konstantin Zudov, #1977).
6639 This is enabled by default for those markdown flavors that
6640 support reading shortcut reference links, namely: `markdown`,
6641 `markdown_strict`, `markdown_github`, `markdown_php`.
6642 If the extension is enabled, the reader parses shortcut reference
6643 links like `[foo]`, and the writer creates such links unless doing
6644 so would cause problems. Users of markdown flavors that support
6645 shortcut reference links should not notice a difference in reading
6646 markdown, but the markdown pandoc produces may differ.
6647 If shortcut links are not desired, the extension can be disabled
6648 in the normal way.
6650 [behavior changes]
6652 * `--toc` is now supported for `docx` output (#458, Nikolay Yakimov).
6653 A "dirty" TOC is created at the beginning of document.
6654 It can be regenerated after the document has been opened.
6656 * An implicit `--filter pandoc-citeproc` is now triggered only when the
6657 `--bibliography` option is used, and not when the `bibliography`
6658 field in metadata is specified (#1849).
6660 * Markdown reader:
6662 + Reference links with `implicit_header_references` are no longer
6663 case-sensitive (#1606).
6664 + Definition lists no longer require indentation for first line (#2087).
6665 Previously the body of the definition (after the `:` or `~` marker)
6666 needed to be in column 4. This commit relaxes that requirement,
6667 to better match the behavior of PHP Markdown Extra. So, now
6668 this is a valid definition list:
6670 foo
6671 : bar
6672 + Resolve a potentially ambiguity with table captions:
6674 foo
6676 : bar
6678 -----
6679 table
6680 -----
6682 Is "bar" a definition, or the caption for the table? We'll count
6683 it as a caption for the table.
6684 + Disallow headerless pipe tables (#1996), to conform to GFM and PHP
6685 Markdown Extra. Note: If you have been using headerless pipe tables,
6686 this change may cause existing tables to break.
6687 + Allow pipe tables with header but no body (#2017).
6688 + Allow a digit as first character of a citation key (Matthias Troffaes).
6689 See https://github.com/jgm/pandoc-citeproc/issues/97
6691 * LaTeX reader:
6693 + Don't limit includes to `.tex` extension (#1882).
6694 If the extension is not `.tex`, it must be given explicitly in
6695 the `\input` or `\include`.
6697 * Docx reader:
6699 + Allow numbering in the style file. This allows inherited styles
6700 with numbering (lists) (Jesse Rosenthal).
6702 * Org reader:
6704 + Support smart punctuation (Craig Bosma).
6705 + Drop trees with a :noexport: tag (Albert Krewinkel). Trees having a
6706 `:noexport:` tag set are not exported. This mirrors org-mode.
6707 + Put header tags into empty spans (Albert Krewinkel, #2160).
6708 Org mode allows headers to be tagged: `* Headline :TAG1:TAG2`.
6709 Instead of being interpreted as part of the headline, the tags are now
6710 put into the attributes of empty spans. Spans without textual content
6711 won't be visible by default, but they are detectable by filters. They
6712 can also be styled using CSS when written as HTML.
6713 + Generalize code block result parsing (Albert Krewinkel).
6714 Previously, only code blocks were recognized as result blocks;
6715 now, any kind of block can be the result.
6717 * Append newline to the LineBreak in Dokuwiki, HTML, EPUB,
6718 LaTeX, MediaWiki, OpenDocument, Texinfo writers (#1924, Tim Lin).
6720 * HTML writer:
6722 + Add "inline" or "display" class to math spans (#1914).
6723 This allows inline and display math to be styled differently.
6724 + Include raw latex blocks if `--mathjax` specified (#1938).
6725 + Require highlighting-kate >= 0.5.14 (#1903).
6726 This ensures that all code blocks will be wrapped in a `div`
6727 with class `sourceCode`. Also, the default highlighting CSS
6728 now adds `div.sourceCode { x-overflow: auto; }`, which means
6729 that code blocks (even with line numbers) will acquire a scroll
6730 bar on screens too small to display them (e.g. mobile phones).
6731 See also jgm/highlighting-kate#65.
6733 * LaTeX writer:
6735 + Use a declaration for tight lists (Jose Luis Duran, Joseph
6736 Harriott). Previously, pandoc hard-coded some commands to make
6737 tight lists in LaTeX. Now we use a custom command instead,
6738 allowing the styling to be changed in a macro in the header.
6739 (Note: existing templates may need to be modified to include
6740 the definition of this macro. See the current template.)
6741 + Beamer output: if the header introducing a slide has the
6742 class `fragile`, add the `[fragile]` option to the slide (#2119).
6744 * MediaWiki writer:
6746 + Use `File:` instead of the deprecated `Image:` for images and
6747 other media files (Greg Rundlett).
6749 * DocBook writer:
6751 + Render a `Div (id,_,_) [Para _]` element as a `para` element
6752 with an `id` attribute. This makes links to citations work in
6753 DocBook with pandoc-citeproc.
6755 * RST writer:
6757 + Normalize headings to sequential levels (Nikolay Yakimov).
6758 This is pretty much required by docutils.
6759 + Treat headings in block quotes, etc as rubrics (Nikolay Yakimov).
6760 + Better handling of raw latex inline (#1961). We use
6761 `` :raw-latex:`...` `` and add a definition for this role to
6762 the template.
6764 * EPUB writer:
6766 + Remove `linear=no` from cover `itemref` (#1609).
6767 + Don't use `sup` element for epub footnotes (#1995).
6768 Instead, just use an a element with class `footnoteRef`.
6769 This allows more styling options, and provides better results
6770 in some readers (e.g. iBooks, where anything inside the a
6771 tag breaks popup footnotes).
6772 + Take TOC title from `toc-title` metadata field.
6774 * Docx writer:
6776 + Implemented `FirstParagraph` style (Jesse Rosenthal).
6777 Following the ODT writer, we add the `FirstParagraph` style to the
6778 first text paragraph following an image, blockquote, table, heading,
6779 or beginning of document. This allows it to be styled differently.
6780 The default is for it to be the same as `Normal`.
6781 + Added `BodyText` style (Jesse Rosenthal).
6782 We apply a `BodyText` style to all unstyled paragraphs. This is,
6783 essentially, the same as `Normal`, except that since not everything
6784 inherits from `BodyText` (the metadata won't, for example, or
6785 the headers or footnote numbers), we can change the text in the body
6786 without having to make exceptions for everything. If we do want to
6787 change *everything*, we can still do it through `Normal`.
6788 + Altered `Blockquote` style slightly (Jesse Rosenthal).
6789 Since `BlockQuote` derives from `BodyText`, we just want to specify
6790 by default that it won't indent, regardless of what `BodyText` does.
6791 Note that this will not produce any visible difference in the default
6792 configuration.
6793 + Take TOC title from `toc-title` metadata field (Nikolay Yakimov).
6794 + Added a style to figure images (Nikolay Yakimov).
6795 Figures with empty captions use style `Figure`.
6796 Figures with nonempty captions use style `Figure with Caption`, which
6797 is based on `Figure`, and additionally has `keepNext` set.
6799 * ODT writer:
6801 + Added figure captions (Nikolay Yakimov). The following styles are
6802 used for figures:
6803 `Figure` -- for figure with empty caption),
6804 `FigureWithCaption` (based on `Figure`) -- for figure with caption,
6805 `FigureCaption` (based on `Caption`) -- for figure captions.
6806 Also, `TableCaption` (based on `Caption`) is used for table captions.
6808 [API changes]
6810 * New `Text.Pandoc.Error` module with `PandocError` type
6811 (Matthew Pickering).
6813 * All readers now return `Either PandocError Pandoc` instead of `Pandoc`
6814 (Matthew Pickering). This allows better handling of errors.
6816 * Added `Text.Pandoc.Writers.CommonMark`, exporting `writeCommonMark`.
6818 * Added `Text.Pandoc.Readers.CommonMark`, exporting `readCommonMark`.
6820 * Derive `Data` and `Typeable` instances for `MediaBag`, `Extension`,
6821 `ReaderOptions`, `EPUBVersion`, `CiteMethod`, `ObfuscationMethod`,
6822 `HTMLSlideVariant`, `TrackChanges`, `WriterOptions` (Shabbaz
6823 Youssefi).
6825 * New `Ext_shortcut_reference_links` constructor for `Extension`
6826 (Konstantin Zudov).
6828 [bug fixes]
6830 * Markdown reader:
6832 + Allow smart `'` after inline math (#1909, Nikolay Yakimov).
6833 + Check for tex macros after indented code (#1973).
6834 + Rewrote `charsInBalancedBrackets` for efficiency.
6835 + Make sure a closing `</div>` doesn't get included in a
6836 definition list item (#2127).
6837 + Don't parse bracketed text as citation if it might be a link,
6838 image, or footnote (Nikolay Yakimov).
6839 + Require space after key in mmd title block (#2026, Nikolay
6840 Yakimov). Require space after key-value delimiter colon in mmd title
6841 block.
6842 + Require nonempty value in mmd title block (Nikolay Yakimov).
6843 + Disable all metadata block extensions when parsing
6844 metadata field values (#2026, Nikolay Yakimov). Otherwise we
6845 could get a mmd title block inside YAML metadata, for example.
6847 * HTML reader:
6849 + Improve self-closing tag detection in `htmlInBalanced` (#2146).
6850 + Handle tables with `<th>` in body rows (#1859, Mauro Bieg).
6851 + Fixed `htmlTag` (#1820). If the tag parses as a comment, we check
6852 to see if the input starts with `<!--`. If not, it's bogus comment
6853 mode and we fail `htmlTag`.
6854 + Handle `base` tag; if it has an `href` value, this is added to
6855 all relative URLs in links and images.
6857 * DocBook reader:
6859 + Look inside "info" elements for section titles (#1931).
6861 * Docx reader:
6863 + Parse images in deprecated vml format (Jesse Rosenthal).
6864 + Allow sub/superscript verbatims (Jesse Rosenthal).
6865 Verbatim usually shuts off all other run styles, but we don't want it
6866 to shut off sub/superscript.
6868 * LaTeX reader:
6870 + Handle `tabular*` environment (#1850).
6871 Note that the table width is not actually parsed or taken into
6872 account, but pandoc no longer chokes on it.
6873 + Ignore options in `\lstinline` rather than raising error (#1997).
6874 + Add some test cases for simple tables (Mathias Schenner).
6875 + Handle valign argument in tables (Mathias Schenner) (currently
6876 we just ignore this).
6877 + Allow non-empty colsep in tables (Mathias Schenner).
6878 The `tabular` environment allows non-empty column separators
6879 with the "@{...}" syntax. Previously, pandoc would fail to
6880 parse tables if a non-empty colsep was present. With this
6881 commit, these separators are still ignored, but the table gets
6882 parsed. A test case is included.
6883 + Recognize `\newpage` as a block command.
6884 + Allow block content in \title{} (#2001).
6885 + Check for block-level newcommand aliases in blockCommand (Nikolay
6886 Yakimov).
6887 + Guard against paragraph starting with inline macro (Nikolay Yakimov).
6888 + Properly gobble spaces after `\\` (#2007).
6890 * Textile reader:
6892 + Handle newlines in table cells, and empty cells (#1919).
6894 * Org reader:
6896 + Allow image links with non-image targets (Hans-Peter Deifel).
6897 This matches behavior of Org-Mode for links like
6898 `[[http://example.com][https://www.haskell.org/static/img/logo.png]]`.
6900 * Docbook writer:
6902 + Don't print empty id attributes (thanks to Steve Horne).
6904 * HTML writer:
6906 + Fixed list-style-type for numbered example lists.
6907 Should be "decimal," not "example" (#1902).
6908 + Do not omit missing `alt` attribute on `img` tag (#1131,
6909 Konstantin Zudov).
6910 + Allow multiple colgroups in table (#2122).
6911 + In revealjs, ensure that lists in speaker notes don't add "fragment"
6912 classes, which can cause additional keypresses to be needed to
6913 advance a slide (#1394).
6915 * LaTeX writer:
6917 + Don't escape `$` in URL (#1913).
6918 + Don't use listings in headers (Matthew Pickering, #1963).
6919 + Recognize book documentclass if set in metadata (#1971).
6920 This sets `--chapters` implicitly if the documentclass in metadata
6921 is a book documentclass. Previously this was done only if a book
6922 documentclass was set in a variable.
6923 + Add a `\label` in `\hyperdef` for Div, Span (or links don't work).
6924 + Make `mainlang` work when `lang` is in metadata (#2174).
6926 * Texinfo writer:
6928 + Fix wrapping by using breakable spaces (Tim Lin).
6930 * RST writer:
6932 + Fixed toc depth in RST writer. Previously the depth was being
6933 rendered as a floating point number with a decimal point.
6935 * Markdown writer:
6937 + Improved escaping (#2086). `<` should not be escaped as `\<`, for
6938 compatibility with original Markdown. We now escape `<` and `>`
6939 with entities. Also, we now backslash-escape square brackets.
6940 + Avoid introducing spurious list items through wrapping (#1946).
6941 + Don't emit span tags if plain or raw HTML disabled.
6943 * MediaWiki writer:
6945 + Convert spaces to underscores in wikilink URL (#1982), like MediaWiki.
6947 * AsciiDoc writer:
6949 + Insert some needed blank lines (#1860).
6950 + Avoid wrapping after list marker (#1858).
6952 * EPUB writer:
6954 + Properly handle internal links to IDs in spans, divs (#1884).
6955 + Use plain writer for metadata dc: fields (#2121).
6956 This gives better results when we have, e.g. multiple paragraphs.
6957 Note that tags aren't allowed in these fields.
6958 + Properly handle image links without an extension (#1855).
6959 + Improved chapter splitting and internal link rewriting (#1887,
6960 #2162, #2163). This will ensure that internal links work and
6961 that the references section produced by pandoc-citeproc is
6962 in its own chapter.
6963 + Fixed handling of svg images (#2183).
6965 * ICML writer:
6967 + Better handling of raw blocks and inlines (#1951).
6968 Previously these were always escaped and printed verbatim.
6969 Now they are ignored unless the format is `icml`, in which
6970 case they are passed through unescaped.
6971 + Fixed image URIs in ICML output (gohai).
6973 * Custom writer:
6975 + Raise error if loadstring returns an error status.
6976 + Raise `PandocLuaException` instead of using 'error'.
6977 Eventually we'll change the return type so that no exception
6978 is involved, but at least this can be trapped.
6979 + Use UTF-8 aware bytestring conversion.
6980 + Set foreign encoding to UTF-8 (Nikolay Yakimov, #2101, #1634).
6981 Also factored out ByteString, since it's only used as an intermediate
6982 representation.
6984 * Docx writer:
6986 + Copy hyphenation settings from reference.docx (Nikolay Yakimov).
6987 + Filter out illegal XML characters (#1992, Matthew Pickering).
6988 + Added `noProof` to docx syntax highlighting `SourceCode` style.
6989 + Added footnotes id -1 and 0 (Jesse Rosenthal).
6990 Word uses, by default, footnotes with id -1 and 0 for separators. If a
6991 user modifies `reference.docx`, they will end up with a `settings.xml`
6992 file that references these footnotes, but no such footnotes in the
6993 document. This will produce a corruption error. Here we add these to the
6994 document and `settings.xml` file, so future modifications won't break
6995 the file.
6996 + Handle lists correctly inside table cells (Jesse Rosenthal).
6997 Previously we didn't transform lists inside table cells.
6998 + Set firstRow information in tables (Nikolay Yakimov).
6999 + Don't replace `SourceCode` style in `reference.docx` if it is defined
7000 there (Nikolay Yakimov, #1872). If `--no-highlight` specified, remove
7001 any `SourceCode` and `*Tok` styles in `reference.docx`.
7002 + Attempt to match international style names (#1607, Nikolay Yakimov).
7003 + Set these styles as custom (Nikolay Yakimov): `Author`, `Abstract`,
7004 `Compact`, `Image Caption`, `Table Caption`, `Definition Term`,
7005 `Definition`, `First Paragraph`.
7006 + Rename these styles to correspond with Word `Normal.dotm` (Nikolay
7007 Yakimov): `Block Quote -> Block Text`, `Link -> Hyperlink`,
7008 `Footnote Ref -> Footnote Reference`.
7009 + Added `Caption` style (Nikolay Yakimov).
7010 + Changed these styles' inheritance (Nikolay Yakimov):
7011 `Image Caption <- Caption`, `Table Caption <- Caption`.
7012 + Remove `SourceCode` style from `reference.docx` (#1872).
7013 This is added automatically by the docx writer.
7014 + Added toc heading style to `reference.docx` (Nikolay Yakimov).
7016 * `Text.Pandoc.PDF`
7018 + Don't suggest "Try xelatex" if xelatex already in use (Mauro Bieg,
7019 #1832).
7020 + More comprehensible errors on image conversion (#2067).
7021 EPS can't be supported without shelling out to something like
7022 ImageMagick, but at least we can avoid mysterious error messages.
7024 * `Text.Pandoc.Shared`:
7026 + Make safeRead safe (#1801, Matthew Pickering).
7027 + Added `mapLeft`, `hush` (Matthew Pickering).
7029 * `Text.Pandoc.Pretty`:
7031 + Remove partial function (Matthew Pickering).
7033 * `Text.Pandoc.SelfContained`:
7035 + Add `;charset=utf-8` to script mime type if missing (#1842).
7036 + Improved building of data URIs (#1940). Now base64 is used except
7037 for `text/*` mime types.
7038 + `cssURLs` no longer tries to fetch fragment URLs (#2121).
7039 + Properly handle data URIs in css urls (#2129).
7040 Use a proper CSS parser (adds dependency on `text-css`).
7042 * `Text.Pandoc.UTF8`:
7044 + Better handling of bare CRs in input files (#2132).
7045 Previously we just stripped them out; now we convert
7046 other line ending styles to LF line endings.
7048 * `Text.Pandoc.ImageSize`:
7050 + Fixed some exif header parsing bugs (#1834).
7051 + Make imageSize return an Either, not a Maybe (#1834).
7052 Use `runGetOrFail` (with `binary >= 0.7`) to return `Left` on
7053 parse failure (rather than `error`).
7054 + Improved warnings when image size can't be determined.
7055 + Removed error landmines (Matthew Pickering).
7057 * Added woff2 to MIME types (Alfred Wechselberger).
7059 * pandoc: When a binary input format is used, warn that file
7060 arguments past the first one are being ignored (Matthew Pickering).
7062 [template changes]
7064 * LaTeX template:
7066 + Degrade gracefully if `\paragraph` not defined.
7067 + Include `grffile` together with `graphicx` (#2074).
7068 This properly handles filenames containing spaces and dots.
7069 + Redefine `\paragraph`, `\subparagraph`... to behave more
7070 like section headers (#1658).
7071 + Import hyperref before polyglossia to avoid an error with xelatex,
7072 "please load package hyperref before bidi package" (Nick Bart).
7073 + Added `toccolor` variable to control link color in toc (Kaixhin).
7075 * LaTeX, Beamer templates:
7077 + Provide `\tightlist`, which is now used by the LaTeX writer.
7078 + Use polyglossia in beamer (#85).
7079 + Use `bibliography` instead of `biblio-files`
7080 (#1661). Also use `\addbibresource` instead of `\bibliography` for
7081 biblatex.
7082 + Added `setotherlanguages` in polyglossia. This uses an `otherlang`
7083 variable that is derived from a comma-separated list in `lang`;
7084 the last language is `mainlang` and the others are `otherlang`.
7086 * EPUB templates:
7088 + Use `div`, not `p`, for "rights" on title page.
7089 + Added header-includes, include-before, include-after (#1987).
7091 * OpenDocument template:
7093 + Use `text:p` instead of `text:h` for title.
7094 Using `text:h` causes problems with numbering. Closes #2059.
7095 Thanks to @nkalvi for diagnosing this.
7097 * reveal.js template:
7099 + Link to non-minified css, js. The minified versions no longer
7100 ship with the library.
7101 + Correctly include style CSS (#1949).
7102 + New configurable options options: `center`, `maxScale`, `slideNuber`
7103 (Dmitry Smirnov, pandoc-templates#89).
7104 + Moved custom CSS after theme. This allows custom CSS to modify
7105 themes, instead of being replaced by them.
7106 + Allow `center` to be set to false.
7108 [under the hood improvements]
7110 * Removed pre-built `reference.docx` and `reference.odt` (Nikolay
7111 Yakimov). Instead the repository now includes the component text files,
7112 and the zipped binaries are built from these using a helper
7113 program, `make-reference-files`. This should make maintenance of
7114 these components easier going forward.
7116 * `Text.Pandoc.Parsing`:
7118 + Added new `<+?>` combinator (Nikolay Yakimov).
7119 + Added `stateHeaderKeys` to `ParserState`.
7121 * `make_deb.sh` fixes:
7123 + Detect architecture.
7124 + Add Installed-Size to debian package control file (#1900).
7125 + Use `fakeroot` to get permissions right.
7126 + Use `mkdir` and `cp` instead of `install`.
7127 + Set permissions of directories to 755.
7128 + Install in `/usr` rather than `/usr/local`.
7129 + Compress man pages.
7130 + Combine copyright files for `pandoc`, `pandoc-citeproc`.
7132 * Added `Text.Pandoc.Compat.Locale` and `old-locale` flag
7133 to assist with transition to `time` 1.5.
7135 * Updated CONTRIBUTING.md with information about issue tags (Matthew
7136 Pickering).
7138 * Updated travis installs to the new sudo-less syntax (Tim Lin).
7140 * Updated dependency version bounds.
7142 * EPUB tests: don't use `joinPath`, which varies across platforms.
7143 Instead, use a forward-slash to join paths, regardless of the
7144 platform. This matches the way `MediaBag` now works.
7146 * Clarify JSON input and output in usage message (Caleb McDaniel).
7148 * Improved INSTALL instructions.
7150 * Always build man pages. Removed make-pandoc-man-pages flag.
7152 * Makefile: removed man target, now that we generate man pages by default.
7154 * README:
7156 + Fixed typos (J. Lewis Muir).
7157 + Added documentation on backtick_code_blocks (#2135, Nikolay Yakimov).
7158 + Added note on in-field markup in biblio databases (Nick Bart).
7159 + Fixed misleading example of raw HTML block.
7160 + Various minor formatting and consistency fixes for the program
7161 options (Andreas Lööw).
7162 + Made definition lists for options all "loose" for consistency.
7163 + Added YAML biblio format to table, and note on `pandoc-citeproc`'s
7164 `--bib2json` and `--bib2yaml` options (Nick Bart).
7165 + Removed obsolete reference to `mods2yaml` (Nick Bart).
7166 + Added section on syntax highlighting.
7167 + Documented `toccolor` variable.
7169pandoc (1.13.2.1)
7171 * Updated to build with ghc 7.10.1.
7173 * Bumped package upper bounds for filepath, blaze-html,
7174 blaze-markup.
7176pandoc (1.13.2)
7178 * TWiki Reader: add new new twiki reader (API change, Alexander Sulfrian).
7180 * Markdown reader:
7182 + Better handling of paragraph in div (#1591).
7183 Previously text that ended a div would be parsed as Plain
7184 unless there was a blank line before the closing div tag.
7185 + Don't treat a citation as a reference link label (#1763).
7186 + Fix autolinks with following punctuation (#1811).
7187 The price of this is that autolinked bare URIs can no longer
7188 contain `>` characters, but this is not a big issue.
7189 + Fix `Ext_lists_without_preceding_blankline` bug (#1636, Artyom).
7190 + Allow `startnum` to work without `fancy_lists`. Formerly
7191 `pandoc -f markdown-fancy_lists+startnum` did not work properly.
7193 * RST reader (all Daniel Bergey):
7195 + Parse quoted literal blocks (#65). RST quoted literal blocks are
7196 the same as indented literal blocks (which pandoc already supports)
7197 except that the quote character is preserved in each line.
7198 + Parse RST class directives. The class directive accepts one or more
7199 class names, and creates a Div value with those classes. If the
7200 directive has an indented body, the body is parsed as the children of
7201 the Div. If not, the first block following the directive is made a
7202 child of the Div. This differs from the behavior of rst2xml, which
7203 does not create a Div element. Instead, the specified classes are
7204 applied to each child of the directive. However, most Pandoc Block
7205 constructors to not take an Attr argument, so we can't duplicate this
7206 behavior.
7207 + Warn about skipped directives.
7208 + Literal role now produces Code. Code role should have "code" class.
7209 + Improved support for custom roles
7211 - Added `sourceCode` to classes for `:code:` role, and anything
7212 inheriting from it.
7213 - Add the name of the custom role to classes if the Inline
7214 constructor supports Attr.
7215 - If the custom role directive does not specify a parent role,
7216 inherit from the `:span:` role.
7218 This differs somewhat from the `rst2xml.py` behavior. If a custom
7219 role inherits from another custom role, Pandoc will attach both
7220 roles' names as classes. `rst2xml.py` will only use the class of
7221 the directly invoked role (though in the case of inheriting from a
7222 `:code:` role with a `:language:` defined, it will also provide the
7223 inherited language as a class).
7224 + Warn about ignored fields in role directives.
7226 * LaTeX reader:
7228 + Parse label after caption into a span instead of
7229 inserting an additional paragraph of bracketed text (#1747).
7230 + Parse math environments as inline when possible (#1821).
7231 + Better handling of `\noindent` and `\greektext` (#1783).
7232 + Handle `\texorpdfstring` more gracefully.
7233 + Handle `\cref` and `\sep` (Wikiwide).
7234 + Support `\smartcite` and `\Smartcite` from biblatex.
7236 * HTML reader:
7238 + Retain display type of MathML output (#1719, Matthew Pickering).
7239 + Recognise `<br>` tags inside `<pre>` blocks (#1620, Matthew Pickering).
7240 + Make `embed` tag either block or inline (#1756).
7242 * DocBook reader:
7244 + Handle `keycombo`, `keycap` (#1815).
7245 + Get string content in inner tags for literal elements (#1816).
7246 + Handle `menuchoice` elements better, with a `>` between (#1817).
7247 + Include `id` on section headers (#1818).
7248 + Document/test "type" as implemented (Brian O'Sullivan).
7249 + Add support for calloutlist and callout (Brian O'Sullivan).
7250 We treat a calloutlist as a bulleted list. This works well in practice.
7251 + Add support for `classname` (Bryan O'Sullivan).
7253 * Docx reader:
7255 + Fix window path for image lookup (Jesse Rosenthal).
7256 Don't use os-sensitive "combine", since we always want the paths in our
7257 zip-archive to use forward-slashes.
7258 + Single-item headers in ordered lists are headers (Jesse Rosenthal).
7259 When users number their headers, Word understands that as a single item
7260 enumerated list. We make the assumption that such a list is, in fact,
7261 a header.
7262 + Rewrite rewriteLink to work with new headers (Jesse Rosenthal).
7263 There could be new top-level headers after making lists, so we have to
7264 rewrite links after that.
7265 + Use polyglot header list (Jesse Rosenthal).
7266 We're just keeping a list of header formats that different languages
7267 use as their default styles. At the moment, we have English, German,
7268 Danish, and French. We can continue to add to this.
7269 This is simpler than parsing the styles file, and perhaps less
7270 error-prone, since there seems to be some variations, even within a
7271 language, of how a style file will define headers.
7272 + Remove header class properly in other langs (Jesse Rosenthal).
7273 When we encounter one of the polyglot header styles, we want to remove
7274 that from the par styles after we convert to a header. To do that, we
7275 have to keep track of the style name, and remove it appropriately.
7276 + Account for external link URLs with anchors. Previously, if a URL
7277 had an anchor, the reader would incorrectly identify it as an
7278 internal link and return only the anchor as URL. (Caleb McDaniel)
7279 + Fix for Issue #1692 (i18n styles) (Nikolay Yakimov).
7281 * Org reader:
7283 + Added state changing blanklines (Jesse Rosenthal).
7284 This allows us to emphasize at the beginning of a new paragraph (or, in
7285 general, after blank lines).
7286 + Fixed bug with bulleted lists:
7288 - a
7289 - b
7290 * c
7292 was being parsed as a list, even though an unindented `*`
7293 should make a heading. See
7294 <http://orgmode.org/manual/Plain-lists.html#fn-1>.
7295 + Org reader: absolute, relative paths in link (#1741, Albert
7296 Krewinkel). The org reader was too restrictive when parsing links;
7297 some relative links and links to files given as absolute paths
7298 were not recognized correctly.
7299 + Org reader: allow empty links (jgm/gitit#471, Albert Krewinkel).
7300 This is important for use in gitit, which uses empty links
7301 for wikilinks.
7302 + Respect indent when parsing Org bullet lists (#1650, Timothy
7303 Humphries). Fixes issue with top-level bullet list parsing.
7304 + Fix indent issue for definition lists (Timothy Humphries,
7305 see #1650, #1698, #1680).
7306 + Parse multi-inline terms correctly in definition list (#1649,
7307 Matthew Pickering).
7308 + Fix rules for emphasis recognition (Albert Krewinkel).
7309 Things like `/hello,/` or `/hi'/` were falsy recognized as emphasised
7310 strings. This is wrong, as `,` and `'` are forbidden border chars and
7311 may not occur on the inner border of emphasized text.
7312 + Drop COMMENT document trees (Albert Krewinkel).
7313 Document trees under a header starting with the word `COMMENT` are
7314 comment trees and should not be exported. Those trees are dropped
7315 silently (#1678).
7316 + Properly handle links to `file:target` (Albert Krewinkel).
7317 Org links like `[[file:target][title]]` were not handled correctly,
7318 parsing the link target verbatim. The org reader is changed such that
7319 the leading `file:` is dropped from the link target (see #756, #1812).
7320 + Parse LaTeX-style MathML entities (#1657, Albert Krewinkel).
7321 Org supports special symbols which can be included using LaTeX syntax,
7322 but are actually MathML entities. Examples for this are
7323 `\nbsp` (non-breaking space), `\Aacute` (the letter A with accent acute)
7324 or `\copy` (the copyright sign ©)
7326 * EPUB reader:
7328 + URI handling improvements. Now we outsource most of the work to
7329 `fetchItem'`. Also, do not include queries in file extensions (#1671).
7331 * LaTeX writer:
7333 + Use `\texorpdfstring` for section captions when needed (Vaclav Zeman).
7334 + Handle consecutive linebreaks (#1733).
7335 + Protect graphics in headers (Jesse Rosenthal).
7336 Graphics in `\section`/`\subsection` etc titles need to be `\protect`ed.
7337 + Put `~` before header in list item text (Jesse Rosenthal).
7338 Because of the built-in line skip, LaTeX can't handle a section header
7339 as the first element in a list item.
7340 + Avoid using reserved characters as `\lstinline` delimiters (#1595).
7341 + Better handling of display math in simple tables (#1754).
7342 We convert display math to inline math in simple tables,
7343 since LaTeX can't deal with display math in simple tables.
7344 + Escape spaces in code (#1694, Bjorn Buckwalter).
7346 * MediaWiki writer:
7348 + Fixed links with URL = text. Previously these were rendered as bare
7349 words, even if the URL was not an absolute URL (#1825).
7351 * ICML writer:
7353 + Don't force all citations into footnotes.
7355 * RTF writer:
7357 + Add blankline at end of output (#1732, Matthew Pickering).
7359 * RST writer:
7361 + Ensure blank line after figure.
7362 + Avoid exces whitespace after last list item (#1777).
7363 + Wrap line blocks with spaces before continuations (#1656).
7364 + Fixed double-rendering of footnotes in RST tables (#1769).
7366 * DokuWiki writer:
7368 + Better handling of block quotes. This change ensures that
7369 multiple paragraph blockquotes are rendered using native `>`
7370 rather than as HTML (#1738).
7371 + Fix external images (#1739). Preface relative links with ":",
7372 absolute URIs without. (Timothy Humphries)
7374 * HTML writer:
7376 + Use protocol-relative URL for mathjax.
7377 + Put newline btw img and caption paragraph.
7378 + MathML now outputted with tex annotation (#1635, Matthew Pickering).
7379 + Add support for KaTeX HTML math (#1626, Matthew Pickering).
7380 This adds `KaTeX` to `HTMLMathMethod` (API change).
7381 + Don't double render when `email-obfuscation=none` (#1625, Matthew
7382 Pickering).
7383 + Make header attributes work outside top level (#1711).
7384 Previously they only appeared on top level header elements.
7385 Now they work e.g. in blockquotes.
7387 * ODT writer:
7389 + Correctly handle images without extensions (#1729).
7390 + Strip querystring in ODT write (#1682, Todd Sifleet).
7392 * FB2 writer:
7394 + Add newline to output.
7396 * EPUB writer:
7398 + Don't add `sourceURL` to absolute URIs (#1669).
7399 + Don't use unsupported `opf:title-type` for epub2.
7400 + Include "landmarks" section in nav document for epub3 (#1757).
7401 + Removed playOrder from navpoint elements in ncx file (#1760).
7402 These aren't required, and they make manual modification of epubs
7403 difficult.
7404 + Extract title even from structured title.
7405 + Don't include nav node in spine unless `--toc` was requested.
7406 Previously we included it in the spine with `linear="no"`, leading
7407 to odd results in some readers (#1593).
7408 + Fixed absolute URI detection (#1672).
7409 + Correctly resolve relative URIs (#1671).
7410 + Use regular page template for `nav.xhtml`, including doctype (#1759).
7412 * Docx writer:
7414 + Put docx table captions above tables (#1641, Nikolay Yakimov).
7415 + Get the page width from the reference docx file, and use
7416 it to scale images that are too large to fit (Grégory Bataille).
7417 + Partial fix for #1607 (Nikolay Yakimov). International heading styles
7418 are inferred based on `<w:name val="heading #">` fallback, if there
7419 are no en-US "Heading#" styles
7420 + Look in user data dir for archive `reference.docx`.
7421 + Renumber header and footer relationships to avoid collisions (Jesse
7422 Rosenthal). We previously took the old relationship names of the
7423 headers and footer in secptr. That led to collisions. We now make
7424 a map of availabl names in the relationships file, and then rename
7425 in secptr.
7427 * ConTeXt writer:
7429 + Add function toLabel (Mark Szepieniec).
7430 This function can be used to sanitize reference labels so that
7431 they do not contain any of the illegal characters \#[]",{}%()|= .
7432 Currently only Links have their labels sanitized, because they
7433 are the only Elements that use passed labels.
7435 * `Text.Pandoc.Shared`:
7437 + Moved import of `toChunks` outside of CPP conditional (#1590).
7438 + Fix `inDirectory` to reset to the original directory in case
7439 an exception occurs (Freiric Barral).
7441 * Templates:
7443 + LaTeX template: load polyglossia before bibtex (jgm/pandoc-templates#70).
7444 Thanks to bluebirch.
7445 + LaTeX template: Added `\VerbatimFootnotes` if there is verbatim in notes
7446 (#1616).
7447 + LaTeX template: Add shorthands=off to babel options (#1648).
7448 + EPUB, EPUB3 templates: Added `id="cover"` to body of cover page.
7449 This aids styling, making it possible for example to set 0 margins
7450 on the title page (#1758).
7451 + EPUB, EPUB3 templates: Handle structured metadata on titlepage.
7452 Previously we just expected 'title', 'subtitle', 'author', 'date'.
7453 Now we still support those, but also support the format recommended
7454 for epub metadata in the pandoc README:
7456 ---
7457 title:
7458 - type: main
7459 text: My Book
7460 - type: subtitle
7461 text: An investigation of metadata
7462 creator:
7463 - role: author
7464 text: John Smith
7465 - role: editor
7466 text: Sarah Jones
7467 identifier:
7468 - scheme: DOI
7469 text: doi:10.234234.234/33
7470 publisher: My Press
7471 rights: (c) 2007 John Smith, CC BY-NC
7472 ...
7474 * `Text.Pandoc.Templates.getDefaultTemplate`:
7475 don't fail when called with "fb2" (#1660).
7477 * `Text.Pandoc.Parsing`:
7479 + Fixed `inlineMath` so it handles `\text{..}` containing `$`.
7480 For example: `$x = \text{the $n$th root of $y$}` (#1677).
7481 + Change `parseFromString` to fail if not all input is consumed.
7482 (Matthew Pickering)
7483 + Moved `addWarning` from Markdown reader to `Parsing`, so it can be
7484 used by more readers (API change, Daniel Bergey).
7486 * `Text.Pandoc.Pretty`:
7488 + Improve performance of `realLength` (Matthew Pickering).
7489 + Make CR + BLANKLINE = BLANKLINE. This fixes an extra blank line we
7490 were getting at the end of markdown fragments (as well as rst, org,
7491 etc.) (#1705).
7493 * `Text.Pandoc.MIME`:
7495 + Add mime type for WebVTT (Jason Ronallo).
7496 + Changed mime type for `otf` to `application/vnd.ms-opentype` (#1761).
7497 This is needed for epub3 validation.
7499 * `Text.Pandoc.MediaBag`:
7501 + Fix Windows specific path problems (#1597).
7503 * `Text.Pandoc.Shared`:
7505 + Make `collapseFilePath` OS-agnostic (Matthew Pickering).
7507 * Link the test suite using `-threaded`.
7508 This allows the test suite to be run using `+RTS -N`.
7510 * Added `network` dependency under `network-uri` flag in test section.
7512 * Give better error messages when someone tries to convert from
7513 pdf, doc, odt (#1683).
7515 * Added `track` to list of tags treated by `--self-contained` (#1664).
7517pandoc (1.13.1)
7519 * Fixed `--self-contained` with Windows paths (#1558).
7520 Previously `C:\foo.js` was being wrongly interpreted as a URI.
7522 * HTML reader: improved handling of tags that can be block or inline.
7523 Previously a section like this would be enclosed in a paragraph,
7524 with RawInline for the video tags (since video is a tag that can
7525 be either block or inline):
7527 <video controls="controls">
7528 <source src="../videos/test.mp4" type="video/mp4" />
7529 <source src="../videos/test.webm" type="video/webm" />
7530 <p>
7531 The videos can not be played back on your system.<br/>
7532 Try viewing on Youtube (requires Internet connection):
7533 <a href="http://youtu.be/etE5urBps_w">Relative Velocity on
7534 Youtube</a>.
7535 </p>
7536 </video>
7538 This change will cause the video and source tags to be parsed
7539 as RawBlock instead, giving better output.
7540 The general change is this: when we're parsing a "plain" sequence
7541 of inlines, we don't parse anything that COULD be a block-level tag.
7543 * Docx reader:
7545 + Be sensitive to user styles. Note that "Hyperlink" is
7546 "blacklisted," as we don't want the default underline styling to be
7547 inherited by all links by default (Jesse Rosenthal).
7548 + Read single paragraph in table cell as `Plain` (Jesse Rosenthal).
7549 This makes to docx reader's native output fit with the way the markdown
7550 reader understands its markdown output.
7552 * Textile writer: Extended the range of cases where native textile
7553 tables will be used (as opposed to raw HTML): we now handle any
7554 alignment type, but only for simple tables with no captions.
7556 * Txt2Tags reader:
7558 + Header is now parsed only if standalone flag is set (Matthew Pickering).
7559 + The header is now parsed as meta information. The first line is the
7560 `title`, the second is the `author` and third line is the `date`
7561 (Matthew Pickering).
7562 + Corrected formatting of `%%mtime` macro (Matthew Pickering).
7563 + Fixed crash when reading from stdin.
7565 * EPUB writer: Don't use page-progression-direction in EPUB2, which
7566 doesn't support it. Also, if page-progression-direction not specified
7567 in metadata, don't include the attribute even in EPUB3; not including it
7568 is the same as including it with the value "default", as we did before.
7569 (#1550)
7571 * Org writer: Accept example lines with indentation at the beginning
7572 (Calvin Beck).
7574 * DokuWiki writer:
7576 + Refactor to use Reader monad (Matthew Pickering).
7577 + Avoid using raw HTML in table cells; instead, use `\\`
7578 instead of newlines (Jesse Rosenthal).
7579 + Properly handle HTML table cell alignments, and use spacing
7580 to make the tables look prettier (#1566).
7582 * Docx writer:
7584 + Bibliography entries get `Bibliography` style (#1559).
7585 + Implement change tracking (Jesse Rosenthal).
7587 * LaTeX writer:
7589 + Fixed a bug that caused a table caption to repeat across all pages
7590 (Jose Luis Duran).
7591 + Improved vertical spacing in tables and made it customizable using
7592 standard lengths set by booktab. See
7593 <https://groups.google.com/forum/#!msg/pandoc-discuss/qMu6_5lYy0o/ZAU7lzAIKw0J>
7594 (Jose Luis Duran).
7595 + Added `\strut` to fix spacing in multiline tables (Jose Luis Duran).
7596 + Use `\tabularnewline` instead of `\\` in table cells (Jose Luis Duran).
7597 + Made horizontal rules more flexible (Jose Luis Duran).
7599 * Text.Pandoc.MIME:
7601 + Added `MimeType` (type synonym for `String`) and `getMimeTypeDef`.
7602 Code cleanups (Artyom Kazak).
7604 * Templates:
7606 + LaTeX template: disable microtype protrusion for typewriter font (#1549,
7607 thanks lemzwerg).
7609 * Improved OSX build procedure.
7611 * Added `network-uri` flag, to deal with split of `network-uri` from
7612 `network`.
7614 * Fix build dependencies for the `trypandoc` flag, so that they are
7615 ignored if `trypandoc` flag is set to False (Gabor Pali).
7617 * Updated README to remove outdated claim that `--self-contained`
7618 looks in the user data directory for missing files.
7620pandoc (1.13.0.1)
7622 * Docx writer:
7624 + Fixed regression which bungled list numbering (#1544), causing
7625 all lists to appear as basic ordered lists.
7626 + Include row width in table rows (Christoffer Ackelman, Viktor Kronvall).
7627 Added a property to all table rows where the sum of column widths
7628 is specified in pct (fraction of 5000). This helps persuade Word
7629 to lay out the table with the widths we specify.
7631 * Fixed a bug in Windows 8 which caused pandoc not to find the
7632 `pandoc-citeproc` filter (#1542).
7634 * Docx reader: miscellaneous under-the-hood improvements (Jesse Rosenthal).
7635 Most significantly, the reader now uses Builder, leading to some
7636 performance improvements.
7638 * HTML reader: Parse appropriately styled span as SmallCaps.
7640 * Markdown writer: don't escape `$`, `^`, `~` when `tex_math_dollars`,
7641 `superscript`, and `subscript` extensions, respectively, are
7642 deactivated (#1127).
7644 * Added `trypandoc` flag to build CGI executable used in the online
7645 demo.
7647 * Makefile: Added 'quick', 'osxpkg' targets.
7649 * Updated README in templates to indicate templates license.
7650 The templates are dual-licensed, BSD3 and GPL2+.
7652pandoc (1.13)
7654 [new features]
7656 * Added `docx` as an input format (Jesse Rosenthal). The docx
7657 reader includes conversion of native Word equations to pandoc
7658 LaTeX `Math` elements. Metadata is taken from paragraphs at the
7659 beginning of the document with styles `Author`, `Title`, `Subtitle`,
7660 `Date`, and `Abstract`.
7662 * Added `epub` as an input format (Matthew Pickering). The epub
7663 reader includes conversion of MathML to pandoc LaTeX `Math`
7664 elements.
7666 * Added `t2t` (Txt2Tags) as an input format (Matthew Pickering).
7667 Txt2tags is a lightweight markup format described at
7668 <http://txt2tags.org/>.
7670 * Added `dokuwiki` as an output format (Clare Macrae).
7672 * Added `haddock` as an output format.
7674 * Added `--extract-media` option to extract media contained in a zip
7675 container (docx or epub) while adjusting image paths to point to the
7676 extracted images.
7678 * Added a new markdown extension, `compact_definition_lists`, that
7679 restores the syntax for definition lists of pandoc 1.12.x, allowing
7680 tight definition lists with no blank space between items, and
7681 disallowing lazy wrapping. (See below under behavior changes.)
7683 * Added an extension `epub_html_exts` for parsing HTML in EPUBs.
7685 * Added extensions `native_spans` and `native_divs` to activate
7686 parsing of material in HTML span or div tags as Pandoc Span
7687 inlines or Div blocks.
7689 * `--trace` now works with the Markdown, HTML, Haddock, EPUB,
7690 Textile, and MediaWiki readers. This is an option intended
7691 for debugging parsing problems; ordinary users should not need
7692 to use it.
7694 [behavior changes]
7696 * Changed behavior of the `markdown_attribute` extension, to bring
7697 it in line with PHP markdown extra and multimarkdown. Setting
7698 `markdown="1"` on an outer tag affects all contained tags,
7699 recursively, until it is reversed with `markdown="0"` (#1378).
7701 * Revised markdown definition list syntax (#1429). Both the reader
7702 and writer are affected. This change brings pandoc's definition list
7703 syntax into alignment with that used in PHP markdown extra and
7704 multimarkdown (with the exception that pandoc is more flexible about
7705 the definition markers, allowing tildes as well as colons). Lazily
7706 wrapped definitions are now allowed. Blank space is required
7707 between list items. The space before a definition is used to determine
7708 whether it is a paragraph or a "plain" element. **WARNING: This change
7709 may break existing documents!** Either check your documents for
7710 definition lists without blank space between items, or use
7711 `markdown+compact_definition_lists` for the old behavior.
7713 * `.numberLines` now works in fenced code blocks even if no language
7714 is given (#1287, jgm/highlighting-kate#40).
7716 * Improvements to `--filter`:
7718 + Don't search PATH for a filter with an explicit path.
7719 This fixed a bug wherein `--filter ./caps.py` would run `caps.py` from
7720 the system path, even if there was a `caps.py` in the working directory.
7721 + Respect shebang if filter is executable (#1389).
7722 + Don't print misleading error message.
7723 Previously pandoc would say that a filter was not found,
7724 even in a case where the filter had a syntax error.
7726 * HTML reader:
7728 + Parse `div` and `span` elements even without `--parse-raw`,
7729 provided `native_divs` and `native_spans` extensions are set.
7730 Motivation: these now generate native pandoc Div and Span
7731 elements, not raw HTML.
7732 + Parse EPUB-specific elements if the `epub_html_exts`
7733 extension is enabled. These include `switch`, `footnote`,
7734 `rearnote`, `noteref`.
7736 * Org reader:
7738 + Support for inline LaTeX. Inline LaTeX is now accepted and parsed by the
7739 org-mode reader. Both math symbols (like `\tau`) and LaTeX commands (like
7740 `\cite{Coffee}`), can be used without any further escaping (Albert
7741 Krewinkel).
7743 * Textile reader and writer:
7745 + The `raw_tex` extension is no longer set by default. You can
7746 enable it with `textile+raw_tex`.
7748 * DocBook reader:
7750 + Support `equation`, `informalequation`, `inlineequation` elements with
7751 `mml:math` content. This is converted into LaTeX and put into a Pandoc
7752 Math inline.
7754 * Revised `plain` output, largely following the style of Project
7755 Gutenberg:
7757 + Emphasis is rendered with `_underscores_`, strong emphasis
7758 with ALL CAPS.
7759 + Headings are rendered differently, with space to set them off,
7760 not with setext style underlines. Level 1 headers are ALL CAPS.
7761 + Math is rendered using unicode when possible, but without the
7762 distracting emphasis markers around variables.
7763 + Footnotes use a regular `[n]` style.
7765 * Markdown writer:
7767 + Horizontal rules are now a line across the whole page.
7768 + Prettier pipe tables. Columns are now aligned (#1323).
7769 + Respect the `raw_html` extension. `pandoc -t markdown-raw_html`
7770 no longer emits any raw HTML, including span and div tags
7771 generated by Span and Div elements.
7772 + Use span with style for `SmallCaps` (#1360).
7774 * HTML writer:
7776 + Autolinks now have class `uri`, and email autolinks have class
7777 `email`, so they can be styled.
7779 * Docx writer:
7781 + Document formatting is carried over from `reference.docx`.
7782 This includes margins, page size, page orientation, header,
7783 and footer, including images in headers and footers.
7784 + Include abstract (if present) with `Abstract` style (#1451).
7785 + Include subtitle (if present) with `Subtitle` style, rather
7786 than tacking it on to the title (#1451).
7788 * Org writer:
7790 + Write empty span elements with an id attribute as org anchors.
7791 For example `Span ("uid",[],[]) []` becomes `<<uid>>`.
7793 * LaTeX writer:
7795 + Put table captions above tables, to match the conventional
7796 standard. (Previously they appeared below tables.)
7797 + Use `\(..\)` instead of `$..$` for inline math (#1464).
7798 + Use `\nolinkurl` in email autolinks. This allows them to be styled
7799 using `\urlstyle{tt}`. Thanks to Ulrike Fischer for the solution.
7800 + Use `\textquotesingle` for `'` in inline code. Otherwise we get
7801 curly quotes in the PDF output (#1364).
7802 + Use `\footnote<.>{..}` for notes in beamer, so that footnotes
7803 do not appear before the overlays in which their markers appear
7804 (#1525).
7805 + Don't produce a `\label{..}` for a Div or Span element. Do produce
7806 a `\hyperdef{..}` (#1519).
7808 * EPUB writer:
7810 + If the metadata includes `page-progression-direction` (which can be
7811 `ltr` or `rtl`, the `page-progression-direction` attribute will
7812 be set in the EPUB spine (#1455).
7814 * Custom lua writers:
7816 + Custom writers now work with `--template`.
7817 + Removed HTML header scaffolding from `sample.lua`.
7818 + Made citation information available in lua writers.
7820 * `--normalize` and `Text.Pandoc.Shared.normalize` now consolidate
7821 adjacent `RawBlock`s when possible.
7823 [API changes]
7825 * Added `Text.Pandoc.Readers.Docx`, exporting `readDocx` (Jesse Rosenthal).
7827 * Added `Text.Pandoc.Readers.EPUB`, exporting `readEPUB` (Matthew
7828 Pickering).
7830 * Added `Text.Pandoc.Readers.Txt2Tags`, exporting `readTxt2Tags` (Matthew
7831 Pickering).
7833 * Added `Text.Pandoc.Writers.DokuWiki`, exporting `writeDokuWiki`
7834 (Clare Macrae).
7836 * Added `Text.Pandoc.Writers.Haddock`, exporting `writeHaddock`.
7838 * Added `Text.Pandoc.MediaBag`, exporting `MediaBag`, `lookupMedia`,
7839 `insertMedia`, `mediaDirectory`, `extractMediaBag`. The docx and epub
7840 readers return a pair of a `Pandoc` document and a `MediaBag` with
7841 the media resources they contain. This can be extracted using
7842 `--extract-media`. Writers that incorporate media (PDF, Docx,
7843 ODT, EPUB, RTF, or HTML formats with `--self-contained`) will look
7844 for resources in the `MediaBag` generated by the reader, in addition to
7845 the file system or web.
7847 * `Text.Pandoc.Readers.TexMath`: Removed deprecated `readTeXMath`.
7848 Renamed `readTeXMath'` to `texMathToInlines`.
7850 * `Text.Pandoc`: Added `Reader` data type (Matthew Pickering).
7851 `readers` now associates names of readers with `Reader`
7852 structures. This allows inclusion of readers, like the docx
7853 reader, that take binary rather than textual input.
7855 * `Text.Pandoc.Shared`:
7857 + Added `capitalize` (Artyom Kazak), and replaced uses of
7858 `map toUpper` (which give bad results for many languages).
7859 + Added `collapseFilePath`, which removes intermediate `.` and
7860 `..` from a path (Matthew Pickering).
7861 + Added `fetchItem'`, which works like `fetchItem` but searches
7862 a `MediaBag` before looking on the net or file system.
7863 + Added `withTempDir`.
7864 + Added `removeFormatting`.
7865 + Added `extractSpaces` (from HTML reader) and generalized its type
7866 so that it can be used by the docx reader (Matthew Pickering).
7867 + Added `ordNub`.
7868 + Added `normalizeInlines`, `normalizeBlocks`.
7869 + `normalize` is now `Pandoc -> Pandoc` instead of
7870 `Data a :: a -> a`. Some users may need to change their uses of
7871 `normalize` to the newly exported `normalizeInlines` or
7872 `normalizeBlocks`.
7874 * `Text.Pandoc.Options`:
7876 + Added `writerMediaBag` to `WriterOptions`.
7877 + Removed deprecated and no longer used `readerStrict` in
7878 `ReaderOptions`. This is handled by `readerExtensions` now.
7879 + Added `Ext_compact_definition_lists`.
7880 + Added `Ext_epub_html_exts`.
7881 + Added `Ext_native_divs` and `Ext_native_spans`.
7882 This allows users to turn off the default pandoc behavior of
7883 parsing contents of div and span tags in markdown and HTML
7884 as native pandoc Div blocks and Span inlines.
7886 * `Text.Pandoc.Parsing`:
7888 + Generalized `readWith` to `readWithM` (Matthew Pickering).
7889 + Export `runParserT` and `Stream` (Matthew Pickering).
7890 + Added `HasQuoteContext` type class (Matthew Pickering).
7891 + Generalized types of `mathInline`, `smartPunctuation`, `quoted`,
7892 `singleQuoted`, `doubleQuoted`, `failIfInQuoteContext`,
7893 `applyMacros` (Matthew Pickering).
7894 + Added custom `token` (Matthew Pickering).
7895 + Added `stateInHtmlBlock` to `ParserState`. This is used to keep
7896 track of the ending tag we're waiting for when we're parsing inside
7897 HTML block tags.
7898 + Added `stateMarkdownAttribute` to `ParserState`. This is used
7899 to keep track of whether the markdown attribute has been set in
7900 an enclosing tag.
7901 + Generalized type of `registerHeader`, using new type classes
7902 `HasReaderOptions`, `HasIdentifierList`, `HasHeaderMap` (Matthew
7903 Pickering). These allow certain common functions to be reused
7904 even in parsers that use custom state (instead of `ParserState`),
7905 such as the MediaWiki reader.
7906 + Moved `inlineMath`, `displayMath` from Markdown reader to Parsing,
7907 and generalized their types (Matthew Pickering).
7909 * `Text.Pandoc.Pretty`:
7911 + Added `nestle`.
7912 + Added `blanklines`, which guarantees a certain number of blank lines
7913 (and no more).
7915 [bug fixes]
7917 * Markdown reader:
7919 + Fixed parsing of indented code in list items. Indented code
7920 at the beginning of a list item must be indented eight spaces
7921 from the margin (or edge of the container), or four spaces
7922 from the list marker, whichever is greater.
7923 + Fixed small bug in HTML parsing with `markdown_attribute`, which
7924 caused incorrect tag nesting for input like
7925 `<aside markdown="1">*hi*</aside>`.
7926 + Fixed regression with intraword underscores (#1121).
7927 + Improved parsing of inline links containing quote characters (#1534).
7928 + Slight rewrite of `enclosure`/`emphOrStrong` code.
7929 + Revamped raw HTML block parsing in markdown (#1330).
7930 We no longer include trailing spaces and newlines in the
7931 raw blocks. We look for closing tags for elements (but without
7932 backtracking). Each block-level tag is its own `RawBlock`;
7933 we no longer try to consolidate them (though `--normalize` will do so).
7934 + Combine consecutive latex environments. This helps when you have
7935 two minipages which can't have blank lines between them (#690, #1196).
7936 + Support smallcaps through span.
7937 `<span style="font-variant:small-caps;">foo</span>` will be
7938 parsed as a `SmallCaps` inline, and will work in all output
7939 formats that support small caps (#1360).
7940 + Prevent spurious line breaks after list items (#1137). When the
7941 `hard_line_breaks` option was specified, pandoc would formerly
7942 produce a spurious line break after a tight list item.
7943 + Fixed table parsing bug (#1333).
7944 + Handle `c++` and `objective-c` as language identifiers in
7945 github-style fenced blocks (#1318).
7946 + Inline math must have nonspace before final `$` (#1313).
7948 * LaTeX reader:
7950 + Handle comments at the end of tables. This resolves the issue
7951 illustrated in <http://stackoverflow.com/questions/24009489>.
7952 + Correctly handle table rows with too few cells. LaTeX seems to
7953 treat them as if they have empty cells at the end (#241).
7954 + Handle leading/trailing spaces in `\emph` better.
7955 `\emph{ hi }` gets parsed as `[Space, Emph [Str "hi"], Space]`
7956 so that we don't get things like `* hi *` in markdown output.
7957 Also applies to `\textbf` and some other constructions (#1146).
7958 + Don't assume preamble doesn't contain environments (#1338).
7959 + Allow (and discard) optional argument for `\caption` (James Aspnes).
7961 * HTML reader:
7963 + Fixed major parsing problem with HTML tables. Table cells were
7964 being combined into one cell (#1341).
7965 + Fixed performance issue with malformed HTML tables.
7966 We let a `</table>` tag close an open `<tr>` or `<td>` (#1167).
7967 + Allow space between `<col>` and `</col>`.
7968 + Added `audio` and `source` in `eitherBlockOrInline`.
7969 + Moved `video`, `svg`, `progress`, `script`, `noscript`, `svg` from
7970 `blockTags` to `eitherBlockOrInline`.
7971 + `map` and `object` were mistakenly in both lists; they have been removed
7972 from `blockTags`.
7973 + Ignore `DOCTYPE` and `xml` declarations.
7975 * MediaWiki reader:
7977 + Don't parse backslash escapes inside `<source>` (#1445).
7978 + Tightened up template parsing.
7979 The opening `{{` must be followed by an alphanumeric or `:`.
7980 This prevents the exponential slowdown in #1033.
7981 + Support "Bild" for images.
7983 * DocBook reader:
7985 + Better handle elements inside code environments. Pandoc's document
7986 model does not allow structure inside code blocks, but at least this way
7987 we preserve the text (#1449).
7988 + Support `<?asciidoc-br?>` (#1236).
7990 * Textile reader:
7992 + Fixed list parsing. Lists can now start without an intervening
7993 blank line (#1513).
7994 + HTML block-level tags that do not start a line are parsed as
7995 inline HTML and do not interrupt paragraphs (as in RedCloth).
7997 * Org reader:
7999 + Make tildes create inline code (#1345). Also relabeled `code` and
8000 `verbatim` parsers to accord with the org-mode manual.
8001 + Respect `:exports` header argument in code blocks (Craig Bosma).
8002 + Fixed tight lists with sublists (#1437).
8004 * EPUB writer:
8006 + Avoid excess whitespace in `nav.xhtml`. This should improve
8007 TOC view in iBooks (#1392).
8008 + Fixed regression on cover image.
8009 In 1.12.4 and 1.12.4.2, the cover image would not appear properly,
8010 because the metadata id was not correct. Now we derive the id from the
8011 actual cover image filename, which we preserve rather than using
8012 "cover-image."
8013 + Keep newlines between block elements. This allows
8014 easier diff-ability (#1424).
8015 + Use `stringify` instead of custom `plainify`.
8016 + Use `renderTags'` for all tag rendering. This properly handles tags
8017 that should be self-closing. Previously `<hr/>` would appear in EPUB
8018 output as `<hr></hr>` (#1420).
8019 + Better handle HTML media tags.
8020 + Handle multiple dates with OPF `event` attributes. Note: in EPUB3 we
8021 can have only one dc:date, so only the first one is used.
8023 * LaTeX writer:
8025 + Correctly handle figures in notes. Notes can't contain figures in
8026 LaTeX, so we fake it to avoid an error (#1053).
8027 + Fixed strikeout + highlighted code (#1294).
8028 Previously strikeout highlighted code caused an error.
8030 * ConTeXt writer:
8032 + Improved detection of autolinks with URLs containing escapes.
8034 * RTF writer:
8036 + Improved image embedding: `fetchItem'` is now used to get the
8037 images, and calculated image sizes are indicated in the RTF.
8038 + Avoid extra paragraph tags in metadata (#1421).
8040 * HTML writer:
8042 + Deactivate "incremental" inside slide speaker notes (#1394).
8043 + Don't include empty items in the table of contents for
8044 slide shows. (These would result from creating a slide
8045 using a horizontal rule.)
8047 * MediaWiki writer:
8049 + Minor renaming of `st` prefixed names.
8051 * AsciiDoc writer:
8053 + Double up emphasis and strong emphasis markers in intraword
8054 contexts, as required by asciidoc (#1441).
8056 * Markdown writer:
8058 + Avoid wrapping that might start a list, blockquote, or header (#1013).
8059 + Use Span instead of (hackish) `SmallCaps` in `plainify`.
8060 + Don't use braced attributes for fenced code (#1416).
8061 If `Ext_fenced_code_attributes` is not set, the first class
8062 attribute will be printed after the opening fence as a bare word.
8063 + Separate adjacent lists of the same kind with an HTML comment (#1458).
8065 * PDF writer:
8067 + Fixed treatment of data uris for images (#1062).
8069 * Docx writer:
8071 + Use Compact style for empty table cells (#1353).
8072 Otherwise we get overly tall lines when there are empty
8073 table cells and the other cells are compact.
8074 + Create overrides per-image for `media/` in reference docx.
8075 This should be somewhat more robust and cover more types of images.
8076 + Improved `entryFromArchive` to avoid an unneeded parse.
8077 + Section numbering carries over from reference.docx (#1305).
8078 + Simplified `abstractNumId` numbering. Instead of sequential numbering,
8079 we assign numbers based on the list marker styles.
8081 * `Text.Pandoc.Options`:
8083 + Removed `Ext_fenced_code_attributes` from `markdown_github`
8084 extensions.
8086 * `Text.Pandoc.ImageSize`:
8088 + Use default instead of failing if image size not found
8089 in exif header (#1358).
8090 + ignore unknown exif header tag rather than crashing.
8091 Some images seem to have tag type of 256, which was causing
8092 a runtime error.
8094 * `Text.Pandoc.Shared`:
8096 + `fetchItem`: unescape URI encoding before reading local file (#1427).
8097 + `fetchItem`: strip a fragment like `?#iefix` from the extension before
8098 doing mime lookup, to improve mime type guessing.
8099 + Improved logic of `fetchItem`: absolute URIs are fetched from the net;
8100 other things are treated as relative URIs if `sourceURL` is `Just _`,
8101 otherwise as file paths on the local file system.
8102 + `fetchItem` now properly handles links without a protocol (#1477).
8103 + `fetchItem` now escapes characters not allowed in URIs before trying
8104 to parse the URIs.
8105 + Fixed runtime error with `compactify'DL` on certain lists (#1452).
8107 * `pandoc.hs`: Don't strip path off of `writerSourceURL`: the path is
8108 needed to resolve relative URLs when we fetch resources (#750).
8110 * `Text.Pandoc.Parsing`
8112 + Simplified `dash` and `ellipsis` (#1419).
8113 + Removed `(>>~)` in favor of the equivalent `(<*)` (Matthew Pickering).
8114 + Generalized functions to use `ParsecT` (Matthew Pickering).
8115 + Added `isbn` and `pmid` to list of recognized schemes (Matthew
8116 Pickering).
8118 [template changes]
8120 * Added haddock template.
8121 * EPUB3: Added `type` attribute to `link` tags. They are supposed to
8122 be "advisory" in HTML5, but kindlegen seems to require them.
8123 * EPUB3: Put title page in section with `epub:type="titlepage"`.
8124 * LaTeX: Made `\subtitle` work properly (#1327).
8125 * LaTeX/Beamer: remove conditional around date (#1321).
8126 * LaTeX: Added `lot` and `lof` variables, which can be set to
8127 get `\listoftables` and `\listoffigures` (#1407). Note that
8128 these variables can be set at the command line with `-Vlot -Vlof`
8129 or in YAML metadata.
8131 [under the hood improvements]
8133 * Rewrote normalize for efficiency (#1385).
8135 * Rewrote Haddock reader to use `haddock-library` (#1346).
8137 + This brings pandoc's rendering of haddock markup in line
8138 with the new haddock.
8139 + Fixed line breaks in `@` code blocks.
8140 + alex and happy are no longer build-depends.
8142 * Added `Text.Pandoc.Compat.Directory` to allow building against
8143 different versions of the `directory` library.
8145 + Added `Text.Pandoc.Compat.Except` to allow building against
8146 different versions of `mtl`.
8148 * Code cleanup in some writers, using Reader monad to avoid
8149 passing options parameter around (Matej Kollar).
8151 * Improved readability in `pandoc.hs`.
8153 * Miscellaneous code cleanups (Artyom Kazak).
8155 * Avoid `import Prelude hiding (catch)` (#1309, thanks to Michael
8156 Thompson).
8158 * Changed `http-conduit` flag to `https`. Depend on `http-client`
8159 and `http-client-tls` instead of `http-conduit`. (Note: pandoc still
8160 depends on `conduit` via `yaml`.)
8162 * Require `highlighting-kate >= 0.5.8.5` (#1271, #1317, Debian #753299).
8163 This change to highlighting-kate means that PHP fragments no longer need
8164 to start with `<?php`. It also fixes a serious bug causing failures with
8165 ocaml and fsharp.
8167 * Require latest `texmath`. This fixes `\tilde{E}` and allows
8168 `\left` to be used with `]`, `)` etc. (#1319), among many other
8169 improvements.
8171 * Require latest `zip-archive`. This has fixes for unicode path names.
8173 * Added tests for plain writer.
8175 * `Text.Pandoc.Templates`:
8177 + Fail informatively on template syntax errors.
8178 With the move from parsec to attoparsec, we lost good error
8179 reporting. In fact, since we weren't testing for end of input,
8180 malformed templates would fail silently. Here we revert back to
8181 Parsec for better error messages.
8182 + Use `ordNub` (#1022).
8184 * Benchmarks:
8186 + Made benchmarks compile again (Artyom Kazak).
8187 + Fixed so that the failure of one benchmark does not prevent others
8188 from running (Artyom Kazak).
8189 + Use `nfIO` instead of the `getLength` trick to force full evaluation.
8190 + Changed benchmark to use only the test suite, so that benchmarks
8191 run more quickly.
8193 * Windows build script:
8195 + Add `-windows` to file name.
8196 + Use one install command for pandoc, pandoc-citeproc.
8197 + Force install of pandoc-citeproc.
8199 * `make_osx_package`: Call zip file `pandoc-VERSION-osx.zip`.
8200 The zip should not be named `SOMETHING.pkg.zip`, or OSX finder
8201 will extract it into a folder named `SOMETHING.pkg`, which it
8202 will interpret as a defective package (#1308).
8204 * `README`:
8206 + Made headers for all extensions so they have IDs and can be
8207 linked to (Beni Cherniavsky-Paskin).
8208 + Fixed typos (Phillip Alday).
8209 + Fixed documentation of attributes (#1315).
8210 + Clarified documentation on small caps (#1360).
8211 + Better documentation for `fenced_code_attributes` extension
8212 (Caleb McDaniel).
8213 + Documented fact that you can put YAML metadata in a separate file
8214 (#1412).
8217pandoc (1.12.4.2)
8219 * Require highlighting-kate >= 0.5.8. Fixes a performance regression.
8221 * Shared: `addMetaValue` now behaves slightly differently:
8222 if both the new and old values are lists, it concatenates their
8223 contents to form a new list.
8225 * LaTeX reader:
8227 + Set `bibliography` in metadata from `\bibliography` or
8228 `\addbibresource` command.
8229 + Don't error on `%foo` with no trailing newline.
8231 * Org reader:
8233 + Support code block headers (`#+BEGIN_SRC ...`) (Albert Krewinkel).
8234 + Fix parsing of blank lines within blocks (Albert Krewinkel).
8235 + Support pandoc citation extension (Albert Krewinkel). This can
8236 be turned off by specifying `org-citations` as the input format.
8238 * Markdown reader:
8240 + `citeKey` moved to `Text.Pandoc.Parsing` so it can be used by
8241 other readers (Albert Krewinkel).
8243 * `Text.Pandoc.Parsing`:
8245 + Added `citeKey` (see above).
8246 + Added `HasLastStrPosition` type class and `updateLastStrPos`
8247 and `notAfterString` functions.
8249 * Updated copyright notices (Albert Krewinkel).
8251 * Added default.icml to data files so it installs with the package.
8253 * OSX package:
8255 + The binary is now built with options to ensure that it can be
8256 used with OSX 10.6+.
8257 + Moved OSX package materials to osx directory.
8258 + Added OSX package uninstall script, included in the zip container
8259 (thanks to Daniel T. Staal).
8261pandoc (1.12.4)
8263 * Made it possible to run filters that aren't executable (#1096).
8264 Pandoc first tries to find the executable (searching the path
8265 if path isn't given). If it fails, but the file exists and has
8266 a `.py`, `.pl`, `.rb`, `.hs`, or `.php` extension, pandoc runs the filter
8267 using the appropriate interpreter. This should make it easier to
8268 use filters on Windows, and make it more convenient for everyone.
8270 * Added Emacs org-mode reader (Albert Krewinkel).
8272 * Added InDesign ICML Writer (Mauro Bieg).
8274 * MediaWiki reader:
8276 + Accept image links in more languages (Jaime Marquínez Ferrándiz).
8277 + Fixed bug in certain nested lists (#1213). If a level 2 list was
8278 followed by a level 1 list, the first item of the level 1 list
8279 would be lost.
8280 + Handle table rows containing just an HTML comment (#1230).
8282 * LaTeX reader:
8284 + Give better location information on errors, pointing to line
8285 numbers within included files (#1274).
8286 + LaTeX reader: Better handling of `table` environment (#1204).
8287 Positioning options no longer rendered verbatim.
8288 + Better handling of figure and table with caption (#1204).
8289 + Handle `@{}` and `p{length}` in tabular. The length is not actually
8290 recorded, but at least we get a table (#1180).
8291 + Properly handle `\nocite`. It now adds a `nocite` metadata
8292 field. Citations there will appear in the bibliography but not
8293 in the text (unless you explicitly put a `$nocite$` variable
8294 in your template).
8296 * Markdown reader:
8298 + Ensure that whole numbers in YAML metadata are rendered without
8299 decimal points. (This became necessary with changes to aeson
8300 and yaml libraries. aeson >= 0.7 and yaml >= 0.8.8.2 are now required.)
8301 + Fixed regression on line breaks in strict mode (#1203).
8302 + Small efficiency improvements.
8303 + Improved parsing of nested `div`s. Formerly a closing `div` tag
8304 would be missed if it came right after other block-level tags.
8305 + Avoid backtracking when closing `</div>` not found.
8306 + Fixed bug in reference link parsing in `markdown_mmd`.
8307 + Fixed a bug in list parsing (#1154). When reading a raw list
8308 item, we now strip off up to 4 spaces.
8309 + Fixed parsing of empty reference link definitions (#1186).
8310 + Made one-column pipe tables work (#1218).
8312 * Textile reader:
8314 + Better support for attributes. Instead of being ignored, attributes
8315 are now parsed and included in Span inlines. The output will be a bit
8316 different from stock textile: e.g. for `*(foo)hi*`, we'll get
8317 `<em><span class="foo">hi</span></em>` instead of
8318 `<em class="foo">hi</em>`. But at least the data is not lost.
8319 + Improved treatment of HTML spans (%) (#1115).
8320 + Improved link parsing. In particular we now pick up on attributes.
8321 Since pandoc links can't have attributes, we enclose the whole link in
8322 a span if there are attributes (#1008).
8323 + Implemented correct parsing rules for inline markup (#1175, Matthew
8324 Pickering).
8325 + Use Builder (Matthew Pickering).
8326 + Fixed list parsing bug (#1500).
8327 + Don't allow inline formatting to extend over newlines.
8328 This matches the behavior of RedCarpet, avoids some ugly bugs,
8329 and improves performance.
8331 * DocBook reader:
8333 + Better treatment of `formalpara`. We now emit the title (if present)
8334 as a separate paragraph with boldface text (#1215).
8335 + Set metadata `author` not `authors`.
8336 + Added recognition of `authorgroup` and `releaseinfo` elements (#1214,
8337 Matthew Pickering).
8338 + Converted current meta information parsing in DocBook to a more
8339 extensible version which is aware of the more recent meta
8340 representation (Matthew Pickering).
8342 * HTML reader:
8344 + Require tagsoup 0.13.1, to fix a bug with parsing of script tags
8345 (#1248).
8346 + Treat processing instructions & declarations as block. Previously
8347 these were treated as inline, and included in paragraph tags in HTML
8348 or DocBook output, which is generally not what is wanted (#1233).
8349 + Updated `closes` with rules from HTML5 spec.
8350 + Use Builder (Matthew Pickering, #1162).
8352 * RST reader:
8354 + Remove duplicate `http` in PEP links (Albert Krewinkel).
8355 + Make rst figures true figures (#1168, CasperVector)
8356 + Enhanced Pandoc's support for rST roles (Merijn Verstaaten).
8357 rST parser now supports: all built-in rST roles, new role definition,
8358 role inheritance, though with some limitations.
8359 + Use `author` rather than `authors` in metadata.
8360 + Better handling of directives. We now correctly handle field
8361 lists that are indented more than three spaces. We treat an
8362 `aafig` directive as a code block with attributes, so it can be
8363 processed in a filter (#1212).
8365 * LaTeX writer:
8367 + Mark span contents with label if span has an ID (Albert Krewinkel).
8368 + Made `--toc-depth` work well with books in latex/pdf output (#1210).
8369 + Handle line breaks in simple table cells (#1217).
8370 + Workaround for level 4-5 headers in quotes. These previously produced
8371 invalid LaTeX: `\paragraph` or `\subparagraph` in a `quote` environment.
8372 This adds an `mbox{}` in these contexts to work around the problem.
8373 See <http://tex.stackexchange.com/a/169833/22451> (#1221).
8374 + Use `\/` to avoid en-dash ligature instead of `-{}-` (Vaclav Zeman).
8375 This is to fix LuaLaTeX output. The `-{}-` sequence does not avoid the
8376 ligature with LuaLaTeX but `\/` does.
8377 + Fixed string escaping in `hyperref` and `hyperdef` (#1130).
8379 * ConTeXt writer: Improved autolinks (#1270).
8381 * DocBook writer:
8383 + Improve handling of hard line breaks in Docbook writer
8384 (Neil Mayhew). Use a `<literallayout>` for the entire paragraph, not
8385 just for the newline character.
8386 + Don't let line breaks inside footnotes influence the enclosing
8387 paragraph (Neil Mayhew).
8388 + Distinguish tight and loose lists in DocBook output, using
8389 `spacing="compact"` (Neil Mayhew, #1250).
8391 * Docx writer: When needed files are not present in the user's
8392 `reference.docx`, fall back on the versions in the `reference.docx`
8393 in pandoc's data files. This fixes a bug that occurs when a
8394 `reference.docx` saved by LibreOffice is used. (#1185)
8396 * EPUB writer:
8398 + Include extension in epub ids. This fixes a problem with duplicate
8399 extensions for fonts and images with the same base name but different
8400 extensions (#1254).
8401 + Handle files linked in raw `img` tags (#1170).
8402 + Handle media in `audio` source tags (#1170).
8403 Note that we now use a `media` directory rather than `images`.
8404 + Incorporate files linked in `video` tags (#1170). `src` and `poster`
8405 will both be incorporated into `content.opf` and the epub container.
8407 * HTML writer:
8409 + Add colgroup around col tags (#877). Also affects EPUB writer.
8410 + Fixed bug with unnumbered section headings. Unnumbered section
8411 headings (with class `unnumbered`) were getting numbers.
8412 + Improved detection of image links. Previously image links with
8413 queries were not recognized, causing `<embed>` to be used instead
8414 of `<img>`.
8416 * Man writer: Ensure that terms in definition lists aren't line wrapped
8417 (#1195).
8419 * Markdown writer:
8421 + Use proper escapes to avoid unwanted lists (#980). Previously we used
8422 0-width spaces, an ugly hack.
8423 + Use longer backtick fences if needed (#1206). If the content contains a
8424 backtick fence and there are attributes, make sure longer fences are
8425 used to delimit the code. Note: This works well in pandoc, but github
8426 markdown is more limited, and will interpret the first string of three
8427 or more backticks as ending the code block.
8429 * RST writer: Avoid stack overflow with certain tables (#1197).
8431 * RTF writer: Fixed table cells containing paragraphs.
8433 * Custom writer:
8435 + Correctly handle UTF-8 in custom lua scripts (#1189).
8436 + Fix bugs with lua scripts with mixed-case filenames and
8437 paths containing `+` or `-` (#1267). Note that `getWriter`
8438 in `Text.Pandoc` no longer returns a custom writer on input
8439 `foo.lua`.
8441 * AsciiDoc writer: Handle multiblock and empty table cells
8442 (#1245, #1246). Added tests.
8444 * `Text.Pandoc.Options`: Added `readerTrace` to `ReaderOptions`
8446 * `Text.Pandoc.Shared`:
8448 + Added `compactify'DL` (formerly in markdown reader) (Albert Krewinkel).
8449 + Fixed bug in `toRomanNumeral`: numbers ending with '9' would
8450 be rendered as Roman numerals ending with 'IXIV' (#1249). Thanks to
8451 Jesse Rosenthal.
8452 + `openURL`: set proxy with value of http_proxy env variable (#1211).
8453 Note: proxies with non-root paths are not supported, due to
8454 limitations in `http-conduit`.
8456 * `Text.Pandoc.PDF`:
8458 + Ensure that temp directories deleted on Windows (#1192). The PDF is
8459 now read as a strict bytestring, ensuring that process ownership will
8460 be terminated, so the temp directory can be deleted.
8461 + Use `/` as path separators in a few places, even on Windows.
8462 This seems to be necessary for texlive (#1151, thanks to Tim Lin).
8463 + Use `;` for `TEXINPUTS` separator on Windows (#1151).
8464 + Changes to error reporting, to handle non-UTF8 error output.
8466 * `Text.Pandoc.Templates`:
8468 + Removed unneeded datatype context (Merijn Verstraaten).
8470 + YAML objects resolve to "true" in conditionals (#1133).
8471 Note: If `address` is a YAML object and you just have `$address$`
8472 in your template, the word `true` will appear, which may be
8473 unexpected. (Previously nothing would appear.)
8475 * `Text.Pandoc.SelfContained`:
8477 + `mkSelfContained` now takes just two arguments, `WriterOptions` and
8478 the string.
8479 * It no longer looks in data files. This only made sense when we
8480 had copies of slidy and S5 code there.
8481 * `fetchItem'` is used instead of the nearly duplicate `getItem`.
8482 + Handle `poster` attribute in `video` tags (#1188).
8484 * `Text.Pandoc.Parsing`:
8486 + Made `F` an instance of Applicative (#1138).
8487 + Added `stateCaption`.
8488 + Added `HasMacros`, simplified other typeclasses.
8489 Removed `updateHeaderMap`, `setHeaderMap`, `getHeaderMap`,
8490 `updateIdentifierList`, `setIdentifierList`, `getIdentifierList`.
8491 + Changed the smart punctuation parser to return `Inlines`
8492 rather than `Inline` (Matthew Pickering).
8493 + Changed `HasReaderOptions`, `HasHeaderMap`, `HasIdentifierList`
8494 from typeclasses of monads to typeclasses of states. This simplifies
8495 the instance definitions and provides more flexibility. Generalized
8496 type of `getOption` and added a default definition. Removed
8497 `askReaderOption`. Added `extractReaderOption`. Added
8498 `extractHeaderMap` and `updateHeaderMap` in `HasHeaderMap`.
8499 Gave default definitions for `getHeaderMap`, `putHeaderMap`,
8500 `modifyHeaderMap`. Added `extractIdentifierList` and
8501 `updateIdentifierList` in `HasIdentifierList`. Gave defaults
8502 for `getIdentifierList`, `putIdentifierList`, and
8503 `modifyIdentifierList`. The ultimate goal here is to allow different
8504 parsers to use their own, tailored parser states (instead of
8505 `ParserState`) while still using shared functions.
8507 * Template changes:
8509 + LaTeX template: Use `fontenc` package only with `pdflatex` (#1164).
8510 + LaTeX template: Add `linestretch` and `fontfamily` variables.
8511 + LaTeX template: Conditionalize author and date commands.
8512 + Beamer template: Consistent styles for figure and table captions
8513 (aaronwolen).
8514 + LaTeX and beamer template: Adjust widths correctly for oversized
8515 images. Use `\setkeys{Gin}{}` to set appropriate defaults for
8516 `\includegraphics` (Yihui Xie, Garrick Aden-Buie). Load
8517 `upquote` only after `fontenc` (Yihui Xie).
8518 + Beamer template: Added caption package (#1200).
8519 + Beamer template: changes for better unicode handling (KarolS).
8520 + DocBook template: use `authorgroup` if there are authors.
8521 + revealjs template: Move `include-after` to end (certainlyakey).
8522 + revealjs template: Fixed PDF print function (#1220, kevinkenan).
8524 * Bumped version bounds of dependencies.
8526 * Added a `--trace` command line option, for debugging backtracking
8527 bugs. So far this only works with the markdown reader.
8529 * MathMLinHTML: Fixed deprecation warning (#362, gwern, Albert Krewinkel).
8531 * Updated travis script to test with multiple GHC versions.
8533 * Force failure of a Travis build if GHC produces warnings (Albert
8534 Krewinkel).
8536 * Add `.editorconfig` (Albert Krewinkel).
8537 See <http://editorconfig.org/> for details.
8539 * Give more useful error message if '-t pdf' is specified (#1155).
8541 * Added `Cite`, `SmallCaps` to `Arbitrary` instance (#1269).
8543 * Allow `html4` as a synonym of `html` as a reader (it already works
8544 as a writer).
8546 * README:
8548 + Added an explanation of how to use YAML metadata to
8549 force items to appear in the bibliography without citations in
8550 the text (like LaTeX `\nocite`).
8551 + Added note to `--bibtex/--natbib`: not for use in making PDF
8552 (#1194, thanks to nahoj).
8553 + Added explanatory notes about `--natbib` and `--biblatex`.
8554 + Added specification of legal syntax for citation keys.
8555 + Fixed variable defaults documentation (Albert Krewinkel).
8557 * Removed copyright statements for files that have been removed
8558 (Albert Krewinkel).
8560 * Moved some doc files from `data-files` to `extra-source-files` (#1123).
8561 They aren't needed at runtime. We keep README and COPYRIGHT in data
8562 to ensure that they'll be available on all systems on which pandoc
8563 is installed.
8565 * Use cabal sandboxes in Windows build script.
8567pandoc (1.12.3.3)
8569 * To changes to source; recompiled tarball with latest alex and
8570 happy, so they will work with GHC 7.8.
8572pandoc (1.12.3.2)
8574 * Bumped version bounds for blaze-html, blaze-markup.
8576 * ImageSize: Avoid use of lookAhead, which is not in binary >= 0.6
8577 (#1124).
8579 * Fixed mediawiki ordered list parsing (#1122).
8581 * HTML reader: Fixed bug reading inline math with `$$` (#225).
8583 * Added support for LaTeX style literate Haskell code blocks in rST
8584 (Merijn Verstraaten).
8586pandoc (1.12.3.1)
8588 * Relaxed version constraint on binary, allowing the use of binary 0.5.
8590pandoc (1.12.3)
8592 * The `--bibliography` option now sets the `biblio-files` variable.
8593 So, if you're using `--natbib` or `--biblatex`, you can just use
8594 `--bibliography=foo.bib` instead of `-V bibliofiles=foo`.
8596 * Don't run pandoc-citeproc filter if `--bibliography` is
8597 used together with `--natbib` or `--biblatex` (Florian Eitel).
8599 * Template changes:
8601 + Updated beamer template to include booktabs.
8602 + Added `abstract` variable to LaTeX template.
8603 + Put `header-includes` after `title` in LaTeX template (#908).
8604 + Allow use of `\includegraphics[size]` in beamer.
8605 This just required porting a macro definition from the default
8606 LaTeX template to the default beamer template.
8608 * `reference.docx`: Include `FootnoteText` style.
8609 Otherwise Word ignores the style, even when specified in the `pPr`.
8610 (#901)
8612 * `reference.odt`: Tidied `styles.xml`.
8614 * Relaxed version bounds for dependencies.
8616 * Added `withSocketsDo` around http conduit code in `openURL`,
8617 so it works on Windows (#1080).
8619 * Added `Cite` function to `sample.lua`.
8621 * Markdown reader:
8623 + Fixed regression in title blocks (#1089).
8624 If author field was empty, date was being ignored.
8625 + Allow backslash-newline hard line breaks in grid and
8626 multiline table cells.
8627 + Citation keys may now start with underscores, and may contain
8628 underscores adjacent to internal punctuation.
8630 * LaTeX reader:
8632 + Add support for `Verb` macro (jrnold) (#1090).
8633 + Support babel-style quoting: `` "`..."' ``.
8635 * Properly handle script blocks in strict mode. (That is,
8636 `markdown-markdown_in_html_blocks`.) Previously a spurious
8637 `<p>` tag was being added (#1093).
8639 * Docbook reader: Avoid failure if `tbody` contains no `tr` or `row`
8640 elements.
8642 * LaTeX writer:
8644 + Factored out function for table cell creation.
8645 + Better treatment of footnotes in tables.
8646 Notes now appear in the regular sequence, rather than in the
8647 table cell. (This was a regression in 1.10.)
8649 * HTML reader: Parse name/content pairs from meta tags as metadata.
8650 Closes #1106.
8652 * Moved `fixDisplayMath` from Docx writer to `Writer.Shared`.
8654 * OpenDocument writer: Fixed `RawInline`, `RawBlock` so they don't escape.
8656 * ODT writer: Use mathml for proper rendering of formulas.
8657 Note: LibreOffice's support for this seems a bit buggy. But
8658 it should be better than what we had before.
8660 * RST writer: Ensure no blank line after def in definition list (#992).
8662 * Markdown writer: Don't use tilde code blocks with braced attributes in
8663 `markdown_github` output. A consequence of this change is that the
8664 backtick form will be preferred in general if both are enabled. That
8665 is good, as it is much more widespread than the tilde form. (#1084)
8667 * Docx writer: Fixed problem with some modified reference docx files.
8668 Include `word/_rels/settings.xml.rels` if it exists, as well as other
8669 `rels` files besides the ones pandoc generates explicitly.
8671 * HTML writer:
8673 + With `--toc`, headers no longer link to themselves (#1081).
8674 + Omit footnotes from TOC entries. Otherwise we get doubled
8675 footnotes when headers have notes!
8677 * EPUB writer:
8679 + Avoid duplicate notes when headings contain notes.
8680 This arose because the headings are copied into the metadata
8681 "title" field, and the note gets rendered twice. We strip the
8682 note now before putting the heading in "title".
8683 + Strip out footnotes from toc entries.
8684 + Fixed bug with `--epub-stylesheet`. Now the contents of
8685 `writerEpubStylesheet` (set by `--epub-stylesheet`)
8686 should again work, and take precedence over a stylesheet specified
8687 in the metadata.
8689 * `Text.Pandoc.MIME`: Added `wmf`, `emf`.
8691 * `Text.Pandoc.Shared`: `fetchItem` now handles image URLs beginning
8692 with `//`.
8694 * `Text.Pandoc.ImageSize`: Parse EXIF format JPEGs. Previously
8695 we could only get size information for JFIF format, which led
8696 to squished images in Word documents. Closes #976.
8698 * Removed old `MarkdownTest_1.0.3` directory (#1104).
8700pandoc (1.12.2.1)
8702 * Markdown reader: Fixed regression in list parser, involving
8703 continuation lines containing raw HTML (or even verbatim raw HTML).
8705pandoc (1.12.2)
8707 * Metadata may now be included in YAML blocks in a markdown document.
8708 For example,
8710 ---
8711 title:
8712 - type: main
8713 text: My Book
8714 - type: subtitle
8715 text: An investigation of metadata
8716 creator:
8717 - role: author
8718 text: John Smith
8719 - role: editor
8720 text: Sarah Jones
8721 identifier:
8722 - scheme: DOI
8723 text: doi:10.234234.234/33
8724 publisher: My Press
8725 rights: (c) 2007 John Smith, CC BY-NC
8726 cover-image: img/mypic.jpg
8727 ...
8729 Metadata may still be provided using `--epub-metadata`; it will
8730 be merged with the metadata in YAML blocks.
8732 * EPUB writer:
8734 + `meta` tags are now used instead of `opf` attributes for EPUB3.
8735 + Insert "svg" property as needed in opf (EPUB 3).
8736 + Simplify `imageTypeOf` using `getMimeType`.
8737 + Add properties attribute to `cover-image` item for EPUB 3.
8738 + Don't include node for `cover.xhtml` if no cover!
8739 + Ensure that same identifier is used throughout (#1044).
8740 If an identifier is given in metadata, we use that; otherwise
8741 we generate a random uuid.
8742 + Add cover reference to guide element (EPUB 2) (Shaun Attfield).
8743 Fixes an issue with Calibre putting the cover at the end of the book
8744 if the spine has `linear="no"`. Apparently this is best practice
8745 for other converters as well:
8746 <http://www.idpf.org/epub/20/spec/OPF_2.0.1_draft.htm#Section2.6>.
8747 + Allow `stylesheet` in metadata. The value is a path to the stylesheet.
8748 + Allow partial dates: `YYYY`, `YYYY-MM`.
8750 * Markdown writer: Fix rendering of tight sublists (#1050).
8751 Previously a spurious blank line was included after a tight sublist.
8753 * ODT writer: Add `draw:name` attribute to `draw:frame` elements (#1069).
8754 This is reported to be necessary to avoid an error from recent
8755 versions of Libre Office when files contain more than one image
8756 Thanks to wmanley for reporting and diagnosing the problem.
8758 * ConTeXt writer: Don't hardcode figure/table placement and numbering.
8759 Instead, let this be set in the template, using `\setupfloat`.
8760 Thanks to on4aa and Aditya Mahajan for the suggestion (#1067).
8762 * Implemented CSL flipflopping spans in DOCX, LaTeX, and HTML writers.
8764 * Fixed bug with markdown intraword emphasis. Closes #1066.
8766 * Docbook writer: Hierarchicalize block content in metadata.
8767 Previously headers just disappeared from block-level metadata
8768 when it was used in templates. Now we apply the 'hierarchicalize'
8769 transformation. Note that a block headed by a level-2 header will
8770 turn into a `<sect1>` element.
8772 * OpenDocument writer: Skip raw HTML (#1035).
8773 Previously it was erroneously included as verbatim text.
8775 * HTML/EPUB writer, footnotes: Put `<sup>` tag inside `<a>` tags.
8776 This allows better control of formatting, since the `<a>`
8777 tags have a distinguishing class (#1049).
8779 * Docx writer:
8781 + Use mime type info returned by fetchItem.
8782 + Fixed core metadata (#1046).
8783 Don't create empty date nodes if no date given.
8784 Don't create multiple `dc:creator` nodes; instead separate by
8785 semicolons.
8786 + Fix URL for core-properties in `_rels/.rels` (#1046).
8788 * Plain writer: don't print `<span>` tags.
8790 * LaTeX writer:
8792 + Fix definition lists with internal links in terms (#1032).
8793 This fix puts braces around a term that contains an internal
8794 link, to avoid problems with square brackets.
8795 + Properly escape pdftitle, pdfauthor (#1059).
8796 + Use booktabs package for tables (thanks to Jose Luis Duran).
8798 * Updated beamer template. Now references should work properly
8799 (in a slide) when `--biblatex` or `--natbib` is used.
8801 * LaTeX reader:
8803 + Parse contents of curly quotes or matched `"` as quotes.
8804 + Support `\textnormal` as span with class `nodecor`.
8805 This is needed for pandoc-citeproc.
8806 + Improved citation parsing. This fixes a run-time error that occurred
8807 with `\citet{}` (empty list of keys). It also ensures that empty keys
8808 don't get produced.
8810 * MediaWiki reader: Add automatic header identifiers.
8812 * HTML reader:
8814 + Use pandoc `Div` and `Span` for raw `<div>`, `<span>` when
8815 `--parse-raw`.
8816 + Recognize `svg` tags as block level content (thanks to MinRK).
8817 + Parse LaTeX math if appropriate options are set.
8819 * Markdown reader:
8821 + Yaml block must start immediately after `---`. If there's a blank
8822 line after `---`, we interpreted it as a horizontal rule.
8823 + Correctly handle empty bullet list items.
8824 + Stop parsing "list lines" when we hit a block tag.
8825 This fixes exponential slowdown in certain input, e.g.
8826 a series of lists followed by `</div>`.
8828 * Slides: Preserve `<div class="references">` in references slide.
8830 * `Text.Pandoc.Writer.Shared`:
8832 + Fixed bug in `tagWithAttrs`. A space was omitted before key-value
8833 attributes, leading to invalid HTML.
8834 + `normalizeDate`: Allow dates with year only (thanks to Shaun Attfield).
8835 + Fixed bug in `openURL` with `data:` URIs. Previously the base-64
8836 encoded bytestring was returned. We now decode it so it's a proper
8837 image!
8839 * DocBook reader: Handle numerical attributes starting with decimal.
8840 Also use `safeRead` instead of `read`.
8842 * `Text.Pandoc.Readers.TexMath`: Export `readTeXMath'`, which attends
8843 to display/inline. Deprecate `readTeXMath`, and use `readTeXMath'`
8844 in all the writers. Require `texmath >= 0.6.5.2`.
8846 * `Text.Pandoc.MIME`:
8848 + Add entry for `jfif`.
8849 + In looking up extensions, drop the encoding info.
8850 E.g. for 'image/jpg;base64' we should lookup 'image/jpg'.
8852 * Templates: Changed how array variables are resolved. Previously if
8853 `foo` is an array (which might be because multiple values were set on
8854 the command line), `$foo$` would resolve to the concatenation of the
8855 elements of foo. This is rarely useful behavior. It has been changed
8856 so that the first value is rendered. Of course, you can still iterate
8857 over the values using `$for(foo)$`. This has the result that you can
8858 override earlier settings using `-V` by putting new values later on the
8859 command line, which is useful for many purposes.
8861 * `Text.Pandoc`: Don't default to `pandocExtensions` for all writers.
8863 * Allow "epub2" as synonym for "epub", "html4" for "html".
8865 * Don't look for slidy files in data files with `--self-contained`.
8867 * Allow `https:` command line arguments to be downloaded.
8869 * Fixed `make_osx_package.sh` so data files embedded in `pandoc-citeproc`.
8871pandoc (1.12.1)
8873 * `Text.Pandoc.Definition`: Changed default JSON serialization format.
8874 Instead of `{"Str": "foo"}`, for example, we now have `{"t": "Str",
8875 "c": "foo"}`. This new format is easier to work with outside of Haskell.
8876 Incidentally, "t" stands for "tag", "c" for "contents".
8878 * MediaWiki reader: Trim contents of `<math>` tags, to avoid problems
8879 when converting to markdown (#1027).
8881 * LaTeX reader:
8883 + Ensure that preamble doesn't contribute to the text of
8884 the document.
8885 + Fixed character escaping in \url{}. Previously `\~` wasn't handled
8886 properly, among others.
8887 + Parse `{groups}` as `Span`. This is needed for accurate conversion of
8888 bibtex titles, since we need to know what was protected from
8889 titlecase conversions.
8891 * LaTeX writer:
8893 + Specially escape non-ascii characters in labels.
8894 Otherwise we can get compile errors and other bugs when
8895 compiled with pdflatex (#1007). Thanks to begemotv2718 for the fix.
8896 + Add link anchors for code blocks with identifiers (#1025).
8898 * Throughout the code, use `isURI` instead of `isAbsoluteURI`.
8899 It allows fragments identifiers.
8901 * Slide formats:
8903 + A Div element with class "notes" is treated as speaker
8904 notes. Currently beamer goes to `\note{}`, revealjs to
8905 `<aside class="notes">`, and the notes are simply suppressed in
8906 other formats (#925).
8907 + Fixed `. . .` (pause) on HTML slide formats. Closes #1029.
8908 The old version caused a pause to be inserted before the first
8909 material on a slide. This has been fixed.
8910 + Removed data files for s5, slideous, slidy.
8911 Users of s5 and slideous will have to download the needed
8912 files, as has been documented for some time in the README.
8913 By default, slidy code will be sought on the web, as before.
8915 * HTML writer: Insert command to typeset mathjax only in slideous output
8916 (#966, #1012).
8918 * RST writer: Skip spaces after display math. Otherwise we get indentation
8919 problems, and part of the next paragraph may be rendered as part of the
8920 math.
8922 * OpenDocument writer: Fix formatting of strikeout code (#995),
8923 thanks to wilx. don't use `font-face-decls` variable.
8925 * Fixed test suite so it works with cabal sandboxes.
8927pandoc (1.12.0.2)
8929 * Removed `stringable` dependency.
8931pandoc (1.12.0.1)
8933 * Allow `--metadata` to be repeated for the same key to form a list.
8934 This also has the effect that `--bibliography` can be repeated,
8935 as before.
8937 * Handle boolean values in `--metadata`. Note that anything not parseable
8938 as a YAML boolean or string is treated as a literal string.
8939 You can get a string value with "yes", or any of the strings interpretable
8940 as booleans, by quoting it:
8942 -M boolvalue=yes -M stringvalue='"yes"'
8944 * LaTeX writer: Don't print references if `--natbib` or `--biblatex`
8945 option used.
8947 * DOCX writer: Add `settings.xml` to the zip container. Fixes a bug
8948 in which docx files could not be read by some versions of Word
8949 and LibreOffice (#990).
8951 * Fixed a regression involving slide shows with bibliographies.
8952 The Div container around references messed up the procedure for carving
8953 a document into slides. So we now remove the surrounding Div in
8954 `prepSlides`.
8956 * More informative error message when a filter is not found in path.
8958 * Depend on pandoc-types 1.12.1. This provide `ToJSONFilter`
8959 instances for `Data a => a -> [a]` and `Data a => a -> IO [a]`.
8961 * Don't use unicode_collation in building OSX package:
8962 it adds something like 50MB of dependencies to the package.
8964 * Declare alex and happy as build-tools (#986).
8966pandoc (1.12)
8968 [new features]
8970 * Much more flexible metadata, including arbitrary fields and structured
8971 values. Metadata can be specified flexibly in pandoc markdown using
8972 YAML metadata blocks, which may occur anywhere in the document:
8974 ---
8975 title: Here is my title.
8976 abstract: |
8977 This is the abstract.
8979 1. It can contain
8980 2. block content
8981 and *inline markup*
8983 tags: [cat, dog, animal]
8984 ...
8986 Metadata fields automatically populate template variables.
8988 * Added `opml` (OPML) as input and output format. The `_note` attribute,
8989 used in OmniOutliner and supported by multimarkdown, is supported.
8990 We treat the contents as markdown blocks under a section header.
8992 * Added `haddock` (Haddock markup) as input format (David Lazar).
8994 * Added `revealjs` output format, for reveal.js HTML 5 slide shows.
8995 (Thanks to Jamie F. Olson for the initial patch.)
8996 Nested vertical stacks are used for hierarchical structure.
8997 Results for more than one level of nesting may be odd.
8999 * Custom writers can now be written in lua.
9001 pandoc -t data/sample.lua
9003 will load the script sample.lua and use it as a custom writer.
9004 (For a sample, do `pandoc --print-default-data-file sample.lua`.)
9005 Note that pandoc embeds a lua interpreter, so lua need not be
9006 installed separately.
9008 * New `--filter/-F` option to make it easier to run "filters"
9009 (Pandoc AST transformations that operate on JSON serializations).
9010 Filters are always passed the name of the output format, so their
9011 behavior can be tailored to it. The repository
9012 <https://github.com/jgm/pandocfilters> contains
9013 a python module for writing pandoc filters in python, with
9014 a number of examples.
9016 * Added `--metadata/-M` option.
9017 This is like `--variable/-V`, but actually adds to metadata, not
9018 just variables.
9020 * Added `--print-default-data-file` option, which allows printing
9021 of any of pandoc's data files. (For example,
9022 `pandoc --print-default-data-file reference.odt` will print
9023 `reference.odt`.)
9025 * Added syntax for "pauses" in slide shows:
9027 This gives
9029 . . .
9031 me pause.
9033 * New markdown extensions:
9035 + `ignore_line_breaks`: causes intra-paragraph line breaks to be ignored,
9036 rather than being treated as hard line breaks or spaces. This is useful
9037 for some East Asian languages, where spaces aren't used between words,
9038 but text is separated into lines for readability.
9039 + `yaml_metadata_block`: Parse YAML metadata blocks. (Default.)
9040 + `ascii_identifiers`: This will force `auto_identifiers` to use ASCII
9041 only. (Default for `markdown_github`.) (#807)
9042 + `lists_without_preceding_blankline`: Allow lists to start without
9043 preceding blank space. (Default for `markdown_github`.) (#972)
9045 [behavior changes]
9047 * `--toc-level` no longer implies `--toc`.
9048 Reason: EPUB users who don't want a visible TOC may still want
9049 to set the TOC level for in the book navigation.
9051 * `--help` now prints in and out formats in alphabetical order, and
9052 says something about PDF output (#720).
9054 * `--self-contained` now returns less verbose output (telling you
9055 which URLs it is fetching, but not giving the full header). In
9056 addition, there are better error messages when fetching a URL fails.
9058 * Citation support is no longer baked in to core pandoc. Users who
9059 need citations will need to install and use a separate filter
9060 (`--filter pandoc-citeproc`). This filter will take `bibliography`,
9061 `csl`, and `citation-abbreviations` from the metadata, though it
9062 may still be specified on the command line as before.
9064 * A `Cite` element is now created in parsing markdown whether or not
9065 there is a matching reference.
9067 * The `pandoc-citeproc` script will put the bibliography at the
9068 end of the document, as before. However, it will be put inside a `Div`
9069 element with class "references", allowing users some control
9070 over the styling of references. A final header, if any, will
9071 be included in the `Div`.
9073 * The markdown writer will not print a bibliography if the
9074 `citations` extension is enabled. (If the citations are formatted
9075 as markdown citations, it is redundant to have a bibliography,
9076 since one will be generated automatically.)
9078 * Previously we used to store the directory of the first input file,
9079 even if it was local, and used this as a base directory for finding
9080 images in ODT, EPUB, Docx, and PDF. This has been confusing to many
9081 users. So we now look for images relative to the current
9082 working directory, even if the first file argument is in another
9083 directory. Note that this change may break some existing workflows.
9084 If you have been assuming that relative links will be interpreted
9085 relative to the directory of the first file argument, you'll need
9086 to make that the current directory before running pandoc. (#942)
9088 * Better error reporting in some readers, due to changes in `readWith`:
9089 the line in which the error occurred is printed, with a caret pointing
9090 to the column.
9092 * All slide formats now support incremental slide view for definition lists.
9094 * Parse `\(..\)` and `\[..\]` as math in MediaWiki reader.
9095 Parse `:<math>...</math>` as display math. These notations are used with
9096 the MathJax MediaWiki extension.
9098 * All writers: template variables are set automatically from metadata
9099 fields. However, variables specified on the command line with
9100 `--variable` will completely shadow metadata fields.
9102 * If `--variable` is used to set many variables with the same name,
9103 a list is created.
9105 * Man writer: The `title`, `section`, `header`, and `footer` can now
9106 all be set individually in metadata. The `description` variable has been
9107 removed. Quotes have been added so that spaces are allowed in the
9108 title. If you have a title that begins
9110 COMMAND(1) footer here | header here
9112 pandoc will still parse it into a title, section, header, and
9113 footer. But you can also specify these elements explicitly (#885).
9115 * Markdown reader
9117 + Added support for YAML metadata blocks, which can come anywhere
9118 in the document (not just at the beginning). A document can contain
9119 multiple YAML metadata blocks.
9120 + HTML span and div tags are parsed as pandoc Span and Div elements.
9122 * Markdown writer
9124 + Allow simple tables to be printed as grid tables,
9125 if other table options are disabled. This means you can do
9126 `pandoc -t markdown-pipe_tables-simple_tables-multiline_tables`
9127 and all tables will render as grid tables.
9128 + Support YAML title block (render fields in alphabetical order
9129 to make output predictable).
9131 [API changes]
9133 * `Meta` in `Text.Pandoc.Definition` has been changed to allow
9134 structured metadata. (Note: existing code that pattern-matches
9135 on `Meta` will have to be revised.) Metadata can now contain
9136 indefinitely many fields, with content that can be a string,
9137 a Boolean, a list of `Inline` elements, a list of `Block`
9138 elements, or a map or list of these.
9140 * A new generic block container (`Div`) has been added to `Block`,
9141 and a generic inline container (`Span`) has been added to `Inline`.
9142 These can take attributes. They will render in HTML, Textile,
9143 MediaWiki, Org, RST and and Markdown (with `markdown_in_html`
9144 extension) as HTML `<div>` and `<span>` elements; in other formats
9145 they will simply pass through their contents. But they can be
9146 targeted by scripts.
9148 * `Format` is now a newtype, not an alias for String.
9149 Equality comparisons are case-insensitive.
9151 * Added `Text.Pandoc.Walk`, which exports hand-written tree-walking
9152 functions that are much faster than the SYB functions from
9153 `Text.Pandoc.Generic`. These functions are now used where possible
9154 in pandoc's code. (`Tests.Walk` verifies that `walk` and `query`
9155 match the generic traversals `bottomUp` and `queryWith`.)
9157 * Added `Text.Pandoc.JSON`, which provides `ToJSON` and `FromJSON`
9158 instances for the basic pandoc types. They use GHC generics and
9159 should be faster than the old JSON serialization using
9160 `Data.Aeson.Generic`.
9162 * Added `Text.Pandoc.Process`, exporting `pipeProcess`.
9163 This is a souped-up version of `readProcessWithErrorcode` that
9164 uses lazy bytestrings instead of strings and allows setting
9165 environment variables. (Used in `Text.Pandoc.PDF`.)
9167 * New module `Text.Pandoc.Readers.OPML`.
9169 * New module `Text.Pandoc.Writers.OPML`.
9171 * New module `Text.Pandoc.Readers.Haddock` (David Lazar).
9172 This is based on Haddock's own lexer/parser.
9174 * New module `Text.Pandoc.Writers.Custom`.
9176 * In `Text.Pandoc.Shared`, `openURL` and `fetchItem` now return an
9177 Either, for better error handling.
9179 * Made `stringify` polymorphic in `Text.Pandoc.Shared`.
9181 * Removed `stripTags` from `Text.Pandoc.XML`.
9183 * `Text.Pandoc.Templates`:
9185 + Simplified `Template` type to a newtype.
9186 + Removed `Empty`.
9187 + Changed type of `renderTemplate`: it now takes a JSON context
9188 and a compiled template.
9189 + Export `compileTemplate`.
9190 + Export `renderTemplate'` that takes a string instead of a compiled
9191 template.
9192 + Export `varListToJSON`.
9194 * `Text.Pandoc.PDF` exports `makePDF` instead of `tex2pdf`.
9195 The signature of `makePDF` has changed and now contains
9196 an additional argument for pdf engine options.
9198 * `Text.Pandoc`:
9200 + Made `toJsonFilter` an alias for `toJSONFilter` from `Text.Pandoc.JSON`.
9201 + Removed `ToJsonFilter` typeclass. `ToJSONFilter` from
9202 `Text.Pandoc.JSON` should be used instead. (Compiling against
9203 pandoc-types instead of pandoc will also produce smaller executables.)
9204 * Removed the deprecated `jsonFilter` function.
9205 + Added `readJSON`, `writeJSON` to the API (#817).
9207 * `Text.Pandoc.Options`:
9209 + Added `Ext_lists_without_preceding_blankline`,
9210 `Ext_ascii_identifiers`, `Ext_ignore_line_breaks`,
9211 `Ext_yaml_metadataBlock` to `Extension`.
9212 + Changed `writerSourceDirectory` to `writerSourceURL` and changed the
9213 type to a `Maybe`. `writerSourceURL` is set to 'Just url' when the
9214 first command-line argument is an absolute URL. (So, relative links
9215 will be resolved in relation to the first page.) Otherwise, 'Nothing'.
9216 + All bibliography-related fields have been removed from
9217 `ReaderOptions` and `WriterOptions`: `writerBiblioFiles`,
9218 `readerReferences`, `readerCitationStyle`.
9219 + Removed `writerPdfArgs` from `WriterOptions`. These are now
9220 passed in as a parameter to `makePDF`.
9222 * The `Text.Pandoc.Biblio` module has been removed. Users of the
9223 pandoc library who want citation support will need to use
9224 `Text.CSL.Pandoc` from `pandoc-citeproc`.
9227 [bug fixes]
9229 * In markdown, don't autolink a bare URI that is followed by `</a>`
9230 (#937).
9232 * `Text.Pandoc.Shared`
9234 + `openURL` now follows redirects (#701), properly handles `data:`
9235 URIs, and prints diagnostic output to stderr rather than stdout.
9236 + `readDefaultDataFile`: normalize the paths. This fixes bugs in
9237 `--self-contained` on pandoc compiled with `embed_data_files` (#833).
9238 + Fixed `readDefaultDataFile` so it works on Windows.
9239 + Better error messages for `readDefaultDataFile`. Instead of
9240 listing the last path tried, which can confuse people who are
9241 using `--self-contained`, so now we just list the data file name.
9242 + URL-escape pipe characters. Even though these are legal, `Network.URI`
9243 doesn't regard them as legal in URLs. So we escape them first (#535).
9245 * Mathjax in HTML slide shows: include explicit "Typeset" call.
9246 This seems to be needed for some formats (e.g. slideous) and won't
9247 hurt in others (#966).
9249 * `Text.Pandoc.PDF`
9251 + On Windows, create temdir in working directory, since the system
9252 temp directory path may contain tildes, which can cause
9253 problems in LaTeX (#777).
9254 + Put temporary output directory in `TEXINPUTS` (see #917).
9255 + `makePDF` tries to download images that are not found locally,
9256 if the first argument is a URL (#917).
9257 + If compiling with `pdflatex` yields an encoding error, offer
9258 the suggestion to use `--latex-engine=xelatex`.
9260 * Produce automatic header identifiers in parsing textile, RST,
9261 and LaTeX, unless `auto_identifiers` extension is disabled (#967).
9263 * `Text.Pandoc.SelfContained`: Strip off fragment, query of relative URL
9264 before treating as a filename. This fixes `--self-contained` when used
9265 with CSS files that include web fonts using the method described here:
9266 <http://paulirish.com/2009/bulletproof-font-face-implementation-syntax/>
9267 (#739). Handle `src` in `embed`, `audio`, `source`, `input` tags.
9269 * `Text.Pandoc.Parsing`: `uri` parser no longer treats punctuation before
9270 percent-encoding, or a `+` character, as final punctuation.
9272 * `Text.Pandoc.ImageSize`: Handle EPS (#903). This change will make
9273 EPS images properly sized on conversion to Word.
9275 * Slidy: Use slidy.js rather than slidy.js.gz.
9276 Reason: some browsers have trouble with the gzipped js file,
9277 at least on the local file system (#795).
9279 * Markdown reader
9281 + Properly handle blank line at beginning of input (#882).
9282 + Fixed bug in unmatched reference links. The input
9283 `[*infile*] [*outfile*]` was getting improperly parsed:
9284 "infile" was emphasized, but "*outfile*" was literal (#883).
9285 + Allow internal `+` in citation identifiers (#856).
9286 + Allow `.` or `)` after `#` in ATX headers if no `fancy_lists`.
9287 + Do not generate blank title, author, or date metadata elements.
9288 Leave these out entirely if they aren't present.
9289 + Allow backtick code blocks not to be preceded by blank line (#975).
9291 * Textile reader:
9293 + Correctly handle entities.
9294 + Improved handling of `<pre>` blocks (#927). Remove internal HTML tags
9295 in code blocks, rather than printing them verbatim. Parse attributes
9296 on `<pre>` tag for code blocks.
9298 * HTML reader: Handle non-simple tables (#893). Column widths are read from
9299 `col` tags if present, otherwise divided equally.
9301 * LaTeX reader
9303 + Support alltt environment (#892).
9304 + Support `\textasciitilde`, `\textasciicircum` (#810).
9305 + Treat `\textsl` as emphasized text reader (#850).
9306 + Skip positional options after `\begin{figure}`.
9307 + Support `\v{}` for hacek (#926).
9308 + Don't add spurious ", " to citation suffixes.
9309 This is added when needed in pandoc-citeproc.
9310 + Allow spaces in alignment spec in tables, e.g. `{ l r c }`.
9311 + Improved support for accented characters (thanks to Scott Morrison).
9312 + Parse label after section command and set id (#951).
9314 * RST reader:
9316 + Don't insert paragraphs where docutils doesn't.
9317 `rst2html` doesn't add `<p>` tags to list items (even when they are
9318 separated by blank lines) unless there are multiple paragraphs in the
9319 list. This commit changes the RST reader to conform more closely to
9320 what docutils does (#880).
9321 + Improved metadata. Treat initial field list as metadata when
9322 standalone specified. Previously ALL fields "title", "author",
9323 "date" in field lists were treated as metadata, even if not at
9324 the beginning. Use `subtitle` metadata field for subtitle.
9325 + Fixed 'authors' metadata parsing in reST. Semicolons separate
9326 different authors.
9328 * MediaWiki reader
9330 + Allow space before table rows.
9331 + Fixed regression for `<ref>URL</ref>`.
9332 `<` is no longer allowed in URLs, according to the uri parser
9333 in `Text.Pandoc.Parsing`. Added a test case.
9334 + Correctly handle indented preformatted text without preceding
9335 or following blank line.
9336 + Fixed `|` links inside table cells. Improved attribute parsing.
9337 + Skip attributes on table rows. Previously we just crashed if
9338 rows had attributes, now we ignore them.
9339 + Ignore attributes on headers.
9340 + Allow `Image:` for images (#971).
9341 + Parse an image with caption in a paragraph by itself as a figure.
9343 * LaTeX writer
9345 + Don't use ligatures in escaping inline code.
9346 + Fixed footnote numbers in LaTeX/PDF tables. This fixes a bug
9347 wherein notes were numbered incorrectly in tables (#827).
9348 + Always create labels for sections. Previously the labels were only
9349 created when there were links to the section in the document (#871).
9350 + Stop escaping `|` in LaTeX math.
9351 This caused problems with array environments (#891).
9352 + Change `\` to `/` in paths. `/` works even on Windows in LaTeX.
9353 `\` will cause major problems if unescaped.
9354 + Write id for code block to label attribute in LaTeX when listings
9355 is used (thanks to Florian Eitel).
9356 + Scale LaTeX tables so they don't exceed columnwidth.
9357 + Avoid problem with footnotes in unnumbered headers (#940).
9359 * Beamer writer: when creating beamer slides, add `allowframebreaks` option
9360 to the slide if it is one of the header classes. It is recommended
9361 that your bibliography slide have this attribute:
9363 # References {.allowframebreaks}
9365 This causes multiple slides to be created if necessary, depending
9366 on the length of the bibliography.
9368 * ConTeXt writer: Properly handle tables without captions. The old output
9369 only worked in MkII. This should work in MkIV as well (#837).
9371 * MediaWiki writer: Use native mediawiki tables instead of HTML (#720).
9373 * HTML writer:
9375 + Fixed `--no-highlight` (Alexander Kondratskiy).
9376 + Don't convert to lowercase in email obfuscation (#839).
9377 + Ensure proper escaping in `<title>` and `<meta>` fields.
9379 * AsciiDoc writer:
9381 + Support `--atx-headers` (Max Rydahl Andersen).
9382 + Don't print empty identifier blocks `([[]])` on headers (Max
9383 Rydahl Andersen).
9385 * ODT writer:
9387 + Fixing wrong numbered-list indentation in open document format
9388 (Alexander Kondratskiy) (#369).
9389 + `reference.odt`: Added pandoc as "generator" in `meta.xml`.
9390 + Minor changes for ODF 1.2 conformance (#939). We leave the
9391 nonconforming `contextual-spacing` attribute, which is provided by
9392 LibreOffice itself and seems well supported.
9394 * Docx writer:
9396 + Fixed rendering of display math in lists.
9397 In 1.11 and 1.11.1, display math in lists rendered as a new list
9398 item. Now it always appears centered, just as outside of lists,
9399 and in proper display math style, no matter how far indented the
9400 containing list item is (#784).
9401 + Use `w:br` with `w:type` `textWrapping` for linebreaks.
9402 Previously we used `w:cr` (#873).
9403 + Use Compact style for Plain block elements, to
9404 differentiate between tight and loose lists (#775).
9405 + Ignore most components of `reference.docx`.
9406 We take the `word/styles.xml`, `docProps/app.xml`,
9407 `word/theme/theme1.xml`, and `word/fontTable.xml` from
9408 `reference.docx`, ignoring everything else. This should help
9409 with the corruption problems caused when different versions of
9410 Word resave the reference.docx and reorganize things.
9411 + Made `--no-highlight` work properly.
9413 * EPUB writer
9415 + Don't add `dc:creator` tags if present in EPUB metadata.
9416 + Add `id="toc-title"` to `h1` in `nav.xhtml` (#799).
9417 + Don't put blank title page in reading sequence.
9418 Set `linear="no"` if no title block. Addresses #797.
9419 + Download webtex images and include as data URLs.
9420 This allows you to use `--webtex` in creating EPUBs.
9421 Math with `--webtex` is automatically made self-contained.
9422 + In `data/epub.css`, removed highlighting styles (which
9423 are no longer needed, since styles are added by the HTML
9424 writer according to `--highlighting-style`). Simplified
9425 margin fields.
9426 + If resource not found, skip it, as in Docx writer (#916).
9428 * RTF writer:
9430 + Properly handle characters above the 0000-FFFF range.
9431 Uses surrogate pairs. Thanks to Hiromi Ishii for the patch.
9432 + Fixed regression with RTF table of contents.
9433 + Only autolink absolute URIs. This fixes a regression, #830.
9435 * Markdown writer:
9437 + Only autolink absolute URIs. This fixes a regression, #830.
9438 + Don't wrap attributes in fenced code blocks.
9439 + Write full metadata in MMD style title blocks.
9440 + Put multiple authors on separate lines in pandoc titleblock.
9441 Also, don't wrap long author entries, as new lines get treated
9442 as new authors.
9444 * `Text.Pandoc.Templates`:
9446 + Fixed bug retrieving default template for markdown variants.
9447 + Templates can now contain "record lookups" in variables;
9448 for example, `author.institution` will retrieve the `institution`
9449 field of the `author` variable.
9450 + More consistent behavior of `$for$`. When `foo` is not a list,
9451 `$for(foo)$...$endfor$` should behave like $if(foo)$...$endif$.
9452 So if `foo` resolves to "", no output should be produced.
9453 See pandoc-templates#39.
9455 * Citation processing improvements (now part of pandoc-citeproc):
9457 + Fixed `endWithPunct` The new version correctly sees a sentence
9458 ending in '.)' as ending with punctuation. This fixes a bug which
9459 led such sentences to receive an extra period at the end: '.).'.
9460 Thanks to Steve Petersen for reporting.
9461 + Don't interfere with Notes that aren't citation notes.
9462 This fixes a bug in which notes not generated from citations were
9463 being altered (e.g. first letter capitalized) (#898).
9464 + Only capitalize footnote citations when they have a prefix.
9465 + Changes in suffix parsing. A suffix beginning with a digit gets 'p'
9466 inserted before it before passing to citeproc-hs, so that bare numbers
9467 are treated as page numbers by default. A suffix not beginning with
9468 punctuation has a space added at the beginning (rather than a comma and
9469 space, as was done before for not-author-in-text citations).
9470 The result is that `\citep[23]{item1}` in LaTeX will be interpreted
9471 properly, with '23' treated as a locator of type 'page'.
9472 + Many improvements to citation rendering, due to fixes in citeproc-hs
9473 (thanks to Andrea Rossato).
9474 + Warnings are issued for undefined citations, which are rendered
9475 as `???`.
9476 + Fixed hanging behavior when locale files cannot be found.
9478 [template changes]
9480 * DocBook: Use DocBook 4.5 doctype.
9482 * Org: '#+TITLE:' is inserted before the title.
9483 Previously the writer did this.
9485 * LaTeX: Changes to make mathfont work with xelatex.
9486 We need the mathspec library, not just fontspec, for this.
9487 We also need to set options for setmathfont (#734).
9489 * LaTeX: Use `tex-ansi` mapping for `monofont`.
9490 This ensures that straight quotes appear as straight, rather than
9491 being treated as curly. See #889.
9493 * Made `\includegraphics` more flexible in LaTeX template.
9494 Now it can be used with options, if needed. Thanks to Bernhard Weichel.
9496 * LaTeX/Beamer: Added `classoption` variable.
9497 This is intended for class options like `oneside`; it may
9498 be repeated with different options. (Thanks to Oliver Matthews.)
9500 * Beamer: Added `fonttheme` variable. (Thanks to Luis Osa.)
9502 * LaTeX: Added `biblio-style` variable (#920).
9504 * DZSlides: title attribute on title section.
9506 * HTML5: add meta tag to allow scaling by user (Erik Evenson)
9508 [under-the-hood improvements]
9510 * Markdown reader:Improved strong/emph parsing, using the strategy of
9511 <https://github.com/jgm/Markdown>. The new parsing algorithm requires
9512 no backtracking, and no keeping track of nesting levels. It will give
9513 different results in some edge cases, but these should not affect normal
9514 uses.
9516 * Added `Text.Pandoc.Compat.Monoid`.
9517 This allows pandoc to compile with `base` < 4.5, where `Data.Monoid`
9518 doesn't export `<>`. Thanks to Dirk Ullirch for the patch.
9520 * Added `Text.Pandoc.Compat.TagSoupEntity`.
9521 This allows pandoc to compile with `tagsoup` 0.13.x.
9522 Thanks to Dirk Ullrich for the patch.
9524 * Most of `Text.Pandoc.Readers.TeXMath` has been moved to the
9525 `texmath` module (0.6.4). (This allows `pandoc-citeproc` to
9526 handle simple math in bibliography fields.)
9528 * Added `Text.Pandoc.Writers.Shared` for shared functions used
9529 only in writers. `metaToJSON` is used in writers to create a
9530 JSON object for use in the templates from the pandoc metadata
9531 and variables. `getField`, `setField`, and `defField` are
9532 for working with JSON template contexts.
9534 * Added `Text.Pandoc.Asciify` utility module.
9535 This exports functions to create ASCII-only versions of identifiers.
9537 * `Text.Pandoc.Parsing`
9539 + Generalized state type on `readWith` (API change).
9540 + Specialize readWith to `String` input. (API change).
9541 + In `ParserState`, replace `stateTitle`, `stateAuthors`, `stateDate`
9542 with `stateMeta` and `stateMeta'`.
9544 * `Text.Pandoc.UTF8`: use strict bytestrings in reading. The use of lazy
9545 bytestrings seemed to cause problems using pandoc on 64-bit Windows
9546 7/8 (#874).
9548 * Factored out `registerHeader` from markdown reader, added to
9549 `Text.Pandoc.Parsing`.
9551 * Removed `blaze_html_0_5` flag, require `blaze-html` >= 0.5.
9552 Reason: < 0.5 does not provide a monoid instance for Attribute,
9553 which is now needed by the HTML writer (#803).
9555 * Added `http-conduit` flag, which allows fetching https resources.
9556 It also brings in a large number of dependencies (`http-conduit`
9557 and its dependencies), which is why for now it is an optional flag
9558 (#820).
9560 * Added CONTRIBUTING.md.
9562 * Improved INSTALL instructions.
9564 * `make-windows-installer.bat`: Removed explicit paths for executables.
9566 * `aeson` is now used instead of `json` for JSON.
9568 * Set default stack size to 16M. This is needed for some large
9569 conversions, esp. if pandoc is compiled with 64-bit ghc.
9571 * Various small documentation improvements.
9572 Thanks to achalddave and drothlis for patches.
9574 * Removed comment that chokes recent versions of CPP (#933).
9576 * Removed support for GHC version < 7.2, since pandoc-types now
9577 requires at least GHC 7.2 for GHC generics.
9580pandoc (1.11.1)
9582 * Markdown reader:
9584 + Fixed regression in which parentheses were lost in link URLs.
9585 Added tests. Closes #786.
9586 + Better handling of unmatched double quotes in `--smart` mode.
9587 These occur frequently in fiction, since it is customary not to
9588 close quotes in dialogue if the speaker does not change between
9589 paragraphs. The unmatched quotes now get turned into literal
9590 left double quotes. (No `Quoted` inline is generated, however.)
9591 Closes #99 (again).
9593 * HTML writer: Fixed numbering mismatch between TOC and sections.
9594 `--number-offset` now affects TOC numbering as well
9595 as section numbering, as it should have all along. Closes #789.
9597 * Markdown writer: Reverted 1.11 change that caused citations to be rendered
9598 as markdown citations, even if `--bibliography` was specified, unless
9599 `citation` extension is disabled. Now, formatted citations are always
9600 printed if `--bibliography` was specified. If you want to reformat
9601 markdown keeping pandoc markdown citations intact, don't use
9602 `--bibliography`. Note that citations parsed from LaTeX documents will
9603 be rendered as pandoc markdown citations when `--bibliography` is not
9604 specified.
9606 * ODT writer: Fixed regression leading to corrupt ODTs.
9607 This was due to a change in the `Show` instance for
9608 `Text.Pandoc.Pretty.Doc`. Closes #780.
9610 * Fixed spacing bugs involving code block attributes in
9611 RST reader and Markdown writer. Closes #763.
9613 * Windows package: Various improvements due to Fyodor Sheremetyev.
9615 + Automatically set installation path (Program Files or Local App Data).
9616 + Set system PATH environment variable when installing for all users.
9617 + Pandoc can installed for all users using the following command.
9618 `msiexec /i pandoc-1.11.msi ALLUSERS=1`.
9620 * Bumped QuickCheck version bound.
9622pandoc (1.11)
9624 * Added `--number-offset` option. (See README for description.)
9626 * Added `--default-image-extension` option. (See README for description.)
9628 * `--number-sections` behavior change: headers with class `unnumbered`
9629 will not be numbered.
9631 * `--version` now reports the default data directory.
9633 * `Text.Pandoc.Parsing` is no longer exposed. (API change.)
9635 * `Text.Pandoc.Highlighting` is no longer exposed. (API change.)
9637 * `Text.Pandoc.Shared`: Changed type of `Element`. `Sec` now includes
9638 a field for `Attr` rather than just `String`. (API change.)
9640 * Added `markdown_github` as input format. This was an accidental
9641 omission in 1.10.
9643 * Added `readerDefaultImageExtension` field to `ReaderOptions`. (API
9644 change.)
9646 * Added `writerNumberOffset` field in `WriterOptions`. (API change.)
9648 * Beamer template:
9650 + Fixed captions with longtable. Thanks to Joost Kremers.
9651 + Provide `\Oldincludegraphics` as in LaTeX template (Benjamin Bannier).
9653 * LaTeX template:
9655 + Load microtype after fonts. Microtype needs to know
9656 what fonts are being used. Thanks to dfc for the patch.
9657 + Set `secnumdepth` to 5 if `--number-sections` specified.
9658 This yields behavior equivalent to the other writers, numbering
9659 level 4 and 5 headers too. Closes #753.
9661 * HTML reader:
9663 + Handle `<colgroup>` tag.
9664 + Preserve all header attributes.
9666 * LaTeX reader:
9668 + Parse `\hrule` as `HorizontalRule`. Closes #746.
9669 + Parse starred variants of `\section` etc. as headers with
9670 attribute `unnumbered`.
9671 + Read optional attributes in `lstlisting` and `Verbatim` environments.
9672 We convert these to pandoc standard names, e.g. `numberLines`
9673 for `numbers=left`, `startFrom=100` from `firstnumber=100`.
9674 + Handle language attribute for lstlistings.
9675 + Better support for Verbatim and minted environments. Closes #763.
9677 * Markdown reader:
9679 + `-` in an attribute context = `.unnumbered`. The point of this
9680 is to provide a way to specify unnumbered headers in non-English
9681 documents.
9682 + Fixed bug parsing key/value attributes. Parsing failed if you
9683 had an unquoted attribute immediately before the final '}'.
9684 + Make backslash escape work in attributes.
9685 + Fix title block parsing. Now if `mmd_title_blocks` is specified,
9686 pandoc will parse a MMD title block if it sees one, even if
9687 `pandoc_title_blocks` is enabled.
9688 + Refactoring: `litChar` now includes entities, so we don't need
9689 to use `fromEntities` e.g. on titles.
9690 + Allow spaces around borders in pipe tables. Closes #772.
9691 + Allow all punctuation in angle-bracket autolinks. Previously
9692 things like `----` were disallowed, because the uri parser
9693 treated them as trailing punctuation. Closes #768.
9694 + Make `implicit_header_references` work properly when
9695 headers are given explicit identifiers.
9696 + Check for tables before line blocks. Otherwise some pipe
9697 tables get treated as line blocks.
9698 + Allow `&` in emails (for entities).
9699 + Properly handle entities in titles and links. A markdown link
9700 `<http://g&ouml;ogle.com>` should be a link to `http://göogle.com`.
9701 Closes #723.
9703 * Textile reader:
9705 + Handle attributes on headers.
9707 * LaTeX reader:
9709 + Add `fig:` as title for images with captions.
9710 This is needed for them to be rendered as figures. Closes #766.
9711 + Never emit an empty paragraph. See #761.
9712 + Handle `\caption` for images in figures. Closes #766.
9713 + Parse `\section*`, etc. as unnumbered sections.
9715 * HTML writer:
9717 + Support header attributes. The attributes go on
9718 the enclosing `section` or `div` tag if `--section-divs` is specified.
9719 + Fixed a regression (only now noticed) in html+lhs output.
9720 Previously the bird tracks were being omitted.
9722 * LaTeX writer:
9724 + Omit lists with no items to avoid LaTeX errors.
9725 + Support line numbering with `--listings`.
9726 If `numberLines` class is present, we add `numbers=left`;
9727 if `startFrom` is present, we add `firstnumber=`. (#763)
9729 * ConTeXt writer:
9731 + Removed `\placecontent`. This produced a duplicate toc,
9732 in conjunction with `\placelist`.
9733 + Use `\title`, `\subject` etc. for headers with
9734 `unnumbered` class.
9736 * Textile writer:
9738 + Support header attributes.
9740 * Markdown writer:
9742 + Use grid tables when needed, and if enabled. Closes #740.
9743 + Render citations as pandoc-markdown citations.
9744 Previously citations were rendered as citeproc-formatted citations
9745 by default. Now we render them as pandoc citations, e.g. `[@item1]`,
9746 unless the `citations` extension is disabled.
9747 If you still want formatted citations in your markdown output,
9748 use `pandoc -t markdown-citations`.
9750 * RST writer:
9752 + Support `:number-lines:` in code blocks.
9754 * Docx writer:
9756 + Better treatment of display math. Display math inside a
9757 paragraph is now put in a separate paragraph, so it will render
9758 properly (centered and without extra blank lines around it).
9759 Partially addresses #742.
9760 + Content types and document rels xml files are now created from
9761 scratch, rather than being taken over from `reference.docx`.
9762 This fixes problems that arise when you edit the `reference.docx`
9763 with Word.
9764 + We also now encode mime types for each individual image rather
9765 than using defaults. This should allow us to handle a wider
9766 range of image types (including PDF). Closes #414.
9767 + Changed style names in `reference docx`.
9768 `FootnoteReference` -> `FootnoteRef`, `Hyperlink` -> `Link`.
9769 The old names got changed by Word when the `reference.docx` was
9770 edited. Closes #414.
9772 * EPUB writer:
9774 + Fix section numbering. Previously the numbering restarted from 1
9775 in each chapter (with `--number-sections`), though the numbers in
9776 the table of contents were correct.
9777 + Headers with "unnumbered" attribute are not numbered. (Nor do they
9778 cause an increment in running numbering.) Section numbers now work
9779 properly, even when there is material before the first numbered section.
9780 + Include HTML TOC, even in epub2. The TOC is included in `<spine>`,
9781 but `linear` is set to `no` unless the `--toc` option is specified.
9782 Include `<guide>` element in OPF. This should allow the TOC to
9783 be usable in Kindles when converted with kindlegen. Closes #773.
9785 * `Text.Pandoc.Parsing`: Optimized `oneOfStringsCI`.
9786 This dramatically reduces the speed penalty that comes from enabling the
9787 `autolink_bare_uris` extension. The penalty is still substantial (in one
9788 test, from 0.33s to 0.44s), but nowhere near what it used to be.
9789 The RST reader is also much faster now, as it autodetects URIs.
9791 * `Text.Pandoc.Shared`: `hierarchicalize` will not number section
9792 with class "unnumbered". Unnumbered sections get `[]` for their
9793 section number.
9795 * `Text.Pandoc.Pretty`:
9797 + Fixed `chomp` so it works inside `Prefixed` elements.
9798 + Changed `Show` instance so it is better for debugging.
9800 * `Text.Pandoc.ImageSize`: Added `Pdf` to `ImageType`.
9802 * `Text.Pandoc.UTF8`: Strip off BOM if present. Closes #743.
9804 * Windows installer improvements:
9806 + The installer is now signed with a certificate (thanks to
9807 Fyodor Sheremetyev).
9808 + WiX is used instead of InnoSetup. The installer is now a
9809 standard msi file.
9810 + The version number is now auto-detected, and need not be
9811 updated separately.
9813 * OSX installer improvements:
9815 + The package and pandoc executable are now signed with a
9816 certificate (thanks to Fyodor Sheremetyev).
9817 + RTF version of license is used.
9818 + Use full path for sysctl in `InstallationCheck` script (jonahbull).
9819 Closes #580.
9821 * Converted COPYING to markdown.
9823 * pandoc.cabal: Require latest versions of highlighting-kate,
9824 texmath, citeproc-hs, zip-archive.
9826pandoc (1.10.1)
9828 * Markdown reader: various optimizations, leading to a
9829 significant performance boost.
9831 * RST reader: Allow anonymous form of inline links:
9832 `` `hello <url>`__ `` Closes #724.
9834 * Mediawiki reader: Don't require newlines after tables.
9835 Thanks to jrunningen for the patch. Closes #733.
9837 * Fixed LaTeX macro parsing. Now LaTeX macro definitions are preserved
9838 when output is LaTeX, and applied when it is another format.
9839 Partially addresses #730.
9841 * Markdown and RST readers: Added parser to `block` that skips blank
9842 lines. This fixes a subtle regression involving grid tables with
9843 empty cells. Also added test for grid table with empty cells.
9844 Closes #732.
9846 * RST writer: Use `.. code:: language` for code blocks with language.
9847 Closes #721.
9849 * DocBook writer: Fixed output for hard line breaks, adding a newline
9850 between `<literallayout>` tags.
9852 * Markdown writer: Use an autolink when link text matches url.
9853 Previously we also checked for a null title, but this
9854 test fails for links produced by citeproc-hs in bibliographies.
9855 So, if the link has a title, it will be lost on conversion
9856 to an autolink, but that seems okay.
9858 * Markdown writer: Set title, author, date variables as before.
9859 These are no longer used in the default template, since we use
9860 titleblock, but we set them anyway for those who use custom templates.
9862 * LaTeX writer: Avoid extra space at start/end of table cell.
9863 Thanks to Nick Bart for the suggestion of using @{}.
9865 * `Text.Pandoc.Parsing`:
9867 + More efficient version of `anyLine`.
9868 + Type of `macro` has changed; the parser now returns `Blocks`
9869 instead of `Block`.
9871 * Relaxed old-time version bound, allowing 1.0.*.
9873 * Removed obsolete `hsmarkdown` script. Those who need `hsmarkdown`
9874 should create a symlink as described in the README.
9876pandoc (1.10.0.5)
9878 * Markdown reader: Try `lhsCodeBlock` before `rawTeXBlock`. Otherwise
9879 `\begin{code}...\end{code}` isn't handled properly in markdown+lhs.
9880 Thanks to Daniel Miot for noticing the bug and suggesting the fix.
9882 * Markdown reader: Fixed bug with headerless grid tables.
9883 The 1.10 code assumed that each table header cell contains exactly one
9884 block. That failed for headerless tables (0) and also for tables with
9885 multiple blocks in a header cell. The code is fixed and tests provided.
9886 Thanks to Andrew Lee for pointing out the bug.
9888 * Markdown reader: Fixed regressions in fenced code blocks. Closes #722.
9890 + Tilde code fences can again take a bare language string
9891 (`~~~ haskell`), not just curly-bracketed attributes
9892 (`~~~ {.haskell}`).
9893 + Backtick code blocks can take the curly-bracketed attributes.
9894 + Backtick code blocks don't *require* a language.
9895 + Consolidated code for the two kinds of fenced code blocks.
9897 * LaTeX template: Use `\urlstyle{same}` to avoid monospace URLs.
9899 * Markdown writer: Use proportional font for email autolinks with
9900 obfuscation. Closes #714.
9902 * Corrected name of `blank_before_blockquote` in README. Closes #718.
9904 * `Text.Pandoc.Shared`: Fixed bug in `uri` parser.
9905 The bug prevented an autolink at the end of a string (e.g.
9906 at the end of a line block line) from counting as a link. Closes #711.
9908 * Use the `hsb2hs` preprocessor instead of TH for embed_data_files.
9909 This should work on Windows, unlike the TH solution with
9910 file-embed.
9912 * Eliminated use of TH in test suite.
9914 * Added `Text.Pandoc.Data` (non-exported) to hold the association
9915 list of embedded data files, if the `embed_data_files` flag is selected.
9916 This isolates the code that needs special treatment with file-embed or
9917 `hsb2hs`.
9919 * Changes to `make-windows-installer.bat`.
9921 + Exit batch file if any of the cabal-dev installs fail.
9922 + There's no longer any need to reinstall `highlighting-kate`.
9923 + Don't start with a `cabal update`; leave that to the user.
9924 + Force reinstall of pandoc.
9926 * Fixed EPUB writer so it builds with blaze-html 0.4.x. Thanks to
9927 Jens Petersen.
9929pandoc (1.10.0.4)
9931 * Fixed bug with escaped % in LaTeX reader. Closes #710.
9933pandoc (1.10.0.3)
9935 * Added further missing fb2 tests to cabal file.
9937pandoc (1.10.0.2)
9939 * Added fb2 tests to cabal file's extra-source-files.
9941pandoc (1.10.0.1)
9943 * Bump version bounds on test-framework packages.
9945pandoc (1.10)
9947 [new features]
9949 * New input formats: `mediawiki` (MediaWiki markup).
9951 * New output formats: `epub3` (EPUB v3 with MathML),
9952 `fb2` (FictionBook2 ebooks).
9954 * New `--toc-depth` option, specifying how many levels of
9955 headers to include in a table of contents.
9957 * New `--epub-chapter-level` option, specifying the header
9958 level at which to divide EPUBs into separate files.
9959 Note that this normally affects only performance, not the
9960 visual presentation of the EPUB in a reader.
9962 * Removed the `--strict` option. Instead of using `--strict`,
9963 one can now use the format name `markdown_strict` for either input
9964 or output. This gives more fine-grained control that `--strict`
9965 did, allowing one to convert from pandoc's markdown to strict
9966 markdown or vice versa.
9968 * It is now possible to enable or disable specific syntax
9969 extensions by appending them (with `+` or `-`) to the writer
9970 or reader name. For example,
9972 pandoc -f markdown-footnotes+hard_line_breaks
9974 disables footnotes and enables treating newlines as hard
9975 line breaks. The literate Haskell extensions are now implemented
9976 this way as well, using either `+lhs` or `+literate_haskell`.
9977 For a list of extension names, see the README under
9978 "Pandoc's Markdown."
9980 * The following aliases have been introduced for specific
9981 combinations of markdown extensions: `markdown_phpextra`,
9982 `markdown_github`, `markdown_mmd`, `markdown_strict`. These aliases
9983 work just like regular reader and writer names, and can be modified
9984 with extension modifiers as described above. (Note that conversion
9985 from one markdown dialect to another does not work perfectly,
9986 because there are differences in markdown parsers besides
9987 just the extensions, and because pandoc's internal document model is
9988 not rich enough to capture all of the extensions.)
9990 * New `--html-q-tags` option. The previous default was to use `<q>`
9991 tags for smart quotes in HTML5. But `<q>` tags are also valid HTML4.
9992 Moreover, they are not a robust way of typesetting quotes, since
9993 some user agents don't support them, and some CSS resets (e.g.
9994 bootstrap) prevent pandoc's quotes CSS from working properly.
9995 We now just insert literal quote characters by default in both
9996 `html` and `html5` output, but this option is provided for
9997 those who still want `<q>` tags.
9999 * The markdown reader now prints warnings (to stderr) about
10000 duplicate link and note references. Closes #375.
10002 * Markdown syntax extensions:
10004 + Added pipe tables. Thanks to François Gannaz for the initial patch.
10005 These conform to PHP Markdown Extra's pipe table syntax. A subset
10006 of org-mode table syntax is also supported, which means that you can
10007 use org-mode's nice table editor to create tables.
10009 + Added support for RST-style line blocks. These are
10010 useful for verse and addresses.
10012 + Attributes can now be specified for headers, using the same
10013 syntax as in code blocks. (However, currently only the
10014 identifier has any effect in most writers.) For example,
10016 # My header {#foo}
10018 See [the header above](#foo).
10020 + Pandoc will now act as if link references have been defined
10021 for all headers without explicit identifiers.
10022 So, you can do this:
10024 # My header
10026 Link to [My header].
10027 Another link to [it][My header].
10029 Closes #691.
10031 * LaTeX reader:
10033 + Command macros now work everywhere, including non-math.
10034 Environment macros still not supported.
10035 + `\input` now works, as well as `\include`. TEXINPUTS is used.
10036 Pandoc looks recursively into included files for more included files.
10038 [behavior changes]
10040 * The Markdown reader no longer puts the text of autolinks in a
10041 `Code` inline. This means that autolinks will no longer appear
10042 in a monospace font.
10044 * The character `/` can now appear in markdown citation keys.
10046 * HTML blocks in strict_markdown are no longer required to begin
10047 at the left margin. Technically this is required, according to
10048 the markdown syntax document, but `Markdown.pl` and other markdown
10049 processors are more liberal.
10051 * The `-V` option has been changed so that if there are duplicate
10052 variables, those specified later on the command line take precedence.
10054 * Tight lists now work in LaTeX and ConTeXt output.
10056 * The LaTeX writer no longer relien on the `enumerate` package.
10057 Instead, it uses standard LaTeX commands to change the list numbering
10058 style.
10060 * The LaTeX writer now uses `longtable` instead of `ctable`. This allows
10061 tables to be split over page boundaries.
10063 * The RST writer now uses a line block to render paragraphs containing
10064 linebreaks (which previously weren't supported at all).
10066 * The markdown writer now applies the `--id-prefix` to footnote IDs.
10067 Closes #614.
10069 * The plain writer no longer uses backslash-escaped line breaks
10070 (which are not very "plain").
10072 * `Text.Pandoc.UTF8`: Better error message for invalid UTF8.
10073 Read bytestring and use `Text`'s decodeUtf8 instead of using
10074 `System.IO.hGetContents`. This way you get a message saying
10075 "invalid UTF-8 stream" instead of "invalid byte sequence."
10076 You are also told which byte caused the problem.
10078 * Docx, ODT, and EPUB writers now download images specified by a URL
10079 instead of skipping them or raising an error.
10081 * EPUB writer:
10083 + The default CSS now left-aligns headers by default, instead of
10084 centering. This is more consistent with the rest of the writers.
10085 + A proper multi-level table of contents is now used in `toc.ncx`.
10086 There is no longer a subsidiary table of contents at the beginning
10087 of each chapter.
10088 + Code highlighting now works by default.
10089 + Section divs are used by default for better semantic markup.
10090 + The title is used instead of "Title Page" in the table of contents.
10091 Otherwise we have a hard-coded English string, which looks
10092 strange in ebooks written in other languages. Closes #572.
10094 * HTML writer:
10096 + Put mathjax in span with class "math". Closes #562.
10097 + Put citations in a span with class "citation." In HTML5, also include
10098 a `data-cite` attribute with a space-separated list of citation
10099 keys.
10101 * `Text.Pandoc.UTF8`: use universalNewlineMode in reading.
10102 This treats both `\r\n` and `\n` as `\n` on input, no matter
10103 what platform we're running on.
10105 * Citation processing is now done in the Markdown and LaTeX
10106 readers, not in `pandoc.hs`. This makes it easier for library users
10107 to use citations.
10109 [template changes]
10111 * HTML: Added css to template to preserve spaces in `<code>` tags.
10112 Thanks to Dirk Laurie.
10114 * Beamer: Remove English-centric strings in section pages.
10115 Section pages used to have "Section" and a number as well as the
10116 section title. Now they just have the title. Similarly for part
10117 and subsection. Closes #566.
10119 * LaTeX, ConTeXt: Added papersize variable.
10121 * LaTeX, Beamer templates: Use longtable instead of ctable.
10123 * LaTeX, Beamer templates: Don't require 'float' package for tables.
10124 We don't actually seem to use the '[H]' option.
10126 * LaTeX: Use `upquote` package if it is available. This fixes
10127 straight quotes in verbatim environments.
10129 * Markdown, plain: Fixed titleblock so it is just a single string.
10130 Previously separate title, author, and date variables were used,
10131 but this didn't allow different kinds of title blocks.
10133 * EPUB:
10135 + Rationalized templates. Previously there were three different
10136 templates involved in epub production. There is now just one
10137 template, `default.epub` or `default.epub3`. It can now be
10138 overridden using `--template`, just like other templates.
10139 The titlepage is now folded into the default template.
10140 A `titlepage` variable selects it.
10141 + UTF-8, lang tag, meta tags, title element.
10143 * Added scale-to-width feature to beamer template
10145 [API changes]
10147 * `Text.Pandoc.Definition`: Added `Attr` field to `Header`.
10148 Previously header identifiers were autogenerated by the writers.
10149 Now they are added in the readers (either automatically or explicitly).
10151 * `Text.Pandoc.Builder`:
10153 + `Inlines` and `Blocks` are now synonyms for `Many Inline` and
10154 `Many Block`. `Many` is a newtype wrapper around `Seq`, with
10155 custom Monoid instances for `Many Inline` and `Many Block. This
10156 allows `Many` to be made an instance of `Foldable` and `Traversable`.
10157 + The old `Listable` class has been removed.
10158 + The module now exports `isNull`, `toList`, `fromList`.
10159 + The old `Read` and `Show` instances have been removed; derived
10160 instances are now used.
10161 + Added `headerWith`.
10163 * The readers now take a `ReaderOptions` rather than a `ParserState`
10164 as a parameter. Indeed, not all parsers use the `ParserState` type;
10165 some have a custom state. The motivation for this change was to separate
10166 user-specifiable options from the accounting functions of parser state.
10168 * New module `Text.Pandoc.Options`. This includes the `WriterOptions`
10169 formerly in `Text.Pandoc.Shared`, and its associated
10170 data types. It also includes a new type `ReaderOptions`, which
10171 contains many options formerly in `ParserState`, and its associated
10172 data types:
10174 + `ParserState.stateParseRaw` -> `ReaderOptions.readerParseRaw`.
10175 + `ParserState.stateColumns` -> `ReaderOptions.readerColumns`.
10176 + `ParserState.stateTabStop` -> `ReaderOptions.readerTabStop`.
10177 + `ParserState.stateOldDashes` -> `ReaderOptions.readerOldDashes`.
10178 + `ParserState.stateLiterateHaskell` -> `ReaderOptions.readerLiterateHaskell`.
10179 + `ParserState.stateCitations` -> `ReaderOptions.readerReferences`.
10180 + `ParserState.stateApplyMacros` -> `ReaderOptions.readerApplyMacros`.
10181 + `ParserState.stateIndentedCodeClasses` ->
10182 `ReaderOptions.readerIndentedCodeClasses`.
10183 + Added `ReaderOptions.readerCitationStyle`.
10185 * `WriterOptions` now includes `writerEpubVersion`, `writerEpubChapterLevel`,
10186 `writerEpubStylesheet`, `writerEpubFonts`, `writerReferenceODT`,
10187 `writerReferenceDocx`, and `writerTOCDepth`. `writerEPUBMetadata` has
10188 been renamed `writerEpubMetadata` for consistency.
10190 * Changed signatures of `writeODT`, `writeDocx`, `writeEPUB`, since they no
10191 longer stylesheet, fonts, reference files as separate parameters.
10193 * Removed `writerLiterateHaskell` from `WriterOptions`, and
10194 `readerLiterateHaskell` from `ReaderOptions`. LHS is now handled
10195 by an extension (`Ext_literate_haskell`).
10197 * Removed deprecated `writerXeTeX`.
10199 * Removed `writerStrict` from `WriterOptions`. Added `writerExtensions`.
10200 Strict is now handled through extensions.
10202 * `Text.Pandoc.Options` exports `pandocExtensions`, `strictExtensions`,
10203 `phpMarkdownExtraExtensions`, `githubMarkdownExtensions`,
10204 and `multimarkdownExtensions`, as well as the `Extensions` type.
10206 * New `Text.Pandoc.Readers.MediaWiki` module, exporting
10207 `readMediaWiki`.
10209 * New `Text.Pandoc.Writers.FB2` module, exporting `writeFB2`
10210 (thanks to Sergey Astanin).
10212 * `Text.Pandoc`:
10214 + Added `getReader`, `getWriter` to `Text.Pandoc`.
10215 + `writers` is now an association list `(String, Writer)`.
10216 A `Writer` can be a `PureStringWriter`, an `IOStringWriter`, or
10217 an `IOByteStringWriter`. ALL writers are now in the 'writers'
10218 list, including the binary writers and FB2 writer. This allows
10219 code in `pandoc.hs` to be simplified.
10220 + Changed type of `readers`, so all readers are in IO.
10221 Users who want pure readers can still get them form the reader
10222 modules; this just affects the function `getReader` that looks up
10223 a reader based on the format name. The point of this change is to
10224 make it possible to print warnings from the parser.
10226 * `Text.Pandoc.Parsing`:
10228 + `Text.Parsec` now exports all Parsec functions used in pandoc code.
10229 No other module directly imports Parsec. This will make it easier
10230 to change the parsing backend in the future, if we want to.
10231 + `Text.Parsec` is used instead of `Text.ParserCombinators.Parsec`.
10232 + Export the type synonym `Parser`.
10233 + Export `widthsFromIndices`, `NoteTable'`, `KeyTable'`, `Key'`, `toKey'`,
10234 `withQuoteContext`, `singleQuoteStart`, `singleQuoteEnd`,
10235 `doubleQuoteStart`, `doubleQuoteEnd`, `ellipses`, `apostrophe`,
10236 `dash`, `nested`, `F(..)`, `askF`, `asksF`, `runF`, `lineBlockLines`.
10237 + `ParserState` is no longer an instance of `Show`.
10238 + Added `stateSubstitutions` and `stateWarnings` to `ParserState`.
10239 + Generalized type of `withQuoteContext`.
10240 + Added `guardEnabled`, `guardDisabled`, `getOption`.
10241 + Removed `failIfStrict`.
10242 + `lookupKeySrc` and `fromKey` are no longer exported.
10244 * `Data.Default` instances are now provided for `ReaderOptions`,
10245 `WriterOptions`, and `ParserState`. `Text.Pandoc` re-exports `def`.
10246 Now you can use `def` (which is re-exported by `Text.Pandoc`) instead
10247 of `defaultWriterOptions` (which is still defined). Closes #546.
10249 * `Text.Pandoc.Shared`:
10251 + Added `safeRead`.
10252 + Renamed `removedLeadingTrailingSpace` to `trim`,
10253 `removeLeadingSpace` to `triml`, and `removeTrailingSpace` to `trimr`.
10254 + Count `\r` as space in `trim` functions.
10255 + Moved `renderTags'` from HTML reader and `Text.Pandoc.SelfContained`
10256 to `Shared`.
10257 + Removed `failUnlessLHS`.
10258 + Export `compactify'`, formerly in Markdown reader.
10259 + Export `isTightList`.
10260 + Do not export `findDataFile`.
10261 + `readDataFile` now returns a strict ByteString.
10262 + Export `readDataFileUTF8` which returns a String, like the
10263 old `readDataFile`.
10264 + Export `fetchItem` and `openURL`.
10266 * `Text.Pandoc.ImageSize`: Use strict, not lazy bytestrings.
10267 Removed `readImageSize`.
10269 * `Text.Pandoc.UTF8`: Export `encodePath`, `decodePath`,
10270 `decodeArg`, `toString`, `fromString`, `toStringLazy`,
10271 `fromStringLazy`.
10273 * `Text.Pandoc.UTF8` is now an exposed module.
10275 * `Text.Pandoc.Biblio`:
10277 + csl parameter now a `String` rather than a `FilePath`.
10278 + Changed type of `processBiblio`. It is no longer in the IO monad.
10279 It now takes a `Maybe Style` argument rather than parameters for CSL
10280 and abbrev filenames. (`pandoc.hs` now calls the functions to parse
10281 the style file and add abbreviations.)
10283 * Markdown reader now exports `readMarkdownWithWarnings`.
10285 * `Text.Pandoc.RTF` now exports `writeRTFWithEmbeddedImages` instead of
10286 `rtfEmbedImage`.
10288 [bug fixes]
10290 * Make `--ascii` work properly with `--self-contained`. Closes #568.
10292 * Markdown reader:
10294 + Fixed link parser to avoid exponential slowdowns. Closes #620.
10295 Previously the parser would hang on input like this:
10297 [[[[[[[[[[[[[[[[[[hi
10299 We fixed this by making the link parser parser characters
10300 between balanced brackets (skipping brackets in inline code spans),
10301 then parsing the result as an inline list. One change is that
10303 [hi *there]* bud](/url)
10305 is now no longer parsed as a link. But in this respect pandoc behaved
10306 differently from most other implementations anyway, so that seems okay.
10308 + Look for raw html/latex blocks before tables.
10309 Otherwise the following gets parsed as a table:
10311 \begin{code}
10312 --------------
10313 -- My comment.
10314 \end{code}
10316 Closes #578.
10318 * RST reader:
10320 + Added support for `:target:` on `.. image::` blocks
10321 and substitutions.
10322 + Field list fixes:
10324 - Fixed field lists items with body beginning after a new line
10325 (Denis Laxalde).
10326 - Allow any char but ':' in names of field lists in RST reader
10327 (Denis Laxalde).
10328 - Don't allow line breaks in field names.
10329 - Require whitespace after field list field names.
10330 - Don't create empty definition list for metadata field lists.
10331 Previously a field list consisting only of metadata fields (author,
10332 title, date) would be parsed as an empty DefinitionList, which is
10333 not legal in LaTeX and not needed in any format.
10335 + Don't recognize inline-markup starts inside words.
10336 For example, `2*2 = 4*1` should not contain an emphasized
10337 section. Added test case for "Literal symbols". Closes #569.
10338 + Allow dashes as separator in simple tables. Closes #555.
10339 + Added support for `container`, `compound`, `epigraph`,
10340 `rubric`, `highlights`, `pull-quote`.
10341 + Added support for `.. code::`.
10342 + Made directive labels case-insensitive.
10343 + Removed requirement that directives begin at left margin.
10344 This was (correctly) not in earlier releases; docutils doesn't
10345 make the requirement.
10346 + Added support for `replace::` and `unicode::` substitutions.
10347 + Ignore unknown interpreted roles.
10348 + Renamed image parser to `subst`, since it now handles all
10349 substitution references.
10351 * Textile reader:
10353 + Allow newlines before pipes in table. Closes #654.
10354 + Fixed bug with list items containing line breaks.
10355 Now pandoc correctly handles hard line breaks inside list items.
10356 Previously they broke list parsing.
10357 + Implemented comment blocks.
10358 + Fixed bug affected words ending in hyphen.
10359 + Properly handle links with surrounding brackets.
10360 Square brackets need to be used when the link isn't surrounded by
10361 spaces or punctuation, or when the URL ending may be ambiguous.
10362 Closes #564.
10363 + Removed nullBlock. Better to know about parsing problems than
10364 to skip stuff when we get stuck.
10365 + Allow ID attributes on headers.
10366 + Textile reader: Avoid parsing dashes as strikeout.
10367 Previously the input
10369 text--
10370 text--
10371 text--
10372 text--
10374 would be parsed with strikeouts rather than dashes. This fixes
10375 the problem by requiring that a strikeout delimiting - not be
10376 followed by a -. Closes #631.
10377 + Expanded list of `stringBreakers`.
10378 This fixes a bug on input like "(_hello_)" which should
10379 be a parenthesized emphasized "hello".
10380 The new list is taken from the PHP source of textile 2.4.
10381 + Fixed autolinks. Previously the textile reader and writer
10382 incorrectly implented RST-style autolinks for URLs and email
10383 addresses. This has been fixed. Now an autolink is done this way:
10384 `"$":http://myurl.com`.
10385 + Fixed footnotes bug in textile. This affected notes occurring
10386 before punctuation, e.g. `foo[1].`. Closes #518.
10388 * LaTeX reader:
10390 + Better handling of citation commands.
10391 + Better handling of `\noindent`.
10392 + Added a 'try' in rawLaTeXBlock, so we can handle `\begin` without `{`.
10393 Closes #622.
10394 + Made `rawLaTeXInline` try to parse block commands as well. This
10395 is usually what we want, given how `rawLaTeXInline` is used in
10396 the markdown and textile readers. If a block-level LaTeX command
10397 is used in the middle of a paragraph (e.g. `\subtitle` inside a title),
10398 we can treat it as raw inline LaTeX.
10399 + Handle \slash command. Closes #605.
10400 + Basic `\enquote` support.
10401 + Fixed parsing of paragraphs beginning with a group. Closes #606.
10402 + Use curly quotes for bare straight quotes.
10403 + Support obeylines environment. Closes #604.
10404 + Guard against "begin", "end" in inlineCommand and
10405 blockCommand.
10406 + Better error messages for environments. Now it should tell you that
10407 it was looking for \end{env}, instead of giving "unknown parse error."
10409 * HTML reader:
10411 + Added HTML 5 tags to list of block-level tags.
10412 + HTML reader: Fixed bug in `htmlBalanced`, which
10413 caused hangs in parsing certain markdown input using
10414 strict mode.
10415 + Parse `<q>` as `Quoted DoubleQuote`.
10416 + Handle nested `<q>` tags properly.
10417 + Modified `htmlTag` for fewer false positives.
10418 A tag must start with `<` followed by `!`,`?`, `/`, or a letter.
10419 This makes it more useful in the wikimedia and markdown parsers.
10421 * DocBook reader: Support title in "figure" element. Closes #650.
10423 * MediaWiki writer:
10425 + Remove newline after `<br/>` in translation of `LineBreak`
10426 There's no particular need for a newline (other than making the
10427 generated MediaWiki source look nice to a human), and in fact
10428 sometimes it is incorrect: in particular, inside an enumeration, list
10429 items cannot have embedded newline characters. (Brent Yorgey)
10430 + Use `<code>` not `<tt>` for Code.
10432 * Man writer: Escape `-` as `\-`.
10433 Unescaped `-`'s become hyphens, while `\-`'s are left as ascii minus
10434 signs. That is preferable for use with command-line options. See
10435 <http://lintian.debian.org/tags/hyphen-used-as-minus-sign.html>. Thanks
10436 to Andrea Bolognani for bringing the issue to our attention.
10438 * RST writer:
10440 + Improved line block output. Use nonbreaking spaces for
10441 initial indent (otherwise lost in HTML and LaTeX).
10442 Allow multiple paragraphs in a single line block.
10443 Allow soft breaks w continuations in line blocks.
10444 + Properly handle images with no alt text. Closes #678.
10445 + Fixed bug with links with duplicate text. We now (a) use anonymous
10446 links for links with inline URLs, and (b) use an inline link instead
10447 of a reference link if the reference link would require a label that
10448 has already been used for a different link. Closes #511.
10449 + Fixed hyperlinked images. Closes #611. Use `:target:`
10450 field when you have a simple linked image.
10451 + Don't add `:align: center` to figures.
10453 * Texinfo writer: Fixed internal cross-references.
10454 Now we insert anchors after each header, and use `@ref` instead of `@uref`
10455 for links. Commas are now escaped as `@comma{}` only when needed;
10456 previously all commas were escaped. (This change is needed, in part,
10457 because `@ref` commands must be followed by a real comma or period.) Also
10458 insert a blank line in from of `@verbatim` environments.
10460 * DocBook writer:
10462 + Made --id-prefix work in DocBook as well as HTML.
10463 Closes #607.
10464 + Don't include empty captions in figures. Closes #581.
10466 * LaTeX writer:
10468 + Use `\hspace*` for nonbreaking space after line break,
10469 since `~` spaces after a line break are just ignored.
10470 Closes #687.
10471 + Don't escape `_` in URLs or hyperref identifiers.
10472 + Properly escape strings inside \url{}. Closes #576.
10473 + Use `[fragile]` only for slides containing code rendered
10474 using listings. Closes #649.
10475 + Escape `|` as `\vert` in LaTeX math. This avoids a clash with
10476 highlighting-kate's macros, which redefine `|` as a short verbatim
10477 delimiter. Thanks to Björn Peemöller for raising this issue.
10478 + Use minipage rather than parbox for block containers in tables.
10479 This allows verbatim code to be included in grid tables.
10480 Closes #663.
10481 + Prevent paragraphs containing only linebreaks or spaces.
10483 * HTML writer:
10485 + Included `highlighting-css` for code spans, too.
10486 Previously it was only included if used in a code block. Closes #653.
10487 + Improved line breaks with `<dd>` tags. We now put a newline between
10488 `</dd>` and `<dd>` when there are multiple definitions.
10489 + Changed mathjax cdn url so it doesn't use https. (This caused
10490 problems when used with `--self-contained`.) See #609.
10492 * EPUB writer:
10494 + `--number-sections` now works properly.
10495 + Don't strip meta and link elements in epub metadata.
10496 Patch from aberrancy. Closes #589.
10497 + Fixed a couple validation bugs.
10498 + Use ch001, ch002, etc. for chapter filenames. This improves sorting
10499 of chapters in some readers, which apparently sort ch2 after ch10.
10500 Closes #610.
10502 * ODT writer: properly set title property (Arlo O'Keeffe).
10504 * Docx writer:
10506 + Fixed bug with nested lists. Previously a list like
10508 1. one
10509 - a
10510 - b
10511 2. two
10513 would come out with a bullet instead of "2."
10514 Thanks to Russell Allen for reporting the bug.
10515 + Use `w:cr` in `w:r` instead of `w:br` for linebreaks.
10516 This seems to fix a problem viewing pandoc-generated
10517 docx files in LibreOffice.
10518 + Use integer ids for bookmarks. Closes #626.
10519 + Added nsid to abstractNum elements. This helps when merging
10520 word documents with numbered or bulleted lists. Closes #627.
10521 + Use separate footnotes.xml for notes.
10522 This seems to help LibreOffice convert the file, even though
10523 it was valid docx before. Closes #637.
10524 + Use rIdNN identifiers for r:embed in images.
10525 + Avoid reading image files again when we've already processed them.
10526 + Fixed typo in `referenc.docx` that prevented image captions from
10527 working. Thanks to Huashan Chen.
10529 * `Text.Pandoc.Parsing`:
10531 + Fixed bug in `withRaw`, which didn't correctly handle the case
10532 where nothing is parsed.
10533 + Made `emailAddress` parser more correct. Now it is based on RFC 822,
10534 though it still doesn't implement quoted strings in email addresses.
10535 + Revised URI parser. It now allows many more schemes, allows
10536 uppercase URIs, and better handles trailing punctuation and
10537 trailing slashes in bare URIs. Added many tests.
10538 + Simplified and improved singleQuoteStart. This makes `'s'`, `'l'`,
10539 etc. parse properly. Formerly we had some English-centric heuristics,
10540 but they are no longer needed. Closes #698.
10542 * `Text.Pandoc.Pretty`: Added wide punctuation range to `charWidth`.
10543 This fixes bug with Chinese commas in markdown and reST tables, and
10544 a bug that caused combining characters to be dropped.
10546 * `Text.Pandoc.MIME`: Added MIME types for .wof and .eot. Closes #640.
10548 * `Text.Pandoc.Biblio`:
10550 + Run `mvPunc` and `deNote` on metadata too.
10551 This fixed a bug with notes on titles using footnote styles.
10552 + Fixed bug in fetching CSL files from CSL data directory.
10554 * `pandoc.hs`: Give correct value to `writerSourceDirectory` when a URL
10555 is provided. It should be the URL up to the path.
10557 * Fixed/simplified diff output for tests.
10558 Biblio: Make sure mvPunc and deNote run on metadata too.
10559 This fixed a bug with notes on titles using footnote styles.
10561 [under the hood improvements]
10563 * We no longer depend on `utf8-string`. Instead we use functions
10564 defined in `Text.Pandoc.UTF8` that use `Data.Text`'s conversions.
10566 * Use `safeRead` instead of using `reads` directly (various modules).
10568 * "Implicit figures" (images alone in a paragraph) are now handled
10569 differently. The markdown reader gives their titles the prefix `fig:`; the
10570 writers look for this before treating the image as a figure. Though this
10571 is a bit of a hack, it has two advantages: (i) implicit figures can be
10572 limited to the markdown reader, and (ii) they can be deactivated by turning
10573 off the `implicit_figures` extension.
10575 * `catch` from `Control.Exception` is now used instead of the
10576 old Preface `catch`.
10578 * `Text.Pandoc.Shared`: Improved algorithm for `normalizeSpaces`
10579 and `oneOfStrings` (which is now non-backtracking).
10581 * `Text.Pandoc.Biblio`: Remove workaround for `toCapital`.
10582 Now citeproc-hs is fixed upstream, so this is no longer needed.
10583 Closes #531.
10585 * Textile reader: Improved speed of `hyphenedWords`.
10586 This speeds up the textile reader by about a factor of 4.
10588 * Use `Text.Pandoc.Builder` in RST reader, for more flexibility,
10589 better performance, and automatic normalization.
10591 * Major rewrite of markdown reader:
10593 + Use `Text.Pandoc.Builder` instead of lists. This also
10594 means that everything is normalized automatically.
10595 + Move to a one-pass parsing strategy, returning values in the reader
10596 monad, which are then run (at the end of parsing) against the final
10597 parser state.
10599 * In HTML writer, we now use `toHtml` instead of pre-escaping.
10600 We work around the problem that blaze-html unnecessarily escapes `'`
10601 by pre-escaping just the `'` characters, instead of the whole string.
10602 If blaze-html later stops escaping `'` characters, we can simplify
10603 `strToHtml` to `toHtml`. Closes #629.
10605 * Moved code for embedding images in RTFs from `pandoc.hs` to the
10606 RTF writer (which now exports `writeRTFWithEmbeddedImages`).
10608 * Moved citation processing from `pandoc.hs` into the readers.
10609 This makes things more convenient for library users.
10611 * The man pages are now built by an executable `make-pandoc-man-pages`,
10612 which has its own stanza in the cabal file so that dependencies can be
10613 handled by Cabal. Special treatment in `Setup.hs` ensures that this
10614 executable never gets installed; it is only used to create the man pages.
10616 * The cabal file has been modified so that the pandoc library is used
10617 in building the pandoc executable. (This required moving `pandoc.hs`
10618 from `src` to `.`.) This cuts compile time in half.
10620 * `-O2` is no longer used in building pandoc. The performance improvement
10621 it yields is so slight that it is not worth it. (Measured with
10622 benchmarks on ghc 7.4.)
10624 * The `executable` and `library` flags have been removed.
10626 * `-threaded` has been removed from ghc-options.
10628 * Version bounds of dependencies have been raised, and the
10629 `blaze_html_0_5` flag now defaults to True. Pandoc now compiles on
10630 GHC 7.6.
10632 * We now require base >= 4.2.
10634 * Integrated the benchmark program into cabal. One can now do:
10636 cabal configure --enable-benchmarks && cabal build
10637 cabal bench --benchmark-option='markdown' --benchmark-option='-s 20'
10639 The benchmark now uses README + testsuite, so benchmark results
10640 from older versions aren't comparable.
10642 * Integrated test suite with cabal.
10643 To run tests, configure with `--enable-tests`, then `cabal test`.
10644 You can specify particular tests using `--test-options='-t markdown'`.
10645 No output is shown unless tests fail. The Haskell test modules
10646 have been moved from `src/` to `tests/`.
10648 * Moved all data files and templates to the `data/` subdirectory.
10650 * Added an `embed_data_files` cabal flag. This causes all
10651 data files to be embedded in the binary, so that the binary
10652 is self-sufficient and can be relocated anywhere, copied on
10653 a USB key, etc. The Windows installer now uses this.
10654 (Since we no longer have the option to build the executable
10655 without the library, this is the only way to get a relocatable
10656 binary on Windows.)
10658 * Removed pcre3.dll from windows package.
10659 It isn't needed unless highlighting-kate is compilled with the
10660 `pcre-light` flag. By default, regex-prce-builtin is used.
10663pandoc (1.9.4.2)
10665 * Don't encode/decode file paths if base >= 4.4.
10666 Prior to base 4.4, filepaths and command line arguments were treated
10667 as unencoded lists of bytes, not unicode strings, so we had to work
10668 around that by encoding and decoding them. This commit adds CPP
10669 checks for the base version that intelligibly enable encoding/decoding
10670 when needed. Fixes a bug with multilingual filenames when pandoc was
10671 compiled with ghc 7.4 (#540).
10673 * Don't generate an empty H1 after hrule slide breaks.
10674 We now use a slide-level header with contents `[Str "\0"]` to mark
10675 an hrule break. This avoids creation of an empty H1 in these
10676 contexts. Closes #484.
10678 * Docbook reader: Added support for "bold" emphasis. Thanks to Mauro Bieg.
10680 * In make_osx_package.sh, ensure citeproc-hs is built with the
10681 embed_data_files flag.
10683 * MediaWiki writer: Avoid extra blank lines after sublists (Gavin Beatty).
10685 * ConTeXt writer: Don't escape `&`, `^`, `<`, `>`, `_`,
10686 simplified escapes for `}` and `{` to `\{` and `\}` (Aditya Mahajan).
10688 * Fixed handling of absolute URLs in CSS imports with `--self-contained`.
10689 Closes #535.
10691 * Added webm to mime types. Closes #543.
10693 * Added some missing exports and tests to the cabal file
10694 (Alexander V Vershilov).
10696 * Compile with `-rtsopts` and `-threaded` by default.
10698pandoc (1.9.4.1)
10700 * Markdown reader: Added `cf.` and `cp.` to list of likely abbreviations.
10702 * LaTeX template: Added `linkcolor`, `urlcolor` and `links-as-notes`
10703 variables. Make TOC links black.
10705 * LaTeX template improvements.
10707 + Don't print date unless one is given explicitly in the document.
10708 + Simplified templates.
10709 + Use fontenc [T1] by default, and lmodern.
10710 + Use microtype if available.
10712 * Biblio:
10714 + Add comma to beginning of bare suffix, e.g. `@item1 [50]`.
10715 Motivation: `@item1 [50]` should be as close as possible to
10716 `[@item1, 50]`.
10717 + Added workaround for a bug in citeproc-hs 0.3.4 that causes footnotes
10718 beginning with a citation to be empty. Closes #531.
10720 * Fixed documentation on mixed lists. Closes #533.
10722pandoc (1.9.4)
10724 * Simplified `Text.Pandoc.Biblio` and fixed bugs with citations inside
10725 footnotes and captions. We now handle note citations by inserting
10726 footnotes during initial citation processing, and doing a separate
10727 pass later to remove notes inside notes.
10729 * Added 'zenburn' highlight style from highlighting-kate.
10731 * Added Slideous writer. Slideous is an HTML + javascript slide show
10732 format, similar to Slidy, but works with IE 7. (Jonas Smedegaard)
10734 * LaTeX writer:
10736 + Ensure we don't have extra blank lines at ends of cells.
10737 This can cause LaTeX errors, as they are interpreted as new paragraphs.
10738 + More consistent interblock spacing.
10739 + Require highlighting-kate >= 0.5.1, for proper highlighted inline
10740 code in LaTeX. Closes #527.
10741 + Ensure that a Verbatim at the end of a footnote is followed by
10742 a newline. (Fixes a regression in the previous version.)
10743 + In default template, use black for internal links and TOC.
10744 Added commented-out code to use footnotes for links, as would
10745 be suitable in print output.
10747 * Beamer writer: When `--incremental` is used, lists inside
10748 a block quote should appear all at once. (This makes Beamer
10749 output consistent with the HTML slide show formats.)
10751 * ConTeXt writer:
10753 + Escape `%` as `\letterpercent{}` not `\letterpercent `,
10754 to avoid gobbling spaces after the `%` sign.
10755 + Ensure space after `\stopformula`.
10757 * Markdown writer:
10759 + Use `:` form instead of `~` in definition lists, for better
10760 compatibility with other markdown implementations.
10761 + Don't wrap the term, because it breaks definition lists.
10762 + Use a nonzero space to prevent false recognition
10763 of list marker in ordered lists. Closes #516.
10765 * Org writer: Add space before language name. Closes #523.
10767 * Docx writer: Simplified bullet characters so they work properly
10768 with Word 2007. Closes #520.
10770 * LaTeX reader: Support `\centerline`.
10772 * RST reader: handle figures. Closes #522.
10774 * Textile reader: fix for `<notextile>` and `==`. Closes #517.
10775 (Paul Rivier)
10777pandoc (1.9.3)
10779 * Fixed bug in `fromEntities`. The previous version would turn
10780 `hi & low you know;` into `hi &`.
10782 * HTML reader:
10784 + Don't skip nonbreaking spaces.
10785 Previously a paragraph containing just `&nbsp;` would be rendered
10786 as an empty paragraph. Thanks to Paul Vorbach for pointing out the bug.
10787 + Support `<col>` and `<caption>` in tables. Closes #486.
10789 * Markdown reader:
10791 + Don't recognize references inside delimited code blocks.
10792 + Allow list items to begin with lists.
10794 * Added basic docbook reader (John MacFarlane and Mauro Bieg).
10796 * LaTeX reader:
10798 + Handle `\bgroup`, `\egroup`, `\begingroup`, `\endgroup`.
10799 + Control sequences can't be followed by a letter.
10800 This fixes a bug where `\begingroup` was parsed as `\begin`
10801 followed by `group`.
10802 + Parse 'dimension' arguments to unknown commands. e.g. `\parindent0pt`
10803 + Make `\label` and `\ref` sensitive to `--parse-raw`.
10804 If `--parse-raw` is selected, these will be parsed as raw latex
10805 inlines, rather than bracketed text.
10806 + Don't crash on unknown block commands (like `\vspace{10pt}`)
10807 inside `\author`; just skip them. Closes #505.
10809 * Textile reader:
10811 + Implemented literal escapes with `==` and `<notextile>`. Closes #473.
10812 + Added support for LaTeX blocks and inlines (Paul Rivier).
10813 + Better conformance to RedCloth inline parsing (Paul Rivier).
10814 + Parse '+text+' as emphasized (should be underlined, but this
10815 is better than leaving literal plus characters in the output.
10817 * Docx writer: Fixed multi-paragraph list items. Previously they each
10818 got a list marker. Closes #457.
10820 * LaTeX writer:
10822 + Added `--no-tex-ligatures` option to avoid replacing
10823 quotation marks and dashes with TeX ligatures.
10824 + Use `fixltx2e` package to provide '\textsubscript'.
10825 + Improve spacing around LaTeX block environments:
10826 quote, verbatim, itemize, description, enumerate.
10827 Closes #502.
10828 + Use blue instead of pink for URL links in latex/pdf output.
10830 * ConTeXt writer: Fixed escaping of `%`.
10831 In text, `%` needs to be escaped as `\letterpercent`, not `\%`
10832 Inside URLs, `%` needs to be escaped as `\%`
10833 Thanks to jmarca and adityam for the fix. Closes #492.
10835 * Texinfo writer: Escape special characters in node titles.
10836 This fixes a problem pointed out by Joost Kremers. Pandoc used
10837 to escape an '@' in a chapter title, but not in the corresponding
10838 node title, leading to invalid texinfo.
10840 * Fixed document encoding in texinfo template.
10841 Resolves Debian Bug #667816.
10843 * Markdown writer:
10845 + Don't force delimited code blocks to be flush left.
10846 Fixes bug with delimited code blocks inside lists etc.
10847 + Escape `<` and `$`.
10849 * LaTeX writer: Use `\hyperref[ident]{text}` for internal links.
10850 Previously we used `\href{\#ident}{text}`, which didn't work on
10851 all systems. Thanks to Dirk Laurie.
10853 * RST writer: Don't wrap link references. Closes #487.
10855 * Updated to use latest versions of blaze-html, mtl.
10858pandoc (1.9.2)
10860 * LaTeX reader:
10862 + Made `lstlisting` work as a proper verbatim environment.
10863 + Fixed bug parsing LaTeX tables with one column.
10865 * LaTeX writer:
10867 + Use `{}` around `ctable` caption, so that formatting can be used.
10868 + Don't require eurosym package unless document has a €.
10870 * LaTeX template: Added variables for `geometry`, `romanfont`,
10871 `sansfont`, `mathfont`, `mainfont` so users can more easily
10872 customize fonts.
10874 * PDF writer:
10876 + Run latex engine at least two times, to ensure
10877 that PDFs will have hyperlinked bookmarks.
10878 + Added PDF metadata (title,author) in LaTeX standalone + PDF output.
10880 * Texinfo writer: retain directories in image paths. (Peter Wang)
10882 * RST writer: Better handling of inline formatting, in accord
10883 with docutils' "inline markup recognition rules" (though we don't
10884 implement the unicode rules fully). Now `hi*there*hi` gets
10885 rendered properly as `hi\ *there*\ hi`, and unnecessary
10886 `\ ` are avoided around `:math:`, `:sub:`, `:sup:`.
10888 * RST reader:
10890 + Parse `\ ` as null, not escaped space.
10891 + Allow `` :math:`...` `` even when not followed by blank
10892 or `\`. This does not implement the complex rule docutils follows,
10893 but it should be good enough for most purposes.
10894 + Add support for the rST default-role directive. (Greg Maslov)
10896 * Text.Pandoc.Parsing: Added `stateRstDefaultRole` field to `ParserState`.
10897 (Greg Maslov)
10899 * Markdown reader: Properly handle citations nested in other inline
10900 elements.
10902 * Markdown writer: don't replace empty alt in image with "image".
10904 * DZSlides: Updated template.html and styles in default template.
10905 Removed bizarre CSS for `q` in dzslides template.
10907 * Avoid repeated `id` attribute in section and header in HTML slides.
10909 * README improvements: new instructions on internal links,
10910 removed misleading note on reST math.
10912 * Build system:
10914 + Fixed Windows installer so that dzslides works.
10915 + Removed stripansi.sh.
10916 + Added .travis.yml for Travis continuous integration support..
10917 + Fixed upper bound for zlib (Sergei Trofimovich).
10918 + Fixed upper bound for test-framework.
10919 + Updated haddocks for haddock-2.10 (Sergei Trofimovich).
10921pandoc (1.9.1.2)
10923 * Added `beamer+lhs` as output format.
10925 * Don't escape `<` in `<style>` tags with `--self-contained`.
10926 This fixes a bug which prevented highlighting from working
10927 when using `--self-contained`.
10929 * PDF: run latex engine three times if `--toc` specified.
10930 This fixes page numbers in the table of contents.
10932 * Docx writer: Added TableNormal style to tables.
10934 * LaTeX math environment fixes. `aligned` is now used instead of
10935 the nonexistent `aligned*`. `multline` instead of the nonexistent
10936 `multiline`.
10938 * LaTeX writer: Use `\textasciitilde` for literal `~`.
10940 * HTML writer: Don't escape contents of EQ tags with --gladtex.
10941 This fixes a regression from 1.8.
10943 * Use `<q>` tags for Quoted items for HTML5 output.
10944 The quote style can be changed by modifying the template
10945 or including a css file. A default quote style is included.
10947 * LaTeX reader: Fixed accents (\~{a}, `\c{c}`).
10948 Correctly handle \^{}. Support "minted" as a LaTeX verbatim block.
10950 * Updated LaTeX template for better language support.
10951 Use `polyglossia` instead of `babel` with xetex.
10952 Set `lang` as documentclass option.
10953 `\setmainlanguage` will use the last of a comma-separated
10954 list of languages. Thanks to François Gannaz.
10956 * Fixed default LaTeX template so `\euro` and `€` work. The
10957 `eurosym` package is needed if you are using pdflatex.
10959 * Fixed escaping of period in man writer (thanks to Michael Thompson).
10961 * Fixed list label positions in beamer.
10963 * Set `mainlang` variable in context writer.
10964 This parallels behavior of latex writer. `mainlang` is the last
10965 of a comma-separated list of languages in lang.
10967 * EPUB language metadat: convert e.g. `en_US` from locale to `en-US`.
10969 * Changed `-V` so that you can specify a key without a value.
10970 Such keys get the value `true`.
10972 * Fixed permissions on installed man pages - thanks Magnus Therning.
10974 * Windows installer: require XP or higher. The installer is
10975 now compiled on a Windows 7 machine, which fixes a problem
10976 using citation functions on Windows 7.
10978 * OSX package: Check for 64-bit Intel CPU before installing.
10980pandoc (1.9.1.1)
10982 * Better handling of raw latex environments in markdown. Now
10984 \begin{equation}
10985 a_1
10986 \end{equation}
10988 turns into a raw latex block as expected.
10990 * Improvements to LaTeX reader:
10992 + Skip options after block commands.
10993 + Correctly handle `{\\}` in braced.
10994 + Added a needed 'try'.
10995 + Citations: add `, ` to suffix if it doesn't start with space or
10996 punctuation. Otherwise we get no space between the year and the
10997 suffix in author-date styles.
10999 * Added two needed data files for S5. This fixes a problem with
11000 `pandoc -t s5 --self-contained`. Also removed `slides.min.js`,
11001 which was no longer being used.
11003 * Fixed some minor problems in `reference.docx`:
11004 name on "Date" style, `xCs` instead of `xIs`.
11006 * Fixed a problem creating docx files using a reference docx
11007 modified using Word. The problem seems to be that Word
11008 modifies `_rels/.rels`, changing the Type of the Relationship to
11009 `docProps/core.xml`. Pandoc now changes this back to the correct
11010 value if it has been altered, fixing the problem.
11012 * Fixed html5 template so it works properly with highlighting.
11014pandoc (1.9.1)
11016 * LaTeX reader:
11018 + Fixed regression in 1.9; properly handle escaped $ in latex math.
11019 + Put LaTeX verse environments in blockquotes.
11021 * Markdown reader:
11023 + Limit nesting of strong/emph. This avoids exponential lookahead
11024 in parasitic cases, like `a**a*a**a*a**a*a**a*a**a*a**a*a**a*a**`.
11025 + Improved attributes syntax (inn code blocks/spans):
11026 (1) Attributes can contain line breaks. (2) Values in key-value
11027 attributes can be surrounded by either double or single quotes, or
11028 left unquoted if they contain no spaces.
11030 * Don't wrap headers in markdown or RST writers.
11032 * Added `stateMaxNestingLevel` to `ParserState`.
11033 We set this to 6, so you can still have `Emph` inside `Emph`,
11034 just not indefinitely.
11036 * More efficient implementation of `nowrap` in `Text.Pandoc.Pretty`.
11038 * `Text.Pandoc.PDF`: Only run latex twice if `\tableofcontents`
11039 is present.
11041 * Require highlighting-kate >= 0.5.0.2, texmath >= 0.6.0.2.
11043pandoc (1.9.0.5)
11045 * Changed cabal file so that build-depends for the test program
11046 are not required unless the tests flag is used.
11048 * LaTeX writer: insert `{}` between adjacent hyphens so they don't
11049 form ligatures (dashes) in code spans.
11051pandoc (1.9.0.4)
11053 * Raised version bound on test-framework to avoid problems
11054 compiling tests on GHC 7.4.1.
11056 * LaTeX reader: Use raw LaTeX as fallback inline text for Cites,
11057 so citations don't just disappear unless you process with
11058 citeproc. Ignore `\bibliographystyle`, `\nocite`.
11060 * Simplified tex2pdf; it will always run latex twice to
11061 resolve table of contents and hyperrefs.
11063pandoc (1.9.0.3)
11065 * Require Cabal >= 1.10.
11066 * Tweaked cabal file to meet Cabal 1.10 requirements.
11068pandoc (1.9.0.2)
11070 * Allow build with json 0.4 or 0.5. Otherwise we can't build with
11071 ghc 6.12.
11073pandoc (1.9)
11075 [new features]
11077 * Added a Microsoft Word `docx` writer. The writer includes support
11078 for highlighted code and for math (which is converted from TeX to OMML,
11079 Office's native math markup language, using texmath's new OMML module).
11080 A new option `--reference-docx` allows the user to customize the
11081 styles.
11083 * Added an `asciidoc` writer (<http://www.methods.co.nz/asciidoc/>).
11085 * Better support for slide shows:
11087 + Added a `dzslides` writer. DZSlides is a lightweight HTML5/javascript
11088 slide show format due to Paul Rouget (<http://paulrouget.com/dzslides/>).
11090 + Added a LaTeX `beamer` writer. Beamer is a LaTeX package for creating
11091 slide presentations.
11093 + New, flexible rules for dividing documents into sections and slides
11094 (see the "Structuring the slide show" in the User's Guide). These
11095 are backward-compatible with the old rules, but they allow slide
11096 shows to be organized into sections and subsections containing
11097 multiple slides.
11099 + A new `--slide-level` option allows users to override defaults
11100 and select a slide level below the first header level with content.
11102 * A new `--self-contained` option produces HTML output that does not
11103 depend on an internet connection or the presence of any external
11104 files. Linked images, CSS, and javascript is downloaded (or fetched
11105 locally) and encoded in `data:` URIs. This is useful for making portable
11106 `HTML slide shows. The --offline` option has been deprecated and is now
11107 `treated as a synonym or --self-contained`.
11109 * Support for PDF output:
11111 + Removed the old `markdown2pdf`.
11112 + `pandoc` can now create PDFs (assuming you have latex and a set of
11113 appropriate packages installed): just specify an output file with the
11114 `.pdf` extension.
11115 + A new option `--latex-engine` allows you to specify `pdflatex`,
11116 `xelatex`, or `lualatex` as the processor.
11118 * Highlighting changes:
11120 + Syntax highlighting is now a standard feature; the `highlighting`
11121 flag is no longer needed when compiling.
11122 + A new `--no-highlight` option allows highlighting to be disabled.
11123 + Highlighting now works in `docx`, `latex`, and `epub`, as well as
11124 `html`, `html5`, `dzslides`, `s5`, and `slidy`.
11125 + A new `--highlight-style` option selects between various highlighting
11126 color themes.
11128 * Internal links to sections now work in ConTeXt and LaTeX as well as HTML.
11130 * LaTeX `\include` and `\usepackage` commands are now processed,
11131 provided the files are in the working directory.
11133 * EPUB improvements:
11135 + Internal and external links now work in EPUB.
11136 + Raw HTML is allowed.
11137 + New `--epub-embed-font` option.
11138 + Customizable templates for EPUB pages offer more control over
11139 formatting: `epub-page.html`, `epub-coverimage.html`,
11140 `epub-titlepage.html`.
11142 * `--mathml` now works with DocBook.
11144 * Added support for math in RST reader and writer. Inline math uses the
11145 `` :math:`...` `` construct. Display math uses
11147 .. math:: ...
11149 or if the math is multiline,
11151 .. math::
11153 ...
11155 These constructions are now supported now by `rst2latex.py`.
11157 * GitHub syntax for fenced code blocks is supported in pandoc's
11158 markdown. You can now write
11160 ```ruby
11161 x = 2
11162 ```
11164 instead of
11166 ~~~ {.ruby}
11167 x = 2
11168 ~~~~
11170 * Easier scripting: a new `toJsonFilter` function makes it easier to
11171 write Haskell scripts to manipulate the Pandoc AST.
11173 [behavior changes]
11175 * Fixed parsing of consecutive lists in markdown.
11176 Pandoc previously behaved like Markdown.pl for consecutive
11177 lists of different styles. Thus, the following would be parsed
11178 as a single ordered list, rather than an ordered list followed
11179 by an unordered list:
11181 1. one
11182 2. two
11184 - one
11185 - two
11187 This change makes pandoc behave more sensibly, parsing this as
11188 two lists. Any change in list type (ordered/unordered) or in
11189 list number style will trigger a new list. Thus, the following
11190 will also be parsed as two lists:
11192 1. one
11193 2. two
11195 a. one
11196 b. two
11198 Since we regard this as a bug in Markdown.pl, and not something
11199 anyone would ever rely on, we do not preserve the old behavior
11200 even when `--strict` is selected.
11202 * Dashes work differently with `--smart`: `---` is always em-dash,
11203 and `--` is always en-dash. Pandoc no longer tries to guess when
11204 `-` should be en-dash. *Note:* This may change how existing documents
11205 look when processed with pandoc. A new option, `--old-dashes`,
11206 is provided for legacy documents.
11208 * The markdown writer now uses setext headers for levels 1-2.
11209 The old behavior (ATX headers for all levels) can be restored
11210 using the new `--atx-headers` option.
11212 * Links are now allowed in markdown image captions. They are also
11213 allowed in links, but will appear there as regular text. So,
11215 [link with [link](/url)](/url)
11217 will turn into
11219 <p><a href="/url">link with link</a></p>
11221 * Improved handling of citations using `citeproc-hs-0.3.4`.
11222 Added `--citation-abbreviations` option.
11224 * Citation keys can no longer end with a punctuation character.
11225 This means that `@item1.` will be parsed as a citation with key
11226 'item1', followed by a period, instead of a citation with key
11227 'item1.', as was the case previously.
11229 * In HTML output, citations are now put in a span with class `citation`.
11231 * The markdown reader now recognizes DocBook block and inline tags.
11232 It was always possible to include raw DocBook tags in a markdown
11233 document, but now pandoc will be able to distinguish block from
11234 inline tags and behave accordingly. Thus, for example,
11236 <sidebar>
11237 hello
11238 </sidebar>
11240 will not be wrapped in `<para>` tags.
11242 * The LaTeX parser has been completely rewritten; it is now much more
11243 accurate, robust, and extensible. However, there are two important
11244 changes in how it treats unknown LaTeX. (1) Previously, unknown
11245 environments became BlockQuote elements; now, they are treated
11246 as "transparent", so `\begin{unknown}xyz\end{unknown}` is the
11247 same as `xyz`. (2) Previously, arguments of unknown commands
11248 were passed through with their braces; now the braces are stripped
11249 off.
11251 * `--smart` is no longer selected automatically with `man` output.
11253 * The deprecated `--xetex` option has been removed.
11255 * The `--html5`/`-5` option has been deprecated. Use `-t html5`
11256 instead. `html5` and `html5+lhs` are now separate output formats.
11258 * Single quotes are no longer escaped in HTML output. They do not
11259 need to be escaped outside of attributes.
11261 * Pandoc will no longer transform leading newlines in code
11262 blocks to `<br/>` tags.
11264 * The ODT writer now sizes images appropriately, using the image
11265 size and DPI information embedded in the image.
11267 * `--standalone` is once again implicitly for a non-text output format
11268 (ODT, EPUB). You can again do `pandoc test.txt -o test.odt`
11269 and get a standalone ODT file.
11271 * The Docbook writer now uses `<sect1>`, `<sect2>`, etc. instead of
11272 `<section>`.
11274 * The HTML writer now uses `<del>` for strikeout.
11276 * In HTML output with `--section-divs`, the classes `section` and
11277 `level[1,2,..6]` are put on the `div` tags so they can be styled.
11278 In HTML 5 output with `--section-divs`, the classes
11279 `level[1,2,...6]` are put on `section` tags.
11281 * EPUB writer changes:
11283 + The `lang` variable now sets the language
11284 in the metadata (if it is not set, we default to the locale).
11285 + EPUB: UTF-8 is used rather than decimal entities.
11287 * Added `titleslide` class to title slide in S5 template.
11289 * In HTML, EPUB, and docx metadata, the date is normalized into
11290 YYYY-MM-DD format if possible. (This is required for validation.)
11292 * Attributes in highlighted code blocks are now preserved in HTML.
11293 The container element will have the classes, id, and key-value attributes
11294 you specified in the delimited code block. Previously these were stripped
11295 off.
11297 * The reference backlink in the HTML writer no longer has a special
11298 `footnoteBacklink` class.
11300 * The HTML template has been split into `html` and `html5` templates.
11302 * Author and date are treated more consistently in HTML templates.
11303 Authors are now `<h2>`, date `<h3>`.
11305 * URLs are hyphenated in the ConTeXt writer (B. Scott Michel).
11307 * In `Text.Pandoc.Builder`, `+++` has been replaced by `<>`.
11309 [bug fixes]
11311 * Better support for combining characters and East Asian wide characters
11312 in markdown and reST.
11314 * Better handling of single quotes with `--smart`.
11315 Previously `D'oh l'*aide*` would be parsed with left and right single
11316 quotes instead of apostrophes. This kind of error is now fixed.
11318 * Highlighting: Use `reads` instead of `read` for better error handling.
11319 Fixes crash on `startNum="abc"`.
11321 * Added blank comment after directives in rst template.
11323 * Unescape entities in citation `refId`. The `refId`s coming
11324 from citeproc contain XML numeric entities, and these don't match with the
11325 citation keys parsed by pandoc. Solution is to unescape them.
11327 * HTML reader: Fixed bug parsing tables with both thead and tbody.
11329 * Markdown reader:
11331 + Better handling of escapes in link URLs and titles.
11332 + Fixed backslash escapes in reference links.
11333 + Fixed bug in table/hrule parsing, by checking that the top
11334 line of a table is not followed by a blank line. This bug caused
11335 slowdowns on some files with hrules and tables, as pandoc tried to
11336 interpret the hrules as the tops of multiline tables.
11337 + Fixed bug in code block attribute parser. Previously the ID attribute
11338 got lost if it didn't come first. Now attributes can come in any order.
11340 * RST reader: allow footnotes followed by newline without space characters.
11342 * LaTeX reader:
11344 + Ignore empty groups {}, { }.
11345 + LaTeX reader: Handle \@.
11346 + LaTeX reader: Don't crash on commands like `\itemsep`.
11347 + LaTeX reader: Better handling of letter environments.
11349 * RST writer: Fixed bug involving empty table cells. isSimple was being
11350 calculated in a way that assumed there were no non-empty cells.
11352 * ConTeXt writer:
11354 + Made `--toc` work even without `--number-sections`.
11355 + Escape # in link URLs.
11356 + Use buffering for footnotes containing code blocks.
11357 + Changed 'descr' to 'description', fixed alignment.
11359 * LaTeX writer:
11361 + Escape euro character.
11362 + Don't escape ~ inside href{...}.
11363 + Escape # in href URLs.
11364 + Improved detection of book classes. We now check the
11365 `documentclass` variable, and if that is not set, we look through
11366 the template itself. Also, we have added the KOMA classes scrreprt
11367 and scrbook. You can now make a book using
11368 `pandoc -V documentclass:book mybook.txt -o mybook.pdf`
11369 + LHS files now set the "listings" variable, so that the definition
11370 of the `code` environment will be included in the template.
11371 + Links are colored blue by default (this can be changed by
11372 modifying `hyperref` settings in the template).
11373 + Added `lang` variable to LaTeX template.
11375 * HTML writer:
11377 + Fixed bug in HTML template with html5 and mathml.
11378 + Don't use self-closing img, br, hr tags for HTML5.
11379 + Use `<section>` for footnotes if HTML5.
11380 + Update HTML templates to use Content-Style-Type meta tag.
11381 + Use separate variables for meta-date, meta-author.
11382 This makes footnotes work in author and date fields.
11383 + Use 'vertical-align:middle' in WebTeX math for better alignment.
11385 * S5/slidy writer: Make footnotes appear on separate slide at end.
11387 * MIME: Added 'layout-cache' to getMimeType. This ensures that the
11388 META-INF/manifest.xml for ODT files will have everything it needs, so
11389 that ODT files modified by LibreOffice can be used as `--reference-odt`.
11391 * `Text.Pandoc.Templates`: Return empty string for json template.
11393 * `Text.Pandoc.Biblio`:
11395 + Expand citations recursively inside nested inlines.
11396 + Treat `\160` as space when parsing locator and suffix.
11397 This fixes a bug with "p. 33" when `--smart` is used. Previously
11398 the whole "p. 33" would be included in the suffix, with no locator.
11399 + Put whole author-in-text citation in a Cite. Previously just the
11400 date and other info went in the Cite.
11401 + Don't add comma+space to prefix if it ends in punctuation.
11403 * Updated chicago-author-date.csl. The old version did not work
11404 properly for edited volumes with no author.
11406 * EPUB writer:
11408 + Add date to EPUB titlepage and metadata.
11409 + Added TOC identifier in EPUB page template.
11410 + Don't generate superfluous file `cover-image.jpg`.
11412 [under the hood improvements]
11414 * Modified `make_osx_package.sh` to use cabal-dev.
11415 Items are no longer installed as root.
11416 Man pages are zipped and given proper permissions.
11418 * Modified windows installer generator to use cabal-dev.
11420 * Setup: Making man pages now works with cabal-dev (at least on OSX). In
11421 Setup.hs we now invoke 'runghc' in a way that points it to the correct
11422 package databases, instead of always falling back to the default user
11423 package db.
11425 * Updated to work with GHC 7.4.1.
11427 * Removed dependency on old-time.
11429 * Removed dependency on dlist.
11431 * New slidy directory for "self-contained."
11433 * TeXMath writer: Use unicode thin spaces for thin spaces.
11435 * Markdown citations: don't strip off initial space in locator.
11437 [API changes]
11439 * Removed `Apostrophe`, `EmDash`, `EnDash`, and `Ellipses`
11440 from the native `Inline` type in pandoc-types. Now we use `Str`
11441 elements with unicode.
11443 * Improvements to `Text.Pandoc.Builder`:
11445 + `Inlines` and `Blocks` are now newtypes (not synonyms for
11446 sequences).
11447 + Instances are defined for `IsString`, `Show`, `Read`, `Monoid`,
11448 and a new `Listable` class, which allows these to be manipulated
11449 to some extent like lists. Monoid append includes automatic
11450 normalization.
11451 + `+++` has been replaced by `<>` (mappend).
11453 * Use blaze-html instead of xhtml for HTML generation.
11454 This changes the type of `writeHtml`.
11456 * `Text.Pandoc.Shared`:
11458 + Added `warn` and `err`.
11459 + Removed `unescapeURI`, modified `escapeURI`.
11460 (See under [behavior changes], above.)
11462 * Changes in URI escaping: Previously the readers escaped URIs by
11463 converting unicode characters to octets and then percent encoding.
11464 Now unicode characters are left as they are, and `escapeURI` only
11465 percent-encodes space characters. This gives more readable
11466 URIs, and works well with modern user agents. URIs are no longer unescaped
11467 at all on conversion to `markdown`, `asciidoc`, `rst`, `org`.
11469 * New module `Text.Pandoc.SelfContained`.
11471 * New module `Text.Pandoc.Docx`.
11473 * New module `Text.Pandoc.PDF`.
11475 * Added `writerBeamer` to `WriterOptions`.
11477 * Added `normalizeDate` to `Text.Pandoc.Shared`.
11479 * Added `splitStringWithIndices` in `Text.Pandoc.Shared`.
11480 This is like `splitWithIndices`, but it is sensitive to distinctions
11481 between wide, combining, and regular characters.
11483 * `Text.Pandoc.Pretty`:
11485 + Added `chomp` combinator.
11486 + Added `beforeNonBreak` combinator. This allows you to include
11487 something conditionally on it being before a nonblank.
11488 Used for RST inline math.
11489 + Added `charWidth` function. All characters marked W or F in the unicode
11490 spec EastAsianWidth.txt get width 2.
11491 + Added `realLength`, based on `charWidth`. `realLength` is now
11492 used in calculating offsets.
11494 * New module `Text.Pandoc.Slides`, for common functions for breaking
11495 a document into slides.
11497 * Removed `Text.Pandoc.S5`, which is no longer needed.
11499 * Removed `Text.Pandoc.CharacterReferences`. Moved
11500 `characterReference` to `Text.Pandoc.Parsing`.
11501 `decodeCharacterReferences` is replaced by `fromEntities`
11502 in `Text.Pandoc.XML`.
11504 * Added `Text.Pandoc.ImageSize`. This is intened for use
11505 in `docx` and `odt` writers, so the size and dpi of images
11506 can be calculated.
11508 * Removed `writerAscii` in `WriterOptions`.
11510 * Added `writerHighlight` to `WriterOptions`.
11512 * Added `DZSlides` to `HTMLSlideVariant`.
11514 * `writeEPUB` has a new argument for font files to embed.
11516 * Added `stateLastStrPos` to `ParserState`. This lets us keep track
11517 of whether we're parsing the position immediately after a regular
11518 (non-space, non-symbol) string, which is useful for distinguishing
11519 apostrophes from single quote starts.
11521 * `Text.Pandoc.Parsing`:
11523 + `escaped` now returns a `Char`.
11524 + Removed `charsInBalanced'`, added a character parser as
11525 a parameter of `charsInBalanced`. This is needed for
11526 proper handling of escapes, etc.
11527 + Added `withRaw`.
11529 * Added `toEntities` to `Text.Pandoc.XML`.
11531 * `Text.Pandoc.Readers.LaTeX`:
11533 + Export `handleIncludes`.
11534 + Export `rawLaTeXBlock` instead of `rawLaTeXEnvironment'`.
11536 * Added `ToJsonFilter` class and `toJsonFilter` function to
11537 `Text.Pandoc`, deprecating the old `jsonFilter` function.
11539 * `Text.Pandoc.Highlighting`:
11541 + Removed `highlightHtml`, `defaultHighlightingCss`.
11542 + Export `formatLaTeXInline`, `formatLaTeXBlock`, and `highlight`, plus
11543 key functions from highlighting-kate.
11544 + Changed types of highlighting function. `highlight` returns a
11545 `Maybe`, not an `Either`.
11547pandoc (1.8.2.1)
11549 * Relaxed cabal consntraints for test-framework (S. Trofimovich).
11551 * Relaxed cabal constraints for pandoc-types.
11553 * Adjusted Arbitrary instance to help avoid timeouts in tests.
11555 * Added `Tests.Writers.Markdown` to cabal file.
11557pandoc (1.8.2)
11559 * Added script to produce OS X package.
11561 * Made `templates` directory a git submodule. This should make it
11562 easier for people to revise their custom templates when the default
11563 templates change.
11565 * Changed template naming scheme: `FORMAT.template` -> `default.FORMAT`.
11566 **Note:** If you have existing templates in `~/.pandoc/templates`, you
11567 must rename them to conform to the new scheme!
11569 * Fixed smart quotes bug, now handling `'...hi'` properly.
11571 * RST reader:
11573 + Partial support for labeled footnotes.
11574 + Improved accuracy of `simpleReferenceName` parser.
11576 * HTML reader:
11578 + Substitute correct unicode characters for
11579 characters in the 128..159 range, which are often found even in
11580 HTML that purports to be UTF-8.
11582 * LaTeX reader: Handle `\subtitle` command (a subtitle is added
11583 to the title, after a colon and linebreak). Closes #280.
11585 * Leaner `reference.odt`.
11587 * Added unexported module `Text.Pandoc.MIME` for use in
11588 the ODT writer.
11590 * ODT writer: Construct `manifest.xml` based on archive contents.
11591 This fixes a bug in ODTs containing images. Recent versions of
11592 LibreOffice would reject these as corrupt, because `manifest.xml`
11593 did not contain a reference to the image files.
11595 * LaTeX writer:
11597 + Make verbatim environments flush to avoid spurious
11598 blank lines. Closes #277.
11599 + Use `\texttt` and escapes insntead of `\verb!...!`, which
11600 is too fragile (doesn't work in command arguments).
11601 + Use `\enquote{}` for quotes if the template includes
11602 the `csquotes` package. This provides better support for
11603 local quoting styles. (Thanks to Andreas Wagner for the idea.)
11605 * ConTeXt writer: Make `\starttyping`/`\stoptyping` flush with
11606 margin, preventing spurious blank lines.
11608 * Slidy writer:
11610 + Use non-minimized version of `slidy.css` with `--offline`
11611 option, so users can more easily edit it.
11612 + Also fixed a bug in the CSS that prevented proper centering
11613 of title (now reported and fixed upstream).
11615 * S5 writer:
11617 + Replaced `s5/default/slides.js.{comment,packed}` with
11618 new compressed `s5/default/slides.min.js`.
11619 + Use `data:` protocol to embed S5 CSS in `<link>` tags,
11620 when `--offline` is specified. Using inline CSS didn't
11621 work with Chrome or Safari. This fixes offline
11622 S5 on those browsers.
11624 * HTML writer: Removed English title on footnote backlinks.
11625 This is incongrous in non-English documents.
11627 * Docbook writer:
11629 + Use CALS tables. (Some older docbook software does not work
11630 well with XHTML tables.) Closes #77.
11631 + Use `programlisting` tags (instead of `screen`) for code blocks.
11633 * `markdown2pdf`:
11635 + Calls latex with `-halt-on-error -interaction nonstopmode` instead
11636 of `-interaction=batchmode`, which essentially just ignored errors,
11637 leading to bad results. Better to know when something is wrong.
11638 + Fixed issues with non-UTF-8 output of `pdflatex`.
11639 + Better error reporting.
11641 * `--mathjax` now takes an optional URL argument. If it is not
11642 provided, pandoc links directly to the (secure) mathjax CDN,
11643 as now recommended (thanks to dsanson).
11645 * Deprecated `--xetex` option in `pandoc`. It is no longer needed,
11646 since the LaTeX writer now produces a file that can be processed by
11647 `latex`, `pdflatex`, `lualatex`, or `xelatex`.
11649 * Introduced `--luatex` option to `markdown2pdf`. This causes `lualatex`
11650 to be used to create the PDF.
11652 * If a template specified with `--template` is not found, look for it
11653 in `datadir`. Also, if no extension is provided, supply one based
11654 on the writer. So now you can put your `special.latex` template in
11655 `~/.pandoc/templates`, and use it from any directory via
11656 `pandoc -t latex --template special`.
11658 * Default template improvements:
11660 + HTML: Display author and date after title.
11661 + HTML: Made table of contents more customizable. The container
11662 for the TOC is now in the template, so users can insert a header
11663 or other styling. (Thanks to Bruce D'Arcus for the suggestion.)
11664 + HTML, Slidy, S5: Enclose scripts in CDATA tags.
11665 + Slidy, S5: Added `s5-url` and `slidy-url` variables, instead of
11666 hard-coding. If you want to put your slidy files in the slidy
11667 subdirectory, for example, you can do
11668 `pandoc -t slidy -V slidy-url=slidy -s`.
11669 + LaTeX: Use `\and` to separate authors in LaTeX documents (reader
11670 & writer). Closes #279.
11671 + LaTeX: Use different `hyperref` options for `xetex`, fixing
11672 problems with unicode bookmarks (thanks to CircleCode).
11673 + LaTeX: Removed `ucs` package, use `utf8` rather than `utf8x`
11674 with `inputenc`. This covers fewer characters but is more
11675 robust with other packages, and `ucs` is unmaintained. Users
11676 who need better unicode support should use xelatex or lualatex.
11678pandoc (1.8.1.2)
11680 * Added `--epub-cover-image` option.
11682 * Documented `--biblatex` and `--natbib` options.
11684 * Allow `--section-divs` with slidy output. Resolves Issue #296.
11686 * Disallow notes within notes in reST and markdown.
11687 These previously caused infinite looping and stack overflows.
11688 For example:
11690 [^1]
11692 [^1]: See [^1]
11694 Note references are allowed in reST notes, so this isn't a full
11695 implementation of reST. That can come later. For now we need to
11696 prevent the stack overflows. Partially resolves Issue #297.
11698 * EPUB writer: Allow non-plain math methods.
11700 * Forbid ()s in citation item keys. Resolves Issue #304: problems with
11701 `(@item1; @item2)` because the final paren was being parsed as part of
11702 the item key.
11704 * Changed URI parser so it doesn't include trailing punctuation.
11705 So, in RST, `http://google.com.` should be parsed as a link followed by a
11706 period. The parser is smart enough to recognize balanced parentheses, as
11707 often occur in wikipedia links: `http://foo.bar/baz_(bam)`.
11709 * Markdown+lhs reader: Require space after inverse bird tracks, so that
11710 HTML tags can be used freely at the left margin of a markdown+lhs document.
11711 Thanks to Conal Elliot for the suggestion.
11713 * Markdown reader:
11715 + Improved emph/strong parsing; fixes bug found by Perry Wagle.
11716 + Fixed bug in footnote order (reported by CircleCode).
11718 * RST reader:
11719 + Fixed bug in in field lists with multi-line items at the
11720 end of the list.
11721 + Added parentheses to RST `specialChars`, so
11722 `(http://google.com)` will be parsed as a link in parens.
11723 Resolves Issue #291.
11724 + Allow `|` followed by newline in RST line block.
11726 * LaTeX reader:
11727 + Support `\dots`.
11728 + Gobble option & space after linebreak `\\[10pt]`.
11730 * Textile reader:
11731 + Make it possible to have colons after links. (qerub)
11732 + Make it possible to have colons after links. (Christoffer Sawicki)
11734 * HTML reader:
11735 + Skip spaces after `<b>`, `<emph>`, etc.
11736 + Handle tbody, thead in simple tables. Closes #274.
11737 + Implicit `Para`s instead of `Plains` in some contexts.
11739 * OpenDocument writer: Use special `First paragraph` style for
11740 first paragraph after most non-paragraph blocks. This allows users to
11741 specify e.g. that only paragraphs after the first paragraph of a block are
11742 to be indented. Thanks to Andrea Rossato for the patch. Closes #20.
11744 * LaTeX writer: use `deVerb` on table and picture captions.
11745 Otherwise LaTeX complains about `\verb` inside command argument.
11746 Thanks to bbanier for reporting the bug.
11748 * Markdown writer: Insert HTML comment btw list and indented code block.
11749 This prevents the code block from being interpreted as part of the list.
11751 * EPUB writer: Add a meta element specify the cover.
11752 Some EPUB e-readers, such as the Nook, require a meta element inside the
11753 OPF metadata block to ensure the cover image is properly displayed.
11754 (Kelsey Hightower)
11756 * HTML writer: Use embed tag for images with non-image extensions.
11757 (e.g. PDFs). Closes #264.
11759 * LaTeX writer: Improved tables.
11761 + More space between lines, top-align cells.
11762 + Use ctable package, which allows footnotes and
11763 provides additional options.
11764 + Made cell alignments work in multiline tables.
11765 + Closes #271, #272.
11767 * Un-URI-escape image filenames in LaTeX, ConTeXt, RTF, Texinfo.
11768 Also do this when copying image files into EPUBs and ODTs.
11769 Closes #263.
11771 * Changed to github issue tracker.
11773 * Added failing emph/strong markdown test case due to Perry Wagle.
11775 * Slidy improvements:
11776 + Updated to use Slidy2.
11777 + Fixed bug, unclosed div tag.
11778 + Added `duration` variable in template.
11779 Setting this activates the timer.
11780 + Use 'titlepage' instead of 'cover' for title div.
11782pandoc (1.8.1.1)
11784 * `markdown2pdf`: Removed some debugging lines accidentally included
11785 in the 1.8.1 release. With those lines, the temp directory is created
11786 in the working directory, and it is not deleted. This fix restores
11787 the original behavior.
11789pandoc (1.8.1)
11791 * Added `--ascii` option. Currently supported only in HTML writer,
11792 which it causes to use numerical entities instead of UTF-8.
11794 * EPUB writer: `--toc` now works to provide a table of contents
11795 at the beginning of each chapter.
11797 * LaTeX writer: Change figure defaults to `htbp`.
11798 This prevents "too many unprocessed floats." Resolves
11799 Issue #285.
11801 * `Text.Pandoc.UTF8`: Encode filenames even when using recent
11802 base.
11804 * `markdown2pdf`: Fixed filename encoding issues. With help from Paulo
11805 Tanimoto. Resolves Issue #286.
11807 * HTML writer: Put line breaks in section divs.
11809 * `Text.Pandoc.Shared`: Make `writerSectionDivs` default to False.
11811pandoc (1.8.0.3)
11813 * Fixed Source-repository stanza in cabal file.
11815pandoc (1.8.0.2)
11817 * HTML writer:
11819 + Stringify alt text instead of converting to HTML.
11820 + Break lines after block elements, not inside tags.
11821 HTML output now closely resembles that of tidy. Resolves Issue #134.
11823 * Markdown reader: Fixed bug in footnote block parser (pointed out
11824 by Jesse Rosenthal). The problem arose when the blank line
11825 at the end of a footnote block contained indenting spaces.
11827 * Shared: Improved 'normalize' function so it normalizes Spaces too.
11828 In normal form, Space elements only occur to separate two non-Space
11829 elements. So, we never have [Space], or [, ..., Space].
11831 * Tests:
11833 + Improved Arbitrary instance.
11834 + Added timeout for test instances.
11836 * README:
11838 + Added section on four-space rule for lists. Resolves Issue #283.
11839 + Clarified optional arguments on math options.
11841 * markdown2pdf: Fixed bug with output file extensions.
11842 Previously `markdown2pdf test.txt -o test.en.pdf` would produce
11843 `test.pdf`, not `test.en.pdf`. Thanks to Paolo Tanimoto for the fix.
11845pandoc (1.8.0.1)
11847 * Revised Interact.hs so that it works with the CPP macros
11848 in the UTF8 module.
11850 * Revised Setup.hs so that we don't call MakeManPage.hs unless
11851 the man pages are out of date.
11853pandoc (1.8)
11855 [new features]
11857 * Support for citations using Andrea Rossato's `citeproc-hs` 0.3.
11858 You can now write, for example,
11860 Water is wet [see @doe99, pp. 33-35; also @smith04, ch. 1].
11862 and, when you process your document using `pandoc`, specifying
11863 a citation style using `--csl` and a bibliography using `--bibliography`,
11864 the citation will be replaced by an appropriately formatted
11865 citation, and a list of works cited will be added to the end
11866 of the document.
11868 This means that you can switch effortlessly between different citation
11869 and bibliography styles, including footnote, numerical, and author-date
11870 formats. The bibliography can be in any of the following formats: MODS,
11871 BibTeX, BibLaTeX, RIS, EndNote, EndNote XML, ISI, MEDLINE, Copac, or JSON.
11872 See the README for further details.
11874 Citations are supported in the markdown reader, using a special
11875 syntax, and in the LaTeX reader, using natbib or biblatex syntax.
11876 (Thanks to Nathan Gass for the natbib and biblatex support.)
11878 * New `textile` reader and writer. Thanks to Paul Rivier for contributing
11879 the `textile` reader, an almost complete implementation of the textile
11880 syntax used by the ruby [RedCloth library](http://redcloth.org/textile).
11881 Resolves Issue #51.
11883 * New `org` writer, for Emacs Org-mode, contributed by Puneeth Chaganti.
11885 * New `json` reader and writer, for reading and writing a JSON
11886 representation of the native Pandoc AST. These are much faster
11887 than the `native` reader and writer, and should be used for
11888 serializing Pandoc to text. To convert between the JSON representation
11889 and native Pandoc, use `encodeJSON` and `decodeJSON` from
11890 `Text.JSON.Generic`.
11892 * A new `jsonFilter` function in `Text.Pandoc` makes it easy
11893 to write scripts that transform a JSON-encoded pandoc document.
11894 For example:
11896 -- removelinks.hs - removes links from document
11897 import Text.Pandoc
11898 main = interact $ jsonFilter $ bottomUp removeLink
11899 where removeLink (Link xs _) = Emph xs
11900 removeLink x = x
11902 To use this to remove links while translating markdown to LaTeX:
11904 pandoc -t json | runghc removelinks.hs | pandoc -f json -t latex
11906 * Attributes are now allowed in inline `Code` elements, for example:
11908 In this code, `ulist ! [theclass "special"] << elts`{.haskell} is...
11910 The attribute syntax is the same as for delimited code blocks.
11911 `Code` inline has an extra argument place for attributes, just like
11912 `CodeBlock`. Inline code will be highlighted in HTML output, if pandoc
11913 is compiled with highlighting support. Resolves Issue #119.
11915 * New `RawBlock` and `RawInline` elements (replacing `RawHtml`,
11916 `HtmlInline`, and `TeX`) provide lots of flexibility in writing
11917 scripts to transform Pandoc documents. Scripts can now change
11918 how each element is rendered in each output format.
11920 * You can now define LaTeX macros in markdown documents, and pandoc
11921 will apply them to TeX math. For example,
11923 \newcommand{\plus}[2]{#1 + #2}
11924 $\plus{3}{4}$
11926 yields `3+4`. Since the macros are applied in the reader, they
11927 will work in every output format, not just LaTeX.
11929 * LaTeX macros can also be used in LaTeX documents (both in math
11930 and in non-math contexts).
11932 * A new `--mathjax` option has been added for displaying
11933 math in HTML using MathJax. Resolves issue #259.
11935 * Footnotes are now supported in the RST reader. (Note, however,
11936 that unlike docutils, pandoc ignores the numeral or symbol used in
11937 the note; footnotes are put in an auto-numbered ordered list.)
11938 Resolves Issue #258.
11940 * A new `--normalize` option causes pandoc to normalize the AST
11941 before writing the document. This means that, for example,
11942 `*hi**there*` will be rendered as `<em>hithere</em>`
11943 instead of `<em>hi</em><em>there</em>`. This is not the default,
11944 because there is a significant performance penalty.
11946 * A new `--chapters` command-line option causes headers
11947 in DocBook, LaTeX, and ConTeXt to start with "chapter" (level one).
11948 Resolves Issue #265.
11950 * In DocBook output, `<chapter>` is now used for top-level
11951 headers if the template contains `<book>`. Resolves Issue #265.
11953 * A new `--listings` option in `pandoc` and `markdown2pdf` causes
11954 the LaTeX writer to use the listings package for code blocks.
11955 (Thanks to Josef Svennigsson for the pandoc patch, and Etienne
11956 Millon for the markdown2pdf patch.)
11958 * `markdown2pdf` now supports `--data-dir`.
11960 * URLs in autolinks now have class "url" so they can be styled.
11962 * Improved prettyprinting in most formats. Lines will be wrapped
11963 more evenly and duplicate blank lines avoided.
11965 * New `--columns` command-line option sets the column width for
11966 line wrapping and relative width calculations for tables.
11968 * Made `--smart` work in HTML, RST, and Textile readers, as well
11969 as markdown.
11971 * Added `--html5` option for HTML5 output.
11973 * Added support for listings package in LaTeX reader
11974 (Puneeth Chaganti).
11976 * Added support for simple tables in the LaTeX reader.
11978 * Added support for simple tables in the HTML reader.
11980 * Significant performance improvements in many readers and writers.
11982 [API and program changes]
11984 * Moved `Text.Pandoc.Definition` from the `pandoc` package to a new
11985 auxiliary package, `pandoc-types`. This will make it possible for other
11986 programs to supply output in Pandoc format, without depending on the whole
11987 pandoc package.
11989 * Added `Attr` field to `Code`.
11991 * Removed `RawHtml`, `HtmlInline`, and `TeX` elements; added generic
11992 `RawBlock` and `RawInline`.
11994 * Moved generic functions to `Text.Pandoc.Generic`. Deprecated
11995 `processWith`, replacing it with two functions, `bottomUp` and `topDown`.
11996 Removed previously deprecated functions `processPandoc` and `queryPandoc`.
11998 * Added `Text.Pandoc.Builder`, for building `Pandoc` structures.
12000 * `Text.Pandoc` now exports association lists `readers` and `writers`.
12002 * Added `Text.Pandoc.Readers.Native`, which exports `readNative`.
12003 `readNative` can now read full pandoc documents, block lists, blocks,
12004 inline lists, or inlines. It will interpret `Str "hi"`
12005 as if it were `Pandoc (Meta [] [] []) [Plain [Str "hi"]]`.
12006 This should make testing easier.
12008 * Removed deprecated `-C/--custom-header` option.
12009 Use `--template` instead.
12011 * `--biblio-file` has been replaced by `--bibliography`.
12012 `--biblio-format` has been removed; pandoc now guesses the format
12013 from the file extension (see README).
12015 * pandoc will treat an argument as a URI only if it has an
12016 `http(s)` scheme. Previously pandoc would treat some
12017 Windows pathnames beginning with `C:/` as URIs.
12019 * The `--sanitize-html` option and the `stateSanitize` field in
12020 `ParserState` have been removed. Sanitization is better done in the
12021 resulting HTML using `xss-sanitize`, which is based on pandoc's
12022 sanitization, but improved.
12024 * pandoc now adds a newline to the end of its output in fragment
12025 mode (= not `--standalone`).
12027 * Added support for `lang` in `html` tag in the HTML template,
12028 so you can do `pandoc -s -V lang=es`, for example.
12030 * `highlightHtml` in `Text.Pandoc.Highlighting` now takes
12031 a boolean argument that selects between "inline" and
12032 "block" HTML.
12034 * `Text.Pandoc.Writers.RTF` now exports `rtfEmbedImage`.
12035 Images are embedded in RTF output when possible (png, jpeg).
12036 Resolves Issue #275.
12038 * Added `Text.Pandoc.Pretty`. This is better suited for pandoc than the
12039 `pretty` package. Changed all writers that used
12040 `Text.PrettyPrint.HughesPJ` to use `Text.Pandoc.Pretty` instead.
12042 * Rewrote `writeNative` using the new prettyprinting module. It is
12043 now much faster. The output has been made more consistent and compressed.
12044 `writeNative` is also now sensitive to writerStandalone`, and will simply
12045 `print a block list if writerStandalone` is False.
12047 * Removed `Text.Pandoc.Blocks`. `Text.Pandoc.Pretty` allows you to define
12048 blocks and concatenate them, so a separate module is no longer needed.
12050 * `Text.Pandoc.Shared`:
12052 + Added `writerColumns`, `writerChapters`, and `writerHtml5` to
12053 `WriterOptions`.
12054 + Added `normalize`.
12055 + Removed unneeded prettyprinting functions:
12056 `wrapped`, `wrapIfNeeded`, `wrappedTeX`, `wrapTeXIfNeeded`, `hang'`,
12057 `BlockWrapper`, `wrappedBlocksToDoc`.
12058 + Made `splitBy` take a test instead of an element.
12059 + Added `findDataFile`, refactored `readDataFile`.
12060 + Added `stringify`. Rewrote `inlineListToIdentifier` using `stringify`.
12061 + Fixed `inlineListToIdentifier` to treat '\160' as ' '.
12063 * `Text.Pandoc.Readers.HTML`:
12065 + Removed `rawHtmlBlock`, `anyHtmlBlockTag`, `anyHtmlInlineTag`,
12066 `anyHtmlTag`, `anyHtmlEndTag`, `htmlEndTag`, `extractTagType`,
12067 `htmlBlockElement`, `htmlComment`
12068 + Added `htmlTag`, `htmlInBalanced`, `isInlineTag`, `isBlockTag`,
12069 `isTextTag`
12071 * Moved `smartPunctuation` from `Text.Pandoc.Readers.Markdown`
12072 to `Text.Pandoc.Readers.Parsing`, and parameterized it with
12073 an inline parser.
12075 * Added `nonspaceChar` to `Text.Pandoc.Parsing`.
12077 * Ellipses are no longer allowed to contain spaces.
12078 Previously we allowed '. . .', ' . . . ', etc. This caused
12079 too many complications, and removed author's flexibility in
12080 combining ellipses with spaces and periods.
12082 * Allow linebreaks in URLs (treat as spaces). Also, a string of
12083 consecutive spaces or tabs is now parsed as a single space. If you have
12084 multiple spaces in your URL, use `%20%20`.
12086 * `Text.Pandoc.Parsing`:
12088 + Removed `refsMatch`.
12089 + Hid `Key` constructor.
12090 + Removed custom `Ord` and `Eq` instances for `Key`.
12091 + Added `toKey` and `fromKey` to convert between `Key` and `[Inline]`.
12092 + Generalized type on `readWith`.
12094 * Small change in calculation of relative widths of table columns.
12095 If the size of the header > the specified column width, use
12096 the header size as 100% for purposes of calculating
12097 relative widths of columns.
12099 * Markdown writer now uses some pandoc-specific features when `--strict`
12100 is not specified: `\` newline is used for a hard linebreak instead of
12101 two spaces then a newline. And delimited code blocks are used when
12102 there are attributes.
12104 * HTML writer: improved gladTeX output by setting ENV appropriately
12105 for display or inline math (Jonathan Daugherty).
12107 * LaTeX writer: Use `\paragraph`, `\subparagraph` for level 4,5 headers.
12109 * LaTeX reader:
12111 + `\label{foo}` and `\ref{foo}` now become `{foo}` instead of `(foo)`.
12112 + `\index{}` commands are skipped.
12114 * Added `fontsize` variable to default LaTeX template.
12115 This makes it easy to set the font size using `markdown2pdf`:
12116 `markdown2pdf -V fontsize=12pt input.txt`.
12118 * Fixed problem with strikeout in LaTeX headers when using
12119 hyperref, by adding a command to the default LaTeX template
12120 that disables `\sout` inside pdf strings. Thanks to Joost Kremers
12121 for the fix.
12123 * The `COLUMNS` environment variable no longer has any effect.
12125 [under-the-hood improvements]
12127 * Pandoc now compiles with GHC 7. (This alone leads to a
12128 significant performance improvement, 15-20%.)
12130 * Completely rewrote HTML reader using tagsoup as a lexer. The
12131 new reader is faster and more accurate. Unlike the
12132 old reader, it does not get bogged down on some input
12133 (Issues #277, 255). And it handles namespaces in tags
12134 (Issue #274).
12136 * Replaced `escapeStringAsXML` with a faster version.
12138 * Rewrote `spaceChar` and some other parsers in Text.Pandoc.Parsing
12139 for a significant performance boost.
12141 * Improved performance of all readers by rewriting parsers.
12143 * Simplified Text.Pandoc.CharacterReferences by using
12144 entity lookup functions from TagSoup.
12146 * `Text.Pandoc.UTF8` now uses the unicode-aware IO functions
12147 from `System.IO` if base >= 4.2. This gives support for
12148 windows line endings on windows.
12150 * Remove duplications in documentation by generating the
12151 pandoc man page from README, using `MakeManPage.hs`.
12153 * README now includes a full description of markdown syntax,
12154 including non-pandoc-specific parts. A new `pandoc_markdown`
12155 man page is extracted from this, so you can look up markdown
12156 syntax by doing `man pandoc_markdown`.
12158 * Completely revised test framework (with help from Nathan Gass).
12159 The new test framework is built when the `tests` Cabal flag is set. It
12160 includes the old integration tests, but also some new unit and quickcheck
12161 tests. Test output has been much improved, and you can now specify a glob
12162 pattern after `cabal test` to indicate which tests should be run;
12163 for example `cabal test citations` will run all the citation tests.
12165 * Added a shell script, `stripansi.sh`, for filtering ANSI control
12166 sequences from test output: `cabal test | ./stripansi.sh > test.log`.
12168 * Added `Interact.hs` to make it easier to use ghci while developing.
12169 `Interact.hs` loads `ghci` from the `src` directory, specifying
12170 all the options needed to load pandoc modules (including
12171 specific package dependencies, which it gets by parsing
12172 dist/setup-config).
12174 * Added `Benchmark.hs`, testing all readers + writers using criterion.
12176 * Added `stats.sh`, to make it easier to collect and archive
12177 benchmark and lines-of-code stats.
12179 * Added upper bounds to all cabal dependencies.
12181 * Include man pages in extra-source-files. This allows users to
12182 install pandoc from the tarball without needing to build the man
12183 pages.
12185 [bug fixes]
12187 * Filenames are encoded as UTF8. Resolves Issue #252.
12189 * Handle curly quotes better in `--smart` mode. Previously, curly quotes
12190 were just parsed literally, leading to problems in some output formats.
12191 Now they are parsed as `Quoted` inlines, if `--smart` is specified.
12192 Resolves Issue #270.
12194 * Text.Pandoc.Parsing: Fixed bug in grid table parser.
12195 Spaces at end of line were not being stripped properly,
12196 resulting in unintended LineBreaks.
12198 * Markdown reader:
12200 + Allow HTML comments as inline elements in markdown.
12201 So, `aaa <!-- comment --> bbb` can be a single paragraph.
12202 + Fixed superscripts with links: `^[link](/foo)^` gets
12203 recognized as a superscripted link, not an inline note followed by
12204 garbage.
12205 + Fixed regression, making markdown reference keys case-insensitive again.
12206 Resolves Issue #272.
12207 + Properly handle abbreviations (like `Mr.`) at the end of a line.
12208 + Better handling of intraword underscores, avoiding exponential
12209 slowdowns in some cases. Resolves Issue #182.
12210 + Fixed bug in alignments in tables with blank rows in the header.
12212 * RST reader:
12214 + Field lists now allow spaces in field names, and
12215 block content in field values. (Thanks to Lachlan Musicman
12216 for pointing out the bug.)
12217 + Definition list items are now always `Para` instead of
12218 `Plain`, matching behavior of `rst2xml.py`.
12219 + In image blocks, the description is parsed properly and
12220 used for the alt attribute, not also the title.
12221 + Skip blank lines at beginning of file. Resolves
12222 Debian #611328.
12224 * LaTeX reader:
12226 + Improved parsing of preamble.
12227 Previously you'd get unexpected behavior on a document that
12228 contained `\begin{document}` in, say, a verbatim block.
12229 + Allow spaces between `\begin` or `\end` and `{`.
12230 + Support `\L` and `\l`.
12231 + Skip comments inside paragraphs.
12233 * LaTeX writer:
12235 + Escape strings in `\href{..}`.
12236 + In nonsimple tables, put cells in `\parbox`.
12238 * OpenDocument writer: don't print raw TeX.
12240 * Markdown writer:
12242 + Fixed bug in `Image`. URI was getting unescaped twice!
12243 + Avoid printing extra blank lines at the end if there are
12244 no notes or references.
12246 * LaTeX and ConTeXt: Escape `[` and `]` as `{[}` and `{]}`.
12247 This avoids unwanted interpretation as an optional argument.
12249 * ConTeXt writer: Fixed problem with inline code. Previously
12250 `}` would be rendered `\type{}}`. Now we check the string for '}' and '{'.
12251 If it contains neither, use `\type{}`; otherwise use `\mono{}`
12252 with an escaped version of the string.
12254 * `:` now allowed in HTML tags. Resolves Issue #274.
12256pandoc (1.6)
12258 [ John MacFarlane ]
12260 * New EPUB and HTML Slidy writers. (Issue #122)
12262 - EPUB is a standard ebook format, used in Apple's iBooks for
12263 the iPad and iPhone, Barnes and Noble's nook reader, the Sony
12264 reader, and many other devices.
12265 - Slidy, like S5, is a system for producing HTML+javascript slide
12266 shows.
12268 * All input is assumed to be UTF-8, no matter what the locale and ghc
12269 version, and all output is UTF-8. This reverts to pre-1.5 behavior.
12270 Also, a BOM, if present, is stripped from the input.
12272 * Markdown now supports grid tables, whose cells can contain
12273 arbitrary block elements. (Issue #43)
12275 * Sequentially numbered example lists in markdown with `@` marker.
12277 * Markdown table captions can begin with a bare colon and no longer need
12278 to include the English word "table." Also, a caption can now occur
12279 either before or after the table. (Issue #227)
12281 * New command-line options:
12283 - `--epub-stylesheet` allows you to specify a CSS file that will
12284 be used to style your ebook.
12285 - `--epub-metadata` allows you to specify metadata for the ebook.
12286 - `--offline` causes the generated HTML slideshow to include all
12287 needed scripts and stylesheets.
12288 - `--webtex` causes TeX math to be converted to images using the
12289 Google Charts API (unless a different URL is specified).
12290 - `--section-divs` causes div tags to be added around each section
12291 in an HTML document. (Issue #230, 239)
12293 * Default behavior of S5 writer in standalone mode has changed:
12294 previously, it would include all needed scripts and stylesheets
12295 in the generated HTML; now, only links are included unless
12296 the `--offline` option is used.
12298 * Default behavior of HTML writer has changed. Between 1.2 and 1.5,
12299 pandoc would enclose sections in div tags with identifiers on the
12300 div tags, so that the sections can be manipulated in javascript.
12301 This caused undesirable interactions with raw HTML div tags. So,
12302 starting with 1.6, the default is to put the identifiers directly
12303 on the header tags, and not to include the divs. The `--section-divs`
12304 option selects the 1.2-1.5 behavior.
12306 * API changes:
12308 - `HTMLMathMethod`: Added `WebTeX`, removed `MimeTeX`.
12309 - `WriterOptions`: Added `writerUserDataDir`, `writerSourceDirectory`,
12310 `writerEPUBMetadata` fields. Removed `writerIncludeBefore`,
12311 `writerIncludeAfter`.
12312 - Added `headerShift` to `Text.Pandoc.Shared`.
12313 - Moved parsing code and `ParserState` from `Text.Pandoc.Shared`
12314 to a new module, `Text.Pandoc.Parsing`.
12315 - Added `stateHasChapters` to `ParserState`.
12316 - Added `HTMLSlideVariant`.
12317 - Made `KeyTable` a map instead of an association list.
12318 - Added accessors for `Meta` fields (`docTitle`, `docAuthors`,
12319 `docDate`).
12320 - `Pandoc`, `Meta`, `Inline`, and `Block` have been given `Ord`
12321 instances.
12322 - Reference keys now have a type of their own (`Key`), with its
12323 own `Ord` instance for case-insensitive comparison.
12324 - Added `Text.Pandoc.Writers.EPUB`.
12325 - Added `Text.Pandoc.UUID`.
12326 - Removed `Text.Pandoc.ODT`, added `Text.Pandoc.Writers.ODT`.
12327 Removed `saveOpenDocumentAsODT`, added `writeODT`.
12328 - Added `Text.Pandoc.Writers.Native` and `writeNative`.
12329 Removed `prettyPandoc`.
12330 - Added `Text.Pandoc.UTF8` for portable UTF8 string IO.
12331 - Removed `Text.Pandoc.Writers.S5` and the `writeS5` function.
12332 Moved `s5Includes` to a new module, `Text.Pandoc.S5`.
12333 To write S5, you now use `writeHtml` with `writerSlideVariant`
12334 set to `S5Slides` or `SlidySlides`.
12336 * Template changes. If you use custom templates, please update them,
12337 particularly if you use syntax highlighting with pandoc. The old HTML
12338 templates hardcoded highlighting CSS that will no longer work with
12339 the most recent version of highlighting-kate.
12341 - HTML template: avoid empty meta tag if no date.
12342 - HTML template: Use default highlighting CSS from highlighting-kate
12343 instead of hard-coding the CSS into the template.
12344 - HTML template: insert-before text goes before the title, and
12345 immediately after the <body> tag, as documented. (Issue #241)
12346 - Added slidy and s5 templates.
12347 - Added amssymb to preamble of latex template. (github Issue 1)
12349 * Removed excess newlines at the end of output. Note: because output
12350 will not contain an extra newline, you may need to make adjustments
12351 if you are inserting pandoc's output into a template.
12353 * In S5 and slidy, horizontal rules now cause a new slide, so you
12354 are no longer limited to one slide per section.
12356 * Improved handling of code in man writer. Inline code is now monospace,
12357 not bold, and code blocks now use .nf (no fill) and .IP (indented para).
12359 * HTML reader parses `<tt>` as Code. (Issue #247)
12361 * html+lhs output now contains bird tracks, even when compiled without
12362 highlighting support. (Issue #242)
12364 * Colons are now no longer allowed in autogenerated XML/HTML identifiers,
12365 since they have a special meaning in XML.
12367 * Code improvements in ODT writer. Remote images are now replaced with
12368 their alt text rather than a broken link.
12370 * LaTeX reader improvements:
12372 - Made latex `\section`, `\chapter` parsers more forgiving of
12373 whitespace.
12374 - Parse `\chapter{}` in latex.
12375 - Changed `rawLaTeXInline` to accept `\section`, `\begin`, etc.
12376 - Use new `rawLaTeXInline'` in LaTeX reader, and export `rawLaTeXInline`
12377 for use in markdown reader.
12378 - Fixes bug wherein `\section{foo}` was not recognized as raw TeX
12379 in markdown document.
12381 * LaTeX writer: images are automatically shrunk if they would extend
12382 beyond the page margin.
12384 * Plain, markdown, RST writers now use unicode for smart punctuation.
12386 * Man writer converts math to unicode when possible, as in other writers.
12388 * `markdown2pdf` can now recognize citeproc options.
12390 * Command-line arguments are converted to UTF-8. (Issue #234)
12392 * `Text.Pandoc.TeXMath` has been rewritten to use texmath's parser.
12393 This allows it to handle a wider range of formulas. Also, if a formula
12394 cannot be converted, it is left in raw TeX; formulas are no longer
12395 partially converted.
12397 * Unicode curly quotes are left alone when parsing smart quotes. (Issue
12398 #143)
12400 * Cabal file changes:
12402 - Removed parsec < 3 restriction.
12403 - Added 'threaded' flag for architectures where GHC lacks a threaded
12404 runtime.
12405 - Use 'threaded' only for markdown2pdf; it is not needed for pandoc.
12406 - Require highlighting-kate 0.2.7.
12408 * Use explicit imports from `Data.Generics`. Otherwise we have a
12409 conflict with the 'empty' symbol, introduced in syb >= 0.2. (Issue #237)
12411 * New data files: slidy/slidy.min.js, slidy/slidy.min.css, epub.css.
12413pandoc (1.5.1.1)
12415 [ John MacFarlane ]
12417 * Fixed uniqueIdent in Shared so that header identifiers work as
12418 advertized in the README and are are valid XHTML names.
12420pandoc (1.5.1)
12422 [ John MacFarlane ]
12424 * Fixed treatment of unicode characters in URIs.
12425 + Shared now exports escapeURI and unescapeURI. These handle
12426 UTF8 encoding and decoding as well as URI escaping/unescaping.
12427 + Shared: uri and emailAddress now return a pair of the original
12428 parsed text and the escaped URI (in the latter case, with
12429 the mailto: prefix).
12430 + HTML reader: unsanitaryURI has been modified to allow unicode
12431 high characters in a URI.
12432 + Readers: All link and image URIs are now escaped using
12433 escapeURI.
12434 + Markdown and RST writers: unescapeURI is used so that URIs
12435 in these formats are human-readable.
12437 * Setup.hs: Don't assume that the build directory is "dist".
12438 Instead, get it from localBuildInfo.
12440 * OpenDocument writer: Use a Map for stTextStyleAttr.
12441 This avoids duplicates (and invalid xml). Resolves Issue #222.
12443pandoc (1.5.0.1)
12445 [ John MacFarlane ]
12447 * HTML writer: Fixed error in math writer (with MathML option)
12448 that caused an infinite loop for unparsable MathML.
12450pandoc (1.5)
12452 [ John MacFarlane ]
12454 * Added --mathml option. When this is selected, pandoc will convert
12455 TeX math into MathML.
12456 + Added data/MathMLinHTML.js, which is included when no URL is
12457 provided for --mathml. This allows MathML to be displayed (in
12458 better browsers) as text/html.
12459 + Removed Text.Pandoc.LaTeXMathML. The module was no longer
12460 necessary; it was replaced by two lines in pandoc.hs.
12461 + Replaced LaTeXMathML.js.comment and LaTeXMathML.js.packed with a
12462 single combined file, LaTeXMathML.js.
12464 * Added --data-dir option.
12465 This specifies a user data directory. If not specified, will default
12466 to ~/.pandoc on unix or Application Data\pandoc on Windows.
12467 Files placed in the user data directory will override system default
12468 data files.
12470 * Added Maybe datadir parameter to readDataFile, saveOpenDocumentAsODT,
12471 latexMathMLScript, s5HeaderIncludes, and getDefaultTemplate. If
12472 Nothing, no user directory is searched for an override.
12474 * Added 'plain' output format. This is similar to markdown, but
12475 removes links, pictures, inline formatting, and most anything that
12476 looks even vaguely markupish. The function writePlain is exported by
12477 Text.Pandoc.Writers.Markdown, with which it shares most of its code.
12479 * Allow multi-line titles and authors in meta block.
12480 Titles may span multiple lines, provided continuation lines
12481 begin with a space character. Separate authors may be put on
12482 multiple lines, provided each line after the first begins with
12483 a space character. Each author must fit on one line. Multiple
12484 authors on a single line may still be separated by a semicolon.
12485 Based on a patch by Justin Bogner.
12487 * When given an absolute URI as parameter, pandoc will try to fetch
12488 the content via HTTP. So you can do:
12489 'pandoc -r html -w markdown http://www.fsf.org'
12490 Adds dependency on HTTP.
12492 * Made HTML reader much more forgiving.
12493 + Incorporated idea (from HXT) that an element can be closed
12494 by an open tag for another element.
12495 + Javascript is partially parsed to make sure that a <script>
12496 section is not closed by a </script> in a comment or string.
12497 + More lenient non-quoted attribute values.
12498 Now we accept anything but a space character, quote, or <>.
12499 This helps in parsing e.g. www.google.com!
12500 + Bare & signs are now parsed as a string. This is a common
12501 HTML mistake.
12502 + Skip a bare < in malformed HTML.
12504 * Removed html2markdown and hsmarkdown.
12505 + html2markdown is no longer needed, since you can now pass URI
12506 arguments to pandoc and directly convert web pages. (Note,
12507 however, that pandoc assumes the pages are UTF8. html2markdown
12508 made an attempt to guess the encoding and convert them.)
12509 + hsmarkdown is pointless -- a large executable that could be
12510 replaced by 'pandoc --strict'.
12512 * In most writers, an image in a paragraph by itself is now rendered
12513 as a figure, with the alt text as the caption. (Texinfo, HTML, RST,
12514 MediaWiki, Docbook, LaTeX, ConTeXt, HTML.) Other images are
12515 rendered inline.
12517 * Depend on extensible-exceptions. This allows pandoc to be compiled
12518 on GHC 6.8.
12520 * Added --base-header-level option. For example, --base-header-level=2
12521 will change level 1 headers to level 2, level 2 to level 3, etc.
12522 Closes Debian #563416.
12524 * Incomplete support for RST tables (simple and grid).
12525 Thanks to Eric Kow. Colspans and rowspans not yet supported.
12527 * Added accessors (docTitle, docAuthors, docDate) to Meta type.
12529 * MediaWiki writer: format links with relative URLs as wikilinks.
12530 The new rule: If the link target is an absolute URL, an external
12531 link is created. Otherwise, a wikilink is created.
12533 * Text.Pandoc.Shared: Export uniqueIdent, and don't allow tilde in
12534 identifier. Note: This may break links to sections that involve
12535 tildes.
12537 * Markdown(+lhs) reader: handle "inverse bird tracks."
12538 Inverse bird tracks (<) are used for haskell example code that is not
12539 part of the literate Haskell program. Resolves Issue #211.
12541 * LaTeX reader:
12542 + Recognize '\ ' (interword space).
12543 + Recognize nonbreaking space '~'.
12544 + Ignore \section, \pdfannot, \pdfstringdef. Ignore alt title in
12545 section headers. Don't treat \section as inline LaTeX.
12546 Resolves Issue #202.
12547 + LaTeX reader: allow any special character to be escaped.
12548 Resolves Issue #221.
12549 + LaTeX reader: treat \paragraph and \subparagraph as level 4, 5
12550 headers. Resolves Issue #207.
12552 * Use template variables for include-before/after.
12553 + These options now imply -s; previously they worked also in fragment
12554 mode.
12555 + Users can now adjust position of include-before and include-after
12556 text in the templates.
12557 + Default position of include-before moved back (as it was before 1.4)
12558 before table of contents.
12559 + Resolves Issue #217.
12561 * Don't print an empty table header: (all writers).
12562 Resolves Issue #210.
12564 * HTML, Docbook writer: Use tbody, thead, and cols in tables.
12566 * HTML writer: Don't include TOC div if table of contents is empty.
12568 * Markdown writer: Fixed citations.
12569 Previously the markdown writer printed raw citation codes, e.g.
12570 [geach1970], rather than the expanded citations provided by
12571 citeproc, e.g. (Geach 1970). Now it prints the expanded citations.
12572 This means that the document produced can be processed as a markdown
12573 document without citeproc. Thanks to dsanson for reporting, and
12574 Andrea Rossato for the patch.
12576 * Improved and simplified title block in context template.
12577 Previously it caused an error if there was no title.
12578 This method should also be easier for users to customize.
12580 * Markdown reader:
12581 + Treat p., pp., sec., ch., as abbreviations in smart mode.
12582 + Disallow blank lines in inline code span.
12583 + Allow footnotes to be indented < 4 spaces.
12584 This fixes a regression. A test case has been added.
12585 + Escape spaces in URLs as %20. Previously they were incorrectly
12586 escaped as +, which is appropriate only for the query part of
12587 a URL. Resolves Issue #220.
12588 + Require two spaces after capital letter + period for list item.
12589 Otherwise "E. coli" starts a list. This might change the semantics
12590 of some existing documents, since previously the two-space
12591 requirement was only enforced when the second word started
12592 with a capital letter. But it is consistent with the existing
12593 documentation and follows the principle of least surprise.
12594 Resolves Issue #212.
12596 * LaTeX template: redefine labelwidth when using enumerate package.
12597 Otherwise the list labels (numbers) often extend past the left
12598 margin, which looks bad.
12600 * Mediawiki writer: Don't print a "== Notes ==" header before
12601 references. This is too English-centric. Writers can provide their
12602 own header at the end of the document.
12604 * Promoted mediawiki headers. '= head =' is now level 1, '== head =='
12605 level 2, etc. This seems to be correct; it's only by convention
12606 that wikipedia articles have level 2 headers at most.
12607 Patch due to Eric Kow.
12609 * RunTests.hs: Set LANG to a UTF-8 locale. Use 'pandoc --data-dir=' so
12610 data files don't need to have been installed. This removes the need to
12611 set HOME.
12613 * HTML reader:
12614 + Handle spaces before <html>. Resolves Issue #216.
12615 + Be forgiving in parsing a bare list within a list.
12616 The following is not valid xhtml, but the intent is clear:
12617 <ol>
12618 <li>one</li>
12619 <ol><li>sub</li></ol>
12620 <li>two</li>
12621 </ol>
12622 We'll treat the <ol> as if it's in a <li>. Resolves Issue #215.
12624 * Updated INSTALL instructions. cabal method is now promoted.
12626 * Updated markdown2pdf man page. It no longer says all pandoc options
12627 are accepted.
12629 * README/man pages: Removed advice to pipe through tidy before HTML
12630 reader. This is obsolete, now that we have a forgiving HTML parser.
12632 * LaTeX writer: set numbersections template variable, so
12633 the section numbering options work again.
12635 * Removed obsolete Makefile.
12637 * Website: renamed index.txt.in -> index.txt.
12639 * New batch file to make-windows-installer.
12640 + Removed old Makefile.windows
12641 + Added make-windows-installer.bat
12642 + Modified default installer name in pandoc-setup.iss
12644 * Removed freebsd and macports directories.
12645 They are no longer up to date.
12647 * Setup.hs:
12648 + Made man page building sensitive to build verbosity.
12649 + Improved detection of highlighting support in test hook.
12650 + Install wrapper scripts into cabal bin directory.
12651 + Also simplified installManpages.
12652 + Setup.hs: install manpages to mandir. Code borrowed from darcs.
12654 * Changed default of writerXeTeX to False.
12656 * HTML writer: don't include empty UL if --toc but no sections.
12657 Resolves Issue #199.
12659 * LaTeX writer:
12661 + If book, report, or memoir documentclass, use \chapter{}
12662 for first-level headers. Otherwise use \section{}.
12663 + Removed stLink, link template variable. Reason: we now always
12664 include hyperref in the template.
12666 * LaTeX template:
12668 + Only show \author if there are some.
12669 + Always include hyperref package. It is used not just for links but
12670 for toc, section heading bookmarks, footnotes, etc. Also added
12671 unicode=true on hyperref options.
12673 * markdown2pdf: always do at least two runs. hyperref bookmarks
12674 require this.
12676 * cabal file: Removed unneeded dependency on template-haskell.
12678 * Windows installer - fixed bug in data file locations.
12679 Resolves Issue #197.
12681 * Deprecated --custom-header in documentation.
12682 Removed old "Custom Headers" section in README.
12684pandoc (1.4)
12686 [ John MacFarlane ]
12688 * Pandoc will now compile with either GHC 6.10 or 6.12.
12689 + Don't use System.IO.UTF8 when compiling with 6.12
12690 + Use -fno-warn-unused-do-bind option when compiling with 6.12
12692 * Replaced old headers with templates. Now users have much more
12693 control over the way documents appear in --standalone mode,
12694 and writer code is simplified. Resolves Issues #59, 147.
12695 Every effort has been made to retain backwards compatibility.
12696 So, the --custom-header option should still work as before.
12698 + Added Text.Pandoc.Templates. This provides functions for
12699 retrieving default templates and for rendering templates.
12700 + System templates (in the pandoc data directory) can be
12701 overridden by user templates in $HOME/.pandoc/templates.
12702 + Removed Text.Pandoc.DefaultHeaders.
12703 + Removed data/headers directory.
12704 + Added templates directory.
12705 + Added writerTemplate and writerVariables fields to WriterOptions.
12706 + Removed writerTitlePrefix, writerHeader fields from WriterOptions.
12707 + Changed --print-default-header to --print-default-template.
12708 + Added --template option.
12709 + Added -V/--variable option to set custom template variables.
12711 * Pandoc no longer requires Template Haskell. Resolves Issue #186.
12713 + Removed need for TH in ODT module. Instead get reference.odt from
12714 data file at run time.
12715 + Removed TH dependency from S5 module. S5 module now exports
12716 s5HeaderIncludes, which pandoc.hs includes if writer is s5 and
12717 standalone.
12718 + Refactored LaTeXMathML not to use TH.
12720 * Meta is now Meta [Inline] [[Inline]] [Inline] rather than
12721 Meta [Inline] [String] String. Authors and date in Meta are now lists
12722 of Inline elements rather than raw strings. This means that they can
12723 be formatted and can include footnotes. NOTE: This may be a breaking
12724 change for those using pandoc as a library.
12726 * Added readDataFile to Text.Pandoc.Shared. This retrieves
12727 a data file from the user pandoc data directory (~/.pandoc
12728 on unix), or, if not found there, from the system data
12729 directory ($CABALDIR/shared/pandoc-VERSION/). All data
12730 files, including templates, LaTeXMathML.js, s5 styles,
12731 and reference.odt, can be overridden by the user.
12733 * s5 files moved from data/ui/default to s5/default.
12735 * Use unicode instead of entities in HTML and XML output. Resolves
12736 Issue #163.
12738 * Prettier HTML footnote references: put anchor inside sup,
12739 instead of other way. Resolves Issue #191. Thanks to
12740 infinity0x.
12742 * Added --xetex option to pandoc and markdown2pdf.
12743 If --xetex is specified, pandoc produces latex suitable for
12744 processing by xelatex, and markdown2pdf uses xelatex to create
12745 the PDF. Resolves Issue #185.
12747 * RTF writer: multiple authors now occupy multiple paragraphs rather
12748 than using a line break.
12750 * Man writer: now the "--after-body" will come after the "AUTHORS"
12751 section, whereas before it would come before it. This is a
12752 slight break from backwards compatibility.
12754 * Added --reference-odt option, so users may customize the styles
12755 used in pandoc-generated ODT files. Users may also place a
12756 default reference.odt in the ~\.pandoc directory.
12758 * ODT writer:
12759 + Indented and line-broke styles.xml so it can be modified more easily.
12760 + Omitted some unnecessary style declarations.
12761 + Don't wrap text in OpenDocument writer. The tags are too long, making
12762 wrapping ugly and pointless.
12764 * LaTeX reader: use \\ to separate multiple authors.
12766 * Markdown reader: use ; as separator between authors.
12767 This allows you to use ',' within author names: e.g. "John Jones, Jr."
12769 * S5 writer: use linebreak to separate authors in title page.
12771 * RST reader: Allow :: before lhs code block. The RST spec requires the
12772 :: before verbatim blocks. This :: should not be treated as literal
12773 colons. Resolves Issue #189.
12775 * Documented pandoc 1.3's new definition list syntax in README.
12776 (An oversight in the last release.)
12778 * markdown2pdf.hs:
12779 + interpret ! in a log as an error line.
12780 + --toc now works properly.
12782 * Changes in RunTests.hs:
12783 + Use the Diff library rather than a local copy of Diff.hs.
12784 (This vastly increases performance.) This change means that 'cabal
12785 test' presupposes that the Diff library is installed.
12786 + Removed tests/Diff.hs from cabal file.
12787 + Changed RunTests to use local environment. We need at least HOME, so
12788 pandoc can find its data directory.
12790 * Updated windows installer to install data files in the app directory.
12792 * Windows installer now installs portable wrappers hsmarkdown and
12793 markdown2pdf.
12795pandoc (1.3)
12797 [ John MacFarlane ]
12799 * Added --id-prefix option (Issue #41). This adds a prefix to all
12800 automatically generated HTML identifiers, which helps prevent
12801 duplicate identifiers when you're generating a fragment (say a blog
12802 post).
12804 * Added --indented-code-classes option. This specifies classes
12805 to use for indented code blocks. (Patch due to buttock; Issue #87.)
12807 * --number-sections now affects HTML output as well as ConTeXt and LaTeX
12808 (Issue #150).
12810 * Improved syntax for markdown definition lists (Issue #24).
12811 Definition lists are now more compatible with PHP Markdown Extra.
12812 + You can have multiple definitions for a term (but still not
12813 multiple terms).
12814 + Multi-block definitions no longer need a column before each block
12815 (indeed, this will now cause multiple definitions).
12816 + The marker no longer needs to be flush with the left margin,
12817 but can be indented at or two spaces. Also, ~ as well as :
12818 can be used as the marker (this suggestion due to David
12819 Wheeler.)
12820 + There can now be a blank line between the term and the
12821 definitions.
12823 * Better looking simple tables. Resolves Issue #180.
12824 + Markdown reader: simple tables are now given column widths of 0.
12825 + Column width of 0 is interpreted as meaning: use default column width.
12826 + Writers now include explicit column width information only
12827 for multiline tables. (Exception: RTF writer, which requires
12828 column widths. In this case, columns are given equal widths,
12829 adding up to the text width.)
12830 + Simple tables should now look better in most output formats.
12832 * Allow markdown tables without headers (Issue #50).
12833 The new syntax is described in README. Also allow optional line of
12834 dashes at bottom of simple tables.
12836 * Compensate for width of final table column (Issue #144).
12838 * Treat a backslash followed by a newline as a hard line break
12839 in markdown. Resolves Issue #154. This is a nice alternative
12840 to markdown's "invisible" way of indicating hardline breaks
12841 using lines that end with two spaces.
12843 * Improved performance of markdown reader by ~10% by eliminating the
12844 need for a separate parsing pass for notes. Raw notes are now stored
12845 on the first pass (which parses references), then parsed when the
12846 note is inserted into the AST. The stateNotes field in ParserState
12847 is now a list of [(String, String)] pairs instead of [(String,
12848 [Block])].
12850 * In markdown reader, treat 4 or more * or _ in a row as literal
12851 text. (Trying to parse long strings of * or _ as strong or emph
12852 leads to exponential performance problems.)
12854 * Markdown reader: Use + rather than %20 for spaces in URLs.
12856 * Fixed htmlComment parser, adding a needed 'try'.
12858 * Don't print raw HTML in man output.
12860 * Allow . _ and ~ in header identifiers.
12862 * Specially mark code blocks that were "literate" in the input.
12863 They can then be treated differently in the writers. This allows
12864 authors to distinguish bits of the literate program they are writing
12865 from source code examples, even if the examples are marked as
12866 Haskell for highlighting. (Issue #174.)
12868 * Modified html+lhs output to use "haskell" highlighter instead
12869 of "literateHaskell". The highlighting module now adds bird tracks
12870 after highlighting (for HTML output), if the code block has the
12871 "literate" class. This gives better results, because kate's
12872 haskell highlighter is much better than the literateHaskell
12873 highlighter.
12875 * Fixed handling of footnotes in titles (HTML) and headers (LaTeX).
12876 (Issue #137.)
12878 * Support for "..code-block" directive in RST reader. Not core
12879 RST, but used in Sphinx for code blocks annotated with syntax
12880 information. Thanks to Luke Plant for the patch.
12882 * Added "head" to list of block-level HTML tags. Resolves
12883 Issue #108.
12885 * Added stripTags to Text.Pandoc.XML. This is used in the HTML writer.
12887 * Set utf-8 encoding in texinfo headers.
12889 * Docbook writer: add ids to sections. Use link for internal links.
12890 (Issue #60.)
12892 * Blank lines after lists in MediaWiki writer.
12894 * Properly handle commented-out list items in markdown.
12895 Resolves Issue #142. Example:
12897 - a
12898 <!--
12899 - b
12900 -->
12901 - c
12903 * Changed heuristic in compactify. compactify has to decide whether a
12904 Para that ends a list is a Para intentionally, or just because of
12905 the blank lines at the end of every list. In the latter case the
12906 Para is turned to a Plain. The old heuristic was: change final Para
12907 to Plain iff the other items all end in Plain. This produces bad
12908 results when, for example, an item contains just a Plain and an HTML
12909 comment, as it does in the list above. The new heuristic: change
12910 final Para to Plain iff the other items don't contain a Para.
12912 * Added % as an rst underline character. Resolves Issue #173.
12914 * Fix inline math parser so that \$ is allowed in math.
12915 Resolves Issue #169.
12917 * Translate \int (integral) into unicode when using unicode math
12918 method. Resolves Issue #177.
12920 * markdown2pdf.hs improvements:
12921 + Use System.IO.UTF8.
12922 + Print error messages on last attempt.
12923 + Do not create a backup when overwriting a PDF (Issue #166).
12924 + Accept --longopt=val options.
12925 + Added man/man1/markdown2pdf.1 to extra-tmp-files in cabal, so that
12926 it is properly cleaned.
12928 * Added haddock comments warning that readers assume \n line endings.
12930 * Updated COPYRIGHT file.
12932 * Makefile: Changed EXECSBASE so it doesn't pull in hsmarkdown &
12933 markdown2pdf. Otherwise strip tries to strip shell scripts when you
12934 install using 'make'.
12936 * Changed Makefile so it doesn't build Haskell wrappers.
12938 * Fixed Makefile so it doesn't try to build man pages in build-doc.
12940 * Install pcre3.dll in Windows install script; this allows us to
12941 package a version of pandoc with highlighting support.
12943pandoc (1.2.1)
12945 [ John MacFarlane ]
12947 * Fixed regression with --preserveTabs. Brought back optPreserveTabs.
12948 The trick of setting tabStop to 0 to mean "preserve tabs" had a bad
12949 side effect: strings of 0 spaces were interpreted as indentation.
12950 So, with --preserve-tabs, unindented paragraphs were treated as
12951 code. Resolves Issue #138.
12953 * HTML writer: wrap sections in divs. Resolves Issue #70.
12955 + hierarchicalize has been rationalized; it builds a hierarchical
12956 representation of the document from the headers, and simultaneously
12957 gives each section a unique identifier based on the heading title.
12958 + Identifiers are now attached to the divs rather than
12959 to the headers themselves.
12960 + Table of content backlinks go to the beginning of the table, rather
12961 than to the section reference that was clicked.
12962 + Code for constructing identifiers has been moved to Text.Pandoc.Shared
12963 from the HTML writer, since it is now consumed only by
12964 hierarchicalize.
12965 + In --strict mode, pandoc just prints bare headings, as before
12966 (unless --toc has been specified).
12967 + In s5 output, it does not wrap sections in divs, as that seems to
12968 confuse the s5 javascript.
12970 * Man writer: break lines at end of each sentence. groff expects this
12971 and treats '.' and '?' differently when followed by line ending as
12972 opposed to ordinary space. Also, don't escape periods. Instead, use
12973 zero-width character \& to avoid unwanted interpretation of periods
12974 at start of line. Resolves Issue #148.
12976 * Markdown writer: Added '#' and '>' to list of characters to be
12977 escaped in markdown output. Removed '<', as it is not an officially
12978 escapable character. This partially resolves Issue #96.
12980 * Make --smart the default for man output format. Otherwise we have
12981 trouble dividing lists of endlines into sentences.
12983 * DocBook writer: Use language attribute to indicate source language
12984 in code blocks.
12986 * RST reader:
12988 + Allow # to continue list, even if the list was started with an
12989 explicit marker. For example:
12991 A. my list
12992 #. continued
12994 Resolves Issue #140.
12995 + Allow continuation lines in line blocks. Also added test cases for
12996 line blocks for RST reader. Resolves Issue #149.
12997 + Allow explicit links with spaces in URL: `link <to this>`_
12999 * Improved LaTeX reader's coverage of math modes. Remove displaymath*
13000 (which is not in LaTeX) and recognize all the amsmath environments
13001 that are alternatives to eqnarray, namely equation, equation*,
13002 gather, gather*, gathered, multline, multline*, align, align*,
13003 alignat, alignat*, aligned, alignedat, split. Resolves Issue #103.
13004 Thanks to shreevatsa.public for the patch.
13006 * Markdown reader:
13008 + Allow -, _, :, . in markdown attribute names. These are legal in
13009 XML attribute names.
13010 + Use non-breaking spaces in abbreviations.
13011 + Markdown reader: improved efficiency of abbreviation parsing.
13012 Instead of a separate abbrev parser, we just check for
13013 abbreviations each time we parse a string. This gives a huge
13014 performance boost with -S. Resolves Issue #141.
13016 * Improved efficiency of shared parsers: hexNum, htmlComment,
13017 whitespace, indentSpaces.
13019 * Export HTMLMathMethod in Text.Pandoc.
13021 * Export languagesByExtension in Text.Pandoc.Highlighting.
13023 * Added new Haskell version of markdown2pdf, due to
13024 Paulo Tanimoto. This should be more portable than the old
13025 shell script.
13027 * Made 'pandoc -v' more explicit about compiler options.
13028 Resolves Issue #139.
13030 * pandoc.hs: Made --strict compatible with --standalone, --toc.
13032 * Use Paths_pandoc to get version number, instead of hard-coding it
13033 into Text/Pandoc.hs.
13035pandoc (1.2)
13037 [ John MacFarlane ]
13039 * Added support for literate Haskell. lhs support is triggered by
13040 '+lhs' suffixes in formats. For example, 'latex+lhs' is literate
13041 Haskell LaTeX. '.lhs' files are treated by default as literate
13042 markdown.
13044 + Added stateLiterateHaskell to parser state.
13045 + Added parser for lhsCodeBlock to Markdown, RST, LaTeX readers.
13046 + Added parser for |inline lhs| to LaTeX reader.
13047 + Added writerLiterateHaskell to WriterOptions.
13048 + Added lhs support to Markdown, RST, LaTeX, HTML writers.
13049 + Added definition of code environment to LaTeX header.
13050 + Added tests (run only if highlighting support compiled in).
13051 + Documented lhs features in man page and README.
13053 * In Text.Pandoc.Definition, added processWith, processWithM,
13054 and queryWith, and deprecated processPandoc and queryPandoc
13055 for these more general functions.
13057 * Fixed bug in mediawiki writer: improper closing tags in tables.
13058 Thanks to Benct Philip Jonsson for reporting the bug.
13060 * Added --email-obfuscation option.
13062 + Added writer option for email obfuscation.
13063 + Implemented email obfuscation options in HTML writer.
13064 + Added option to option parser.
13065 + Documented in README and pandoc man page.
13066 + Resolves Issue #97.
13068 * LaTeX writer: fixed bug with empty table cells.
13069 Resolves Issue #107. Thanks to rodja.trappe for the patch.
13071 * Fixed bug with header spacing in Markdown and RST writers.
13072 A null header (Meta [] [] []) should not cause a blank line
13073 at the beginning of output. But a blank line is needed between
13074 a non-null header and the main text.
13076 * Markdown reader: Relax spacing rules for $$ in display math. Now
13077 space and newlines are allowed after the opening $$ and before the
13078 closing $$. However, the display math cannot contain an entirely
13079 blank line. Resolves Issue #105.
13081 * Markdown reader: Gobble space after Plain blocks containing only
13082 raw html inline. Otherwise following header blocks are not parsed
13083 correctly, since the parser sees blank space before them. Resolves
13084 Issue #124.
13086 * Markdown reader: Allow " as well as '' to end a latex double-quote.
13088 * Conditionally depend on syb and base >= 4 if ghc >= 6.10.
13089 Resolves Issue #109.
13091 * Fixed problems in RST and markdown output due to bug in pretty-1.0.1.0
13093 + Added hang' function to Text.Pandoc.Shared; this will be used instead
13094 of hang, which doesn't work properly in pretty-1.0.1.0. When pretty
13095 is upgraded, we can go back to hang.
13096 See http://article.gmane.org/gmane.comp.lang.haskell.general/16687
13097 + Use hang' (and some different techniques) in RST and markdown writers.
13098 Some output is now a bit different.
13100 * Brought citeproc support up to date for citeproc-hs-0.2.
13101 (Patch by Andrea Rossato.)
13103 * Moved all haskell source to src subdirectory. Renamed Main.hs to
13104 pandoc.hs.
13106 * Rewrote hsmarkdown in Haskell for portability (src/hsmarkdown.hs).
13107 For now, keeping the old shell script too.
13109 * Added TemplateHaskell to Extensions for executable, removed
13110 -threaded for library. Thanks to duncan.coutts for the bug report.
13111 Resolves Issue #121.
13113 * Moved some Extra-Source-Files to Data-Files.
13115 * Moved tabFilter to Shared.
13117 * In pandoc.hs, removed optPreserveTabs; instead, tabstop of 0 means
13118 preserve tabs.
13120 * Minor code cleanup based on hlint suggestions.
13122pandoc (1.1)
13124 [ John MacFarlane ]
13126 * Main.hs:
13128 + Changed date on copyright message in Main.hs.
13129 + Have the '-v' option print syntax highlighting languages
13130 separated by commas, and wrapped in lines, instead of in five
13131 columns as before.
13133 * Added --jsmath option. Resolves Issue #68.
13135 + Added --jsmath option to Main.hs
13136 + Added JsMath to HTMLMathMethod in Text.Pandoc.Shared.
13137 + Handle math appropriately in HTML writer when JsMath selected.
13138 + Documented the option in README and man page.
13140 * Text.Pandoc.Shared: Changed compactify to use a better heuristic
13141 for tight and loose lists. Final Para is changed to Plain if all
13142 other list items *end* with a Plain block. Addresses Issue #99.
13144 * HTML reader:
13146 + Added colons to protocols in unsanitaryURI. Closes Issue #88.
13147 + HTML reader: Don't interpret contents of <pre> blocks as markdown.
13148 Added rawVerbatimBlock parser. Resolves Issue #94.
13150 * Markdown reader:
13152 + Allow URLs with spaces in them in links and references, but escape
13153 them as "%20".
13154 + Allow blank space at the end of horizontal rules.
13156 * RST reader: Modified 'unknownDirective' parser to handle comment
13157 blocks correctly, and added tests for comment blocks. Resolves Issue
13158 #86. Closes Debian Bug #500662.
13160 * HTML writer:
13162 + Include classes on tr elements in HTML output:
13163 "header", "odd", "even". This allows tables to be styled with
13164 lines in alternating colors. Resolves Issue #91.
13165 + Enclose all LaTeXMathML bits in <span class="LaTeX">.
13166 This prevents parts of the document that are not math from being
13167 interpreted as math by LaTeXMathML.js.
13169 * OpenDocument and ODT writers: Added support for HorizontalRule elements,
13170 which were formerly ignored. Resolves Issue #95.
13172 * Text.Pandoc.Shared: Modified wrappedTeX to eliminate the line break
13173 between a footnote and immediately following nonspace characters in
13174 LaTeX and ConTeXt output. (This gets interpreted as a space, which
13175 is not desired in cases like `text^[note]---`.) Resolves Issue #93.
13177 * Windows installer: Don't require admin privileges to run
13178 installer. Modified pandoc-setup.iss, and changed modpath.iss to
13179 modify HKCU path if user lacks admin privileges. Also fixed case
13180 where oldpath is empty (previously this led to the new path
13181 beginning with a semicolon).
13183 * Updated INSTALL instructions for Arch packages and OS X install using
13184 cabal-install.
13186 * Removed the (now unneeded) debian directory.
13187 Removed empty Codec and System directories.
13189 * Moved odt-styles/ to data/. Removed unneeded variable in Makefile.
13191 * Modified Setup.hs so that the "test" target returns an error status
13192 when tests fail, and "build" returns a success status if
13193 the build succeeds. Resolves Issue #100.
13195 * Added BUGS to files in tarball.
13198pandoc (1.0.0.1)
13200 [ John MacFarlane ]
13202 * Removed spurious reference to pdf output format from pandoc(1) man page.
13204pandoc (1.0)
13206 [ Andrea Rossato ]
13208 * Added new OpenDocument writer.
13210 * Added support for SmallCaps inline element.
13212 * Added support for integrating pandoc with citeproc-hs.
13214 + Added Cite element to definition and writers.
13215 + Added Text.Pandoc.Biblio module
13216 + Note: This support is included only if the 'citeproc'
13217 Cabal configuration flag is set.
13219 * Made Pandoc data structure an instance of Typeable.
13220 Added new processPandoc and queryPandoc functions, to query
13221 or transform matching elements in a Pandoc structure.
13223 [ Peter Wang ]
13225 * Added new Texinfo writer.
13227 [ John MacFarlane ]
13229 * Changes to Texinfo writer:
13231 + No space between paragraph and following @verbatim (provides more
13232 pleasing appearance in text formats)
13233 + Blank line consistently after list environments.
13234 + Removed deVerb.
13235 + Use @code instead of @verb for inline code (this solves the character
13236 escaping problem for texi2dvi and texi2pdf).
13237 + Added news of Texinfo writer to README.
13238 + Added Texinfo to list of formats in man page, and removed extra 'groff'.
13239 + Added texi & texinfo extensions to Main.hs, and fixed bug in determining
13240 default output extension.
13241 + Modified disallowedInNode in Texinfo writer to correct list of disallowed characters.
13243 * Added tests for OpenDocument writer.
13245 * Added ODT writer (using zip-archive library to package output of
13246 OpenDocument writer). Added odt-styles directory with default ODT styles.
13248 * Added new mediawiki writer and tests.
13250 * Markdown reader: Added support for delimited code blocks, with optional
13251 syntax highlighting using highlighting-kate (if the 'highlighting'
13252 configuration option is selected).
13254 + Currently highlighting is supported only in the HTML writer.
13255 + Delimited code blocks can have attributes; using the language name as
13256 class triggers highlighting.
13257 + New Attributes parameter in CodeBlock structure.
13258 + --version now indicates whether syntax highlighting support is compiled
13259 in, and prints a list of supported languages
13261 * Removed debian directory. Pandoc is no longer a native debian package.
13263 * Changes to build process: pandoc can now be built from the repository
13264 using Cabal. No unix tools are needed (so, pandoc can be built on Windows
13265 without Cygwin).
13267 + Include shell scripts themselves in repo, rather than generating from wrappers.
13268 Removed wrappers directory and wrappers Makefile target.
13269 + Text/Pandoc/ASCIIMathML.hs, Text/Pandoc/DefaultHeaders.hs,
13270 and Text/Pandoc/Writers/S5.hs are no longer built in Makefile
13271 from templates in the templates/ directory. Instead, they use template
13272 haskell to read data at compile time from the relevant files in data/.
13273 Template haskell functions go in a new module, Text.Pandoc.TH.
13274 + man pages are now generated in Setup.hs hook, not by Makefile
13275 + Makefile 'tarball' target now calls Cabal's 'sdist'
13276 + Added "Extra-Source-Files" to pandoc.cabal, so sdist contains everything needed
13277 + Added "Build-Type" field to pandoc.cabal to avoid warning.
13278 + Added to "Extra-source-files" and "Extra-tmp-files" in pandoc.cabal,
13279 so 'sdist' and 'clean' will work properly.
13280 + Setup.hs now generates man pages in a postbuild hook.
13281 + Added dependency-checking to Setup.hs, so it only rebuilds things
13282 that need rebuilding.
13283 + Added 'library' and 'executable' configuration flags.
13284 Cabal can now be told to build just the library or just the executable.
13285 + CABALOPTS may now be specified with 'make' to pass Cabal configuration flags.
13286 For example: CABALOPTS=-fhighlighting make
13288 * Rewrote test suite so it doesn't depend on perl or unix tools.
13290 + Replaced old runtests.pl with a Haskell script RunTests.hs.
13291 + Added Diff.hs module to be used by RunTests.hs instead of unix 'diff'.
13292 + Added test hook to Setup.hs, so tests may be run from cabal.
13293 + Changed Makefile's 'test' target to run tests via cabal.
13294 + Removed old generate.sh.
13295 + Since we no longer have 'sed' to filter out raw HTML sections
13296 from the docbook writer test, or raw LaTeX sections from the
13297 context writer test, we now just include these sections.
13298 They can be taken out if it is necessary to process the files.
13299 + Updated latex and context writer tests to remove extra spaces
13300 after '\\item'
13301 + Added a markdown table reader test.
13302 + Added markdown-reader-more.txt to test suite, for additional test cases
13303 for raw ConTeXt environments and more.
13305 * Compatibility fixes for CPP, Cabal, and haddock:
13307 + Use CPP in "Extensions" field in pandoc.cabal.
13308 + Removed use of backslash string continuations in source files.
13310 * Removed pandoc.cabal.ghc66. We now require Cabal >= 1.2, GHC >= 6.8,
13311 base >= 3.
13313 * Require parsec < 3.
13314 The compatibility module in parsec 3.0.0 gives far worse performance than
13315 parsec 2.1. Eventually pandoc will be upgraded to use the new bytestring
13316 version of parsec, and then we'll go to parsec 3.0.0.
13318 * Removed Text.Regex dependencies by rewriting using plain Haskell
13319 (Text.Pandoc.Writers.RTF, Text.Pandoc.Writers.HTML, Main.hs)
13321 * Moved Text.Pandoc.Writers.DefaultHeaders -> Text.Pandoc.DefaultHeaders.
13323 * Makefile:
13325 + Added 'configure' as dependency of 'uninstall-all'.
13326 (It uses the Cabal build program.)
13327 + Makefile: only use --with-hc-pkg if GHC_PKG is defined.
13328 Note that Cabal will automatically choose the ghc-pkg appropriate
13329 for the compiler selected, so normally specifying GHC by itself
13330 is sufficient.
13332 * Removed Text.Pandoc.UTF8 module; instead, depend on utf8-string and use
13333 its IO and conversion functions.
13335 * Added -Wall to ghc-options in pandoc.cabal. Cleaned up modules so that
13336 everything is -Wall clean.
13338 + Added pragma to HTML writer to avoid deprecation warning for use of "start" attribute.
13339 + Added pragma to Text/Pandoc/Shared.hs to get rid of "orphan instance" warnings.
13340 (These are caused by the Lift instance for ByteString.)
13342 * Changed the comment used to replace unsafe HTML if sanitize-html option
13343 selected.
13345 * Made -c/--css option repeatable on the command line (like -H, -A, -B).
13347 * Moved XML-formatting functions to new unexported module Text.Pandoc.XML.
13349 * Escape '\160' as "&#160;", not "&nbsp;" in XML.
13350 "nbsp" isn't a predefined XML entity.
13352 * Fixed bug in RST reader, which would choke on: "p. one\ntwo\n".
13353 Added some try's in ordered list parsers.
13355 * Man writer: don't escape " as \".
13357 * Allow newline before URL in markdown link references. Resolves Issue #81.
13358 Added tests for this issue in new "markdown-reader-more" tests.
13359 Changed RunTests.hs to run these tests.
13361 * Support for display math. Resolves Issue #47.
13363 + Added a DisplayMath/InlineMath selector to Math inlines.
13364 + Markdown parser yields DisplayMath for $$...$$.
13365 + LaTeX parser yields DisplayMath when appropriate. Removed
13366 mathBlock parsers, since the same effect is achieved by the math
13367 inline parsers, now that they handle display math.
13368 + Writers handle DisplayMath as appropriate for the format.
13369 + Modified tests accordingly; added new tests for display math.
13371 * Use LaTeXMathML instead of ASCIIMathML. LaTeXMathML is closer
13372 to LaTeX in its display of math, and supports many non-math LaTeX environments.
13374 + Changed -m option to use LaTeXMathML rather than ASCIIMathML.
13375 + Modified HTML writer to print raw TeX when LaTeXMathML is
13376 being used instead of suppressing it.
13377 + Removed ASCIIMathML files from data/ and added LaTeXMathML.
13378 + Replaced ASCIIMathML with LaTeXMathML in source files.
13379 + Modified README and pandoc man page source.
13380 + Added --latexmathml option (kept --asciimathml as a synonym
13381 for backwards compatibility)
13383 * Markdown reader: Parse setext headers before atx headers.
13384 Test case:
13385 # hi
13386 ====
13387 parsed by Markdown.pl as an H1 header with contents "# hi".
13389 * Markdown reader: Treat "mixed" lists the same way as Markdown.pl does.
13390 The marker on the first list item determines the type of the whole
13391 list. Thus, a list like
13392 1. one
13393 - two
13394 * three
13395 gets parsed as a single ordered list. (Previous versions of pandoc
13396 treated this as an ordered list with an unordered sublist.)
13398 * Markdown smart typography:
13400 + Em dashes no longer eat surrounding whitespace. Resolves Issue #69.
13401 + Use nonbreaking spaces after known abbreviations in markdown parser.
13402 Thus, for example, "Mr. Brown" comes out as "Mr.~Brown" in LaTeX, and does
13403 not produce a sentence-separating space. Resolves Issue #75.
13405 * Markdown writer: Print unicode \160 literally, rather than as &nbsp;.
13407 * Treat '\ ' in (extended) markdown as nonbreaking space.
13408 Print nonbreaking space appropriately in each writer (e.g. ~ in LaTeX).
13410 * The '--sanitize-html' option now examines URIs in markdown links
13411 and images, and in HTML href and src attributes. If the URI scheme
13412 is not on a whitelist of safe schemes, it is rejected. The main point
13413 is to prevent cross-site scripting attacks using 'javascript:' URIs.
13414 See http://www.mail-archive.com/markdown-discuss@six.pairlist.net/msg01186.html
13415 and http://ha.ckers.org/xss.html. Resolves Issue #62.
13417 * HTML writer:
13419 + Override Text.XHtml's stringToHtml function,
13420 so that characters below 0xff are not converted to numerical entity
13421 references. Also convert '\160' to "&nbsp;". This should aid readability
13422 and editability of the HTML source. It does presuppose that the HTML
13423 will be served as UTF-8.
13424 + In code blocks, change leading newlines to <br /> tags.
13425 (Some browsers ignore them.) Resolves Issue #71.
13426 See http://six.pairlist.net/pipermail/markdown-discuss/2008-May/001297.html
13427 + Use style attributes rather than css classes for strikethrough
13428 and ordered list styles. This works better when fragments, rather than
13429 standalone documents, are generated.
13431 * HTML reader: Count anything that isn't a known block (HTML) tag as an
13432 inline tag (rather than the other way around). Added "html", "head", and
13433 "body" to list of block tags. Resolves Issue #66, allowing
13434 <lj> to count as an inline tag.
13436 * RTF writer: Fixed bug. Extra spaces were being printed after emphasized,
13437 boldface, and other inline elements. Resolves Issue #64.
13439 * LaTeX reader: improvements in raw LaTeX parsing.
13441 + "loose punctuation" (like {}) parsed as Space
13442 + Para elements must contain more than Str "" and Space elements
13443 + Added parser for "\ignore" command used in literate haskell.
13444 + Reworked unknownCommand and rawLaTeXInline: when not in "parse raw"
13445 mode, these parsers simply strip off the command part and allow
13446 the arguments to be parsed normally. So, for example,
13447 \blorg{\emph{hi}} will be parsed as Emph "hi" rather than
13448 Str "{\\emph{hi}}".
13449 + Parse lhs "code" environments as verbatim.
13450 Refactored parsers for verbatim environments.
13451 + Removed specialEnvironment parser.
13452 + parse '{}', if present, after \textless, \textgreater,
13453 \textbar, \textbackslash, \ldots.
13454 + Parse unescaped special characters verbatim rather than
13455 changing them to spaces. This way arguments of unknown
13456 commands will appear in braces.
13458 * Parse raw ConTeXt environments as TeX in markdown reader.
13459 Resolves Issue #73.
13461 * Moved BlockWrapper and wrappedBlocksToDoc from ConTeXt writer to Shared.
13463 * Made some structural changes to parsing of raw LaTeX environments.
13464 Previously there was a special block parser for LaTeX environments.
13465 It returned a Para element containing the raw TeX inline. This has
13466 been removed, and the raw LaTeX environment parser is now used in the
13467 rawLaTeXInline parser. The effect is exactly the same, except that we
13468 can now handle consecutive LaTeX and ConTeXt environments not separated
13469 by spaces. This new flexibility is required by the example in
13470 Issue #73:
13472 \placeformula \startformula
13473 L_{1} = L_{2}
13474 \stopformula
13476 API change: The LaTeX reader now exports rawLaTeXEnvironment' (which
13477 returns a string) rather than rawLaTeXEnvironment (which returns a block
13478 element). This is more likely to be useful in other applications.
13480 * Use \textsubscr instead of \textsubscript for LaTeX subscript macro.
13481 \textsubscript conflicts with a definition in the memoir class.
13482 Resolves Issue #65.
13484 * Removed unneeded space after "\\item" in LaTeX and ConTeXt output.
13486 * Added amsmath package to default LaTeX header. Resolves Issue #48.
13488 * Added \setupitemize[autointro] to ConTeXt header, to prevent orphaned
13489 list introduction lines.
13491 * Changed Float to Double in definition of Table element.
13492 (Double is more efficient in GHC.)
13494 * Fixed bug in Markdown parser: regular $s triggering math mode.
13495 For example: "shoes ($20) and socks ($5)."
13496 The fix consists in two new restrictions:
13498 + the $ that ends a math span may not be directly followed by a digit.
13499 + no blank lines may be included within a math span.
13501 Thanks to Joseph Reagle for noticing the bug.
13503 * Use Data.List's 'intercalate' instead of custom 'joinWithSep'.
13504 Removed 'joinWithSep' from Text.Pandoc.Shared.
13506 * Updated README and man pages. Acknowledge contributors in README.
13507 Added paragraph to README about producing S5 with separate CSS/javascript.
13509 * Updated INSTALL to reflect new build system (including configuration
13510 options) and document new dependencies. Added note to INSTALL that
13511 Cabal >= 1.2 is required for build. Resolves Issue #74.
13513 * Fixed some haddock documentation errors.
13515 * Small fix to markdown2pdf man page: only input needs to be piped through iconv.
13517pandoc (0.46) unstable; urgency=low
13519 [ John MacFarlane ]
13521 * Made -H, -A, and -B options cumulative: if they are specified
13522 multiple times, multiple files will be included.
13524 * Added optional HTML sanitization using a whitelist.
13525 When this option is specified (--sanitize-html on the command line),
13526 unsafe HTML tags will be replaced by HTML comments, and unsafe HTML
13527 attributes will be removed. This option should be especially useful
13528 for those who want to use pandoc libraries in web applications, where
13529 users will provide the input.
13531 + Main.hs: Added --sanitize-html option.
13533 + Text.Pandoc.Shared: Added stateSanitizeHTML to ParserState.
13535 + Text.Pandoc.Readers.HTML:
13536 - Added whitelists of sanitaryTags and sanitaryAttributes.
13537 - Added parsers to check these lists (and state) to see if a given
13538 tag or attribute should be counted unsafe.
13539 - Modified anyHtmlTag and anyHtmlEndTag to replace unsafe tags
13540 with comments.
13541 - Modified htmlAttribute to remove unsafe attributes.
13542 - Modified htmlScript and htmlStyle to remove these elements if
13543 unsafe.
13545 + Modified README and man pages to document new option.
13547 * Improved handling of email addresses in markdown and reStructuredText.
13548 Consolidated uri and email address parsers. (Resolves Issue #37.)
13550 + New emailAddress and uri parsers in Text.Pandoc.Shared.
13551 - uri parser uses parseURI from Network.URI.
13552 - emailAddress parser properly handles email addresses with periods
13553 in them.
13555 + Removed uri and emailAddress parsers from Text.Pandoc.Readers.RST
13556 and Text.Pandoc.Readers.Markdown.
13558 * Markdown reader:
13560 + Fixed emph parser so that "*hi **there***" is parsed as a Strong
13561 nested in an Emph. (A '*' is only recognized as the end of the
13562 emphasis if it's not the beginning of a strong emphasis.)
13564 + Moved blockQuote parser before list parsers for performance.
13566 + Modified 'source' parser to allow backslash-escapes in URLs.
13567 So, for example, [my](/url\(1\)) yields a link to /url(1).
13568 Resolves Issue #34.
13570 + Disallowed links within links. (Resolves Issue #35.)
13571 - Replaced inlinesInBalanced with inlinesInBalancedBrackets, which
13572 instead of hard-coding the inline parser takes an inline parser
13573 as a parameter.
13574 - Modified reference and inlineNote to use inlinesInBalancedBrackets.
13575 - Removed unneeded inlineString function.
13576 - Added inlineNonLink parser, which is now used in the definition of
13577 reference.
13578 - Added inlineParsers list and redefined inline and inlineNonLink parsers
13579 in terms of it.
13580 - Added failIfLink parser.
13582 + Better handling of parentheses in URLs and quotation marks in titles.
13583 - 'source' parser first tries to parse URL with balanced parentheses;
13584 if that doesn't work, it tries to parse everything beginning with
13585 '(' and ending with ')'.
13586 - source parser now uses an auxiliary function source'.
13587 - linkTitle parser simplified and improved, under assumption that it
13588 will be called in context of source'.
13590 + Make 'block' conditional on strictness state, instead of using
13591 failIfStrict in block parsers. Use a different ordering of parsers
13592 in strict mode (raw HTML block before paragraph) for performance.
13593 In non-strict mode use rawHtmlBlocks instead of htmlBlock.
13594 Simplified htmlBlock, since we know it's only called in strict
13595 mode.
13597 + Improved handling of raw HTML. (Resolves Issue #36.)
13598 - Tags that can be either block or inline (e.g. <ins>) should
13599 be treated as block when appropriate and as inline when
13600 appropriate. Thus, for example,
13601 <ins>hi</ins>
13602 should be treated as a paragraph with inline <ins> tags, while
13603 <ins>
13605 </ins>
13606 should be treated as a paragraph within <ins> tags.
13607 - Moved htmlBlock after para in list of block parsers. This ensures
13608 that tags that can be either block or inline get parsed as inline
13609 when appropriate.
13610 - Modified rawHtmlInline' so that block elements aren't treated as
13611 inline.
13612 - Modified para parser so that paragraphs containing only HTML tags and
13613 blank space are not allowed. Treat these as raw HTML blocks instead.
13615 + Fixed bug wherein HTML preceding a code block could cause it to
13616 be parsed as a paragraph. The problem is that the HTML parser
13617 used to eat all blank space after an HTML block, including the
13618 indentation of the code block. (Resolves Issue #39.)
13619 - In Text.Pandoc.Readers.HTML, removed parsing of following space
13620 from rawHtmlBlock.
13621 - In Text.Pandoc.Readers.Markdown, modified rawHtmlBlocks so that
13622 indentation is eaten *only* on the first line after the HTML
13623 block. This means that in
13624 <div>
13625 foo
13626 <div>
13627 the foo won't be treated as a code block, but in
13628 <div>
13630 foo
13632 </div>
13633 it will. This seems the right approach for least surprise.
13635 * RST reader:
13637 + Fixed bug in parsing explicit links (resolves Issue #44).
13638 The problem was that we were looking for inlines until a '<' character
13639 signaled the start of the URL; so, if you hit a reference-style link,
13640 it would keep looking til the end of the document. Fix: change
13641 inline => (notFollowedBy (char '`') >> inline). Note that this won't
13642 allow code inlines in links, but these aren't allowed in resT anyway.
13644 + Cleaned up parsing of reference names in key blocks and links.
13645 Allow nonquoted reference links to contain isolated '.', '-', '_', so
13646 so that strings like 'a_b_' count as links.
13648 + Removed unnecessary check for following link in str.
13649 This is unnecessary now that link is above str in the definition of
13650 'inline'.
13652 * HTML reader:
13654 + Modified rawHtmlBlock so it parses </html> and </body> tags.
13655 This allows these tags to be handled correctly in Markdown.
13656 HTML reader now uses rawHtmlBlock', which excludes </html> and </body>,
13657 since these are handled in parseHtml. (Resolves Issue #38.)
13659 + Fixed bug (emph parser was looking for `<IT>` tag, not `<I>`).
13661 + Don't interpret contents of style tags as markdown.
13662 (Resolves Issue #40.)
13663 - Added htmlStyle, analogous to htmlScript.
13664 - Use htmlStyle in htmlBlockElement and rawHtmlInline.
13665 - Moved "script" from the list of tags that can be either block or
13666 inline to the list of block tags.
13668 + Modified rawHtmlBlock to use anyHtmlBlockTag instead of anyHtmlTag
13669 and anyHtmlEndTag. This fixes a bug in markdown parsing, where
13670 inline tags would be included in raw HTML blocks.
13672 + Modified anyHtmlBlockTag to test for (not inline) rather than
13673 directly for block. This allows us to handle e.g. docbook in
13674 the markdown reader.
13676 * LaTeX reader: Properly recognize --parse-raw in rawLaTeXInline.
13677 Updated LaTeX reader test to use --parse-raw.
13679 * HTML writer:
13681 + Modified rules for automatic HTML header identifiers to
13682 ensure that identifiers begin with an alphabetic character.
13683 The new rules are described in README. (Resolves Issue #33.)
13685 + Changed handling of titles in HTML writer so you don't get
13686 "titleprefix - " followed by nothing.
13688 * ConTeXt writer: Use wrappers around Doc elements to ensure proper
13689 spacing. Each block element is wrapped with either Pad or Reg.
13690 Pad'ed elements are guaranteed to have a blank line in between.
13692 * RST writer:
13694 + Refactored RST writer to use a record instead of a tuple for state,
13695 and to include options in state so it doesn't need to be passed as
13696 a parameter.
13698 + Use an interpreted text role to render math in restructuredText.
13699 See http://www.american.edu/econ/itex2mml/mathhack.rst for the
13700 strategy.
13702 [ Recai Oktaş ]
13704 * Debian packaging changes:
13706 + Remove the empty 'include' directory in -dev package, which lintian
13707 complains about.
13708 + Bump Standarts-Version to 3.7.3.
13709 + Use new 'Homepage:' field to specify the upstream URL on suggestion of
13710 lintian.
13712 -- Recai Oktaş <roktas@debian.org> Tue, 08 Jan 2008 05:13:31 +0200
13714pandoc (0.45) unstable; urgency=low
13716 [ John MacFarlane ]
13718 * Simplified parsing of reference keys and notes in markdown and RST
13719 readers: The Reference data structure from Text.Pandoc.Shared is no
13720 longer needed, since referenceKey and noteBlock parses return strings
13721 (as many blank lines as were occupied by the key or note) and update
13722 state themselves. getPosition and setPosition are now used to ensure
13723 that error messages will give the correct line number. This yields
13724 cleaner (and slightly faster) code, with more accurate parsing error
13725 messages.
13727 * Added new Math inline element:
13729 + Markdown and LaTeX readers now convert TeX math into Math elements,
13730 not TeX.
13731 + This allows math to be treated differently from raw TeX in output.
13732 TeX elements are no longer printed in output formats other than
13733 Markdown, LaTeX, and ConTeXt. But Math elements are always printed.
13735 * New default handling of math in writers:
13737 + New module Text.Pandoc.Readers.TeXMath exports readTeXMath, which
13738 parses raw TeX math and outputs a string of Pandoc inlines that
13739 tries to render it as far as possible using unicode characters,
13740 lapsing into literal TeX when needed.
13741 + readTeXMath is now used for default HTML output in HTML, S5, RTF,
13742 and Docbook, if no other method for displaying math in HTML is
13743 specified. Enclosing $'s are no longer printed by default.
13744 + By default, math is put inside `<span class="math">`. This way it can be
13745 distinguished from the surrounding text, e.g. put in a different
13746 font.
13748 * New --gladtex and --mimetex options for display of math in HTML:
13750 + If --gladtex is specified, math is output between `<eq>` tags, so
13751 it can be processed by gladTeX.
13752 + If --mimetex is specified, math is put in `<img>` tags with a link
13753 to the mimetex CGI script (or any other script that takes TeX math
13754 as input and outputs an image). The URL of the script may be
13755 specified, but defaults to /cgi-bin/mimetex.cgi.
13756 + HTMLMathMethod structure in WriterOptions keeps track of how to
13757 display math in HTML output.
13758 + Updated README with a description of the four options for displaying
13759 math in HTML.
13761 * HTML reader:
13763 + Fixed bug: parser for minimized attributes should not swallow
13764 trailing spaces.
13765 + Simplified HTML attribute parsing.
13766 + Changed parsing of code blocks in HTML reader: `<code>` tag is no
13767 longer needed. `<pre>` suffices. All HTML tags in the code block
13768 (e.g. for syntax highlighting) are skipped, because they are not
13769 portable to other output formats. A `<code>...</code>` block not
13770 surrounded by `<pre>` now counts as inline HTML, not a code block.
13771 + Remove just one leading and one trailing newline from contents of
13772 `<pre>...</pre>` in codeBlock parser.
13774 * Markdown reader:
13776 + Removed support for box-style block quotes.
13777 + Require space before title in links and references.
13778 This fixes a bug in parsing URLs like http://silly/url(withparen).
13779 + Improved and simplified setextHeader parser.
13780 + Fixed logic in smart quote parsing, adding some needed 'try'
13781 statements.
13782 + Fixed smart quote parsing so that unicode characters 8216 and 8217
13783 are recognized as single quotes, and 8220 and 8221 as double quotes.
13785 * RST reader:
13787 + Fixed bug in parsing of code blocks. Previously a full tab indent
13788 was required, but RST allows code to be indented any amount.
13789 Resolves Issue #27.
13790 + Allow field lists to be indented.
13791 + Parse the contents of field lists instead of treating as a raw string.
13792 + Represent field lists as definition lists instead of blockquotes.
13793 + Fixed bug in which metadata would be overridden if the document
13794 contained multiple field lists.
13795 + Parse fields associated with '.. image::' blocks, and use 'alt'
13796 field, if given, for image alt and title attributes.
13798 * LaTeX reader:
13800 + Modified specialChar so that '"' characters are parsed.
13801 + Fixed a bug in parsing of \[ \] math blocks (thanks to Mark Kalderon).
13803 * HTML writer:
13805 + Changes in handling of math (see above).
13806 + Don't produce HTML for table of contents if there are
13807 no headers. (This would be an empty list, which is invalid XHTML.)
13809 * Markdown writer:
13811 + Don't print title attribute if title is empty. (This differs from
13812 the behavior of Markdown.pl, and agrees with PHP Markdown. But John
13813 Gruber has indicated that he prefers this behavior.) Adjusted test
13814 suite accordingly.
13815 + Fixed incorrect line wrapping in paragraphs including hard line
13816 breaks. Resolves Issue #25.
13817 + Fixed bug in markdown writer: If an ordered list item began with
13818 a marker greater than 3 characters in width, and the item took more
13819 than one line, it would appear on the line after the list marker,
13820 e.g.:
13822 (12)
13823 My list item.
13824 Multiline.
13826 Now it works as follows:
13828 (12) My list item.
13829 Multiline.
13831 * RST writer
13833 + Fixed bug in RST writer's handling of ordered lists. Previously,
13834 list items with multiple lines would not always line up with
13835 single-line list items. Now, list items are nested the length of
13836 the list marker + 1. This looks better and ensures that list items
13837 all line up. (Note that list markers are padded to the length of
13838 the longest list marker in the series.)
13839 + Use 3-space indent for unordered lists.
13840 + If label for a link reference contains a colon, surround it by `
13841 signs so it won't be interpreted as the end of the link label.
13843 * LaTeX writer:
13845 + Cleaner output for footnotes. Footnotes now always begin on a new
13846 line, and the final } is on a line by itself only when it needs to
13847 be (i.e. only when the note ends with a Verbatim environment).
13848 + Added writer options to state, so state doesn't need to be passed as
13849 a parameter.
13850 + Text wrapping now provided, using wrapTeXIfNeeded.
13852 * ConTeXt writer: many improvements for more idiomatic ConTeXt output
13853 (thanks to Idris Samawi Hamid for suggestions).
13855 + PrettyPrint module now used for output.
13856 + Writer options are now in state, so they don't have to be passed as
13857 a parameter.
13858 + Text wrapping now provided, using wrapTeXIfNeeded.
13859 + Better treatment of footnotes: footnotes are always on lines by
13860 themselves, and the final } is on a line by itself only when
13861 it needs to be (after \stoptyping).
13862 + Use \subject, \subsubject, ... or \section, \subsection, ... for headings,
13863 depending on whether --number-sections option is selected.
13864 + Extra blank line inserted after \stopitemize
13865 + Use new, "official" definition of blockquote environment. Also, use
13866 blank line after \startblockquote to balance blank line at the end.
13867 + Both itemized and enumerated lists are now generated using
13868 \start-stopitemize, with appropriate options. Removed definitions
13869 of ltxenum and ltxitem, which are no longer needed. Provided
13870 defaults for itemized lists in the preamble. State keeps track of
13871 ordered list level, so that when default numbering is specified,
13872 the appropriate scheme can be used.
13873 + Changed \useurl to \useURL.
13874 + Changed link color from red to blue.
13875 + Use \subsubsubsubsection etc., since these are supported
13876 (up to at least sub x 5).
13878 * Text.Pandoc.Shared:
13880 + Save and restore position in parseFromString, so that accurate
13881 error messages can be given.
13882 + Improved efficiency of romanNumeral parser.
13883 + Added wrappedTeX and wrapTeXIfNeeded functions. These ensure
13884 that footnotes occur on lines by themselves (to make them
13885 easier to see and move) and do not screw up line wrapping.
13887 * Text.Pandoc.UTF8: modified fromUTF8 to strip out the BOM
13888 if present. Windows Notepad and other applications insert a
13889 BOM at the beginning of a UTF8 file.
13891 * Main.hs (tabFilter): Treat '\r' at end of line as newline (in
13892 addition to "\r\n" and '\n').
13894 * Added a writer option for wrapped text and a command-line option
13895 '--no-wrap', which disables text wrapping and minimizes whitespace
13896 in HTML. (Resolves Issue #26.)
13898 + Added support for '--no-wrap' to Main.hs.
13899 + Added wrapIfNeeded function to Text.Pandoc.Shared.
13900 + Use wrapIfNeeded instead of wrapped in the RST, Man, Docbook, and
13901 Markdown writers.
13902 + Added render and renderFragment helpers to HTML writer.
13904 * Modified html2markdown to run tidy only if the HTML cannot be
13905 parsed. Previously html2markdown piped all input through tidy
13906 before passing it to pandoc. This caused problems on certain pages
13907 (e.g. http://daringfireball.com/markdown) which have well-formed
13908 XHTML that causes tidy to choke. The solution is to pipe through
13909 tidy only if pandoc cannot parse the input by itself. This means
13910 that a temp file is now always used, even when input comes from a
13911 local file or standard input.
13913 * Removed 'version' constant from Main.hs; added 'pandocVersion' to
13914 Text.Pandoc library.
13916 * pandoc.cabal:
13918 + Modified to work with GHC 6.8 and Cabal configurations. (For GHC
13919 6.8, pretty and containers must be added to Build-Depends, and it
13920 is desirable to use the -O2 compiler option.) Cabal configurations
13921 allows one to select options depending on the compiler version.
13922 For GHC 6.6, the splitBase option can be disabled.
13923 + pandoc.cabal.ghc66 is provided for users with older versions of
13924 Cabal, which do not support configurations.
13925 + Use Ghc-Prof-Options to ensure that '-auto-all' is used when
13926 '--enable-(executable|library)-profiling' is specified. Updated
13927 PROFILING instructions accordingly.
13929 * Makefile:
13931 + Makefile now checks GHC version. If GHC is 6.6, pandoc.cabal.ghc66
13932 is copied to pandoc.cabal, and the old pandoc.cabal is copied
13933 to pandoc.cabal.orig. Otherwise, pandoc.cabal is copied to
13934 pandoc.cabal.orig but otherwise unmodified. This way, the Makefile
13935 will work properly with either GHC 6.6 or 6.8.
13936 + Changed BUILDCONF to point to dist/setup-config, not .setup-config.
13937 This is where current versions of Cabal put it.
13938 + Added $(BUILDCMD) target, so setup doesn't get compiled every time.
13939 + Removed dependency of templates on ./templates, which is circular
13940 now that templates is a subdirectory of the top-level.
13942 * MacPorts Portfile:
13944 + Modified to install the pandoc library in addition to programs.
13945 + Installation must be done manually rather than using Makefile's
13946 install-all.
13947 + Note that the library must be registered in the activate phase,
13948 after the library files have been copied out of the destroot.
13949 Cabal generates a 'register.sh' script that will do this.
13951 * debian/control: Added libghc6-network-dev, libghc6-xhtml-dev, and
13952 libghc6-mtl-dev as dependencies for libghc6-pandoc-dev.
13953 Closes: #445235
13955 * debian/rules: Converted to UTF-8.
13957 * Changed pandoc home page to http://johnmacfarlane.net/pandoc/.
13959 * Updated ASCIIMathML.js to latest version.
13961 * Directory structure:
13963 + Moved everything from src into the top-level directory.
13964 + Changed references to source directory in Makefile and
13965 pandoc.cabal.*.
13966 + Moved ASCIIMathML.js, headers, and ui into templates directory.
13967 + Modified fillTemplates.pl to reflect new paths.
13969 [ Recai Oktaş ]
13971 * Makefile: Fixed the issue of having two copies of the library
13972 documentation under some usage scenarios.
13974 * Replaced 'ghc' with '$(GHC)' in Makefile, and made GHC
13975 and GHC_PKG configurable through the environment, to support
13976 unusual ghc installations. For example:
13977 GHC=/opt/ghc/bin/ghc GHC_PKG=/opt/ghc/bin/ghc-pkg make
13979 -- Recai Oktaş <roktas@debian.org> Sun, 07 Oct 2007 20:51:43 +0300
13981pandoc (0.44) unstable; urgency=low
13983 [ John MacFarlane ]
13985 * Fixed bug in HTML writer: when --toc was used, anchors were put around
13986 headers, which is invalid XHTML (block content within inline element).
13987 Now the anchors are put inside the header tags. Resolves Issue #23.
13989 * Added xmlns attribute to html element in html writer tests.
13990 This attribute is added by more recent versions of the
13991 xhtml library (>= 3000), and is required for valid XHTML.
13993 [ Recai Oktaş ]
13995 * On configure, compile 'Setup.hs' to 'setup' and use 'setup' as the build
13996 command instead of 'runhaskell', which, on some platforms (such as s390,
13997 alpha, m68k), throws the following error:
13999 runhaskell Setup.hs configure --prefix=/usr
14000 ghc-6.6.1: not built for interactive use
14002 This causes a serious FTBFS bug. Closes: #440668.
14004 -- Recai Oktaş <roktas@debian.org> Mon, 03 Sep 2007 18:24:02 +0300
14006pandoc (0.43) unstable; urgency=low
14008 [ John MacFarlane ]
14010 * The focus of this release is performance. The markdown parser
14011 is about five times faster than in 0.42, based on benchmarks
14012 with the TextMate manual.
14014 * Main.hs: Replaced CRFilter and tabFilter with single function
14015 tabFilter, which operates on the whole string rather than breaking
14016 it into lines, and handles dos-style line-endings as well as tabs.
14018 * Added separate LaTeX reader and native reader tests; removed
14019 round-trip tests.
14021 * Text.Pandoc.Shared:
14023 + Removed tabsToSpaces and tabsInLine (they were used only in Main.hs.)
14024 + General code cleanup (to elimante warnings when compiling with -Wall.)
14025 + Added 'wrapped' function, which helps wrap text into paragraphs,
14026 using the prettyprinting library.
14027 + Rewrote charsInBalanced and charsInBalanced'.
14028 - Documented restriction: open and close must be distinct characters.
14029 - Rearranged options for greater efficiency.
14030 - Bug fix: Changed inner call to charsInBalanced inside
14031 charsInBalanced' to charsInBalanced'.
14032 + anyLine now requires that the line end with a newline (not eof).
14033 This is a harmless assumption, since we always add newlines to the
14034 end of a block before parsing with anyLine, and it yields a 10% speed
14035 boost.
14036 + Removed unnecessary 'try' in anyLine.
14037 + Removed unneeded 'try' from romanNumeral parser.
14038 + Use notFollowedBy instead of notFollowedBy' in charsInBalanced.
14039 + Removed unneeded 'try' in parseFromString.
14040 + Removed unneeded 'try' from stringAnyCase. (Now it behaves
14041 like 'string'.)
14042 + Changed definition of 'enclosed' in Text.Pandoc.Shared so that
14043 'try' is not automatically applied to the 'end' parser. Added
14044 'try' in calls to 'enclosed' where needed. Slight speed increase.
14046 * Writers:
14048 + Replaced individual wrapping routines in RST, Man, and Markdown
14049 writers with 'wrapped' from Text.Pandoc.Shared.
14050 + Rewrote LaTeX writer to use the prettyprinting library,
14051 so we get word wrapping, etc.
14052 + Modified latex writer tests for new latex writer using prettyprinter.
14053 + Fixed bug in LaTeX writer: autolinks would not cause
14054 '\usepackage{url}' to be put in the document header. Also, changes
14055 to state in enumerated list items would be overwritten.
14056 + In Markdown writer, escape paragraphs that begin with ordered list
14057 markers, so they don't get interpreted as ordered lists.
14059 * Text.Pandoc.Reades.LaTeX:
14061 + Fixed bug in LaTeX reader, which wrongly assumed that the roman
14062 numeral after "enum" in "setcounter" would consist entirely of
14063 "i"s. 'enumiv' is legitimate.
14064 + LaTeX command and environment names can't contain numbers.
14065 + Rearranged order of parsers in inline for slight speed improvement.
14066 + Added '`' to special characters and 'unescapedChar'.
14068 * Text.Pandoc.Readers.RST:
14070 + Removed unneeded try's in RST reader; also minor code cleanup.
14071 + Removed tabchar.
14072 + Rearranged parsers in inline (doubled speed).
14074 * Text.Pandoc.Readers.Markdown:
14076 + Skip notes parsing if running in strict mode. (This yields a nice
14077 speed improvement in strict mode.)
14078 + Simplify autolink parsing code, using Network.URI to test for
14079 URIs. Added dependency on network library to debian/control and
14080 pandoc.cabal.
14081 + More perspicuous definition of nonindentSpaces.
14082 + Removed unneeded 'try' in 'rawLine'.
14083 + Combined linebreak and whitespace into a new whitespace parser, to
14084 avoid unnecessary reparsing of space characters.
14085 + Removed unnecessary 'try' in 'codeBlock', 'ellipses', 'noteMarker',
14086 'multilineRow', 'dashedLine', 'rawHtmlBlocks'.
14087 + Use lookAhead in parsers for setext headers and definition lists
14088 to see if the next line begins appropriately; if not, don't waste
14089 any more time parsing.
14090 + Don't require blank lines after code block. (It's sufficient to
14091 end code block with a nonindented line.)
14092 + Changed definition of 'emph': italics with '_' must not
14093 be followed by an alphanumeric character. This is to help
14094 prevent interpretation of e.g. `[LC_TYPE]: my_type` as
14095 `[LC<em>TYPE]:my</em>type`.
14096 + Improved Markdown.pl-compatibility in referenceLink: the two parts
14097 of a reference-style link may be separated by one space, but not
14098 more... [a] [link], [not] [a link].
14099 + Fixed markdown inline code parsing so it better accords with
14100 Markdown.pl: the marker for the end of the code section is a clump
14101 of the same number of `'s with which the section began, followed
14102 by a non-` character. So, for example,
14103 ` h ``` i ` -> `<code>h ``` i</code>`.
14104 + Split 'title' into 'linkTitle' and 'referenceTitle', since the
14105 rules are slightly different.
14106 + Rewrote 'para' for greater efficiency.
14107 + Rewrote link parsers for greater efficiency.
14108 + Removed redundant 'referenceLink' in definition of inline (it's
14109 already in 'link').
14110 + Refactored escapeChar so it doesn't need 'try'.
14111 + Refactored hrule for performance in Markdown reader.
14112 + More intelligent rearranging of 'inline' so that most frequently
14113 used parsers are tried first.
14114 + Removed tabchar parser, as whitespace handles tabs anyway.
14116 * Text.Pandoc.CharacterReferences:
14118 + Refactored.
14119 + Removed unnecessary 'try's for a speed improvement.
14120 + Removed unnecessary '&' and ';' from the entity table.
14122 * Build process:
14124 + Makefile: Get VERSION from cabal file, not Main.hs.
14125 + Modified MacPorts Portfile:
14126 - Depend on haddock
14127 - Build and install libraries and library documentation in
14128 addition to pandoc executable
14129 - Added template item for md5 sum in Portfile.in.
14130 - Incorporated changes from MacPorts repository (r28278).
14131 + FreeBSD port: Don't try to generate distinfo in Makefile.
14132 It can be made using 'make makesum' in FreeBSD.
14133 + Make both freebsd and macports targets depend on tarball.
14135 * Website and documentation:
14137 + Updated INSTALL instructions.
14138 + Added pandocwiki demo to website.
14139 + Removed local references to Portfile, since pandoc is now in the
14140 MacPorts repository.
14142 -- Recai Oktaş <roktas@debian.org> Sun, 02 Sep 2007 15:50:11 +0300
14144pandoc (0.42) unstable; urgency=low
14146 [ John MacFarlane ]
14148 * Main.hs: Use utf8 conversion on the extra files loaded with
14149 the -H, -C, -B, and -A options. This fixes problems with unicode
14150 characters in these files.
14152 * Exposed Text.Pandoc.ASCIIMathML, since it is imported in
14153 Text.Pandoc.Readers.HTML and without it we get a linking error when
14154 using the library.
14156 * Markdown reader:
14158 + Added new rule for enhanced markdown ordered lists: if the list
14159 marker is a capital letter followed by a period (including a
14160 single-letter capital roman numeral), then it must be followed by
14161 at least two spaces. The point of this is to avoid accidentally
14162 treating people's initials as list markers: a paragraph might begin,
14163 "B. Russell was an English philosopher," and this shouldn't be
14164 treated as a list. Documented change in README.
14165 + Blocks that start with "p. " and a digit are no longer treated
14166 as ordered lists (it's a page number).
14167 + Added a needed 'try' to listItem.
14168 + Removed check for a following setext header in endline.
14169 A full test is too inefficient (doubles benchmark time), and the
14170 substitute we had before is not 100% accurate.
14171 + Don't use Code elements for autolinks if --strict specified.
14173 * LaTeX writer: When a footnote ends with a Verbatim environment, the
14174 close } of the footnote cannot occur on the same line or an error occurs.
14175 Fixed this by adding a newline before the closing } of every footnote.
14177 * HTML writer:
14178 + Removed incorrect "{}" around style information in HTML tables.
14179 Column widths now work properly in HTML.
14180 + If --strict option is specified (and --toc is not), don't include
14181 identifiers in headers, for better Markdown compatibility.
14183 * Build process:
14185 + Separated $(web_dest) and website targets.
14186 + In website, index.txt is now constructed from template index.txt.in.
14187 + Added freebsd target to Markefile. This creates the freebsd Makefile
14188 from Makefile.in, and creates distinfo. Removed Makefile and distinfo
14189 from the repository.
14190 + Added macport target to Makefile. Portfile is built from template
14191 Portfile.in.
14192 + Removed OSX package targets. (Too many difficulties involving
14193 dependencies on dynamic libraries.)
14194 + More complete INSTALL instructions for all architectures.
14196 * Website:
14197 + Added a programming demo, pandocwiki.
14199 [ Recai Oktaş ]
14201 * Do not forget to close pandoc's ITP. Closes: #391666
14203 -- Recai Oktaş <roktas@debian.org> Sun, 26 Aug 2007 22:51:32 +0300
14205pandoc (0.41) unstable; urgency=low
14207 [ John MacFarlane ]
14209 * Fixed bugs in HTML reader:
14210 + Skip material at end *only if* `</html>` is present (previously,
14211 only part of the document would be parsed if an error was
14212 found; now a proper error message is given).
14213 + Added new constant eitherBlockOrInline with elements that may
14214 count either as block-level or as inline. Modified isInline and
14215 isBlock to take this into account.
14216 + Modified rawHtmlBlock to accept any tag (even an inline tag):
14217 this is innocuous, because rawHtmlBlock is tried only if a regular
14218 inline element can't be parsed.
14219 + Added a necessary 'try' in definition of 'para'.
14221 * Fixed bug in markdown ordered list parsing. The problem was that
14222 anyOrderedListStart did not check for a space following the
14223 ordered list marker. So in 'A.B. 2007' the parser would be
14224 expecting a list item, but would not find one, causing an error.
14225 Fixed a similar bug in the RST reader. Resolves Issue #22.
14227 * Refactored RST and Markdown readers using parseFromString.
14229 * LaTeX reader will now skip anything after \end{document}.
14231 * Fixed blockquote output in markdown writer: previously, block
14232 quotes in indented contexts would be indented only in the first
14233 line.
14235 * Added note to INSTALL about variations in versions of the xhtml
14236 library that can lead to failed tests (thanks to Leif LeBaron).
14238 -- Recai Oktaş <roktas@debian.org> Sun, 19 Aug 2007 23:26:07 +0300
14240pandoc (0.4) unstable; urgency=low
14242 [ John MacFarlane ]
14244 * Added two new output formats: groff man pages and ConTeXt. By
14245 default, output files with extensions ".ctx" and ".context" are
14246 assumed to be ConTeXt, and output files with single-digit extensions
14247 are assumed to be man pages.
14249 * Enhanced ordered lists (documented in README, under Lists):
14250 + The OrderedList block element now stores information about
14251 list number style, list number delimiter, and starting number.
14252 + The readers parse this information when possible.
14253 + The writers use this information to style ordered lists.
14254 + The enhancement can be disabled using the --strict option.
14256 * Added support for tables (with a new Table block element). Two kinds
14257 of tables are supported: a simple table with one-line rows, and a
14258 more complex variety with multiline rows. All output formats are
14259 supported, but only markdown tables are parsed at the moment. The
14260 syntax is documented in README.
14262 * Added support for definition lists (with a new DefinitionList block
14263 element). All output and input formats are supported. The syntax is
14264 documented in README.
14266 * Added support for superscripts and subscripts (with new Superscript
14267 and Subscript inline elements). All input and output
14268 formats. The syntax is documented in README.
14270 * Added support for strikeout (with a new Strikeout inline element).
14271 All input and output formats are supported. Thanks to Bradley Kuhn,
14272 who contributed a patch. The syntax is documented in README. Resolves
14273 Issue #18.
14275 * Added a --toc|--table-of-contents option. This causes an automatically
14276 generated table of contents (or an instruction that creates one) to
14277 be inserted at the beginning of the document. Not supported in S5,
14278 DocBook, or man page writers.
14280 * Modified the -m|--asciimathml option:
14282 + If an optional URL argument is provided, a link is inserted
14283 instead of the contents of the ASCIIMathML.js script.
14284 + Nothing is inserted unless the document actually contains
14285 LaTeX math.
14287 * Removed Blank block element as unnecessary.
14289 * Removed Key and Note blocks from the Pandoc data structure. All
14290 links are now stored as explicit links, and note contents are
14291 stored with the (inline) notes.
14293 + All link Targets are now explicit (URL, title) pairs; there
14294 is no longer a 'Ref' target.
14295 + Markdown and RST parsers now need to extract data from key and
14296 note blocks and insert them into the relevant inline elements.
14297 Other parsers have been simplified, since there is no longer any need
14298 to construct separate key and note blocks.
14299 + Markdown, RST, and HTML writers need to construct lists of
14300 notes; Markdown and RST writers need to construct lists of link
14301 references (when the --reference-links option is specified); and
14302 the RST writer needs to construct a list of image substitution
14303 references. All writers have been rewritten to use the State monad
14304 when state is required.
14305 + Several functions (generateReference, keyTable,
14306 replaceReferenceLinks, replaceRefLinksBlockList, and some auxiliaries
14307 used by them) have been removed from Text.Pandoc.Shared, since
14308 they are no longer needed. New functions and data structures
14309 (Reference, isNoteBlock, isKeyBlock, isLineClump) have been
14310 added. The functions inTags, selfClosingTag, inTagsSimple, and
14311 inTagsIndented have been moved to the DocBook writer, since that
14312 is now the only module that uses them. NoteTable is now exported
14313 in Text.Pandoc.Shared.
14314 + Added stateKeys and stateNotes to ParserState; removed stateKeyBlocks,
14315 stateKeysUsed, stateNoteBlocks, stateNoteIdentifiers, stateInlineLinks.
14316 + Added writerNotes and writerReferenceLinks to WriterOptions.
14318 * Added Text.Pandoc module that exports basic readers, writers,
14319 definitions, and utility functions. This should export everything
14320 needed for most uses of Pandoc libraries. The haddock documentation
14321 includes a short example program.
14323 * Text.Pandoc.ASCIIMathML is no longer an exported module.
14325 * Added Text.Pandoc.Blocks module to help in printing markdown
14326 and RST tables. This module provides functions for working with
14327 fixed-width blocks of text--e.g., placing them side by side, as
14328 in a table row.
14330 * Refactored to avoid reliance on Haskell's Text.Regex library, which
14331 (a) is slow, and (b) does not properly handle unicode. This fixed
14332 some strange bugs, e.g. in parsing S-cedilla, and improved performance.
14334 + Replaced 'gsub' with a general list function 'substitute'
14335 that does not rely on Text.Regex.
14336 + Rewrote extractTagType in HTML reader so that it doesn't use
14337 regexs.
14338 + In Markdown reader, replaced email regex test with a custom email
14339 autolink parser (autoLinkEmail). Also replaced selfClosingTag regex
14340 with a custom function isSelfClosingTag.
14341 + Modified Docbook writer so that it doesn't rely on Text.Regex for
14342 detecting 'mailto' links.
14343 + Removed escapePreservingRegex and reamped entity-handling
14344 functions in Text.Pandoc.Shared and Text.Pandoc.CharacterReferences to
14345 avoid reliance on Text.Regex (see below on character reference
14346 handling changes).
14348 * Renamed Text.Pandoc.Entities as Text.Pandoc.CharacterReferences.
14350 * Changed handling of XML entities. Entities are now parsed (and unicode
14351 characters returned) in the Markdown and HTML readers, rather than being
14352 handled in the writers. In HTML and Docbook writers, UTF-8 is now used
14353 instead of entities for characters above 128. This makes the HTML and
14354 DocBook output much more readable and more easily editable.
14356 + Removed sgmlHexEntity, sgmlDecimalEntity, sgmlNamedEntity, and
14357 sgmlCharacterEntity regexes from Text.Pandoc.Shared.
14358 + Renamed escapeSGMLChar to escapeCharForXML. Added escapeStringForXML.
14359 Moved both functions to Text.Pandoc.Writers.Docbook.
14360 + Added characterReference parser to Text.Pandoc.CharacterReferences.
14361 This parses a string and return a unicode character.
14362 + Rewrote decodeCharacterReferences to use the new parser instead of
14363 Text.Regex.
14364 + Added new charRef parser for Markdown and HTML, which replaces the
14365 old 'entity' parser. Added '&' as a special character in Markdown reader.
14366 + Modified HTML and Markdown readers to call decodeEntities on all raw
14367 strings (e.g. authors, dates, link titles), to ensure that no
14368 unprocessed entities are included in the native representation of
14369 the document. (In the HTML reader, most of this work is done by a
14370 change in extractAttributeName.)
14371 + In XML and Markdown output, escape unicode nonbreaking space as '&nbsp;',
14372 since a unicode non-breaking space is impossible to distinguish visually
14373 from a regular space. (Resolves Issue #3.)
14374 + Removed encodeEntitiesNumerical.
14375 + Use Data.Map for entityTable and (new) reverseEntityTable, for a
14376 slight performance boost over the old association list.
14377 + Removed unneeded decodeEntities from 'str' parser in HTML and
14378 Markdown readers.
14380 * Text.Pandoc.UTF8: Renamed encodeUTF8 to toUTF8, decodeUTF8 to
14381 fromUTF8, for clarity.
14383 * Replaced old haskell98 module names replaced by hierarchical module
14384 names, e.g. List by Data.List. Removed haskell98 from dependencies
14385 in pandoc.cabal, and added mtl (needed for state monad). Substituted
14386 xhtml for html.
14388 * Refactored and cleaned up character escaping in writers, using
14389 backslashEscapes and escapeStringUsing functions.
14391 * Instead of adding "\n\n" to the end of an input string in Main.hs,
14392 this is now done in the readers. This makes the libraries behave
14393 the way you'd expect from the pandoc program. Resolves Issue #10.
14395 * URLs and email addresses in autolinks are now typeset as Code.
14397 * In Main.hs, changed putStr to putStrLn -- mainly because MacOS X
14398 doesn't display the whole output unless there's a line ending.
14400 * Major code cleanup in all modules, for greater consistency, concision,
14401 and readability.
14403 * HTML reader:
14405 + Fixed several bugs (extractTagType, attribute parsing).
14406 + Remove Null blocks in lists of blocks when possible.
14407 + Allow HTML comments as raw HTML inline.
14409 * Markdown reader:
14411 + Ordered list items may no longer begin with uppercase letters, or
14412 letters greater than 'n'. (This prevents first initials and page
14413 reference, e.g. 'p. 400', from being parsed as beginning lists.)
14414 Also, numbers beginning list items may no longer end with ')',
14415 which is now allowed only after letters. Note: These changes
14416 may cause documents to be parsed differently. Users should take
14417 care in upgrading.
14418 + Changed autoLink parsing to conform better to Markdown.pl's
14419 behavior. `<google.com>` is not treated as a link, but
14420 `<http://google.com>`, `<ftp://google.com>`, and
14421 `<mailto:google@google.com>` are.
14422 + Cleaned up handling of embedded quotes in link titles. Now these are
14423 stored as a '"' character, not as '&quot;'.
14424 + Use lookAhead parser for the 'first pass' (looking for reference keys),
14425 instead of parsing normally, then using setInput to reset input. This
14426 yields a slight performance boost.
14427 + Fixed several bugs in smart quote recognition.
14428 + Fixed bug in indentSpaces (which didn't properly handle
14429 cases with mixed spaces and tabs).
14430 + Consolidated 'text', 'special', and 'inline' into 'inline'.
14431 + Fixed bug which allowed URL and title to be separated by multiple blank
14432 lines in links and reference keys. They can be on separate lines but
14433 can't have blank lines between them.
14434 + Correctly handle bracketed text inside inline footnotes and links,using
14435 new function inlinesInBalanced. Resolves Issue #14.
14436 + Fixed bug in footnotes: links in footnotes were not being
14437 processed. Solution: three-stage parse. First, get all the
14438 reference keys and add information to state. Next, get all the
14439 notes and add information to state. (Reference keys may be needed
14440 at this stage.) Finally, parse everything else.
14441 + Replaced named constants like 'emphStart' with literals.
14442 + Removed an extra occurrence of escapedChar in definition of inline.
14444 * RST reader:
14446 + Allow the URI in a RST hyperlink target to start on the line
14447 after the reference key.
14448 + Added 'try' in front of 'string', where needed, or used a different
14449 parser. This fixes a bug where ````` would not be correctly parsed as
14450 a verbatim `.
14451 + Fixed slow performance in parsing inline literals in RST reader. The
14452 problem was that ``#`` was seen by 'inline' as a potential link or image.
14453 Fix: inserted 'notFollowedBy (char '`')' in link parsers.
14454 Resolves Issue #8.
14455 + Use lookAhead instead of getInput/setInput in RST reader. Removed
14456 unneeded getState call, since lookAhead automatically saves and
14457 restores the parser state.
14458 + Allow hyperlink target URIs to be split over multiple lines, and
14459 to start on the line after the reference. Resolves Issue #7.
14460 + Fixed handling of autolinks.
14462 * LaTeX reader:
14464 + Replaced 'choice [(try (string ...), ...]' idiom with 'oneOfStrings',
14465 for clarity.
14466 + Added clauses for tilde and caret. Tilde is \ensuremath{\sim}, and
14467 caret is \^{}, not \^ as before.
14468 + Added parsing for \url.
14469 + Parse \texttt{} as code, provided there's nothing fancy inside.
14471 * HTML writer:
14473 + Modified HTML writer to use the Text.XHtml library. This results
14474 in cleaner, faster code, and it makes it easier to use Pandoc in
14475 other projects, like wikis, which use Text.XHtml. Two functions are
14476 now provided, writeHtml and writeHtmlString: the former outputs an
14477 Html structure, the latter a rendered string. The S5 writer is also
14478 changed, in parallel ways (writeS5, writeS5String).
14479 + The Html header is now written programmatically, so it has been
14480 removed from the 'headers' directory. The S5 header is still
14481 needed, but the doctype and some of the meta declarations have
14482 been removed, since they are written programmatically. This change
14483 introduces a new dependency on the xhtml package.
14484 + Fixed two bugs in email obfuscation involving improper escaping
14485 of '&' in the `<noscript>` section and in `--strict` mode. Resolves
14486 Issue #9.
14487 + Fixed another bug in email obfuscation: If the text to be obfuscated
14488 contains an entity, this needs to be decoded before obfuscation.
14489 Thanks to thsutton for the patch. Resolves Issue #15.
14490 + Changed the way the backlink is displayed in HTML footnotes.
14491 Instead of appearing on a line by itself, it now generally
14492 appears on the last line of the note. (Exception: when the
14493 note does not end with a Plain or Para block.) This saves space
14494 and looks better.
14495 + Added automatic unique identifiers to headers:
14496 - The identifier is derived from the header via a scheme
14497 documented in README.
14498 - WriterState now includes a list of header identifiers and a table
14499 of contents in addition to notes.
14500 - The function uniqueIdentifiers creates a list of unique identifiers
14501 from a list of inline lists (e.g. headers).
14502 - This list is part of WriterState and gets consumed by blockToHtml
14503 each time a header is encountered.
14504 + Include CSS for .strikethrough class in header only if strikethrough
14505 text appears in the document.
14506 + If the 'strict' option is specified, elements that do not appear in
14507 standard markdown (like definition lists) are passed through as
14508 raw HTML.
14509 + Simplified treatment of autolinks, using pattern matching instead of
14510 conditionals.
14512 * Markdown writer:
14514 + Links in markdown output are now printed as inline links by default,
14515 rather than reference links. A --reference-links option has been added
14516 that forces links to be printed as reference links. Resolves Issue #4.
14517 + Use autolinks when possible. Instead of `[site.com](site.com)`,
14518 use `<site.com>`.
14520 * LaTeX writer:
14522 + Rewrote to use the State monad. The preamble now includes only those
14523 packages that are actually required, given the document's content.
14524 Thus, for example, if strikeout is not used, ulem is not required.
14525 Modified LaTeXHeader accordingly.
14526 + Modified LaTeX writer to insert '\,' between consecutive quotes.
14527 + Removed unused function tableRowColumnWidths.
14528 + Simplified code for escaping special characters.
14529 + Leave extra blank line after \maketitle.
14530 + Include empty '\author{}' when no author specified to avoid LaTeX
14531 errors.
14532 + Include fancyvrb code in header only if needed -- that is, only
14533 if there is actually code in a footnote.
14534 + Use \url{} for autolinks.
14535 + Include [mathletters] option in ucs package, so that basic unicode
14536 Greek letters will work correctly.
14538 * RST writer: Force blank line before lists, so that sublists will
14539 be handled correctly.
14541 * Docbook writer: Fixed a bug: email links with text, like
14542 [foo](me@bar.baz), were being incorrectly treated as autolinks.
14544 * Removed Text.ParserCombinators.Pandoc and moved all its functions to
14545 Text.Pandoc.Shared.
14547 * Text.Pandoc.Shared:
14549 + Added defaultWriterOptions.
14550 + Added writerTableOfContents to WriterOptions.
14551 + Added writerIgnoreNotes option to WriterOptions. This is needed
14552 for processing header blocks for a table of contents, since notes on
14553 headers should not appear in the TOC.
14554 + Added prettyprinting for native Table format.
14555 + Removed some unneeded imports.
14556 + Moved escape and nullBlock parsers from
14557 Text.ParserCombinators.Pandoc, since the latter is for
14558 general-purpose parsers that don't depend on Text.Pandoc.Definition.
14559 + Moved isHeaderBlock from Text.Pandoc.Writers.HTML.
14560 + Moved Element, headerAtLeast, and hierarchicalize from Docbook
14561 writer, because HTML writer now uses these in constructing a table
14562 of contents.
14563 + Added clauses for new inline elements (Strikeout, Superscript,
14564 Subscript) to refsMatch.
14565 + Removed backslashEscape; added new functions escapeStringUsing and
14566 backslashEscapes.
14567 + Moved failIfStrict from markdown reader, since it is now used also
14568 by the HTML reader.
14569 + Added a 'try' to the definition of indentSpaces.
14570 + In definition of 'reference', added check to make sure it's not a note
14571 reference.
14572 + Added functions: camelCaseToHyphenated, toRomanNumeral,
14573 anyOrderedListMarker, orderedListmarker, orderedListMarkers,
14574 charsInBalanced', withHorizDisplacement, romanNumeral
14575 + Fixed a bug in the anyLine parser. Previously it would parse an empty
14576 string "", but it should fail on an empty string, or we get an error
14577 when it is used inside "many" combinators.
14578 + Removed followedBy' parser, replacing it with the lookAhead parser from
14579 Parsec.
14580 + Added some needed 'try's before multicharacter parsers, especially in
14581 'option' contexts.
14582 + Removed the 'try' from the 'end' parser in 'enclosed', so that
14583 'enclosed' behaves like 'option', 'manyTill', etc.
14584 + Added lineClump parser, which parses a raw line block up to and
14585 including any following blank lines.
14586 + Renamed parseFromStr to parseFromString.
14587 + Added a 'try' to the 'end' parser in 'enclosed'. This makes errors in
14588 the use of 'enclosed' less likely. Removed some now-unnecessary 'try's
14589 in calling code.
14590 + Removed unneeded 'try' in blanklines.
14591 + Removed endsWith function and rewrote calling functions to use
14592 isSuffixOf instead.
14593 + Added >>~ combinator.
14594 + Fixed bug in normalizeSpaces: Space:Str "":Space should compress to
14595 Space.
14597 * Refactored runtests.pl; added separate tests for tables.
14599 * Shell scripts:
14601 + Added -asxhtml flag to tidy in html2markdown. This will
14602 perhaps help the parser, which expects closing tags.
14603 + Modified markdown2pdf to run pdflatex a second time if --toc or
14604 --table-of-contents was specified; otherwise the table of
14605 contents won't appear.
14606 + Modified markdown2pdf to print a helpful message if the 'ulem'
14607 LaTeX package is required and not found.
14609 * Changes to build process:
14611 + Dropped support for compilation with GHC 6.4. GHC 6.6 or higher
14612 is now required.
14613 + Removed cabalize and Pandoc.cabal.in. The repository now contains
14614 pandoc.cabal itself.
14615 + Pandoc.cabal has been changed to pandoc.cabal, because HackageDB
14616 likes the cabal file to have the same name as the tarball.
14617 + Expanded and revised the package description in pandoc.cabal.
14618 Revised the package synopsis.
14619 + The tarball built by 'make tarball' now contains files built from
14620 templates (including man pages and shell scripts), so pandoc can
14621 be built directly using Cabal tools, without preprocessing.
14622 + Executable binaries are now stripped before installing.
14623 + Man pages are now generated from markdown sources, using pandoc's
14624 man page writer.
14625 + Use HTML version of README (instead of RTF) in Mac OS X installer.
14626 + Instead of testing for the existence of a pandoc symlink in build-exec,
14627 use ln -f.
14629 * Documentation:
14631 + Updated README and man pages with information on new features.
14632 + Updated INSTALL instructions with some useful clarifications and
14633 links.
14634 + Updated web content.
14636 * Added FreeBSD port.
14638 [ Recai Oktaş ]
14640 * debian/control:
14642 + Changed pandoc's Build-Depends to include libghc6-mtl-dev and
14643 libghc6-xhtml-dev. Removed libghc6-html-dev.
14644 + Suggest texlive-latex-recommended | tetex-extra instead of
14645 tetex-bin. This brings in fancyvrb and unicode support.
14647 -- Recai Oktaş <roktas@debian.org> Tue, 16 Jan 2007 00:37:21 +0200
14649pandoc (0.3) unstable; urgency=low
14651 [ John MacFarlane ]
14653 * Changes in pandoc options:
14655 + Allow options to follow or precede arguments.
14656 + Changed '--smartypants' to '--smart' and adjusted symbols accordingly.
14657 + Added '--strict' option.
14658 + Added '-o/--output' option.
14659 + Added '--dump-args' and '--ignore-args' options (for use in wrappers).
14660 + Modified '-v' and '-h' output to go to STDERR, not STDOUT, and return
14661 error conditions. This is helpful for writing wrappers.
14662 + Added copyright message to '-v' output, modeled after FSF messages.
14663 + Reformatted usage message so that it doesn't wrap illegibly.
14664 + Removed extra blanks after '-h' and '-D' output.
14666 * Added docbook writer.
14668 * Added implicit setting of default input and output format based
14669 on input and output filename extensions. These defaults are
14670 overridden if explicit input and output formats are specified using
14671 '-t', '-f', '-r', or '-w' options. Documented in pandoc(1) man page
14672 and README.
14674 * Allow ordered list items to begin with (single) letters, as well
14675 as numbers. The list item marker may now be terminated either by
14676 '.' or by ')'. This extension to standard markdown is documented
14677 in README.
14679 * Revised footnote syntax. (See README for full details.) The
14680 '[^1]' format now standard in markdown extensions is supported,
14681 as are inline footnotes with this syntax: `^[My note.]`.
14682 The earlier footnote syntax `^(1)` is no longer supported.
14684 * Improved HTML representation of footnotes. All footnotes
14685 are now auto-numbered and appear in an ordered list at the
14686 end of the HTML document. Since the default appearance is now
14687 acceptable, the old footnote styles have been removed from the
14688 HTML header.
14690 * Bug fixes:
14692 + Fixed a serious bug in the markdown, LaTeX, and RST readers.
14693 These readers ran 'runParser' on processed chunks of text to handle
14694 embedded block lists in lists and quotation blocks. But then
14695 any changes made to the parser state in these chunks was lost,
14696 as the state is local to the parser. So, for example, footnotes
14697 didn't work in quotes or list items. The fix: instead of calling
14698 runParser on some raw text, use setInput to make it the input, then
14699 parse it, then use setInput to restore the input to what it was
14700 before. This is shorter and more elegant, and it fixes the problem.
14701 + Fixed bug in notFollowedBy' combinator (adding 'try' before
14702 'parser'). Adjusted code that uses this combinator accordingly.
14703 + Fixed bug in RTF writer that caused improper indentation on
14704 footnotes occurring in indented blocks like lists.
14705 + Fixed parsing of metadata in LaTeX reader. Now the title, author,
14706 and date are parsed correctly. Everything else in the preamble
14707 is skipped.
14708 + Modified escapedChar in LaTeX reader to allow a '\' at the end of a
14709 line to count as escaped whitespace.
14710 + Modified LaTeX reader to produce inline links rather than reference
14711 links. Otherwise, links in footnotes aren't handled properly.
14712 + Fixed handling of titles in links in Markdown reader, so that
14713 embedded quotation marks are now handled properly.
14714 + Fixed Markdown reader's handling of embedded brackets in links.
14715 + Fixed Markdown reader so that it only parses bracketed material
14716 as a reference link if there is actually a corresponding key.
14717 + Revised inline code parsing in Markdown reader to conform to
14718 markdown standard. Now any number of `s can begin inline code,
14719 which will end with the same number of `s. For example, to
14720 have two backticks as code, write ``` `` ```. Modified Markdown
14721 writer accordingly.
14722 + Fixed bug in text-wrapping routine in Markdown and RST writers.
14723 Now LineBreaks no longer cause wrapping problems.
14724 + Supported hexadecimal numerical entity references as well as
14725 decimal ones.
14726 + Fixed bug in Markdown reader's handling of underscores and other
14727 inline formatting markers inside reference labels: for example,
14728 in '[A_B]: /url/a_b', the material between underscores was being
14729 parsed as emphasized inlines.
14730 + Changed Markdown reader's handling of backslash escapes so that
14731 only non-alphanumeric characters can be escaped. Strict mode
14732 follows Markdown.pl in only allowing a select group of punctuation
14733 characters to be escaped.
14734 + Modified HTML reader to skip a newline following a `<br>` tag.
14735 Otherwise the newline will be treated as a space at the beginning
14736 of the next line.
14738 * Made handling of code blocks more consistent. Previously, some
14739 readers allowed trailing newlines, while others stripped them.
14740 Now, all readers strip trailing newlines in code blocks. Writers
14741 insert a newline at the end of code blocks as needed.
14743 * Modified readers to make spacing at the end of output more consistent.
14745 * Minor improvements to LaTeX reader:
14747 + '\thanks' now treated like a footnote.
14748 + Simplified parsing of LaTeX command arguments and options.
14749 commandArgs now returns a list of arguments OR options (in
14750 whatever order they appear). The brackets are included, and
14751 a new stripFirstAndLast function is provided to strip them off
14752 when needed. This fixes a problem in dealing with \newcommand
14753 and \newenvironment.
14755 * Revised RTF writer:
14757 + Default font is now Helvetica.
14758 + An '\f0' is added to each '\pard', so that font resizing works
14759 correctly.
14761 * Moved handling of "smart typography" from the writers to the Markdown
14762 and LaTeX readers. This allows great simplification of the writers
14763 and more accurate smart quotes, dashes, and ellipses. DocBook can
14764 now use `<quote>`. The '--smart' option now toggles an option in
14765 the parser state rather than a writer option. Several new kinds
14766 of inline elements have been added: Quoted, Ellipses, Apostrophe,
14767 EmDash, EnDash.
14769 * Changes in HTML writer:
14771 + Include title block in header even when title is null.
14772 + Made javascript obfuscation of emails even more obfuscatory,
14773 by combining it with entity obfuscation.
14775 * Changed default ASCIIMathML text color to black.
14777 * Test suite:
14779 + Added --strip-trailing-cr option to diff in runtests.pl, for
14780 compatibility with Windows.
14781 + Added regression tests with footnotes in quote blocks and lists.
14783 * Makefile changes:
14785 + osx-pkg target creates a Mac OS X package (directory). New osx
14786 directory contains files needed for construction of the package.
14787 + osx-dmg target creates a compressed disk image containing the package.
14788 + win-pkg target creates Windows binary package.
14789 + tarball target creates distribution source tarball.
14790 + website target generates pandoc's website automatically, including
14791 demos. New 'web' directory contains files needed for construction
14792 of the website (which will be created as the 'pandoc' subdirectory
14793 of 'web').
14794 + Makefile checks to see if we're running Windows/Cygwin; if so,
14795 a '.exe' extension is added to each executable in EXECS.
14797 * Removed all wrappers except markdown2pdf and html2markdown.
14799 * Added new wrapper hsmarkdown, to be used as a drop-in replacement
14800 for Markdown.pl. hsmarkdown calls pandoc with the '--strict'
14801 option and disables other options.
14803 * Added code to html2markdown that tries to determine the character
14804 encoding of an HTML file, by parsing the "Content-type" meta tag.
14806 + If the encoding can't be determined, then if the content is local,
14807 the local encoding is used; if it comes from a URL, UTF-8 is used
14808 by default.
14809 + If input is from STDIN, don't try to determine character encoding.
14810 + Encoding can be specified explicitly using '-e' option.
14812 * Improved warning messages in wrappers:
14814 + Print warning if iconv not available
14815 + More user-friendly error messages in markdown2pdf, when
14816 pdflatex fails.
14818 * Code cleanup:
14820 + Renamed 'Text/Pandoc/HtmlEntities' module to
14821 'Text/Pandoc/Entities'. Also changed function names so as
14822 not to be HTML-specific.
14823 + Refactored SGML string escaping functions from HTML and Docbook
14824 writers into Text/Pandoc/Shared. (escapeSGML, stringToSGML)
14825 + Removed 'BlockQuoteContext' from ParserContext, as it isn't
14826 used anywhere.
14827 + Removed splitBySpace and replaced it with a general, polymorphic
14828 splitBy function.
14829 + Refactored LaTeX reader for clarity (added isArg function).
14830 + Converted some CR's to LF's in src/ui/default/print.css.
14831 + Added license text to top of source files.
14832 + Added module data for haddock to source files.
14833 + Reformatted code for consistency.
14835 * Rewrote documentation and man pages. Split README into INSTALL
14836 and README.
14838 * Split LICENSE into COPYING and COPYRIGHT.
14840 * Removed TODO, since we now maintain ToDo on the wiki.
14842 * Made COPYRIGHT in top level a symlink to debian/copyright, to avoid
14843 duplication.
14845 [ Recai Oktaş ]
14847 * Revamped build process to conform to debian standards and created
14848 a proper debian package. Closes: #391666.
14850 * Modified build process to support GHC 6.6.
14852 + The package can still be compiled using GHC 6.4.2, though because
14853 of dependencies the "make deb" target works only with GHC 6.6+.
14854 + The script 'cabalize' is used to create an appropriate
14855 'Pandoc.cabal' from 'Pandoc.cabal.in', depending on the GHC and
14856 Cabal versions.
14858 * Refactored template processing (fillTemplates.pl).
14860 * Modified wrapper scripts to make them more robust and portable.
14861 To avoid code duplication and ensure consistency, wrappers are
14862 generated via a templating system from templates in src/wrappers.
14864 + Wrappers now accept multiple filenames, when appropriate.
14865 + Spaces and tabs allowed in filenames.
14866 + getopts shell builtin is used for portable option parsing.
14867 + Improved html2markdown's web grabber code, making it more robust,
14868 configurable and verbose. Added '-e', '-g' options.
14870 -- Recai Oktaş <roktas@debian.org> Fri, 05 Jan 2007 09:41:19 +0200
14872pandoc (0.2) unstable; urgency=low
14874 * Fixed unicode/utf-8 translation
14876 -- John MacFarlane <jgm@berkeley.edu> Mon, 14 Aug 2006 00:00:00 -0400
14878pandoc (0.1) unstable; urgency=low
14880 * Initial creation of debian package
14882 -- John MacFarlane <jgm@berkeley.edu> Mon, 14 Aug 2006 00:00:00 -0400