5 * New output format `ms` (groff ms). Complete support, including
6 tables, math, syntax highlighting, and PDF bookmarks. The writer uses
7 texmath's new eqn writer to convert math to eqn format, so a ms file
8 produced with this writer should be processed with `groff -ms -e` if
11 * New output format `jats` (Journal Article Tag Suite). This is an XML
12 format used in archiving and publishing articles. Note that a
13 URI-encoded CSL stylesheet (`data/jats.csl`) is added automatically
14 unless a stylesheet is specified using `--css`.
16 * New output format `gfm` (GitHub-flavored CommonMark) (#3841).
17 This uses bindings to GitHub's fork of cmark, so it should parse
18 gfm exactly as GitHub does (excepting certain postprocessing
19 steps, involving notifications, emojis, etc.). `markdown_github`
20 has been deprecated in favor of `gfm`.
22 * New output format `muse` (Emacs Muse) (Alexander Krotov, #3489).
24 * New input format `gfm` (GitHub-flavored CommonMark) (#3841).
25 This uses bindings to GitHub's fork of cmark. `markdown_github`
26 has been deprecated in favor of `gfm`.
28 * New input format `muse` (Emacs Muse) reader (Alexander Krotov, #3620).
30 * New input format `tikiwiki` (TikiWiki markup) (rlpowell, #3800).
32 * New input format `vimwiki` (Vimwiki markup) (Yuchen Pei, #3705).
33 Note that there is a new data file, `data/vimwiki.css`, which can
34 be used to display the HTML produced by this reader and
35 pandoc's HTML writer in the style of vimwiki's own HTML
38 * New input format `creole` (Creole 1.0) (#3994, Sascha Wilde).
40 * New syntax for Divs, with `fenced_divs` extension enabled by
41 default (#168). This gives an attractive, plain-text way to create
42 containers for block-level content.
44 * Added new syntax for including raw content in any output format,
45 enabled by the `raw_attribute` extension (which is on by default
46 for `markdown` and `multimarkdown`). The syntax is the same as
47 for fenced code blocks or code inlines, only with `{=FORMAT}` for
48 attributes, where `FORMAT` is the name of the output format
51 * Implement multicolumn support for slide formats (#1710).
52 The structure expected is:
55 <div class="column" width="40%">
58 <div class="column" width="60%">
63 Support has been added for beamer and all HTML slide formats.
65 * Allows line comments in templates, beginning with `$--` (#3806).
66 (Requires doctemplates 0.2.1.)
68 * Add `--eol=crlf|lf|native` flag and writer option to control line endings
69 (Stefan Dresselhaus, #3663, #2097).
71 * Add `--log` option to save log messages in JSON format to a file (#3392).
73 * Add `--request-header` option, to set request headers when pandoc
74 makes HTTP requests to fetch external resources. For example:
75 `--request-header User-Agent:blah`.
77 * Added lua filters (Albert Krewinkel, #3514). The new `--lua-filter`
78 option works like `--filter` but takes pathnames of special lua filters
79 and uses the lua interpreter baked into pandoc, so that no external
80 interpreter is needed. Note that lua filters are all applied after
81 regular filters, regardless of their position on the command line.
82 For documentation of lua filters, see `doc/lua-filters.md`.
84 * Set `PANDOC_READER_OPTIONS` in environment where filters are run.
85 This contains a JSON representation of `ReaderOptions`, so filters
88 * Support creation of pdf via groff `ms` and pdfroff.
89 `pandoc -t ms -o output.pdf input.txt`.
91 * Support for PDF generation via HTML and `weasyprint` or `prince`
92 (Mauro Bieg, #3909). `pandoc -t html5 -o output.pdf --pdf-engine=prince`.
94 * Added `--epub-subdirectory` option (#3720). This specifies the
95 subdirectory in the OCF container that holds the EPUB specific content.
96 We now put all EPUB related content in an `EPUB/` subdirectory by default
97 (later this will be configurable).
102 com.apple.ibooks.display-options.xml
104 EPUB/ <<--configurable-->>
105 fonts/ <<--static-->>
107 media/ <<--static-->>
110 styles/ <<--static-->>
118 * Added `--resource-path=SEARCHPATH` command line option (#852).
119 SEARCHPATH is separated by the usual character, depending on OS
120 (: on unix, ; on windows). Default resource path is just working
121 directory. However, the working directory must be explicitly
122 specified if the `--resource-path` option is used.
124 * Added --abbreviations=FILE option for custom abbreviations file
125 (#256). Dfault abbreviations file (`data/abbreviations`) contains
126 a list of strings that will be recognized by pandoc's
127 Markdown parser as abbreviations. (A nonbreaking space will
128 be inserted after the period, preventing a sentence space in
129 formats like LaTeX.) Users can override the default by putting a file
130 abbreviations in their user data directory (`~/.pandoc` on *nix).
132 * Allow a theme file as argument to `--highlight-style`.
133 Also include a sample, `default.theme`, in `data/`.
135 * Allow `--syntax-definition` option for dynamic loading of syntax
136 highlighting definitions (#3334).
138 * Lists in `markdown` by default now use the CommonMark variable
139 nesting rules (#3511). The indentation required for a block-level
140 item to be included in a list item is no longer fixed, but is
141 determined by the first line of the list item. To be included in
142 the list item, a block must be indented to the level of the first
143 non-space content after the list marker. Exception: if are 5 or more
144 spaces after the list marker, then the content is interpreted as an
145 indented code block, and continuation paragraphs must be indented
146 two spaces beyond the end of the list marker. See the CommonMark
147 spec for more details and examples.
149 Documents that adhere to the four-space rule should, in most cases,
150 be parsed the same way by the new rules. Here are some examples
151 of texts that will be parsed differently:
156 will be parsed as a list item with a sublist; under the four-space
157 rule, it would be a list with two items.
163 Here we have an indented code block under the list item, even though it
164 is only indented six spaces from the margin, because it is four spaces
165 past the point where a continuation paragraph could begin. With the
166 four-space rule, this would be a regular paragraph rather than a code
173 Here the code block will start with two spaces, whereas under
174 the four-space rule, it would start with `code`. With the four-space
175 rule, indented code under a list item always must be indented eight
176 spaces from the margin, while the new rules require only that it
177 be indented four spaces from the beginning of the first non-space
178 text after the list marker (here, `a`).
180 This change was motivated by a slew of bug reports from people
181 who expected lists to work differently (#3125, #2367, #2575, #2210,
182 #1990, #1137, #744, #172, #137, #128) and by the growing prevalance
183 of CommonMark (now used by GitHub, for example). Those who
184 prefer the old behavior can use `-f markdown+four_space_rule`.
186 * Added `four_space_rule` extension. This triggers the old pandoc
187 parsing rule for content nested under list items (the "four space
190 * Added `spaced_reference_links` extension (#2602). It allows whitespace
191 between the two parts of a reference link: e.g.
197 This was previously enabled by default; now it is now forbidden by default.
199 * Add `space_in_atx_header` extension (#3512). This is enabled by default
200 in pandoc and GitHub markdown but not the other flavors.
201 This requirse a space between the opening #'s and the header
202 text in ATX headers (as CommonMark does but many other implementations
203 do not). This is desirable to avoid falsely capturing things ilke
211 * Add `sourcefile` and `outputfile` template variables (Roland Hieber,
214 * Allow ibooks-specific metadata in epubs (#2693). You can now have
215 the following fields in your YAML metadata, and it will be treated
216 appropriately in the generated EPUB:
221 specified-fonts: false
222 ipad-orientation-lock: portrait-only
223 iphone-orientation-lock: landscape-only
225 scroll-axis: vertical
231 * Reader functions no longer presuppose that CRs have been
232 stripped from the input. (They strip CRs themselves, before
233 parsing, to simplify the parsers.)
235 * Added support for translations (localization) (#3559).
236 Currently this only affects the LaTeX reader, for things
237 like `\figurename`. Translation data files for 46 languages
238 can be found in `data/translations`.
240 * Make `--ascii` work with DocBook output too.
242 * Rename `--latex-engine` to `--pdf-engine`,
243 and `--latex-engine-opt` to `--pdf-engine-opt`.
245 * Removed `--parse-raw` and `readerParseRaw`. These were confusing.
246 Now we rely on the `+raw_tex` or `+raw_html` extension with latex or html
247 input. Thus, instead of `--parse-raw -f latex` we use `-f latex+raw_tex`,
248 and instead of `--parse-raw -f html` we use `-f html+raw_html`.
250 * With `--filter` R filters are now recognized, even if they are
251 not executable (#3940, #3941, Andrie de Vries).
253 * Support SVG in PDF output, converting with `rsvg2pdf` (#1793).
255 * Make epub an alias for epub3, not epub2.
257 * Removed `--epub-stylesheet`; use `--css` instead (#3472, #847).
258 Multiple stylesheets may be used. Stylesheets will be taken both from
259 `--css` and from the `stylesheet` metadata field (which can contain
260 either a file path or a list of them).
262 * `--mathml` and MathML in HTMLMathMethod no longer take an argument.
263 The argument was for a bridge JavaScript that used to be necessary
264 in 2004. We have removed the script already.
266 * `--katex` improvements. The latest version is used, and the
267 autoload script is loaded by default.
269 * Change MathJax CDN default since old one is shutting down (#3544).
270 Note: The new URL requires a version number, which we'll have
271 to update manually in subsequent pandoc releases in order to
272 take advantage of mathjax improvements.
274 * `--self-contained`: don't incorporate elements with `data-external="1"`
275 (#2656). You can leave an external link as it is by adding the attribute
276 data-external="1" to the element. Pandoc will then not try to
277 incorporate its content when `--self-contained` is used. This is
278 similar to a feature already supported by the EPUB writer.
280 * Allow `--extract-media` to work with non-binary input formats
281 (#1583, #2289). If `--extract-media` is supplied with a non-binary
282 input format, pandoc will attempt to extract the contents of all
283 linked images, whether in local files, data: uris, or external uris.
284 They will be named based on the sha1 hash of the contents.
286 * Make `papersize: a4` work regardless of the case of `a4`.
287 It is converted to `a4` in LaTeX and `A4` in ConTeXt.
289 * Make `east_asian_line_breaks` affect all readers/writers (#3703).
291 * Underlined elements are now treated consistently by readers
292 (#2270, hftf); they are always put in a Span with class `underline`.
293 This allows the user to treat them differently from other emphasis,
294 using a filter. Docx, Org, Textile, Txt2Tags, and HTML readers
297 * Improved behavior of `auto_identifiers` when there are explicit ids
298 (#1745). Previously only autogenerated ids were added to the list
299 of header identifiers in state, so explicit ids weren't taken
300 into account when generating unique identifiers. Duplicated
301 identifiers could result. This simple fix ensures that explicitly given
302 identifiers are also taken into account.
304 * Use `table-of-contents` for contents of toc, make `toc` a boolean
305 (#2872). Changed markdown, rtf, and HTML-based templates accordingly.
306 This allows you to set `toc: true` in the metadata; this
307 previously produced strange results in some output formats.
308 For backwards compatibility, `toc` is still set to the
309 toc contents. But it is recommended that you update templates
310 to use `table-of-contents` for the toc contents and `toc`
313 * Change behavior with binary format output to stdout.
314 Previously, for binary formats, output to stdout was disabled
315 unless we could detect that the output was being piped (and not
316 sent to the terminal). Unfortunately, such detection is not
317 possible on Windows, leaving windows users no way to pipe binary
318 output. So we have changed the behavior in the following way:
320 + Output to stdout is allowed when it can be determined that
321 the output is being piped (on non-Windows platforms).
322 + If the `-o` option is not used, binary output is never sent
323 to stdout by default; instead, an error is raised.
324 + If `-o -` is used, binary output is sent to stdout, regardless
325 of whether it is being piped. This works on Windows too.
327 * Better error behavior: uses of `error` have been replaced by
328 raising of `PandocError`, which can be trapped and handled by the
331 * Removed `hard_line_breaks` extension from `markdown_github` (#3594).
332 GitHub has two Markdown modes, one for long-form documents like READMEs
333 and one for short things like issue coments. In issue comments, a line
334 break is treated as a hard line break. In README, wikis, etc., it is
335 treated as a space as in regular Markdown. Since pandoc is more likely to
336 be used to convert long-form documents from GitHub Markdown,
337 `-hard_line_breaks` is a better default.
339 * Include `backtick_code_blocks` extension in `mardkown_mmd` (#3637).
341 * Escape `MetaString` values (as added with `-M/--metadata` flag) (#3792).
342 Previously they would be transmitted to the template without any
343 escaping. Note that `--M title='*foo*'` yields a different result from
349 In the latter case, we have emphasis; in the former case, just
350 a string with literal asterisks (which will be escaped
351 in formats, like Markdown, that require it).
353 * Allow `em`, `cm`, `in` for image height/width in HTML, LaTeX (#3450).
355 * HTML writer: Insert `data-` in front of unsupported attributes. Thus,
356 a span with attribute `foo` gets written to HTML5 with `data-foo`, so
357 it is valid HTML5. HTML4 is not affected. This will allow us to use
358 custom attributes in pandoc without producing invalid HTML. (With help
359 from Wandmalfarbe, #3817.)
361 * Plain writer: improved super/subscript rendering. We now
362 handle more non-digit characters for which there are
363 sub/superscripted unicode characters. When unicode
364 sub/superscripted characters are not available, we use
365 `_(..)` or `^(..)` (#3518).
367 * Docbook, JATS, TEI writers: print INFO message when omitting interior
368 header (#3750). This only applies to section headers inside list items,
369 e.g., which were otherwise silently omitted.
371 * Change to `--reference-links` in Markdown writer (#3701). With
372 `--reference-location` of `section` or `block`, pandoc will now repeat
373 references that have been used in earlier sections. The Markdown
374 reader has also been modified, so that *exactly* repeated references
375 do not generate a warning, only references with the same label but
376 different targets. The idea is that, with references after every block,
377 one might want to repeat references sometimes.
379 * ODT/OpenDocument writer:
381 + Support `lang` attribute (#1667).
382 + Added support for `--toc` (#2836). Thanks to @anayrat.
386 + `lang` meta, see #1667 (Mauro Bieg, #3515).
387 + Change `FigureWithCaption` to `CaptionedFigure` (iandol, #3658).
388 + Use `Table` rather than `Table Normal` for table style (#3275).
389 `Table Normal` is the default table style and can't be modified.
390 + Pass through comments (#2994). We assume that comments are defined as
391 parsed by the docx reader:
393 I want <span class="comment-start" id="0" author="Jesse Rosenthal"
394 date="2016-05-09T16:13:00Z">I left a comment.</span>some text to
395 have a comment <span class="comment-end" id="0"></span>on it.
397 We assume also that the id attributes are unique and properly
398 matched between comment-start and comment-end.
399 + Bookmark improvements. Bookmark start/end now surrounds content rather
400 than preceding it. Bookmarks generated for Div with id
401 (jgm/pandoc-citeproc#205).
402 + Add `keywords` metadata to docx document properties (Ian).
404 * RST writer: support unknown interpreted text roles by
405 parsing them as `Span` with `role` attributes (#3407). This
406 way they can be manipulated in the AST.
410 + Line block: Use class instead of style attribute (#1623). We now
411 issue `<div class="line-block">` and include a default definition
412 for `line-block` in the default templates, instead of hard-coding a
414 + Add class `footnoteBack` to footnote back references (Timm Albers).
415 This allows for easier CSS styling.
416 + Render SmallCaps as span with smallcaps class (#1592), rather than
417 using a style attribute directly. This gives the user more flexibility
418 in styling small caps in CSS.
419 + With reveal.js we use `data-src` instead of `src` for images for
421 + Special-case `.stretch` class for images in reveal.js (#1291).
422 Now in reveal.js, an image with class `stretch` in a paragraph
423 by itself will stretch to fill the whole screen, with no
424 caption or figure environment.
426 * Added warnings for non-rendered blocks to writers.
428 * Writers now raise an error on template failure.
430 * When creating a PDF via LaTeX, warn if the font is missing some
433 * Remove initial check for PDF-creating program (#3819).
434 Instead, just try running it and raise the exception if it
435 isn't found at that point. This improves things for users of Cygwin
436 on Windows, where the executable won't be found by `findExecutable`
437 unless `.exe` is added. The same exception is raised as before, but
440 * Readers issue warning for duplicate header identifiers (#1745).
441 Autogenerated header identifiers are given suffixes so as not to clash
442 with previously used header identifiers. But they may still coincide with
443 an explicit identifier that is given for a header later in the document,
444 or with an identifier on a div, span, link, or image. We now issue
445 a warning in this case, so users can supply an explicit identifier.
447 * CommonMark reader now supports `emoji`, `hard_line_breaks`, `smart`,
448 and `raw_html` extensions.
452 + Don't allow backslash + newline to affect block structure (#3730).
453 Note that as a result of this change, the following, which formerly
454 produced a header with two lines separated by a line break, will
455 now produce a header followed by a paragraph:
460 This may affect some existing documents that relied on
461 this undocumented and unintended behavior. This change makes pandoc
462 more consistent with other Markdown implementations, and with itself
463 (since the two-space version of a line break doesn't work inside ATX
464 headers, and neither version works inside Setext headers).
467 * Org reader (Albert Krewinkel, unless noted):
469 + Support `table.el` tables (#3314).
470 + Support macros (#3401).
471 + Support the `#+INCLUDE:` file inclusion mechanism (#3510).
472 Recognized include types are `example`, `export`, `src`, and
473 normal org file inclusion. Advanced features like line numbers
474 and level selection are not implemented yet.
475 + Interpret more meta value as inlines. The values of the following
476 meta variables are now interpreted using org-markup instead of
477 treating them as pure strings: `keywords` (comma-separated list of
478 inlines), `subtitle` (inline values), `nocite` (inline values, can
480 + Support `\n` export option (#3940). This turns all newlines in the
481 text into hard linebreaks.
485 + Improved admonition support (#223). We no longer add an
486 `admonition` class, we just use the class for the type of admonition,
487 `note` for example. We put the word corresponding to the label in
488 a paragraph inside a `Div` at the beginning of the admonition with
489 class `admonition-title`. This is about as close as we can get to
491 + Initial support of `.. table` directive. This allows adding captions
493 + Support `.. line-block` directive. This is deprecated but may still
494 be in older documents.
495 + Support scale and align attributes of images (#2662).
496 + Implemented implicit internal header links (#3475).
497 + Support RST-style citations (#853). The citations appear at the end
498 of the document as a definition list in a special div with id
499 `citations`. Citations link to the definitions.
500 + Recurse into bodies of unknown directives (#3432).
501 In most cases it's better to preserve the content than
502 to emit it. This isn't guaranteed to have good results;
503 it will fail spectacularly for unknown raw or verbatim directives.
504 + Handle chained link definitions (#262). For example,
507 .. _goodbye: example.com
509 Here both `hello` and `goodbye` should link to `example.com`.
510 + Support anchors (#262). E.g.
518 This is supported by putting "paragraph" in a `Div` with id `hello`.
519 + Support `:widths:` attribute for table directive.
520 + Implement csv-table directive (#3533). Most attributes are supported,
521 including `:file:` and `:url:`.
522 + Support unknown interpreted text roles by parsing them as Span
523 with "role" attributes (#3407). This way they can be manipulated in
526 * HTML reader: parse a span with class `smallcaps` as `SmallCaps`.
530 + Implemented `\graphicspath` (#736).
531 + Properly handle column prefixes/suffixes. For example, in
532 `\begin{tabular}{>{$}l<{$}>{$}l<{$} >{$}l<{$}}`
533 each cell will be interpreted as if it has a `$`
534 before its content and a `$` after (math mode).
535 + Handle komascript `\dedication` (#1845). It now adds a
536 `dedication` field to metadata. It is up to the user to supply
537 a template that uses this variable.
538 + Support all `\textXX` commands, where XX = `rm`, `tt`, `up`, `md`,
539 `sf`, `bf` (#3488). Spans with a class are used when there is
541 + Expand `\newenvironment` macros (#987).
542 + Add support for LaTeX subfiles package (Marc Schreiber, #3530).
543 + Better support for subfigure package (#3577).
544 A figure with two subfigures turns into two pandoc
545 figures; the subcaptions are used and the main caption
546 ignored, unless there are no subcaptions.
547 + Add support for \vdots (Marc Schreiber, #3607).
548 + Add basic support for hyphenat package (Marc Schreiber, #3603).
549 + Add basic `\textcolor` support (Marc Schreiber).
550 + Add support for `tabularx` environment (Marc Schreiber, #3632).
551 + Better handling of comments inside math environments (#3113).
552 This solves a problem with commented out `\end{eqnarray}` inside
553 an eqnarray (among other things).
554 + Parse tikzpicture as raw verbatim environment if `raw_tex` extension
555 is selected (#3692). Otherwise skip with a warning. This is better
556 than trying to parse it as text!
557 + Add `\colorbox` support (Marc Schreiber).
558 + Set identifiers on Spans used for `\label`.
559 + Have `\setmainlanguage` set `lang` in metadata.
560 + Support etoolbox's `\ifstrequal`.
561 + Support `plainbreak`, `fancybreak` et al from the memoir class
563 + Support `\let`. Also, fix regular macros so they're expanded at the
564 point of use, and NOT also the point of definition. `\let` macros,
565 by contrast, are expanded at the point of definition. Added an
566 `ExpansionPoint` field to `Macro` to track this difference.
567 + Support simple `\def` macros. Note that we still don't support
568 macros with fancy parameter delimiters, like `\def\foo#1..#2{...}`.
569 + Support \chaptername, \partname, \abstractname, etc. (#3559,
571 + Put content of `\ref`, `\label`, `\eqref` commands into `Span` with
572 attributes, so they can be handled in filters (Marc Schreiber, #3639)
573 + Add Support for `glossaries` and `acronym` package (Marc Schreiber,
574 #3589). Acronyms are not resolved by the reader, but acronym and
575 glossary information is put into attributes on Spans so that they
576 can be processed in filters.
577 + Use `Link` instead of `Span` for `\ref`. This makes more sense
578 semantically and avoids unnecessary `Span [Link]` nestings when
579 references are resolved.
580 + Rudimentary support for `\hyperlink`.
581 + Support `\textquoteleft|right`, `\textquotedblleft|right` (#3849).
582 + Support `\lq`, `\rq`.
583 + Implement `\newtoggle`, `\iftoggle`, `\toggletrue|false` from etoolbox
585 + Support `\RN` and `\Rn`, from biblatex (bucklereed, #3854).
586 + Improved support for `\hyperlink`, `\hypertarget` (#2549).
587 + Support `\k` ogonek accent.
588 + Improve handling of accents. Handle ogonek, and fall back correctly
589 with forms like `\"{}`.
590 + Better support for ogonek accents.
591 + Support for `\faCheck` and `\faClose` (Marc Schreiber, #3727).
592 + Support for `xspace` (Marc Schreiber, #3797).
593 + Support `\setmainlanguage` or `\setdefaultlanguage` (polyglossia)
595 + Better handling of `\part` in LaTeX (#1905). Now we parse chapters as
596 level 0 headers, and parts as level -1 headers. After parsing, we
597 check for the lowest header level, and if it's less than 1 we bump
598 everything up so that 1 is the lowest header level. So `\part` will
599 always produce a header; no command-line options are needed.
600 + Add block version of `\textcolor` (Marc Schreiber).
601 + `\textcolor` works as inline and block command (Marc Schreiber).
602 + `\textcolor` will be parse as span at the beginning of a paragraph
604 + Read polyglossia/babel `\text(LANG){...}` (bucklereed)
605 + Improved handling of include files in LaTeX reader (#3971).
606 Previously `\include` wouldn't work if the included file
607 contained, e.g., a begin without a matching end.
608 + Support `\expandafter` (#3983).
609 + Handle `\DeclareRobustCommand` (#3983). Currently it's just treated
610 as a synonym for `\newcommand`.
611 + Handle `\lettrine` (Mauro Bieg).
613 * Math improvements due to updates in texmath:
615 + Improved handling of accents and upper/lower delimiters.
616 + Support for output in GNU eqn format (used with *roff).
617 + Allow `\boldsymbol` + a token without braces, and similarly
618 with other styling commands.
619 + Improve parsing of `\mathop` to allow multi-character operator names.
620 + Add thin space after math operators when "faking it with
623 * `walk` is now used instead of `bottomUp` in the `ToJSONFilter`
624 instance for `a -> [a]` (pandoc-types). Note that behavior
625 will be slightly different, since `bottomUp`'s treatment of
626 a function `[a] -> [a]` is to apply it to each sublist of a
627 list, while walk applies it only to maximal sublists.
628 Usually the latter behavior is what is wanted, and the
629 former can be simulated when needed. But there may be
630 existing filters that need to be rewritten in light of the
631 new behavior. Performance should be improved.
633 * There are some changes to syntax highlighting due to revisions
634 in the `skylighting` library:
636 + Support for `powershell` has been added, and many syntax
637 definitions have been updated.
638 + Background colors have been added to the `kate` style.
639 + The way highlighted code blocks are formatted in HTML has
640 been changed (David Baynard), in ways that may require
641 changes in hard-coded CSS affecting highlighting.
642 (If you haven't included hard-coded highlighting CSS in
643 your template, you needn't change anything.)
648 * New module `Text.Pandoc.Class` (Jesse Rosenthal, John MacFarlane).
649 This contains definitions of the `PandocMonad` typeclass, the
650 `PandocIO` and `PandocPure` monads, and associated functions.
652 * Changed types of all writers and readers.
654 + We now use `Text` instead of `String` in the interface (#3731).
655 (We have not yet changed the internals of most readers to work
656 with `Text`, but making this change in the API now opens up a
658 + The result is now of form `m a` with constraint `PandocMonad m`.
659 Readers and writers can be combined to form monadic values which
660 can be run using either `runIO` or `runPure`. If `runIO` is used,
661 then both readers and writers will be able to do IO when needed
662 (for include files, for example); if `runPure` is used,
663 then the functions are pure and will not touch IO.
664 + Where previously you used
665 `writeRST def (readMarkdown def "[foo](url)")`, now you
667 `runPure $ readMarkdown def (pack "[foo](url)") >>= writeRST def`.
669 * New module `Text.Pandoc.Readers` (Albert Krewinkel). This
670 contains reader helper functions formerly defined in the
671 top-level `Text.Pandoc` module.
673 + Changed `StringReader` -> `TextReader`.
674 + `getReader` now returns a pair of a reader and
675 `Extensions`, instead of building the extensions into the
676 reader (#3659). The calling code must explicitly set
677 `readerExtensions` using the `Extensions` returned. The
678 point of the change is to make it possible for the calling
679 code to determine what extensions are being used.
681 * New module `Text.Pandoc.Writers` (Albert Krewinkel).
682 This contains writer helper functions formerly defined in the
683 top-level `Text.Pandoc` module.
685 + Changed `StringWriter` -> `TextWriter`.
686 + `getWriter` now retuns a pair of a reader and
687 `Extensions`, instead of building the extensions into the
688 reader (#3659). The calling code must explicitly set
689 `readerExtensions` using the `Extensions` returned. The
690 point of the change is to make it possible for the calling
691 code to determine what extensions are being used.
693 * New module `Text.Pandoc.Lua`, exporting `runLuaFilter` (Albert Krewinkel,
696 * New module `Text.Pandoc.App`. This abstracts out the functionality
697 of the command line program (`convertWithOpts`), so it can be reproduced
698 e.g. in a desktop or web application. Instead of exiting, we throw errors
699 (#3548), which are caught (leading to exit) in pandoc.hs, but allow other
700 users of `Text.Pandoc.App` to recover. `pandoc.hs` is now a 2-liner.
701 The module also exports some utility functions for parsing options
704 * New module `Text.Pandoc.Logging` (exported module) (#3392).
705 This now contains the `Verbosity` definition previously in
706 `Text.Pandoc.Options`, as well as a new `LogMessage` datatype that will
707 eventually be used instead of raw strings for warnings. This will enable
708 us, among other things, to provide machine-readable warnings if desired.
709 Include ToJSON instance and showLogMessage. This gives us the possibility
710 of both machine-readable and human-readable output for log messages.
712 * New module `Text.Pandoc.BCP47`, with `getLang`, `Lang(..)`, `parseBCP47`.
714 * New module `Text.Pandoc.Translations`, exporting `Term`,
715 `Translations`, `readTranslations`.
717 * New module `Text.Pandoc.Readers.LaTeX.Types', exporting `Macro`, `Tok`,
718 `TokType`, `Line`, `Column`.
720 * `Text.Pandoc.Error`: added many new constructors for `PandocError`.
722 * Expose some previously private modules (#3260). These are often
723 helpful to people writing their own reader or writer modules:
725 + `Text.Pandoc.Writers.Shared`
726 + `Text.Pandoc.Parsing`
727 + `Text.Pandoc.Asciify`
728 + `Text.Pandoc.Emoji`
729 + `Text.Pandoc.ImageSize`
730 + `Text.Pandoc.Highlighting`
732 * New module `Text.Pandoc.Extensions` (Albert Krewinkel):
733 Extension parsing and processing functions were defined in the top-level
734 `Text.Pandoc` module. These functions are moved to the Extensions
735 submodule as to enable reuse in other submodules.
737 * Add `Ext_raw_attribute` constructor for `Extension`.
739 * Add `Ext_fenced_divs` constructor for `Extension'.
741 * Add `Ext_four_space_rule` constructor in `Extension`.
743 * Add `Ext_gfm_auto_identifiers` constructor for `Extension`.
745 * Add `Monoid` instance for `Extensions`.
747 * Add `Text.Pandoc.Writers.Ms`, exporting `writeMs`.
749 * Add `Text.Pandoc.Writers.JATS`, exporting `writeJATS`.
751 * Add `Text.Pandoc.Writers.Muse`, exporting `writeMuse`.
753 * Add `Text.Pandoc.Readers.Muse`, exporting `readMuse`.
755 * Add `Text.Pandoc.Readers.TikiWiki`, exporting `readTikiWiki`.
757 * Add `Text.Pandoc.Readers.Vimwiki`, exporting `readVimwiki`.
759 * Add `Text.Pandoc.Readers.Creole`, exporting `readCreole`.
761 * Export `setVerbosity` from `Text.Pandoc`.
763 * `Text.Pandoc.Pretty`: Add `Eq` instance for `Doc`.
765 * `Text.Pandoc.XML`: `toEntities`: changed type to `Text -> Text`.
767 * `Text.Pandoc.UTF8`:
769 + Export `fromText`, `fromTextLazy`, `toText`, `toTextLazy`.
770 Define `toString`, `toStringLazy` in terms of them.
771 + Add new functions parameterized on `Newline`: `writeFileWith`,
772 `putStrWith`, `putStrLnWith`, `hPutStrWith`, `hPutStrLnWith`.
774 * `Text.Pandoc.MediaBag`: removed `extractMediaBag`.
776 * `Text.Pandoc.Highlighting`:
778 + `highlighting` now returns an Either rather than Maybe.
779 This allows us to display error information returned by the skylighting
780 library. Display a warning if the highlighting library throws an error.
781 + Add parameter for `SyntaxMap` to `highlight`.
783 * `Text.Pandoc.Writers.Math`:
785 + Export `defaultMathJaxURL`, `defaultKaTeXURL`. This will ensure that
786 we only need to update these in one place.
788 * `Text.Pandoc.SelfContained`:
790 + Removed `WriterOptions` parameter from `makeSelfContained`.
791 + Put `makeSelfContained` in PandocMonad instead of IO. This removes
792 the need to pass MediaBag around and improves exceptions. It also
793 opens up the possibility of using makeSelfContained purely.
794 + Export `makeDataURI`.
796 * `Text.Pandoc.ImageSize`:
798 + Export `lengthToDim`, new function `scaleDimension`.
799 + Export `inEm` from ImageSize (#3450).
800 + Change `showFl` and `show` instance for `Dimension` so
801 extra decimal places are omitted.
802 + Added `Em` as a constructor of `Dimension`.
803 + Add `WriterOptions` parameter to `imageSize` signature (Mauro Bieg).
805 * `Text.Pandoc.Templates`:
807 + Change type of `renderTemplate'`. Now it runs in `PandocMonad`
808 and raises a proper `PandocTemplateError` if there are problems, rather
809 than failing with uncatchable `error`.
810 + Change signature of `getDefaultTemplate`. Now it runs in any instance
811 of `PandocMonad`, and returns a `String` rather than an `Either` value.
812 And it no longer takes a `datadir` parameter, since this can be
813 retrieved from `CommonState`.
815 * `Text.Pandoc.Options`:
817 + Added `writerEpubSubdirectory` to `WriterOptions` (#3720).
818 The EPUB writer now takes its EPUB subdirectory from this option.
819 + In `WriterOptions`, rename `writerLaTeXEngine` to `writerPdfEngine`
820 and `writerLaTeXArgs` to `writerPdfArgs` (Mauro Bieg, #3909).
821 + Add `writerSyntaxMap` to `WriterOptions`.
822 + Removed `writerEpubStylesheet` from `WriterOptions`.
823 + Remove `writerUserDataDir` from `WriterOptions`. It is now carried
824 in `CommonState` in `PandocMonad` instances. (And thus it can be used
826 + Changed `writerEpubMetadata` to a `Maybe String`.
827 + Removed `readerApplyMacros` from `ReaderOptions`. Now we just check
828 the `latex_macros` reader extension.
829 + FromJSON/ToJSON instances for `ReaderOptions`.
830 + In `HTMLMathMethod`, the `KaTeX` contsructor now takes only
831 one string (for the KaTeX base URL), rather than two.
832 + Removed `writerSourceURL` from `WriterOptions`. We now use
833 `stSourceURL` in `CommonState`, which is set by `setInputFiles`.
835 * `Text.Pandoc.Shared`:
837 + `tabFilter` now takes a `Text`, not `String`.
838 + `openURL`: Changed type from an Either. Now it will just raise
839 an exception to be trapped later.
840 + Remove `normalizeSpaces` (#1530).
841 + Remove `warn`. (Use `report` from `Text.Pandoc.Class` instead.)
842 + Export a new function `crFilter`.
843 + Add `eastAsianLineBreakFilter` (previously in Markdown reader).
844 + Provide custom `isURI` that rejects unknown schemes.
845 (Albert Krewinkel, #2713). We also export the set of known
846 `schemes`. The new function replaces the function of the same name
847 from `Network.URI`, as the latter did not check whether a scheme is
848 well-known. All official IANA schemes (as of 2017-05-22) are
849 included in the set of known schemes. The four non-official schemes
850 `doi`, `isbn`, `javascript`, and `pmid` are kept.
852 + Remove `readDataFile`, `readDefaultDataFile`, `getReferenceDocx`,
853 `getReferenceODT`. These now live in `Text.Pandoc.Class`,
854 where they are defined in terms of `PandocMonad`
855 primitives and have different signatures.
856 + Remove `openURL`. Use `openURL` from `Text.Pandoc.Class` instead.
857 + Add `underlineSpan`.
859 * `Text.Pandoc.Readers.HTML`: export new `NamedTag` class.
861 * `Text.Pandoc.Readers.Markdown`: remove `readDocxWithWarnings`.
862 With the new API one can simply use `getLog` after running
865 * `Text.Pandoc.Readers.LaTeX`: Changed types for `rawLaTeXInline`
866 and `rawLaTeXBlock`. (Both now return a `String`, and they are
867 polymorphic in state.)
870 [bug fixes and under-the-hood improvements]
872 * TEI writer: Added identifiers on `<div>` elements.
874 * DokuWiki reader: Better handling for code block in list item (#3824).
876 * Custom writer: Remove old preprocesesor conditionals (Albert Krewinkel).
878 * ZimWiki writer: Removed internal formatting from note and table cells,
879 because ZimWiki does not support it (Alex Ivkin, #3446).
883 + Updated list of syntax highlighting languages (#3461).
884 Now `r` gets you `<source>` rather than `<code>` (among others).
885 + Add display attribute on `<math>` tags (#3452). This allows display
886 math to be rendered properly.
887 + Remove newline before `</ref>` (#2652).
888 + Don't softbreak lines inside list items (#3531).
892 + Reduce to two spaces after bullets (#3417, Albert Krewinkel).
893 + Add unit tests (Alexander Krotov).
894 + Stop using raw HTML to wrap divs (Albert Krewinkel, #3771).
895 + Do not strip `#` from Org anchor links (Alexander Krotov).
899 + Avoid excess blank lines at end of output.
900 + Prefer pipe tables to HTML tables even if it means losing relative
901 column width information (#3734).
902 + Support table, strikethrough extensions, when enabled (as with gfm).
903 Note that we bypass the commonmark writer from cmark and construct our
904 own pipe tables, with better results.
905 + Properly support `--wrap=none`.
906 + Use smallcaps class for `SmallCaps` (#1592).
907 + Omit "fig:" prefix in image titles. This is used internally to
908 indicate internal figures.
912 + Properly handle table captions.
913 + Don't wrap lines in in definition list terms. Wrapping is not allowed.
914 + Implemented `+/-smart` and improved escaping with `+smart`.
915 + Add empty comments when needed to avoid including a blockquote
916 in the indented content of a preceding block (#3675).
917 + Improve grid table output, fix bug with empty rows (#3516).
918 Uses the new `gridTable` in Writers.Shared, which is here
919 improved to better handle 0-width cells.
920 + Remove space at beginning/end of RST code span (#3496). Otherwise
921 we get invalid RST. There seems to be no way to escape the space.
922 + Add header anchors when header has non-standard id (#3937).
923 + Correctly handle inline code containing backticks, using a `:literal:`
925 + Don't backslash-escape word-internal punctuation (#3978).
929 + Don't include variables in metadata blocks. Previously variables set
930 on the command line were included in e.g. YAML metadata, contrary to
931 documentation and intentions.
932 + Improved escaping with `+smart`.
933 + Fixed grid tables embedded in grid tables (#2834).
934 + Use span with class 'smallcaps' for SmallCaps, instead of a style
935 attribute as before (#1592).
936 + Escape initial `%` in a paragraph if the `pandoc_title_blocks`
937 extension is enabled (#3454). Otherwise in a document starting with
938 a literal `%` the first line is wrongly interpreted as a title.
939 + Fixed false ordered lists in YAML metadata (#3492, #1685). Now we
940 properly escape things that would otherwise start ordered lists,
946 + Better handling of tables with empty columns (#3337). We now
947 calculate the number of columns based on the longest row (or the
948 length of aligns or widths).
949 + Escape unordered list markers at beginning of paragraph (#3497), to
950 avoid false interpretation as a list.
951 + Escape `|` appropriately.
952 + Ensure space before list at top level (#3487).
953 + Avoid spurious blanklines at end of document after tables and list,
955 + Fixed bugs in simple/multiline list output (#3384).
956 Previously we got overlong lists with `--wrap=none`. This is fixed.
957 Previously a multiline list could become a simple list (and would
958 always become one with `--wrap=none`).
959 + Don't emit a simple table if `simple_tables` disabled (#3529).
960 + Case-insensitive reference links (David A Roberts, #3616).
961 Ensure that we do not generate reference links whose labels differ only
962 by case. Also allow implicit reference links when the link
963 text and label are identical up to case.
964 + Put space before reference link definitions (Mauro Bieg, #3630).
965 + Better escaping for links (David A. Roberts, #3619). Previously the
966 Markdown writer would sometimes create links where there were none
967 in the source. This is now avoided by selectively escaping bracket
968 characters when they occur in a place where a link might be created.
969 + Added missing `\n` (David A. Roberts, #3647).
970 + Fixed duplicated reference links with `--reference-links`
971 and `--reference-location=section` (#3674). Also ensure that there
972 are no empty link references `[]`.
973 + Avoid inline surround-marking with empty content (#3715).
974 E.g. we don't want `<strong></strong>` to become `****`.
975 Similarly for emphasis, super/subscript, strikeout.
976 + Don't allow soft break in header (#3736).
977 + Make sure `plain`, `markdown_github`, etc. work for raw.
978 Previously only `markdown` worked. Note: currently a raw block labeled
979 `markdown_github` will be printed for any `markdown` format.
980 + Ensure that `+` and `-` are escaped properly so they don't cause
981 spurious lists (#3773). Previously they were only
982 if succeeded by a space, not if they were at end of line.
983 + Use pipe tables if `raw_html` disabled and `pipe_tables` enabled,
984 even if the table has relative width information (#3734).
985 + Markdown writer: don't crash on `Str ""`.
986 + Make `Span` with null attribute transparent. That is, we don't use
987 brackets or `<span>` tags to mark spans when there are no attributes;
988 we simply output the contents.
989 + Escape pipe characters when `pipe_tables` enabled (#3887).
990 + Better escaping of `<` and `>`. If `all_symbols_escapable` is set,
991 we backslash escape these. Otherwise we use entities as before.
992 + When writing plain, don't use ` ` to separate list and indented
993 code. There's no need for it in this context, since this isn't to be
994 interpreted using Markdown rules.
995 + Preserve classes in JS obfuscated links (Timm Albers, #2989).
996 HTML links containing classes originally now preserve them when using
997 javascript email obfuscation.
998 + Render `SmallCaps` as a native span when `native_spans` are enabled.
999 + Always write attributes with `bracketed_spans` (d-dorazio).
1003 + Fix handling of nested font commands (#3568). Previously pandoc emitted
1004 incorrect markup for bold + italic, for example, or bold + code.
1005 + Avoid error for definition lists with no definitions (#3832).
1009 + Fix internal links with `writerIdentifierPrefix opt`
1010 (#3397, Mauro Bieg).
1014 + Don't include bookmarks on headers unless non-null id (#3476).
1015 + Support 9 levels of headers (#1642).
1016 + Allow 9 list levels (#3519).
1017 + Don't take `distArchive` from datadir (#3322). The docx writer takes
1018 components from the distribution's version of `reference.docx` when it
1019 can't find them in a user's custom `reference.docx`. Previously, we
1020 allowed a `reference.docx` in the data directory (e.g. `~/.pandoc`)
1021 to be used as the distribution's reference.docx. This led to a
1022 bizarre situation where pandoc would produce a good docx using
1023 `--template ~/.pandoc/ref.docx`, but if `ref.docx` were moved to
1024 `~/.pandoc/reference.docx`, it would then produce a corrupted docx.
1025 + Fixed handling of soft hyphen (0173) (#3691).
1026 + Better handling of keywords (#3719).
1027 + Cleaner code for handling dir and style attributes for `Div`.
1028 + Use `Set` for dynamic styles to avoid duplicates.
1029 + Removed redundant element from data/docx/word/numbering.xml.
1030 The elements we need are generated when the document is
1031 compiled; this didn't do anything.
1032 + Activate `evenAndOddHeaders` from reference docx (#3901,
1033 Augustín Martín Barbero).
1035 * ODT/OpenDocument writer:
1037 + Calculate aspect ratio for percentage-sized images (Mauro Bieg, #3239).
1038 + Use more widely available bullet characters (#1400). The old
1039 characters weren't available in some font sets. These seem to work
1040 well on Windows and Linux versions of LibreOffice.
1041 + Wider labels for lists (#2421). This avoids overly narrow labels for
1042 ordered lists with `()` delimiters. However, arguably it creates
1043 overly wide labels for bullets. Also, lists now start flush with
1044 the margin, rather than indented.
1045 + Fixed dropped elements in some ordered lists (#2434).
1049 + Don't render `RawBlock` as code.
1050 + Don't fail with an error on interior headers (e.g. in list) (#3750).
1051 Instead, omit them with an INFO message.
1052 + Add support for "lang" metadata (Alexander Krotov, #3625).
1053 + Format `LineBlock` as poem (Alexander Krotov). Previously writer
1054 produced one paragraph with `<empty-line/>` elements, which are not
1055 allowed inside `<p>` according to FB2 schema.
1056 + Replace `concatMap` with `cMap` (Alexander Krotov).
1057 + Write FB2 lists without nesting blocks inside `<p>` (Alexander
1062 + Make sure `html4`, `html5` formats work for raw blocks/inlines.
1063 + Render raw inline environments when `--mathjax` used (#3816).
1064 We previously did this only with raw blocks, on the assumption
1065 that math environments would always be raw blocks. This has changed
1066 since we now parse them as inline environments.
1067 + Ensure we don't get two style attributes for width and height.
1068 + Report when not rendering raw inline/block.
1069 + Issue warning if no title specified and template used (#3473).
1070 + Info message if `lang` is unspecified (#3486).
1071 + Removed unused parameter in `dimensionsToAttributeList`.
1072 + Avoid two class attributes when adding `uri` class (#3716).
1073 + Fix internal links with `writerIdentifierPrefix opt` (#3397, Mauro
1075 + Use revealjs's math plugin for mathjax (#3743). This is a thin
1076 wrapper around mathjax that makes math look better on revealjs.
1077 + Slidy: use h1 for all slides, even if they were originally
1078 level 2 headers (#3566). Otherwise the built-in table of contents
1083 + Don't render LaTeX images with data: URIs (#3636). Note that
1084 `--extract-media` can be used when the input contains data: URIs.
1085 + Make highlighted code blocks work in footnotes (Timm Albers).
1086 + Don't use figure inside table cell (#3836).
1087 + Use proper code for list enumerators (#3891). This should fix problems
1088 with lists that don't use arabic numerals.
1089 + Always add hypertarget when there's a non-empty identifier (#2719).
1090 Previously the hypertargets were only added when there was actually
1091 a link to that identifier.
1092 + Use `%` after hypertarget before code block.
1093 + Add `\leavevmode` before hypertarget at start of paragraph (#2704,
1094 fixes formatting problems in beamer citations).
1095 + Don't use `lstinline` in \item[..] (#645). If you do, the contents
1096 of item disappear or are misplaced. Use `\texttt` instead.
1097 + Fix problem with escaping in `lstinline` (#1629). Previously the
1098 LaTeX writer created invalid LaTeX when `--listings` was specified and
1099 a code span occured inside emphasis or another construction.
1100 + Fix error with line breaks after empty content (#2874). LaTeX
1101 requires something before a line break, so we insert a `~` if no
1102 printable content has yet been emitted.
1104 + Fixed detection of otherlangs (#3770). We weren't recursing into
1106 + Handle language in inline code with `--listings` (#3422).
1107 + Write euro symbol directly in LaTeX (Andrew Dunning, #3801).
1108 The textcomp package allows pdfLaTeX to parse `€` directly, making the
1109 `\euro` command unneeded.
1110 + Fixed footnotes in table captions (#2378). Note that if the table has
1111 a first page header and a continuation page header, the notes will
1112 appear only on the first occurrence of the header.
1113 + In `writeBeamer` output, allow hyperlinks to frames (#3220).
1114 Previously you could link to a header above or below slide level but
1115 not *to* slide level. This commit changes that. Hypertargets are
1116 inserted inside frame titles; technically the reference is to just
1117 after the title, but in normal use (where slides are viewed full
1118 screen in a slide show), this does not matter.
1119 + Remove `\strut` at beginning of table cells (#3436). This fixes a
1120 problem with alignment of lists in table cells. The `\strut` at the
1121 end seems to be enough to avoid the too-close spacing that motivated
1122 addition of the strut in #1573.
1123 + Add partial siunitx Support (Marc Schreiber, #3588).
1127 + Refactored to use BCP47 module.
1128 + Remove unnecessary `$` (Alexander Krotov, #3482).
1129 + Use header identifiers for chapters (#3968).
1133 + `title_page.xhtml` is now put in `text/`.
1134 + Don't strip formatting in TOC (#1611).
1138 + Fix bug for certain links in table cells (#3667).
1139 + Allow 'pre' code in list item (#3916).
1143 + Added warnings for ignored material (#3392).
1144 + Better sanity checks to avoid parsing unintended things as
1145 raw HTML in the Markdown reader (#3257).
1146 + Revise treatment of `li` with `id` attribute (#3596). Previously we
1147 always added an empty div before the list item, but this created
1148 problems with spacing in tight lists. Now we do this: If the list
1149 item contents begin with a `Plain` block, we modify the `Plain`
1150 block by adding a `Span` around its contents. Otherwise, we add a
1151 `Div` around the contents of the list item (instead of adding an
1152 empty `Div` to the beginning, as before).
1153 + Add `details` tag to list of block tags (#3694).
1154 + Removed `button` from block tag list (#3717). It is already in the
1155 `eitherBlockOrInlineTag` list, and should be both places.
1156 + Use `Set`s instead of lists for block tag lookup.
1157 + Rewrote to use `Text` throughout. Effect on memory usage is modest
1159 + Use the lang value of `<html>` to set the lang meta value (bucklereed,
1161 + Ensure that paragraphs are closed properly when the parent block
1162 element closes, even without `</p>` (#3794).
1163 + Parse `<figure>` and `<figcaption>` (Mauro Bieg, #3813).
1164 + Parse `<main>` like `<div role=main>` (bucklereed, #3791).
1165 `<main>` closes `<p>` and behaves like a block element generally
1166 + Support column alignments (#1881). These can be set either
1167 with a `width` attribute or with `text-width` in a `style` attribute.
1168 + Modified state type to be an instance of `HasLogMessages`, so
1169 `registerHeader` can issue warnings.
1170 + `</td>` or `</th>` should close any open block tag (#3991).
1171 + `<td>` should close an open `<th>` or `<td>`.
1172 + `htmlTag` improvements (#3989). We previously failed on cases
1173 where an attribute contained a `>` character. This patch fixes the
1174 bug, which especially affects raw HTML in Markdown.
1178 + Newline is not indentation (Alexander Krotov).
1182 + Allow extra hyphens after `|-` in tables (#2649).
1183 + Allow blank line after table start (#2649).
1184 + Fixed more table issues (#2649).
1185 + Ensure that list starts begin at left margin (#2606). Including when
1186 they're in tables or other list items.
1187 + Make smart double quotes depend on `smart` extension (#3585).
1188 + Don't do curly quotes inside `<tt>` contexts (#3585). Even if `+smart`.
1189 + Modified state type to be an instance of `HasLogMessages`, so
1190 `registerHeader` can issue warnings.
1192 * TWiki reader (Alexander Krotov):
1194 + Remove unnecessary `$` (#3597).
1195 + Simplify `linkText` (#3605).
1199 + Minor refactoring, avoiding explicit MediaBag handling.
1200 This all works behind the scenes in CommonState plumbing.
1204 + Don't drop smartTag contents (#2242).
1205 + Handle local namespace declarations (#3365). Previously we didn't
1206 recognize math, for example, when the xmlns declaration occured on
1207 the element and not the root.
1208 + More efficient trimSps (#1530). Replacing `trimLineBreaks`. This
1209 does the work of `normalizeSpaces` as well, so we avoid the need for
1211 + Avoid 0-level headers (Jesse Rosenthal, #3830). We used to parse
1212 paragraphs styled with "HeadingN" as "nth-level header." But if a
1213 document has a custom style named "Heading0", this will produce a
1214 0-level header, which shouldn't exist. We only parse this style
1215 if N>0. Otherwise we treat it as a normal style name, and
1216 follow its dependencies, if any.
1217 + Add tests for avoiding zero-level header (Jesse Rosenthal).
1221 + Replaced `collectRights` with Rights from `Data.Either`.
1222 + Remove dead code (Albert Krewinkel).
1224 * Org reader (Albert Krewinkel, unless noted).
1226 + Don't allow tables inside list items (John MacFarlane, #3499).
1227 + Disallow tables on list marker lines (#3499).
1228 + Convert markup at beginning of footnotes (John MacFarlane, #3576).
1229 + Allow emphasized text to be followed by `[` (#3577).
1230 + Handle line numbering switch for src blocks.
1231 The line-numbering switch that can be given to source blocks (`-n` with
1232 an start number as an optional parameter) is parsed and translated to a
1233 class/key-value combination used by highlighting and other readers and
1235 + Stop adding rundoc prefix to src params. Source block parameter names
1236 are no longer prefixed with `rundoc`. This was intended to simplify
1237 working with the rundoc project, a babel runner. However, the rundoc
1238 project is unmaintained, and adding those markers is not the reader's
1239 job anyway. The original language that is specified for a source
1240 element is now retained as the `data-org-language` attribute and only
1241 added if it differs from the translated language.
1242 + Allow multi-word arguments to src block params (#3477). The reader now
1243 correctly parses src block parameter list even if parameter arguments
1244 contain multiple words.
1245 + Avoid creating `nullMeta` by applying `setMeta` directly
1247 + Replace `sequence . map` with `mapM`.
1248 + Fix smart parsing behavior. Parsing of smart quotes and special
1249 characters can either be enabled via the `smart` language extension or
1250 the `'` and `-` export options. Smart parsing is active if either the
1251 extension or export option is enabled. Only smart parsing of special
1252 characters (like ellipses and en and em dashes) is enabled by default,
1253 while smart quotes are disabled. Previously, all smart parsing was
1254 disabled unless the language extension was enabled.
1255 + Subject full doc tree to headline transformations (Albert Krewinkel,
1256 #3695). Emacs parses org documents into a tree structure, which is
1257 then post-processed during exporting. The reader is changed to do the
1258 same, turning the document into a single tree of headlines starting
1260 + Fix cite parsing behaviour (Herwig Stuetz). Until now, `org-ref`
1261 cite keys included special characters also at the end. This caused
1262 problems when citations occur right before colons or at the end of
1263 a sentence. With this change, all non alphanumeric characters at
1264 the end of a cite key are ignored. This also adds `,` to the list
1265 of special characters that are legal in cite keys to better mirror
1266 the behaviour of org-export.
1267 + Fix module names in haddock comments. Copy-pasting had lead to
1268 haddock module descriptions containing the wrong module names.
1269 + Recognize babel result blocks with attributes (#3706). Babel
1270 result blocks can have block attributes like captions and names.
1271 Result blocks with attributes were not recognized and were parsed
1272 as normal blocks without attributes.
1273 + Include tags in headlines. The Emacs default is to include tags in the
1274 headline when exporting. Instead of just empty spans, which contain the
1275 tag name as attribute, tags are rendered as small caps and wrapped in
1276 those spans. Non-breaking spaces serve as separators for multiple tags.
1277 + Respect export option for tags (#3713). Tags are appended to
1278 headlines by default, but will be omitted when the `tags` export option
1280 + Use `tag-name` attribute instead of `data-tag-name`.
1281 + Use `org-language` attribute rather than `data-org-language`.
1282 + Modified state type to be an instance of `HasLogMessages`, so
1283 `registerHeader` can issue warnings.
1284 + End footnotes after two blank lines. Footnotes can not only be
1285 terminated by the start of a new footnote or a header, but also by two
1286 consecutive blank lines.
1287 + Update emphasis border chars (#3933). The org reader was updated to
1288 match current org-mode behavior: the set of characters which are
1289 acceptable to occur as the first or last character in an org emphasis
1290 have been changed and now allows all non-whitespace chars at the
1291 inner border of emphasized text (see `org-emphasis-regexp-components`).
1295 + Fixed small bug in list parsing (#3432). Previously the parser didn't
1296 handle properly this case:
1302 + Handle multiline cells in simple tables (#1166).
1303 + Parse list table directive (Keiichiro Shikano, #3432).
1304 + Make use of `anyLineNewline` (Alexander Krotov, #3686).
1305 + Use `anyLineNewline` in `rawListItem` (Alexander Krotov, #3702).
1306 + Reorganize block parsers for ~20% faster parsing.
1307 + Fixed `..include::` directive (#3880).
1308 + Handle blank lines correctly in line blocks (Alexander Krotov, #3881).
1309 Previously pandoc would sometimes combine two line blocks separated
1310 by blanks, and ignore trailing blank lines within the line block.
1311 + Fix indirect hyperlink targets (#512).
1315 + Allow attributes in reference links to start on next line (#3674).
1316 + Parse YAML metadata in a context that sees footnotes defined in
1317 the body of the document (#1279).
1318 + When splitting pipe table cells, skip tex math (#3481).
1319 You might have a `|` character inside math. (Or for that matter
1320 something that the parser might mistake for raw HTML.)
1321 + Treat span with class `smallcaps` as SmallCaps.
1322 This allows users to specify small caps in Markdown this way:
1323 `[my text]{.smallcaps}` (#1592).
1324 + Fixed internal header links (#2397).
1325 This patch also adds `shortcut_reference_links` to the list
1327 + Treat certain environments as inline
1328 when they occur without space surrounding them (#3309, #2171).
1329 E.g. equation, math. This avoids incorrect vertical space
1331 + Optimized `nonindentSpaces`. Makes the benchmark go from 40 to 36 ms.
1332 + Allow latex macro definitions indented 1-3 spaces.
1333 Previously they only worked if nonindented.
1334 + Improved parsing of indented raw HTML blocks (#1841).
1335 Previously we inadvertently interpreted indented HTML as
1336 code blocks. This was a regression. We now seek to determine the
1337 indentation level of the contents of an HTML block, and (optionally)
1338 skip that much indentation. As a side effect, indentation may be
1339 stripped off of raw HTML blocks, if `markdown_in_html_blocks` is
1340 used. This is better than having things interpreted as indented
1342 + Fixed smart quotes after emphasis (#2228). E.g. in `*foo*'s 'foo'`.
1343 + Warn for notes defined but not used (#1718).
1344 + Use `anyLineNewline` (Alexander Krotov).
1345 + Interpret YAML metadata as Inlines when possible (#3755). If
1346 the metadata field is all on one line, we try to interpret it as
1347 Inlines, and only try parsing as Blocks if that fails. If it
1348 extends over one line (including possibly the `|` or `>` character
1349 signaling an indented block), then we parse as Blocks. This was
1350 motivated by some German users finding that `date: '22. Juin 2017'`
1351 got parsed as an ordered list.
1352 + Fixed spurious parsing as citation as reference def (#3840).
1353 We now disallow reference keys starting with `@` if the
1354 `citations` extension is enabled.
1355 + Parse `-@roe` as suppress-author citation (pandoc-citeproc#237).
1356 Previously only `[-@roe]` (with brackets) was recognized as
1357 suppress-author, and `-@roe` was treated the same as `@roe`.
1358 + Fixed parsing of fenced code after list when there is no intervening
1360 + Allow raw latex commands starting with `\start` (#3558). Previously
1361 these weren't allowed because they were interpreted as starting
1362 ConTeXt environments, even without a corresponding `\stop`...
1363 + Added `inlines`, `inlines1`.
1364 + Require nonempty alt text for `implicit_figures` (#2844).
1365 A figure with an empty caption doesn't make sense.
1366 + Removed texmath macro material; now all this is handled
1367 in the LaTeX reader functions.
1368 + Fixed bug with indented code following raw LaTeX (#3947).
1372 + Rewrote LaTeX reader with proper tokenization (#1390,
1373 #2118, #3236, #3779, #934, #982). This rewrite is primarily
1374 motivated by the need to get macros working properly. A side benefit
1375 is that the reader is significantly faster. We now tokenize the
1376 input text, then parse the token stream. Macros modify the token
1377 stream, so they should now be effective in any context, including
1378 math. Thus, we no longer need the clunky macro processing
1379 capacities of texmath.
1380 + Parse `\,` to `\8198` (six-per-em space) (Henri Werth).
1381 + Allow `\newcommand\foo{blah}` without braces.
1382 + Support `\lstinputlisting` (#2116).
1383 + Issue warnings when skipping unknown latex commands (#3392).
1384 + Include contents of `\parbox`.
1385 + Allow `\hspace` and `\vspace` to count as raw block or inline.
1386 Previously we would refuse to parse anything as raw inline if
1387 it was in the `blockCommands` list. Now we allow exceptions
1388 if they're listed under ignoreInlines in inlineCommands.
1389 This should make it easier e.g. to include an `\hspace`
1390 between two side-by-side raw LaTeX tables.
1391 + Don't drop contents of `\hypertarget`.
1392 + Handle spaces before `\cite` arguments.
1393 + Allow newpage, clearpage, pagebreak in inline contexts as well as
1394 block contexts (#3494).
1395 + Treat `{{xxx}}` the same as `{xxx}` (#2115).
1396 + Use `pMacroDefinition` in macro (for more direct parsing).
1397 Note that this means that `macro` will now parse one
1398 macro at a time, rather than parsing a whole group together.
1399 + Fixed failures on \ref{}, \label{} with `+raw_tex`. Now these
1400 commands are parsed as raw if `+raw_tex`; otherwise, their argument
1401 is parsed as a bracketed string.
1402 + Don't crash on empty `enumerate` environment (#3707).
1403 + Handle escaped `&` inside table cell (#3708).
1404 + Handle block structure inside table cells (#3709). `minipage` is no
1406 + Handle some width specifiers on table columns (#3709). Currently
1407 we only handle the form `0.9\linewidth`. Anything else would have
1408 to be converted to a percentage, using some kind arbitrary assumptions
1410 + Make sure `\write18` is parsed as raw LaTeX. The change is in the
1411 LaTeX reader's treatment of raw commands, but it also affects the
1413 + Fixed regression with starred environment names (#3803).
1414 + Handle optional args in raw `\titleformat` (#3804).
1415 + Improved heuristic for raw block/inline. An unknown command at the
1416 beginning of the line that could be either block or inline is
1417 treated as block if we have a sequence of block commands followed by
1418 a newline or a `\startXXX` command (which might start a raw ConTeXt
1420 + Don't remove macro definitions from the output, even if
1421 `Ext_latex_macros` is set, so that macros will be applied.
1422 Since they're only applied to math in Markdown, removing the macros
1423 can have bad effects. Even for math macros, keeping them should be
1425 + Removed `macro`. It is no longer necessary, since the
1426 `rawLaTeXBlock` parser will parse macro definitions. This also avoids
1427 the need for a separate `latexMacro` parser in the Markdown reader.
1428 + Use `label` instead of `data-label` for label in caption (#3639).
1429 + Fixed space after \figurename etc.
1430 + Resolve references to section numbers.
1431 + Fix `\let\a=0` case, with single character token.
1432 + Allow `@` as a letter in control sequences. `@` is commonly used
1433 in macros using `\makeatletter`. Ideally we'd make the tokenizer
1434 sensitive to `\makeatletter` and `\makeatother`, but until then this
1435 seems a good change.
1436 + Track header numbers and correlate with labels.
1437 + Allow `]` inside group in option brackets (#3857).
1438 + lstinline with braces can be used (verb cannot be used with braces)
1439 (Marc Schreiber, #3535).
1440 + Fix keyval funtion: pandoc did not parse options in braces correctly
1441 (Marc Schreiber, #3642).
1442 + When parsing raw LaTeX commands, include trailing space (#1773).
1443 Otherwise things like `\noindent foo` break and turn into
1444 `\noindentfoo`. Affects `-f latex+raw_tex` and `-f markdown` (and other
1445 formats that allow `raw_tex`).
1446 + Don't treat "..." as Quoted (#3958). This caused quotes to be omitted in
1448 + Add tests for existing `\includegraphics` behaviour (Ben Firshman).
1449 + Allow space before `=` in bracketd options (Ben Firshman).
1450 + Be more forgiving in parsing command options. This was needed, for
1451 example, to make some minted options work.
1452 + Strip off quotes in `\include` filenames.
1454 * Added `Text.Pandoc.CSV`, simple (unexported) CSV parser.
1456 * `Text.Pandoc.PDF`:
1458 + Got `--resource-path` working with PDF output (#852).
1459 + Fetch images when generating PDF via context (#3380).
1460 To do this, we create the temp directory as a subdirectory
1461 of the working directory. Since context mk IV by default looks
1462 for images in the parent directory, this works.
1463 + Use `report` instead of `warn`, make it sensitive to verbosity settings.
1464 + Use `fillMediaBag` and `extractMedia` to extract media to temp dir.
1465 This reduces code duplication.
1466 + `html2pdf`: use stdin instead of intermediate HTML file
1467 + Removed useless `TEXINPUTS` stuff for `context2pdf`. mkiv context
1468 doesn't use `TEXINPUTS`.
1470 * `Text.Pandoc.Pretty`:
1472 + Simplified definition of `realLength`.
1473 + Don't error for blocks of size < 1. Instead, resize to 1 (see #1785).
1475 * `Text.Pandoc.MIME`:
1477 + Use `application/javascript` (not `application/x-javascript`).
1478 + Added `emf` to mimeTypes with type `application/x-msmetafile` (#1713).
1480 * `Text.Pandoc.ImageSize`:
1482 + Improve SVG image size code (Marc Schreiber, #3580).
1483 + Make `imageSize` recognize basic SVG dimensions (Mauro Bieg, #3462).
1485 * Use `Control.Monad.State.Strict` throughout. This gives 20-30% speedup
1486 and reduction of memory usage in most of the writers.
1488 * Use `foldrWithKey` instead of deprecated `foldWithKey`.
1490 * `Text.Pandoc.SelfContained`:
1492 + Fixed problem with embedded fonts (#3629).
1493 + Refactored getData from `getDataURI` in `SelfContained`.
1494 + Don't use data URIs for script or style (#3423). Instead, just use
1495 script or style tags with the content inside. The old method with
1496 data URIs prevents certain optimizations outside pandoc. Exception:
1497 data URIs are still used when a script contains `</script>` or a
1498 style contains `</`.
1499 + SelfContained: Handle URL inside material retrieved from a URL
1500 (#3629). This can happen e.g. with an @import of a google web font.
1501 (What is imported is some CSS which contains an url reference
1502 to the font itself.) Also, allow unescaped pipe (|) in URL.
1503 + Load resources from `data-src` (needed for lazy loading in
1504 reveal.js slide shows).
1505 + Handle `data-background-image` attribute on section (#3979).
1507 * `Text.Pandoc.Parsing`:
1509 + Added `indentWith` (Alexander Krotov, #3687).
1510 + Added `stateCitations` to `ParserState`.
1511 + Removed `stateChapters` from `ParserState`.
1512 + In `ParserState`, make `stateNotes'` a Map, add `stateNoteRefs`.
1513 + Added `gobbleSpaces` and `gobbleAtMostSpaces`.
1514 + Adjusted type of `insertIncludedFile` so it can be used with token
1516 + Replace old texmath macro stuff from Parsing. Use Macro from
1517 Text.Pandoc.Readers.LaTeX.Types instead.
1518 + Export `insertIncludedFile`.
1519 + Added `HasLogMessages`, `logMessage`, `reportLogMessages` (#3447).
1520 + Replace partial with total function (Albert Krewinkel).
1521 + Introduce `HasIncludeFiles` type class (Albert Krewinkel). The
1522 `insertIncludeFile` function is generalized to work with all parser
1523 states which are instances of that class.
1524 + Add `insertIncludedFilesF` which returns F blocks (Albert Krewinkel).
1525 The `insertIncludeFiles` function was generalized and renamed
1526 to `insertIncludedFiles'`; the specialized versions are based on that.
1527 + `many1Till`: Check for the end condition before parsing (Herwig
1528 Stuetz). By not checking for the end condition before the first
1529 parse, the parser was applied too often, consuming too much of the
1530 input. This only affects `many1Till p end` where `p` matches on a
1532 + Provide `parseFromString` (#3690). This is a verison of
1533 `parseFromString` specialied to ParserState, which resets
1534 `stateLastStrPos` at the end. This is almost always what we want.
1535 This fixes a bug where `_hi_` wasn't treated as emphasis in the
1536 following, because pandoc got confused about the position of the
1537 last word: `- [o] _hi_`.
1538 + Added `takeP`, `takeWhileP` for efficient parsing of `[Char]`.
1539 + Fix `blanklines` documentation (Alexander Krotov, #3843).
1540 + Give less misleading line information with `parseWithString`.
1541 Previously positions would be reported past the end of the chunk.
1542 We now reset the source position within the chunk and report
1543 positions "in chunk."
1544 + Add `anyLineNewline` (Alexander Krotov).
1545 + Provide shared F monad functions for Markdown and Org readers
1546 (Albert Krewinkel). The `F` monads used for delayed evaluation
1547 of certain values in the Markdown and Org readers are based on a
1548 shared data type capturing the common pattern of both `F` types.
1549 + Add `returnF` (Alexander Krotov).
1550 + Avoid parsing `Notes:**` as a bare URI (#3570). This avoids parsing
1551 bare URIs that start with a scheme + colon + `*`, `_`, or `]`.
1552 + Added `readerAbbreviations` to `ParserState`. Markdown reader
1553 now consults this to determine what is an abbreviation.
1554 + Combine grid table parsers (Albert Krewinkel, #3638). The grid table
1555 parsers for markdown and rst was combined into one single
1556 parser `gridTable`, slightly changing parsing behavior of both
1557 parsers: (1) The markdown parser now compactifies block content
1558 cell-wise: pure text blocks in cells are now treated as paragraphs
1559 only if the cell contains multiple paragraphs, and as plain blocks
1560 otherwise. Before, this was true only for single-column tables. (2)
1561 The rst parser now accepts newlines and multiple blocks in header
1563 + Generalize tableWith, gridTableWith (Albert Krewinkel).
1564 The parsing functions `tableWith` and `gridTableWith` are generalized
1565 to work with more parsers. The parser state only has to be an
1566 instance of the `HasOptions` class instead of requiring a concrete
1567 type. Block parsers are required to return blocks wrapped into a
1568 monad, as this makes it possible to use parsers returning results
1569 wrapped in `Future`s.
1571 * `Text.Pandoc.Shared`:
1573 + Simplify `toRomanNumeral` using guards (Alexander Krotov, #3445)
1574 + `stringify`: handle Quoted better (#3958). Previously we were losing
1575 the quotation marks in Quoted elements.
1577 * `Text.Pandoc.Writers.Shared`:
1579 + Export `metaToJSON'`, `addVariablesToJSON` (#3439).
1580 This allows us to add the variables AFTER using the metadata
1581 to generate a YAML header (in the Markdown writer).
1582 + Added `unsmartify` (previously in RST writer).
1583 Undo literal double curly quotes. Previously we left these.
1584 + Generalize type of `metaToJSON` so it can take a Text. Previously a
1585 String was needed as argument; now any ToJSON instance will do.
1586 + Added `gridTable` (previously in Markdown writer).
1587 + `gridTable`: Refactored to use widths in chars.
1588 + `gridTable`: remove unnecessary extra space in cells.
1589 + Fixed `addVariablesToJSON`. It was previously not allowing multiple
1590 values to become lists.
1591 + Pipe tables: impose minimum cell size (see #3526).
1594 [default template changes]
1596 * HTML templates (including EPUB and HTML slide show templates):
1598 + Make default.html5 polyglot markup conformant (John Luke Bentley,
1599 #3473). Polyglot markup is HTML5 that is also valid XHTML. See
1600 <https://www.w3.org/TR/html-polyglot>. With this change, pandoc's
1601 html5 writer creates HTML that is both valid HTML5 and valid XHTML.
1602 + Regularized CSS in html/epub/html slide templates (#3485).
1603 All templates now include `code{white-space: pre-wrap}`
1604 and CSS for `q` if `--html-q-tags` is used. Previously some templates
1605 had `pre` and others `pre-wrap`; the `q` styles were only sometimes
1607 + CSS for `.smallcaps`, (Mauro Bieg, #1592)
1608 + `default.revealjs`: make `history` default to true.
1609 + `default.revealjs`: use lazy loading (#2283).
1610 + `default.revealjs`: add `mathjax` variable and some conditional code
1611 to use the MathJaX plugin.
1612 + `default.slidy` uses `https` instead of `http` (ickc, #3848).
1613 + `default.dzslides`: Load Google Font using HTTPS by default
1616 * DocBook5 template: Use `lang` and `subtitle` variables (Jens Getreu,
1619 * LaTeX/Beamer template:
1621 + Combine LaTeX/Beamer templates (Andrew Dunning, #3878).
1622 `default.beamer` has been removed; beamer now uses the
1623 `default.latex` template. Beamer-specific parts are conditional
1624 on the `beamer` variable set by the writer. Note that
1625 `pandoc -D beamer` will return this (combined) template.
1626 + Use `xcolor` for `colorlinks` option (Andrew Dunning, #3877).
1627 Beamer loads `xcolor` rather than `color`, and thus the
1628 `dvipsnames` option doesn't take effect. This also provides a wider
1629 range of colour selections with the `svgnames` option.
1630 + Use starred versions of `xcolor` names (Andrew Dunning).
1631 Prevents changes to documents defined using the `dvipsnames` list (e.g.
1632 `Blue` gives a different result with svgnames enabled).
1633 + Load `polyglossia` after header-includes (#3898). It needs to be
1634 loaded as late as possible.
1635 + Use `unicode-math` (Vaclav Haisman). Use `mathspec` with only
1637 + Don't load `fontspec` before `unicode-math` (over there).
1638 The `unicode-math` package loads `fontspec` so explict loading of
1639 `fontspec` before `unicode-math` is not necessary.
1640 + Use `unicode-math` by default in default.latex template. mathspec will
1641 be used in xelatex if the `mathspec` variable is set; otherwise
1642 unicode-math will be used (Václav Haisman).
1643 + Use `dvipsnames` options when `colorlinks` specified (otherwise
1644 we get an error for `maroon`) (Thomas Hodgson).
1645 + Added beamer `titlegraphic` and `logo` variables (Thomas Hodgson).
1646 + Fix typo in fix for notes in tables (#2378, zeeMonkeez).
1647 + Fix `hyperref` options clash (Andrew Dunning, #3847) Avoids an options
1648 clash when loading a package (e.g. `tufte-latex`) that uses
1649 `hyperref` settings different from those in the template.
1650 + Add `natbiboptions` variable (#3768).
1651 + Fix links inside captions in LaTeX output with links-as-notes
1652 (Václav Haisman, #3651). Declare our redefined `\href` robust.
1653 + Load `parskip` before `hyperref` (Václav Haisman, #3654).
1654 + Allow setting Japanese fonts when using LuaLaTeX (Václav Haisman,
1655 #3873). by using the `luatexja-fontspec` and `luatexja-preset`
1656 packages. Use existing `CJKmainfont` and `CJKoptions` template
1657 variables. Add `luatexjafontspecoptions` for `luatexja-fontspec`
1658 and `luatexjapresetoptions` for `luatexja-preset`.
1659 + Added `aspectratio` variable to beamer template (Václav Haisman,
1661 + Modified template.latex to fix XeLaTex being used with tables
1662 (lwolfsonkin, #3661). Reordered `lang` variable handling to
1663 immediately before `bidi`.
1665 * ConTeXt template: Improved font handling: `simplefonts` is now
1666 obsolete in ConTeXt (Pablo Rodríguez).
1669 [documentation improvements]
1673 + Add URL for Prince HTML > PDF engine (Ian, #3919).
1674 + Document that content above slide-level will be omitted in
1675 slide shows. See #3460, #2265.
1676 + Explain `--webtex` SVG url (Mauro Bieg, #3471)
1677 + Small clarification in YAML metadata section.
1678 + Document that html4 is technically XHTML 1.0 transitional.
1679 + Remove refs to highlighting-kate (#3672).
1680 + Document ibooks specific epub metadata.
1681 + Clarify that mathml is used for ODT math.
1682 + Mention limitations of Literate Haskell Support (#3410,
1684 + Add documentation of limitations of grid tables (Stephen
1686 + Clarify that meta-json contains transformed values (Jakob Voß,
1687 #3491) Make clear that template variable `meta-json` does not
1688 contain plain text values or JSON output format but field values
1689 transformed to the selected output format.
1693 + Clarify that templates are dual-licensed.
1694 + Clarify that pandoc-types is BSD3 licensed.
1695 + List new files not written by jgm (Albert Krewinkel).
1696 + Update dates in copyright notices (Albert Krewinkel). This follows
1697 the suggestions given by the FSF for GPL licensed software.
1698 <https://www.gnu.org/prep/maintain/html_node/Copyright-Notices.html>
1702 + Improved instructions for tests with patterns.
1703 + Put RPM-based distros on separate point (Mauro Bieg, #3449)
1707 + Fixed typos (Wandmalfarbe, #3479).
1708 + Add "ask on pandoc-discuss" (Mauro Bieg).
1710 * Add lua filter documentation in `doc/lua-filters.md`. Note that the
1711 end of this document is autogenerated from `data/pandoc.lua`
1712 using `make doc/lua-filters.md`, which uses `tools/ldoc.ltp`
1715 * Add `doc/filters.md`. This is the old scripting tutorial from
1718 * Add `doc/using-the-pandoc-api.md` (#3289). This gives an introduction
1719 to using pandoc as a Haskell library.
1722 [build infrastructure improvements]
1724 * Removed `data/templates` submodule. Templates are now a subtree
1725 in `data/templates`. This removes the need to do `git submodule
1728 * Renamed `tests` -> `test`.
1730 * Remove `https` flag. Always build with HTTPS support.
1732 * Use `file-embed` instead of `hsb2hs` to embed data files when
1733 `embed_data_files` flag is set. `file-embed` gives us better dependency
1734 tracking: if a data file changes, ghc/stack/cabal know to recompile
1735 the Data module. This also removes `hsb2hs` as a build dependency.
1737 * Add `custom-setup` stanza to pandoc, lowercase field names.
1739 * Add `static` Cabal flag.
1741 * Name change OSX -> MacOS. Add a -MacOS suffix to mac package rather
1742 than -OSX. Changed local names from osx to macos.
1744 * make_macos_package.sh - Use strip to reduce executable size.
1746 * Revised binary linux package. Now a completely static executable
1747 is created, using Docker and alpine. We create both a deb and a
1748 tarball. The old `deb` directory has been replaced with a `linux`
1749 directory. Running `make` in the `linux` directory should
1750 perform the build, putting the binary packages in `artifacts/`.
1752 * `linux/control.in`: add `Replaces:`, so existing pandoc-citeproc and
1753 pandoc-data packages will be uninstalled; this package provides
1754 both (#3822). Add latex packages as 'suggested', update
1757 * Remove cpphs build requirement -- it is no longer needed.
1759 * Replaced `{deb,macos,windows}/stack.yaml` with `stack.pkg.yaml`.
1761 * Name change OSX -> macOS (ickc, #3869).
1763 * Fix casing of Linux, UNIX, and Windows (ickc).
1765 * `.travis.yml`: create a source dist and do cabal build and test there.
1766 That way we catch errors due to files missing from the data
1767 section of pandoc.cabal.
1771 + Split `make haddock` from `make full`.
1772 + Add BRANCH variable for winpkg.
1773 + Add `lint` target.
1774 + Improve `make full`. Disable optimizations.
1775 Build everything, inc. trypandoc and benchmarks. Use parallel build.
1776 + Allow `make test` to take `TESTARGS`.
1778 * Added new command tests (`Tests.Command`), using small text files
1779 in `test/command/`. Any files added in this directory will be treated
1780 as shell tests (see smart.md for an example). This makes it very easy
1781 to add regression tests etc.
1783 * Test fixes so we can find data files. In old tests & command tests,
1784 we now set the environment variable `pandoc_datadir`. In lua tests,
1785 we set the datadir explicitly.
1787 * Refactored `compareOutput` in docx writer test.
1789 * Consolidated some common functions in `Tests.Helper`.
1791 * Small change to unbalanced bracket test to speed up test suite.
1793 * Speed up Native writer quickcheck tests.
1795 * Use tasty for tests rather than test-framework.
1797 * Add simple Emacs mode to help with Pandoc templates editing.
1798 (Václav Haisman, #3889). `tools/pandoc-template-mode.el`
1803 * Use skylighting library instead of highlighting-kate for syntax
1804 highlighting. Skylighting is faster and more accurate (#3363).
1805 Later we'll be able to add features like warning messages, dynamic
1806 loading of xml syntax definitions, and dynamic loading of themes.
1808 * Added a new highlight style, `breezeDark`.
1810 * Text.Pandoc.Highlighting: Update list of `listings` languages (#3374).
1811 This allows more languages to be used when using the `--listings`
1814 * OpenDocument writer:
1816 + Small refactoring. Removed separate 'parent' parameter in paraStyle.
1817 + Don't profilerate text styles unnecessarily (#3371).
1818 This change makes the writer create only as many temporary
1819 text styles as are absolutely necessary. It also consolidates
1820 adjacent nodes with the same style.
1822 * Org reader (Albert Krewinkel):
1824 + Allow short hand for single-line raw blocks (Albert Krewinkel,
1825 #3366). Single-line raw blocks can be given via `#+FORMAT: raw line`,
1826 where `FORMAT` must be one of `latex`, `beamer`, `html`, or `texinfo`.
1827 + Accept org-ref citations followed by commas (Albert Krewinkel).
1828 Bugfix for an issue which, whenever the citation was immediately
1829 followed by a comma, prevented correct parsing of org-ref citations.
1830 + Ensure emphasis markup can be nested. Nested emphasis markup (e.g.
1831 `/*strong and emphasized*/`) was interpreted incorrectly in that the
1832 inner markup was not recognized.
1833 + Remove pipe char irking the haddock coverage tool (Albert Krewinkel).
1835 * Docx reader: Empty header should be list of lists (Jesse Rosenthal).
1836 In the past, the docx reader wrote an empty header as an empty list. It
1837 should have the same width as a row (and be filled with empty cells).
1841 + Improved handling of display math (#3362). Sometimes display math is
1842 indented with more than one colon. Previously we handled these cases
1843 badly, generating definition lists and missing the math.
1844 + Fix quotation mark parsing (#3336, tgkokk). Change MediaWiki reader's
1845 behavior when the smart option is parsed to match other readers'
1850 + Fixed `-f markdown_github-hard_line_breaks+escaped_line_breaks`
1851 (#3341). Previously this did not properly enable escaped line breaks.
1852 + Disallow space between inline code and attributes (#3326, #3323,
1855 * DocBook5 writer: make id attribute xml:id, fixes #3329 (#3330, Mauro Bieg).
1857 * Added some test cases for ODT reader (#3306, #3308, Hubert Plociniczak).
1859 * LaTeX writer: allow tables with empty cells to count as "plain."
1860 This addresses a problem of too-wide tables when empty cells
1861 are used. Thanks to Joost Kremers for reporting the issue.
1863 * Org writer: prefix footnote numbers with `fn:` (Albert Krewinkel).
1864 Unprefixed numbers where used by older org-mode versions, but are no
1867 * HTML writer: don't process pars with empty RawInline, (#1040, #3327,
1870 * Markdown writer: Fix display math with `--webtex` (#3298).
1872 * Fix sample.lua so it properly handles raw blocks/inlines (#3358,
1877 + default.latex: Moved geometry after hyperref (Václav Haisman).
1878 Otherwise PDF sizes can be wrong in some circumstances.
1879 + Copied a few changes from default.latex to default.beamer
1881 + default.latex, default.beamer: Changed position of `\VerbatimNotes`
1882 and `fancyvrb`. This fixes hyperlinks on footnotes in documents
1883 that contain verbatim in notes (#3361). (Note: the beamer template
1884 was updated to match the LaTeX template, but at this point verbatim
1885 in notes seems not to work in beamer.)
1886 + default.latex: Allow passing `microtypeoptions` to microtype
1888 + default.latex: Add hyphen option to url package.
1889 + default.docbook5: Fix namespace declarations (Mauro Bieg).
1891 * Moved `make_osx_package.sh` to `osx/` directory.
1893 * Travis continuous integration:
1895 + Fix false positives with dist build.
1896 + Speed improvements (Kolen Cheung, #3304, #3357).
1900 + Clarify that blank space is needed around footnotes (#3352).
1901 + Fixed typo (#3351, Alexey Rogechev).
1902 + Note that `--wrap=auto` does not work in HTML output.
1903 + Default `--columns` width is 72, not 80.
1904 + Fixed broken links (#3316, Kolen Cheung).
1905 + Document usage of `@*` in nocite section (#3333, John Muccigrosso).
1909 + Indent code so it's properly formatted (#3335, Bheesham Persaud).
1910 + Added instructions for extracting binary from OSX, Windows packages.
1912 * CONTRIBUTING.md: Describe labels currently used in issue tracker
1913 (Albert Krewinkel). The labels have changed over time, the list of
1914 labels is updated to reflect the current set of labels used in the
1917 * Rearrange and extend badges in README (Albert Krewinkel, #3354)
1919 * Bumped version bounds for dependencies.
1924 * Set `PANDOC_VERSION` environment variable for filters (#2640).
1925 This allows filters to check the pandoc version that produced
1926 the JSON they are receiving.
1928 * Docx reader: Ensure one-row tables don't have header (#3285,
1929 Jesse Rosenthal). Tables in MS Word are set by default to have
1930 special first-row formatting, which pandoc uses to determine whether
1931 or not they have a header. This means that one-row tables will, by
1932 default, have only a header -- which we imagine is not what people
1933 want. This change ensures that a one-row table is not understood to
1934 be a header only. Note that this means that it is impossible to
1935 produce a header-only table from docx, even though it is legal
1936 pandoc. But we believe that in nearly all cases, it will be an
1937 accidental (and unwelcome) result
1941 + Fixed some bad regressions in HTML table parser (#3280).
1942 This regression leads to the introduction of empty rows
1943 in some circumstances.
1944 + Understand `style=width:` as well as `width` in `col` (#3286).
1948 + Print warnings when keys, substitition, notes not found.
1949 Previously the parsers failed and we got raw text. Now we get a
1950 link with an empty URL, or empty inlines in the case of a note or
1953 + Fix hyperlink aliases (#3283).
1955 * Man writer: Ensure that periods are escaped at beginning of line
1958 * LaTeX writer: Fix unnumbered headers when used with `--top-level`
1959 (#3272, Albert Krewinkel). Fix interaction of top-level divisions
1960 `part` or `chapter` with unnumbered headers when emitting LaTeX. Headers
1961 are ensured to be written using stared commands (like `\subsection*{}`).
1963 * LaTeX template: use comma not semicolon to separate keywords for
1964 `pdfkeywords`. Thanks to Wandmalfarbe.
1966 * Markdown writer: Fixed incorrect word wrapping (#3277). Previously pandoc
1967 would sometimes wrap lines too early due to this bug.
1969 * Text.Pandoc.Pretty: Added `afterBreak` [API change]. This makes it
1970 possible to insert escape codes for content that needs escaping at the
1971 beginning of a line.
1973 * Removed old MathMLInHTML.js from 2004, which should no longer
1974 be needed for MathML with modern browsers.
1976 * Fixed tests with dynamic linking (#2709).
1978 * Makefile: Use stack instead of cabal for targets. This is just
1979 a convenience for developers.
1981 * Fixed bash completion of filenames with space (#2749).
1983 * MANUAL: improved documentation on how to create a custom `reference.docx`.
1985 * Fix minor spelling typos in the manual (#3273, Anthony Geoghegan)
1989 * Changed resolution of filter paths.
1991 + We now first treat the argument of `--filter` as a full (absolute
1992 or relative) path, looking for a program there. If it's found, we
1994 + If not, and if it is a simple program name or a relative path, we
1995 try resolving it relative to `$DATADIR/filters`.
1996 + If this fails, then we treat it as a program name and look in the
1998 + Removed a hardcoded '/' that may have caused problems with
2001 Previously if you did `--filter foo` and you had `foo` in your path and
2002 also an executable `foo` in your working directory, the one in the path
2003 would be used. Now the one in the working directory is used.
2005 In addition, when you do `--filter foo/bar.hs`, pandoc will now find a
2006 filter `$DATADIR/filters/foo/bar.hs` -- assuming there isn't a
2007 `foo/bar.hs` relative to the working directory.
2009 * Allow `file://` URIs as arguments (#3196). Also improved default reader
2010 format detection. Previously with a URI ending in .md or .markdown,
2011 pandoc would assume HTML input. Now it treats these as markdown.
2013 * Allow to overwrite top-level division type heuristics (#3258,
2014 Albert Krewinkel). Pandoc uses heuristics to determine the most
2015 reasonable top-level division type when emitting LaTeX or
2016 Docbook markup. It is now possible to overwrite this implicitly set
2017 top-level division via the `top-level-division` command line parameter.
2019 * Text.Pandoc.Options \[API changes\]:
2021 + Removed `writerStandalone` field in `WriterOptions`, made
2022 `writerTemplate` a `Maybe` value. Previously setting
2023 `writerStandalone = True` did nothing unless a template was provided
2024 in writerTemplate. Now a fragment will be generated if
2025 `writerTemplate` is `Nothing`; otherwise, the specified template
2026 will be used and standalone output generated.
2027 + `Division` has been renamed `TopLevelDivision` (#3197). The
2028 `Section`, `Chapter`, and `Part` constructors were renamed to
2029 `TopLevelSection`, `TopLevelChapter`, and
2030 `TopLevelPart`, respectively. An additional `TopLevelDefault`
2031 constructor was added, which is now also the new default value of
2032 the `writerTopLevelDivision` field in `WriterOptions`.
2034 * Improved error if they give wrong arg to `--top-level-division`.
2036 * Use new module from texmath to lookup MS font codepoints in Docx reader.
2037 Removed unexported module Text.Pandoc.Readers.Docx.Fonts. Its code now
2038 lives in texmath (0.9).
2040 * DocBook reader: Fixed xref lookup (#3243). It previously only worked
2041 when the qnames lacked the docbook namespace URI.
2045 + Improved table parsing (#3027). We now check explicitly for non-1
2046 rowspan or colspan attributes, and fail when we encounter them.
2047 Previously we checked that each row had the same number of cells,
2048 but that could be true even with rowspans/colspans. And there are
2049 cases where it isn't true in tables that we can handle fine -- e.g.
2050 when a tr element is empty. So now we just pad rows with empty cells
2052 + Treat `<math>` as MathML by default unless something else is
2053 explicitly specified in xmlns. Provided it parses as MathML,
2054 of course. Also fixed default which should be to inline math if no
2055 display attribute is used.
2056 + Only treat "a" element as link if it has href (#3226). Otherwise
2059 * Docx reader (Jesse Rosenthal):
2061 + Add a placeholder value for CHART. We wrap `[CHART]` in a
2062 `<span class="chart">`. Note that it maps to inlines because, in
2063 docx, anything in a drawing tag can be part of a larger paragraph.
2064 + Be more specific in parsing images We not only want `w:drawing`,
2065 because that could also include charts. Now we specify
2066 `w:drawing/pic:pic`. This shouldn't change behavior at all, but it's
2067 a first step toward allowing other sorts of drawing data as well.
2068 + Abstract out function to avoid code repetition.
2069 + Update tests for img title and alt (#3204).
2070 + Handle Alt text and titles in images. We use the "description" field
2071 as alt text and the "title" field as title. These can be accessed
2072 through the "Format Picture" dialog in Word.
2073 + Docx reader utils: handle empty namespace in `elemName`. Previously,
2074 if given an empty namespace `(elemName ns "" "foo")` `elemName`
2075 would output a QName with a `Just ""` namespace. This is never what
2076 we want. Now we output a `Nothing`. If someone *does* want a
2077 `Just ""` in the namespace, they can enter the QName
2080 * ODT reader/writer:
2082 + Inline code when text has a special style (Hubert Plociniczak). When
2083 a piece of text has a text `Source_Text` then we assume that this is
2084 a piece of the document that represents a code that needs to
2085 be inlined. Adapted the writer to also reflect that change.
2086 Previously it was just writing a 'preformatted' text using a
2087 non-distinguishable font style. Code blocks are still not recognized
2088 by the ODT reader. That's a separate issue.
2089 + Infer table's caption from the paragraph (#3224,
2090 Hubert Plociniczak). ODT's reader always put empty captions for the
2091 parsed tables. This commit
2093 1. checks paragraphs that follow the table definition
2094 2. treats specially a paragraph with a style named 'Table'
2095 3. does some postprocessing of the paragraphs that combines tables
2096 followed immediately by captions
2098 The ODT writer used the `TableCaption` style for the caption
2099 paragraph. This commit follows the OpenOffice approach which allows
2100 for appending captions to table but uses a built-in style named
2101 `Table` instead of `TableCaption`. Users of a custom `reference.odt`
2102 should change the style's name from `TableCaption` to `Table`.
2104 * ODT reader: Infer tables' header props from rows (#3199,
2105 Hubert Plociniczak). ODT reader simply provided an empty header list
2106 which meant that the contents of the whole table, even if not empty, was
2107 simply ignored. While we still do not infer headers we at least have to
2108 provide default properties of columns.
2112 + Allow reference link labels starting with `@...` if `citations`
2113 extension disabled (#3209). Example: in
2117 `link text` isn't hyperlinked because `[@a]` is parsed as
2118 a citation. Previously this happened whether or not the `citations`
2119 extension was enabled. Now it happens only if the `citations`
2120 extension is enabled.
2121 + Allow alignments to be specified in Markdown grid tables. For
2124 +-------+---------------+--------------------+
2125 | Right | Left | Centered |
2126 +=========:+:=================+:=============:+
2127 | Bananas | $1.34 | built-in wrapper |
2128 +-------+---------------+--------------------+
2130 + Allow Small Caps elements to be created using bracketed spans (as
2131 they already can be using HTML-syntax spans) (#3191, Kolen Cheung).
2135 + Don't treat `\vspace` and `\hspace` as block commands (#3256).
2136 Fixed an error which came up, for example, with `\vspace` inside
2137 a caption. (Captions expect inlines.)
2138 + Improved table handling. We can now parse all of the tables emitted
2139 by pandoc in our tests. The only thing we don't get yet are
2140 alignments and column widths in more complex tables. See #2669.
2141 + Limited support for minipage.
2142 + Allow for `[]`s inside LaTeX optional args. Fixes cases like:
2143 + Handle BVerbatim from fancyvrb (#3203).
2144 + Handle hungarumlaut (#3201).
2145 + Allow beamer-style `<...>` options in raw LaTeX (also in Markdown)
2146 (#3184). This allows use of things like `\only<2,3>{my content}` in
2147 Markdown that is going to be converted to beamer.
2149 * Use pre-wrap for code in dzslides template (Nicolas Porcel). Otherwise
2150 overly long code will appear on every slide.
2152 * Org reader (Albert Krewinkel):
2154 + Respect column width settings (#3246). Table column properties can
2155 optionally specify a column's width with which it is displayed in
2156 the buffer. Some exporters, notably the ODT exporter in org-mode
2157 v9.0, use these values to calculate relative column widths. The org
2158 reader now implements the same behavior. Note that the org-mode
2159 LaTeX and HTML exporters in Emacs don't support this feature yet,
2160 which should be kept in mind by users who use the column
2162 + Allow HTML attribs on non-figure images (#3222). Images which are
2163 the only element in a paragraph can still be given HTML attributes,
2164 even if the image does not have a caption and is hence not a figure.
2165 The following will add set the `width` attribute of the image to
2168 +ATTR\_HTML: :width 50%
2169 =======================
2171 \[\[file:image.jpg\]\]
2173 + Support `ATTR_HTML` for special blocks (#3182). Special
2174 blocks (i.e. blocks with unrecognized names) can be prefixed with an
2175 `ATTR_HTML` block attribute. The attributes defined in that
2176 meta-directive are added to the `Div` which is used to represent the
2178 + Support the `todo` export option. The `todo` export option allows to
2179 toggle the inclusion of TODO keywords in the output. Setting this to
2180 `nil` causes TODO keywords to be dropped from headlines. The default
2181 is to include the keywords.
2182 + Add support for todo-markers. Headlines can have optional
2183 todo-markers which can be controlled via the `#+TODO`, `#+SEQ_TODO`,
2184 or `#+TYP_TODO` meta directive. Multiple such directives can be
2185 given, each adding a new set of recognized todo-markers. If no
2186 custom todo-markers are defined, the default `TODO` and `DONE`
2187 markers are used. Todo-markers are conceptually separate from
2188 headline text and are hence excluded when autogenerating
2189 headline IDs. The markers are rendered as spans and labelled with
2190 two classes: One class is the markers name, the other signals the
2191 todo-state of the marker (either `todo` or `done`).
2195 + Use `\autocites*` when "suppress-author" citation used.
2196 + Ensure that simple tables have simple cells (#2666). If cells
2197 contain more than a single Plain or Para, then we need to set
2198 nonzero widths and put contents into minipages.
2199 + Remove invalid inlines in sections (#3218, Hubert Plociniczak).
2203 + Fix calculation of column widths for aligned multiline tables
2204 (#1911, Björn Peemöller). This also fixes excessive CPU and memory
2205 usage for tables when `--columns` is set in such a way that cells
2206 must be very tiny. Now cells are guaranteed to be big enough so that
2207 single words don't need to line break, even if this pushes the line
2208 length above the column width.
2209 + Use bracketed form for native spans when `bracketed_spans`
2211 + Fixed inconsistent spacing issue (#3232). Previously a tight bullet
2212 sublist got rendered with a blank line after, while a tight ordered
2213 sublist did not. Now we don't get the blank line in either case.
2214 + Fix escaping of spaces in super/subscript (#3225). Previously two
2215 backslashes were inserted, which gave a literal backslash.
2216 + Adjust widths in Markdown grid tables so that they match
2221 + Give full detail when there are errors converting tex math.
2222 + Handle title text in images (Jesse Rosenthal). We already handled
2223 alt text. This just puts the image "title" into the docx
2225 + Fixed XML markup for empty cells (#3238). Previously the Compact
2226 style wasn't being applied properly to empty cells.
2230 + Updated `renderHtml` import from blaze-html.
2232 * Text.Pandoc.Pretty:
2234 + Fixed some bugs that caused blank lines in tables (#3251). The bugs
2235 caused spurious blank lines in grid tables when we had things like
2236 `blankline $$ blankline`.
2237 + Add exported function `minOffet` \[API change\] (Björn Peemöller).
2238 + Added error message for illegal call to `block` (Björn Peemöller).
2240 * Text.Pandoc.Shared:
2242 + Put `warn` in MonadIO.
2243 + `fetchItem`: Better handling of protocol-relative URL (#2635). If
2244 URL starts with `//` and there is no "base URL" (as there would be
2245 if a URL were used on the command line), then default to http:.
2247 * Export Text.Pandoc.getDefaultExtensions \[API change\] (#3178).
2249 * In --version, trap error in `getAppUserDataDirectory` (#3241). This
2250 fixes a crash with `pandoc --version` on unusual systems with no real
2251 user (e.g. SQL Server 2016).
2253 * Added weigh-pandoc for memory usage diagnostics (#3169).
2255 * Use correct mime types for woff and woff2 (#3228).
2257 * Remove make\_travis\_yml.hs (#3235, Kolen Cheung).
2259 * changelog: Moved an item that was misplaced in the 1.17.2 section to the
2260 1.18 section where it belongs.
2262 * CONTRIBUTING.md: minor change in wording and punctuation (#3252,
2265 * Further revisions to manual for `--version` changes (#3244).
2270 * Added `--list-input-formats`, `--list-output-formats`,
2271 `--list-extensions`, `--list-highlight-languages`, and
2272 `--list-highlight-styles` (#3173). Removed list of highlighting
2273 languages from `--version` output. Removed list of input and output
2274 formats from default `--help` output.
2276 * Added `--reference-location=block|section|document` option
2277 (Jesse Rosenthal). This determines whether Markdown link references
2278 and footnotes are placed at the end of the document, the end of the
2279 section, or the end of the top-level block.
2281 * Added `--top-level-division=section|chapter|part` (Albert Krewinkel).
2282 This determines what a level-1 header corresponds to in LaTeX,
2283 ConTeXt, DocBook, and TEI output. The default is `section`.
2284 The `--chapters` option has been deprecated in favor of
2285 `--top-level-division=chapter`.
2287 * Added `LineBlock` constructor for `Block` (Albert Krewinkel). This
2288 is now used in parsing RST and Markdown line blocks, DocBook
2289 `linegroup`/`line` combinations, and Org-mode `VERSE` blocks.
2290 Previously `Para` blocks with hard linebreaks were used. `LineBlock`s
2291 are handled specially in the following ouput formats: AsciiDoc
2292 (as `[verse]` blocks), ConTeXt (`\startlines`/`\endlines`),
2293 HTML (`div` with a style), Markdown (line blocks if `line_blocks`
2294 is enabled), Org-mode (`VERSE` blocks), RST (line blocks). In
2295 other output formats, a paragraph with hard linebreaks is emitted.
2297 * Allow binary formats to be written to stdout (but not to tty) (#2677).
2298 Only works on posix, since we use the unix library to check whether
2299 output is to tty. On Windows, pandoc works as before and always requires
2300 an output file parameter for binary formats.
2302 * Changed JSON output format (Jesse Rosenthal). Previously we used
2303 generically generated JSON, but this was subject to change depending
2304 on the version of aeson pandoc was compiled with. To ensure stability,
2305 we switched to using manually written ToJSON and FromJSON
2306 instances, and encoding the API version. **Note:** pandoc filter
2307 libraries will need to be revised to handle the format change.
2308 Here is a summary of the essential changes:
2310 + The toplevel JSON format is now `{"pandoc-api-version" :
2311 [MAJ, MIN, REV], "meta" : META, "blocks": BLOCKS}`
2312 instead of `[{"unMeta": META}, [BLOCKS]]`.
2313 Decoding fails if the major and minor version numbers don't
2315 + Leaf nodes no longer have an empty array for their "c" value.
2316 Thus, for example, a `Space` is encoded as `{"t":"Space"}`
2317 rather than `{"t":"Space","c":[]}` as before.
2319 * Removed `tests/Tests/Arbitrary.hs` and added a `Text.Pandoc.Arbitrary`
2320 module to pandoc-types (Jesse Rosenthal). This makes it easier
2321 to use QuickCheck with pandoc types outside of pandoc itself.
2323 * Add `bracketed_spans` Markdown extension, enabled by default
2324 in pandoc `markdown`. This allows you to create a native span
2325 using this syntax: `[Here is my span]{#id .class key="val"}`.
2327 * Added `angle_brackets_escapable` Markdown extension (#2846).
2328 This is needed because github flavored Markdown has a slightly
2329 different set of escapable symbols than original Markdown;
2330 it includes angle brackets.
2332 * Export `Text.Pandoc.Error` in `Text.Pandoc` [API change].
2334 * Print highlighting-kate version in `--version`.
2336 * `Text.Pandoc.Options`:
2338 + `Extension` has new constructors `Ext_brackted_spans` and
2339 `Ext_angle_brackets_escapable` [API change].
2340 + Added `ReferenceLocation` type [API change] (Jesse Rosenthal).
2341 + Added `writerReferenceLocation` field to `WriterOptions` (Jesse
2344 * `--filter`: we now check `$DATADIR/filters` for filters before
2345 looking in the path (#3127, Jesse Rosenthal, thanks to Jakob
2346 Voß for the idea). Filters placed in this directory need not
2347 be executable; if the extension is `.hs`, `.php`, `.pl`, `.js`,
2348 or `.rb`, pandoc will run the right interpreter.
2350 * For `--webtex`, replace deprecated Google Chart API by CodeCogs as
2351 default (Kolen Cheung).
2353 * Removed `raw_tex` extension from `markdown_mmd` defaults (Kolen Cheung).
2355 * Execute .js filters with node (Jakob Voß).
2359 + Support `bc..` extended code blocks (#3037). Also, remove trailing
2360 newline in code blocks (consistently with Markdown reader).
2361 + Improve table parsing. We now handle cell and row attributes, mostly
2362 by skipping them. However, alignments are now handled properly.
2363 Since in pandoc alignment is per-column, not per-cell, we
2364 try to devine column alignments from cell alignments.
2365 Table captions are also now parsed, and textile indicators
2366 for thead and tfoot no longer cause parse failure. (However,
2367 a row designated as tfoot will just be a regular row in pandoc.)
2368 + Improve definition list parsing. We now allow multiple terms
2369 (which we concatenate with linebreaks). An exponential parsing
2370 bug (#3020) is also fixed.
2371 + Disallow empty URL in explicit link (#3036).
2375 + Use Div instead of BlockQuote for admonitions (#3031).
2376 The Div has class `admonition` and (if relevant) one of the
2377 following: `attention`, `caution`, `danger`, `error`, `hint`,
2378 `important`, `note`, `tip`, `warning`. **Note:** This will change
2379 the rendering of some RST documents! The word ("Warning", "Attention",
2380 etc.) is no longer added; that must be done with CSS or a filter.
2381 + A Div is now used for `sidebar` as well.
2382 + Skip whitespace before note (Jesse Rosenthal, #3163). RST requires a
2383 space before a footnote marker. We discard those spaces so that footnotes
2384 will be adjacent to the text that comes before it. This is in line with
2385 what rst2latex does.
2386 + Allow empty lines when parsing line blocks (Albert Krewinkel).
2390 + Allow empty lines when parsing line blocks (Albert Krewinkel).
2391 + Allow attributes on autolinks (#3183, Daniele D'Orazio).
2395 + More robust parsing of unknown environments (#3026).
2396 We no longer fail on things like `^` inside options for tikz.
2397 + Be more forgiving of non-standard characters, e.g. `^` outside of math.
2398 Some custom environments give these a meaning, so we should try not to
2399 fall over when we encounter them.
2400 + Drop duplicate `*` in bibtexKeyChars (Albert Krewinkel)
2404 + Fix for unquoted attribute values in mediawiki tables (#3053).
2405 Previously an unquoted attribute value in a table row
2406 could cause parsing problems.
2407 + Improved treatment of verbatim constructions (#3055).
2408 Previously these yielded strings of alternating Code and Space
2409 elements; we now incorporate the spaces into the Code. Emphasis
2410 etc. is still possible inside these.
2411 + Properly interpret XML tags in pre environments (#3042). They are meant
2412 to be interpreted as literal text.
2414 * EPUB reader: don't add root path to data: URIs (#3150).
2415 Thanks to @lep for the bug report and patch.
2417 * Org reader (Albert Krewinkel):
2419 + Preserve indentation of verse lines (#3064). Leading spaces in verse
2420 lines are converted to non-breaking spaces, so indentation is preserved.
2421 + Ensure image sources are proper links. Image sources as those in plain
2422 images, image links, or figures, must be proper URIs or relative file
2423 paths to be recognized as images. This restriction is now enforced
2424 for all image sources. This also fixes the reader's usage of uncleaned
2425 image sources, leading to `file:` prefixes not being deleted from
2426 figure images. Thanks to @bsag for noticing this bug.
2427 + Trim verse lines properly (Albert Krewinkel).
2428 + Extract meta parsing code to module. Parsing of meta-data is well
2429 separable from other block parsing tasks. Moving into new module to
2430 get small files and clearly arranged code.
2431 + Read markup only for special meta keys. Most meta-keys should be read
2432 as normal string values, only a few are interpreted as marked-up text.
2433 + Allow multiple, comma-separated authors. Multiple authors can be
2434 specified in the `#+AUTHOR` meta line if they are given as a
2435 comma-separated list.
2436 + Give precedence to later meta lines. The last meta-line of any given
2437 type is the significant line. Previously the value of the first line
2438 was kept, even if more lines of the same type were encounterd.
2439 + Read LaTeX_header as header-includes. LaTeX-specific header commands
2440 can be defined in `#+LaTeX_header` lines. They are parsed as
2441 format-specific inlines to ensure that they will only show up in LaTeX
2443 + Set documentclass meta from LaTeX_class.
2444 + Set classoption meta from LaTeX_class_options.
2445 + Read HTML_head as header-includes. HTML-specific head content can be
2446 defined in `#+HTML_head` lines. They are parsed as format-specific
2447 inlines to ensure that they will only show up in HTML output.
2448 + Respect `author` export option. The `author` option controls whether
2449 the author should be included in the final markup. Setting
2450 `#+OPTIONS: author:nil` will drop the author from the final meta-data
2452 + Respect `email` export option. The `email` option controls whether the
2453 email meta-field should be included in the final markup. Setting
2454 `#+OPTIONS: email:nil` will drop the email field from the final
2456 + Respect `creator` export option. The `creator` option controls whether
2457 the creator meta-field should be included in the final markup. Setting
2458 `#+OPTIONS: creator:nil` will drop the creator field from the final
2459 meta-data output. Org-mode recognizes the special value `comment` for
2460 this field, causing the creator to be included in a comment. This is
2461 difficult to translate to Pandoc internals and is hence interpreted the
2462 same as other truish values (i.e. the meta field is kept if it's
2464 + Respect unnumbered header property (#3095). Sections the `unnumbered`
2465 property should, as the name implies, be excluded from the automatic
2466 numbering of section provided by some output formats. The Pandoc
2467 convention for this is to add an "unnumbered" class to the header. The
2468 reader treats properties as key-value pairs per default, so a special
2469 case is added to translate the above property to a class instead.
2470 + Allow figure with empty caption (Albert Krewinkel, #3161).
2471 A `#+CAPTION` attribute before an image is enough to turn an image into
2472 a figure. This wasn't the case because the `parseFromString` function,
2473 which processes the caption value, would fail on empty values. Adding
2474 a newline character to the caption value fixes this.
2478 + Use XML convenience functions (Jesse Rosenthal).
2479 The functions `isElem` and `elemName` (defined in Docx/Util.hs) make
2480 the code a lot cleaner than the original XML.Light functions, but they
2481 had been used inconsistently. This puts them in wherever applicable.
2482 + Handle anchor spans with content in headers. Previously, we would only
2483 be able to figure out internal links to a header in a docx if the
2484 anchor span was empty. We change that to read the inlines out of the
2485 first anchor span in a header.
2486 + Let headers use exisiting id. Previously we always generated an id for
2487 headers (since they wouldn't bring one from Docx). Now we let it use an
2488 existing one if possible. This should allow us to recurs through anchor
2490 + Use all anchor spans for header ids. Previously we only used the first
2491 anchor span to affect header ids. This allows us to use all the anchor
2492 spans in a header, whether they're nested or not (#3088).
2493 + Test for nested anchor spans in header. This ensures that anchor spans
2494 in header with content (or with other anchor spans inside) will resolve
2495 to links to a header id properly.
2497 * ODT reader (Hubert Plociniczak)
2499 + Include list's starting value. Previously the starting value of
2500 the lists' items has been hardcoded to 1. In reality ODT's list
2501 style definition can provide a new starting value in one of its
2503 + Infer caption from the text following the image.
2504 Frame can contain other frames with the text boxes.
2505 + Add `fig:` to title for Image with a caption (as expected
2506 by pandoc's writers).
2507 + Basic support for images in ODT documents.
2508 + Don't duplicate text for anchors (#3143). When creating an anchor
2509 element we were adding its representation as well as the original
2510 content, leading to text duplication.
2514 + Include an anchor element when a div or span has an id (#3102).
2515 Note that DocBook does not have a class attribute, but at least this
2516 provides an anchor for internal links.
2520 + Don't use * for unnumbered paragraph, subparagraph. The starred
2521 variants don't exist. This helps with part of #3058...it gets rid of
2522 the spurious `*`s. But we still have numbers on the 4th and 5th level
2524 + Properly escape backticks in verbatim (#3121, Jesse Rosenthal).
2525 Otherwise they can cause unintended ligatures like `` ?` ``.
2526 + Handle NARRAOW NO-BREAK SPACE into LaTeX (Vaclav Zeman) as `\,`.
2527 + Don't include `[htbp]` placement for figures (#3103, Václav Haisman).
2528 This allows figure placement defaults to be changed by the user
2531 * HTML writer (slide show formats): In slide shows, don't change slide title
2532 to level 1 header (#2221).
2534 * TEI writer: remove heuristic to detect book template (Albert Krewinkel).
2535 TEI doesn't have `<book>` elements but only generic `<divN>` division
2536 elements. Checking the template for a trailing `</book>` is nonsensical.
2538 * MediaWiki writer: transform filename with underscores in images (#3052).
2539 `foo bar.jpg` becomes `foo_bar.jpg`. This was already done
2540 for internal links, but it also needs to happen for images.
2542 * ICML writer: replace partial function (!!) in table handling (#3175,
2545 * Man writer: allow section numbers that are not a single digit (#3089).
2547 * AsciiDoc writer: avoid unnecessary use of "unconstrained" emphasis
2548 (#3068). In AsciiDoc, you must use a special form of emphasis
2549 (double `__`) for intraword emphasis. Pandoc was previously using
2550 this more than necessary.
2552 * EPUB writer: use stringify instead of plain writer for metadata
2553 (#3066). This means that underscores won't be used for emphasis,
2554 or CAPS for bold. The metadata fields will just have unadorned
2559 + Implement user-defined styles (Jesse Rosenthal). Divs and Spans
2560 with a `custom-style` key in the attributes will apply the corresponding
2561 key to the contained blocks or inlines.
2562 + Add ReaderT env to the docx writer (Jesse Rosenthal).
2563 + Clean up and streamline RTL behavior (Jesse Rosenthal, #3140).
2564 You can set `dir: rtl` in YAML metadata, or use `-M dir=rtl`
2565 on the command line. For finer-grained control, you can set
2566 the `dir` attribute in Div or Span elements.
2568 * Org writer (Albert Krewinkel):
2570 + Remove blank line after figure caption. Org-mode only treats an image
2571 as a figure if it is directly preceded by a caption.
2572 + Ensure blank line after figure. An Org-mode figure should be surrounded
2573 by blank lines. The figure would be recognized regardless, but images
2574 in the following line would unintentionally be treated as figures as
2576 + Ensure link targets are paths or URLs. Org-mode treats links as
2577 document internal searches unless the link target looks like a URL or
2578 file path, either relative or absolute. This change ensures that this
2580 + Translate language identifiers. Pandoc and Org-mode use different
2581 programming language identifiers. An additional translation between
2582 those identifiers is added to avoid unexpected behavior. This fixes a
2583 problem where language specific source code would sometimes be output
2585 + Drop space before footnote markers (Albert Krewinkel, #3162).
2586 The writer no longer adds an extra space before footnote markers.
2590 + Don't emit HTML for tables unless `raw_html` extension is set (#3154).
2591 Emit `[TABLE]` if no suitable table formats are enabled and raw HTML
2593 + Check for the `raw_html` extension before emiting a raw HTML block.
2594 + Abstract out note/ref function (Jesse Rosenthal).
2595 + Add ReaderT monad for environment variables (Jesse Rosenthal).
2597 * HTML, EPUB, slidy, revealjs templates: Use `<p>` instead of `<h1>` for
2598 subtitle, author, date (#3119). Note that, as a result of this change,
2599 authors may need to update CSS.
2601 * revealjs template: Added `notes-server` option
2602 (jgm/pandoc-templates#212, Yoan Blanc).
2606 + Restore whitespace between paragraphs. This was
2607 a regression in the last release (jgm/pandoc-templates#207).
2608 + Added `themeoptions` variable (Carsten Gips).
2609 + Added `beamerarticle` variable. This causes the `beamerarticle`
2610 package to be loaded in beamer, to produce an article from beamer
2611 slides. (Carsten Gips)
2612 + Added support for `fontfamilies` structured variable
2614 + Added hypersetup options (Jake Zimmerman).
2618 + Added dummy definition for `\institute`.
2619 This isn't a standard command, and we want to avoid a crash when
2620 `institute` is used with the default template.
2621 + Define default figure placement (Václav Haisman), since pandoc
2622 no longer includes `[htbp]` for figures. Users with custom templates
2623 will want to add this. See #3103.
2624 + Use footnote package to fix notes in tables (jgm/pandoc-templates#208,
2627 * Moved template compiling/rendering code to a separate library.
2628 `doctemplates`. This allows the pandoc templating system to be
2631 * Text.Pandoc.Error: Fix out of index error in `handleError`
2632 (Matthew Pickering). The fix is to not try to show the exact line when
2633 it would cause an out-of-bounds error as a result of included files.
2635 * Text.Pandoc.Shared: Add `linesToBlock` function (Albert Krewinkel).
2637 * Text.Pandoc.Parsing.emailAddress: tighten up parsing of email
2638 addresses. Technically `**@user` is a valid email address, but if we
2639 allow things like this, we get bad results in markdown flavors
2640 that autolink raw email addresses (see #2940). So we exclude a few
2641 valid email addresses in order to avoid these more common bad cases.
2643 * Text.Pandoc.PDF: Don't crash with nonexistent image (#3100). Instead,
2644 emit the alt text, emphasized. This accords with what the ODT writer
2645 currently does. The user will still get a warning about a nonexistent
2648 * Fix example in API documentation (#3176, Thomas Weißschuh).
2650 * Tell where to get tarball in INSTALL (#3062).
2652 * Rename README to MANUAL.txt and add GitHub-friendly README.md
2653 (Albert Krewinkel, Kolen Cheung).
2655 * Replace COPYING with Markdown version COPYING.md from GNU (Kolen Cheung).
2659 + Put note on structured vars in separate paragraph (#2148, Albert
2660 Krewinkel). Make it clearer that structured author variables require a
2662 + Note that `--katex` works best with `html5` (#3077).
2663 + Fix the LaTeX and EPUB links in manual (Morton Fox).
2664 + Document `biblio-title` variable.
2666 * Improve spacing of footnotes in `--help` output (Waldir Pimenta).
2668 * Update KaTeX to v0.6.0 (Kolen Cheung).
2670 * Allow latest dependencies.
2672 * Use texmath 0.8.6.6 (#3040).
2674 * Allow http-client 0.4.30, which is the version in stackage lts.
2675 Previously we required 0.5.
2676 Remove CPP conditionals for earlier versions.
2678 * Remove support for GHC < 7.8 (Jesse Rosenthal).
2680 + Remove Compat.Monoid.
2681 + Remove an inline monad compatibility macro.
2682 + Remove Text.Pandoc.Compat.Except.
2683 + Remove directory compat.
2684 + Change constraint on mtl.
2685 + Remove unnecessary CPP condition in UTF8.
2686 + Bump base lower bound to 4.7.
2687 + Remove 7.6 build from .travis.yaml.
2688 + Bump supported ghc version in CONTRIBUTING.md.
2689 + Add note about GHC version support to INSTALL.
2690 + Remove GHC 7.6 from list of tested versions (Albert Krewinkel).
2691 + Remove TagSoup compat.
2692 + Add EOL note to time compat module. Because time 1.4 is a boot library
2693 for GHC 7.8, we will support the compatibility module as long as we
2694 support 7.8. But we should be clear about when we will no longer need
2696 + Remove blaze-html CPP conditional.
2697 + Remove unnecessary CPP in custom Prelude.
2701 * Added Zim Wiki writer, template and tests. `zimwiki` is now
2702 a valid output format. (Alex Ivkin)
2704 * Changed email-obfuscation default to no obfuscation (#2988).
2705 + `writerEmailObfuscation` in `defaultWriterOptions` is now
2707 + the default for the command-line `--email-obfuscation` option is
2710 * Docbook writer: Declare xlink namespace in Docbook5 output (Ivo Clarysse).
2714 + Support arbitrary raw inlines (Albert Krewinkel).
2715 Org mode allows arbitrary raw inlines ("export snippets" in Emacs
2716 parlance) to be included as `@@format:raw foreign format text@@`.
2717 + Improve Div handling (Albert Krewinkel). Div blocks handling is
2718 changed to make the output look more like idiomatic org mode:
2719 - Div-wrapped content is output as-is if the div's attribute is the
2721 - Div containers with an id but neither classes nor key-value pairs
2722 are unwrapped and the id is added as an anchor.
2723 - Divs with classes associated with greater block elements are
2724 wrapped in a `#+BEGIN`...`#+END` block.
2725 - The old behavior for Divs with more complex attributes is kept.
2729 + Better support for raw LaTeX environments (#2758).
2730 Previously we just passed all raw TeX through when MathJax was used for
2731 HTML math. This passed through too much. With this patch, only raw
2732 LaTeX environments that MathJax can handle get passed through.
2733 This patch also causes raw LaTeX environments to be treated
2734 as math, when possible, with MathML and WebTeX output.
2736 * Markdown writer: use raw HTML for simple, pipe tables with linebreaks
2737 (#2993). Markdown line breaks involve a newline, and simple and pipe
2738 tables can't contain one.
2740 * Make --webtex work with the Markdown writer (#1177).
2741 This is a convenient option for people using
2742 websites whose Markdown flavors don't provide for math.
2746 + Set paragraph to FirstPara after display math (Jesse Rosenthal).
2747 We treat display math like block quotes, and apply FirstParagraph style
2748 to paragraphs that follow them. These can be styled as the user
2749 wishes. (But, when the user is using indentation, this allows for
2750 paragraphs to continue after display math without indentation.)
2751 + Use actual creation time as doc prop (Jesse Rosenthal).
2752 Previously, we had used the user-supplied date, if available, for Word's
2753 document creation metadata. This could lead to weird results, as in
2754 cases where the user post-dates a document (so the modification might be
2755 prior to the creation). Here we use the actual computer time to set the
2760 + Don't URI-escape image source (#2825). Usually this is a local file,
2761 and replacing spaces with `%20` ruins things.
2762 + Allow 'standout' as a beamer frame option (#3007).
2763 `## Slide title {.standout}`.
2765 * RST reader: Fixed links with no explicit link text. The link
2766 `` `<foo>`_ `` should have `foo` as both its link text and its URL.
2767 See RST spec at <http://docutils.sourceforge.net/docs/ref/rst/restructuredtext.html#embedded-uris-and-aliases>
2768 Closes Debian #828167 -- reported by Christian Heller.
2772 + Fixed attributes (#2984). Attributes can't be followed by
2773 a space. So, `_(class)emph_` but `_(noclass) emph_`.
2774 + Fixed exponential parsing bug (#3020).
2775 + Fix overly aggressive interpretation as images (#2998).
2776 Spaces are not allowed in the image URL in textile.
2780 + Fix `\cite` so it is a NormalCitation not AuthorInText.
2781 + Strip off double quotes around image source if present (#2825).
2782 Avoids interpreting these as part of the literal filename.
2786 + Add semicolon to list of special chars (Albert Krewinkel)
2787 Semicolons are used as special characters in citations syntax. This
2788 ensures the correct parsing of Pandoc-style citations: `[prefix; @key;
2789 suffix]`. Previously, parsing would have failed unless there was a space
2790 or other special character as the last <prefix> character.
2791 + Add support for "Berkeley-style" cites (Albert Krewinkel, #1978).
2792 A specification for an official Org-mode citation syntax was drafted by
2793 Richard Lawrence and enhanced with the help of others on the orgmode
2794 mailing list. Basic support for this citation style is added to the
2796 + Support arbitrary raw inlines (Albert Krewinkel).
2797 Org mode allows arbitrary raw inlines ("export snippets" in Emacs
2798 parlance) to be included as `@@format:raw foreign format text@@`.
2799 + Remove partial functions (Albert Krewinkel, #2991).
2800 Partial functions like `head` lead to avoidable errors and should be
2801 avoided. They are replaced with total functions.
2802 + Support figure labels (Albert Krewinkel, #2496, #2999).
2803 Figure labels given as `#+LABEL: thelabel` are used as the ID of the
2804 respective image. This allows e.g. the LaTeX to add proper `\label`
2806 + Improve tag and properties type safety (Albert Krewinkel).
2807 Specific newtype definitions are used to replace stringly typing of tags
2808 and properties. Type safety is increased while readability is improved.
2809 + Parse as headlines, convert to blocks (Albert Krewinkel).
2810 Emacs org-mode is based on outline-mode, which treats documents as trees
2811 with headlines are nodes. The reader is refactored to parse into a
2812 similar tree structure. This simplifies transformations acting on
2813 document (sub-)trees.
2814 * Refactor comment tree handling (Albert Krewinkel).
2815 Comment trees were handled after parsing, as pattern matching on lists
2816 is easier than matching on sequences. The new method of reading
2817 documents as trees allows for more elegant subtree removal.
2818 * Support archived trees export options (Albert Krewinkel).
2819 Handling of archived trees can be modified using the `arch` option.
2820 Archived trees are either dropped, exported completely, or collapsed to
2821 include just the header when the `arch` option is nil, non-nil, or
2822 `headline`, respectively.
2823 * Put export setting parser into module (Albert Krewinkel).
2824 Export option parsing is distinct enough from general block parsing to
2825 justify putting it into a separate module.
2826 * Support headline levels export setting (Albert Krewinkel).
2827 The depths of headlines can be modified using the `H` option. Deeper
2828 headlines will be converted to lists.
2829 * Replace ugly code with view pattern (Albert Krewinkel).
2830 Some less-than-smart code required a pragma switching of overlapping
2831 pattern warnings in order to compile seamlessly. Using view patterns
2832 makes the code easier to read and also doesn't require overlapping
2833 pattern checks to be disabled.
2834 * Fix parsing of verbatim inlines (Albert Krewinkel, #3016).
2835 Org rules for allowed characters before or after markup chars were not
2836 checked for verbatim text. This resultet in wrong parsing outcomes of
2837 if the verbatim text contained e.g. space enclosed markup characters as
2838 part of the text (`=is_substr = True=`). Forcing the parser to update
2839 the positions of allowed/forbidden markup border characters fixes this.
2841 * LaTeX template: fix for obscure hyperref/xelatex issue.
2842 Here's a minimal case:
2844 \documentclass[]{article}
2845 \usepackage{hyperref}
2850 Without this change, this fails on the second invocation of xelatex.
2851 This affects inputs this like `# %á` with pdf output via xelatex.
2853 * trypandoc: call results 'html' instead of 'result'.
2854 This is for better compatibility with babelmark2.
2856 * Document MultiMarkdown as input/output format (Albert Krewinkel, #2973).
2857 MultiMarkdown was only mentioned as a supported Markdown dialect but not
2858 as a possible input or output format. A brief mention is added
2859 everywhere the other supported markdown dialects are mentioned.
2861 * Document Org mode as a format containing raw HTML (Albert Krewinkel)
2862 Raw HTML is kept when the output format is Emacs Org mode.
2864 * Implement `RawInline` and `RawBlock` in sample lua custom writer (#2985).
2866 * Text.Pandoc.Shared:
2868 + Introduce blocksToInlines function (Jesse Rosenthal).
2869 This is a lossy function for converting `[Block] -> [Inline]`. Its main
2870 use, at the moment, is for docx comments, which can contain arbitrary
2871 blocks (except for footnotes), but which will be converted to spans.
2872 This is, at the moment, pretty useless for everything but the basic
2873 `Para` and `Plain` comments. It can be improved, but the docx reader
2874 should probably emit a warning if the comment contains more than this.
2875 + Add BlockQuote to blocksToInlines (Jesse Rosenthal).
2876 + Add further formats for `normalizeDate` (Jesse Rosenthal).
2877 We want to avoid illegal dates -- in particular years with greater than
2878 four digits. We attempt to parse series of digits first as `%Y%m%d`, then
2879 `%Y%m`, and finally `%Y`.
2880 + `normalizeDate` should reject illegal years (Jesse Rosenthal).
2881 We only allow years between 1601 and 9999, inclusive. The ISO 8601
2882 actually says that years are supposed to start with 1583, but MS Word
2883 only allows 1601-9999. This should stop corrupted word files if the date
2884 is out of that range, or is parsed incorrectly.
2885 + Improve year sanity check in normalizeDate (Jesse Rosenthal).
2886 Previously we parsed a list of dates, took the first one, and then
2887 tested its year range. That meant that if the first one failed, we
2888 returned nothing, regardless of what the others did. Now we test for
2889 sanity before running `msum` over the list of Maybe values. Anything
2890 failing the test will be Nothing, so will not be a candidate.
2894 + Add simple comment functionality. (Jesse Rosenthal).
2895 This adds simple track-changes comment parsing to the docx reader. It is
2896 turned on with `--track-changes=all`. All comments are converted to
2897 inlines, which can list some information. In the future a warning will be
2898 added for comments with formatting that seems like it will be excessively
2899 denatured. Note that comments can extend across blocks. For that reason
2900 there are two spans: `comment-start` and `comment-end`. `comment-start`
2901 will contain the comment. `comment-end` will always be empty. The two
2902 will be associated by a numeric id.
2903 + Enable warnings in top-level reader (Jesse Rosenthal).
2904 Previously we had only allowed for warnings in the parser. Now we allow
2905 for them in the `Docx.hs` as well. The warnings are simply concatenated.
2906 + Add warning for advanced comment formatting. (Jesse Rosenthal).
2907 We can't guarantee we'll convert every comment correctly, though we'll
2908 do the best we can. This warns if the comment includes something other
2910 + Add tests for warnings. (Jesse Rosenthal).
2911 + Add tests for comments (Jesse Rosenthal).
2912 We test for comments, using all track-changes options. Note that we
2913 should only output comments if `--track-changes=all`. We also test for
2914 emitting warnings if there is complicated formatting.
2916 * README: update to include track-changes comments. (Jesse Rosenthal)
2918 * Improved Windows installer - don't ignore properties set on command-line.
2919 See #2708. Needs testing to see if this resolves the issue.
2922 * Process markdown extensions on command line in L->R order (#2995).
2923 Previously they were processed, very unintuitively, in R->L
2924 order, so that `markdown-tex_math_dollars+tex_math_dollars`
2925 had `tex_math_dollars` disabled.
2927 * Added `secnumdepth` variable to LaTeX template (#2920).
2929 * Include table of contents in README.html in Windows package.
2931 * Writers: treat SoftBreak as space for stripping (Jesse Rosenthal)
2932 In Writers.Shared, we strip leading and trailing spaces for display
2933 math. Since SoftBreak's are treated as spaces, we should strip those
2936 * beamer, latex templates: pass biblatexoptions directly in package load.
2937 This allows runtime optinos to be used. Fixes jgm/pandoc-citeproc#201
2939 * CPP workaround for deprecation of `parseUrl` in http-client.
2941 * Removed some redundant class constraints.
2943 * make_oxs_package.sh - use OSX env variable.
2945 * Replaced INSTALL with INSTALL.md, incorporating INSTALL and the
2946 old installing page from website.
2948 * Added `winpkg` target to Makefile. This downloads the windows package
2949 from appveyor and signs it using the key.
2951 * Document Org mode as a format containing raw TeX (Albert Krewinkel).
2952 Raw TeX is kept verbatim when the output format is Emacs Org mode.
2954 * Support math with haddock-library >= 1.4.
2956 * Removed `-rtsopts` from library stanza. It has no effect, and Hackage
2957 wouldn't accept the package.
2959 * Update library dependency versions.
2963 * New output format: `docbook5` (Ivo Clarysse).
2965 * `Text.Pandoc.Options`: Add `writerDocBook5` to `WriterOptions`
2970 + Add :PROPERTIES: drawer support (Albert Krewinkel, #1962).
2971 This allows header attributes to be added to org documents in the form
2972 of `:PROPERTIES:` drawers. All available attributes are stored as
2973 key/value pairs. This reflects the way the org reader handles
2974 `:PROPERTIES:` blocks.
2975 + Add drawer capability (Carlos Sosa). For the implementation of the
2976 Drawer element in the Org Writer, we make use of a generic Block
2977 container with attributes. The presence of a `drawer` class defines
2978 that the `Div` constructor is a drawer. The first class defines the
2979 drawer name to use. The key-value list in the attributes defines
2980 the keys to add inside the Drawer. Lastly, the list of Block elements
2981 contains miscellaneous blocks elements to add inside of the Drawer.
2982 + Use `CUSTOM_ID` in properties (Albert Krewinkel). The `ID` property is
2983 reserved for internal use by Org-mode and should not be used.
2984 The `CUSTOM_ID` property is to be used instead, it is converted to the
2985 `ID` property for certain export format.
2989 + Ignore `--incremental` unless output format is beamer (#2843).
2990 + Fix polyglossia to babel env mapping (Mauro Bieg, #2728).
2991 Allow for optional argument in square brackets.
2992 + Recognize `la-x-classic` as Classical Latin (Andrew Dunning).
2993 This allows one to access the hyphenation patterns in CTAN's
2995 + Add missing languages from hyph-utf8 (Andrew Dunning).
2996 + Improve use of `\strut` with `\minipage` inside tables
2997 (Jose Luis Duran). This improves spacing in multiline
2999 + Use `{}` around options containing special chars (#2892).
3000 + Avoid lazy `foldl`.
3001 + Don't escape underscore in labels (#2921). Previously they were
3003 + brazilian -> brazil for polyglossia (#2953).
3005 * HTML writer: Ensure mathjax link is added when math appears in footnote
3006 (#2881). Previously if a document only had math in a footnote, the
3007 MathJax link would not be added.
3009 * EPUB writer: set `navpage` variable on nav page.
3010 This allows templates to treat it differently.
3014 + Use docbook5 if `writerDocbook5` is set (Ivo Clarysse).
3015 + Properly handle `ulink`/`link` (Ivo Clarysse).
3019 + Unescape URIs in spine (#2924).
3020 + EPUB reader: normalise link id (Mauro Bieg).
3024 + Parse `moveTo` and `moveFrom` (Jesse Rosenthal).
3025 `moveTo` and `moveFrom` are track-changes tags that are used when a
3026 block of text is moved in the document. We now recognize these tags and
3027 treat them the same as `insert` and `delete`, respectively. So,
3028 `--track-changes=accept` will show the moved version, while
3029 `--track-changes=reject` will show the original version.
3030 + Tests for track-changes moving (Jesse Rosenthal).
3032 * ODT, EPUB, Docx readers: throw `PandocError` on unzip failure
3033 (Jesse Rosenthal) Previously, `readDocx`, `readEPUB`, and `readOdt`
3034 would error out if zip-archive failed. We change the archive extraction
3035 step from `toArchive` to `toArchiveOrFail`, which returns an Either value.
3037 * Markdown, HTML readers: be more forgiving about unescaped `&` in
3038 HTML (#2410). We are now more forgiving about parsing invalid HTML with
3039 unescaped `&` as raw HTML. (Previously any unescaped `&`
3040 would cause pandoc not to recognize the string as raw HTML.)
3044 + Added bracket syntax for native spans (#168).
3045 + Fix pandoc title blocks with lines ending in 2 spaces (#2799).
3046 + Added `-s` to markdown-reader-more test.
3048 * HTML reader: fixed bug in `pClose`. This caused exponential parsing
3049 behavior in documnets with unclosed tags in `dl`, `dd`, `dt`.
3051 * MediaWiki reader: Allow spaces before `!` in MediaWiki table header
3054 * RST reader: Support `:class:` option for code block in RST reader
3057 * Org reader (all Albert Krewinkel, except where noted otherwise):
3059 + Stop padding short table rows.
3060 Emacs Org-mode doesn't add any padding to table rows. The first
3061 row (header or first body row) is used to determine the column count,
3062 no other magic is performed.
3063 + Refactor rows-to-table conversion. This refactors
3064 the codes conversing a list table lines to an org table ADT.
3065 The old code was simplified and is now slightly less ugly.
3066 + Fix handling of empty table cells, rows (Albert Krewinkel, #2616).
3067 This fixes Org mode parsing of some corner cases regarding empty cells
3068 and rows. Empty cells weren't parsed correctly, e.g. `|||` should be
3069 two empty cells, but would be parsed as a single cell containing a pipe
3070 character. Empty rows where parsed as alignment rows and dropped from
3072 + Fix spacing after LaTeX-style symbols.
3073 The org-reader was droping space after unescaped LaTeX-style symbol
3074 commands: `\ForAll \Auml` resulted in `∀Ä` but should give `∀ Ä`
3075 instead. This seems to be because the LaTeX-reader treats the
3076 command-terminating space as part of the command. Dropping the trailing
3077 space from the symbol-command fixes this issue.
3078 + Print empty table rows. Empty table rows should not
3079 be dropped from the output, so row-height is always set to be at least 1.
3080 + Move parser state into separate module.
3081 The org reader code has become large and confusing. Extracting smaller
3082 parts into submodules should help to clean things up.
3083 + Add support for sub/superscript export options.
3084 Org-mode allows to specify export settings via `#+OPTIONS` lines.
3085 Disabling simple sub- and superscripts is one of these export options,
3086 this options is now supported.
3087 + Support special strings export option Parsing of special strings
3088 (like `...` as ellipsis or `--` as en dash) can be toggled using the `-`
3090 + Support emphasized text export option. Parsing of emphasized text can
3091 be toggled using the `*` option. This influences parsing of text marked
3092 as emphasized, strong, strikeout, and underline. Parsing of inline math,
3093 code, and verbatim text is not affected by this option.
3094 + Support smart quotes export option. Reading of smart quotes can be
3095 toggled using the `'` option.
3096 + Parse but ignore export options. All known export options are parsed
3098 + Refactor block attribute handling. A parser state attribute was used
3099 to keep track of block attributes defined in meta-lines. Global state
3100 is undesirable, so block attributes are no longer saved as part of the
3101 parser state. Old functions and the respective part of the parser state
3103 + Use custom `anyLine`. Additional state changes need to be made after
3104 a newline is parsed, otherwise markup may not be recognized correctly.
3105 This fixes a bug where markup after certain block-types would not be
3107 + Add support for `ATTR_HTML` attributes (#1906).
3108 Arbitrary key-value pairs can be added to some block types using a
3109 `#+ATTR_HTML` line before the block. Emacs Org-mode only includes these
3110 when exporting to HTML, but since we cannot make this distinction here,
3111 the attributes are always added. The functionality is now supported
3113 + Add `:PROPERTIES:` drawer support (#1877).
3114 Headers can have optional `:PROPERTIES:` drawers associated with them.
3115 These drawers contain key/value pairs like the header's `id`. The
3116 reader adds all listed pairs to the header's attributes; `id` and
3117 `class` attributes are handled specially to match the way `Attr` are
3118 defined. This also changes behavior of how drawers of unknown type
3119 are handled. Instead of including all unknown drawers, those are not
3120 read/exported, thereby matching current Emacs behavior.
3121 + Use `CUSTOM_ID` in properties. See above on Org writer changes.
3122 + Respect drawer export setting. The `d` export option can be used
3123 to control which drawers are exported and which are discarded.
3124 Basic support for this option is added here.
3125 + Ignore leading space in org code blocks (Emanuel Evans, #2862).
3126 Also fix up tab handling for leading whitespace in code blocks.
3127 + Support new syntax for export blocks. Org-mode version 9
3128 uses a new syntax for export blocks. Instead of `#+BEGIN_<FORMAT>`,
3129 where `<FORMAT>` is the format of the block's content, the new
3130 format uses `#+BEGIN_export <FORMAT>` instead. Both types are
3132 + Refactor `BEGIN...END` block parsing.
3133 + Fix handling of whitespace in blocks, allowing content to be indented
3134 less then the block header.
3135 + Support org-ref style citations. The *org-ref* package is an
3136 org-mode extension commonly used to manage citations in org
3137 documents. Basic support for the `cite:citeKey` and
3138 `[[cite:citeKey][prefix text::suffix text]]` syntax is added.
3139 + Split code into separate modules, making for cleaner code and
3142 * Added `docbook5` template.
3144 * `--mathjax` improvements:
3146 + Use new CommonHTML output for MathJax (updated default MathJax URL,
3148 + Change default mathjax setup to use `TeX-AMS_CHTML` configuration.
3149 This is designed for cases where the input is always TeX and maximal
3150 conformity with TeX is desired. It seems to be smaller and load faster
3151 than what we used before. See #2858.
3152 + Load the full MathJax config to maximize loading speed (KolenCheung).
3154 * Bumped upper version bounds to allow use of latest packages
3155 and compilation with ghc 8.
3157 * Require texmath 0.8.6.2. Closes several texmath-related bugs (#2775,
3158 #2310, #2310, #2824). This fixes behavior of roots, e.g.
3159 `\sqrt[3]{x}`, and issues with sub/superscript positioning
3160 and matrix column alignment in docx.
3164 + Clarified documentation of `implicit_header_references` (#2904).
3165 + Improved documentation of `--columns` option.
3167 * Added appveyor setup, with artefacts (Jan Schulz).
3169 * stack.yaml versions: Use proper flags used for texmath, pandoc-citeproc.
3171 * LaTeX template: support for custom font families (vladipus).
3172 Needed for correct polyglossia operation with Cyrillic fonts and perhaps
3173 can find some other usages. Example usage in YAML metadata:
3176 - name: \cyrillicfont
3177 font: Liberation Serif
3178 - name: \cyrillicfonttt
3179 options: Scale=MatchLowercase
3182 * Create unsigned msi as build artifact in appveyor build.
3184 * On travis, test with ghc 8.0.1; drop testing for ghc 7.4.1.
3188 * LaTeX writer: Fixed position of label in figures (#2813).
3189 Previously the label wasn't in the right place, and `\ref`
3190 wouldn't work properly.
3191 * Added .tei test files to pandoc.cabal so they'll be included
3193 * Updated copyright dates.
3197 * Fixed serious regression in `htmlInBalanced`, which caused
3198 newlines to be omitted in some raw HTML blocks in Markdown
3203 * File scope is no longer used when there are no input files (i.e.,
3204 when input comes from stdin). Previously file scope was triggered
3205 when the `json` reader was specified and input came from `stdin`,
3206 and this caused no output to be produced. (Fix due to Jesse Rosenthal;
3207 thanks to Fedor Sheremetyev for calling the bug to our attention.)
3208 * Improved documentation of templates (#2797).
3212 * Added `--file-scope` option (Jesse Rosenthal).
3213 By default pandoc operates on multiple files by first concatenating
3214 them (around extra line breaks) and then processing the joined file. So
3215 it only parses a multi-file document at the document scope. This has the
3216 benefit that footnotes and links can be in different files, but for
3217 some purposes it is useful to parse the individual files first
3218 and then combine their outputs (e.g. when the files use footnotes
3219 or links with the same labels). The `--file-scope` option causes
3220 pandoc to parse the files first, and then combine the parsed output,
3221 instead of combining before parsing. `--file-scope` is selected
3222 automatically for binary input files (which cannot be concatenated)
3223 and for pandoc json.
3225 * Add TEI Writer (Chris Forster) and `tei` output format.
3227 * Added a general `ByteStringReader` with warnings, used by the docx
3228 reader (API change, Jesse Rosenthal).
3230 * Add `readDocxWithWarnings` (API change, Jesse Rosenthal).
3232 * Changed type of `Shared.uniqueIdent`'s argument from `[String]`
3233 to `Set String.` This avoids performance problems in documents with
3234 many identically named headers (API change, #2671).
3236 * Removed `tex_math_single_backslash` from `markdown_github` options
3239 * Make language extensions as well as full language names
3240 trigger syntax highlighting. For example, `py` will now work as
3241 well as `python` (jgm/highlighting-kate#83).
3243 * Added `institute` variable to latex, beamer templates (Fraser
3244 Tweedale, Josef Svenningsson).
3246 * Docx reader (Jesse Rosenthal):
3248 + Handle alternate content. Some word functions (especially graphics)
3249 give various choices for content so there can be backwards compatibility.
3250 + Don't turn numbered headers into lists.
3251 + Docx Reader: Add state to the parser, for warnings
3252 + Update feature checklist in source code.
3253 + Get rid of `Modifiable` typeclass.
3254 + Add tests for adjacent hyperlinks.
3255 + Add a "Link" modifier to `Reducible`. We want to make sure that
3256 links have their spaces removed, and are appropriately smushed
3261 + Fixed behavior of base tag (#2777).
3262 If the base path does not end with slash, the last component
3263 will be replaced. E.g. base = `http://example.com/foo`
3264 combines with `bar.html` to give `http://example.com/bar.html`.
3265 If the href begins with a slash, the whole path of the base
3266 is replaced. E.g. base = `http://example.com/foo/` combines
3267 with `/bar.html` to give `http://example.com/bar.html`.
3268 + Rewrote `htmlInBalanced`. This version avoids an exponential
3269 performance problem with `<script>` tags, and it should be faster
3271 + Properly handle an empty cell in a simple table (#2718).
3272 + Handle multiple `<meta>` tags with same name. Put them in a list
3273 in the metadata so they are all preserved, rather than (as before)
3274 throwing out all but one..
3278 + Improved pipe table parsing (#2765).
3279 + Allow `+` separators in pipe table cells. We already allowed
3280 them in the header, but not in the body rows, for some reason.
3281 This gives compatibility with org-mode tables.
3282 + Don't cross line boundary parsing pipe table row.
3283 Previously an Emph element could be parsed across the newline
3284 at the end of the pipe table row.
3285 + Use `htmlInBalanced` for `rawVerbatimBlock`, for better
3286 performance (#2730).
3287 + Fixed bug with smart quotes around tex math.
3291 + Handle interior `$` characters in math (#2743). For example,
3293 + `inlineCommand` now gobbles an empty `{}` after any command (#2687).
3294 This gives better results when people write e.g. `\TeX{}` in Markdown.
3295 + Properly handle LaTeX "math" environment as inline math (#2171).
3297 * Textile reader: Support `>`, `<`, `=`, `<>` text alignment attributes.
3300 * Org reader (Albert Krewinkel):
3302 + Prefix even empty figure names with "fig:" (#2643). The
3303 convention used by pandoc for figures is to mark them by prefixing
3304 the name with `fig:`. The org reader failed to do this if a figure
3306 + Refactor link-target processing (#2684).
3308 * ConTeXt writer: Fix whitespace at line beginning in line blocks (#2744).
3309 Thanks to @c-foster.
3311 * HTML writer: Don't include alignment attribute for default table columns.
3312 Previously these were given "left" alignment. Better to leave off
3313 alignment attributes altogether (#2694).
3315 * Markdown writer: Use hyphens for YAML metadata block bottom line, for
3316 better compatibility with other Markdown flavors (Henrik Tramberend).
3320 + Use image identifier to create a label and hypertarget for
3321 figures (Mauro Bieg).
3322 + Avoid double toprule in headerless table with caption (#2742).
3323 + Clean up options parser (Jesse Rosenthal).
3324 + Treat `memoir` template with `article` option as article, instead
3325 of treating all `memoir` templates as books.
3326 + Allow more flexible table alignment (Henrik Tramberend, #2665).
3327 New default is not to include `[c]` option (which is the default
3328 anyway if no positioning is specified). Now LaTeX emplates can
3329 control the overall table alignment in a document by setting the
3330 longtable length variables `LTleft` and `LTright`. For example,
3331 `\setlength\LTleft\parindent\setlength\LTright\fill`
3332 will create left-aligned tables that respect paragraph indentation.
3334 * Docx writer: Handle image alt text (#2754, Mauro Bieg).
3336 * Org writer - pass through RawInline with format "org".
3338 * DokuWiki writer: use `$$` for display math.
3340 * Custom writer: Pass attributes parameter to CaptionedImage (#2697).
3342 * Make protocol-relative URIs work again (#2737).
3344 * make_osx_package.sh: Use env variable for developer id certs.
3346 * Raise `tagsoup` lower bound to 0.13.7 to fix entity-related
3349 * Allow `zip-archive` 0.3.
3351 * Allow `aeson` 0.11.
3355 * Depend on deepseq rather than deepseq-generics (fpco/stackage#1096).
3357 * Fixed regression in latex smart quote parsing (#2645).
3358 In cases where a match was not found for a quote, everything
3359 from the open quote to the end of the paragraph was being dropped.
3363 * Fixed regression with `--latex-engine` (#2618). In 1.16 `--latex-engine`
3364 raises an error if a full path is given.
3366 * Org reader: Fix function dropping subtrees tagged `:noexport`
3367 (Albert Krewinkel, #2628):
3369 * Markdown reader: renormalize table column widths if they exceed 100%
3372 * Textile reader: don't allow block HTML tags in inline contexts.
3373 The reader previously did allow this, following redcloth,
3374 which happily parses
3376 Html blocks can be <div>inlined</div> as well.
3380 <p>Html blocks can be <div>inlined</div> as well.</p>
3382 This is invalid HTML. The above sample now produces;
3384 <p>Html blocks can be</p>
3390 * Improved default template lookup for custom lua scripts (#2625).
3391 Previously, if you tried to do `pandoc -s -t /path/to/lua/script.lua`,
3392 pandoc would look for the template in
3393 `~/.pandoc/templates/default./path/to/lua/script.lua`.
3394 With this change it will look in the more reasonable
3395 `~/.pandoc/templates/default.script.lua`. This makes it possible to
3396 store default templates for custom writers.
3398 * RST, Markdown writers: Fixed rendering of grid tables with blank rows
3401 * LaTeX writer: restore old treatment of Span (#2624). A Span is
3402 now rendered with surrounding `{}`, as it was before 1.16.
3404 * Entity handling fixes: improved handling of entities like
3405 `⟨` that require a trailing semicolon. Allow uppercase
3406 `x` in numerical hexidecimal character references, working
3407 around a tagsoup bug.
3409 * `stack.yaml` - use lts-4.0, but with older aeson to avoid excessive
3410 memory use on compile. With aeson 0.10 we were getting an out of
3411 memory error on a 2GB Ubuntu 64-bit VM.
3413 * Improved deb package creation script. Made `DPKGVER` work.
3414 Renamed `COMMIT` to `TREE`. You should now be able to do
3415 `TREE=1.16.0.1 DPKGVER=2 make deb`.
3420 * Added `Attr` field to `Link` and `Image` (Mauro Bieg, #261, API change).
3422 + Added syntax for link and image attributes to pandoc's Markdown.
3423 + Updated readers and writers to use link and image attributes
3425 + Support image attributes in Docx, Textile, RST readers.
3427 * Renamed link attribute extensions. The old `link_attributes` is
3428 now `mmd_link_attributes`, and `link_attributes` now enables the
3429 new pandoc-style link and image attributes (API change).
3430 Note: this change could break some existing workflows.
3432 * Implemented `SoftBreak` and new `--wrap` option (#1701, API change).
3433 Added threefold wrapping option.
3435 + Command line option: deprecated `--no-wrap`, added
3436 `--wrap=[auto|none|preserve]`
3437 + Added `WrapOption`, exported from `Text.Pandoc.Options`
3438 + Changed type of `writerWrapText` in `WriterOptions` from
3439 `Bool` to `WrapOption`.
3440 + Modified `Text.Pandoc.Shared` functions to allow `SoftBreak`.
3441 + Supported `SoftBreak` in readers and writers.
3443 * Text.Pandoc.Options: Added `writerDpi` to `WriterOptions` (API
3444 change, Mauro Bieg).
3446 * Added `--dpi` command-line option (Mauro Bieg).
3448 * Rationalized behavior of `--no-tex-ligatures` and `--smart` (#2541).
3449 This change makes `--no-tex-ligatures` affect the LaTeX reader
3450 as well as the LaTeX and ConTeXt writers. If it is used,
3451 the LaTeX reader will parse characters `` ` ``, `'`, and `-`
3452 literally, rather than parsing ligatures for quotation marks
3453 and dashes. And the LaTeX writer will print unicode quotation
3454 mark and dash characters literally, rather than converting
3455 them to the standard ASCII ligatures. Note that `--smart` has
3456 no effect on the LaTeX reader. `--smart` is still the default
3457 for all input formats when LaTeX or ConTeXt is the output format,
3458 *unless* `--no-tex-ligatures` is used.
3460 Some examples to illustrate the logic:
3463 % echo "'hi'" | pandoc -t latex
3465 % echo "'hi'" | pandoc -t latex --no-tex-ligatures
3467 % echo "'hi'" | pandoc -t latex --no-tex-ligatures --smart
3469 % echo "'hi'" | pandoc -f latex --no-tex-ligatures
3471 % echo "'hi'" | pandoc -f latex
3475 * Removed deprecated options `--offline` and `--html5`.
3477 * Fixed language code for Czech (`cs` not `cz`) (#2597).
3479 * Implemented `east_asian_line_breaks` extension (#2586).
3480 In `Text.Pandoc.Options`, added `Ext_east_asian_line_breaks` constructor
3481 to `Extension` (API change). This extension is like
3482 `ignore_line_breaks`, but smarter -- it only ignores line breaks
3483 between two East Asian wide characters. This makes it better suited
3484 for writing with a mix of East Asian and non-East Asian scripts.
3486 * Added support for PDF creation via `wkhtmltopdf`.
3487 To use this: `pandoc -t html5 -o result.pdf` (and add `--mathjax`
3488 if you have math.) Margins can be set using the variables
3489 `margin-top`, `margin-bottom`, `margin-left`, `margin-right`.
3490 Other styling can be done through CSS.
3492 * Fixed cite key parsing regression (jgm/pandoc-citeproc#201).
3493 We were capturing final colons as in `[@foo: bar]`; the citation id
3494 was being parsed as `@foo:`.
3498 + Fixed image syntax for local files (#2589).
3499 + Changed type of `writeICML` (Mauro Bieg).
3500 API change: It is now `WriterOptions -> Pandoc -> IO String`.
3501 Also handle new image attributes.
3502 + Intersperse line breaks instead of appending them to
3503 every `ParagraphStyleRange` (Mauro Bieg, #2501).
3504 + Add `Cite` style to citations (Mauro Bieg).
3505 + Added figure handling (#2590, Mauro Bieg).
3506 + Better handling of math. Instead of just printing the raw tex,
3507 we now try to fake it with unicode characters.
3509 * HTML writer: Include `example` class for example lists (#2524).
3511 * ODT/OpenDocument writer: improved image attributes (Mauro Bieg).
3513 + Support for percentage widths/heights
3514 + Use `Attr` instead of title to get dimensions from ODT walker
3515 to `writeOpenDocument`.
3519 + Support anchors in spans and divs with id elements
3520 (jgm/pandoc-citeproc#143).
3521 + Fixed code blocks (#1861).
3523 * Haddock writer: omit formatting inside links, which isn't supported
3526 * MediaWiki writer: Fixed spacing issues in table cells.
3528 + Start cell on new line unless it's a single Para or Plain
3530 + For single Para or Plain, insert a space after the `|` to
3531 avoid problems when the text begins with a character like
3534 * Beamer writer: mark frame as fragile when it contains verbatim (#1613).
3538 + Add support for GAP highlighting using listings (Raniere Silva).
3539 + Consider `header-includes` content as well as templates
3540 when determining whether to use csquotes (Andreas Lööw).
3541 + Create defaults for geometry using `margin-left` etc.
3542 If `geometry` has no value, but `margin-left`, `margin-right`,
3543 `margin-top`, and/or `-margin-bottom` are given, a default value
3544 for `geometry` is created from these. Note that these variables
3545 already affect PDF production via HTML5 with `wkhtmltopdf`.
3547 * ConTeXt writer: set default layout based on `margin-left`, etc.
3548 This sets up `\setuplayout` based on the variables `margin-left`,
3549 `margin-right`, `margin-bottom`, and `margin-top`, if no layout
3552 * Docx writer: better handling of PDF images. Previously we tried
3553 to get the image size from the image even if an explicit size was
3554 specified. Since we still can't get image size for PDFs, this made
3555 it impossible to use PDF images in docx. Now we don't try to get
3556 the image size when a size is already explicitly specified.
3558 * Markdown writer: use raw HTML for link/image attributes when
3559 the `link_attributes` extension is unset and `raw_html` is set (#2554).
3561 * MediaWiki reader: interpret markup inside `<tt>`, `<code>` (#2607).
3565 + Improved smart quote parsing (#2555). This fixes redering of
3567 + Use curly quotes for unmatched ` (#2555).
3568 + Allow blank space between braced arguments of commands (#2592).
3572 + Improved pipe table relative widths. Previously pipe table
3573 columns got relative widths (based on the header underscore lines)
3574 when the source of one of the rows was greater in width than the
3575 column width. This gave bad results in some cases where much of
3576 the width of the row was due to nonprinting material (e.g. link
3577 URLs). Now pandoc only looks at printable width (the width of a
3578 plain string version of the source), which should give better results.
3579 Thanks to John Muccigrosso for bringing up the issue.
3580 + Fixed parsing bug with macros. Previously macro definitions in
3581 indented code blocks were being parsed as macro definitions, not code.
3583 * Textile reader: skip over attribute in image source (#2515).
3584 We don't have a place yet for styles or sizes on images, but
3585 we can skip the attributes rather than incorrectly taking them
3586 to be part of the filename.
3588 * Docx reader: Handle dummy list items (Jesse Rosenthal).
3589 These come up when people create a list item and then delete the
3590 bullet. It doesn't refer to any real list item, and we used to ignore
3593 * CommonMark reader/writer rewritten to use latest `cmark`.
3595 * Fixed Emoji character definitions (#2523). There were many bugs in the
3598 * `Text.Pandoc.CSS`:
3600 + Added `pickStylesToKVs` function to extract multiple properties at
3601 once (API change, Mauro Bieg).
3602 + Parse CSS that doesn't contain the optional semicolon (Mauro Bieg).
3604 * `trypandoc`: sort drop-down lists.
3608 + Made `\euro` conditional on presence of character.
3609 for xelatex and lualatex, as it is for pdflatex (Andrew Dunning).
3610 + Moved `header-includes` before setting of title (Thomas Hodgson),
3611 to match the LaTeX template (jgm/pandoc-templates#168).
3612 + Added `section-titles` variable (defaults to true)
3613 to enable/suppress section title pages in beamer
3614 slide shows (Thomas Hodgson).
3615 + Moved beamer themes after fonts, so that themes can
3616 change fonts. (Previously the fonts set were being
3617 clobbered by lmodern.sty.) (Thomas Hodgson).
3619 * Beamer/LaTeX template changes (Thomas Hodgson):
3620 + Added `thanks` variable
3621 + Use `parskip.sty` when `indent` isn't set (fall back to using
3622 `setlength` as before if `parskip.sty` isn't available).
3623 + Use `biblio-style` with biblatex.
3624 + Added `biblatexoptions` variable.
3626 * LaTeX template changes:
3628 + Added `paper` after `$papersize$` variable in latex template.
3629 Thus you can say `papersize: a4` and the latex will contain
3630 `a4paper`. This change may break some existing workflows; if
3631 you currently specify `a4paper`, you'll get `a4paperpaper` which
3632 is meaningless. However, the change seems worth it, as it will
3633 make the `papersize` variable work uniformly across ConTeXt, LaTeX,
3634 and html->pdf via wkhtmltopdf.
3635 + Only pass options to color package if `colorlinks` is set
3637 + Make definition of `\euro` conditional in xelatex/lualatex,
3638 as it is already for pdflatex (Andrew Dunning).
3639 + Removed setting of `subject` in PDF metadata.
3640 This used to be set to the subtitle, but really the subtitle
3641 need not give the subject. Also, `subtitle` can contain formatting,
3642 so we'd need, at least, a plain text version for this.
3643 + Moved `header-includes` before setting of `\title`, `\author`,
3644 etc. This allows these macros to be redefined.
3645 + Use `\subtitle` command for `subtitle`, instead of tacking it
3646 on to the title as before. We give a no-op fallback definition if it
3647 is not defined. This change should produce much better results
3648 in classes that support `\subtitle`. With the default article
3649 class, which does not define `\subtitle`, subtitles will no
3650 longer be printed unless the user defines `\subtitle` and
3651 redefines `\maketitle`.
3652 + Moved redefinitions of `\paragraph` and `\subparagraph` to
3653 before header-includes.
3657 + Use `simplefonts` for font loading (Paolo Rodríguez). This is
3658 needed for things to work on ConTeXt stable from TeXLive 2015.
3659 + Revert use of `\setuphead` in title block (Andrew Dunning,
3662 * Update LaTeX/ConTeXt link colour usage (Andrew Dunning).
3664 * Fixed man template so disabling hyphenation actually works.
3665 The command needs to come after .TH.
3667 * Added 'navigation' variable to beamer template (#2543).
3668 Valid values are `empty` (the default), `horizontal`, `vertical`,
3669 and `frame`. Note that this changes the default behavior from
3670 `horizontal` to `empty`. Closes #2543.
3672 * Added `toc` to HTML slide format templates (Andrew Dunning),
3673 so that `--toc` creates a contents slide.
3675 * Added `stack.full.yaml` to build `pandoc-citeproc` as well.
3677 * Allow pipe tables with no body rows (#2556).
3678 Previously this raised a runtime error.
3680 * Shared: Improved `fetchItem` so that `C:/Blah/Blah.jpg` isn't treated
3681 as URL. The Haskell URI parsing routines will accept "C:" as a
3682 scheme, so we rule that out manually. This helps with
3683 `--self-contained` and absolute Windows paths.
3685 * Define a `meta-json` variable for all writers (#2019). This contains
3686 a JSON version of all the metadata, in the format selected for the
3687 writer. So, for example, to get just the YAML metadata, you can run
3688 pandoc with the following custom template: `$meta-json$`. The intent
3689 is to make it easier for static site generators and other tools to get
3692 * Document limitations of --self-contained (#2553).
3694 * Improved Citations section of README (#2551). Added information
3695 about `link-citations` and a link to the pandoc-citeproc man page.
3697 * `ImageSize`: use `safeRead` instead of `readMaybe`, which isn't
3700 * Allow .adoc file extension for AsciiDoc (Andrew Dunning).
3702 * Improved implicit pandoc-citeproc inclusion.
3703 The filter pandoc-citeproc is automatically used when
3704 `--bibliography` is specified on the command line, unless
3705 `--natbib` or `--biblatex` is used. However, previously this
3706 only worked if `--bibliography` was spelled out in full, and not
3707 if `--biblio` was used.
3709 * reveal.js: Interpret pauses correctly for all headers (#2530).
3710 Previously, when using headers below the slide level, pauses are left
3711 uninterpreted into pauses. In my opinion, unexpected behavior but
3712 intentional looking at the code.
3714 * Remove redundant `center` variable for reveal.js (Andrew Dunning).
3716 * Parsing: Add `extractIdClass`, modified type of `KeyTable` (Mauro
3719 * ImageSize: Added functions for converting between image dimensions
3722 * Use lts-3.18 in stack.yaml. This avoids Windows build
3723 issues with the HTTP library.
3725 * Bump version bounds for dependencies.
3729 * Added two missing test files, and `stack.yaml`, to
3730 `extra-source-files` so they're included in the source tarball.
3732 * reveal.js template: Fixed parallaxBackground options.
3733 `parallaxBackgroundHorizontal` and `parallaxBackgroundVertical`
3734 need integer values, not strings. (Vaughn Iverson)
3738 * `pandoc my.md -t context -o my.pdf` will now create a PDF using
3739 ConTeXt rather than LaTeX (#2463).
3741 * Fixed omitted `url(...)` in CSS data-uri with `--self-contained` (#2489).
3743 * Added `emoji` Markdown extension, enabled by default in `markdown_github`
3744 (#2523). Added `Ext_emoji` to `Extension` in `Text.Pandoc.Options`
3747 * `Text.Pandoc.Readers.HTML.parseTags`: Fixed over-eager raw HTML inline
3748 parsing (#2469). Tightened up the inline HTML parser so it disallows
3751 * Derive `Generic` instances for the types in `Text.Pandoc.Options`.
3755 + Fix paragraph/list interaction (Albert Krewinkel, #2464).
3756 Paragraphs can be followed by lists, even if there is no blank line
3757 between the two blocks. However, this should only be true if the
3758 paragraph is not within a list, were the preceding block should be
3759 parsed as a plain instead of paragraph (to allow for compact lists).
3760 Thanks to @rgaiacs for bringing this up.
3761 + Allow toggling header args (Albert Krewinkel, #2269).
3762 Org-mode allows to skip the argument of a code block header argument if
3763 it's toggling a value. Argument-less headers are now recognized,
3764 avoiding weird parsing errors.
3765 + Fix markup parsing in headers (Albert Krewinkel, #2504).
3766 Markup as the very first item in a header wasn't recognized. This was
3767 caused by an incorrect parser state: positions at which inline markup
3768 can start need to be marked explicitly by changing the parser state.
3769 This wasn't done for headers. The proper function to update the state
3770 is now called at the beginning of the header parser, fixing this issue.
3771 + Fix emphasis rules for smart parsing (Albert Krewinkel, #2513).
3772 Smart quotes, ellipses, and dashes should behave like normal quotes,
3773 single dashes, and dots with respect to text markup parsing.
3774 + Require whitespace around definition list markers (#2518).
3775 This rule was not checked before, resulting in bugs with footnotes
3776 and some link types.
3780 + Pipe tables with long lines now get relative cell widths (#2471).
3781 If a pipe table contains a line longer than the column width (as set by
3782 `--columns` or 80 by default), relative widths are computed based on the
3783 widths of the separator lines relative to the column width. This should
3784 solve persistent problems with long pipe tables in LaTeX/PDF output, and
3785 give more flexibility for determining relative column widths in other
3786 formats, too. For narrower pipe tables, column widths of 0 are used,
3787 telling pandoc not to specify widths explicitly in output formats that
3789 + Improved parser for `mmd_title_block`. We now allow blank metadata
3790 fields. These were explicitly disallowed before.
3791 + Citation keys can now contain `://`, so URLs and DOIs can be used
3792 as citation keys (jgm/pandoc-citeproc#166).
3794 * Beamer template: fix incompatibility of section slides with natbib.
3795 Natbib (and presumably biblatex) bibliography commands create
3796 their own section. Since these are in frame environments,
3797 we have an incompatibility with the `\AtBeginSection` macro
3798 which creates a special frame when a new section occurs.
3799 (We can't have a frame inside another frame.) This change disables
3800 `\AtBeginSection` inside bibliography slides. Thinks to Yihui Xie for
3801 bringing the problem to my attention. This supersedes #145. See
3804 * Textile reader: don't do smart punctuation unless explicitly asked
3805 (#2480). Note that although smart punctuation is part of the textile
3806 spec, it's not always wanted when converting from textile
3807 to, say, Markdown. So it seems better to make this an option.
3809 * LaTeX reader: Handle `comment` environment (Arata Mizuki).
3810 The `comment` environment is handled in a similar way to the
3811 `verbatim` environment, except that its content is discarded.
3813 * Docx reader: Follow relationships correctly in foot/endnotes (#2258,
3814 Jesse Rosenthal). This fixes a problem with links in notes.
3816 * LaTeX and ConTeXt writers: support `lang` attribute on divs and spans
3817 (Mauro Bieg). For LaTeX, also collect `lang` and `dir` attributes on
3818 spans and divs to set the `lang`, `otherlangs` and `dir` variables if
3819 they aren’t set already. See #895.
3823 + Use proper command for `\textarabic` (Mauro Bieg).
3824 + Added `de-CH-1901`, fixed `el-polyton` in `toPloyglossia` (Nick Bart).
3825 + Use `\hypertarget` and `\hyperlink` for links. This works correctly
3826 to link to Div or Span elements. We now don't bother defining `\label`
3827 for Div or Span elements. Closes jgm/pandoc-citeproc#174.
3828 + Avoid footnotes in list of figures (#1506).
3829 + Properly handle footnotes in captions (#1506).
3830 + Add `\protect` to `\hyperlink` (#2490). Thanks to Hadrien Mary.
3831 + Set `colorlinks` if `linkcolor`, `urlcolor`, `citecolor`, or
3832 `toccolor` is set (#2508).
3834 * Textile writer: support start number in ordered lists (#2465).
3836 * OpenDocument writer: Allow customization of opendocument
3837 automatic styles. Automatic styles can now be inserted in the
3838 template, which now provides the enclosing `<office:automatic-styles>`
3841 * Docx writer: insert space between footnote reference and note (#2527).
3842 This matches Word's default behavior.
3844 * EPUB writer: don't download linked media when `data-external` attribute
3845 set (#2473). By default pandoc downloads all linked media and includes it
3846 in the EPUB container. This can be disabled by setting `data-external` on
3847 the tags linking to media that should not be downloaded. Example:
3849 <audio controls="1">
3850 <source src="http://example.com/music/toccata.mp3"
3851 data-external="1" type="audio/mpeg">
3855 * HTML writer: use width on whole table if col widths sum to < 100%.
3856 Otherwise some browsers display the table with the columns
3857 separated far apart.
3859 * AsciiDoc template: Fix `author` and `date`; add `keywords`,
3860 `abstract` (Andrew Dunning).
3862 * HTML-based templates (Andrew Dunning):
3864 + Use en dash instead of hyphen between title prefix and title.
3865 + Add `keywords` to metadata.
3866 + Add `lang`, `dir`, `quotes` where missing.
3867 + Always make author and date display conditional.
3868 + Updated dzslides template from source.
3870 * Man template: make "generated by" comment conditional.
3872 * LaTeX, Beamer templates:
3874 + Add `babel-otherlangs` for language divs/spans; `babel-newcommands`,
3875 filled by commands that make babel understand the polyglossia-style
3876 language directives (Mauro Bieg, #137).
3877 + Improved formatting of conditionals; `$for$` is always provided to allow
3878 multiple options (Andrew Dunning, #141).
3879 + Use `Ligatures=TeX` rather than `Mapping=tex-text` with `fontspec`
3880 to improve support for LuaTeX (Andrew Dunning, #135).
3881 + Revise `hyperref` usage (Andrew Dunning, #139, #141):
3882 - use same options for all LaTeX engines;
3883 - add `subtitle` and `keywords` to PDF metadata;
3884 - do not override `hyperref` link coloring without user input, effectively making
3885 the `hidelinks` option the default (removed as a separate variable);
3886 - link colors can be enabled (using a slightly darker version of the old
3887 defaults) using a new `colorlinks` variable, automatically used by
3888 the LaTeX writer when custom colors are specified;
3889 - `pdfborder={0 0 0}` is automatically set by `hyperref` with
3890 `colorlinks`, and is only applied if `colorlinks` is disabled.
3892 * ConTeXt template (Andrew Dunning):
3894 + New variables for controlling styles: `linkstyle`, `linkcolor`,
3895 `linkcontrastcolor`, `layout`, `pagenumbering`, `whitespace`, `indenting`,
3896 `interlinespace`, `headertext`, `footertext`, `mainfont`, `sansfont`,
3897 `monofont`, `mathfont`, `fontsize`.
3898 + Default template no longer supports MkII.
3899 + Improve writing of title block (suppressing numbering of first page).
3900 + Add `title` `subtitle`, `author`, `date`, `keywords` to PDF metadata.
3901 + Support `subtitle`, `abstract`.
3902 + Support list of figures (`lof`), list of tables (`lot`).
3903 + Disable link styling by default.
3904 + Define styles for all section types.
3906 + Improved formatting of conditionals.
3908 * Beamer template: added code to prevent slide breaks inside paragraphs
3909 (#2422, thanks to Nick Bart). This will matter, in practice, only when
3910 `allowframebreaks` is used. It is especially helpful for bibliography
3913 * OpenDocument template: Add `<office:automatic-styles>` tag around
3914 automatic styles. The writer now longer provides this (see #2520).
3916 * Restored Text.Pandoc.Compat.Monoid.
3918 * Do not export (<>) from custom Prelude. The Prelude now matches
3919 base 4.8 Prelude's API.
3921 * Don't use custom prelude with ghc 7.10. Use the custom prelude
3922 only for earlier versions. This change makes `stack ghci` and
3923 `cabal repl` work (#2503), at least with ghc 7.10.
3925 * Changed § to % in operators from Odt.Arrows.Utils (#2457).
3926 This prevents problems building haddocks with "C" locale.
3928 * Change default for old-locale flag to False.
3930 * Use stack in deb, osx, and Windows package generators.
3932 * Added Vagrantfile for building deb in vm.
3933 This should help in automating binary package creation. 'make package'
3934 will make the package. 'make package COMMIT=blah' will make the package
3939 + Consistent capitalization for pandoc and Markdown.
3940 + Fixed `auto_identifiers` examples (Benoit Schweblin).
3941 + Improved documentation of template variables (Andrew Dunning).
3945 * `Text.Pandoc.Data`: store paths in dataFiles using posix separators.
3946 This way we have uniform separators, whether on Windows or Linux.
3947 This should solve a problem where on some Windows versions
3948 the data files weren't being found (#2459).
3952 * `pandocVersion` is now defined in `Text.Pandoc.Shared`
3953 and reexported from `Text.Pandoc` (Alex Vong). This allows
3954 writers to access it. (Alex Vong) (API change)
3956 * For `markdown_mmd`, add: `implicit_figures`, `superscripts`,
3957 `subscripts` (#2401).
3959 * Added `odt` as input format (Martin Linnemann). Added new module
3960 `Text.Pandoc.Reader.ODT` (API change). Fully implemented features:
3961 Paragraphs, Headers, Basic styling, Unordered lists, Ordered lists,
3962 External Links, Internal Links, Footnotes, Endnotes, Blockquotes.
3963 Partly implemented features: Citations, Tables.
3967 + Add basic tests for each header style (Ophir Lifshitz).
3968 + Add implicit header ref tests for headers with spaces (Ophir Lifshitz).
3969 + Skip spaces in headers (Ophir Lifshitz).
3970 + Handle 'id' and 'class' in parsing key/value attributes (#2396).
3971 `# Header {id="myid" class="foo bar"}`
3972 is now equivalent to `# Header {#myid .foo .bar}`.
3973 + Use '=' instead of '#' for atx-style headers in markdown+lhs.
3974 (Kristof Bastiaensen)
3975 + Pipe tables: allow indented columns. Previously the left-hand column
3976 could not start with 4 or more spaces indent. This was inconvenient
3977 for right-aligned left columns. Note that the first (header column)
3978 must still have 3 or fewer spaces indentation, or the table will be
3979 treated as an indented code block.
3980 + Fix regression: allow HTML comments containing `--`.
3981 Technically this isn't allowed in an HTML comment, but
3982 we've always allowed it, and so do most other implementations.
3983 It is handy if e.g. you want to put command line arguments
3988 + Don't eat excess whitespace after macros with only optional
3990 + Support longtable (#2411).
3991 + Implement `\Cite` (#2335).
3992 + Support abstract environment. The abstract populates an
3993 `abstract` metadata field.
3994 + Properly handle booktabs lines. Lines aren't part of the
3995 pandoc table model, so we just ignore them (#2307).
3999 + Handle type attribute on ol, e.g. `<ol type="i">` (#2313).
4000 + Updated for new automatic header attributes.
4001 + Add auto identifiers if not present on headers. This makes
4002 TOC linking work properly.
4003 + Detect `font-variant` with `pickStyleAttrProps` (Ophir Lifshitz).
4004 + Test `<ol>` type, class, and inline list-style(-type) CSS
4006 + Better handling of "section" elements (#2438). Previously
4007 `<section>` tags were just parsed as raw HTML blocks. With
4008 this change, section elements are parsed as Div elements with
4009 the class "section".
4011 * MediaWiki reader: handle unquoted table attributes (#2355).
4015 + Added proper support for DocBook `xref` elements (Frerich Raabe).
4016 Added `dbContent` field to reader state, so we can lookup
4018 + Handle `informalexample` (#2319).
4022 + Create special punctuation test (Ophir Lifshitz).
4023 + Parse soft, no-break hyphen elements (Ophir Lifshitz).
4024 + Updated headers test (Ophir Lifshitz). Replaced `styles.xml`
4025 in `headers.docx` with pandoc's current `styles.xml`, which
4026 contains styles for Heading 1 through 6. Added Heading 4
4027 through 7 to the test document. Note that Heading 7 is not
4028 parsed as a Heading because there is no Heading 7 style.
4030 * RST reader: better handling of indirect roles.
4031 Previously the parser failed on this kind of case
4033 .. role:: indirect(code)
4035 .. role:: py(indirect)
4040 Now it correctly recognizes `:py:` as a code role.
4044 + Add auto identifiers if not present on headers
4045 (#2354, Juliusz Gonera).
4046 + Allow verse blocks to contain empty lines (#2402,
4049 * EPUB reader: stop mangling external URLs (#2284).
4053 + Don't insert `\ ` when complex expression in matched pairs.
4054 E.g. `` [:sup:`3`] `` is okay; you don't need `` [:sup:`3`\ ] ``.
4055 + Ensure that `\ ` is inserted when needed before Cite and Span
4056 elements that begin with a "complex" element (jgm/pandoc-citeproc#157).
4057 + Normalize headers only in "standalone" mode (#2394).
4059 * Haddock writer: escape `*` and `^` (G. Bataille).
4063 + In TOC, add links to headers (#829).
4064 + Use unicode super/subscripts for digits in plain output
4065 (when the `superscripts` and `subscripts` extensions are
4070 + Moved invalid character stripping to `formattedString`.
4071 This avoids an inefficient generic traversal (#2356).
4072 + Use user data directory for `reference.docx` archive.
4073 This allows the test suite to work without installing pandoc first.
4074 It also brings the docx writer in line with the odt writer.
4075 + Tests: docx writer tests now use `../data` for data directory.
4076 This allows tests to be run without installing first.
4077 + Tests: Use real jpg (not empty) for docx tests to avoid warning.
4081 + Fixed detection of 'chapters' from template.
4082 If a documentclass isn't specified in metadata, but the
4083 template has a hardwired bookish documentclass, act as if
4084 `--chapters` was used. This was the default in earlier
4085 versions, but it has been broken for a little while.
4086 + Correctly recognize book documentclass in metadata (#2395).
4087 + Set language-related variables automatically, depending
4088 on the value of the `lang` field, which is now always
4089 assumed to be in BCP47 format (Mauro Bieg, #1614, #2437).
4090 + Add `\protect` to `\hyperdef` in inline context. This way we
4091 don't get an error when this is used as a moveable argument (#2136).
4092 + Support all frame attributes in Beamer.
4093 + Percent-encode more special characters in URLs (#1640, #2377).
4094 The special characters are '<','>','|','"','{','}','[',']','^', '`'.
4098 + Update KaTeX JS and CSS versions (Emily Eisenberg).
4099 + For dzslides, add `role="note"` for speaker notes (#1693).
4100 + Percent-encode more special characters in URLs (#1640, #2377).
4101 The special characters are '<','>','|','"','{','}','[',']','^', '`'.
4102 + Render Div with class `section` as `<section>` in HTML5.
4106 + In TOC, replace literal `<br/>` with space (#2105).
4107 + With `--webtex`, include image file rather than `data:` URI (#2363).
4109 * Native writer: format Div properly, with blocks separated.
4111 * Support bidirectional text output with XeLaTeX, ConTeXt and HTML
4112 (#2191, Mauro Bieg).
4116 + Add missing Header 6 style (steel blue) (Ophir Lifshitz).
4117 + Correct `outlineLvl` for Header styles (Ophir Lifshitz).
4121 + Beamer: Add `innertheme`, `outertheme` variables
4122 (Guilhem Bonnefille, #121). Add space after colon in figure caption.
4123 Integrate recent font and language updates from LaTeX template;
4124 allow use of `mainfont` variable for changing the slide text
4125 in XeTeX and LuaTeX (Andrew Dunning, #131).
4126 + LaTeX: Add `mainfontoptions`, `sansfontoptions`,
4127 `monofontoptions`, `mathfontoptions`, `fontfamilyoptions`
4128 (Andrew Dunning, #122). Support handling of bidirectional
4129 text (Mauro Bieg, #120). Improve reliability of superscripts/subscripts
4130 under XeTeX and prevent letters and numbers from appearing on a
4131 different baseline by removing use of the `realscripts` package
4132 (via `xltxtra`). To restore use of OpenType characters for these
4133 features under XeTeX or LuaTeX, add `\usepackage{realscripts}` to
4134 `header-includes` (Andrew Dunning, #130). Remove redundant
4135 reference to `xunicode` (Andrew Dunning, #130). Add `fontenc`,
4136 `indent`, `subparagraph` variables (Andrew Dunning).
4137 Allow use of `hidelinks` variable for `hyperref` package (Hugo Roy,
4138 #113). Prevent package clash with `tufte-latex` and other classes that
4139 include `hyperref` or `color` (Xavier Olive, #115).
4140 + ConTeXt: Support handling of bidirectional text (Mauro Bieg, #120).
4141 + LaTeX and ConTeXt: Use more specific language variables.
4142 Instead of directly using `lang`, we now use `babel-lang` and
4143 `polyglossia-lang` and `context-lang`. These variables are set by
4144 the writers to the necessary values, based on the `lang` variable
4145 (which now always takes a value in BCP47 format). (Mauro Bieg, #114,
4147 + HTML: Support handling of bidirectional text (Mauro Bieg, #120).
4148 Move HTML5 shiv after CSS and fix URL (Andrew Dunning).
4149 Add dir attribute in html5 (Andrew Dunning).
4150 + reveal.js: Add `controls`, `progress` variables (Grégoire Pineau, #127).
4151 Add `width`, `height` variables (Andrew Dunning). Update template
4152 from 3.1 source (Andrew Dunning). All configuration options are now
4153 available as variables, but are only be included if set (reveal.js
4154 uses defaults otherwise).
4155 + man: Added comment stating that the page is autogenerated by pandoc,
4156 giving version. Added `adjusting` and `hyphenate` variables
4159 * epub.css: added selectors for nested emphasis (Pablo Rodriguez).
4161 * MediaBag: ensure that `/` is always used as path separator.
4163 * `sample.lua`: define `CaptionedImage`, add newline at end (#2393).
4165 * Added `--bash-completion` option. This generates a bash completion
4166 script. To use: `eval "$(pandoc --bash-completion)"`.
4168 * Text.Pandoc.Error: Define Typeable and Exception instances
4169 for PandocError (#2386).
4171 * Text.Pandoc.Parsing: `toKey`: strip off outer brackets.
4172 This makes keys with extra space at the beginning and end
4179 will now be a link to bar (it wasn't before).
4181 * Text.Pandoc: disable `auto_identifiers` for epub.
4182 The epub writer inserts its own auto identifiers;
4183 this is more complex due to splitting into "chapter" files.
4185 * Renamed Text.Pandoc.Compat.Locale -> Text.Pandoc.Compat.Time.
4186 It now reexports Data.Time.
4188 * Use custom Prelude to avoid compiler warnings.
4190 + The (non-exported) prelude is in prelude/Prelude.hs.
4191 + It exports Monoid and Applicative, like base 4.8 prelude,
4192 but works with older base versions.
4193 + It exports (<>) for mappend.
4194 + It hides 'catch' on older base versions.
4196 * Added a `stack.ymal` and stack install instructions to INSTALL.
4198 * Clarified what is "out of scope" in README and CONTRIBUTING.md.
4200 * Added note to CONTRIBUTING.md about ghc versions and travis.
4202 * Clarify docs on block quotes. The space after `>` is optional (#2346).
4204 * Removed obsolete reference to default.csl (#2372).
4206 * List all styles in manual for `--reference-docx` (Chris Black)
4208 * Don't capitalize header links in man page.
4210 * Added section on repl to CONTRIBUTING.md.
4212 * README: Added space after backslash in image example (#2329).
4214 * Document details of citation locator terms (Nick Bart).
4216 * Fixed some internal links in README (#2309).
4218 * Improve CSL documentation, variables documentations,
4219 links, and cross-references in README. (Andrew Dunning)
4221 * Fix build failure with `--flags=-https` (Sergei Trofimovich).
4223 * Use `newManager` instead of `withManager` in recent `http-client`.
4224 This avoids a deprecation warning.
4226 * Allow building with latest versions of http-types,
4227 HUnit, criterion, syb, aeson.
4229 * Updated benchmark program for new criterion API.
4231 * Setup.hs: rewrite so as not to use process, directory, filepath.
4232 Using anything outside base is dangerous, since older
4233 versions of ghc may link against two different versions.
4235 * Added appveyor (Windows continuous integration) builds.
4237 * New `.travis.yml`. Autgenerated using `make_travis_yml.hs`.
4238 This script has been modified in a few ways, e.g. to add `GHCOPTS`.
4239 `make .travis.yml` regenerates it based on the tested-with
4240 field of the cabal file.
4244 * `--self-contained`: Fixed overaggressive CSS minimization (#2301, 2286).
4245 Previously `--self-contained` wiped out all spaces in CSS,
4246 including semantically significant spaces. This was a regression
4249 * Markdown reader: don't allow bare URI links or autolinks in link
4250 label (#2300). Added test cases.
4252 * `Text.Pandoc.Parsing`, `uri`: Improved bare autolink detection (#2299).
4253 Previously we disallowed `-` at the end of an autolink,
4254 and disallowed the combination `=-`. This commit liberalizes the
4255 rules for allowing punctuation in a bare URI, and adds test cases.
4256 One potential drawback is that you can no longer put a bare
4257 URI in em dashes like this:
4258 `this uri---http://example.com---is an example.`
4259 But in this respect we now match github's treatment of bare URIs.
4261 * HTML writer: support speaker notes in dzslides.
4262 With this change `<div class="notes">` and also `<div class="notes"
4263 role="note">` will be output if `-t dzslides` is used. So we can
4264 have speaker notes in dzslides too. Thanks to maybegeek.
4266 * Updated dzslides template.
4268 * Improved documentation of options to print system default files (#2298).
4269 `--print-default-data-file` and `--print-default-template`.
4271 * DokuWiki writer: use `$..$` for Math instead of `<math>..</math>`
4272 (Tiziano Müller). MathJax seems currently to be the only maintained
4273 math rendering extension for DokuWiki.
4275 * `Text.Pandoc.Shared`: Changed `hierarchicalize` so it treats references
4276 div as top-level header (#2294). This fixes a bug with `--section-divs`,
4277 where the final references section added by pandoc-citeproc, enclosed in
4278 its own div, got nested in the div for the section previous to it.
4280 * Allow vector 0.11.
4282 * Require cmark > 0.4.
4286 * HTML writer: Fixed email javascript obfuscation with `mailto:`
4287 URLs (#2280). This fixes a potential security issue. Because
4288 single quotes weren't being escaped in the link portion, a
4289 specially crafted email address could allow javascript code injection.
4291 * Markdown/HTML readers: Avoid parsing partial URLs like
4292 `<www.pandoc.org/blah#foo>` as HTML tags (#2277).
4294 * RST reader: allow inline formatting in definition list field
4295 names (Lars-Dominik Braun).
4297 * PDF: Make sure `--latex-engine-opt` goes before the filename
4298 on the command line. LaTeX needs the argument to come after
4299 the options (#1779).
4301 * CommonMark writer: fixed tags used for super/subscript.
4303 * ConTeXt template: activate hanging indent for definition lists
4306 * Make cabal require `hsb2hs` >= 0.3.1 if `embed_data_files` specified.
4307 This is done by adding `hookedPrograms` in `Setup.hs`, which allows us
4308 to include `hsb2hs` in Build-Tools in cabal.
4310 * Improved Windows installer (thanks to nkalvi).
4312 + When per-machine installation is chosen, the system path
4313 is updated instead of the user's.
4314 + An appropriate default is used for per-machine installation
4316 + Admin privileges are no longer required for a per-user install
4318 * Travis: unpack sdist for build to catch packaging bugs.
4320 * Improved documentation on where user templates go (#2272).
4324 * Added pandoc.1 man page to the repository. It is no longer
4325 built as part of the cabal build process. (This proved too
4326 fragile.) pandoc.1 can be regenerated (`make man/pandoc.1`)
4327 when `README` is changed.
4329 * Copying of the man page now respects `--destdir` (#2262).
4331 * Improved error messages for filters. User is now informed if
4332 the filter requires an interpreter that isn't found in the path,
4333 or if the filter returns an error status.
4337 * Ensure target directory is created when installing man page.
4341 * Added files needed for building man page to Extra-Source-Files.
4345 * Man page is now built and installed as part of the cabal build
4346 process. Removed Makefile target for man page.
4352 + Removed `--man1`, `--man5` options (breaking change).
4353 + Removed `Text.Pandoc.ManPages` module (breaking API change).
4354 + Makefile target for `man/man1/pandoc.1`. This uses pandoc to
4355 create the man page from README using a custom template and filters.
4356 + Added `man/` directory with template and filters needed to build
4358 + We no longer have two man pages: `pandoc.1` and `pandoc_markdown.5`.
4359 Now there is just pandoc.1, which has all the content from README.
4360 This change was needed because of the extensive cross-references
4361 between parts of the README.
4362 + Removed old `data/pandoc.1.template` and
4363 `data/pandoc_markdown.5.template`.
4365 * OpenDocument writer: Do not add a carriage return after a hard
4366 line break (Michael Chladek).
4370 + use `\goto` for internal links.
4371 + Added a `%` at end for `\reference` to avoid spurious space.
4373 * Ignore sandbox on 'make quick'
4377 * Added `--man1` and `--man5` options to pandoc, allowing pandoc
4378 to generate its own man pages. Man pages are no longer automatically
4379 generated in the build process (the process for this was too complex
4380 and prone to failure, #2190). The `make-pandoc-man-pages` executable
4381 has been removed. The `man/` directory has been removed, and man page
4382 templates have been moved to `data/`. NOTE TO PACKAGERS: You will no
4383 longer find pandoc's man pages in `man/`, but you can generate them using
4384 `pandoc --man1 > pandoc.1` and `pandoc --man5 > pandoc_markdown.5`.
4386 * Added new unexported module: `Text.Pandoc.ManPages`.
4388 * `README` now acts like a data file (even though it isn't in
4389 `data/`). So, for example, `pandoc --print-default-data-file README`
4390 will produce the README.) This change was required for the `--man1`
4391 and `--man5` options, since the man pages are produced from the
4392 README, but it may be useful for other purposes as well.
4394 * Allow `reference.docx` and `reference.odt` to be used with
4395 `--print-default-data-file` and to shadow defaults if placed in
4396 the user data directory. Note that as of 1.14, we no longer
4397 include these files as data files; instead, we include their
4398 components. This change causes pandoc to behave as if it has
4399 these data files; they are constructed on demand when needed
4400 using `getDefaultReferenceDocx` and `getDefaultReferenceODT`.
4402 * Fixed regression in CSS parsing with `--self-contained` (#2224).
4403 Pandoc 1.14.0.x used css-text to parse the CSS, but its parser
4404 silently drops big sections of CSS. This commit replaces the
4405 use of css-text with a small but principled CSS preprocessor,
4406 which removes whitespace and comments and replaces `url()` with
4407 base 64 data when possible.
4409 * Use `https://` instead of `//` for MathJax and KaTeX CDN URLs (#1920).
4410 This will allow math to work when pages are being viewed locally.
4412 * `Text.Pandoc.Options`: Export `plainExtensions`.
4413 These are the extensions used in `plain` output.
4415 * LaTeX reader: Don't parse `_` and `^` as sub/superscript outside of
4416 math mode; treat them as regular inline text. Normally these will
4417 cause an error in LaTeX, but there are contexts (e.g. `alltt`
4418 environments) where they are allowed.
4420 * HTML reader: allow `<body>` to close `<head>`.
4422 * DocBook reader: support `mediaobject`s and `figures` (#2184, Mauro Bieg).
4424 * RST reader: Fix reference names with special characters
4425 (Lars-Dominik Braun).
4427 * Textile writer: escape `+` and `-` as entities (#2225).
4429 * DokuWiki writer: Use proper `<code>` tags for code blocks (#2213).
4431 * Plain writer: don't use symbols for super/subscript (#2237).
4432 Simplified code by using `plainExtensions`.
4434 * InDesign writer: Properly escape URLs containing more than one
4435 colon character (gohai).
4437 * Docx writer: Make sure we use dist version of `reference.docx`
4438 (and not the user's version) for certain settings. Taking some
4439 settings values from a user-supplied reference.docx can lead to
4440 corruption. This fixes a regression from the last release (#2249).
4442 * `Text.Pandoc.Shared`: exports `getDefaultReferenceDocx` and
4443 `getDefaultReferenceODT` (API change). These functions have been
4444 removed from the Docx and ODT writers.
4446 * LaTeX template (Xavier Olive):
4447 + Added `CJKmainfont` and `CJKoptions` variables.
4448 + Allow dvipsnames (e.g. `MidnightBlue`) for colors (Xavier Olive).
4450 * Epub templates: use `author.role`, not `author.type`.
4452 * Bump cmark version to >= 0.3.4.
4454 * Improved Windows installer (#2205, thanks to nkalvi).
4455 Users can now select a per-user or systemwide install, and can set
4456 the installation path. At the end of installation, the install location
4457 is given. The install location is also now given in the list of
4458 installed programs in Control Panel. Cleaner WiX syntax is used for
4461 * Added `download_stats` target to Makefile.
4465 * Added missing commonmark template.
4467 * Improved try pandoc (moved button, show raw command).
4471 * Allow compilation with syb 0.5.*.
4473 * Custom writer: fixed some compiler warnings for ghc < 7.10.
4477 * Allow building with hslua 0.4.
4481 * Fixed problem with building of `reference.docx` and `reference.odt`
4482 when the `embed_data_files` flag is used. Instead of having a phase
4483 of the build where `reference.docx` and `reference.odt` are created
4484 from their constituent data files, we now construct these archives
4485 from their constituents when a `docx` or `odt` is built. The
4486 constituent files have been moved from `extra-source-files` to
4487 `data-files`, and `reference.docx` and `reference.odt` have been
4488 removed. Users can create their own `reference.docx` or
4489 `reference.odt` by using pandoc to create a simple `docx` or `odt`.
4490 `make-reference-files.hs` has been removed, simplifying the build
4493 * Don't include generated man pages in extra-source-files (#2189).
4495 * Bumped upper bound for aeson.
4497 * ConTeXt writer: create internal link anchors for Div elements with
4498 identifiers. (This is needed for linked citations to work.)
4504 * Added `commonmark` as input and output format.
4506 * Added `--verbose` flag for debugging output in PDF production (#1840,
4509 * Allow wildcards in `--epub-embed-font` arguments (#1939).
4511 * Added `--latex-engine-opt` option (#969, #1779, Sumit Sahrawat).
4513 * Added `shortcut_reference_links` extension (Konstantin Zudov, #1977).
4514 This is enabled by default for those markdown flavors that
4515 support reading shortcut reference links, namely: `markdown`,
4516 `markdown_strict`, `markdown_github`, `markdown_php`.
4517 If the extension is enabled, the reader parses shortcut reference
4518 links like `[foo]`, and the writer creates such links unless doing
4519 so would cause problems. Users of markdown flavors that support
4520 shortcut reference links should not notice a difference in reading
4521 markdown, but the markdown pandoc produces may differ.
4522 If shortcut links are not desired, the extension can be disabled
4527 * `--toc` is now supported for `docx` output (#458, Nikolay Yakimov).
4528 A "dirty" TOC is created at the beginning of document.
4529 It can be regenerated after the document has been opened.
4531 * An implicit `--filter pandoc-citeproc` is now triggered only when the
4532 `--bibliography` option is used, and not when the `bibliography`
4533 field in metadata is specified (#1849).
4537 + Reference links with `implicit_header_references` are no longer
4538 case-sensitive (#1606).
4539 + Definition lists no longer require indentation for first line (#2087).
4540 Previously the body of the definition (after the `:` or `~` marker)
4541 needed to be in column 4. This commit relaxes that requirement,
4542 to better match the behavior of PHP Markdown Extra. So, now
4543 this is a valid definition list:
4547 + Resolve a potentially ambiguity with table captions:
4557 Is "bar" a definition, or the caption for the table? We'll count
4558 it as a caption for the table.
4559 + Disallow headerless pipe tables (#1996), to conform to GFM and PHP
4560 Markdown Extra. Note: If you have been using headerless pipe tables,
4561 this change may cause existing tables to break.
4562 + Allow pipe tables with header but no body (#2017).
4563 + Allow a digit as first character of a citation key (Matthias Troffaes).
4564 See https://github.com/jgm/pandoc-citeproc/issues/97
4568 + Don't limit includes to `.tex` extension (#1882).
4569 If the extension is not `.tex`, it must be given explicitly in
4570 the `\input` or `\include`.
4574 + Allow numbering in the style file. This allows inherited styles
4575 with numbering (lists) (Jesse Rosenthal).
4579 + Support smart punctuation (Craig Bosma).
4580 + Drop trees with a :noexport: tag (Albert Krewinkel). Trees having a
4581 `:noexport:` tag set are not exported. This mirrors org-mode.
4582 + Put header tags into empty spans (Albert Krewinkel, #2160).
4583 Org mode allows headers to be tagged: `* Headline :TAG1:TAG2`.
4584 Instead of being interpreted as part of the headline, the tags are now
4585 put into the attributes of empty spans. Spans without textual content
4586 won't be visible by default, but they are detectable by filters. They
4587 can also be styled using CSS when written as HTML.
4588 + Generalize code block result parsing (Albert Krewinkel).
4589 Previously, only code blocks were recognized as result blocks;
4590 now, any kind of block can be the result.
4592 * Append newline to the LineBreak in Dokuwiki, HTML, EPUB,
4593 LaTeX, MediaWiki, OpenDocument, Texinfo writers (#1924, Tim Lin).
4597 + Add "inline" or "display" class to math spans (#1914).
4598 This allows inline and display math to be styled differently.
4599 + Include raw latex blocks if `--mathjax` specified (#1938).
4600 + Require highlighting-kate >= 0.5.14 (#1903).
4601 This ensures that all code blocks will be wrapped in a `div`
4602 with class `sourceCode`. Also, the default highlighting CSS
4603 now adds `div.sourceCode { x-overflow: auto; }`, which means
4604 that code blocks (even with line numbers) will acquire a scroll
4605 bar on screens too small to display them (e.g. mobile phones).
4606 See also jgm/highlighting-kate#65.
4610 + Use a declaration for tight lists (Jose Luis Duran, Joseph
4611 Harriott). Previously, pandoc hard-coded some commands to make
4612 tight lists in LaTeX. Now we use a custom command instead,
4613 allowing the styling to be changed in a macro in the header.
4614 (Note: existing templates may need to be modified to include
4615 the definition of this macro. See the current template.)
4616 + Beamer output: if the header introducing a slide has the
4617 class `fragile`, add the `[fragile]` option to the slide (#2119).
4621 + Use `File:` instead of the deprecated `Image:` for images and
4622 other media files (Greg Rundlett).
4626 + Render a `Div (id,_,_) [Para _]` element as a `para` element
4627 with an `id` attribute. This makes links to citations work in
4628 DocBook with pandoc-citeproc.
4632 + Normalize headings to sequential levels (Nikolay Yakimov).
4633 This is pretty much required by docutils.
4634 + Treat headings in block quotes, etc as rubrics (Nikolay Yakimov).
4635 + Better handling of raw latex inline (#1961). We use
4636 `` :raw-latex:`...` `` and add a definition for this role to
4641 + Remove `linear=no` from cover `itemref` (#1609).
4642 + Don't use `sup` element for epub footnotes (#1995).
4643 Instead, just use an a element with class `footnoteRef`.
4644 This allows more styling options, and provides better results
4645 in some readers (e.g. iBooks, where anything inside the a
4646 tag breaks popup footnotes).
4647 + Take TOC title from `toc-title` metadata field.
4651 + Implemented `FirstParagraph` style (Jesse Rosenthal).
4652 Following the ODT writer, we add the `FirstParagraph` style to the
4653 first text paragraph following an image, blockquote, table, heading,
4654 or beginning of document. This allows it to be styled differently.
4655 The default is for it to be the same as `Normal`.
4656 + Added `BodyText` style (Jesse Rosenthal).
4657 We apply a `BodyText` style to all unstyled paragraphs. This is,
4658 essentially, the same as `Normal`, except that since not everything
4659 inherits from `BodyText` (the metadata won't, for example, or
4660 the headers or footnote numbers), we can change the text in the body
4661 without having to make exceptions for everything. If we do want to
4662 change *everything*, we can still do it through `Normal`.
4663 + Altered `Blockquote` style slightly (Jesse Rosenthal).
4664 Since `BlockQuote` derives from `BodyText`, we just want to specify
4665 by default that it won't indent, regardless of what `BodyText` does.
4666 Note that this will not produce any visible difference in the default
4668 + Take TOC title from `toc-title` metadata field (Nikolay Yakimov).
4669 + Added a style to figure images (Nikolay Yakimov).
4670 Figures with empty captions use style `Figure`.
4671 Figures with nonempty captions use style `Figure with Caption`, which
4672 is based on `Figure`, and additionally has `keepNext` set.
4676 + Added figure captions (Nikolay Yakimov). The following styles are
4678 `Figure` -- for figure with empty caption),
4679 `FigureWithCaption` (based on `Figure`) -- for figure with caption,
4680 `FigureCaption` (based on `Caption`) -- for figure captions.
4681 Also, `TableCaption` (based on `Caption`) is used for table captions.
4685 * New `Text.Pandoc.Error` module with `PandocError` type
4686 (Matthew Pickering).
4688 * All readers now return `Either PandocError Pandoc` instead of `Pandoc`
4689 (Matthew Pickering). This allows better handling of errors.
4691 * Added `Text.Pandoc.Writers.CommonMark`, exporting `writeCommonMark`.
4693 * Added `Text.Pandoc.Readers.CommonMark`, exporting `readCommonMark`.
4695 * Derive `Data` and `Typeable` instances for `MediaBag`, `Extension`,
4696 `ReaderOptions`, `EPUBVersion`, `CiteMethod`, `ObfuscationMethod`,
4697 `HTMLSlideVariant`, `TrackChanges`, `WriterOptions` (Shabbaz
4700 * New `Ext_shortcut_reference_links` constructor for `Extension`
4707 + Allow smart `'` after inline math (#1909, Nikolay Yakimov).
4708 + Check for tex macros after indented code (#1973).
4709 + Rewrote `charsInBalancedBrackets` for efficiency.
4710 + Make sure a closing `</div>` doesn't get included in a
4711 definition list item (#2127).
4712 + Don't parse bracketed text as citation if it might be a link,
4713 image, or footnote (Nikolay Yakimov).
4714 + Require space after key in mmd title block (#2026, Nikolay
4715 Yakimov). Require space after key-value delimiter colon in mmd title
4717 + Require nonempty value in mmd title block (Nikolay Yakimov).
4718 + Disable all metadata block extensions when parsing
4719 metadata field values (#2026, Nikolay Yakimov). Otherwise we
4720 could get a mmd title block inside YAML metadata, for example.
4724 + Improve self-closing tag detection in `htmlInBalanced` (#2146).
4725 + Handle tables with `<th>` in body rows (#1859, Mauro Bieg).
4726 + Fixed `htmlTag` (#1820). If the tag parses as a comment, we check
4727 to see if the input starts with `<!--`. If not, it's bogus comment
4728 mode and we fail `htmlTag`.
4729 + Handle `base` tag; if it has an `href` value, this is added to
4730 all relative URLs in links and images.
4734 + Look inside "info" elements for section titles (#1931).
4738 + Parse images in deprecated vml format (Jesse Rosenthal).
4739 + Allow sub/superscript verbatims (Jesse Rosenthal).
4740 Verbatim usually shuts off all other run styles, but we don't want it
4741 to shut off sub/superscript.
4745 + Handle `tabular*` environment (#1850).
4746 Note that the table width is not actually parsed or taken into
4747 account, but pandoc no longer chokes on it.
4748 + Ignore options in `\lstinline` rather than raising error (#1997).
4749 + Add some test cases for simple tables (Mathias Schenner).
4750 + Handle valign argument in tables (Mathias Schenner) (currently
4751 we just ignore this).
4752 + Allow non-empty colsep in tables (Mathias Schenner).
4753 The `tabular` environment allows non-empty column separators
4754 with the "@{...}" syntax. Previously, pandoc would fail to
4755 parse tables if a non-empty colsep was present. With this
4756 commit, these separators are still ignored, but the table gets
4757 parsed. A test case is included.
4758 + Recognize `\newpage` as a block command.
4759 + Allow block content in \title{} (#2001).
4760 + Check for block-level newcommand aliases in blockCommand (Nikolay
4762 + Guard against paragraph starting with inline macro (Nikolay Yakimov).
4763 + Properly gobble spaces after `\\` (#2007).
4767 + Handle newlines in table cells, and empty cells (#1919).
4771 + Allow image links with non-image targets (Hans-Peter Deifel).
4772 This matches behavior of Org-Mode for links like
4773 `[[http://example.com][https://www.haskell.org/static/img/logo.png]]`.
4777 + Don't print empty id attributes (thanks to Steve Horne).
4781 + Fixed list-style-type for numbered example lists.
4782 Should be "decimal," not "example" (#1902).
4783 + Do not omit missing `alt` attribute on `img` tag (#1131,
4785 + Allow multiple colgroups in table (#2122).
4786 + In revealjs, ensure that lists in speaker notes don't add "fragment"
4787 classes, which can cause additional keypresses to be needed to
4788 advance a slide (#1394).
4792 + Don't escape `$` in URL (#1913).
4793 + Don't use listings in headers (Matthew Pickering, #1963).
4794 + Recognize book documentclass if set in metadata (#1971).
4795 This sets `--chapters` implicitly if the documentclass in metadata
4796 is a book documentclass. Previously this was done only if a book
4797 documentclass was set in a variable.
4798 + Add a `\label` in `\hyperdef` for Div, Span (or links don't work).
4799 + Make `mainlang` work when `lang` is in metadata (#2174).
4803 + Fix wrapping by using breakable spaces (Tim Lin).
4807 + Fixed toc depth in RST writer. Previously the depth was being
4808 rendered as a floating point number with a decimal point.
4812 + Improved escaping (#2086). `<` should not be escaped as `\<`, for
4813 compatibility with original Markdown. We now escape `<` and `>`
4814 with entities. Also, we now backslash-escape square brackets.
4815 + Avoid introducing spurious list items through wrapping (#1946).
4816 + Don't emit span tags if plain or raw HTML disabled.
4820 + Convert spaces to underscores in wikilink URL (#1982), like MediaWiki.
4824 + Insert some needed blank lines (#1860).
4825 + Avoid wrapping after list marker (#1858).
4829 + Properly handle internal links to IDs in spans, divs (#1884).
4830 + Use plain writer for metadata dc: fields (#2121).
4831 This gives better results when we have, e.g. multiple paragraphs.
4832 Note that tags aren't allowed in these fields.
4833 + Properly handle image links without an extension (#1855).
4834 + Improved chapter splitting and internal link rewriting (#1887,
4835 #2162, #2163). This will ensure that internal links work and
4836 that the references section produced by pandoc-citeproc is
4838 + Fixed handling of svg images (#2183).
4842 + Better handling of raw blocks and inlines (#1951).
4843 Previously these were always escaped and printed verbatim.
4844 Now they are ignored unless the format is `icml`, in which
4845 case they are passed through unescaped.
4846 + Fixed image URIs in ICML output (gohai).
4850 + Raise error if loadstring returns an error status.
4851 + Raise `PandocLuaException` instead of using 'error'.
4852 Eventually we'll change the return type so that no exception
4853 is involved, but at least this can be trapped.
4854 + Use UTF-8 aware bytestring conversion.
4855 + Set foreign encoding to UTF-8 (Nikolay Yakimov, #2101, #1634).
4856 Also factored out ByteString, since it's only used as an intermediate
4861 + Copy hyphenation settings from reference.docx (Nikolay Yakimov).
4862 + Filter out illegal XML characters (#1992, Matthew Pickering).
4863 + Added `noProof` to docx syntax highlighting `SourceCode` style.
4864 + Added footnotes id -1 and 0 (Jesse Rosenthal).
4865 Word uses, by default, footnotes with id -1 and 0 for separators. If a
4866 user modifies `reference.docx`, they will end up with a `settings.xml`
4867 file that references these footnotes, but no such footnotes in the
4868 document. This will produce a corruption error. Here we add these to the
4869 document and `settings.xml` file, so future modifications won't break
4871 + Handle lists correctly inside table cells (Jesse Rosenthal).
4872 Previously we didn't transform lists inside table cells.
4873 + Set firstRow information in tables (Nikolay Yakimov).
4874 + Don't replace `SourceCode` style in `reference.docx` if it is defined
4875 there (Nikolay Yakimov, #1872). If `--no-highlight` specified, remove
4876 any `SourceCode` and `*Tok` styles in `reference.docx`.
4877 + Attempt to match international style names (#1607, Nikolay Yakimov).
4878 + Set these styles as custom (Nikolay Yakimov): `Author`, `Abstract`,
4879 `Compact`, `Image Caption`, `Table Caption`, `Definition Term`,
4880 `Definition`, `First Paragraph`.
4881 + Rename these styles to correspond with Word `Normal.dotm` (Nikolay
4882 Yakimov): `Block Quote -> Block Text`, `Link -> Hyperlink`,
4883 `Footnote Ref -> Footnote Reference`.
4884 + Added `Caption` style (Nikolay Yakimov).
4885 + Changed these styles' inheritance (Nikolay Yakimov):
4886 `Image Caption <- Caption`, `Table Caption <- Caption`.
4887 + Remove `SourceCode` style from `reference.docx` (#1872).
4888 This is added automatically by the docx writer.
4889 + Added toc heading style to `reference.docx` (Nikolay Yakimov).
4893 + Don't suggest "Try xelatex" if xelatex already in use (Mauro Bieg,
4895 + More comprehensible errors on image conversion (#2067).
4896 EPS can't be supported without shelling out to something like
4897 ImageMagick, but at least we can avoid mysterious error messages.
4899 * `Text.Pandoc.Shared`:
4901 + Make safeRead safe (#1801, Matthew Pickering).
4902 + Addded `mapLeft`, `hush` (Matthew Pickering).
4904 * `Text.Pandoc.Pretty`:
4906 + Remove partial function (Matthew Pickering).
4908 * `Text.Pandoc.SelfContained`:
4910 + Add `;charset=utf-8` to script mime type if missing (#1842).
4911 + Improved building of data URIs (#1940). Now base64 is used except
4912 for `text/*` mime types.
4913 + `cssURLs` no longer tries to fetch fragment URLs (#2121).
4914 + Properly handle data URIs in css urls (#2129).
4915 Use a proper CSS parser (adds dependency on `text-css`).
4917 * `Text.Pandoc.UTF8`:
4919 + Better handling of bare CRs in input files (#2132).
4920 Previously we just stripped them out; now we convert
4921 other line ending styles to LF line endings.
4923 * `Text.Pandoc.ImageSize`:
4925 + Fixed some exif header parsing bugs (#1834).
4926 + Make imageSize return an Either, not a Maybe (#1834).
4927 Use `runGetOrFail` (with `binary >= 0.7`) to return `Left` on
4928 parse failure (rather than `error`).
4929 + Improved warnings when image size can't be determined.
4930 + Removed error landmines (Matthew Pickering).
4932 * Added woff2 to MIME types (Alfred Wechselberger).
4934 * pandoc: When a binary input format is used, warn that file
4935 arguments past the first one are being ignored (Matthew Pickering).
4941 + Degrade gracefully if `\paragraph` not defined.
4942 + Include `grffile` together with `graphicx` (#2074).
4943 This properly handles filenames containing spaces and dots.
4944 + Redefine `\paragraph`, `\subparagraph`... to behave more
4945 like section headers (#1658).
4946 + Import hyperref before polyglossia to avoid an error with xelatex,
4947 "please load package hyperref before bidi package" (Nick Bart).
4948 + Added `toccolor` variable to control link color in toc (Kaixhin).
4950 * LaTeX, Beamer templates:
4952 + Provide `\tightlist`, which is now used by the LaTeX writer.
4953 + Use polyglossia in beamer (#85).
4954 + Use `bibliography` instead of `biblio-files`
4955 (#1661). Also use `\addbibresource` instead of `\bibliography` for
4957 + Added `setotherlanguages` in polyglossia. This uses an `otherlang`
4958 variable that is derived from a comma-separated list in `lang`;
4959 the last language is `mainlang` and the others are `otherlang`.
4963 + Use `div`, not `p`, for "rights" on title page.
4964 + Added header-includes, include-before, include-after (#1987).
4966 * OpenDocument template:
4968 + Use `text:p` instead of `text:h` for title.
4969 Using `text:h` causes problems with numbering. Closes #2059.
4970 Thansk to @nkalvi for diagnosing this.
4972 * reveal.js template:
4974 + Link to non-minified css, js. The minified versions no longer
4975 ship with the library.
4976 + Correctly include style CSS (#1949).
4977 + New configurable options options: `center`, `maxScale`, `slideNuber`
4978 (Dmitry Smirnov, pandoc-templates#89).
4979 + Moved custom CSS after theme. This allows custom CSS to modify
4980 themes, instead of being replaced by them.
4981 + Allow `center` to be set to false.
4983 [under the hood improvements]
4985 * Removed pre-built `reference.docx` and `reference.odt` (Nikolay
4986 Yakimov). Instead the repository now includes the component text files,
4987 and the zipped binaries are built from these using a helper
4988 program, `make-reference-files`. This should make maintenance of
4989 these components easier going forward.
4991 * `Text.Pandoc.Parsing`:
4993 + Added new `<+?>` combinator (Nikolay Yakimov).
4994 + Added `stateHeaderKeys` to `ParserState`.
4996 * `make_deb.sh` fixes:
4998 + Detect architecture.
4999 + Add Installed-Size to debian package control file (#1900).
5000 + Use `fakeroot` to get permissions right.
5001 + Use `mkdir` and `cp` instead of `install`.
5002 + Set permissions of directories to 755.
5003 + Install in `/usr` rather than `/usr/local`.
5004 + Compress man pages.
5005 + Combine copyright files for `pandoc`, `pandoc-citeproc`.
5007 * Added `Text.Pandoc.Compat.Locale` and `old-locale` flag
5008 to assist with transition to `time` 1.5.
5010 * Updated CONTRIBUTING.md with information about issue tags (Matthew
5013 * Updated travis installs to the new sudo-less syntax (Tim Lin).
5015 * Updated dependency version bounds.
5017 * EPUB tests: don't use `joinPath`, which varies across platforms.
5018 Instead, use a forward-slash to join paths, regardless of the
5019 platform. This matches the way `MediaBag` now works.
5021 * Clarify JSON input and output in usage message (Caleb McDaniel).
5023 * Improved INSTALL instructions.
5025 * Always build man pages. Removed make-pandoc-man-pages flag.
5027 * Makefile: removed man target, now that we generate man pages by default.
5031 + Fixed typos (J. Lewis Muir).
5032 + Added documentation on backtick_code_blocks (#2135, Nikolay Yakimov).
5033 + Added note on in-field markup in biblio databases (Nick Bart).
5034 + Fixed misleading example of raw HTML block.
5035 + Various minor formatting and consistency fixes for the program
5036 options (Andreas Lööw).
5037 + Made definition lists for options all "loose" for consistency.
5038 + Added YAML biblio format to table, and note on `pandoc-citeproc`'s
5039 `--bib2json` and `--bib2yaml` options (Nick Bart).
5040 + Removed obsolete reference to `mods2yaml` (Nick Bart).
5041 + Added section on syntax highlighting.
5042 + Documented `toccolor` variable.
5046 * Updated to build with ghc 7.10.1.
5048 * Bumped package upper bounds for filepath, blaze-html,
5053 * TWiki Reader: add new new twiki reader (API change, Alexander Sulfrian).
5057 + Better handling of paragraph in div (#1591).
5058 Previously text that ended a div would be parsed as Plain
5059 unless there was a blank line before the closing div tag.
5060 + Don't treat a citation as a reference link label (#1763).
5061 + Fix autolinks with following punctuation (#1811).
5062 The price of this is that autolinked bare URIs can no longer
5063 contain `>` characters, but this is not a big issue.
5064 + Fix `Ext_lists_without_preceding_blankline` bug (#1636, Artyom).
5065 + Allow `startnum` to work without `fancy_lists`. Formerly
5066 `pandoc -f markdown-fancy_lists+startnum` did not work properly.
5068 * RST reader (all Daniel Bergey):
5070 + Parse quoted literal blocks (#65). RST quoted literal blocks are
5071 the same as indented literal blocks (which pandoc already supports)
5072 except that the quote character is preserved in each line.
5073 + Parse RST class directives. The class directive accepts one or more
5074 class names, and creates a Div value with those classes. If the
5075 directive has an indented body, the body is parsed as the children of
5076 the Div. If not, the first block folowing the directive is made a
5077 child of the Div. This differs from the behavior of rst2xml, which
5078 does not create a Div element. Instead, the specified classes are
5079 applied to each child of the directive. However, most Pandoc Block
5080 constructors to not take an Attr argument, so we can't duplicate this
5082 + Warn about skipped directives.
5083 + Literal role now produces Code. Code role should have "code" class.
5084 + Improved support for custom roles
5086 - Added `sourceCode` to classes for `:code:` role, and anything
5088 - Add the name of the custom role to classes if the Inline
5089 constructor supports Attr.
5090 - If the custom role directive does not specify a parent role,
5091 inherit from the `:span:` role.
5093 This differs somewhat from the `rst2xml.py` behavior. If a custom
5094 role inherits from another custom role, Pandoc will attach both
5095 roles' names as classes. `rst2xml.py` will only use the class of
5096 the directly invoked role (though in the case of inheriting from a
5097 `:code:` role with a `:language:` defined, it will also provide the
5098 inherited language as a class).
5099 + Warn about ignored fields in role directives.
5103 + Parse label after caption into a span instead of
5104 inserting an additional paragraph of bracketed text (#1747).
5105 + Parse math environments as inline when possible (#1821).
5106 + Better handling of `\noindent` and `\greektext` (#1783).
5107 + Handle `\texorpdfstring` more gracefully.
5108 + Handle `\cref` and `\sep` (Wikiwide).
5109 + Support `\smartcite` and `\Smartcite` from biblatex.
5113 + Retain display type of MathML output (#1719, Matthew Pickering).
5114 + Recognise `<br>` tags inside `<pre>` blocks (#1620, Matthew Pickering).
5115 + Make `embed` tag either block or inline (#1756).
5119 + Handle `keycombo`, `keycap` (#1815).
5120 + Get string content in inner tags for literal elements (#1816).
5121 + Handle `menuchoice` elements better, with a `>` between (#1817).
5122 + Include `id` on section headers (#1818).
5123 + Document/test "type" as implemented (Brian O'Sullivan).
5124 + Add support for calloutlist and callout (Brian O'Sullivan).
5125 We treat a calloutlist as a bulleted list. This works well in practice.
5126 + Add support for `classname` (Bryan O'Sullivan).
5130 + Fix window path for image lookup (Jesse Rosenthal).
5131 Don't use os-sensitive "combine", since we always want the paths in our
5132 zip-archive to use forward-slashes.
5133 + Single-item headers in ordered lists are headers (Jesse Rosenthal).
5134 When users number their headers, Word understands that as a single item
5135 enumerated list. We make the assumption that such a list is, in fact,
5137 + Rewrite rewriteLink to work with new headers (Jesse Rosenthal).
5138 There could be new top-level headers after making lists, so we have to
5139 rewrite links after that.
5140 + Use polyglot header list (Jesse Rosenthal).
5141 We're just keeping a list of header formats that different languages
5142 use as their default styles. At the moment, we have English, German,
5143 Danish, and French. We can continue to add to this.
5144 This is simpler than parsing the styles file, and perhaps less
5145 error-prone, since there seems to be some variations, even within a
5146 language, of how a style file will define headers.
5147 + Remove header class properly in other langs (Jesse Rosenthal).
5148 When we encounter one of the polyglot header styles, we want to remove
5149 that from the par styles after we convert to a header. To do that, we
5150 have to keep track of the style name, and remove it appropriately.
5151 + Account for external link URLs with anchors. Previously, if a URL
5152 had an anchor, the reader would incorrectly identify it as an
5153 internal link and return only the anchor as URL. (Caleb McDaniel)
5154 + Fix for Issue #1692 (i18n styles) (Nikolay Yakimov).
5158 + Added state changing blanklines (Jesse Rosenthal).
5159 This allows us to emphasize at the beginning of a new paragraph (or, in
5160 general, after blank lines).
5161 + Fixed bug with bulleted lists:
5167 was being parsed as a list, even though an unindented `*`
5168 should make a heading. See
5169 <http://orgmode.org/manual/Plain-lists.html#fn-1>.
5170 + Org reader: absolute, relative paths in link (#1741, Albert
5171 Krewinkel). The org reader was too restrictive when parsing links;
5172 some relative links and links to files given as absolute paths
5173 were not recognized correctly.
5174 + Org reader: allow empty links (jgm/gitit#471, Albert Krewinkel).
5175 This is important for use in gitit, which uses empty links
5177 + Respect indent when parsing Org bullet lists (#1650, Timothy
5178 Humphries). Fixes issue with top-level bullet list parsing.
5179 + Fix indent issue for definition lists (Timothy Humphries,
5180 see #1650, #1698, #1680).
5181 + Parse multi-inline terms correctly in definition list (#1649,
5183 + Fix rules for emphasis recognition (Albert Krewinkel).
5184 Things like `/hello,/` or `/hi'/` were falsy recognized as emphasised
5185 strings. This is wrong, as `,` and `'` are forbidden border chars and
5186 may not occur on the inner border of emphasized text.
5187 + Drop COMMENT document trees (Albert Krewinkel).
5188 Document trees under a header starting with the word `COMMENT` are
5189 comment trees and should not be exported. Those trees are dropped
5191 + Properly handle links to `file:target` (Albert Krewinkel).
5192 Org links like `[[file:target][title]]` were not handled correctly,
5193 parsing the link target verbatim. The org reader is changed such that
5194 the leading `file:` is dropped from the link target (see #756, #1812).
5195 + Parse LaTeX-style MathML entities (#1657, Albert Krewinkel).
5196 Org supports special symbols which can be included using LaTeX syntax,
5197 but are actually MathML entities. Examples for this are
5198 `\nbsp` (non-breaking space), `\Aacute` (the letter A with accent acute)
5199 or `\copy` (the copyright sign ©)
5203 + URI handling improvements. Now we outsource most of the work to
5204 `fetchItem'`. Also, do not include queries in file extensions (#1671).
5208 + Use `\texorpdfstring` for section captions when needed (Vaclav Zeman).
5209 + Handle consecutive linebreaks (#1733).
5210 + Protect graphics in headers (Jesse Rosenthal).
5211 Graphics in `\section`/`\subsection` etc titles need to be `\protect`ed.
5212 + Put `~` before header in list item text (Jesse Rosenthal).
5213 Because of the built-in line skip, LaTeX can't handle a section header
5214 as the first element in a list item.
5215 + Avoid using reserved characters as `\lstinline` delimiters (#1595).
5216 + Better handling of display math in simple tables (#1754).
5217 We convert display math to inline math in simple tables,
5218 since LaTeX can't deal with display math in simple tables.
5219 + Escape spaces in code (#1694, Bjorn Buckwalter).
5223 + Fixed links with URL = text. Previously these were rendered as bare
5224 words, even if the URL was not an absolute URL (#1825).
5228 + Don't force all citations into footnotes.
5232 + Add blankline at end of output (#1732, Matthew Pickering).
5236 + Ensure blank line after figure.
5237 + Avoid exces whitespace after last list item (#1777).
5238 + Wrap line blocks with spaces before continuations (#1656).
5239 + Fixed double-rendering of footnotes in RST tables (#1769).
5243 + Better handling of block quotes. This change ensures that
5244 multiple paragraph blockquotes are rendered using native `>`
5245 rather than as HTML (#1738).
5246 + Fix external images (#1739). Preface relative links with ":",
5247 absolute URIs without. (Timothy Humphries)
5251 + Use protocol-relative URL for mathjax.
5252 + Put newline btw img and caption paragraph.
5253 + MathML now outputted with tex annotation (#1635, Matthew Pickering).
5254 + Add support for KaTeX HTML math (#1626, Matthew Pickering).
5255 This adds `KaTeX` to `HTMLMathMethod` (API change).
5256 + Don't double render when `email-obfuscation=none` (#1625, Matthew
5258 + Make header attributes work outside top level (#1711).
5259 Previously they only appeared on top level header elements.
5260 Now they work e.g. in blockquotes.
5264 + Correctly handle images without extensions (#1729).
5265 + Strip querystring in ODT write (#1682, Todd Sifleet).
5269 + Add newline to output.
5273 + Don't add `sourceURL` to absolute URIs (#1669).
5274 + Don't use unsupported `opf:title-type` for epub2.
5275 + Include "landmarks" section in nav document for epub3 (#1757).
5276 + Removed playOrder from navpoint elements in ncx file (#1760).
5277 These aren't required, and they make manual modification of epubs
5279 + Extract title even from structured title.
5280 + Don't include nav node in spine unless `--toc` was requested.
5281 Previously we included it in the spine with `linear="no"`, leading
5282 to odd results in some readers (#1593).
5283 + Fixed absolute URI detection (#1672).
5284 + Correctly resolve relative URIs (#1671).
5285 + Use regular page template for `nav.xhtml`, including doctype (#1759).
5289 + Put docx table captions above tables (#1641, Nikolay Yakimov).
5290 + Get the page width from the reference docx file, and use
5291 it to scale images that are too large to fit (Grégory Bataille).
5292 + Partial fix for #1607 (Nikolay Yakimov). International heading styles
5293 are inferred based on `<w:name val="heading #">` fallback, if there
5294 are no en-US "Heading#" styles
5295 + Look in user data dir for archive `reference.docx`.
5296 + Renumber header and footer relationships to avoid collisions (Jesse
5297 Rosenthal). We previously took the old relationship names of the
5298 headers and footer in secptr. That led to collisions. We now make
5299 a map of availabl names in the relationships file, and then rename
5304 + Add function toLabel (Mark Szepieniec).
5305 This function can be used to sanitize reference labels so that
5306 they do not contain any of the illegal characters \#[]",{}%()|= .
5307 Currently only Links have their labels sanitized, because they
5308 are the only Elements that use passed labels.
5310 * `Text.Pandoc.Shared`:
5312 + Moved import of `toChunks` outside of CPP conditional (#1590).
5313 + Fix `inDirectory` to reset to the original directory in case
5314 an exception occurs (Freiric Barral).
5318 + LaTeX template: load polyglossia before bibtex (jgm/pandoc-templates#70).
5319 Thanks to bluebirch.
5320 + LaTeX template: Added `\VerbatimFootnotes` if there is verbatim in notes
5322 + LaTeX template: Add shorthands=off to babel options (#1648).
5323 + EPUB, EPUB3 templates: Added `id="cover"` to body of cover page.
5324 This aids styling, making it possible for example to set 0 margins
5325 on the title page (#1758).
5326 + EPUB, EPUB3 templates: Handle structured metadata on titlepage.
5327 Previously we just expected 'title', 'subtitle', 'author', 'date'.
5328 Now we still support those, but also support the format recommended
5329 for epub metadata in the pandoc README:
5336 text: An investigation of metadata
5344 text: doi:10.234234.234/33
5346 rights: (c) 2007 John Smith, CC BY-NC
5349 * `Text.Pandoc.Templates.getDefaultTemplate`:
5350 don't fail when called with "fb2" (#1660).
5352 * `Text.Pandoc.Parsing`:
5354 + Fixed `inlineMath` so it handles `\text{..}` containing `$`.
5355 For example: `$x = \text{the $n$th root of $y$}` (#1677).
5356 + Change `parseFromString` to fail if not all input is consumed.
5358 + Moved `addWarning` from Markdown reader to `Parsing`, so it can be
5359 used by more readers (API change, Daniel Bergey).
5361 * `Text.Pandoc.Pretty`:
5363 + Improve performance of `realLength` (Matthew Pickering).
5364 + Make CR + BLANKLINE = BLANKLINE. This fixes an extra blank line we
5365 were getting at the end of markdown fragments (as well as rst, org,
5368 * `Text.Pandoc.MIME`:
5370 + Add mime type for WebVTT (Jason Ronallo).
5371 + Changed mime type for `otf` to `application/vnd.ms-opentype` (#1761).
5372 This is needed for epub3 validation.
5374 * `Text.Pandoc.MediaBag`:
5376 + Fix Windows specific path problems (#1597).
5378 * `Text.Pandoc.Shared`:
5380 + Make `collapseFilePath` OS-agnostic (Matthew Pickering).
5382 * Link the test suite using `-threaded`.
5383 This allows the test suite to be run using `+RTS -N`.
5385 * Added `network` dependency under `network-uri` flag in test section.
5387 * Give better error messages when someone tries to convert from
5388 pdf, doc, odt (#1683).
5390 * Added `track` to list of tags treated by `--self-contained` (#1664).
5394 * Fixed `--self-contained` with Windows paths (#1558).
5395 Previously `C:\foo.js` was being wrongly interpreted as a URI.
5397 * HTML reader: improved handling of tags that can be block or inline.
5398 Previously a section like this would be enclosed in a paragraph,
5399 with RawInline for the video tags (since video is a tag that can
5400 be either block or inline):
5402 <video controls="controls">
5403 <source src="../videos/test.mp4" type="video/mp4" />
5404 <source src="../videos/test.webm" type="video/webm" />
5406 The videos can not be played back on your system.<br/>
5407 Try viewing on Youtube (requires Internet connection):
5408 <a href="http://youtu.be/etE5urBps_w">Relative Velocity on
5413 This change will cause the video and source tags to be parsed
5414 as RawBlock instead, giving better output.
5415 The general change is this: when we're parsing a "plain" sequence
5416 of inlines, we don't parse anything that COULD be a block-level tag.
5420 + Be sensitive to user styles. Note that "Hyperlink" is
5421 "blacklisted," as we don't want the default underline styling to be
5422 inherited by all links by default (Jesse Rosenthal).
5423 + Read single paragraph in table cell as `Plain` (Jesse Rosenthal).
5424 This makes to docx reader's native output fit with the way the markdown
5425 reader understands its markdown output.
5427 * Textile writer: Extended the range of cases where native textile
5428 tables will be used (as opposed to raw HTML): we now handle any
5429 alignment type, but only for simple tables with no captions.
5433 + Header is now parsed only if standalone flag is set (Matthew Pickering).
5434 + The header is now parsed as meta information. The first line is the
5435 `title`, the second is the `author` and third line is the `date`
5436 (Matthew Pickering).
5437 + Corrected formatting of `%%mtime` macro (Matthew Pickering).
5438 + Fixed crash when reading from stdin.
5440 * EPUB writer: Don't use page-progression-direction in EPUB2, which
5441 doesn't support it. Also, if page-progression-direction not specified
5442 in metadata, don't include the attribute even in EPUB3; not including it
5443 is the same as including it with the value "default", as we did before.
5446 * Org writer: Accept example lines with indentation at the beginning
5451 + Refactor to use Reader monad (Matthew Pickering).
5452 + Avoid using raw HTML in table cells; instead, use `\\`
5453 instead of newlines (Jesse Rosenthal).
5454 + Properly handle HTML table cell alignments, and use spacing
5455 to make the tables look prettier (#1566).
5459 + Bibliography entries get `Bibliography` style (#1559).
5460 + Implement change tracking (Jesse Rosenthal).
5464 + Fixed a bug that caused a table caption to repeat across all pages
5466 + Improved vertical spacing in tables and made it customizable using
5467 standard lengths set by booktab. See
5468 <https://groups.google.com/forum/#!msg/pandoc-discuss/qMu6_5lYy0o/ZAU7lzAIKw0J>
5470 + Added `\strut` to fix spacing in multiline tables (Jose Luis Duran).
5471 + Use `\tabularnewline` instead of `\\` in table cells (Jose Luis Duran).
5472 + Made horizontal rules more flexible (Jose Luis Duran).
5476 + Added `MimeType` (type synonym for `String`) and `getMimeTypeDef`.
5477 Code cleanups (Artyom Kazak).
5481 + LaTeX template: disable microtype protrusion for typewriter font (#1549,
5484 * Improved OSX build procedure.
5486 * Added `network-uri` flag, to deal with split of `network-uri` from
5489 * Fix build dependencies for the `trypandoc` flag, so that they are
5490 ignored if `trypandoc` flag is set to False (Gabor Pali).
5492 * Updated README to remove outdated claim that `--self-contained`
5493 looks in the user data directory for missing files.
5499 + Fixed regression which bungled list numbering (#1544), causing
5500 all lists to appear as basic ordered lists.
5501 + Include row width in table rows (Christoffer Ackelman, Viktor Kronvall).
5502 Added a property to all table rows where the sum of column widths
5503 is specified in pct (fraction of 5000). This helps persuade Word
5504 to lay out the table with the widths we specify.
5506 * Fixed a bug in Windows 8 which caused pandoc not to find the
5507 `pandoc-citeproc` filter (#1542).
5509 * Docx reader: miscellaneous under-the-hood improvements (Jesse Rosenthal).
5510 Most significantly, the reader now uses Builder, leading to some
5511 performance improvements.
5513 * HTML reader: Parse appropriately styled span as SmallCaps.
5515 * Markdown writer: don't escape `$`, `^`, `~` when `tex_math_dollars`,
5516 `superscript`, and `subscript` extensions, respectively, are
5517 deactivated (#1127).
5519 * Added `trypandoc` flag to build CGI executable used in the online
5522 * Makefile: Added 'quick', 'osxpkg' targets.
5524 * Updated README in templates to indicate templates license.
5525 The templates are dual-licensed, BSD3 and GPL2+.
5531 * Added `docx` as an input format (Jesse Rosenthal). The docx
5532 reader includes conversion of native Word equations to pandoc
5533 LaTeX `Math` elements. Metadata is taken from paragraphs at the
5534 beginning of the document with styles `Author`, `Title`, `Subtitle`,
5535 `Date`, and `Abstract`.
5537 * Added `epub` as an input format (Matthew Pickering). The epub
5538 reader includes conversion of MathML to pandoc LaTeX `Math`
5541 * Added `t2t` (Txt2Tags) as an input format (Matthew Pickering).
5542 Txt2tags is a lightweight markup format described at
5543 <http://txt2tags.org/>.
5545 * Added `dokuwiki` as an output format (Clare Macrae).
5547 * Added `haddock` as an output format.
5549 * Added `--extract-media` option to extract media contained in a zip
5550 container (docx or epub) while adjusting image paths to point to the
5553 * Added a new markdown extension, `compact_definition_lists`, that
5554 restores the syntax for definition lists of pandoc 1.12.x, allowing
5555 tight definition lists with no blank space between items, and
5556 disallowing lazy wrapping. (See below under behavior changes.)
5558 * Added an extension `epub_html_exts` for parsing HTML in EPUBs.
5560 * Added extensions `native_spans` and `native_divs` to activate
5561 parsing of material in HTML span or div tags as Pandoc Span
5562 inlines or Div blocks.
5564 * `--trace` now works with the Markdown, HTML, Haddock, EPUB,
5565 Textile, and MediaWiki readers. This is an option intended
5566 for debugging parsing problems; ordinary users should not need
5571 * Changed behavior of the `markdown_attribute` extension, to bring
5572 it in line with PHP markdown extra and multimarkdown. Setting
5573 `markdown="1"` on an outer tag affects all contained tags,
5574 recursively, until it is reversed with `markdown="0"` (#1378).
5576 * Revised markdown definition list syntax (#1429). Both the reader
5577 and writer are affected. This change brings pandoc's definition list
5578 syntax into alignment with that used in PHP markdown extra and
5579 multimarkdown (with the exception that pandoc is more flexible about
5580 the definition markers, allowing tildes as well as colons). Lazily
5581 wrapped definitions are now allowed. Blank space is required
5582 between list items. The space before a definition is used to determine
5583 whether it is a paragraph or a "plain" element. **WARNING: This change
5584 may break existing documents!** Either check your documents for
5585 definition lists without blank space between items, or use
5586 `markdown+compact_definition_lists` for the old behavior.
5588 * `.numberLines` now works in fenced code blocks even if no language
5589 is given (#1287, jgm/highlighting-kate#40).
5591 * Improvements to `--filter`:
5593 + Don't search PATH for a filter with an explicit path.
5594 This fixed a bug wherein `--filter ./caps.py` would run `caps.py` from
5595 the system path, even if there was a `caps.py` in the working directory.
5596 + Respect shebang if filter is executable (#1389).
5597 + Don't print misleading error message.
5598 Previously pandoc would say that a filter was not found,
5599 even in a case where the filter had a syntax error.
5603 + Parse `div` and `span` elements even without `--parse-raw`,
5604 provided `native_divs` and `native_spans` extensions are set.
5605 Motivation: these now generate native pandoc Div and Span
5606 elements, not raw HTML.
5607 + Parse EPUB-specific elements if the `epub_html_exts`
5608 extension is enabled. These include `switch`, `footnote`,
5609 `rearnote`, `noteref`.
5613 + Support for inline LaTeX. Inline LaTeX is now accepted and parsed by the
5614 org-mode reader. Both math symbols (like `\tau`) and LaTeX commands (like
5615 `\cite{Coffee}`), can be used without any further escaping (Albert
5618 * Textile reader and writer:
5620 + The `raw_tex` extension is no longer set by default. You can
5621 enable it with `textile+raw_tex`.
5625 + Support `equation`, `informalequation`, `inlineequation` elements with
5626 `mml:math` content. This is converted into LaTeX and put into a Pandoc
5629 * Revised `plain` output, largely following the style of Project
5632 + Emphasis is rendered with `_underscores_`, strong emphasis
5634 + Headings are rendered differently, with space to set them off,
5635 not with setext style underlines. Level 1 headers are ALL CAPS.
5636 + Math is rendered using unicode when possible, but without the
5637 distracting emphasis markers around variables.
5638 + Footnotes use a regular `[n]` style.
5642 + Horizontal rules are now a line across the whole page.
5643 + Prettier pipe tables. Columns are now aligned (#1323).
5644 + Respect the `raw_html` extension. `pandoc -t markdown-raw_html`
5645 no longer emits any raw HTML, including span and div tags
5646 generated by Span and Div elements.
5647 + Use span with style for `SmallCaps` (#1360).
5651 + Autolinks now have class `uri`, and email autolinks have class
5652 `email`, so they can be styled.
5656 + Document formatting is carried over from `reference.docx`.
5657 This includes margins, page size, page orientation, header,
5658 and footer, including images in headers and footers.
5659 + Include abstract (if present) with `Abstract` style (#1451).
5660 + Include subtitle (if present) with `Subtitle` style, rather
5661 than tacking it on to the title (#1451).
5665 + Write empty span elements with an id attribute as org anchors.
5666 For example `Span ("uid",[],[]) []` becomes `<<uid>>`.
5670 + Put table captions above tables, to match the conventional
5671 standard. (Previously they appeared below tables.)
5672 + Use `\(..\)` instead of `$..$` for inline math (#1464).
5673 + Use `\nolinkurl` in email autolinks. This allows them to be styled
5674 using `\urlstyle{tt}`. Thanks to Ulrike Fischer for the solution.
5675 + Use `\textquotesingle` for `'` in inline code. Otherwise we get
5676 curly quotes in the PDF output (#1364).
5677 + Use `\footnote<.>{..}` for notes in beamer, so that footnotes
5678 do not appear before the overlays in which their markers appear
5680 + Don't produce a `\label{..}` for a Div or Span element. Do produce
5681 a `\hyperdef{..}` (#1519).
5685 + If the metadata includes `page-progression-direction` (which can be
5686 `ltr` or `rtl`, the `page-progression-direction` attribute will
5687 be set in the EPUB spine (#1455).
5689 * Custom lua writers:
5691 + Custom writers now work with `--template`.
5692 + Removed HTML header scaffolding from `sample.lua`.
5693 + Made citation information available in lua writers.
5695 * `--normalize` and `Text.Pandoc.Shared.normalize` now consolidate
5696 adjacent `RawBlock`s when possible.
5700 * Added `Text.Pandoc.Readers.Docx`, exporting `readDocx` (Jesse Rosenthal).
5702 * Added `Text.Pandoc.Readers.EPUB`, exporting `readEPUB` (Matthew
5705 * Added `Text.Pandoc.Readers.Txt2Tags`, exporting `readTxt2Tags` (Matthew
5708 * Added `Text.Pandoc.Writers.DokuWiki`, exporting `writeDokuWiki`
5711 * Added `Text.Pandoc.Writers.Haddock`, exporting `writeHaddock`.
5713 * Added `Text.Pandoc.MediaBag`, exporting `MediaBag`, `lookupMedia`,
5714 `insertMedia`, `mediaDirectory`, `extractMediaBag`. The docx and epub
5715 readers return a pair of a `Pandoc` document and a `MediaBag` with
5716 the media resources they contain. This can be extracted using
5717 `--extract-media`. Writers that incorporate media (PDF, Docx,
5718 ODT, EPUB, RTF, or HTML formats with `--self-contained`) will look
5719 for resources in the `MediaBag` generated by the reader, in addition to
5720 the file system or web.
5722 * `Text.Pandoc.Readers.TexMath`: Removed deprecated `readTeXMath`.
5723 Renamed `readTeXMath'` to `texMathToInlines`.
5725 * `Text.Pandoc`: Added `Reader` data type (Matthew Pickering).
5726 `readers` now associates names of readers with `Reader`
5727 structures. This allows inclusion of readers, like the docx
5728 reader, that take binary rather than textual input.
5730 * `Text.Pandoc.Shared`:
5732 + Added `capitalize` (Artyom Kazak), and replaced uses of
5733 `map toUpper` (which give bad results for many languages).
5734 + Added `collapseFilePath`, which removes intermediate `.` and
5735 `..` from a path (Matthew Pickering).
5736 + Added `fetchItem'`, which works like `fetchItem` but searches
5737 a `MediaBag` before looking on the net or file system.
5738 + Added `withTempDir`.
5739 + Added `removeFormatting`.
5740 + Added `extractSpaces` (from HTML reader) and generalized its type
5741 so that it can be used by the docx reader (Matthew Pickering).
5743 + Added `normalizeInlines`, `normalizeBlocks`.
5744 + `normalize` is now `Pandoc -> Pandoc` instead of
5745 `Data a :: a -> a`. Some users may need to change their uses of
5746 `normalize` to the newly exported `normalizeInlines` or
5749 * `Text.Pandoc.Options`:
5751 + Added `writerMediaBag` to `WriterOptions`.
5752 + Removed deprecated and no longer used `readerStrict` in
5753 `ReaderOptions`. This is handled by `readerExtensions` now.
5754 + Added `Ext_compact_definition_lists`.
5755 + Added `Ext_epub_html_exts`.
5756 + Added `Ext_native_divs` and `Ext_native_spans`.
5757 This allows users to turn off the default pandoc behavior of
5758 parsing contents of div and span tags in markdown and HTML
5759 as native pandoc Div blocks and Span inlines.
5761 * `Text.Pandoc.Parsing`:
5763 + Generalized `readWith` to `readWithM` (Matthew Pickering).
5764 + Export `runParserT` and `Stream` (Matthew Pickering).
5765 + Added `HasQuoteContext` type class (Matthew Pickering).
5766 + Generalized types of `mathInline`, `smartPunctuation`, `quoted`,
5767 `singleQuoted`, `doubleQuoted`, `failIfInQuoteContext`,
5768 `applyMacros` (Matthew Pickering).
5769 + Added custom `token` (Matthew Pickering).
5770 + Added `stateInHtmlBlock` to `ParserState`. This is used to keep
5771 track of the ending tag we're waiting for when we're parsing inside
5773 + Added `stateMarkdownAttribute` to `ParserState`. This is used
5774 to keep track of whether the markdown attribute has been set in
5776 + Generalized type of `registerHeader`, using new type classes
5777 `HasReaderOptions`, `HasIdentifierList`, `HasHeaderMap` (Matthew
5778 Pickering). These allow certain common functions to be reused
5779 even in parsers that use custom state (instead of `ParserState`),
5780 such as the MediaWiki reader.
5781 + Moved `inlineMath`, `displayMath` from Markdown reader to Parsing,
5782 and generalized their types (Matthew Pickering).
5784 * `Text.Pandoc.Pretty`:
5787 + Added `blanklines`, which guarantees a certain number of blank lines
5794 + Fixed parsing of indented code in list items. Indented code
5795 at the beginning of a list item must be indented eight spaces
5796 from the margin (or edge of the container), or four spaces
5797 from the list marker, whichever is greater.
5798 + Fixed small bug in HTML parsing with `markdown_attribute`, which
5799 caused incorrect tag nesting for input like
5800 `<aside markdown="1">*hi*</aside>`.
5801 + Fixed regression with intraword underscores (#1121).
5802 + Improved parsing of inline links containing quote characters (#1534).
5803 + Slight rewrite of `enclosure`/`emphOrStrong` code.
5804 + Revamped raw HTML block parsing in markdown (#1330).
5805 We no longer include trailing spaces and newlines in the
5806 raw blocks. We look for closing tags for elements (but without
5807 backtracking). Each block-level tag is its own `RawBlock`;
5808 we no longer try to consolidate them (though `--normalize` will do so).
5809 + Combine consecutive latex environments. This helps when you have
5810 two minipages which can't have blank lines between them (#690, #1196).
5811 + Support smallcaps through span.
5812 `<span style="font-variant:small-caps;">foo</span>` will be
5813 parsed as a `SmallCaps` inline, and will work in all output
5814 formats that support small caps (#1360).
5815 + Prevent spurious line breaks after list items (#1137). When the
5816 `hard_line_breaks` option was specified, pandoc would formerly
5817 produce a spurious line break after a tight list item.
5818 + Fixed table parsing bug (#1333).
5819 + Handle `c++` and `objective-c` as language identifiers in
5820 github-style fenced blocks (#1318).
5821 + Inline math must have nonspace before final `$` (#1313).
5825 + Handle comments at the end of tables. This resolves the issue
5826 illustrated in <http://stackoverflow.com/questions/24009489>.
5827 + Correctly handle table rows with too few cells. LaTeX seems to
5828 treat them as if they have empty cells at the end (#241).
5829 + Handle leading/trailing spaces in `\emph` better.
5830 `\emph{ hi }` gets parsed as `[Space, Emph [Str "hi"], Space]`
5831 so that we don't get things like `* hi *` in markdown output.
5832 Also applies to `\textbf` and some other constructions (#1146).
5833 + Don't assume preamble doesn't contain environments (#1338).
5834 + Allow (and discard) optional argument for `\caption` (James Aspnes).
5838 + Fixed major parsing problem with HTML tables. Table cells were
5839 being combined into one cell (#1341).
5840 + Fixed performance issue with malformed HTML tables.
5841 We let a `</table>` tag close an open `<tr>` or `<td>` (#1167).
5842 + Allow space between `<col>` and `</col>`.
5843 + Added `audio` and `source` in `eitherBlockOrInline`.
5844 + Moved `video`, `svg`, `progress`, `script`, `noscript`, `svg` from
5845 `blockTags` to `eitherBlockOrInline`.
5846 + `map` and `object` were mistakenly in both lists; they have been removed
5848 + Ignore `DOCTYPE` and `xml` declarations.
5852 + Don't parse backslash escapes inside `<source>` (#1445).
5853 + Tightened up template parsing.
5854 The opening `{{` must be followed by an alphanumeric or `:`.
5855 This prevents the exponential slowdown in #1033.
5856 + Support "Bild" for images.
5860 + Better handle elements inside code environments. Pandoc's document
5861 model does not allow structure inside code blocks, but at least this way
5862 we preserve the text (#1449).
5863 + Support `<?asciidoc-br?>` (#1236).
5867 + Fixed list parsing. Lists can now start without an intervening
5869 + HTML block-level tags that do not start a line are parsed as
5870 inline HTML and do not interrupt paragraphs (as in RedCloth).
5874 + Make tildes create inline code (#1345). Also relabeled `code` and
5875 `verbatim` parsers to accord with the org-mode manual.
5876 + Respect `:exports` header argument in code blocks (Craig Bosma).
5877 + Fixed tight lists with sublists (#1437).
5881 + Avoid excess whitespace in `nav.xhtml`. This should improve
5882 TOC view in iBooks (#1392).
5883 + Fixed regression on cover image.
5884 In 1.12.4 and 1.12.4.2, the cover image would not appear properly,
5885 because the metadata id was not correct. Now we derive the id from the
5886 actual cover image filename, which we preserve rather than using
5888 + Keep newlines between block elements. This allows
5889 easier diff-ability (#1424).
5890 + Use `stringify` instead of custom `plainify`.
5891 + Use `renderTags'` for all tag rendering. This properly handles tags
5892 that should be self-closing. Previously `<hr/>` would appear in EPUB
5893 output as `<hr></hr>` (#1420).
5894 + Better handle HTML media tags.
5895 + Handle multiple dates with OPF `event` attributes. Note: in EPUB3 we
5896 can have only one dc:date, so only the first one is used.
5900 + Correctly handle figures in notes. Notes can't contain figures in
5901 LaTeX, so we fake it to avoid an error (#1053).
5902 + Fixed strikeout + highlighted code (#1294).
5903 Previously strikeout highlighted code caused an error.
5907 + Improved detection of autolinks with URLs containing escapes.
5911 + Improved image embedding: `fetchItem'` is now used to get the
5912 images, and calculated image sizes are indicated in the RTF.
5913 + Avoid extra paragraph tags in metadata (#1421).
5917 + Deactivate "incremental" inside slide speaker notes (#1394).
5918 + Don't include empty items in the table of contents for
5919 slide shows. (These would result from creating a slide
5920 using a horizontal rule.)
5924 + Minor renaming of `st` prefixed names.
5928 + Double up emphasis and strong emphasis markers in intraword
5929 contexts, as required by asciidoc (#1441).
5933 + Avoid wrapping that might start a list, blockquote, or header (#1013).
5934 + Use Span instead of (hackish) `SmallCaps` in `plainify`.
5935 + Don't use braced attributes for fenced code (#1416).
5936 If `Ext_fenced_code_attributes` is not set, the first class
5937 attribute will be printed after the opening fence as a bare word.
5938 + Separate adjacent lists of the same kind with an HTML comment (#1458).
5942 + Fixed treatment of data uris for images (#1062).
5946 + Use Compact style for empty table cells (#1353).
5947 Otherwise we get overly tall lines when there are empty
5948 table cells and the other cells are compact.
5949 + Create overrides per-image for `media/` in reference docx.
5950 This should be somewhat more robust and cover more types of images.
5951 + Improved `entryFromArchive` to avoid an unneeded parse.
5952 + Section numbering carries over from reference.docx (#1305).
5953 + Simplified `abstractNumId` numbering. Instead of sequential numbering,
5954 we assign numbers based on the list marker styles.
5956 * `Text.Pandoc.Options`:
5958 + Removed `Ext_fenced_code_attributes` from `markdown_github`
5961 * `Text.Pandoc.ImageSize`:
5963 + Use default instead of failing if image size not found
5964 in exif header (#1358).
5965 + ignore unknown exif header tag rather than crashing.
5966 Some images seem to have tag type of 256, which was causing
5969 * `Text.Pandoc.Shared`:
5971 + `fetchItem`: unescape URI encoding before reading local file (#1427).
5972 + `fetchItem`: strip a fragment like `?#iefix` from the extension before
5973 doing mime lookup, to improve mime type guessing.
5974 + Improved logic of `fetchItem`: absolute URIs are fetched from the net;
5975 other things are treated as relative URIs if `sourceURL` is `Just _`,
5976 otherwise as file paths on the local file system.
5977 + `fetchItem` now properly handles links without a protocol (#1477).
5978 + `fetchItem` now escapes characters not allowed in URIs before trying
5980 + Fixed runtime error with `compactify'DL` on certain lists (#1452).
5982 * `pandoc.hs`: Don't strip path off of `writerSourceURL`: the path is
5983 needed to resolve relative URLs when we fetch resources (#750).
5985 * `Text.Pandoc.Parsing`
5987 + Simplified `dash` and `ellipsis` (#1419).
5988 + Removed `(>>~)` in favor of the equivalent `(<*)` (Matthew Pickering).
5989 + Generalized functions to use `ParsecT` (Matthew Pickering).
5990 + Added `isbn` and `pmid` to list of recognized schemes (Matthew
5995 * Added haddock template.
5996 * EPUB3: Added `type` attribute to `link` tags. They are supposed to
5997 be "advisory" in HTML5, but kindlegen seems to require them.
5998 * EPUB3: Put title page in section with `epub:type="titlepage"`.
5999 * LaTeX: Made `\subtitle` work properly (#1327).
6000 * LaTeX/Beamer: remove conditional around date (#1321).
6001 * LaTeX: Added `lot` and `lof` variables, which can be set to
6002 get `\listoftables` and `\listoffigures` (#1407). Note that
6003 these variables can be set at the command line with `-Vlot -Vlof`
6004 or in YAML metadata.
6006 [under the hood improvements]
6008 * Rewrote normalize for efficiency (#1385).
6010 * Rewrote Haddock reader to use `haddock-library` (#1346).
6012 + This brings pandoc's rendering of haddock markup in line
6013 with the new haddock.
6014 + Fixed line breaks in `@` code blocks.
6015 + alex and happy are no longer build-depends.
6017 * Added `Text.Pandoc.Compat.Directory` to allow building against
6018 different versions of the `directory` library.
6020 + Added `Text.Pandoc.Compat.Except` to allow building against
6021 different verions of `mtl`.
6023 * Code cleanup in some writers, using Reader monad to avoid
6024 passing options parameter around (Matej Kollar).
6026 * Improved readability in `pandoc.hs`.
6028 * Miscellaneous code cleanups (Artyom Kazak).
6030 * Avoid `import Prelude hiding (catch)` (#1309, thanks to Michael
6033 * Changed `http-conduit` flag to `https`. Depend on `http-client`
6034 and `http-client-tls` instead of `http-conduit`. (Note: pandoc still
6035 depends on `conduit` via `yaml`.)
6037 * Require `highlighting-kate >= 0.5.8.5` (#1271, #1317, Debian #753299).
6038 This change to highlighting-kate means that PHP fragments no longer need
6039 to start with `<?php`. It also fixes a serious bug causing failures with
6042 * Require latest `texmath`. This fixes `\tilde{E}` and allows
6043 `\left` to be used with `]`, `)` etc. (#1319), among many other
6046 * Require latest `zip-archive`. This has fixes for unicode path names.
6048 * Added tests for plain writer.
6050 * `Text.Pandoc.Templates`:
6052 + Fail informatively on template syntax errors.
6053 With the move from parsec to attoparsec, we lost good error
6054 reporting. In fact, since we weren't testing for end of input,
6055 malformed templates would fail silently. Here we revert back to
6056 Parsec for better error messages.
6057 + Use `ordNub` (#1022).
6061 + Made benchmarks compile again (Artyom Kazak).
6062 + Fixed so that the failure of one benchmark does not prevent others
6063 from running (Artyom Kazak).
6064 + Use `nfIO` instead of the `getLength` trick to force full evaluation.
6065 + Changed benchmark to use only the test suite, so that benchmarks
6068 * Windows build script:
6070 + Add `-windows` to file name.
6071 + Use one install command for pandoc, pandoc-citeproc.
6072 + Force install of pandoc-citeproc.
6074 * `make_osx_package`: Call zip file `pandoc-VERSION-osx.zip`.
6075 The zip should not be named `SOMETHING.pkg.zip`, or OSX finder
6076 will extract it into a folder named `SOMETHING.pkg`, which it
6077 will interpret as a defective package (#1308).
6081 + Made headers for all extensions so they have IDs and can be
6082 linked to (Beni Cherniavsky-Paskin).
6083 + Fixed typos (Phillip Alday).
6084 + Fixed documentation of attributes (#1315).
6085 + Clarified documentation on small caps (#1360).
6086 + Better documentation for `fenced_code_attributes` extension
6088 + Documented fact that you can put YAML metadata in a separate file
6094 * Require highlighting-kate >= 0.5.8. Fixes a performance regression.
6096 * Shared: `addMetaValue` now behaves slightly differently:
6097 if both the new and old values are lists, it concatenates their
6098 contents to form a new list.
6102 + Set `bibliography` in metadata from `\bibliography` or
6103 `\addbibresource` command.
6104 + Don't error on `%foo` with no trailing newline.
6108 + Support code block headers (`#+BEGIN_SRC ...`) (Albert Krewinkel).
6109 + Fix parsing of blank lines within blocks (Albert Krewinkel).
6110 + Support pandoc citation extension (Albert Krewinkel). This can
6111 be turned off by specifying `org-citations` as the input format.
6115 + `citeKey` moved to `Text.Pandoc.Parsing` so it can be used by
6116 other readers (Albert Krewinkel).
6118 * `Text.Pandoc.Parsing`:
6120 + Added `citeKey` (see above).
6121 + Added `HasLastStrPosition` type class and `updateLastStrPos`
6122 and `notAfterString` functions.
6124 * Updated copyright notices (Albert Krewinkel).
6126 * Added default.icml to data files so it installs with the package.
6130 + The binary is now built with options to ensure that it can be
6131 used with OSX 10.6+.
6132 + Moved OSX package materials to osx directory.
6133 + Added OSX package uninstall script, included in the zip container
6134 (thanks to Daniel T. Staal).
6138 * Made it possible to run filters that aren't executable (#1096).
6139 Pandoc first tries to find the executable (searching the path
6140 if path isn't given). If it fails, but the file exists and has
6141 a `.py`, `.pl`, `.rb`, `.hs`, or `.php` extension, pandoc runs the filter
6142 using the appropriate interpreter. This should make it easier to
6143 use filters on Windows, and make it more convenient for everyone.
6145 * Added Emacs org-mode reader (Albert Krewinkel).
6147 * Added InDesign ICML Writer (Mauro Bieg).
6151 + Accept image links in more languages (Jaime Marquínez Ferrándiz).
6152 + Fixed bug in certain nested lists (#1213). If a level 2 list was
6153 followed by a level 1 list, the first item of the level 1 list
6155 + Handle table rows containing just an HTML comment (#1230).
6159 + Give better location information on errors, pointing to line
6160 numbers within included files (#1274).
6161 + LaTeX reader: Better handling of `table` environment (#1204).
6162 Positioning options no longer rendered verbatim.
6163 + Better handling of figure and table with caption (#1204).
6164 + Handle `@{}` and `p{length}` in tabular. The length is not actually
6165 recorded, but at least we get a table (#1180).
6166 + Properly handle `\nocite`. It now adds a `nocite` metadata
6167 field. Citations there will appear in the bibliography but not
6168 in the text (unless you explicitly put a `$nocite$` variable
6173 + Ensure that whole numbers in YAML metadata are rendered without
6174 decimal points. (This became necessary with changes to aeson
6175 and yaml libraries. aeson >= 0.7 and yaml >= 0.8.8.2 are now required.)
6176 + Fixed regression on line breaks in strict mode (#1203).
6177 + Small efficiency improvements.
6178 + Improved parsing of nested `div`s. Formerly a closing `div` tag
6179 would be missed if it came right after other block-level tags.
6180 + Avoid backtracking when closing `</div>` not found.
6181 + Fixed bug in reference link parsing in `markdown_mmd`.
6182 + Fixed a bug in list parsing (#1154). When reading a raw list
6183 item, we now strip off up to 4 spaces.
6184 + Fixed parsing of empty reference link definitions (#1186).
6185 + Made one-column pipe tables work (#1218).
6189 + Better support for attributes. Instead of being ignored, attributes
6190 are now parsed and included in Span inlines. The output will be a bit
6191 different from stock textile: e.g. for `*(foo)hi*`, we'll get
6192 `<em><span class="foo">hi</span></em>` instead of
6193 `<em class="foo">hi</em>`. But at least the data is not lost.
6194 + Improved treatment of HTML spans (%) (#1115).
6195 + Improved link parsing. In particular we now pick up on attributes.
6196 Since pandoc links can't have attributes, we enclose the whole link in
6197 a span if there are attributes (#1008).
6198 + Implemented correct parsing rules for inline markup (#1175, Matthew
6200 + Use Builder (Matthew Pickering).
6201 + Fixed list parsing bug (#1500).
6202 + Don't allow inline formatting to extend over newlines.
6203 This matches the behavior of RedCarpet, avoids some ugly bugs,
6204 and improves performance.
6208 + Better treatment of `formalpara`. We now emit the title (if present)
6209 as a separate paragraph with boldface text (#1215).
6210 + Set metadata `author` not `authors`.
6211 + Added recognition of `authorgroup` and `releaseinfo` elements (#1214,
6213 + Converted current meta information parsing in DocBook to a more
6214 extensible version which is aware of the more recent meta
6215 representation (Matthew Pickering).
6219 + Require tagsoup 0.13.1, to fix a bug with parsing of script tags
6221 + Treat processing instructions & declarations as block. Previously
6222 these were treated as inline, and included in paragraph tags in HTML
6223 or DocBook output, which is generally not what is wanted (#1233).
6224 + Updated `closes` with rules from HTML5 spec.
6225 + Use Builder (Matthew Pickering, #1162).
6229 + Remove duplicate `http` in PEP links (Albert Krewinkel).
6230 + Make rst figures true figures (#1168, CasperVector)
6231 + Enhanced Pandoc's support for rST roles (Merijn Verstaaten).
6232 rST parser now supports: all built-in rST roles, new role definition,
6233 role inheritance, though with some limitations.
6234 + Use `author` rather than `authors` in metadata.
6235 + Better handling of directives. We now correctly handle field
6236 lists that are indented more than three spaces. We treat an
6237 `aafig` directive as a code block with attributes, so it can be
6238 processed in a filter (#1212).
6242 + Mark span contents with label if span has an ID (Albert Krewinkel).
6243 + Made `--toc-depth` work well with books in latex/pdf output (#1210).
6244 + Handle line breaks in simple table cells (#1217).
6245 + Workaround for level 4-5 headers in quotes. These previously produced
6246 invalid LaTeX: `\paragraph` or `\subparagraph` in a `quote` environment.
6247 This adds an `mbox{}` in these contexts to work around the problem.
6248 See <http://tex.stackexchange.com/a/169833/22451> (#1221).
6249 + Use `\/` to avoid en-dash ligature instead of `-{}-` (Vaclav Zeman).
6250 This is to fix LuaLaTeX output. The `-{}-` sequence does not avoid the
6251 ligature with LuaLaTeX but `\/` does.
6252 + Fixed string escaping in `hyperref` and `hyperdef` (#1130).
6254 * ConTeXt writer: Improved autolinks (#1270).
6258 + Improve handling of hard line breaks in Docbook writer
6259 (Neil Mayhew). Use a `<literallayout>` for the entire paragraph, not
6260 just for the newline character.
6261 + Don't let line breaks inside footnotes influence the enclosing
6262 paragraph (Neil Mayhew).
6263 + Distinguish tight and loose lists in DocBook output, using
6264 `spacing="compact"` (Neil Mayhew, #1250).
6266 * Docx writer: When needed files are not present in the user's
6267 `reference.docx`, fall back on the versions in the `reference.docx`
6268 in pandoc's data files. This fixes a bug that occurs when a
6269 `reference.docx` saved by LibreOffice is used. (#1185)
6273 + Include extension in epub ids. This fixes a problem with duplicate
6274 extensions for fonts and images with the same base name but different
6276 + Handle files linked in raw `img` tags (#1170).
6277 + Handle media in `audio` source tags (#1170).
6278 Note that we now use a `media` directory rather than `images`.
6279 + Incorporate files linked in `video` tags (#1170). `src` and `poster`
6280 will both be incorporated into `content.opf` and the epub container.
6284 + Add colgroup around col tags (#877). Also affects EPUB writer.
6285 + Fixed bug with unnumbered section headings. Unnumbered section
6286 headings (with class `unnumbered`) were getting numbers.
6287 + Improved detection of image links. Previously image links with
6288 queries were not recognized, causing `<embed>` to be used instead
6291 * Man writer: Ensure that terms in definition lists aren't line wrapped
6296 + Use proper escapes to avoid unwanted lists (#980). Previously we used
6297 0-width spaces, an ugly hack.
6298 + Use longer backtick fences if needed (#1206). If the content contains a
6299 backtick fence and there are attributes, make sure longer fences are
6300 used to delimit the code. Note: This works well in pandoc, but github
6301 markdown is more limited, and will interpret the first string of three
6302 or more backticks as ending the code block.
6304 * RST writer: Avoid stack overflow with certain tables (#1197).
6306 * RTF writer: Fixed table cells containing paragraphs.
6310 + Correctly handle UTF-8 in custom lua scripts (#1189).
6311 + Fix bugs with lua scripts with mixed-case filenames and
6312 paths containing `+` or `-` (#1267). Note that `getWriter`
6313 in `Text.Pandoc` no longer returns a custom writer on input
6316 * AsciiDoc writer: Handle multiblock and empty table cells
6317 (#1245, #1246). Added tests.
6319 * `Text.Pandoc.Options`: Added `readerTrace` to `ReaderOptions`
6321 * `Text.Pandoc.Shared`:
6323 + Added `compactify'DL` (formerly in markdown reader) (Albert Krewinkel).
6324 + Fixed bug in `toRomanNumeral`: numbers ending with '9' would
6325 be rendered as Roman numerals ending with 'IXIV' (#1249). Thanks to
6327 + `openURL`: set proxy with value of http_proxy env variable (#1211).
6328 Note: proxies with non-root paths are not supported, due to
6329 limitations in `http-conduit`.
6331 * `Text.Pandoc.PDF`:
6333 + Ensure that temp directories deleted on Windows (#1192). The PDF is
6334 now read as a strict bytestring, ensuring that process ownership will
6335 be terminated, so the temp directory can be deleted.
6336 + Use `/` as path separators in a few places, even on Windows.
6337 This seems to be necessary for texlive (#1151, thanks to Tim Lin).
6338 + Use `;` for `TEXINPUTS` separator on Windows (#1151).
6339 + Changes to error reporting, to handle non-UTF8 error output.
6341 * `Text.Pandoc.Templates`:
6343 + Removed unneeded datatype context (Merijn Verstraaten).
6345 + YAML objects resolve to "true" in conditionals (#1133).
6346 Note: If `address` is a YAML object and you just have `$address$`
6347 in your template, the word `true` will appear, which may be
6348 unexpected. (Previously nothing would appear.)
6350 * `Text.Pandoc.SelfContained`:
6352 + `mkSelfContained` now takes just two arguments, `WriterOptions` and
6354 * It no longer looks in data files. This only made sense when we
6355 had copies of slidy and S5 code there.
6356 * `fetchItem'` is used instead of the nearly duplicate `getItem`.
6357 + Handle `poster` attribute in `video` tags (#1188).
6359 * `Text.Pandoc.Parsing`:
6361 + Made `F` an instance of Applicative (#1138).
6362 + Added `stateCaption`.
6363 + Added `HasMacros`, simplified other typeclasses.
6364 Removed `updateHeaderMap`, `setHeaderMap`, `getHeaderMap`,
6365 `updateIdentifierList`, `setIdentifierList`, `getIdentifierList`.
6366 + Changed the smart punctuation parser to return `Inlines`
6367 rather than `Inline` (Matthew Pickering).
6368 + Changed `HasReaderOptions`, `HasHeaderMap`, `HasIdentifierList`
6369 from typeclasses of monads to typeclasses of states. This simplifies
6370 the instance definitions and provides more flexibility. Generalized
6371 type of `getOption` and added a default definition. Removed
6372 `askReaderOption`. Added `extractReaderOption`. Added
6373 `extractHeaderMap` and `updateHeaderMap` in `HasHeaderMap`.
6374 Gave default definitions for `getHeaderMap`, `putHeaderMap`,
6375 `modifyHeaderMap`. Added `extractIdentifierList` and
6376 `updateIdentifierList` in `HasIdentifierList`. Gave defaults
6377 for `getIdentifierList`, `putIdentifierList`, and
6378 `modifyIdentifierList`. The ultimate goal here is to allow different
6379 parsers to use their own, tailored parser states (instead of
6380 `ParserState`) while still using shared functions.
6384 + LaTeX template: Use `fontenc` package only with `pdflatex` (#1164).
6385 + LaTeX template: Add `linestretch` and `fontfamily` variables.
6386 + LaTeX template: Conditionalize author and date commands.
6387 + Beamer template: Consistent styles for figure and table captions
6389 + LaTeX and beamer template: Adjust widths correctly for oversized
6390 images. Use `\setkeys{Gin}{}` to set appropriate defaults for
6391 `\includegraphics` (Yihui Xie, Garrick Aden-Buie). Load
6392 `upquote` only after `fontenc` (Yihui Xie).
6393 + Beamer template: Added caption package (#1200).
6394 + Beamer template: changes for better unicode handling (KarolS).
6395 + DocBook template: use `authorgroup` if there are authors.
6396 + revealjs template: Move `include-after` to end (certainlyakey).
6397 + revealjs template: Fixed PDF print function (#1220, kevinkenan).
6399 * Bumped version bounds of dependencies.
6401 * Added a `--trace` command line option, for debugging backtracking
6402 bugs. So far this only works with the markdown reader.
6404 * MathMLinHTML: Fixed deprecation warning (#362, gwern, Albert Krewinkel).
6406 * Updated travis script to test with multiple GHC versions.
6408 * Force failure of a Travis build if GHC produces warnings (Albert
6411 * Add `.editorconfig` (Albert Krewinkel).
6412 See <http://editorconfig.org/> for details.
6414 * Give more useful error message if '-t pdf' is specified (#1155).
6416 * Added `Cite`, `SmallCaps` to `Arbitrary` instance (#1269).
6418 * Allow `html4` as a synonym of `html` as a reader (it already works
6423 + Added an explanation of how to use YAML metadata to
6424 force items to appear in the bibliography without citations in
6425 the text (like LaTeX `\nocite`).
6426 + Added note to `--bibtex/--natbib`: not for use in making PDF
6427 (#1194, thanks to nahoj).
6428 + Added explanatory notes about `--natbib` and `--biblatex`.
6429 + Added specification of legal syntax for citation keys.
6430 + Fixed variable defaults documentation (Albert Krewinkel).
6432 * Removed copyright statements for files that have been removed
6435 * Moved some doc files from `data-files` to `extra-source-files` (#1123).
6436 They aren't needed at runtime. We keep README and COPYRIGHT in data
6437 to ensure that they'll be available on all systems on which pandoc
6440 * Use cabal sandboxes in Windows build script.
6444 * To changes to source; recompiled tarball with latest alex and
6445 happy, so they will work with GHC 7.8.
6449 * Bumped version bounds for blaze-html, blaze-markup.
6451 * ImageSize: Avoid use of lookAhead, which is not in binary >= 0.6
6454 * Fixed mediawiki ordered list parsing (#1122).
6456 * HTML reader: Fixed bug reading inline math with `$$` (#225).
6458 * Added support for LaTeX style literate Haskell code blocks in rST
6459 (Merijn Verstraaten).
6463 * Relaxed version constraint on binary, allowing the use of binary 0.5.
6467 * The `--bibliography` option now sets the `biblio-files` variable.
6468 So, if you're using `--natbib` or `--biblatex`, you can just use
6469 `--bibliography=foo.bib` instead of `-V bibliofiles=foo`.
6471 * Don't run pandoc-citeproc filter if `--bibliography` is
6472 used together with `--natbib` or `--biblatex` (Florian Eitel).
6476 + Updated beamer template to include booktabs.
6477 + Added `abstract` variable to LaTeX template.
6478 + Put `header-includes` after `title` in LaTeX template (#908).
6479 + Allow use of `\includegraphics[size]` in beamer.
6480 This just required porting a macro definition from the default
6481 LaTeX template to the default beamer template.
6483 * `reference.docx`: Include `FootnoteText` style.
6484 Otherwise Word ignores the style, even when specified in the `pPr`.
6487 * `reference.odt`: Tidied `styles.xml`.
6489 * Relaxed version bounds for dependencies.
6491 * Added `withSocketsDo` around http conduit code in `openURL`,
6492 so it works on Windows (#1080).
6494 * Added `Cite` function to `sample.lua`.
6498 + Fixed regression in title blocks (#1089).
6499 If author field was empty, date was being ignored.
6500 + Allow backslash-newline hard line breaks in grid and
6501 multiline table cells.
6502 + Citation keys may now start with underscores, and may contain
6503 underscores adjacent to internal punctuation.
6507 + Add support for `Verb` macro (jrnold) (#1090).
6508 + Support babel-style quoting: `` "`..."' ``.
6510 * Properly handle script blocks in strict mode. (That is,
6511 `markdown-markdown_in_html_blocks`.) Previously a spurious
6512 `<p>` tag was being added (#1093).
6514 * Docbook reader: Avoid failure if `tbody` contains no `tr` or `row`
6519 + Factored out function for table cell creation.
6520 + Better treatment of footnotes in tables.
6521 Notes now appear in the regular sequence, rather than in the
6522 table cell. (This was a regression in 1.10.)
6524 * HTML reader: Parse name/content pairs from meta tags as metadata.
6527 * Moved `fixDisplayMath` from Docx writer to `Writer.Shared`.
6529 * OpenDocument writer: Fixed `RawInline`, `RawBlock` so they don't escape.
6531 * ODT writer: Use mathml for proper rendering of formulas.
6532 Note: LibreOffice's support for this seems a bit buggy. But
6533 it should be better than what we had before.
6535 * RST writer: Ensure no blank line after def in definition list (#992).
6537 * Markdown writer: Don't use tilde code blocks with braced attributes in
6538 `markdown_github` output. A consequence of this change is that the
6539 backtick form will be preferred in general if both are enabled. That
6540 is good, as it is much more widespread than the tilde form. (#1084)
6542 * Docx writer: Fixed problem with some modified reference docx files.
6543 Include `word/_rels/settings.xml.rels` if it exists, as well as other
6544 `rels` files besides the ones pandoc generates explicitly.
6548 + With `--toc`, headers no longer link to themselves (#1081).
6549 + Omit footnotes from TOC entries. Otherwise we get doubled
6550 footnotes when headers have notes!
6554 + Avoid duplicate notes when headings contain notes.
6555 This arose because the headings are copied into the metadata
6556 "title" field, and the note gets rendered twice. We strip the
6557 note now before putting the heading in "title".
6558 + Strip out footnotes from toc entries.
6559 + Fixed bug with `--epub-stylesheet`. Now the contents of
6560 `writerEpubStylesheet` (set by `--epub-stylesheet`)
6561 should again work, and take precedence over a stylesheet specified
6564 * `Text.Pandoc.MIME`: Added `wmf`, `emf`.
6566 * `Text.Pandoc.Shared`: `fetchItem` now handles image URLs beginning
6569 * `Text.Pandoc.ImageSize`: Parse EXIF format JPEGs. Previously
6570 we could only get size information for JFIF format, which led
6571 to squished images in Word documents. Closes #976.
6573 * Removed old `MarkdownTest_1.0.3` directory (#1104).
6577 * Markdown reader: Fixed regression in list parser, involving
6578 continuation lines containing raw HTML (or even verbatim raw HTML).
6582 * Metadata may now be included in YAML blocks in a markdown document.
6590 text: An investigation of metadata
6598 text: doi:10.234234.234/33
6600 rights: (c) 2007 John Smith, CC BY-NC
6601 cover-image: img/mypic.jpg
6604 Metadata may still be provided using `--epub-metadata`; it will
6605 be merged with the metadata in YAML blocks.
6609 + `meta` tags are now used instead of `opf` attributes for EPUB3.
6610 + Insert "svg" property as needed in opf (EPUB 3).
6611 + Simplify `imageTypeOf` using `getMimeType`.
6612 + Add properties attribute to `cover-image` item for EPUB 3.
6613 + Don't include node for `cover.xhtml` if no cover!
6614 + Ensure that same identifier is used throughout (#1044).
6615 If an identifier is given in metadata, we use that; otherwise
6616 we generate a random uuid.
6617 + Add cover reference to guide element (EPUB 2) (Shaun Attfield).
6618 Fixes an issue with Calibre putting the cover at the end of the book
6619 if the spine has `linear="no"`. Apparently this is best practice
6620 for other converters as well:
6621 <http://www.idpf.org/epub/20/spec/OPF_2.0.1_draft.htm#Section2.6>.
6622 + Allow `stylesheet` in metadata. The value is a path to the stylesheet.
6623 + Allow partial dates: `YYYY`, `YYYY-MM`.
6625 * Markdown writer: Fix rendering of tight sublists (#1050).
6626 Previously a spurious blank line was included after a tight sublist.
6628 * ODT writer: Add `draw:name` attribute to `draw:frame` elements (#1069).
6629 This is reported to be necessary to avoid an error from recent
6630 versions of Libre Office when files contain more than one image
6631 Thanks to wmanley for reporting and diagnosing the problem.
6633 * ConTeXt writer: Don't hardcode figure/table placement and numbering.
6634 Instead, let this be set in the template, using `\setupfloat`.
6635 Thanks to on4aa and Aditya Mahajan for the suggestion (#1067).
6637 * Implemented CSL flipflopping spans in DOCX, LaTeX, and HTML writers.
6639 * Fixed bug with markdown intraword emphasis. Closes #1066.
6641 * Docbook writer: Hierarchicalize block content in metadata.
6642 Previously headers just disappeared from block-level metadata
6643 when it was used in templates. Now we apply the 'hierarchicalize'
6644 transformation. Note that a block headed by a level-2 header will
6645 turn into a `<sect1>` element.
6647 * OpenDocument writer: Skip raw HTML (#1035).
6648 Previously it was erroneously included as verbatim text.
6650 * HTML/EPUB writer, footnotes: Put `<sup>` tag inside `<a>` tags.
6651 This allows better control of formatting, since the `<a>`
6652 tags have a distinguishing class (#1049).
6656 + Use mime type info returned by fetchItem.
6657 + Fixed core metadata (#1046).
6658 Don't create empty date nodes if no date given.
6659 Don't create multiple `dc:creator` nodes; instead separate by
6661 + Fix URL for core-properties in `_rels/.rels` (#1046).
6663 * Plain writer: don't print `<span>` tags.
6667 + Fix definition lists with internal links in terms (#1032).
6668 This fix puts braces around a term that contains an internal
6669 link, to avoid problems with square brackets.
6670 + Properly escape pdftitle, pdfauthor (#1059).
6671 + Use booktabs package for tables (thanks to Jose Luis Duran).
6673 * Updated beamer template. Now references should work properly
6674 (in a slide) when `--biblatex` or `--natbib` is used.
6678 + Parse contents of curly quotes or matched `"` as quotes.
6679 + Support `\textnormal` as span with class `nodecor`.
6680 This is needed for pandoc-citeproc.
6681 + Improved citation parsing. This fixes a run-time error that occured
6682 with `\citet{}` (empty list of keys). It also ensures that empty keys
6685 * MediaWiki reader: Add automatic header identifiers.
6689 + Use pandoc `Div` and `Span` for raw `<div>`, `<span>` when
6691 + Recognize `svg` tags as block level content (thanks to MinRK).
6692 + Parse LaTeX math if appropriate options are set.
6696 + Yaml block must start immediately after `---`. If there's a blank
6697 line after `---`, we interpreted it as a horizontal rule.
6698 + Correctly handle empty bullet list items.
6699 + Stop parsing "list lines" when we hit a block tag.
6700 This fixes exponential slowdown in certain input, e.g.
6701 a series of lists followed by `</div>`.
6703 * Slides: Preserve `<div class="references">` in references slide.
6705 * `Text.Pandoc.Writer.Shared`:
6707 + Fixed bug in `tagWithAttrs`. A space was omitted before key-value
6708 attributes, leading to invalid HTML.
6709 + `normalizeDate`: Allow dates with year only (thanks to Shaun Attfield).
6710 + Fixed bug in `openURL` with `data:` URIs. Previously the base-64
6711 encoded bytestring was returned. We now decode it so it's a proper
6714 * DocBook reader: Handle numerical attributes starting with decimal.
6715 Also use `safeRead` instead of `read`.
6717 * `Text.Pandoc.Readers.TexMath`: Export `readTeXMath'`, which attends
6718 to display/inline. Deprecate `readTeXMath`, and use `readTeXMath'`
6719 in all the writers. Require `texmath >= 0.6.5.2`.
6721 * `Text.Pandoc.MIME`:
6723 + Add entry for `jfif`.
6724 + In looking up extensions, drop the encoding info.
6725 E.g. for 'image/jpg;base64' we should lookup 'image/jpg'.
6727 * Templates: Changed how array variables are resolved. Previously if
6728 `foo` is an array (which might be because multiple values were set on
6729 the command line), `$foo$` would resolve to the concatenation of the
6730 elements of foo. This is rarely useful behavior. It has been changed
6731 so that the first value is rendered. Of course, you can still iterate
6732 over the values using `$for(foo)$`. This has the result that you can
6733 override earlier settings using `-V` by putting new values later on the
6734 command line, which is useful for many purposes.
6736 * `Text.Pandoc`: Don't default to `pandocExtensions` for all writers.
6738 * Allow "epub2" as synonym for "epub", "html4" for "html".
6740 * Don't look for slidy files in data files with `--self-contained`.
6742 * Allow `https:` command line arguments to be downloaded.
6744 * Fixed `make_osx_package.sh` so data files embedded in `pandoc-citeproc`.
6748 * `Text.Pandoc.Definition`: Changed default JSON serialization format.
6749 Instead of `{"Str": "foo"}`, for example, we now have `{"t": "Str",
6750 "c": "foo"}`. This new format is easier to work with outside of Haskell.
6751 Incidentally, "t" stands for "tag", "c" for "contents".
6753 * MediaWiki reader: Trim contents of `<math>` tags, to avoid problems
6754 when converting to markdown (#1027).
6758 + Ensure that preamble doesn't contribute to the text of
6760 + Fixed character escaping in \url{}. Previously `\~` wasn't handled
6761 properly, among others.
6762 + Parse `{groups}` as `Span`. This is needed for accurate conversion of
6763 bibtex titles, since we need to know what was protected from
6764 titlecase conversions.
6768 + Specially escape non-ascii characters in labels.
6769 Otherwise we can get compile errors and other bugs when
6770 compiled with pdflatex (#1007). Thanks to begemotv2718 for the fix.
6771 + Add link anchors for code blocks with identifiers (#1025).
6773 * Throughout the code, use `isURI` instead of `isAbsoluteURI`.
6774 It allows fragments identifiers.
6778 + A Div element with class "notes" is treated as speaker
6779 notes. Currently beamer goes to `\note{}`, revealjs to
6780 `<aside class="notes">`, and the notes are simply suppressed in
6781 other formats (#925).
6782 + Fixed `. . .` (pause) on HTML slide formats. Closes #1029.
6783 The old version caused a pause to be inserted before the first
6784 material on a slide. This has been fixed.
6785 + Removed data files for s5, slideous, slidy.
6786 Users of s5 and slideous will have to download the needed
6787 files, as has been documented for some time in the README.
6788 By default, slidy code will be sought on the web, as before.
6790 * HTML writer: Insert command to typeset mathjax only in slideous output
6793 * RST writer: Skip spaces after display math. Otherwise we get indentation
6794 problems, and part of the next paragraph may be rendered as part of the
6797 * OpenDocument writer: Fix formatting of strikeout code (#995),
6798 thanks to wilx. don't use `font-face-decls` variable.
6800 * Fixed test suite so it works with cabal sandboxes.
6804 * Removed `stringable` dependency.
6808 * Allow `--metadata` to be repeated for the same key to form a list.
6809 This also has the effect that `--bibliography` can be repeated,
6812 * Handle boolean values in `--metadata`. Note that anything not parseable
6813 as a YAML boolean or string is treated as a literal string.
6814 You can get a string value with "yes", or any of the strings interpretable
6815 as booleans, by quoting it:
6817 -M boolvalue=yes -M stringvalue='"yes"'
6819 * LaTeX writer: Don't print references if `--natbib` or `--biblatex`
6822 * DOCX writer: Add `settings.xml` to the zip container. Fixes a bug
6823 in which docx files could not be read by some versions of Word
6824 and LibreOffice (#990).
6826 * Fixed a regression involving slide shows with bibliographies.
6827 The Div container around references messed up the procedure for carving
6828 a document into slides. So we now remove the surrounding Div in
6831 * More informative error message when a filter is not found in path.
6833 * Depend on pandoc-types 1.12.1. This provide `ToJSONFilter`
6834 instances for `Data a => a -> [a]` and `Data a => a -> IO [a]`.
6836 * Don't use unicode_collation in building OSX package:
6837 it adds something like 50MB of dependencies to the package.
6839 * Declare alex and happy as build-tools (#986).
6845 * Much more flexible metadata, including arbitrary fields and structured
6846 values. Metadata can be specified flexibly in pandoc markdown using
6847 YAML metadata blocks, which may occur anywhere in the document:
6850 title: Here is my title.
6852 This is the abstract.
6858 tags: [cat, dog, animal]
6861 Metadata fields automatically populate template variables.
6863 * Added `opml` (OPML) as input and output format. The `_note` attribute,
6864 used in OmniOutliner and supported by multimarkdown, is supported.
6865 We treat the contents as markdown blocks under a section header.
6867 * Added `haddock` (Haddock markup) as input format (David Lazar).
6869 * Added `revealjs` output format, for reveal.js HTML 5 slide shows.
6870 (Thanks to Jamie F. Olson for the initial patch.)
6871 Nested vertical stacks are used for hierarchical structure.
6872 Results for more than one level of nesting may be odd.
6874 * Custom writers can now be written in lua.
6876 pandoc -t data/sample.lua
6878 will load the script sample.lua and use it as a custom writer.
6879 (For a sample, do `pandoc --print-default-data-file sample.lua`.)
6880 Note that pandoc embeds a lua interpreter, so lua need not be
6881 installed separately.
6883 * New `--filter/-F` option to make it easier to run "filters"
6884 (Pandoc AST transformations that operate on JSON serializations).
6885 Filters are always passed the name of the output format, so their
6886 behavior can be tailored to it. The repository
6887 <https://github.com/jgm/pandocfilters> contains
6888 a python module for writing pandoc filters in python, with
6889 a number of examples.
6891 * Added `--metadata/-M` option.
6892 This is like `--variable/-V`, but actually adds to metadata, not
6895 * Added `--print-default-data-file` option, which allows printing
6896 of any of pandoc's data files. (For example,
6897 `pandoc --print-default-data-file reference.odt` will print
6900 * Added syntax for "pauses" in slide shows:
6908 * New markdown extensions:
6910 + `ignore_line_breaks`: causes intra-paragraph line breaks to be ignored,
6911 rather than being treated as hard line breaks or spaces. This is useful
6912 for some East Asian languages, where spaces aren't used between words,
6913 but text is separated into lines for readability.
6914 + `yaml_metadata_block`: Parse YAML metadata blocks. (Default.)
6915 + `ascii_identifiers`: This will force `auto_identifiers` to use ASCII
6916 only. (Default for `markdown_github`.) (#807)
6917 + `lists_without_preceding_blankline`: Allow lists to start without
6918 preceding blank space. (Default for `markdown_github`.) (#972)
6922 * `--toc-level` no longer implies `--toc`.
6923 Reason: EPUB users who don't want a visible TOC may still want
6924 to set the TOC level for in the book navigation.
6926 * `--help` now prints in and out formats in alphabetical order, and
6927 says something about PDF output (#720).
6929 * `--self-contained` now returns less verbose output (telling you
6930 which URLs it is fetching, but not giving the full header). In
6931 addition, there are better error messages when fetching a URL fails.
6933 * Citation support is no longer baked in to core pandoc. Users who
6934 need citations will need to install and use a separate filter
6935 (`--filter pandoc-citeproc`). This filter will take `bibliography`,
6936 `csl`, and `citation-abbreviations` from the metadata, though it
6937 may still be specified on the command line as before.
6939 * A `Cite` element is now created in parsing markdown whether or not
6940 there is a matching reference.
6942 * The `pandoc-citeproc` script will put the bibliography at the
6943 end of the document, as before. However, it will be put inside a `Div`
6944 element with class "references", allowing users some control
6945 over the styling of references. A final header, if any, will
6946 be included in the `Div`.
6948 * The markdown writer will not print a bibliography if the
6949 `citations` extension is enabled. (If the citations are formatted
6950 as markdown citations, it is redundant to have a bibliography,
6951 since one will be generated automatically.)
6953 * Previously we used to store the directory of the first input file,
6954 even if it was local, and used this as a base directory for finding
6955 images in ODT, EPUB, Docx, and PDF. This has been confusing to many
6956 users. So we now look for images relative to the current
6957 working directory, even if the first file argument is in another
6958 directory. Note that this change may break some existing workflows.
6959 If you have been assuming that relative links will be interpreted
6960 relative to the directory of the first file argument, you'll need
6961 to make that the current directory before running pandoc. (#942)
6963 * Better error reporting in some readers, due to changes in `readWith`:
6964 the line in which the error occured is printed, with a caret pointing
6967 * All slide formats now support incremental slide view for definition lists.
6969 * Parse `\(..\)` and `\[..\]` as math in MediaWiki reader.
6970 Parse `:<math>...</math>` as display math. These notations are used with
6971 the MathJax MediaWiki extension.
6973 * All writers: template variables are set automatically from metadata
6974 fields. However, variables specified on the command line with
6975 `--variable` will completely shadow metadata fields.
6977 * If `--variable` is used to set many variables with the same name,
6980 * Man writer: The `title`, `section`, `header`, and `footer` can now
6981 all be set individually in metadata. The `description` variable has been
6982 removed. Quotes have been added so that spaces are allowed in the
6983 title. If you have a title that begins
6985 COMMAND(1) footer here | header here
6987 pandoc will still parse it into a title, section, header, and
6988 footer. But you can also specify these elements explicitly (#885).
6992 + Added support for YAML metadata blocks, which can come anywhere
6993 in the document (not just at the beginning). A document can contain
6994 multiple YAML metadata blocks.
6995 + HTML span and div tags are parsed as pandoc Span and Div elements.
6999 + Allow simple tables to be printed as grid tables,
7000 if other table options are disabled. This means you can do
7001 `pandoc -t markdown-pipe_tables-simple_tables-multiline_tables`
7002 and all tables will render as grid tables.
7003 + Support YAML title block (render fields in alphabetical order
7004 to make output predictable).
7008 * `Meta` in `Text.Pandoc.Definition` has been changed to allow
7009 structured metadata. (Note: existing code that pattern-matches
7010 on `Meta` will have to be revised.) Metadata can now contain
7011 indefinitely many fields, with content that can be a string,
7012 a Boolean, a list of `Inline` elements, a list of `Block`
7013 elements, or a map or list of these.
7015 * A new generic block container (`Div`) has been added to `Block`,
7016 and a generic inline container (`Span`) has been added to `Inline`.
7017 These can take attributes. They will render in HTML, Textile,
7018 MediaWiki, Org, RST and and Markdown (with `markdown_in_html`
7019 extension) as HTML `<div>` and `<span>` elements; in other formats
7020 they will simply pass through their contents. But they can be
7021 targeted by scripts.
7023 * `Format` is now a newtype, not an alias for String.
7024 Equality comparisons are case-insensitive.
7026 * Added `Text.Pandoc.Walk`, which exports hand-written tree-walking
7027 functions that are much faster than the SYB functions from
7028 `Text.Pandoc.Generic`. These functions are now used where possible
7029 in pandoc's code. (`Tests.Walk` verifies that `walk` and `query`
7030 match the generic traversals `bottomUp` and `queryWith`.)
7032 * Added `Text.Pandoc.JSON`, which provides `ToJSON` and `FromJSON`
7033 instances for the basic pandoc types. They use GHC generics and
7034 should be faster than the old JSON serialization using
7035 `Data.Aeson.Generic`.
7037 * Added `Text.Pandoc.Process`, exporting `pipeProcess`.
7038 This is a souped-up version of `readProcessWithErrorcode` that
7039 uses lazy bytestrings instead of strings and allows setting
7040 environment variables. (Used in `Text.Pandoc.PDF`.)
7042 * New module `Text.Pandoc.Readers.OPML`.
7044 * New module `Text.Pandoc.Writers.OPML`.
7046 * New module `Text.Pandoc.Readers.Haddock` (David Lazar).
7047 This is based on Haddock's own lexer/parser.
7049 * New module `Text.Pandoc.Writers.Custom`.
7051 * In `Text.Pandoc.Shared`, `openURL` and `fetchItem` now return an
7052 Either, for better error handling.
7054 * Made `stringify` polymorphic in `Text.Pandoc.Shared`.
7056 * Removed `stripTags` from `Text.Pandoc.XML`.
7058 * `Text.Pandoc.Templates`:
7060 + Simplified `Template` type to a newtype.
7062 + Changed type of `renderTemplate`: it now takes a JSON context
7063 and a compiled template.
7064 + Export `compileTemplate`.
7065 + Export `renderTemplate'` that takes a string instead of a compiled
7067 + Export `varListToJSON`.
7069 * `Text.Pandoc.PDF` exports `makePDF` instead of `tex2pdf`.
7070 The signature of `makePDF` has changed and now contains
7071 an additional argument for pdf engine options.
7075 + Made `toJsonFilter` an alias for `toJSONFilter` from `Text.Pandoc.JSON`.
7076 + Removed `ToJsonFilter` typeclass. `ToJSONFilter` from
7077 `Text.Pandoc.JSON` should be used instead. (Compiling against
7078 pandoc-types instead of pandoc will also produce smaller executables.)
7079 * Removed the deprecated `jsonFilter` function.
7080 + Added `readJSON`, `writeJSON` to the API (#817).
7082 * `Text.Pandoc.Options`:
7084 + Added `Ext_lists_without_preceding_blankline`,
7085 `Ext_ascii_identifiers`, `Ext_ignore_line_breaks`,
7086 `Ext_yaml_metadataBlock` to `Extension`.
7087 + Changed `writerSourceDirectory` to `writerSourceURL` and changed the
7088 type to a `Maybe`. `writerSourceURL` is set to 'Just url' when the
7089 first command-line argument is an absolute URL. (So, relative links
7090 will be resolved in relation to the first page.) Otherwise, 'Nothing'.
7091 + All bibliography-related fields have been removed from
7092 `ReaderOptions` and `WriterOptions`: `writerBiblioFiles`,
7093 `readerReferences`, `readerCitationStyle`.
7094 + Removed `writerPdfArgs` from `WriterOptions`. These are now
7095 passed in as a parameter to `makePDF`.
7097 * The `Text.Pandoc.Biblio` module has been removed. Users of the
7098 pandoc library who want citation support will need to use
7099 `Text.CSL.Pandoc` from `pandoc-citeproc`.
7104 * In markdown, don't autolink a bare URI that is followed by `</a>`
7107 * `Text.Pandoc.Shared`
7109 + `openURL` now follows redirects (#701), properly handles `data:`
7110 URIs, and prints diagnostic output to stderr rather than stdout.
7111 + `readDefaultDataFile`: normalize the paths. This fixes bugs in
7112 `--self-contained` on pandoc compiled with `embed_data_files` (#833).
7113 + Fixed `readDefaultDataFile` so it works on Windows.
7114 + Better error messages for `readDefaultDataFile`. Instead of
7115 listing the last path tried, which can confuse people who are
7116 using `--self-contained`, so now we just list the data file name.
7117 + URL-escape pipe characters. Even though these are legal, `Network.URI`
7118 doesn't regard them as legal in URLs. So we escape them first (#535).
7120 * Mathjax in HTML slide shows: include explicit "Typeset" call.
7121 This seems to be needed for some formats (e.g. slideous) and won't
7122 hurt in others (#966).
7126 + On Windows, create temdir in working directory, since the system
7127 temp directory path may contain tildes, which can cause
7128 problems in LaTeX (#777).
7129 + Put temporary output directory in `TEXINPUTS` (see #917).
7130 + `makePDF` tries to download images that are not found locally,
7131 if the first argument is a URL (#917).
7132 + If compiling with `pdflatex` yields an encoding error, offer
7133 the suggestion to use `--latex-engine=xelatex`.
7135 * Produce automatic header identifiers in parsing textile, RST,
7136 and LaTeX, unless `auto_identifiers` extension is disabled (#967).
7138 * `Text.Pandoc.SelfContained`: Strip off fragment, query of relative URL
7139 before treating as a filename. This fixes `--self-contained` when used
7140 with CSS files that include web fonts using the method described here:
7141 <http://paulirish.com/2009/bulletproof-font-face-implementation-syntax/>
7142 (#739). Handle `src` in `embed`, `audio`, `source`, `input` tags.
7144 * `Text.Pandoc.Parsing`: `uri` parser no longer treats punctuation before
7145 percent-encoding, or a `+` character, as final punctuation.
7147 * `Text.Pandoc.ImageSize`: Handle EPS (#903). This change will make
7148 EPS images properly sized on conversion to Word.
7150 * Slidy: Use slidy.js rather than slidy.js.gz.
7151 Reason: some browsers have trouble with the gzipped js file,
7152 at least on the local file system (#795).
7156 + Properly handle blank line at beginning of input (#882).
7157 + Fixed bug in unmatched reference links. The input
7158 `[*infile*] [*outfile*]` was getting improperly parsed:
7159 "infile" was emphasized, but "*outfile*" was literal (#883).
7160 + Allow internal `+` in citation identifiers (#856).
7161 + Allow `.` or `)` after `#` in ATX headers if no `fancy_lists`.
7162 + Do not generate blank title, author, or date metadata elements.
7163 Leave these out entirely if they aren't present.
7164 + Allow backtick code blocks not to be preceded by blank line (#975).
7168 + Correctly handle entities.
7169 + Improved handling of `<pre>` blocks (#927). Remove internal HTML tags
7170 in code blocks, rather than printing them verbatim. Parse attributes
7171 on `<pre>` tag for code blocks.
7173 * HTML reader: Handle non-simple tables (#893). Column widths are read from
7174 `col` tags if present, otherwise divided equally.
7178 + Support alltt environment (#892).
7179 + Support `\textasciitilde`, `\textasciicircum` (#810).
7180 + Treat `\textsl` as emphasized text reader (#850).
7181 + Skip positional options after `\begin{figure}`.
7182 + Support `\v{}` for hacek (#926).
7183 + Don't add spurious ", " to citation suffixes.
7184 This is added when needed in pandoc-citeproc.
7185 + Allow spaces in alignment spec in tables, e.g. `{ l r c }`.
7186 + Improved support for accented characters (thanks to Scott Morrison).
7187 + Parse label after section command and set id (#951).
7191 + Don't insert paragraphs where docutils doesn't.
7192 `rst2html` doesn't add `<p>` tags to list items (even when they are
7193 separated by blank lines) unless there are multiple paragraphs in the
7194 list. This commit changes the RST reader to conform more closely to
7195 what docutils does (#880).
7196 + Improved metadata. Treat initial field list as metadata when
7197 standalone specified. Previously ALL fields "title", "author",
7198 "date" in field lists were treated as metadata, even if not at
7199 the beginning. Use `subtitle` metadata field for subtitle.
7200 + Fixed 'authors' metadata parsing in reST. Semicolons separate
7205 + Allow space before table rows.
7206 + Fixed regression for `<ref>URL</ref>`.
7207 `<` is no longer allowed in URLs, according to the uri parser
7208 in `Text.Pandoc.Parsing`. Added a test case.
7209 + Correctly handle indented preformatted text without preceding
7210 or following blank line.
7211 + Fixed `|` links inside table cells. Improved attribute parsing.
7212 + Skip attributes on table rows. Previously we just crashed if
7213 rows had attributes, now we ignore them.
7214 + Ignore attributes on headers.
7215 + Allow `Image:` for images (#971).
7216 + Parse an image with caption in a paragraph by itself as a figure.
7220 + Don't use ligatures in escaping inline code.
7221 + Fixed footnote numbers in LaTeX/PDF tables. This fixes a bug
7222 wherein notes were numbered incorrectly in tables (#827).
7223 + Always create labels for sections. Previously the labels were only
7224 created when there were links to the section in the document (#871).
7225 + Stop escaping `|` in LaTeX math.
7226 This caused problems with array environments (#891).
7227 + Change `\` to `/` in paths. `/` works even on Windows in LaTeX.
7228 `\` will cause major problems if unescaped.
7229 + Write id for code block to label attribute in LaTeX when listings
7230 is used (thanks to Florian Eitel).
7231 + Scale LaTeX tables so they don't exceed columnwidth.
7232 + Avoid problem with footnotes in unnumbered headers (#940).
7234 * Beamer writer: when creating beamer slides, add `allowframebreaks` option
7235 to the slide if it is one of the header classes. It is recommended
7236 that your bibliography slide have this attribute:
7238 # References {.allowframebreaks}
7240 This causes multiple slides to be created if necessary, depending
7241 on the length of the bibliography.
7243 * ConTeXt writer: Properly handle tables without captions. The old output
7244 only worked in MkII. This should work in MkIV as well (#837).
7246 * MediaWiki writer: Use native mediawiki tables instead of HTML (#720).
7250 + Fixed `--no-highlight` (Alexander Kondratskiy).
7251 + Don't convert to lowercase in email obfuscation (#839).
7252 + Ensure proper escaping in `<title>` and `<meta>` fields.
7256 + Support `--atx-headers` (Max Rydahl Andersen).
7257 + Don't print empty identifier blocks `([[]])` on headers (Max
7262 + Fixing wrong numbered-list indentation in open document format
7263 (Alexander Kondratskiy) (#369).
7264 + `reference.odt`: Added pandoc as "generator" in `meta.xml`.
7265 + Minor changes for ODF 1.2 conformance (#939). We leave the
7266 nonconforming `contextual-spacing` attribute, which is provided by
7267 LibreOffice itself and seems well supported.
7271 + Fixed rendering of display math in lists.
7272 In 1.11 and 1.11.1, display math in lists rendered as a new list
7273 item. Now it always appears centered, just as outside of lists,
7274 and in proper display math style, no matter how far indented the
7275 containing list item is (#784).
7276 + Use `w:br` with `w:type` `textWrapping` for linebreaks.
7277 Previously we used `w:cr` (#873).
7278 + Use Compact style for Plain block elements, to
7279 differentiate between tight and loose lists (#775).
7280 + Ignore most components of `reference.docx`.
7281 We take the `word/styles.xml`, `docProps/app.xml`,
7282 `word/theme/theme1.xml`, and `word/fontTable.xml` from
7283 `reference.docx`, ignoring everything else. This should help
7284 with the corruption problems caused when different versions of
7285 Word resave the reference.docx and reorganize things.
7286 + Made `--no-highlight` work properly.
7290 + Don't add `dc:creator` tags if present in EPUB metadata.
7291 + Add `id="toc-title"` to `h1` in `nav.xhtml` (#799).
7292 + Don't put blank title page in reading sequence.
7293 Set `linear="no"` if no title block. Addresses #797.
7294 + Download webtex images and include as data URLs.
7295 This allows you to use `--webtex` in creating EPUBs.
7296 Math with `--webtex` is automatically made self-contained.
7297 + In `data/epub.css`, removed highlighting styles (which
7298 are no longer needed, since styles are added by the HTML
7299 writer according to `--highlighting-style`). Simplified
7301 + If resource not found, skip it, as in Docx writer (#916).
7305 + Properly handle characters above the 0000-FFFF range.
7306 Uses surrogate pairs. Thanks to Hiromi Ishii for the patch.
7307 + Fixed regression with RTF table of contents.
7308 + Only autolink absolute URIs. This fixes a regression, #830.
7312 + Only autolink absolute URIs. This fixes a regression, #830.
7313 + Don't wrap attributes in fenced code blocks.
7314 + Write full metadata in MMD style title blocks.
7315 + Put multiple authors on separate lines in pandoc titleblock.
7316 Also, don't wrap long author entries, as new lines get treated
7319 * `Text.Pandoc.Templates`:
7321 + Fixed bug retrieving default template for markdown variants.
7322 + Templates can now contain "record lookups" in variables;
7323 for example, `author.institution` will retrieve the `institution`
7324 field of the `author` variable.
7325 + More consistent behavior of `$for$`. When `foo` is not a list,
7326 `$for(foo)$...$endfor$` should behave like $if(foo)$...$endif$.
7327 So if `foo` resolves to "", no output should be produced.
7328 See pandoc-templates#39.
7330 * Citation processing improvements (now part of pandoc-citeproc):
7332 + Fixed `endWithPunct` The new version correctly sees a sentence
7333 ending in '.)' as ending with punctuation. This fixes a bug which
7334 led such sentences to receive an extra period at the end: '.).'.
7335 Thanks to Steve Petersen for reporting.
7336 + Don't interfere with Notes that aren't citation notes.
7337 This fixes a bug in which notes not generated from citations were
7338 being altered (e.g. first letter capitalized) (#898).
7339 + Only capitalize footnote citations when they have a prefix.
7340 + Changes in suffix parsing. A suffix beginning with a digit gets 'p'
7341 inserted before it before passing to citeproc-hs, so that bare numbers
7342 are treated as page numbers by default. A suffix not beginning with
7343 punctuation has a space added at the beginning (rather than a comma and
7344 space, as was done before for not-author-in-text citations).
7345 The result is that `\citep[23]{item1}` in LaTeX will be interpreted
7346 properly, with '23' treated as a locator of type 'page'.
7347 + Many improvements to citation rendering, due to fixes in citeproc-hs
7348 (thanks to Andrea Rossato).
7349 + Warnings are issued for undefined citations, which are rendered
7351 + Fixed hanging behavior when locale files cannot be found.
7355 * DocBook: Use DocBook 4.5 doctype.
7357 * Org: '#+TITLE:' is inserted before the title.
7358 Previously the writer did this.
7360 * LaTeX: Changes to make mathfont work with xelatex.
7361 We need the mathspec library, not just fontspec, for this.
7362 We also need to set options for setmathfont (#734).
7364 * LaTeX: Use `tex-ansi` mapping for `monofont`.
7365 This ensures that straight quotes appear as straight, rather than
7366 being treated as curly. See #889.
7368 * Made `\includegraphics` more flexible in LaTeX template.
7369 Now it can be used with options, if needed. Thanks to Bernhard Weichel.
7371 * LaTeX/Beamer: Added `classoption` variable.
7372 This is intended for class options like `oneside`; it may
7373 be repeated with different options. (Thanks to Oliver Matthews.)
7375 * Beamer: Added `fonttheme` variable. (Thanks to Luis Osa.)
7377 * LaTeX: Added `biblio-style` variable (#920).
7379 * DZSlides: title attribute on title section.
7381 * HTML5: add meta tag to allow scaling by user (Erik Evenson)
7383 [under-the-hood improvements]
7385 * Markdown reader:Improved strong/emph parsing, using the strategy of
7386 <https://github.com/jgm/Markdown>. The new parsing algorithm requires
7387 no backtracking, and no keeping track of nesting levels. It will give
7388 different results in some edge cases, but these should not affect normal
7391 * Added `Text.Pandoc.Compat.Monoid`.
7392 This allows pandoc to compile with `base` < 4.5, where `Data.Monoid`
7393 doesn't export `<>`. Thanks to Dirk Ullirch for the patch.
7395 * Added `Text.Pandoc.Compat.TagSoupEntity`.
7396 This allows pandoc to compile with `tagsoup` 0.13.x.
7397 Thanks to Dirk Ullrich for the patch.
7399 * Most of `Text.Pandoc.Readers.TeXMath` has been moved to the
7400 `texmath` module (0.6.4). (This allows `pandoc-citeproc` to
7401 handle simple math in bibliography fields.)
7403 * Added `Text.Pandoc.Writers.Shared` for shared functions used
7404 only in writers. `metaToJSON` is used in writers to create a
7405 JSON object for use in the templates from the pandoc metadata
7406 and variables. `getField`, `setField`, and `defField` are
7407 for working with JSON template contexts.
7409 * Added `Text.Pandoc.Asciify` utility module.
7410 This exports functions to create ASCII-only versions of identifiers.
7412 * `Text.Pandoc.Parsing`
7414 + Generalized state type on `readWith` (API change).
7415 + Specialize readWith to `String` input. (API change).
7416 + In `ParserState`, replace `stateTitle`, `stateAuthors`, `stateDate`
7417 with `stateMeta` and `stateMeta'`.
7419 * `Text.Pandoc.UTF8`: use strict bytestrings in reading. The use of lazy
7420 bytestrings seemed to cause problems using pandoc on 64-bit Windows
7423 * Factored out `registerHeader` from markdown reader, added to
7424 `Text.Pandoc.Parsing`.
7426 * Removed `blaze_html_0_5` flag, require `blaze-html` >= 0.5.
7427 Reason: < 0.5 does not provide a monoid instance for Attribute,
7428 which is now needed by the HTML writer (#803).
7430 * Added `http-conduit` flag, which allows fetching https resources.
7431 It also brings in a large number of dependencies (`http-conduit`
7432 and its dependencies), which is why for now it is an optional flag
7435 * Added CONTRIBUTING.md.
7437 * Improved INSTALL instructions.
7439 * `make-windows-installer.bat`: Removed explicit paths for executables.
7441 * `aeson` is now used instead of `json` for JSON.
7443 * Set default stack size to 16M. This is needed for some large
7444 conversions, esp. if pandoc is compiled with 64-bit ghc.
7446 * Various small documentation improvements.
7447 Thanks to achalddave and drothlis for patches.
7449 * Removed comment that chokes recent versions of CPP (#933).
7451 * Removed support for GHC version < 7.2, since pandoc-types now
7452 requires at least GHC 7.2 for GHC generics.
7459 + Fixed regression in which parentheses were lost in link URLs.
7460 Added tests. Closes #786.
7461 + Better handling of unmatched double quotes in `--smart` mode.
7462 These occur frequently in fiction, since it is customary not to
7463 close quotes in dialogue if the speaker does not change between
7464 paragraphs. The unmatched quotes now get turned into literal
7465 left double quotes. (No `Quoted` inline is generated, however.)
7468 * HTML writer: Fixed numbering mismatch between TOC and sections.
7469 `--number-offset` now affects TOC numbering as well
7470 as section numbering, as it should have all along. Closes #789.
7472 * Markdown writer: Reverted 1.11 change that caused citations to be rendered
7473 as markdown citations, even if `--bibliography` was specified, unless
7474 `citation` extension is disabled. Now, formatted citations are always
7475 printed if `--bibliography` was specified. If you want to reformat
7476 markdown keeping pandoc markdown citations intact, don't use
7477 `--bibliography`. Note that citations parsed from LaTeX documents will
7478 be rendered as pandoc markdown citations when `--bibliography` is not
7481 * ODT writer: Fixed regression leading to corrupt ODTs.
7482 This was due to a change in the `Show` instance for
7483 `Text.Pandoc.Pretty.Doc`. Closes #780.
7485 * Fixed spacing bugs involving code block attributes in
7486 RST reader and Markdown writer. Closes #763.
7488 * Windows package: Various improvements due to Fyodor Sheremetyev.
7490 + Automatically set installation path (Program Files or Local App Data).
7491 + Set system PATH environment variable when installing for all users.
7492 + Pandoc can installed for all users using the following command.
7493 `msiexec /i pandoc-1.11.msi ALLUSERS=1`.
7495 * Bumped QuickCheck version bound.
7499 * Added `--number-offset` option. (See README for description.)
7501 * Added `--default-image-extension` option. (See README for description.)
7503 * `--number-sections` behavior change: headers with class `unnumbered`
7504 will not be numbered.
7506 * `--version` now reports the default data directory.
7508 * `Text.Pandoc.Parsing` is no longer exposed. (API change.)
7510 * `Text.Pandoc.Highlighting` is no longer exposed. (API change.)
7512 * `Text.Pandoc.Shared`: Changed type of `Element`. `Sec` now includes
7513 a field for `Attr` rather than just `String`. (API change.)
7515 * Added `markdown_github` as input format. This was an accidental
7518 * Added `readerDefaultImageExtension` field to `ReaderOptions`. (API
7521 * Added `writerNumberOffset` field in `WriterOptions`. (API change.)
7525 + Fixed captions with longtable. Thanks to Joost Kremers.
7526 + Provide `\Oldincludegraphics` as in LaTeX template (Benjamin Bannier).
7530 + Load microtype after fonts. Microtype needs to know
7531 what fonts are being used. Thanks to dfc for the patch.
7532 + Set `secnumdepth` to 5 if `--number-sections` specified.
7533 This yields behavior equivalent to the other writers, numbering
7534 level 4 and 5 headers too. Closes #753.
7538 + Handle `<colgroup>` tag.
7539 + Preserve all header attributes.
7543 + Parse `\hrule` as `HorizontalRule`. Closes #746.
7544 + Parse starred variants of `\section` etc. as headers with
7545 attribute `unnumbered`.
7546 + Read optional attributes in `lstlisting` and `Verbatim` environments.
7547 We convert these to pandoc standard names, e.g. `numberLines`
7548 for `numbers=left`, `startFrom=100` from `firstnumber=100`.
7549 + Handle language attribute for lstlistings.
7550 + Better support for Verbatim and minted environments. Closes #763.
7554 + `-` in an attribute context = `.unnumbered`. The point of this
7555 is to provide a way to specify unnumbered headers in non-English
7557 + Fixed bug parsing key/value attributes. Parsing failed if you
7558 had an unquoted attribute immediately before the final '}'.
7559 + Make backslash escape work in attributes.
7560 + Fix title block parsing. Now if `mmd_title_blocks` is specified,
7561 pandoc will parse a MMD title block if it sees one, even if
7562 `pandoc_title_blocks` is enabled.
7563 + Refactoring: `litChar` now includes entities, so we don't need
7564 to use `fromEntities` e.g. on titles.
7565 + Allow spaces around borders in pipe tables. Closes #772.
7566 + Allow all punctuation in angle-bracket autolinks. Previously
7567 things like `----` were disallowed, because the uri parser
7568 treated them as trailing punctuation. Closes #768.
7569 + Make `implicit_header_references` work properly when
7570 headers are given explicit identifiers.
7571 + Check for tables before line blocks. Otherwise some pipe
7572 tables get treated as line blocks.
7573 + Allow `&` in emails (for entities).
7574 + Properly handle entities in titles and links. A markdown link
7575 `<http://göogle.com>` should be a link to `http://göogle.com`.
7580 + Handle attributes on headers.
7584 + Add `fig:` as title for images with captions.
7585 This is needed for them to be rendered as figures. Closes #766.
7586 + Never emit an empty paragraph. See #761.
7587 + Handle `\caption` for images in figures. Closes #766.
7588 + Parse `\section*`, etc. as unnumbered sections.
7592 + Support header attributes. The attributes go on
7593 the enclosing `section` or `div` tag if `--section-divs` is specified.
7594 + Fixed a regression (only now noticed) in html+lhs output.
7595 Previously the bird tracks were being omitted.
7599 + Omit lists with no items to avoid LaTeX errors.
7600 + Support line numbering with `--listings`.
7601 If `numberLines` class is present, we add `numbers=left`;
7602 if `startFrom` is present, we add `firstnumber=`. (#763)
7606 + Removed `\placecontent`. This produced a duplicate toc,
7607 in conjunction with `\placelist`.
7608 + Use `\title`, `\subject` etc. for headers with
7613 + Support header attributes.
7617 + Use grid tables when needed, and if enabled. Closes #740.
7618 + Render citations as pandoc-markdown citations.
7619 Previously citations were rendered as citeproc-formatted citations
7620 by default. Now we render them as pandoc citations, e.g. `[@item1]`,
7621 unless the `citations` extension is disabled.
7622 If you still want formatted citations in your markdown output,
7623 use `pandoc -t markdown-citations`.
7627 + Support `:number-lines:` in code blocks.
7631 + Better treatment of display math. Display math inside a
7632 paragraph is now put in a separate paragraph, so it will render
7633 properly (centered and without extra blank lines around it).
7634 Partially addresses #742.
7635 + Content types and document rels xml files are now created from
7636 scratch, rather than being taken over from `reference.docx`.
7637 This fixes problems that arise when you edit the `reference.docx`
7639 + We also now encode mime types for each individual image rather
7640 than using defaults. This should allow us to handle a wider
7641 range of image types (including PDF). Closes #414.
7642 + Changed style names in `reference docx`.
7643 `FootnoteReference` -> `FootnoteRef`, `Hyperlink` -> `Link`.
7644 The old names got changed by Word when the `reference.docx` was
7645 edited. Closes #414.
7649 + Fix section numbering. Previously the numbering restarted from 1
7650 in each chapter (with `--number-sections`), though the numbers in
7651 the table of contents were correct.
7652 + Headers with "unnumbered" attribute are not numbered. (Nor do they
7653 cause an increment in running numbering.) Section numbers now work
7654 properly, even when there is material before the first numbered section.
7655 + Include HTML TOC, even in epub2. The TOC is included in `<spine>`,
7656 but `linear` is set to `no` unless the `--toc` option is specified.
7657 Include `<guide>` element in OPF. This should allow the TOC to
7658 be useable in Kindles when converted with kindlegen. Closes #773.
7660 * `Text.Pandoc.Parsing`: Optimized `oneOfStringsCI`.
7661 This dramatically reduces the speed penalty that comes from enabling the
7662 `autolink_bare_uris` extension. The penalty is still substantial (in one
7663 test, from 0.33s to 0.44s), but nowhere near what it used to be.
7664 The RST reader is also much faster now, as it autodetects URIs.
7666 * `Text.Pandoc.Shared`: `hierarchicalize` will not number section
7667 with class "unnumbered". Unnumbered sections get `[]` for their
7670 * `Text.Pandoc.Pretty`:
7672 + Fixed `chomp` so it works inside `Prefixed` elements.
7673 + Changed `Show` instance so it is better for debugging.
7675 * `Text.Pandoc.ImageSize`: Added `Pdf` to `ImageType`.
7677 * `Text.Pandoc.UTF8`: Strip off BOM if present. Closes #743.
7679 * Windows installer improvements:
7681 + The installer is now signed with a certificate (thanks to
7682 Fyodor Sheremetyev).
7683 + WiX is used instead of InnoSetup. The installer is now a
7685 + The version number is now auto-detected, and need not be
7688 * OSX installer improvements:
7690 + The package and pandoc executable are now signed with a
7691 certificate (thanks to Fyodor Sheremetyev).
7692 + RTF version of license is used.
7693 + Use full path for sysctl in `InstallationCheck` script (jonahbull).
7696 * Converted COPYING to markdown.
7698 * pandoc.cabal: Require latest versions of highlighting-kate,
7699 texmath, citeproc-hs, zip-archive.
7703 * Markdown reader: various optimizations, leading to a
7704 significant performance boost.
7706 * RST reader: Allow anonymous form of inline links:
7707 `` `hello <url>`__ `` Closes #724.
7709 * Mediawiki reader: Don't require newlines after tables.
7710 Thanks to jrunningen for the patch. Closes #733.
7712 * Fixed LaTeX macro parsing. Now LaTeX macro definitions are preserved
7713 when output is LaTeX, and applied when it is another format.
7714 Partially addresses #730.
7716 * Markdown and RST readers: Added parser to `block` that skips blank
7717 lines. This fixes a subtle regression involving grid tables with
7718 empty cells. Also added test for grid table with empty cells.
7721 * RST writer: Use `.. code:: language` for code blocks with language.
7724 * DocBook writer: Fixed output for hard line breaks, adding a newline
7725 between `<literallayout>` tags.
7727 * Markdown writer: Use an autolink when link text matches url.
7728 Previously we also checked for a null title, but this
7729 test fails for links produced by citeproc-hs in bibliographies.
7730 So, if the link has a title, it will be lost on conversion
7731 to an autolink, but that seems okay.
7733 * Markdown writer: Set title, author, date variables as before.
7734 These are no longer used in the default template, since we use
7735 titleblock, but we set them anyway for those who use custom templates.
7737 * LaTeX writer: Avoid extra space at start/end of table cell.
7738 Thanks to Nick Bart for the suggestion of using @{}.
7740 * `Text.Pandoc.Parsing`:
7742 + More efficient version of `anyLine`.
7743 + Type of `macro` has changed; the parser now returns `Blocks`
7746 * Relaxed old-time version bound, allowing 1.0.*.
7748 * Removed obsolete `hsmarkdown` script. Those who need `hsmarkdown`
7749 should create a symlink as described in the README.
7753 * Markdown reader: Try `lhsCodeBlock` before `rawTeXBlock`. Otherwise
7754 `\begin{code}...\end{code}` isn't handled properly in markdown+lhs.
7755 Thanks to Daniel Miot for noticing the bug and suggesting the fix.
7757 * Markdown reader: Fixed bug with headerless grid tables.
7758 The 1.10 code assumed that each table header cell contains exactly one
7759 block. That failed for headerless tables (0) and also for tables with
7760 multiple blocks in a header cell. The code is fixed and tests provided.
7761 Thanks to Andrew Lee for pointing out the bug.
7763 * Markdown reader: Fixed regressions in fenced code blocks. Closes #722.
7765 + Tilde code fences can again take a bare language string
7766 (`~~~ haskell`), not just curly-bracketed attributes
7768 + Backtick code blocks can take the curly-bracketed attributes.
7769 + Backtick code blocks don't *require* a language.
7770 + Consolidated code for the two kinds of fenced code blocks.
7772 * LaTeX template: Use `\urlstyle{same}` to avoid monospace URLs.
7774 * Markdown writer: Use proportional font for email autolinks with
7775 obfuscation. Closes #714.
7777 * Corrected name of `blank_before_blockquote` in README. Closes #718.
7779 * `Text.Pandoc.Shared`: Fixed bug in `uri` parser.
7780 The bug prevented an autolink at the end of a string (e.g.
7781 at the end of a line block line) from counting as a link. Closes #711.
7783 * Use the `hsb2hs` preprocessor instead of TH for embed_data_files.
7784 This should work on Windows, unlike the TH solution with
7787 * Eliminated use of TH in test suite.
7789 * Added `Text.Pandoc.Data` (non-exported) to hold the association
7790 list of embedded data files, if the `embed_data_files` flag is selected.
7791 This isolates the code that needs special treatment with file-embed or
7794 * Changes to `make-windows-installer.bat`.
7796 + Exit batch file if any of the cabal-dev installs fail.
7797 + There's no longer any need to reinstall `highlighting-kate`.
7798 + Don't start with a `cabal update`; leave that to the user.
7799 + Force reinstall of pandoc.
7801 * Fixed EPUB writer so it builds with blaze-html 0.4.x. Thanks to
7806 * Fixed bug with escaped % in LaTeX reader. Closes #710.
7810 * Added further missing fb2 tests to cabal file.
7814 * Added fb2 tests to cabal file's extra-source-files.
7818 * Bump version bounds on test-framework packages.
7824 * New input formats: `mediawiki` (MediaWiki markup).
7826 * New output formats: `epub3` (EPUB v3 with MathML),
7827 `fb2` (FictionBook2 ebooks).
7829 * New `--toc-depth` option, specifying how many levels of
7830 headers to include in a table of contents.
7832 * New `--epub-chapter-level` option, specifying the header
7833 level at which to divide EPUBs into separate files.
7834 Note that this normally affects only performance, not the
7835 visual presentation of the EPUB in a reader.
7837 * Removed the `--strict` option. Instead of using `--strict`,
7838 one can now use the format name `markdown_strict` for either input
7839 or output. This gives more fine-grained control that `--strict`
7840 did, allowing one to convert from pandoc's markdown to strict
7841 markdown or vice versa.
7843 * It is now possible to enable or disable specific syntax
7844 extensions by appending them (with `+` or `-`) to the writer
7845 or reader name. For example,
7847 pandoc -f markdown-footnotes+hard_line_breaks
7849 disables footnotes and enables treating newlines as hard
7850 line breaks. The literate Haskell extensions are now implemented
7851 this way as well, using either `+lhs` or `+literate_haskell`.
7852 For a list of extension names, see the README under
7853 "Pandoc's Markdown."
7855 * The following aliases have been introduced for specific
7856 combinations of markdown extensions: `markdown_phpextra`,
7857 `markdown_github`, `markdown_mmd`, `markdown_strict`. These aliases
7858 work just like regular reader and writer names, and can be modified
7859 with extension modifiers as described above. (Note that conversion
7860 from one markdown dialect to another does not work perfectly,
7861 because there are differences in markdown parsers besides
7862 just the extensions, and because pandoc's internal document model is
7863 not rich enough to capture all of the extensions.)
7865 * New `--html-q-tags` option. The previous default was to use `<q>`
7866 tags for smart quotes in HTML5. But `<q>` tags are also valid HTML4.
7867 Moreover, they are not a robust way of typesetting quotes, since
7868 some user agents don't support them, and some CSS resets (e.g.
7869 bootstrap) prevent pandoc's quotes CSS from working properly.
7870 We now just insert literal quote characters by default in both
7871 `html` and `html5` output, but this option is provided for
7872 those who still want `<q>` tags.
7874 * The markdown reader now prints warnings (to stderr) about
7875 duplicate link and note references. Closes #375.
7877 * Markdown syntax extensions:
7879 + Added pipe tables. Thanks to François Gannaz for the initial patch.
7880 These conform to PHP Markdown Extra's pipe table syntax. A subset
7881 of org-mode table syntax is also supported, which means that you can
7882 use org-mode's nice table editor to create tables.
7884 + Added support for RST-style line blocks. These are
7885 useful for verse and addresses.
7887 + Attributes can now be specified for headers, using the same
7888 syntax as in code blocks. (However, currently only the
7889 identifier has any effect in most writers.) For example,
7893 See [the header above](#foo).
7895 + Pandoc will now act as if link references have been defined
7896 for all headers without explicit identifiers.
7897 So, you can do this:
7901 Link to [My header].
7902 Another link to [it][My header].
7908 + Command macros now work everywhere, including non-math.
7909 Environment macros still not supported.
7910 + `\input` now works, as well as `\include`. TEXINPUTS is used.
7911 Pandoc looks recursively into included files for more included files.
7915 * The Markdown reader no longer puts the text of autolinks in a
7916 `Code` inline. This means that autolinks will no longer appear
7917 in a monospace font.
7919 * The character `/` can now appear in markdown citation keys.
7921 * HTML blocks in strict_markdown are no longer required to begin
7922 at the left margin. Technically this is required, according to
7923 the markdown syntax document, but `Markdown.pl` and other markdown
7924 processors are more liberal.
7926 * The `-V` option has been changed so that if there are duplicate
7927 variables, those specified later on the command line take precedence.
7929 * Tight lists now work in LaTeX and ConTeXt output.
7931 * The LaTeX writer no longer relien on the `enumerate` package.
7932 Instead, it uses standard LaTeX commands to change the list numbering
7935 * The LaTeX writer now uses `longtable` instead of `ctable`. This allows
7936 tables to be split over page boundaries.
7938 * The RST writer now uses a line block to render paragraphs containing
7939 linebreaks (which previously weren't supported at all).
7941 * The markdown writer now applies the `--id-prefix` to footnote IDs.
7944 * The plain writer no longer uses backslash-escaped line breaks
7945 (which are not very "plain").
7947 * `Text.Pandoc.UTF8`: Better error message for invalid UTF8.
7948 Read bytestring and use `Text`'s decodeUtf8 instead of using
7949 `System.IO.hGetContents`. This way you get a message saying
7950 "invalid UTF-8 stream" instead of "invalid byte sequence."
7951 You are also told which byte caused the problem.
7953 * Docx, ODT, and EPUB writers now download images specified by a URL
7954 instead of skipping them or raising an error.
7958 + The default CSS now left-aligns headers by default, instead of
7959 centering. This is more consistent with the rest of the writers.
7960 + A proper multi-level table of contents is now used in `toc.ncx`.
7961 There is no longer a subsidiary table of contents at the beginning
7963 + Code highlighting now works by default.
7964 + Section divs are used by default for better semantic markup.
7965 + The title is used instead of "Title Page" in the table of contents.
7966 Otherwise we have a hard-coded English string, which looks
7967 strange in ebooks written in other languages. Closes #572.
7971 + Put mathjax in span with class "math". Closes #562.
7972 + Put citations in a span with class "citation." In HTML5, also include
7973 a `data-cite` attribute with a space-separated list of citation
7976 * `Text.Pandoc.UTF8`: use universalNewlineMode in reading.
7977 This treats both `\r\n` and `\n` as `\n` on input, no matter
7978 what platform we're running on.
7980 * Citation processing is now done in the Markdown and LaTeX
7981 readers, not in `pandoc.hs`. This makes it easier for library users
7986 * HTML: Added css to template to preserve spaces in `<code>` tags.
7987 Thanks to Dirk Laurie.
7989 * Beamer: Remove English-centric strings in section pages.
7990 Section pages used to have "Section" and a number as well as the
7991 section title. Now they just have the title. Similarly for part
7992 and subsection. Closes #566.
7994 * LaTeX, ConTeXt: Added papersize variable.
7996 * LaTeX, Beamer templates: Use longtable instead of ctable.
7998 * LaTeX, Beamer templates: Don't require 'float' package for tables.
7999 We don't actually seem to use the '[H]' option.
8001 * LaTeX: Use `upquote` package if it is available. This fixes
8002 straight quotes in verbatim environments.
8004 * Markdown, plain: Fixed titleblock so it is just a single string.
8005 Previously separate title, author, and date variables were used,
8006 but this didn't allow different kinds of title blocks.
8010 + Rationalized templates. Previously there were three different
8011 templates involved in epub production. There is now just one
8012 template, `default.epub` or `default.epub3`. It can now be
8013 overridden using `--template`, just like other templates.
8014 The titlepage is now folded into the default template.
8015 A `titlepage` variable selects it.
8016 + UTF-8, lang tag, meta tags, title element.
8018 * Added scale-to-width feature to beamer template
8022 * `Text.Pandoc.Definition`: Added `Attr` field to `Header`.
8023 Previously header identifers were autogenerated by the writers.
8024 Now they are added in the readers (either automatically or explicitly).
8026 * `Text.Pandoc.Builder`:
8028 + `Inlines` and `Blocks` are now synonyms for `Many Inline` and
8029 `Many Block`. `Many` is a newtype wrapper around `Seq`, with
8030 custom Monoid instances for `Many Inline` and `Many Block. This
8031 allows `Many` to be made an instance of `Foldable` and `Traversable`.
8032 + The old `Listable` class has been removed.
8033 + The module now exports `isNull`, `toList`, `fromList`.
8034 + The old `Read` and `Show` instances have been removed; derived
8035 instances are now used.
8036 + Added `headerWith`.
8038 * The readers now take a `ReaderOptions` rather than a `ParserState`
8039 as a parameter. Indeed, not all parsers use the `ParserState` type;
8040 some have a custom state. The motivation for this change was to separate
8041 user-specifiable options from the accounting functions of parser state.
8043 * New module `Text.Pandoc.Options`. This includes the `WriterOptions`
8044 formerly in `Text.Pandoc.Shared`, and its associated
8045 data types. It also includes a new type `ReaderOptions`, which
8046 contains many options formerly in `ParserState`, and its associated
8049 + `ParserState.stateParseRaw` -> `ReaderOptions.readerParseRaw`.
8050 + `ParserState.stateColumns` -> `ReaderOptions.readerColumns`.
8051 + `ParserState.stateTabStop` -> `ReaderOptions.readerTabStop`.
8052 + `ParserState.stateOldDashes` -> `ReaderOptions.readerOldDashes`.
8053 + `ParserState.stateLiterateHaskell` -> `ReaderOptions.readerLiterateHaskell`.
8054 + `ParserState.stateCitations` -> `ReaderOptions.readerReferences`.
8055 + `ParserState.stateApplyMacros` -> `ReaderOptions.readerApplyMacros`.
8056 + `ParserState.stateIndentedCodeClasses` ->
8057 `ReaderOptions.readerIndentedCodeClasses`.
8058 + Added `ReaderOptions.readerCitationStyle`.
8060 * `WriterOptions` now includes `writerEpubVersion`, `writerEpubChapterLevel`,
8061 `writerEpubStylesheet`, `writerEpubFonts`, `writerReferenceODT`,
8062 `writerReferenceDocx`, and `writerTOCDepth`. `writerEPUBMetadata` has
8063 been renamed `writerEpubMetadata` for consistency.
8065 * Changed signatures of `writeODT`, `writeDocx`, `writeEPUB`, since they no
8066 longer stylesheet, fonts, reference files as separate parameters.
8068 * Removed `writerLiterateHaskell` from `WriterOptions`, and
8069 `readerLiterateHaskell` from `ReaderOptions`. LHS is now handled
8070 by an extension (`Ext_literate_haskell`).
8072 * Removed deprecated `writerXeTeX`.
8074 * Removed `writerStrict` from `WriterOptions`. Added `writerExtensions`.
8075 Strict is now handled through extensions.
8077 * `Text.Pandoc.Options` exports `pandocExtensions`, `strictExtensions`,
8078 `phpMarkdownExtraExtensions`, `githubMarkdownExtensions`,
8079 and `multimarkdownExtensions`, as well as the `Extensions` type.
8081 * New `Text.Pandoc.Readers.MediaWiki` module, exporting
8084 * New `Text.Pandoc.Writers.FB2` module, exporting `writeFB2`
8085 (thanks to Sergey Astanin).
8089 + Added `getReader`, `getWriter` to `Text.Pandoc`.
8090 + `writers` is now an association list `(String, Writer)`.
8091 A `Writer` can be a `PureStringWriter`, an `IOStringWriter`, or
8092 an `IOByteStringWriter`. ALL writers are now in the 'writers'
8093 list, including the binary writers and FB2 writer. This allows
8094 code in `pandoc.hs` to be simplified.
8095 + Changed type of `readers`, so all readers are in IO.
8096 Users who want pure readers can still get them form the reader
8097 modules; this just affects the function `getReader` that looks up
8098 a reader based on the format name. The point of this change is to
8099 make it possible to print warnings from the parser.
8101 * `Text.Pandoc.Parsing`:
8103 + `Text.Parsec` now exports all Parsec functions used in pandoc code.
8104 No other module directly imports Parsec. This will make it easier
8105 to change the parsing backend in the future, if we want to.
8106 + `Text.Parsec` is used instead of `Text.ParserCombinators.Parsec`.
8107 + Export the type synonym `Parser`.
8108 + Export `widthsFromIndices`, `NoteTable'`, `KeyTable'`, `Key'`, `toKey'`,
8109 `withQuoteContext`, `singleQuoteStart`, `singleQuoteEnd`,
8110 `doubleQuoteStart`, `doubleQuoteEnd`, `ellipses`, `apostrophe`,
8111 `dash`, `nested`, `F(..)`, `askF`, `asksF`, `runF`, `lineBlockLines`.
8112 + `ParserState` is no longer an instance of `Show`.
8113 + Added `stateSubstitutions` and `stateWarnings` to `ParserState`.
8114 + Generalized type of `withQuoteContext`.
8115 + Added `guardEnabled`, `guardDisabled`, `getOption`.
8116 + Removed `failIfStrict`.
8117 + `lookupKeySrc` and `fromKey` are no longer exported.
8119 * `Data.Default` instances are now provided for `ReaderOptions`,
8120 `WriterOptions`, and `ParserState`. `Text.Pandoc` re-exports `def`.
8121 Now you can use `def` (which is re-exported by `Text.Pandoc`) instead
8122 of `defaultWriterOptions` (which is still defined). Closes #546.
8124 * `Text.Pandoc.Shared`:
8127 + Renamed `removedLeadingTrailingSpace` to `trim`,
8128 `removeLeadingSpace` to `triml`, and `removeTrailingSpace` to `trimr`.
8129 + Count `\r` as space in `trim` functions.
8130 + Moved `renderTags'` from HTML reader and `Text.Pandoc.SelfContained`
8132 + Removed `failUnlessLHS`.
8133 + Export `compactify'`, formerly in Markdown reader.
8134 + Export `isTightList`.
8135 + Do not export `findDataFile`.
8136 + `readDataFile` now returns a strict ByteString.
8137 + Export `readDataFileUTF8` which returns a String, like the
8139 + Export `fetchItem` and `openURL`.
8141 * `Text.Pandoc.ImageSize`: Use strict, not lazy bytestrings.
8142 Removed `readImageSize`.
8144 * `Text.Pandoc.UTF8`: Export `encodePath`, `decodePath`,
8145 `decodeArg`, `toString`, `fromString`, `toStringLazy`,
8148 * `Text.Pandoc.UTF8` is now an exposed module.
8150 * `Text.Pandoc.Biblio`:
8152 + csl parameter now a `String` rather than a `FilePath`.
8153 + Changed type of `processBiblio`. It is no longer in the IO monad.
8154 It now takes a `Maybe Style` argument rather than parameters for CSL
8155 and abbrev filenames. (`pandoc.hs` now calls the functions to parse
8156 the style file and add abbreviations.)
8158 * Markdown reader now exports `readMarkdownWithWarnings`.
8160 * `Text.Pandoc.RTF` now exports `writeRTFWithEmbeddedImages` instead of
8165 * Make `--ascii` work properly with `--self-contained`. Closes #568.
8169 + Fixed link parser to avoid exponential slowdowns. Closes #620.
8170 Previously the parser would hang on input like this:
8172 [[[[[[[[[[[[[[[[[[hi
8174 We fixed this by making the link parser parser characters
8175 between balanced brackets (skipping brackets in inline code spans),
8176 then parsing the result as an inline list. One change is that
8178 [hi *there]* bud](/url)
8180 is now no longer parsed as a link. But in this respect pandoc behaved
8181 differently from most other implementations anyway, so that seems okay.
8183 + Look for raw html/latex blocks before tables.
8184 Otherwise the following gets parsed as a table:
8195 + Added support for `:target:` on `.. image::` blocks
8199 - Fixed field lists items with body beginning after a new line
8201 - Allow any char but ':' in names of field lists in RST reader
8203 - Don't allow line breaks in field names.
8204 - Require whitespace after field list field names.
8205 - Don't create empty definition list for metadata field lists.
8206 Previously a field list consisting only of metadata fields (author,
8207 title, date) would be parsed as an empty DefinitionList, which is
8208 not legal in LaTeX and not needed in any format.
8210 + Don't recognize inline-markup starts inside words.
8211 For example, `2*2 = 4*1` should not contain an emphasized
8212 section. Added test case for "Literal symbols". Closes #569.
8213 + Allow dashes as separator in simple tables. Closes #555.
8214 + Added support for `container`, `compound`, `epigraph`,
8215 `rubric`, `highlights`, `pull-quote`.
8216 + Added support for `.. code::`.
8217 + Made directive labels case-insensitive.
8218 + Removed requirement that directives begin at left margin.
8219 This was (correctly) not in earlier releases; docutils doesn't
8220 make the requirement.
8221 + Added support for `replace::` and `unicode::` substitutions.
8222 + Ignore unknown interpreted roles.
8223 + Renamed image parser to `subst`, since it now handles all
8224 substitution references.
8228 + Allow newlines before pipes in table. Closes #654.
8229 + Fixed bug with list items containing line breaks.
8230 Now pandoc correctly handles hard line breaks inside list items.
8231 Previously they broke list parsing.
8232 + Implemented comment blocks.
8233 + Fixed bug affected words ending in hyphen.
8234 + Properly handle links with surrounding brackets.
8235 Square brackets need to be used when the link isn't surrounded by
8236 spaces or punctuation, or when the URL ending may be ambiguous.
8238 + Removed nullBlock. Better to know about parsing problems than
8239 to skip stuff when we get stuck.
8240 + Allow ID attributes on headers.
8241 + Textile reader: Avoid parsing dashes as strikeout.
8242 Previously the input
8249 would be parsed with strikeouts rather than dashes. This fixes
8250 the problem by requiring that a strikeout delimiting - not be
8251 followed by a -. Closes #631.
8252 + Expanded list of `stringBreakers`.
8253 This fixes a bug on input like "(_hello_)" which should
8254 be a parenthesized emphasized "hello".
8255 The new list is taken from the PHP source of textile 2.4.
8256 + Fixed autolinks. Previously the textile reader and writer
8257 incorrectly implented RST-style autolinks for URLs and email
8258 addresses. This has been fixed. Now an autolink is done this way:
8259 `"$":http://myurl.com`.
8260 + Fixed footnotes bug in textile. This affected notes occuring
8261 before punctuation, e.g. `foo[1].`. Closes #518.
8265 + Better handling of citation commands.
8266 + Better handling of `\noindent`.
8267 + Added a 'try' in rawLaTeXBlock, so we can handle `\begin` without `{`.
8269 + Made `rawLaTeXInline` try to parse block commands as well. This
8270 is usually what we want, given how `rawLaTeXInline` is used in
8271 the markdown and textile readers. If a block-level LaTeX command
8272 is used in the middle of a paragraph (e.g. `\subtitle` inside a title),
8273 we can treat it as raw inline LaTeX.
8274 + Handle \slash command. Closes #605.
8275 + Basic `\enquote` support.
8276 + Fixed parsing of paragraphs beginning with a group. Closes #606.
8277 + Use curly quotes for bare straight quotes.
8278 + Support obeylines environment. Closes #604.
8279 + Guard against "begin", "end" in inlineCommand and
8281 + Better error messages for environments. Now it should tell you that
8282 it was looking for \end{env}, instead of giving "unknown parse error."
8286 + Added HTML 5 tags to list of block-level tags.
8287 + HTML reader: Fixed bug in `htmlBalanced`, which
8288 caused hangs in parsing certain markdown input using
8290 + Parse `<q>` as `Quoted DoubleQuote`.
8291 + Handle nested `<q>` tags properly.
8292 + Modified `htmlTag` for fewer false positives.
8293 A tag must start with `<` followed by `!`,`?`, `/`, or a letter.
8294 This makes it more useful in the wikimedia and markdown parsers.
8296 * DocBook reader: Support title in "figure" element. Closes #650.
8300 + Remove newline after `<br/>` in translation of `LineBreak`
8301 There's no particular need for a newline (other than making the
8302 generated MediaWiki source look nice to a human), and in fact
8303 sometimes it is incorrect: in particular, inside an enumeration, list
8304 items cannot have embedded newline characters. (Brent Yorgey)
8305 + Use `<code>` not `<tt>` for Code.
8307 * Man writer: Escape `-` as `\-`.
8308 Unescaped `-`'s become hyphens, while `\-`'s are left as ascii minus
8309 signs. That is preferable for use with command-line options. See
8310 <http://lintian.debian.org/tags/hyphen-used-as-minus-sign.html>. Thanks
8311 to Andrea Bolognani for bringing the issue to our attention.
8315 + Improved line block output. Use nonbreaking spaces for
8316 initial indent (otherwise lost in HTML and LaTeX).
8317 Allow multiple paragraphs in a single line block.
8318 Allow soft breaks w continuations in line blocks.
8319 + Properly handle images with no alt text. Closes #678.
8320 + Fixed bug with links with duplicate text. We now (a) use anonymous
8321 links for links with inline URLs, and (b) use an inline link instead
8322 of a reference link if the reference link would require a label that
8323 has already been used for a different link. Closes #511.
8324 + Fixed hyperlinked images. Closes #611. Use `:target:`
8325 field when you have a simple linked image.
8326 + Don't add `:align: center` to figures.
8328 * Texinfo writer: Fixed internal cross-references.
8329 Now we insert anchors after each header, and use `@ref` instead of `@uref`
8330 for links. Commas are now escaped as `@comma{}` only when needed;
8331 previously all commas were escaped. (This change is needed, in part,
8332 because `@ref` commands must be followed by a real comma or period.) Also
8333 insert a blank line in from of `@verbatim` environments.
8337 + Made --id-prefix work in DocBook as well as HTML.
8339 + Don't include empty captions in figures. Closes #581.
8343 + Use `\hspace*` for nonbreaking space after line break,
8344 since `~` spaces after a line break are just ignored.
8346 + Don't escape `_` in URLs or hyperref identifiers.
8347 + Properly escape strings inside \url{}. Closes #576.
8348 + Use `[fragile]` only for slides containing code rendered
8349 using listings. Closes #649.
8350 + Escape `|` as `\vert` in LaTeX math. This avoids a clash with
8351 highlighting-kate's macros, which redefine `|` as a short verbatim
8352 delimiter. Thanks to Björn Peemöller for raising this issue.
8353 + Use minipage rather than parbox for block containers in tables.
8354 This allows verbatim code to be included in grid tables.
8356 + Prevent paragraphs containing only linebreaks or spaces.
8360 + Included `highlighting-css` for code spans, too.
8361 Previously it was only included if used in a code block. Closes #653.
8362 + Improved line breaks with `<dd>` tags. We now put a newline between
8363 `</dd>` and `<dd>` when there are multiple definitions.
8364 + Changed mathjax cdn url so it doesn't use https. (This caused
8365 problems when used with `--self-contained`.) See #609.
8369 + `--number-sections` now works properly.
8370 + Don't strip meta and link elements in epub metadata.
8371 Patch from aberrancy. Closes #589.
8372 + Fixed a couple validation bugs.
8373 + Use ch001, ch002, etc. for chapter filenames. This improves sorting
8374 of chapters in some readers, which apparently sort ch2 after ch10.
8377 * ODT writer: properly set title property (Arlo O'Keeffe).
8381 + Fixed bug with nested lists. Previously a list like
8388 would come out with a bullet instead of "2."
8389 Thanks to Russell Allen for reporting the bug.
8390 + Use `w:cr` in `w:r` instead of `w:br` for linebreaks.
8391 This seems to fix a problem viewing pandoc-generated
8392 docx files in LibreOffice.
8393 + Use integer ids for bookmarks. Closes #626.
8394 + Added nsid to abstractNum elements. This helps when merging
8395 word documents with numbered or bulleted lists. Closes #627.
8396 + Use separate footnotes.xml for notes.
8397 This seems to help LibreOffice convert the file, even though
8398 it was valid docx before. Closes #637.
8399 + Use rIdNN identifiers for r:embed in images.
8400 + Avoid reading image files again when we've already processed them.
8401 + Fixed typo in `referenc.docx` that prevented image captions from
8402 working. Thanks to Huashan Chen.
8404 * `Text.Pandoc.Parsing`:
8406 + Fixed bug in `withRaw`, which didn't correctly handle the case
8407 where nothing is parsed.
8408 + Made `emailAddress` parser more correct. Now it is based on RFC 822,
8409 though it still doesn't implement quoted strings in email addresses.
8410 + Revised URI parser. It now allows many more schemes, allows
8411 uppercase URIs, and better handles trailing punctuation and
8412 trailing slashes in bare URIs. Added many tests.
8413 + Simplified and improved singleQuoteStart. This makes `'s'`, `'l'`,
8414 etc. parse properly. Formerly we had some English-centric heuristics,
8415 but they are no longer needed. Closes #698.
8417 * `Text.Pandoc.Pretty`: Added wide punctuation range to `charWidth`.
8418 This fixes bug with Chinese commas in markdown and reST tables, and
8419 a bug that caused combining characters to be dropped.
8421 * `Text.Pandoc.MIME`: Added MIME types for .wof and .eot. Closes #640.
8423 * `Text.Pandoc.Biblio`:
8425 + Run `mvPunc` and `deNote` on metadata too.
8426 This fixed a bug with notes on titles using footnote styles.
8427 + Fixed bug in fetching CSL files from CSL data directory.
8429 * `pandoc.hs`: Give correct value to `writerSourceDirectory` when a URL
8430 is provided. It should be the URL up to the path.
8432 * Fixed/simplified diff output for tests.
8433 Biblio: Make sure mvPunc and deNote run on metadata too.
8434 This fixed a bug with notes on titles using footnote styles.
8436 [under the hood improvements]
8438 * We no longer depend on `utf8-string`. Instead we use functions
8439 defined in `Text.Pandoc.UTF8` that use `Data.Text`'s conversions.
8441 * Use `safeRead` instead of using `reads` directly (various modules).
8443 * "Implicit figures" (images alone in a paragraph) are now handled
8444 differently. The markdown reader gives their titles the prefix `fig:`; the
8445 writers look for this before treating the image as a figure. Though this
8446 is a bit of a hack, it has two advantages: (i) implicit figures can be
8447 limited to the markdown reader, and (ii) they can be deactivated by turning
8448 off the `implicit_figures` extension.
8450 * `catch` from `Control.Exception` is now used instead of the
8451 old Preface `catch`.
8453 * `Text.Pandoc.Shared`: Improved algorithm for `normalizeSpaces`
8454 and `oneOfStrings` (which is now non-backtracking).
8456 * `Text.Pandoc.Biblio`: Remove workaround for `toCapital`.
8457 Now citeproc-hs is fixed upstream, so this is no longer needed.
8460 * Textile reader: Improved speed of `hyphenedWords`.
8461 This speeds up the textile reader by about a factor of 4.
8463 * Use `Text.Pandoc.Builder` in RST reader, for more flexibility,
8464 better performance, and automatic normalization.
8466 * Major rewrite of markdown reader:
8468 + Use `Text.Pandoc.Builder` instead of lists. This also
8469 means that everything is normalized automatically.
8470 + Move to a one-pass parsing strategy, returning values in the reader
8471 monad, which are then run (at the end of parsing) against the final
8474 * In HTML writer, we now use `toHtml` instead of pre-escaping.
8475 We work around the problem that blaze-html unnecessarily escapes `'`
8476 by pre-escaping just the `'` characters, instead of the whole string.
8477 If blaze-html later stops escaping `'` characters, we can simplify
8478 `strToHtml` to `toHtml`. Closes #629.
8480 * Moved code for embedding images in RTFs from `pandoc.hs` to the
8481 RTF writer (which now exports `writeRTFWithEmbeddedImages`).
8483 * Moved citation processing from `pandoc.hs` into the readers.
8484 This makes things more convenient for library users.
8486 * The man pages are now built by an executable `make-pandoc-man-pages`,
8487 which has its own stanza in the cabal file so that dependencies can be
8488 handled by Cabal. Special treatment in `Setup.hs` ensures that this
8489 executable never gets installed; it is only used to create the man pages.
8491 * The cabal file has been modified so that the pandoc library is used
8492 in building the pandoc executable. (This required moving `pandoc.hs`
8493 from `src` to `.`.) This cuts compile time in half.
8495 * `-O2` is no longer used in building pandoc. The performance improvement
8496 it yields is so slight that it is not worth it. (Measured with
8497 benchmarks on ghc 7.4.)
8499 * The `executable` and `library` flags have been removed.
8501 * `-threaded` has been removed from ghc-options.
8503 * Version bounds of dependencies have been raised, and the
8504 `blaze_html_0_5` flag now defaults to True. Pandoc now compiles on
8507 * We now require base >= 4.2.
8509 * Integrated the benchmark program into cabal. One can now do:
8511 cabal configure --enable-benchmarks && cabal build
8512 cabal bench --benchmark-option='markdown' --benchmark-option='-s 20'
8514 The benchmark now uses README + testsuite, so benchmark results
8515 from older versions aren't comparable.
8517 * Integrated test suite with cabal.
8518 To run tests, configure with `--enable-tests`, then `cabal test`.
8519 You can specify particular tests using `--test-options='-t markdown'`.
8520 No output is shown unless tests fail. The Haskell test modules
8521 have been moved from `src/` to `tests/`.
8523 * Moved all data files and templates to the `data/` subdirectory.
8525 * Added an `embed_data_files` cabal flag. This causes all
8526 data files to be embedded in the binary, so that the binary
8527 is self-sufficient and can be relocated anywhere, copied on
8528 a USB key, etc. The Windows installer now uses this.
8529 (Since we no longer have the option to build the executable
8530 without the library, this is the only way to get a relocatable
8533 * Removed pcre3.dll from windows package.
8534 It isn't needed unless highlighting-kate is compilled with the
8535 `pcre-light` flag. By default, regex-prce-builtin is used.
8540 * Don't encode/decode file paths if base >= 4.4.
8541 Prior to base 4.4, filepaths and command line arguments were treated
8542 as unencoded lists of bytes, not unicode strings, so we had to work
8543 around that by encoding and decoding them. This commit adds CPP
8544 checks for the base version that intelligibly enable encoding/decoding
8545 when needed. Fixes a bug with multilingual filenames when pandoc was
8546 compiled with ghc 7.4 (#540).
8548 * Don't generate an empty H1 after hrule slide breaks.
8549 We now use a slide-level header with contents `[Str "\0"]` to mark
8550 an hrule break. This avoids creation of an empty H1 in these
8551 contexts. Closes #484.
8553 * Docbook reader: Added support for "bold" emphasis. Thanks to Mauro Bieg.
8555 * In make_osx_package.sh, ensure citeproc-hs is built with the
8556 embed_data_files flag.
8558 * MediaWiki writer: Avoid extra blank lines after sublists (Gavin Beatty).
8560 * ConTeXt writer: Don't escape `&`, `^`, `<`, `>`, `_`,
8561 simplified escapes for `}` and `{` to `\{` and `\}` (Aditya Mahajan).
8563 * Fixed handling of absolute URLs in CSS imports with `--self-contained`.
8566 * Added webm to mime types. Closes #543.
8568 * Added some missing exports and tests to the cabal file
8569 (Alexander V Vershilov).
8571 * Compile with `-rtsopts` and `-threaded` by default.
8575 * Markdown reader: Added `cf.` and `cp.` to list of likely abbreviations.
8577 * LaTeX template: Added `linkcolor`, `urlcolor` and `links-as-notes`
8578 variables. Make TOC links black.
8580 * LaTeX template improvements.
8582 + Don't print date unless one is given explicitly in the document.
8583 + Simplified templates.
8584 + Use fontenc [T1] by default, and lmodern.
8585 + Use microtype if available.
8589 + Add comma to beginning of bare suffix, e.g. `@item1 [50]`.
8590 Motivation: `@item1 [50]` should be as close as possible to
8592 + Added workaround for a bug in citeproc-hs 0.3.4 that causes footnotes
8593 beginning with a citation to be empty. Closes #531.
8595 * Fixed documentation on mixed lists. Closes #533.
8599 * Simplified `Text.Pandoc.Biblio` and fixed bugs with citations inside
8600 footnotes and captions. We now handle note citations by inserting
8601 footnotes during initial citation processing, and doing a separate
8602 pass later to remove notes inside notes.
8604 * Added 'zenburn' highlight style from highlighting-kate.
8606 * Added Slideous writer. Slideous is an HTML + javascript slide show
8607 format, similar to Slidy, but works with IE 7. (Jonas Smedegaard)
8611 + Ensure we don't have extra blank lines at ends of cells.
8612 This can cause LaTeX errors, as they are interpreted as new paragraphs.
8613 + More consistent interblock spacing.
8614 + Require highlighting-kate >= 0.5.1, for proper highlighted inline
8615 code in LaTeX. Closes #527.
8616 + Ensure that a Verbatim at the end of a footnote is followed by
8617 a newline. (Fixes a regression in the previous version.)
8618 + In default template, use black for internal links and TOC.
8619 Added commented-out code to use footnotes for links, as would
8620 be suitable in print output.
8622 * Beamer writer: When `--incremental` is used, lists inside
8623 a block quote should appear all at once. (This makes Beamer
8624 output consistent with the HTML slide show formats.)
8628 + Escape `%` as `\letterpercent{}` not `\letterpercent `,
8629 to avoid gobbling spaces after the `%` sign.
8630 + Ensure space after `\stopformula`.
8634 + Use `:` form instead of `~` in definition lists, for better
8635 compatibility with other markdown implementations.
8636 + Don't wrap the term, because it breaks definition lists.
8637 + Use a nonzero space to prevent false recognition
8638 of list marker in ordered lists. Closes #516.
8640 * Org writer: Add space before language name. Closes #523.
8642 * Docx writer: Simplified bullet characters so they work properly
8643 with Word 2007. Closes #520.
8645 * LaTeX reader: Support `\centerline`.
8647 * RST reader: handle figures. Closes #522.
8649 * Textile reader: fix for `<notextile>` and `==`. Closes #517.
8654 * Fixed bug in `fromEntities`. The previous version would turn
8655 `hi & low you know;` into `hi &`.
8659 + Don't skip nonbreaking spaces.
8660 Previously a paragraph containing just ` ` would be rendered
8661 as an empty paragraph. Thanks to Paul Vorbach for pointing out the bug.
8662 + Support `<col>` and `<caption>` in tables. Closes #486.
8666 + Don't recognize references inside delimited code blocks.
8667 + Allow list items to begin with lists.
8669 * Added basic docbook reader (John MacFarlane and Mauro Bieg).
8673 + Handle `\bgroup`, `\egroup`, `\begingroup`, `\endgroup`.
8674 + Control sequences can't be followed by a letter.
8675 This fixes a bug where `\begingroup` was parsed as `\begin`
8676 followed by `group`.
8677 + Parse 'dimension' arguments to unknown commands. e.g. `\parindent0pt`
8678 + Make `\label` and `\ref` sensitive to `--parse-raw`.
8679 If `--parse-raw` is selected, these will be parsed as raw latex
8680 inlines, rather than bracketed text.
8681 + Don't crash on unknown block commands (like `\vspace{10pt}`)
8682 inside `\author`; just skip them. Closes #505.
8686 + Implemented literal escapes with `==` and `<notextile>`. Closes #473.
8687 + Added support for LaTeX blocks and inlines (Paul Rivier).
8688 + Better conformance to RedCloth inline parsing (Paul Rivier).
8689 + Parse '+text+' as emphasized (should be underlined, but this
8690 is better than leaving literal plus characters in the output.
8692 * Docx writer: Fixed multi-paragraph list items. Previously they each
8693 got a list marker. Closes #457.
8697 + Added `--no-tex-ligatures` option to avoid replacing
8698 quotation marks and dashes with TeX ligatures.
8699 + Use `fixltx2e` package to provide '\textsubscript'.
8700 + Improve spacing around LaTeX block environments:
8701 quote, verbatim, itemize, description, enumerate.
8703 + Use blue instead of pink for URL links in latex/pdf output.
8705 * ConTeXt writer: Fixed escaping of `%`.
8706 In text, `%` needs to be escaped as `\letterpercent`, not `\%`
8707 Inside URLs, `%` needs to be escaped as `\%`
8708 Thanks to jmarca and adityam for the fix. Closes #492.
8710 * Texinfo writer: Escape special characters in node titles.
8711 This fixes a problem pointed out by Joost Kremers. Pandoc used
8712 to escape an '@' in a chapter title, but not in the corresponding
8713 node title, leading to invalid texinfo.
8715 * Fixed document encoding in texinfo template.
8716 Resolves Debian Bug #667816.
8720 + Don't force delimited code blocks to be flush left.
8721 Fixes bug with delimited code blocks inside lists etc.
8722 + Escape `<` and `$`.
8724 * LaTeX writer: Use `\hyperref[ident]{text}` for internal links.
8725 Previously we used `\href{\#ident}{text}`, which didn't work on
8726 all systems. Thanks to Dirk Laurie.
8728 * RST writer: Don't wrap link references. Closes #487.
8730 * Updated to use latest versions of blaze-html, mtl.
8737 + Made `lstlisting` work as a proper verbatim environment.
8738 + Fixed bug parsing LaTeX tables with one column.
8742 + Use `{}` around `ctable` caption, so that formatting can be used.
8743 + Don't require eurosym package unless document has a €.
8745 * LaTeX template: Added variables for `geometry`, `romanfont`,
8746 `sansfont`, `mathfont`, `mainfont` so users can more easily
8751 + Run latex engine at least two times, to ensure
8752 that PDFs will have hyperlinked bookmarks.
8753 + Added PDF metadata (title,author) in LaTeX standalone + PDF output.
8755 * Texinfo writer: retain directories in image paths. (Peter Wang)
8757 * RST writer: Better handling of inline formatting, in accord
8758 with docutils' "inline markup recognition rules" (though we don't
8759 implement the unicode rules fully). Now `hi*there*hi` gets
8760 rendered properly as `hi\ *there*\ hi`, and unnecessary
8761 `\ ` are avoided around `:math:`, `:sub:`, `:sup:`.
8765 + Parse `\ ` as null, not escaped space.
8766 + Allow `` :math:`...` `` even when not followed by blank
8767 or `\`. This does not implement the complex rule docutils follows,
8768 but it should be good enough for most purposes.
8769 + Add support for the rST default-role directive. (Greg Maslov)
8771 * Text.Pandoc.Parsing: Added `stateRstDefaultRole` field to `ParserState`.
8774 * Markdown reader: Properly handle citations nested in other inline
8777 * Markdown writer: don't replace empty alt in image with "image".
8779 * DZSlides: Updated template.html and styles in default template.
8780 Removed bizarre CSS for `q` in dzslides template.
8782 * Avoid repeated `id` attribute in section and header in HTML slides.
8784 * README improvements: new instructions on internal links,
8785 removed misleading note on reST math.
8789 + Fixed Windows installer so that dzslides works.
8790 + Removed stripansi.sh.
8791 + Added .travis.yml for Travis continuous integration support..
8792 + Fixed upper bound for zlib (Sergei Trofimovich).
8793 + Fixed upper bound for test-framework.
8794 + Updated haddocks for haddock-2.10 (Sergei Trofimovich).
8798 * Added `beamer+lhs` as output format.
8800 * Don't escape `<` in `<style>` tags with `--self-contained`.
8801 This fixes a bug which prevented highlighting from working
8802 when using `--self-contained`.
8804 * PDF: run latex engine three times if `--toc` specified.
8805 This fixes page numbers in the table of contents.
8807 * Docx writer: Added TableNormal style to tables.
8809 * LaTeX math environment fixes. `aligned` is now used instead of
8810 the nonexistent `aligned*`. `multline` instead of the nonexistent
8813 * LaTeX writer: Use `\textasciitilde` for literal `~`.
8815 * HTML writer: Don't escape contents of EQ tags with --gladtex.
8816 This fixes a regression from 1.8.
8818 * Use `<q>` tags for Quoted items for HTML5 output.
8819 The quote style can be changed by modifying the template
8820 or including a css file. A default quote style is included.
8822 * LaTeX reader: Fixed accents (\~{a}, `\c{c}`).
8823 Correctly handle \^{}. Support "minted" as a LaTeX verbatim block.
8825 * Updated LaTeX template for better language support.
8826 Use `polyglossia` instead of `babel` with xetex.
8827 Set `lang` as documentclass option.
8828 `\setmainlanguage` will use the last of a comma-separated
8829 list of languages. Thanks to François Gannaz.
8831 * Fixed default LaTeX template so `\euro` and `€` work. The
8832 `eurosym` package is needed if you are using pdflatex.
8834 * Fixed escaping of period in man writer (thanks to Michael Thompson).
8836 * Fixed list label positions in beamer.
8838 * Set `mainlang` variable in context writer.
8839 This parallels behavior of latex writer. `mainlang` is the last
8840 of a comma-separated list of languages in lang.
8842 * EPUB language metadat: convert e.g. `en_US` from locale to `en-US`.
8844 * Changed `-V` so that you can specify a key without a value.
8845 Such keys get the value `true`.
8847 * Fixed permissions on installed man pages - thanks Magnus Therning.
8849 * Windows installer: require XP or higher. The installer is
8850 now compiled on a Windows 7 machine, which fixes a problem
8851 using citation functions on Windows 7.
8853 * OSX package: Check for 64-bit Intel CPU before installing.
8857 * Better handling of raw latex environments in markdown. Now
8863 turns into a raw latex block as expected.
8865 * Improvements to LaTeX reader:
8867 + Skip options after block commands.
8868 + Correctly handle `{\\}` in braced.
8869 + Added a needed 'try'.
8870 + Citations: add `, ` to suffix if it doesn't start with space or
8871 punctuation. Otherwise we get no space between the year and the
8872 suffix in author-date styles.
8874 * Added two needed data files for S5. This fixes a problem with
8875 `pandoc -t s5 --self-contained`. Also removed `slides.min.js`,
8876 which was no longer being used.
8878 * Fixed some minor problems in `reference.docx`:
8879 name on "Date" style, `xCs` instead of `xIs`.
8881 * Fixed a problem creating docx files using a reference docx
8882 modified using Word. The problem seems to be that Word
8883 modifies `_rels/.rels`, changing the Type of the Relationship to
8884 `docProps/core.xml`. Pandoc now changes this back to the correct
8885 value if it has been altered, fixing the problem.
8887 * Fixed html5 template so it works properly with highlighting.
8893 + Fixed regression in 1.9; properly handle escaped $ in latex math.
8894 + Put LaTeX verse environments in blockquotes.
8898 + Limit nesting of strong/emph. This avoids exponential lookahead
8899 in parasitic cases, like `a**a*a**a*a**a*a**a*a**a*a**a*a**a*a**`.
8900 + Improved attributes syntax (inn code blocks/spans):
8901 (1) Attributes can contain line breaks. (2) Values in key-value
8902 attributes can be surrounded by either double or single quotes, or
8903 left unquoted if they contain no spaces.
8905 * Don't wrap headers in markdown or RST writers.
8907 * Added `stateMaxNestingLevel` to `ParserState`.
8908 We set this to 6, so you can still have `Emph` inside `Emph`,
8909 just not indefinitely.
8911 * More efficient implementation of `nowrap` in `Text.Pandoc.Pretty`.
8913 * `Text.Pandoc.PDF`: Only run latex twice if `\tableofcontents`
8916 * Require highlighting-kate >= 0.5.0.2, texmath >= 0.6.0.2.
8920 * Changed cabal file so that build-depends for the test program
8921 are not required unless the tests flag is used.
8923 * LaTeX writer: insert `{}` between adjacent hyphens so they don't
8924 form ligatures (dashes) in code spans.
8928 * Raised version bound on test-framework to avoid problems
8929 compiling tests on GHC 7.4.1.
8931 * LaTeX reader: Use raw LaTeX as fallback inline text for Cites,
8932 so citations don't just disappear unless you process with
8933 citeproc. Ignore `\bibliographystyle`, `\nocite`.
8935 * Simplified tex2pdf; it will always run latex twice to
8936 resolve table of contents and hyperrefs.
8940 * Require Cabal >= 1.10.
8941 * Tweaked cabal file to meet Cabal 1.10 requirements.
8945 * Allow build with json 0.4 or 0.5. Otherwise we can't build with
8952 * Added a Microsoft Word `docx` writer. The writer includes support
8953 for highlighted code and for math (which is converted from TeX to OMML,
8954 Office's native math markup language, using texmath's new OMML module).
8955 A new option `--reference-docx` allows the user to customize the
8958 * Added an `asciidoc` writer (<http://www.methods.co.nz/asciidoc/>).
8960 * Better support for slide shows:
8962 + Added a `dzslides` writer. DZSlides is a lightweight HTML5/javascript
8963 slide show format due to Paul Rouget (<http://paulrouget.com/dzslides/>).
8965 + Added a LaTeX `beamer` writer. Beamer is a LaTeX package for creating
8966 slide presentations.
8968 + New, flexible rules for dividing documents into sections and slides
8969 (see the "Structuring the slide show" in the User's Guide). These
8970 are backward-compatible with the old rules, but they allow slide
8971 shows to be organized into sections and subsections containing
8974 + A new `--slide-level` option allows users to override defaults
8975 and select a slide level below the first header level with content.
8977 * A new `--self-contained` option produces HTML output that does not
8978 depend on an internet connection or the presence of any external
8979 files. Linked images, CSS, and javascript is downloaded (or fetched
8980 locally) and encoded in `data:` URIs. This is useful for making portable
8981 `HTML slide shows. The --offline` option has been deprecated and is now
8982 `treated as a synonym or --self-contained`.
8984 * Support for PDF output:
8986 + Removed the old `markdown2pdf`.
8987 + `pandoc` can now create PDFs (assuming you have latex and a set of
8988 appropriate packages installed): just specify an output file with the
8990 + A new option `--latex-engine` allows you to specify `pdflatex`,
8991 `xelatex`, or `lualatex` as the processor.
8993 * Highlighting changes:
8995 + Syntax highlighting is now a standard feature; the `highlighting`
8996 flag is no longer needed when compiling.
8997 + A new `--no-highlight` option allows highlighting to be disabled.
8998 + Highlighting now works in `docx`, `latex`, and `epub`, as well as
8999 `html`, `html5`, `dzslides`, `s5`, and `slidy`.
9000 + A new `--highlight-style` option selects between various highlighting
9003 * Internal links to sections now work in ConTeXt and LaTeX as well as HTML.
9005 * LaTeX `\include` and `\usepackage` commands are now processed,
9006 provided the files are in the working directory.
9008 * EPUB improvements:
9010 + Internal and external links now work in EPUB.
9011 + Raw HTML is allowed.
9012 + New `--epub-embed-font` option.
9013 + Customizable templates for EPUB pages offer more control over
9014 formatting: `epub-page.html`, `epub-coverimage.html`,
9015 `epub-titlepage.html`.
9017 * `--mathml` now works with DocBook.
9019 * Added support for math in RST reader and writer. Inline math uses the
9020 `` :math:`...` `` construct. Display math uses
9024 or if the math is multiline,
9030 These constructions are now supported now by `rst2latex.py`.
9032 * GitHub syntax for fenced code blocks is supported in pandoc's
9033 markdown. You can now write
9045 * Easier scripting: a new `toJsonFilter` function makes it easier to
9046 write Haskell scripts to manipulate the Pandoc AST.
9050 * Fixed parsing of consecutive lists in markdown.
9051 Pandoc previously behaved like Markdown.pl for consecutive
9052 lists of different styles. Thus, the following would be parsed
9053 as a single ordered list, rather than an ordered list followed
9054 by an unordered list:
9062 This change makes pandoc behave more sensibly, parsing this as
9063 two lists. Any change in list type (ordered/unordered) or in
9064 list number style will trigger a new list. Thus, the following
9065 will also be parsed as two lists:
9073 Since we regard this as a bug in Markdown.pl, and not something
9074 anyone would ever rely on, we do not preserve the old behavior
9075 even when `--strict` is selected.
9077 * Dashes work differently with `--smart`: `---` is always em-dash,
9078 and `--` is always en-dash. Pandoc no longer tries to guess when
9079 `-` should be en-dash. *Note:* This may change how existing documents
9080 look when processed with pandoc. A new option, `--old-dashes`,
9081 is provided for legacy documents.
9083 * The markdown writer now uses setext headers for levels 1-2.
9084 The old behavior (ATX headers for all levels) can be restored
9085 using the new `--atx-headers` option.
9087 * Links are now allowed in markdown image captions. They are also
9088 allowed in links, but will appear there as regular text. So,
9090 [link with [link](/url)](/url)
9094 <p><a href="/url">link with link</a></p>
9096 * Improved handling of citations using `citeproc-hs-0.3.4`.
9097 Added `--citation-abbreviations` option.
9099 * Citation keys can no longer end with a punctuation character.
9100 This means that `@item1.` will be parsed as a citation with key
9101 'item1', followed by a period, instead of a citation with key
9102 'item1.', as was the case previously.
9104 * In HTML output, citations are now put in a span with class `citation`.
9106 * The markdown reader now recognizes DocBook block and inline tags.
9107 It was always possible to include raw DocBook tags in a markdown
9108 document, but now pandoc will be able to distinguish block from
9109 inline tags and behave accordingly. Thus, for example,
9115 will not be wrapped in `<para>` tags.
9117 * The LaTeX parser has been completely rewritten; it is now much more
9118 accurate, robust, and extensible. However, there are two important
9119 changes in how it treats unknown LaTeX. (1) Previously, unknown
9120 environments became BlockQuote elements; now, they are treated
9121 as "transparent", so `\begin{unknown}xyz\end{unknown}` is the
9122 same as `xyz`. (2) Previously, arguments of unknown commands
9123 were passed through with their braces; now the braces are stripped
9126 * `--smart` is no longer selected automatically with `man` output.
9128 * The deprecated `--xetex` option has been removed.
9130 * The `--html5`/`-5` option has been deprecated. Use `-t html5`
9131 instead. `html5` and `html5+lhs` are now separate output formats.
9133 * Single quotes are no longer escaped in HTML output. They do not
9134 need to be escaped outside of attributes.
9136 * Pandoc will no longer transform leading newlines in code
9137 blocks to `<br/>` tags.
9139 * The ODT writer now sizes images appropriately, using the image
9140 size and DPI information embedded in the image.
9142 * `--standalone` is once again implicitly for a non-text output format
9143 (ODT, EPUB). You can again do `pandoc test.txt -o test.odt`
9144 and get a standalone ODT file.
9146 * The Docbook writer now uses `<sect1>`, `<sect2>`, etc. instead of
9149 * The HTML writer now uses `<del>` for strikeout.
9151 * In HTML output with `--section-divs`, the classes `section` and
9152 `level[1,2,..6]` are put on the `div` tags so they can be styled.
9153 In HTML 5 output with `--section-divs`, the classes
9154 `level[1,2,...6]` are put on `section` tags.
9156 * EPUB writer changes:
9158 + The `lang` variable now sets the language
9159 in the metadata (if it is not set, we default to the locale).
9160 + EPUB: UTF-8 is used rather than decimal entities.
9162 * Added `titleslide` class to title slide in S5 template.
9164 * In HTML, EPUB, and docx metadata, the date is normalized into
9165 YYYY-MM-DD format if possible. (This is required for validation.)
9167 * Attributes in highlighted code blocks are now preserved in HTML.
9168 The container element will have the classes, id, and key-value attributes
9169 you specified in the delimited code block. Previously these were stripped
9172 * The reference backlink in the HTML writer no longer has a special
9173 `footnoteBacklink` class.
9175 * The HTML template has been split into `html` and `html5` templates.
9177 * Author and date are treated more consistently in HTML templates.
9178 Authors are now `<h2>`, date `<h3>`.
9180 * URLs are hyphenated in the ConTeXt writer (B. Scott Michel).
9182 * In `Text.Pandoc.Builder`, `+++` has been replaced by `<>`.
9186 * Better support for combining characters and East Asian wide characters
9187 in markdown and reST.
9189 * Better handling of single quotes with `--smart`.
9190 Previously `D'oh l'*aide*` would be parsed with left and right single
9191 quotes instead of apostrophes. This kind of error is now fixed.
9193 * Highlighting: Use `reads` instead of `read` for better error handling.
9194 Fixes crash on `startNum="abc"`.
9196 * Added blank comment after directives in rst template.
9198 * Unescape entities in citation `refId`. The `refId`s coming
9199 from citeproc contain XML numeric entities, and these don't match with the
9200 citation keys parsed by pandoc. Solution is to unescape them.
9202 * HTML reader: Fixed bug parsing tables with both thead and tbody.
9206 + Better handling of escapes in link URLs and titles.
9207 + Fixed backslash escapes in reference links.
9208 + Fixed bug in table/hrule parsing, by checking that the top
9209 line of a table is not followed by a blank line. This bug caused
9210 slowdowns on some files with hrules and tables, as pandoc tried to
9211 interpret the hrules as the tops of multiline tables.
9212 + Fixed bug in code block attribute parser. Previously the ID attribute
9213 got lost if it didn't come first. Now attributes can come in any order.
9215 * RST reader: allow footnotes followed by newline without space characters.
9219 + Ignore empty groups {}, { }.
9220 + LaTeX reader: Handle \@.
9221 + LaTeX reader: Don't crash on commands like `\itemsep`.
9222 + LaTeX reader: Better handling of letter environments.
9224 * RST writer: Fixed bug involving empty table cells. isSimple was being
9225 calculated in a way that assumed there were no non-empty cells.
9229 + Made `--toc` work even without `--number-sections`.
9230 + Escape # in link URLs.
9231 + Use buffering for footnotes containing code blocks.
9232 + Changed 'descr' to 'description', fixed alignment.
9236 + Escape euro character.
9237 + Don't escape ~ inside href{...}.
9238 + Escape # in href URLs.
9239 + Improved detection of book classes. We now check the
9240 `documentclass` variable, and if that is not set, we look through
9241 the template itself. Also, we have added the KOMA classes scrreprt
9242 and scrbook. You can now make a book using
9243 `pandoc -V documentclass:book mybook.txt -o mybook.pdf`
9244 + LHS files now set the "listings" variable, so that the definition
9245 of the `code` environment will be included in the template.
9246 + Links are colored blue by default (this can be changed by
9247 modifying `hyperref` settings in the template).
9248 + Added `lang` variable to LaTeX template.
9252 + Fixed bug in HTML template with html5 and mathml.
9253 + Don't use self-closing img, br, hr tags for HTML5.
9254 + Use `<section>` for footnotes if HTML5.
9255 + Update HTML templates to use Content-Style-Type meta tag.
9256 + Use separate variables for meta-date, meta-author.
9257 This makes footnotes work in author and date fields.
9258 + Use 'vertical-align:middle' in WebTeX math for better alignment.
9260 * S5/slidy writer: Make footnotes appear on separate slide at end.
9262 * MIME: Added 'layout-cache' to getMimeType. This ensures that the
9263 META-INF/manifest.xml for ODT files will have everything it needs, so
9264 that ODT files modified by LibreOffice can be used as `--reference-odt`.
9266 * `Text.Pandoc.Templates`: Return empty string for json template.
9268 * `Text.Pandoc.Biblio`:
9270 + Expand citations recursively inside nested inlines.
9271 + Treat `\160` as space when parsing locator and suffix.
9272 This fixes a bug with "p. 33" when `--smart` is used. Previously
9273 the whole "p. 33" would be included in the suffix, with no locator.
9274 + Put whole author-in-text citation in a Cite. Previously just the
9275 date and other info went in the Cite.
9276 + Don't add comma+space to prefix if it ends in punctuation.
9278 * Updated chicago-author-date.csl. The old version did not work
9279 properly for edited volumes with no author.
9283 + Add date to EPUB titlepage and metadata.
9284 + Added TOC identifier in EPUB page template.
9285 + Don't generate superfluous file `cover-image.jpg`.
9287 [under the hood improvements]
9289 * Modified `make_osx_package.sh` to use cabal-dev.
9290 Items are no longer installed as root.
9291 Man pages are zipped and given proper permissions.
9293 * Modified windows installer generater to use cabal-dev.
9295 * Setup: Making man pages now works with cabal-dev (at least on OSX). In
9296 Setup.hs we now invoke 'runghc' in a way that points it to the correct
9297 package databases, instead of always falling back to the default user
9300 * Updated to work with GHC 7.4.1.
9302 * Removed dependency on old-time.
9304 * Removed dependency on dlist.
9306 * New slidy directory for "self-contained."
9308 * TeXMath writer: Use unicode thin spaces for thin spaces.
9310 * Markdown citations: don't strip off initial space in locator.
9314 * Removed `Apostrophe`, `EmDash`, `EnDash`, and `Ellipses`
9315 from the native `Inline` type in pandoc-types. Now we use `Str`
9316 elements with unicode.
9318 * Improvements to `Text.Pandoc.Builder`:
9320 + `Inlines` and `Blocks` are now newtypes (not synonyms for
9322 + Instances are defined for `IsString`, `Show`, `Read`, `Monoid`,
9323 and a new `Listable` class, which allows these to be manipulated
9324 to some extent like lists. Monoid append includes automatic
9326 + `+++` has been replaced by `<>` (mappend).
9328 * Use blaze-html instead of xhtml for HTML generation.
9329 This changes the type of `writeHtml`.
9331 * `Text.Pandoc.Shared`:
9333 + Added `warn` and `err`.
9334 + Removed `unescapeURI`, modified `escapeURI`.
9335 (See under [behavior changes], above.)
9337 * Changes in URI escaping: Previously the readers escaped URIs by
9338 converting unicode characters to octets and then percent encoding.
9339 Now unicode characters are left as they are, and `escapeURI` only
9340 percent-encodes space characters. This gives more readable
9341 URIs, and works well with modern user agents. URIs are no longer unescaped
9342 at all on conversion to `markdown`, `asciidoc`, `rst`, `org`.
9344 * New module `Text.Pandoc.SelfContained`.
9346 * New module `Text.Pandoc.Docx`.
9348 * New module `Text.Pandoc.PDF`.
9350 * Added `writerBeamer` to `WriterOptions`.
9352 * Added `normalizeDate` to `Text.Pandoc.Shared`.
9354 * Added `splitStringWithIndices` in `Text.Pandoc.Shared`.
9355 This is like `splitWithIndices`, but it is sensitive to distinctions
9356 between wide, combining, and regular characters.
9358 * `Text.Pandoc.Pretty`:
9360 + Added `chomp` combinator.
9361 + Added `beforeNonBreak` combinator. This allows you to include
9362 something conditionally on it being before a nonblank.
9363 Used for RST inline math.
9364 + Added `charWidth` function. All characters marked W or F in the unicode
9365 spec EastAsianWidth.txt get width 2.
9366 + Added `realLength`, based on `charWidth`. `realLength` is now
9367 used in calculating offsets.
9369 * New module `Text.Pandoc.Slides`, for common functions for breaking
9370 a document into slides.
9372 * Removed `Text.Pandoc.S5`, which is no longer needed.
9374 * Removed `Text.Pandoc.CharacterReferences`. Moved
9375 `characterReference` to `Text.Pandoc.Parsing`.
9376 `decodeCharacterReferences` is replaced by `fromEntities`
9377 in `Text.Pandoc.XML`.
9379 * Added `Text.Pandoc.ImageSize`. This is intened for use
9380 in `docx` and `odt` writers, so the size and dpi of images
9383 * Removed `writerAscii` in `WriterOptions`.
9385 * Added `writerHighlight` to `WriterOptions`.
9387 * Added `DZSlides` to `HTMLSlideVariant`.
9389 * `writeEPUB` has a new argument for font files to embed.
9391 * Added `stateLastStrPos` to `ParserState`. This lets us keep track
9392 of whether we're parsing the position immediately after a regular
9393 (non-space, non-symbol) string, which is useful for distinguishing
9394 apostrophes from single quote starts.
9396 * `Text.Pandoc.Parsing`:
9398 + `escaped` now returns a `Char`.
9399 + Removed `charsInBalanced'`, added a character parser as
9400 a parameter of `charsInBalanced`. This is needed for
9401 proper handling of escapes, etc.
9404 * Added `toEntities` to `Text.Pandoc.XML`.
9406 * `Text.Pandoc.Readers.LaTeX`:
9408 + Export `handleIncludes`.
9409 + Export `rawLaTeXBlock` instead of `rawLaTeXEnvironment'`.
9411 * Added `ToJsonFilter` class and `toJsonFilter` function to
9412 `Text.Pandoc`, deprecating the old `jsonFilter` function.
9414 * `Text.Pandoc.Highlighting`:
9416 + Removed `highlightHtml`, `defaultHighlightingCss`.
9417 + Export `formatLaTeXInline`, `formatLaTeXBlock`, and `highlight`, plus
9418 key functions from highlighting-kate.
9419 + Changed types of highlighting function. `highlight` returns a
9420 `Maybe`, not an `Either`.
9424 * Relaxed cabal consntraints for test-framework (S. Trofimovich).
9426 * Relaxed cabal constraints for pandoc-types.
9428 * Adjusted Arbitrary instance to help avoid timeouts in tests.
9430 * Added `Tests.Writers.Markdown` to cabal file.
9434 * Added script to produce OS X package.
9436 * Made `templates` directory a git submodule. This should make it
9437 easier for people to revise their custom templates when the default
9440 * Changed template naming scheme: `FORMAT.template` -> `default.FORMAT`.
9441 **Note:** If you have existing templates in `~/.pandoc/templates`, you
9442 must rename them to conform to the new scheme!
9444 * Fixed smart quotes bug, now handling `'...hi'` properly.
9448 + Partial support for labeled footnotes.
9449 + Improved accuracy of `simpleReferenceName` parser.
9453 + Substitute correct unicode characters for
9454 characters in the 128..159 range, which are often found even in
9455 HTML that purports to be UTF-8.
9457 * LaTeX reader: Handle `\subtitle` command (a subtitle is added
9458 to the title, after a colon and linebreak). Closes #280.
9460 * Leaner `reference.odt`.
9462 * Added unexported module `Text.Pandoc.MIME` for use in
9465 * ODT writer: Construct `manifest.xml` based on archive contents.
9466 This fixes a bug in ODTs containing images. Recent versions of
9467 LibreOffice would reject these as corrupt, because `manifest.xml`
9468 did not contain a reference to the image files.
9472 + Make verbatim environments flush to avoid spurious
9473 blank lines. Closes #277.
9474 + Use `\texttt` and escapes insntead of `\verb!...!`, which
9475 is too fragile (doesn't work in command arguments).
9476 + Use `\enquote{}` for quotes if the template includes
9477 the `csquotes` package. This provides better support for
9478 local quoting styles. (Thanks to Andreas Wagner for the idea.)
9480 * ConTeXt writer: Make `\starttyping`/`\stoptyping` flush with
9481 margin, preventing spurious blank lines.
9485 + Use non-minimized version of `slidy.css` with `--offline`
9486 option, so users can more easily edit it.
9487 + Also fixed a bug in the CSS that prevented proper centering
9488 of title (now reported and fixed upstream).
9492 + Replaced `s5/default/slides.js.{comment,packed}` with
9493 new compressed `s5/default/slides.min.js`.
9494 + Use `data:` protocol to embed S5 CSS in `<link>` tags,
9495 when `--offline` is specified. Using inline CSS didn't
9496 work with Chrome or Safari. This fixes offline
9497 S5 on those browsers.
9499 * HTML writer: Removed English title on footnote backlinks.
9500 This is incongrous in non-English documents.
9504 + Use CALS tables. (Some older docbook software does not work
9505 well with XHTML tables.) Closes #77.
9506 + Use `programlisting` tags (instead of `screen`) for code blocks.
9510 + Calls latex with `-halt-on-error -interaction nonstopmode` instead
9511 of `-interaction=batchmode`, which essentially just ignored errors,
9512 leading to bad results. Better to know when something is wrong.
9513 + Fixed issues with non-UTF-8 output of `pdflatex`.
9514 + Better error reporting.
9516 * `--mathjax` now takes an optional URL argument. If it is not
9517 provided, pandoc links directly to the (secure) mathjax CDN,
9518 as now recommended (thanks to dsanson).
9520 * Deprecated `--xetex` option in `pandoc`. It is no longer needed,
9521 since the LaTeX writer now produces a file that can be processed by
9522 `latex`, `pdflatex`, `lualatex`, or `xelatex`.
9524 * Introduced `--luatex` option to `markdown2pdf`. This causes `lualatex`
9525 to be used to create the PDF.
9527 * If a template specified with `--template` is not found, look for it
9528 in `datadir`. Also, if no extension is provided, supply one based
9529 on the writer. So now you can put your `special.latex` template in
9530 `~/.pandoc/templates`, and use it from any directory via
9531 `pandoc -t latex --template special`.
9533 * Default template improvements:
9535 + HTML: Display author and date after title.
9536 + HTML: Made table of contents more customizable. The container
9537 for the TOC is now in the template, so users can insert a header
9538 or other styling. (Thanks to Bruce D'Arcus for the suggestion.)
9539 + HTML, Slidy, S5: Enclose scripts in CDATA tags.
9540 + Slidy, S5: Added `s5-url` and `slidy-url` variables, instead of
9541 hard-coding. If you want to put your slidy files in the slidy
9542 subdirectory, for example, you can do
9543 `pandoc -t slidy -V slidy-url=slidy -s`.
9544 + LaTeX: Use `\and` to separate authors in LaTeX documents (reader
9545 & writer). Closes #279.
9546 + LaTeX: Use different `hyperref` options for `xetex`, fixing
9547 problems with unicode bookmarks (thanks to CircleCode).
9548 + LaTeX: Removed `ucs` package, use `utf8` rather than `utf8x`
9549 with `inputenc`. This covers fewer characters but is more
9550 robust with other packages, and `ucs` is unmaintained. Users
9551 who need better unicode support should use xelatex or lualatex.
9555 * Added `--epub-cover-image` option.
9557 * Documented `--biblatex` and `--natbib` options.
9559 * Allow `--section-divs` with slidy output. Resolves Issue #296.
9561 * Disallow notes within notes in reST and markdown.
9562 These previously caused infinite looping and stack overflows.
9569 Note references are allowed in reST notes, so this isn't a full
9570 implementation of reST. That can come later. For now we need to
9571 prevent the stack overflows. Partially resolves Issue #297.
9573 * EPUB writer: Allow non-plain math methods.
9575 * Forbid ()s in citation item keys. Resolves Issue #304: problems with
9576 `(@item1; @item2)` because the final paren was being parsed as part of
9579 * Changed URI parser so it doesn't include trailing punctuation.
9580 So, in RST, `http://google.com.` should be parsed as a link followed by a
9581 period. The parser is smart enough to recognize balanced parentheses, as
9582 often occur in wikipedia links: `http://foo.bar/baz_(bam)`.
9584 * Markdown+lhs reader: Require space after inverse bird tracks, so that
9585 HTML tags can be used freely at the left margin of a markdown+lhs document.
9586 Thanks to Conal Elliot for the suggestion.
9590 + Improved emph/strong parsing; fixes bug found by Perry Wagle.
9591 + Fixed bug in footnote order (reported by CircleCode).
9594 + Fixed bug in in field lists with multi-line items at the
9596 + Added parentheses to RST `specialChars`, so
9597 `(http://google.com)` will be parsed as a link in parens.
9598 Resolves Issue #291.
9599 + Allow `|` followed by newline in RST line block.
9603 + Gobble option & space after linebreak `\\[10pt]`.
9606 + Make it possible to have colons after links. (qerub)
9607 + Make it possible to have colons after links. (Christoffer Sawicki)
9610 + Skip spaces after `<b>`, `<emph>`, etc.
9611 + Handle tbody, thead in simple tables. Closes #274.
9612 + Implicit `Para`s instead of `Plains` in some contexts.
9614 * OpenDocument writer: Use special `First paragraph` style for
9615 first paragraph after most non-paragraph blocks. This allows users to
9616 specify e.g. that only paragraphs after the first paragraph of a block are
9617 to be indented. Thanks to Andrea Rossato for the patch. Closes #20.
9619 * LaTeX writer: use `deVerb` on table and picture captions.
9620 Otherwise LaTeX complains about `\verb` inside command argument.
9621 Thanks to bbanier for reporting the bug.
9623 * Markdown writer: Insert HTML comment btw list and indented code block.
9624 This prevents the code block from being interpreted as part of the list.
9626 * EPUB writer: Add a meta element specify the cover.
9627 Some EPUB e-readers, such as the Nook, require a meta element inside the
9628 OPF metadata block to ensure the cover image is properly displayed.
9631 * HTML writer: Use embed tag for images with non-image extensions.
9632 (e.g. PDFs). Closes #264.
9634 * LaTeX writer: Improved tables.
9636 + More space between lines, top-align cells.
9637 + Use ctable package, which allows footnotes and
9638 provides additional options.
9639 + Made cell alignments work in multiline tables.
9640 + Closes #271, #272.
9642 * Un-URI-escape image filenames in LaTeX, ConTeXt, RTF, Texinfo.
9643 Also do this when copying image files into EPUBs and ODTs.
9646 * Changed to github issue tracker.
9648 * Added failing emph/strong markdown test case due to Perry Wagle.
9650 * Slidy improvements:
9651 + Updated to use Slidy2.
9652 + Fixed bug, unclosed div tag.
9653 + Added `duration` variable in template.
9654 Setting this activates the timer.
9655 + Use 'titlepage' instead of 'cover' for title div.
9659 * `markdown2pdf`: Removed some debugging lines accidentally included
9660 in the 1.8.1 release. With those lines, the temp directory is created
9661 in the working directory, and it is not deleted. This fix restores
9662 the original behavior.
9666 * Added `--ascii` option. Currently supported only in HTML writer,
9667 which it causes to use numerical entities instead of UTF-8.
9669 * EPUB writer: `--toc` now works to provide a table of contents
9670 at the beginning of each chapter.
9672 * LaTeX writer: Change figure defaults to `htbp`.
9673 This prevents "too many unprocessed floats." Resolves
9676 * `Text.Pandoc.UTF8`: Encode filenames even when using recent
9679 * `markdown2pdf`: Fixed filename encoding issues. With help from Paulo
9680 Tanimoto. Resolves Issue #286.
9682 * HTML writer: Put line breaks in section divs.
9684 * `Text.Pandoc.Shared`: Make `writerSectionDivs` default to False.
9688 * Fixed Source-repository stanza in cabal file.
9694 + Stringify alt text instead of converting to HTML.
9695 + Break lines after block elements, not inside tags.
9696 HTML output now closely resembles that of tidy. Resolves Issue #134.
9698 * Markdown reader: Fixed bug in footnote block parser (pointed out
9699 by Jesse Rosenthal). The problem arose when the blank line
9700 at the end of a footnote block contained indenting spaces.
9702 * Shared: Improved 'normalize' function so it normalizes Spaces too.
9703 In normal form, Space elements only occur to separate two non-Space
9704 elements. So, we never have [Space], or [, ..., Space].
9708 + Improved Arbitrary instance.
9709 + Added timeout for test instances.
9713 + Added section on four-space rule for lists. Resolves Issue #283.
9714 + Clarified optional arguments on math options.
9716 * markdown2pdf: Fixed bug with output file extensions.
9717 Previously `markdown2pdf test.txt -o test.en.pdf` would produce
9718 `test.pdf`, not `test.en.pdf`. Thanks to Paolo Tanimoto for the fix.
9722 * Revised Interact.hs so that it works with the CPP macros
9725 * Revised Setup.hs so that we don't call MakeManPage.hs unless
9726 the man pages are out of date.
9732 * Support for citations using Andrea Rossato's `citeproc-hs` 0.3.
9733 You can now write, for example,
9735 Water is wet [see @doe99, pp. 33-35; also @smith04, ch. 1].
9737 and, when you process your document using `pandoc`, specifying
9738 a citation style using `--csl` and a bibliography using `--bibliography`,
9739 the citation will be replaced by an appropriately formatted
9740 citation, and a list of works cited will be added to the end
9743 This means that you can switch effortlessly between different citation
9744 and bibliography styles, including footnote, numerical, and author-date
9745 formats. The bibliography can be in any of the following formats: MODS,
9746 BibTeX, BibLaTeX, RIS, EndNote, EndNote XML, ISI, MEDLINE, Copac, or JSON.
9747 See the README for further details.
9749 Citations are supported in the markdown reader, using a special
9750 syntax, and in the LaTeX reader, using natbib or biblatex syntax.
9751 (Thanks to Nathan Gass for the natbib and biblatex support.)
9753 * New `textile` reader and writer. Thanks to Paul Rivier for contributing
9754 the `textile` reader, an almost complete implementation of the textile
9755 syntax used by the ruby [RedCloth library](http://redcloth.org/textile).
9758 * New `org` writer, for Emacs Org-mode, contributed by Puneeth Chaganti.
9760 * New `json` reader and writer, for reading and writing a JSON
9761 representation of the native Pandoc AST. These are much faster
9762 than the `native` reader and writer, and should be used for
9763 serializing Pandoc to text. To convert between the JSON representation
9764 and native Pandoc, use `encodeJSON` and `decodeJSON` from
9765 `Text.JSON.Generic`.
9767 * A new `jsonFilter` function in `Text.Pandoc` makes it easy
9768 to write scripts that transform a JSON-encoded pandoc document.
9771 -- removelinks.hs - removes links from document
9773 main = interact $ jsonFilter $ bottomUp removeLink
9774 where removeLink (Link xs _) = Emph xs
9777 To use this to remove links while translating markdown to LaTeX:
9779 pandoc -t json | runghc removelinks.hs | pandoc -f json -t latex
9781 * Attributes are now allowed in inline `Code` elements, for example:
9783 In this code, `ulist ! [theclass "special"] << elts`{.haskell} is...
9785 The attribute syntax is the same as for delimited code blocks.
9786 `Code` inline has an extra argument place for attributes, just like
9787 `CodeBlock`. Inline code will be highlighted in HTML output, if pandoc
9788 is compiled with highlighting support. Resolves Issue #119.
9790 * New `RawBlock` and `RawInline` elements (replacing `RawHtml`,
9791 `HtmlInline`, and `TeX`) provide lots of flexibility in writing
9792 scripts to transform Pandoc documents. Scripts can now change
9793 how each element is rendered in each output format.
9795 * You can now define LaTeX macros in markdown documents, and pandoc
9796 will apply them to TeX math. For example,
9798 \newcommand{\plus}[2]{#1 + #2}
9801 yields `3+4`. Since the macros are applied in the reader, they
9802 will work in every output format, not just LaTeX.
9804 * LaTeX macros can also be used in LaTeX documents (both in math
9805 and in non-math contexts).
9807 * A new `--mathjax` option has been added for displaying
9808 math in HTML using MathJax. Resolves issue #259.
9810 * Footnotes are now supported in the RST reader. (Note, however,
9811 that unlike docutils, pandoc ignores the numeral or symbol used in
9812 the note; footnotes are put in an auto-numbered ordered list.)
9813 Resolves Issue #258.
9815 * A new `--normalize` option causes pandoc to normalize the AST
9816 before writing the document. This means that, for example,
9817 `*hi**there*` will be rendered as `<em>hithere</em>`
9818 instead of `<em>hi</em><em>there</em>`. This is not the default,
9819 because there is a significant performance penalty.
9821 * A new `--chapters` command-line option causes headers
9822 in DocBook, LaTeX, and ConTeXt to start with "chapter" (level one).
9823 Resolves Issue #265.
9825 * In DocBook output, `<chapter>` is now used for top-level
9826 headers if the template contains `<book>`. Resolves Issue #265.
9828 * A new `--listings` option in `pandoc` and `markdown2pdf` causes
9829 the LaTeX writer to use the listings package for code blocks.
9830 (Thanks to Josef Svennigsson for the pandoc patch, and Etienne
9831 Millon for the markdown2pdf patch.)
9833 * `markdown2pdf` now supports `--data-dir`.
9835 * URLs in autolinks now have class "url" so they can be styled.
9837 * Improved prettyprinting in most formats. Lines will be wrapped
9838 more evenly and duplicate blank lines avoided.
9840 * New `--columns` command-line option sets the column width for
9841 line wrapping and relative width calculations for tables.
9843 * Made `--smart` work in HTML, RST, and Textile readers, as well
9846 * Added `--html5` option for HTML5 output.
9848 * Added support for listings package in LaTeX reader
9851 * Added support for simple tables in the LaTeX reader.
9853 * Added support for simple tables in the HTML reader.
9855 * Significant performance improvements in many readers and writers.
9857 [API and program changes]
9859 * Moved `Text.Pandoc.Definition` from the `pandoc` package to a new
9860 auxiliary package, `pandoc-types`. This will make it possible for other
9861 programs to supply output in Pandoc format, without depending on the whole
9864 * Added `Attr` field to `Code`.
9866 * Removed `RawHtml`, `HtmlInline`, and `TeX` elements; added generic
9867 `RawBlock` and `RawInline`.
9869 * Moved generic functions to `Text.Pandoc.Generic`. Deprecated
9870 `processWith`, replacing it with two functions, `bottomUp` and `topDown`.
9871 Removed previously deprecated functions `processPandoc` and `queryPandoc`.
9873 * Added `Text.Pandoc.Builder`, for building `Pandoc` structures.
9875 * `Text.Pandoc` now exports association lists `readers` and `writers`.
9877 * Added `Text.Pandoc.Readers.Native`, which exports `readNative`.
9878 `readNative` can now read full pandoc documents, block lists, blocks,
9879 inline lists, or inlines. It will interpret `Str "hi"`
9880 as if it were `Pandoc (Meta [] [] []) [Plain [Str "hi"]]`.
9881 This should make testing easier.
9883 * Removed deprecated `-C/--custom-header` option.
9884 Use `--template` instead.
9886 * `--biblio-file` has been replaced by `--bibliography`.
9887 `--biblio-format` has been removed; pandoc now guesses the format
9888 from the file extension (see README).
9890 * pandoc will treat an argument as a URI only if it has an
9891 `http(s)` scheme. Previously pandoc would treat some
9892 Windows pathnames beginning with `C:/` as URIs.
9894 * The `--sanitize-html` option and the `stateSanitize` field in
9895 `ParserState` have been removed. Sanitization is better done in the
9896 resulting HTML using `xss-sanitize`, which is based on pandoc's
9897 sanitization, but improved.
9899 * pandoc now adds a newline to the end of its output in fragment
9900 mode (= not `--standalone`).
9902 * Added support for `lang` in `html` tag in the HTML template,
9903 so you can do `pandoc -s -V lang=es`, for example.
9905 * `highlightHtml` in `Text.Pandoc.Highlighting` now takes
9906 a boolean argument that selects between "inline" and
9909 * `Text.Pandoc.Writers.RTF` now exports `rtfEmbedImage`.
9910 Images are embedded in RTF output when possible (png, jpeg).
9911 Resolves Issue #275.
9913 * Added `Text.Pandoc.Pretty`. This is better suited for pandoc than the
9914 `pretty` package. Changed all writers that used
9915 `Text.PrettyPrint.HughesPJ` to use `Text.Pandoc.Pretty` instead.
9917 * Rewrote `writeNative` using the new prettyprinting module. It is
9918 now much faster. The output has been made more consistent and compressed.
9919 `writeNative` is also now sensitive to writerStandalone`, and will simply
9920 `print a block list if writerStandalone` is False.
9922 * Removed `Text.Pandoc.Blocks`. `Text.Pandoc.Pretty` allows you to define
9923 blocks and concatenate them, so a separate module is no longer needed.
9925 * `Text.Pandoc.Shared`:
9927 + Added `writerColumns`, `writerChapters`, and `writerHtml5` to
9929 + Added `normalize`.
9930 + Removed unneeded prettyprinting functions:
9931 `wrapped`, `wrapIfNeeded`, `wrappedTeX`, `wrapTeXIfNeeded`, `hang'`,
9932 `BlockWrapper`, `wrappedBlocksToDoc`.
9933 + Made `splitBy` take a test instead of an element.
9934 + Added `findDataFile`, refactored `readDataFile`.
9935 + Added `stringify`. Rewrote `inlineListToIdentifier` using `stringify`.
9936 + Fixed `inlineListToIdentifier` to treat '\160' as ' '.
9938 * `Text.Pandoc.Readers.HTML`:
9940 + Removed `rawHtmlBlock`, `anyHtmlBlockTag`, `anyHtmlInlineTag`,
9941 `anyHtmlTag`, `anyHtmlEndTag`, `htmlEndTag`, `extractTagType`,
9942 `htmlBlockElement`, `htmlComment`
9943 + Added `htmlTag`, `htmlInBalanced`, `isInlineTag`, `isBlockTag`,
9946 * Moved `smartPunctuation` from `Text.Pandoc.Readers.Markdown`
9947 to `Text.Pandoc.Readers.Parsing`, and parameterized it with
9950 * Added `nonspaceChar` to `Text.Pandoc.Parsing`.
9952 * Ellipses are no longer allowed to contain spaces.
9953 Previously we allowed '. . .', ' . . . ', etc. This caused
9954 too many complications, and removed author's flexibility in
9955 combining ellipses with spaces and periods.
9957 * Allow linebreaks in URLs (treat as spaces). Also, a string of
9958 consecutive spaces or tabs is now parsed as a single space. If you have
9959 multiple spaces in your URL, use `%20%20`.
9961 * `Text.Pandoc.Parsing`:
9963 + Removed `refsMatch`.
9964 + Hid `Key` constructor.
9965 + Removed custom `Ord` and `Eq` instances for `Key`.
9966 + Added `toKey` and `fromKey` to convert between `Key` and `[Inline]`.
9967 + Generalized type on `readWith`.
9969 * Small change in calculation of relative widths of table columns.
9970 If the size of the header > the specified column width, use
9971 the header size as 100% for purposes of calculating
9972 relative widths of columns.
9974 * Markdown writer now uses some pandoc-specific features when `--strict`
9975 is not specified: `\` newline is used for a hard linebreak instead of
9976 two spaces then a newline. And delimited code blocks are used when
9977 there are attributes.
9979 * HTML writer: improved gladTeX output by setting ENV appropriately
9980 for display or inline math (Jonathan Daugherty).
9982 * LaTeX writer: Use `\paragraph`, `\subparagraph` for level 4,5 headers.
9986 + `\label{foo}` and `\ref{foo}` now become `{foo}` instead of `(foo)`.
9987 + `\index{}` commands are skipped.
9989 * Added `fontsize` variable to default LaTeX template.
9990 This makes it easy to set the font size using `markdown2pdf`:
9991 `markdown2pdf -V fontsize=12pt input.txt`.
9993 * Fixed problem with strikeout in LaTeX headers when using
9994 hyperref, by adding a command to the default LaTeX template
9995 that disables `\sout` inside pdf strings. Thanks to Joost Kremers
9998 * The `COLUMNS` environment variable no longer has any effect.
10000 [under-the-hood improvements]
10002 * Pandoc now compiles with GHC 7. (This alone leads to a
10003 significant performance improvement, 15-20%.)
10005 * Completely rewrote HTML reader using tagsoup as a lexer. The
10006 new reader is faster and more accurate. Unlike the
10007 old reader, it does not get bogged down on some input
10008 (Issues #277, 255). And it handles namespaces in tags
10011 * Replaced `escapeStringAsXML` with a faster version.
10013 * Rewrote `spaceChar` and some other parsers in Text.Pandoc.Parsing
10014 for a significant performance boost.
10016 * Improved performance of all readers by rewriting parsers.
10018 * Simplified Text.Pandoc.CharacterReferences by using
10019 entity lookup functions from TagSoup.
10021 * `Text.Pandoc.UTF8` now uses the unicode-aware IO functions
10022 from `System.IO` if base >= 4.2. This gives support for
10023 windows line endings on windows.
10025 * Remove duplications in documentation by generating the
10026 pandoc man page from README, using `MakeManPage.hs`.
10028 * README now includes a full description of markdown syntax,
10029 including non-pandoc-specific parts. A new `pandoc_markdown`
10030 man page is extracted from this, so you can look up markdown
10031 syntax by doing `man pandoc_markdown`.
10033 * Completely revised test framework (with help from Nathan Gass).
10034 The new test framework is built when the `tests` Cabal flag is set. It
10035 includes the old integration tests, but also some new unit and quickcheck
10036 tests. Test output has been much improved, and you can now specify a glob
10037 pattern after `cabal test` to indicate which tests should be run;
10038 for example `cabal test citations` will run all the citation tests.
10040 * Added a shell script, `stripansi.sh`, for filtering ANSI control
10041 sequences from test output: `cabal test | ./stripansi.sh > test.log`.
10043 * Added `Interact.hs` to make it easier to use ghci while developing.
10044 `Interact.hs` loads `ghci` from the `src` directory, specifying
10045 all the options needed to load pandoc modules (including
10046 specific package dependencies, which it gets by parsing
10047 dist/setup-config).
10049 * Added `Benchmark.hs`, testing all readers + writers using criterion.
10051 * Added `stats.sh`, to make it easier to collect and archive
10052 benchmark and lines-of-code stats.
10054 * Added upper bounds to all cabal dependencies.
10056 * Include man pages in extra-source-files. This allows users to
10057 install pandoc from the tarball without needing to build the man
10062 * Filenames are encoded as UTF8. Resolves Issue #252.
10064 * Handle curly quotes better in `--smart` mode. Previously, curly quotes
10065 were just parsed literally, leading to problems in some output formats.
10066 Now they are parsed as `Quoted` inlines, if `--smart` is specified.
10067 Resolves Issue #270.
10069 * Text.Pandoc.Parsing: Fixed bug in grid table parser.
10070 Spaces at end of line were not being stripped properly,
10071 resulting in unintended LineBreaks.
10075 + Allow HTML comments as inline elements in markdown.
10076 So, `aaa <!-- comment --> bbb` can be a single paragraph.
10077 + Fixed superscripts with links: `^[link](/foo)^` gets
10078 recognized as a superscripted link, not an inline note followed by
10080 + Fixed regression, making markdown reference keys case-insensitive again.
10081 Resolves Issue #272.
10082 + Properly handle abbreviations (like `Mr.`) at the end of a line.
10083 + Better handling of intraword underscores, avoiding exponential
10084 slowdowns in some cases. Resolves Issue #182.
10085 + Fixed bug in alignments in tables with blank rows in the header.
10089 + Field lists now allow spaces in field names, and
10090 block content in field values. (Thanks to Lachlan Musicman
10091 for pointing out the bug.)
10092 + Definition list items are now always `Para` instead of
10093 `Plain`, matching behavior of `rst2xml.py`.
10094 + In image blocks, the description is parsed properly and
10095 used for the alt attribute, not also the title.
10096 + Skip blank lines at beginning of file. Resolves
10101 + Improved parsing of preamble.
10102 Previously you'd get unexpected behavior on a document that
10103 contained `\begin{document}` in, say, a verbatim block.
10104 + Allow spaces between `\begin` or `\end` and `{`.
10105 + Support `\L` and `\l`.
10106 + Skip comments inside paragraphs.
10110 + Escape strings in `\href{..}`.
10111 + In nonsimple tables, put cells in `\parbox`.
10113 * OpenDocument writer: don't print raw TeX.
10117 + Fixed bug in `Image`. URI was getting unescaped twice!
10118 + Avoid printing extra blank lines at the end if there are
10119 no notes or references.
10121 * LaTeX and ConTeXt: Escape `[` and `]` as `{[}` and `{]}`.
10122 This avoids unwanted interpretation as an optional argument.
10124 * ConTeXt writer: Fixed problem with inline code. Previously
10125 `}` would be rendered `\type{}}`. Now we check the string for '}' and '{'.
10126 If it contains neither, use `\type{}`; otherwise use `\mono{}`
10127 with an escaped version of the string.
10129 * `:` now allowed in HTML tags. Resolves Issue #274.
10133 [ John MacFarlane ]
10135 * New EPUB and HTML Slidy writers. (Issue #122)
10137 - EPUB is a standard ebook format, used in Apple's iBooks for
10138 the iPad and iPhone, Barnes and Noble's nook reader, the Sony
10139 reader, and many other devices.
10140 - Slidy, like S5, is a system for producing HTML+javascript slide
10143 * All input is assumed to be UTF-8, no matter what the locale and ghc
10144 version, and all output is UTF-8. This reverts to pre-1.5 behavior.
10145 Also, a BOM, if present, is stripped from the input.
10147 * Markdown now supports grid tables, whose cells can contain
10148 arbitrary block elements. (Issue #43)
10150 * Sequentially numbered example lists in markdown with `@` marker.
10152 * Markdown table captions can begin with a bare colon and no longer need
10153 to include the English word "table." Also, a caption can now occur
10154 either before or after the table. (Issue #227)
10156 * New command-line options:
10158 - `--epub-stylesheet` allows you to specify a CSS file that will
10159 be used to style your ebook.
10160 - `--epub-metadata` allows you to specify metadata for the ebook.
10161 - `--offline` causes the generated HTML slideshow to include all
10162 needed scripts and stylesheets.
10163 - `--webtex` causes TeX math to be converted to images using the
10164 Google Charts API (unless a different URL is specified).
10165 - `--section-divs` causes div tags to be added around each section
10166 in an HTML document. (Issue #230, 239)
10168 * Default behavior of S5 writer in standalone mode has changed:
10169 previously, it would include all needed scripts and stylesheets
10170 in the generated HTML; now, only links are included unless
10171 the `--offline` option is used.
10173 * Default behavior of HTML writer has changed. Between 1.2 and 1.5,
10174 pandoc would enclose sections in div tags with identifiers on the
10175 div tags, so that the sections can be manipulated in javascript.
10176 This caused undesirable interactions with raw HTML div tags. So,
10177 starting with 1.6, the default is to put the identifiers directly
10178 on the header tags, and not to include the divs. The `--section-divs`
10179 option selects the 1.2-1.5 behavior.
10183 - `HTMLMathMethod`: Added `WebTeX`, removed `MimeTeX`.
10184 - `WriterOptions`: Added `writerUserDataDir`, `writerSourceDirectory`,
10185 `writerEPUBMetadata` fields. Removed `writerIncludeBefore`,
10186 `writerIncludeAfter`.
10187 - Added `headerShift` to `Text.Pandoc.Shared`.
10188 - Moved parsing code and `ParserState` from `Text.Pandoc.Shared`
10189 to a new module, `Text.Pandoc.Parsing`.
10190 - Added `stateHasChapters` to `ParserState`.
10191 - Added `HTMLSlideVariant`.
10192 - Made `KeyTable` a map instead of an association list.
10193 - Added accessors for `Meta` fields (`docTitle`, `docAuthors`,
10195 - `Pandoc`, `Meta`, `Inline`, and `Block` have been given `Ord`
10197 - Reference keys now have a type of their own (`Key`), with its
10198 own `Ord` instance for case-insensitive comparison.
10199 - Added `Text.Pandoc.Writers.EPUB`.
10200 - Added `Text.Pandoc.UUID`.
10201 - Removed `Text.Pandoc.ODT`, added `Text.Pandoc.Writers.ODT`.
10202 Removed `saveOpenDocumentAsODT`, added `writeODT`.
10203 - Added `Text.Pandoc.Writers.Native` and `writeNative`.
10204 Removed `prettyPandoc`.
10205 - Added `Text.Pandoc.UTF8` for portable UTF8 string IO.
10206 - Removed `Text.Pandoc.Writers.S5` and the `writeS5` function.
10207 Moved `s5Includes` to a new module, `Text.Pandoc.S5`.
10208 To write S5, you now use `writeHtml` with `writerSlideVariant`
10209 set to `S5Slides` or `SlidySlides`.
10211 * Template changes. If you use custom templates, please update them,
10212 particularly if you use syntax highlighting with pandoc. The old HTML
10213 templates hardcoded highlighting CSS that will no longer work with
10214 the most recent version of highlighting-kate.
10216 - HTML template: avoid empty meta tag if no date.
10217 - HTML template: Use default highlighting CSS from highlighting-kate
10218 instead of hard-coding the CSS into the template.
10219 - HTML template: insert-before text goes before the title, and
10220 immediately after the <body> tag, as documented. (Issue #241)
10221 - Added slidy and s5 templates.
10222 - Added amssymb to preamble of latex template. (github Issue 1)
10224 * Removed excess newlines at the end of output. Note: because output
10225 will not contain an extra newline, you may need to make adjustments
10226 if you are inserting pandoc's output into a template.
10228 * In S5 and slidy, horizontal rules now cause a new slide, so you
10229 are no longer limited to one slide per section.
10231 * Improved handling of code in man writer. Inline code is now monospace,
10232 not bold, and code blocks now use .nf (no fill) and .IP (indented para).
10234 * HTML reader parses `<tt>` as Code. (Issue #247)
10236 * html+lhs output now contains bird tracks, even when compiled without
10237 highlighting support. (Issue #242)
10239 * Colons are now no longer allowed in autogenerated XML/HTML identifiers,
10240 since they have a special meaning in XML.
10242 * Code improvements in ODT writer. Remote images are now replaced with
10243 their alt text rather than a broken link.
10245 * LaTeX reader improvements:
10247 - Made latex `\section`, `\chapter` parsers more forgiving of
10249 - Parse `\chapter{}` in latex.
10250 - Changed `rawLaTeXInline` to accept `\section`, `\begin`, etc.
10251 - Use new `rawLaTeXInline'` in LaTeX reader, and export `rawLaTeXInline`
10252 for use in markdown reader.
10253 - Fixes bug wherein `\section{foo}` was not recognized as raw TeX
10254 in markdown document.
10256 * LaTeX writer: images are automatically shrunk if they would extend
10257 beyond the page margin.
10259 * Plain, markdown, RST writers now use unicode for smart punctuation.
10261 * Man writer converts math to unicode when possible, as in other writers.
10263 * `markdown2pdf` can now recognize citeproc options.
10265 * Command-line arguments are converted to UTF-8. (Issue #234)
10267 * `Text.Pandoc.TeXMath` has been rewritten to use texmath's parser.
10268 This allows it to handle a wider range of formulas. Also, if a formula
10269 cannot be converted, it is left in raw TeX; formulas are no longer
10270 partially converted.
10272 * Unicode curly quotes are left alone when parsing smart quotes. (Issue
10275 * Cabal file changes:
10277 - Removed parsec < 3 restriction.
10278 - Added 'threaded' flag for architectures where GHC lacks a threaded
10280 - Use 'threaded' only for markdown2pdf; it is not needed for pandoc.
10281 - Require highlighting-kate 0.2.7.
10283 * Use explicit imports from `Data.Generics`. Otherwise we have a
10284 conflict with the 'empty' symbol, introduced in syb >= 0.2. (Issue #237)
10286 * New data files: slidy/slidy.min.js, slidy/slidy.min.css, epub.css.
10290 [ John MacFarlane ]
10292 * Fixed uniqueIdent in Shared so that header identifiers work as
10293 advertized in the README and are are valid XHTML names.
10297 [ John MacFarlane ]
10299 * Fixed treatment of unicode characters in URIs.
10300 + Shared now exports escapeURI and unescapeURI. These handle
10301 UTF8 encoding and decoding as well as URI escaping/unescaping.
10302 + Shared: uri and emailAddress now return a pair of the original
10303 parsed text and the escaped URI (in the latter case, with
10304 the mailto: prefix).
10305 + HTML reader: unsanitaryURI has been modified to allow unicode
10306 high characters in a URI.
10307 + Readers: All link and image URIs are now escaped using
10309 + Markdown and RST writers: unescapeURI is used so that URIs
10310 in these formats are human-readable.
10312 * Setup.hs: Don't assume that the build directory is "dist".
10313 Instead, get it from localBuildInfo.
10315 * OpenDocument writer: Use a Map for stTextStyleAttr.
10316 This avoids duplicates (and invalid xml). Resolves Issue #222.
10320 [ John MacFarlane ]
10322 * HTML writer: Fixed error in math writer (with MathML option)
10323 that caused an infinite loop for unparsable MathML.
10327 [ John MacFarlane ]
10329 * Added --mathml option. When this is selected, pandoc will convert
10330 TeX math into MathML.
10331 + Added data/MathMLinHTML.js, which is included when no URL is
10332 provided for --mathml. This allows MathML to be displayed (in
10333 better browsers) as text/html.
10334 + Removed Text.Pandoc.LaTeXMathML. The module was no longer
10335 necessary; it was replaced by two lines in pandoc.hs.
10336 + Replaced LaTeXMathML.js.commend and LaTeXMathML.js.packed with a
10337 single combined file, LaTeXMathML.js.
10339 * Added --data-dir option.
10340 This specifies a user data directory. If not specified, will default
10341 to ~/.pandoc on unix or Application Data\pandoc on Windows.
10342 Files placed in the user data directory will override system default
10345 * Added Maybe datadir parameter to readDataFile, saveOpenDocumentAsODT,
10346 latexMathMLScript, s5HeaderIncludes, and getDefaultTemplate. If
10347 Nothing, no user directory is searched for an override.
10349 * Added 'plain' output format. This is similar to markdown, but
10350 removes links, pictures, inline formatting, and most anything that
10351 looks even vaguely markupish. The function writePlain is exported by
10352 Text.Pandoc.Writers.Markdown, with which it shares most of its code.
10354 * Allow multi-line titles and authors in meta block.
10355 Titles may span multiple lines, provided continuation lines
10356 begin with a space character. Separate authors may be put on
10357 multiple lines, provided each line after the first begins with
10358 a space character. Each author must fit on one line. Multiple
10359 authors on a single line may still be separated by a semicolon.
10360 Based on a patch by Justin Bogner.
10362 * When given an absolute URI as parameter, pandoc will try to fetch
10363 the content via HTTP. So you can do:
10364 'pandoc -r html -w markdown http://www.fsf.org'
10365 Adds dependency on HTTP.
10367 * Made HTML reader much more forgiving.
10368 + Incorporated idea (from HXT) that an element can be closed
10369 by an open tag for another element.
10370 + Javascript is partially parsed to make sure that a <script>
10371 section is not closed by a </script> in a comment or string.
10372 + More lenient non-quoted attribute values.
10373 Now we accept anything but a space character, quote, or <>.
10374 This helps in parsing e.g. www.google.com!
10375 + Bare & signs are now parsed as a string. This is a common
10377 + Skip a bare < in malformed HTML.
10379 * Removed html2markdown and hsmarkdown.
10380 + html2markdown is no longer needed, since you can now pass URI
10381 arguments to pandoc and directly convert web pages. (Note,
10382 however, that pandoc assumes the pages are UTF8. html2markdown
10383 made an attempt to guess the encoding and convert them.)
10384 + hsmarkdown is pointless -- a large executable that could be
10385 replaced by 'pandoc --strict'.
10387 * In most writers, an image in a paragraph by itself is now rendered
10388 as a figure, with the alt text as the caption. (Texinfo, HTML, RST,
10389 MediaWiki, Docbook, LaTeX, ConTeXt, HTML.) Other images are
10392 * Depend on extensible-exceptions. This allows pandoc to be compiled
10395 * Added --base-header-level option. For example, --base-header-level=2
10396 will change level 1 headers to level 2, level 2 to level 3, etc.
10397 Closes Debian #563416.
10399 * Incomplete support for RST tables (simple and grid).
10400 Thanks to Eric Kow. Colspans and rowspans not yet supported.
10402 * Added accessors (docTitle, docAuthors, docDate) to Meta type.
10404 * MediaWiki writer: format links with relative URLs as wikilinks.
10405 The new rule: If the link target is an absolute URL, an external
10406 link is created. Otherwise, a wikilink is created.
10408 * Text.Pandoc.Shared: Export uniqueIdent, and don't allow tilde in
10409 identifier. Note: This may break links to sections that involve
10412 * Markdown(+lhs) reader: handle "inverse bird tracks."
10413 Inverse bird tracks (<) are used for haskell example code that is not
10414 part of the literate Haskell program. Resolves Issue #211.
10417 + Recognize '\ ' (interword space).
10418 + Recognize nonbreaking space '~'.
10419 + Ignore \section, \pdfannot, \pdfstringdef. Ignore alt title in
10420 section headers. Don't treat \section as inline LaTeX.
10421 Resolves Issue #202.
10422 + LaTeX reader: allow any special character to be escaped.
10423 Resolves Issue #221.
10424 + LaTeX reader: treat \paragraph and \subparagraph as level 4, 5
10425 headers. Resolves Issue #207.
10427 * Use template variables for include-before/after.
10428 + These options now imply -s; previously they worked also in fragment
10430 + Users can now adjust position of include-before and include-after
10431 text in the templates.
10432 + Default position of include-before moved back (as it was before 1.4)
10433 before table of contents.
10434 + Resolves Issue #217.
10436 * Don't print an empty table header: (all writers).
10437 Resolves Issue #210.
10439 * HTML, Docbook writer: Use tbody, thead, and cols in tables.
10441 * HTML writer: Don't include TOC div if table of contents is empty.
10443 * Markdown writer: Fixed citations.
10444 Previously the markdown writer printed raw citation codes, e.g.
10445 [geach1970], rather than the expanded citations provided by
10446 citeproc, e.g. (Geach 1970). Now it prints the expanded citations.
10447 This means that the document produced can be processed as a markdown
10448 document without citeproc. Thanks to dsanson for reporting, and
10449 Andrea Rossato for the patch.
10451 * Improved and simplified title block in context template.
10452 Previously it caused an error if there was no title.
10453 This method should also be easier for users to customize.
10456 + Treat p., pp., sec., ch., as abbreviations in smart mode.
10457 + Disallow blank lines in inline code span.
10458 + Allow footnotes to be indented < 4 spaces.
10459 This fixes a regression. A test case has been added.
10460 + Escape spaces in URLs as %20. Previously they were incorrectly
10461 escaped as +, which is appropriate only for the query part of
10462 a URL. Resolves Issue #220.
10463 + Require two spaces after capital letter + period for list item.
10464 Otherwise "E. coli" starts a list. This might change the semantics
10465 of some existing documents, since previously the two-space
10466 requirement was only enforced when the second word started
10467 with a capital letter. But it is consistent with the existing
10468 documentation and follows the principle of least surprise.
10469 Resolves Issue #212.
10471 * LaTeX template: redefine labelwidth when using enumerate package.
10472 Otherwise the list labels (numbers) often extend past the left
10473 margin, which looks bad.
10475 * Mediawiki writer: Don't print a "== Notes ==" header before
10476 references. This is too English-centric. Writers can provide their
10477 own header at the end of the document.
10479 * Promoted mediawiki headers. '= head =' is now level 1, '== head =='
10480 level 2, etc. This seems to be correct; it's only by convention
10481 that wikipedia articles have level 2 headers at most.
10482 Patch due to Eric Kow.
10484 * RunTests.hs: Set LANG to a UTF-8 locale. Use 'pandoc --data-dir=' so
10485 data files don't need to have been installed. This removes the need to
10489 + Handle spaces before <html>. Resolves Issue #216.
10490 + Be forgiving in parsing a bare list within a list.
10491 The following is not valid xhtml, but the intent is clear:
10494 <ol><li>sub</li></ol>
10497 We'll treat the <ol> as if it's in a <li>. Resolves Issue #215.
10499 * Updated INSTALL instructions. cabal method is now promoted.
10501 * Updated markdown2pdf man page. It no longer says all pandoc options
10504 * README/man pages: Removed advice to pipe through tidy before HTML
10505 reader. This is obsolete, now that we have a forgiving HTML parser.
10507 * LaTeX writer: set numbersections template variable, so
10508 the section numbering options work again.
10510 * Removed obsolete Makefile.
10512 * Website: renamed index.txt.in -> index.txt.
10514 * New batch file to make-windows-installer.
10515 + Removed old Makefile.windows
10516 + Added make-windows-installer.bat
10517 + Modified default installer name in pandoc-setup.iss
10519 * Removed freebsd and macports directories.
10520 They are no longer up to date.
10523 + Made man page building sensitive to build verbosity.
10524 + Improved detection of highlighting support in test hook.
10525 + Install wrapper scripts into cabal bin directory.
10526 + Also simplified installManpages.
10527 + Setup.hs: install manpages to mandir. Code borrowed from darcs.
10529 * Changed default of writerXeTeX to False.
10531 * HTML writer: don't include empty UL if --toc but no sections.
10532 Resolves Issue #199.
10536 + If book, report, or memoir documentclass, use \chapter{}
10537 for first-level headers. Otherwise use \section{}.
10538 + Removed stLink, link template variable. Reason: we now always
10539 include hyperref in the template.
10543 + Only show \author if there are some.
10544 + Always include hyperref package. It is used not just for links but
10545 for toc, section heading bookmarks, footnotes, etc. Also added
10546 unicode=true on hyperref options.
10548 * markdown2pdf: always do at least two runs. hyperref bookmarks
10551 * cabal file: Removed unneeded dependency on template-haskell.
10553 * Windows installer - fixed bug in data file locations.
10554 Resolves Issue #197.
10556 * Deprecated --custom-header in documentation.
10557 Removed old "Custom Headers" section in README.
10561 [ John MacFarlane ]
10563 * Pandoc will now compile with either GHC 6.10 or 6.12.
10564 + Don't use System.IO.UTF8 when compiling with 6.12
10565 + Use -fno-warn-unused-do-bind option when compiling with 6.12
10567 * Replaced old headers with templates. Now users have much more
10568 control over the way documents appear in --standalone mode,
10569 and writer code is simplified. Resolves Issues #59, 147.
10570 Every effort has been made to retain backwards compatibilty.
10571 So, the --custom-header option should still work as before.
10573 + Added Text.Pandoc.Templates. This provides functions for
10574 retrieving default templates and for rendering templates.
10575 + System templates (in the pandoc data directory) can be
10576 overridden by user templates in $HOME/.pandoc/templates.
10577 + Removed Text.Pandoc.DefaultHeaders.
10578 + Removed data/headers directory.
10579 + Added templates directory.
10580 + Added writerTemplate and writerVariables fields to WriterOptions.
10581 + Removed writerTitlePrefix, writerHeader fields from WriterOptions.
10582 + Changed --print-default-header to --print-default-template.
10583 + Added --template option.
10584 + Added -V/--variable option to set custom template variables.
10586 * Pandoc no longer requires Template Haskell. Resolves Issue #186.
10588 + Removed need for TH in ODT module. Instead get reference.odt from
10589 data file at run time.
10590 + Removed TH dependency from S5 module. S5 module now exports
10591 s5HeaderIncludes, which pandoc.hs includes if writer is s5 and
10593 + Refactored LaTeXMathML not to use TH.
10595 * Meta is now Meta [Inline] [[Inline]] [Inline] rather than
10596 Meta [Inline] [String] String. Authors and date in Meta are now lists
10597 of Inline elements rather than raw strings. This means that they can
10598 be formatted and can include footnotes. NOTE: This may be a breaking
10599 change for those using pandoc as a library.
10601 * Added readDataFile to Text.Pandoc.Shared. This retrieves
10602 a data file from the user pandoc data directory (~/.pandoc
10603 on unix), or, if not found there, from the system data
10604 directory ($CABALDIR/shared/pandoc-VERSION/). All data
10605 files, including templates, LaTeXMathML.js, s5 styles,
10606 and reference.odt, can be overridden by the user.
10608 * s5 files moved from data/ui/default to s5/default.
10610 * Use unicode instead of entities in HTML and XML output. Resolves
10613 * Prettier HTML footnote references: put anchor inside sup,
10614 instead of other way. Resolves Issue #191. Thanks to
10617 * Added --xetex option to pandoc and markdown2pdf.
10618 If --xetex is specified, pandoc produces latex suitable for
10619 processing by xelatex, and markdown2pdf uses xelatex to create
10620 the PDF. Resolves Issue #185.
10622 * RTF writer: multiple authors now occupy multiple paragraphs rather
10623 than using a line break.
10625 * Man writer: now the "--after-body" will come after the "AUTHORS"
10626 section, whereas before it would come before it. This is a
10627 slight break from backwards compatibility.
10629 * Added --reference-odt option, so users may customize the styles
10630 used in pandoc-generated ODT files. Users may also place a
10631 default reference.odt in the ~\.pandoc directory.
10634 + Indented and line-broke styles.xml so it can be modified more easily.
10635 + Omitted some unnecessary style declarations.
10636 + Don't wrap text in OpenDocument writer. The tags are too long, making
10637 wrapping ugly and pointless.
10639 * LaTeX reader: use \\ to separate multiple authors.
10641 * Markdown reader: use ; as separator between authors.
10642 This allows you to use ',' within author names: e.g. "John Jones, Jr."
10644 * S5 writer: use linebreak to separate authors in title page.
10646 * RST reader: Allow :: before lhs code block. The RST spec requires the
10647 :: before verbatim blocks. This :: should not be treated as literal
10648 colons. Resolves Issue #189.
10650 * Documented pandoc 1.3's new definition list syntax in README.
10651 (An oversight in the last release.)
10654 + interpret ! in a log as an error line.
10655 + --toc now works properly.
10657 * Changes in RunTests.hs:
10658 + Use the Diff library rather than a local copy of Diff.hs.
10659 (This vastly increases performance.) This change means that 'cabal
10660 test' presupposes that the Diff library is installed.
10661 + Removed tests/Diff.hs from cabal file.
10662 + Changed RunTests to use local environment. We need at least HOME, so
10663 pandoc can find its data directory.
10665 * Updated windows installer to install data files in the app directory.
10667 * Windows installer now installs portable wrappers hsmarkdown and
10672 [ John MacFarlane ]
10674 * Added --id-prefix option (Issue #41). This adds a prefix to all
10675 automatically generated HTML identifiers, which helps prevent
10676 duplicate identifiers when you're generating a fragment (say a blog
10679 * Added --indented-code-classes option. This specifies classes
10680 to use for indented code blocks. (Patch due to buttock; Issue #87.)
10682 * --number-sections now affects HTML output as well as ConTeXt and LaTeX
10685 * Improved syntax for markdown definition lists (Issue #24).
10686 Definition lists are now more compatible with PHP Markdown Extra.
10687 + You can have multiple definitions for a term (but still not
10689 + Multi-block definitions no longer need a column before each block
10690 (indeed, this will now cause multiple definitions).
10691 + The marker no longer needs to be flush with the left margin,
10692 but can be indented at or two spaces. Also, ~ as well as :
10693 can be used as the marker (this suggestion due to David
10695 + There can now be a blank line between the term and the
10698 * Better looking simple tables. Resolves Issue #180.
10699 + Markdown reader: simple tables are now given column widths of 0.
10700 + Column width of 0 is interpreted as meaning: use default column width.
10701 + Writers now include explicit column width information only
10702 for multiline tables. (Exception: RTF writer, which requires
10703 column widths. In this case, columns are given equal widths,
10704 adding up to the text width.)
10705 + Simple tables should now look better in most output formats.
10707 * Allow markdown tables without headers (Issue #50).
10708 The new syntax is described in README. Also allow optional line of
10709 dashes at bottom of simple tables.
10711 * Compensate for width of final table column (Issue #144).
10713 * Treat a backslash followed by a newline as a hard line break
10714 in markdown. Resolves Issue #154. This is a nice alternative
10715 to markdown's "invisible" way of indicating hardline breaks
10716 using lines that end with two spaces.
10718 * Improved performance of markdown reader by ~10% by eliminating the
10719 need for a separate parsing pass for notes. Raw notes are now stored
10720 on the first pass (which parses references), then parsed when the
10721 note is inserted into the AST. The stateNotes field in ParserState
10722 is now a list of [(String, String)] pairs instead of [(String,
10725 * In markdown reader, treat 4 or more * or _ in a row as literal
10726 text. (Trying to parse long strings of * or _ as strong or emph
10727 leads to exponential performance problems.)
10729 * Markdown reader: Use + rather than %20 for spaces in URLs.
10731 * Fixed htmlComment parser, adding a needed 'try'.
10733 * Don't print raw HTML in man output.
10735 * Allow . _ and ~ in header identifiers.
10737 * Specially mark code blocks that were "literate" in the input.
10738 They can then be treated differently in the writers. This allows
10739 authors to distinguish bits of the literate program they are writing
10740 from source code examples, even if the examples are marked as
10741 Haskell for highlighting. (Issue #174.)
10743 * Modified html+lhs output to use "haskell" highlighter instead
10744 of "literateHaskell". The highlighting module now adds bird tracks
10745 after highlighting (for HTML output), if the code block has the
10746 "literate" class. This gives better results, because kate's
10747 haskell highlighter is much better than the literateHaskell
10750 * Fixed handling of footnotes in titles (HTML) and headers (LaTeX).
10753 * Support for "..code-block" directive in RST reader. Not core
10754 RST, but used in Sphinx for code blocks annotated with syntax
10755 information. Thanks to Luke Plant for the patch.
10757 * Added "head" to list of block-level HTML tags. Resolves
10760 * Added stripTags to Text.Pandoc.XML. This is used in the HTML writer.
10762 * Set utf-8 encoding in texinfo headers.
10764 * Docbook writer: add ids to sections. Use link for internal links.
10767 * Blank lines after lists in MediaWiki writer.
10769 * Properly handle commented-out list items in markdown.
10770 Resolves Issue #142. Example:
10778 * Changed heuristic in compactify. compactify has to decide whether a
10779 Para that ends a list is a Para intentionally, or just because of
10780 the blank lines at the end of every list. In the latter case the
10781 Para is turned to a Plain. The old heuristic was: change final Para
10782 to Plain iff the other items all end in Plain. This produces bad
10783 results when, for example, an item contains just a Plain and an HTML
10784 comment, as it does in the list above. The new heuristic: change
10785 final Para to Plain iff the other items don't contain a Para.
10787 * Added % as an rst underline character. Resolves Issue #173.
10789 * Fix inline math parser so that \$ is allowed in math.
10790 Resolves Issue #169.
10792 * Translate \int (integral) into unicode when using unicode math
10793 method. Resolves Issue #177.
10795 * markdown2pdf.hs improvements:
10796 + Use System.IO.UTF8.
10797 + Print error messages on last attempt.
10798 + Do not create a backup when overwriting a PDF (Issue #166).
10799 + Accept --longopt=val options.
10800 + Added man/man1/markdown2pdf.1 to extra-tmp-files in cabal, so that
10801 it is properly cleaned.
10803 * Added haddock comments warning that readers assume \n line endings.
10805 * Updated COPYRIGHT file.
10807 * Makefile: Changed EXECSBASE so it doesn't pull in hsmarkdown &
10808 markdown2pdf. Otherwise strip tries to strip shell scripts when you
10809 install using 'make'.
10811 * Changed Makefile so it doesn't build Haskell wrappers.
10813 * Fixed Makefile so it doesn't try to build man pages in build-doc.
10815 * Install pcre3.dll in Windows install script; this allows us to
10816 package a version of pandoc with highlighting support.
10820 [ John MacFarlane ]
10822 * Fixed regression with --preserveTabs. Brought back optPreserveTabs.
10823 The trick of setting tabStop to 0 to mean "preserve tabs" had a bad
10824 side effect: strings of 0 spaces were interpreted as indentation.
10825 So, with --preserve-tabs, unindented paragraphs were treated as
10826 code. Resolves Issue #138.
10828 * HTML writer: wrap sections in divs. Resolves Issue #70.
10830 + hierarchicalize has been rationalized; it builds a hierarchical
10831 representation of the document from the headers, and simultaneously
10832 gives each section a unique identifier based on the heading title.
10833 + Identifiers are now attached to the divs rather than
10834 to the headers themselves.
10835 + Table of content backlinks go to the beginning of the table, rather
10836 than to the section reference that was clicked.
10837 + Code for constructing identifiers has been moved to Text.Pandoc.Shared
10838 from the HTML writer, since it is now consumed only by
10840 + In --strict mode, pandoc just prints bare headings, as before
10841 (unless --toc has been specified).
10842 + In s5 output, it does not wrap sections in divs, as that seems to
10843 confuse the s5 javascript.
10845 * Man writer: break lines at end of each sentence. groff expects this
10846 and treats '.' and '?' differently when followed by line ending as
10847 opposed to ordinary space. Also, don't escape periods. Instead, use
10848 zero-width character \& to avoid unwanted interpretation of periods
10849 at start of line. Resolves Issue #148.
10851 * Markdown writer: Added '#' and '>' to list of characters to be
10852 escaped in markdown output. Removed '<', as it is not an officially
10853 escapable character. This partially resolves Issue #96.
10855 * Make --smart the default for man output format. Otherwise we have
10856 trouble dividing lists of endlines into sentences.
10858 * DocBook writer: Use language attribute to indicate source language
10863 + Allow # to continue list, even if the list was started with an
10864 explicit marker. For example:
10869 Resolves Issue #140.
10870 + Allow continuation lines in line blocks. Also added test cases for
10871 line blocks for RST reader. Resolves Issue #149.
10872 + Allow explicit links with spaces in URL: `link <to this>`_
10874 * Improved LaTeX reader's coverage of math modes. Remove displaymath*
10875 (which is not in LaTeX) and recognize all the amsmath environments
10876 that are alternatives to eqnarray, namely equation, equation*,
10877 gather, gather*, gathered, multline, multline*, align, align*,
10878 alignat, alignat*, aligned, alignedat, split. Resolves Issue #103.
10879 Thanks to shreevatsa.public for the patch.
10883 + Allow -, _, :, . in markdown attribute names. These are legal in
10884 XML attribute names.
10885 + Use non-breaking spaces in abbreviations.
10886 + Markdown reader: improved efficiency of abbreviation parsing.
10887 Instead of a separate abbrev parser, we just check for
10888 abbreviations each time we parse a string. This gives a huge
10889 performance boost with -S. Resolves Issue #141.
10891 * Improved efficiency of shared parsers: hexNum, htmlComment,
10892 whitespace, indentSpaces.
10894 * Export HTMLMathMethod in Text.Pandoc.
10896 * Export languagesByExtension in Text.Pandoc.Highlighting.
10898 * Added new Haskell version of markdown2pdf, due to
10899 Paulo Tanimoto. This should be more portable than the old
10902 * Made 'pandoc -v' more explicit about compiler options.
10903 Resolves Issue #139.
10905 * pandoc.hs: Made --strict compatible with --standalone, --toc.
10907 * Use Paths_pandoc to get version number, instead of hard-coding it
10908 into Text/Pandoc.hs.
10912 [ John MacFarlane ]
10914 * Added support for literate Haskell. lhs support is triggered by
10915 '+lhs' suffixes in formats. For example, 'latex+lhs' is literate
10916 Haskell LaTeX. '.lhs' files are treated by default as literate
10919 + Added stateLiterateHaskell to parser state.
10920 + Added parser for lhsCodeBlock to Markdown, RST, LaTeX readers.
10921 + Added parser for |inline lhs| to LaTeX reader.
10922 + Added writerLiterateHaskell to WriterOptions.
10923 + Added lhs support to Markdown, RST, LaTeX, HTML writers.
10924 + Added definition of code environment to LaTeX header.
10925 + Added tests (run only if highlighting support compiled in).
10926 + Documented lhs features in man page and README.
10928 * In Text.Pandoc.Definition, added processWith, processWithM,
10929 and queryWith, and deprecated processPandoc and queryPandoc
10930 for these more general functions.
10932 * Fixed bug in mediawiki writer: improper closing tags in tables.
10933 Thanks to Benct Philip Jonsson for reporting the bug.
10935 * Added --email-obfuscation option.
10937 + Added writer option for email obfuscation.
10938 + Implemented email obfuscation options in HTML writer.
10939 + Added option to option parser.
10940 + Documented in README and pandoc man page.
10941 + Resolves Issue #97.
10943 * LaTeX writer: fixed bug with empty table cells.
10944 Resolves Issue #107. Thanks to rodja.trappe for the patch.
10946 * Fixed bug with header spacing in Markdown and RST writers.
10947 A null header (Meta [] [] []) should not cause a blank line
10948 at the beginning of output. But a blank line is needed between
10949 a non-null header and the main text.
10951 * Markdown reader: Relax spacing rules for $$ in display math. Now
10952 space and newlines are allowed after the opening $$ and before the
10953 closing $$. However, the display math cannot contain an entirely
10954 blank line. Resolves Issue #105.
10956 * Markdown reader: Gobble space after Plain blocks containing only
10957 raw html inline. Otherwise following header blocks are not parsed
10958 correctly, since the parser sees blank space before them. Resolves
10961 * Markdown reader: Allow " as well as '' to end a latex double-quote.
10963 * Conditionally depend on syb and base >= 4 if ghc >= 6.10.
10964 Resolves Issue #109.
10966 * Fixed problems in RST and markdown output due to bug in pretty-1.0.1.0
10968 + Added hang' function to Text.Pandoc.Shared; this will be used instead
10969 of hang, which doesn't work properly in pretty-1.0.1.0. When pretty
10970 is upgraded, we can go back to hang.
10971 See http://article.gmane.org/gmane.comp.lang.haskell.general/16687
10972 + Use hang' (and some different techniques) in RST and markdown writers.
10973 Some output is now a bit different.
10975 * Brought citeproc support up to date for citeproc-hs-0.2.
10976 (Patch by Andrea Rossato.)
10978 * Moved all haskell source to src subdirectory. Renamed Main.hs to
10981 * Rewrote hsmarkdown in Haskell for portability (src/hsmarkdown.hs).
10982 For now, keeping the old shell script too.
10984 * Added TemplateHaskell to Extensions for executable, removed
10985 -threaded for library. Thanks to duncan.coutts for the bug report.
10986 Resolves Issue #121.
10988 * Moved some Extra-Source-Files to Data-Files.
10990 * Moved tabFilter to Shared.
10992 * In pandoc.hs, removed optPreserveTabs; instead, tabstop of 0 means
10995 * Minor code cleanup based on hlint suggestions.
10999 [ John MacFarlane ]
11003 + Changed date on copyright message in Main.hs.
11004 + Have the '-v' option print syntax highlighting languages
11005 separated by commas, and wrapped in lines, instead of in five
11008 * Added --jsmath option. Resolves Issue #68.
11010 + Added --jsmath option to Main.hs
11011 + Added JsMath to HTMLMathMethod in Text.Pandoc.Shared.
11012 + Handle math appropriately in HTML writer when JsMath selected.
11013 + Documented the option in README and man page.
11015 * Text.Pandoc.Shared: Changed compactify to use a better heuristic
11016 for tight and loose lists. Final Para is changed to Plain if all
11017 other list items *end* with a Plain block. Addresses Issue #99.
11021 + Added colons to protocols in unsanitaryURI. Closes Issue #88.
11022 + HTML reader: Don't interpret contents of <pre> blocks as markdown.
11023 Added rawVerbatimBlock parser. Resolves Issue #94.
11027 + Allow URLs with spaces in them in links and references, but escape
11029 + Allow blank space at the end of horizontal rules.
11031 * RST reader: Modified 'unknownDirective' parser to handle comment
11032 blocks correctly, and added tests for comment blocks. Resolves Issue
11033 #86. Closes Debian Bug #500662.
11037 + Include classes on tr elements in HTML output:
11038 "header", "odd", "even". This allows tables to be styled with
11039 lines in alternating colors. Resolves Issue #91.
11040 + Enclose all LaTeXMathML bits in <span class="LaTeX">.
11041 This prevents parts of the document that are not math from being
11042 interpreted as math by LaTeXMathML.js.
11044 * OpenDocument and ODT writers: Added support for HorizontalRule elements,
11045 which were formerly ignored. Resolves Issue #95.
11047 * Text.Pandoc.Shared: Modified wrappedTeX to eliminate the line break
11048 between a footnote and immediately following nonspace characters in
11049 LaTeX and ConTeXt output. (This gets interpreted as a space, which
11050 is not desired in cases like `text^[note]---`.) Resolves Issue #93.
11052 * Windows installer: Don't require admin privileges to run
11053 installer. Modified pandoc-setup.iss, and changed modpath.iss to
11054 modify HKCU path if user lacks admin privileges. Also fixed case
11055 where oldpath is empty (previously this led to the new path
11056 beginning with a semicolon).
11058 * Updated INSTALL instructions for Arch packages and OS X install using
11061 * Removed the (now unneeded) debian directory.
11062 Removed empty Codec and System directories.
11064 * Moved odt-styles/ to data/. Removed unneeded variable in Makefile.
11066 * Modified Setup.hs so that the "test" target returns an error status
11067 when tests fail, and "build" returns a success status if
11068 the build succeeds. Resolves Issue #100.
11070 * Added BUGS to files in tarball.
11075 [ John MacFarlane ]
11077 * Removed spurious reference to pdf output format from pandoc(1) man page.
11083 * Added new OpenDocument writer.
11085 * Added support for SmallCaps inline element.
11087 * Added support for integrating pandoc with citeproc-hs.
11089 + Added Cite element to definition and writers.
11090 + Added Text.Pandoc.Biblio module
11091 + Note: This support is included only if the 'citeproc'
11092 Cabal configuration flag is set.
11094 * Made Pandoc data structure an instance of Typeable.
11095 Added new processPandoc and queryPandoc functions, to query
11096 or transform matching elements in a Pandoc structure.
11100 * Added new Texinfo writer.
11102 [ John MacFarlane ]
11104 * Changes to Texinfo writer:
11106 + No space between paragraph and following @verbatim (provides more
11107 pleasing appearance in text formats)
11108 + Blank line consistently after list environments.
11110 + Use @code instead of @verb for inline code (this solves the character
11111 escaping problem for texi2dvi and texi2pdf).
11112 + Added news of Texinfo writer to README.
11113 + Added Texinfo to list of formats in man page, and removed extra 'groff'.
11114 + Added texi & texinfo extensions to Main.hs, and fixed bug in determining
11115 default output extension.
11116 + Modified disallowedInNode in Texinfo writer to correct list of disallowed characters.
11118 * Added tests for OpenDocument writer.
11120 * Added ODT writer (using zip-archive library to package output of
11121 OpenDocument writer). Added odt-styles directory with default ODT styles.
11123 * Added new mediawiki writer and tests.
11125 * Markdown reader: Added support for delimited code blocks, with optional
11126 syntax highlighting using highlighting-kate (if the 'highlighting'
11127 configuration option is selected).
11129 + Currently highlighting is supported only in the HTML writer.
11130 + Delimited code blocks can have attributes; using the language name as
11131 class triggers highlighting.
11132 + New Attributes parameter in CodeBlock structure.
11133 + --version now indicates whether syntax highlighting support is compiled
11134 in, and prints a list of supported languages
11136 * Removed debian directory. Pandoc is no longer a native debian package.
11138 * Changes to build process: pandoc can now be built from the repository
11139 using Cabal. No unix tools are needed (so, pandoc can be built on Windows
11142 + Include shell scripts themselves in repo, rather than generating from wrappers.
11143 Removed wrappers directory and wrappers Makefile target.
11144 + Text/Pandoc/ASCIIMathML.hs, Text/Pandoc/DefaultHeaders.hs,
11145 and Text/Pandoc/Writers/S5.hs are no longer built in Makefile
11146 from templates in the templates/ directory. Instead, they use template
11147 haskell to read data at compile time from the relevant files in data/.
11148 Template haskell functions go in a new module, Text.Pandoc.TH.
11149 + man pages are now generated in Setup.hs hook, not by Makefile
11150 + Makefile 'tarball' target now calls Cabal's 'sdist'
11151 + Added "Extra-Source-Files" to pandoc.cabal, so sdist contains everything needed
11152 + Added "Build-Type" field to pandoc.cabal to avoid warning.
11153 + Added to "Extra-source-files" and "Extra-tmp-files" in pandoc.cabal,
11154 so 'sdist' and 'clean' will work properly.
11155 + Setup.hs now generates man pages in a postbuild hook.
11156 + Added dependency-checking to Setup.hs, so it only rebuilds things
11157 that need rebuilding.
11158 + Added 'library' and 'executable' configuration flags.
11159 Cabal can now be told to build just the library or just the executable.
11160 + CABALOPTS may now be specified with 'make' to pass Cabal configuration flags.
11161 For example: CABALOPTS=-fhighlighting make
11163 * Rewrote test suite so it doesn't depend on perl or unix tools.
11165 + Replaced old runtests.pl with a Haskell script RunTests.hs.
11166 + Added Diff.hs module to be used by RunTests.hs instead of unix 'diff'.
11167 + Added test hook to Setup.hs, so tests may be run from cabal.
11168 + Changed Makefile's 'test' target to run tests via cabal.
11169 + Removed old generate.sh.
11170 + Since we no longer have 'sed' to filter out raw HTML sections
11171 from the docbook writer test, or raw LaTeX sections from the
11172 context writer test, we now just include these sections.
11173 They can be taken out if it is necessary to process the files.
11174 + Updated latex and context writer tests to remove extra spaces
11176 + Added a markdown table reader test.
11177 + Added markdown-reader-more.txt to test suite, for additional test cases
11178 for raw ConTeXt environments and more.
11180 * Compatibility fixes for CPP, Cabal, and haddock:
11182 + Use CPP in "Extensions" field in pandoc.cabal.
11183 + Removed use of backslash string continuations in source files.
11185 * Removed pandoc.cabal.ghc66. We now require Cabal >= 1.2, GHC >= 6.8,
11188 * Require parsec < 3.
11189 The compatibility module in parsec 3.0.0 gives far worse performance than
11190 parsec 2.1. Eventually pandoc will be upgraded to use the new bytestring
11191 version of parsec, and then we'll go to parsec 3.0.0.
11193 * Removed Text.Regex dependencies by rewriting using plain Haskell
11194 (Text.Pandoc.Writers.RTF, Text.Pandoc.Writers.HTML, Main.hs)
11196 * Moved Text.Pandoc.Writers.DefaultHeaders -> Text.Pandoc.DefaultHeaders.
11200 + Added 'configure' as dependency of 'uninstall-all'.
11201 (It uses the Cabal build program.)
11202 + Makefile: only use --with-hc-pkg if GHC_PKG is defined.
11203 Note that Cabal will automatically choose the ghc-pkg appropriate
11204 for the compiler selected, so normally specifying GHC by itself
11207 * Removed Text.Pandoc.UTF8 module; instead, depend on utf8-string and use
11208 its IO and conversion functions.
11210 * Added -Wall to ghc-options in pandoc.cabal. Cleaned up modules so that
11211 everything is -Wall clean.
11213 + Added pragma to HTML writer to avoid deprecation warning for use of "start" attribute.
11214 + Added pragma to Text/Pandoc/Shared.hs to get rid of "orphan instance" warnings.
11215 (These are caused by the Lift instance for ByteString.)
11217 * Changed the comment used to replace unsafe HTML if sanitize-html option
11220 * Made -c/--css option repeatable on the command line (like -H, -A, -B).
11222 * Moved XML-formatting functions to new unexported module Text.Pandoc.XML.
11224 * Escape '\160' as " ", not " " in XML.
11225 "nbsp" isn't a predefined XML entity.
11227 * Fixed bug in RST reader, which would choke on: "p. one\ntwo\n".
11228 Added some try's in ordered list parsers.
11230 * Man writer: don't escape " as \".
11232 * Allow newline before URL in markdown link references. Resolves Issue #81.
11233 Added tests for this issue in new "markdown-reader-more" tests.
11234 Changed RunTests.hs to run these tests.
11236 * Support for display math. Resolves Issue #47.
11238 + Added a DisplayMath/InlineMath selector to Math inlines.
11239 + Markdown parser yields DisplayMath for $$...$$.
11240 + LaTeX parser yields DisplayMath when appropriate. Removed
11241 mathBlock parsers, since the same effect is achieved by the math
11242 inline parsers, now that they handle display math.
11243 + Writers handle DisplayMath as appropriate for the format.
11244 + Modified tests accordingly; added new tests for display math.
11246 * Use LaTeXMathML instead of ASCIIMathML. LaTeXMathML is closer
11247 to LaTeX in its display of math, and supports many non-math LaTeX environments.
11249 + Changed -m option to use LaTeXMathML rather than ASCIIMathML.
11250 + Modified HTML writer to print raw TeX when LaTeXMathML is
11251 being used instead of suppressing it.
11252 + Removed ASCIIMathML files from data/ and added LaTeXMathML.
11253 + Replaced ASCIIMathML with LaTeXMathML in source files.
11254 + Modified README and pandoc man page source.
11255 + Added --latexmathml option (kept --asciimathml as a synonym
11256 for backwards compatibility)
11258 * Markdown reader: Parse setext headers before atx headers.
11262 parsed by Markdown.pl as an H1 header with contents "# hi".
11264 * Markdown reader: Treat "mixed" lists the same way as Markdown.pl does.
11265 The marker on the first list item determines the type of the whole
11266 list. Thus, a list like
11270 gets parsed as a single ordered list. (Previous versions of pandoc
11271 treated this as an ordered list with an unordered sublist.)
11273 * Markdown smart typography:
11275 + Em dashes no longer eat surrounding whitespace. Resolves Issue #69.
11276 + Use nonbreaking spaces after known abbreviations in markdown parser.
11277 Thus, for example, "Mr. Brown" comes out as "Mr.~Brown" in LaTeX, and does
11278 not produce a sentence-separating space. Resolves Issue #75.
11280 * Markdown writer: Print unicode \160 literally, rather than as .
11282 * Treat '\ ' in (extended) markdown as nonbreaking space.
11283 Print nonbreaking space appropriately in each writer (e.g. ~ in LaTeX).
11285 * The '--sanitize-html' option now examines URIs in markdown links
11286 and images, and in HTML href and src attributes. If the URI scheme
11287 is not on a whitelist of safe schemes, it is rejected. The main point
11288 is to prevent cross-site scripting attacks using 'javascript:' URIs.
11289 See http://www.mail-archive.com/markdown-discuss@six.pairlist.net/msg01186.html
11290 and http://ha.ckers.org/xss.html. Resolves Issue #62.
11294 + Override Text.XHtml's stringToHtml function,
11295 so that characters below 0xff are not converted to numerical entity
11296 references. Also convert '\160' to " ". This should aid readability
11297 and editability of the HTML source. It does presuppose that the HTML
11298 will be served as UTF-8.
11299 + In code blocks, change leading newlines to <br /> tags.
11300 (Some browsers ignore them.) Resolves Issue #71.
11301 See http://six.pairlist.net/pipermail/markdown-discuss/2008-May/001297.html
11302 + Use style attributes rather than css classes for strikethrough
11303 and ordered list styles. This works better when fragments, rather than
11304 standalone documents, are generated.
11306 * HTML reader: Count anything that isn't a known block (HTML) tag as an
11307 inline tag (rather than the other way around). Added "html", "head", and
11308 "body" to list of block tags. Resolves Issue #66, allowing
11309 <lj> to count as an inline tag.
11311 * RTF writer: Fixed bug. Extra spaces were being printed after emphasized,
11312 boldface, and other inline elements. Resolves Issue #64.
11314 * LaTeX reader: improvements in raw LaTeX parsing.
11316 + "loose punctuation" (like {}) parsed as Space
11317 + Para elements must contain more than Str "" and Space elements
11318 + Added parser for "\ignore" command used in literate haskell.
11319 + Reworked unknownCommand and rawLaTeXInline: when not in "parse raw"
11320 mode, these parsers simply strip off the command part and allow
11321 the arguments to be parsed normally. So, for example,
11322 \blorg{\emph{hi}} will be parsed as Emph "hi" rather than
11323 Str "{\\emph{hi}}".
11324 + Parse lhs "code" environments as verbatim.
11325 Refactored parsers for verbatim environments.
11326 + Removed specialEnvironment parser.
11327 + parse '{}', if present, after \textless, \textgreater,
11328 \textbar, \textbackslash, \ldots.
11329 + Parse unescaped special characters verbatim rather than
11330 changing them to spaces. This way arguments of unknown
11331 commands will appear in braces.
11333 * Parse raw ConTeXt environments as TeX in markdown reader.
11334 Resolves Issue #73.
11336 * Moved BlockWrapper and wrappedBlocksToDoc from ConTeXt writer to Shared.
11338 * Made some structural changes to parsing of raw LaTeX environments.
11339 Previously there was a special block parser for LaTeX environments.
11340 It returned a Para element containing the raw TeX inline. This has
11341 been removed, and the raw LaTeX environment parser is now used in the
11342 rawLaTeXInline parser. The effect is exactly the same, except that we
11343 can now handle consecutive LaTeX and ConTeXt environments not separated
11344 by spaces. This new flexibility is required by the example in
11347 \placeformula \startformula
11351 API change: The LaTeX reader now exports rawLaTeXEnvironment' (which
11352 returns a string) rather than rawLaTeXEnvironment (which returns a block
11353 element). This is more likely to be useful in other applications.
11355 * Use \textsubscr instead of \textsubscript for LaTeX subscript macro.
11356 \textsubscript conflicts with a definition in the memoir class.
11357 Resolves Issue #65.
11359 * Removed unneeded space after "\\item" in LaTeX and ConTeXt output.
11361 * Added amsmath package to default LaTeX header. Resolves Issue #48.
11363 * Added \setupitemize[autointro] to ConTeXt header, to prevent orphaned
11364 list introduction lines.
11366 * Changed Float to Double in definition of Table element.
11367 (Double is more efficient in GHC.)
11369 * Fixed bug in Markdown parser: regular $s triggering math mode.
11370 For example: "shoes ($20) and socks ($5)."
11371 The fix consists in two new restrictions:
11373 + the $ that ends a math span may not be directly followed by a digit.
11374 + no blank lines may be included within a math span.
11376 Thanks to Joseph Reagle for noticing the bug.
11378 * Use Data.List's 'intercalate' instead of custom 'joinWithSep'.
11379 Removed 'joinWithSep' from Text.Pandoc.Shared.
11381 * Updated README and man pages. Acknowledge contributors in README.
11382 Added paragraph to README about producing S5 with separate CSS/javascript.
11384 * Updated INSTALL to reflect new build system (including configuration
11385 options) and document new dependencies. Added note to INSTALL that
11386 Cabal >= 1.2 is required for build. Resolves Issue #74.
11388 * Fixed some haddock documentation errors.
11390 * Small fix to markdown2pdf man page: only input needs to be piped through iconv.
11392pandoc (0.46) unstable; urgency=low
11394 [ John MacFarlane ]
11396 * Made -H, -A, and -B options cumulative: if they are specified
11397 multiple times, multiple files will be included.
11399 * Added optional HTML sanitization using a whitelist.
11400 When this option is specified (--sanitize-html on the command line),
11401 unsafe HTML tags will be replaced by HTML comments, and unsafe HTML
11402 attributes will be removed. This option should be especially useful
11403 for those who want to use pandoc libraries in web applications, where
11404 users will provide the input.
11406 + Main.hs: Added --sanitize-html option.
11408 + Text.Pandoc.Shared: Added stateSanitizeHTML to ParserState.
11410 + Text.Pandoc.Readers.HTML:
11411 - Added whitelists of sanitaryTags and sanitaryAttributes.
11412 - Added parsers to check these lists (and state) to see if a given
11413 tag or attribute should be counted unsafe.
11414 - Modified anyHtmlTag and anyHtmlEndTag to replace unsafe tags
11416 - Modified htmlAttribute to remove unsafe attributes.
11417 - Modified htmlScript and htmlStyle to remove these elements if
11420 + Modified README and man pages to document new option.
11422 * Improved handling of email addresses in markdown and reStructuredText.
11423 Consolidated uri and email address parsers. (Resolves Issue #37.)
11425 + New emailAddress and uri parsers in Text.Pandoc.Shared.
11426 - uri parser uses parseURI from Network.URI.
11427 - emailAddress parser properly handles email addresses with periods
11430 + Removed uri and emailAddress parsers from Text.Pandoc.Readers.RST
11431 and Text.Pandoc.Readers.Markdown.
11435 + Fixed emph parser so that "*hi **there***" is parsed as a Strong
11436 nested in an Emph. (A '*' is only recognized as the end of the
11437 emphasis if it's not the beginning of a strong emphasis.)
11439 + Moved blockQuote parser before list parsers for performance.
11441 + Modified 'source' parser to allow backslash-escapes in URLs.
11442 So, for example, [my](/url\(1\)) yields a link to /url(1).
11443 Resolves Issue #34.
11445 + Disallowed links within links. (Resolves Issue #35.)
11446 - Replaced inlinesInBalanced with inlinesInBalancedBrackets, which
11447 instead of hard-coding the inline parser takes an inline parser
11449 - Modified reference and inlineNote to use inlinesInBalancedBrackets.
11450 - Removed unneeded inlineString function.
11451 - Added inlineNonLink parser, which is now used in the definition of
11453 - Added inlineParsers list and redefined inline and inlineNonLink parsers
11455 - Added failIfLink parser.
11457 + Better handling of parentheses in URLs and quotation marks in titles.
11458 - 'source' parser first tries to parse URL with balanced parentheses;
11459 if that doesn't work, it tries to parse everything beginning with
11460 '(' and ending with ')'.
11461 - source parser now uses an auxiliary function source'.
11462 - linkTitle parser simplified and improved, under assumption that it
11463 will be called in context of source'.
11465 + Make 'block' conditional on strictness state, instead of using
11466 failIfStrict in block parsers. Use a different ordering of parsers
11467 in strict mode (raw HTML block before paragraph) for performance.
11468 In non-strict mode use rawHtmlBlocks instead of htmlBlock.
11469 Simplified htmlBlock, since we know it's only called in strict
11472 + Improved handling of raw HTML. (Resolves Issue #36.)
11473 - Tags that can be either block or inline (e.g. <ins>) should
11474 be treated as block when appropriate and as inline when
11475 appropriate. Thus, for example,
11477 should be treated as a paragraph with inline <ins> tags, while
11481 should be treated as a paragraph within <ins> tags.
11482 - Moved htmlBlock after para in list of block parsers. This ensures
11483 that tags that can be either block or inline get parsed as inline
11485 - Modified rawHtmlInline' so that block elements aren't treated as
11487 - Modified para parser so that paragraphs containing only HTML tags and
11488 blank space are not allowed. Treat these as raw HTML blocks instead.
11490 + Fixed bug wherein HTML preceding a code block could cause it to
11491 be parsed as a paragraph. The problem is that the HTML parser
11492 used to eat all blank space after an HTML block, including the
11493 indentation of the code block. (Resolves Issue #39.)
11494 - In Text.Pandoc.Readers.HTML, removed parsing of following space
11496 - In Text.Pandoc.Readers.Markdown, modified rawHtmlBlocks so that
11497 indentation is eaten *only* on the first line after the HTML
11498 block. This means that in
11502 the foo won't be treated as a code block, but in
11508 it will. This seems the right approach for least surprise.
11512 + Fixed bug in parsing explicit links (resolves Issue #44).
11513 The problem was that we were looking for inlines until a '<' character
11514 signaled the start of the URL; so, if you hit a reference-style link,
11515 it would keep looking til the end of the document. Fix: change
11516 inline => (notFollowedBy (char '`') >> inline). Note that this won't
11517 allow code inlines in links, but these aren't allowed in resT anyway.
11519 + Cleaned up parsing of reference names in key blocks and links.
11520 Allow nonquoted reference links to contain isolated '.', '-', '_', so
11521 so that strings like 'a_b_' count as links.
11523 + Removed unnecessary check for following link in str.
11524 This is unnecessary now that link is above str in the definition of
11529 + Modified rawHtmlBlock so it parses </html> and </body> tags.
11530 This allows these tags to be handled correctly in Markdown.
11531 HTML reader now uses rawHtmlBlock', which excludes </html> and </body>,
11532 since these are handled in parseHtml. (Resolves Issue #38.)
11534 + Fixed bug (emph parser was looking for `<IT>` tag, not `<I>`).
11536 + Don't interpret contents of style tags as markdown.
11537 (Resolves Issue #40.)
11538 - Added htmlStyle, analagous to htmlScript.
11539 - Use htmlStyle in htmlBlockElement and rawHtmlInline.
11540 - Moved "script" from the list of tags that can be either block or
11541 inline to the list of block tags.
11543 + Modified rawHtmlBlock to use anyHtmlBlockTag instead of anyHtmlTag
11544 and anyHtmlEndTag. This fixes a bug in markdown parsing, where
11545 inline tags would be included in raw HTML blocks.
11547 + Modified anyHtmlBlockTag to test for (not inline) rather than
11548 directly for block. This allows us to handle e.g. docbook in
11549 the markdown reader.
11551 * LaTeX reader: Properly recognize --parse-raw in rawLaTeXInline.
11552 Updated LaTeX reader test to use --parse-raw.
11556 + Modified rules for automatic HTML header identifiers to
11557 ensure that identifiers begin with an alphabetic character.
11558 The new rules are described in README. (Resolves Issue #33.)
11560 + Changed handling of titles in HTML writer so you don't get
11561 "titleprefix - " followed by nothing.
11563 * ConTeXt writer: Use wrappers around Doc elements to ensure proper
11564 spacing. Each block element is wrapped with either Pad or Reg.
11565 Pad'ed elements are guaranteed to have a blank line in between.
11569 + Refactored RST writer to use a record instead of a tuple for state,
11570 and to include options in state so it doesn't need to be passed as
11573 + Use an interpreted text role to render math in restructuredText.
11574 See http://www.american.edu/econ/itex2mml/mathhack.rst for the
11579 * Debian packaging changes:
11581 + Remove the empty 'include' directory in -dev package, which lintian
11583 + Bump Standarts-Version to 3.7.3.
11584 + Use new 'Homepage:' field to specify the upstream URL on suggestion of
11587 -- Recai Oktaş <roktas@debian.org> Tue, 08 Jan 2008 05:13:31 +0200
11589pandoc (0.45) unstable; urgency=low
11591 [ John MacFarlane ]
11593 * Simplified parsing of reference keys and notes in markdown and RST
11594 readers: The Reference data structure from Text.Pandoc.Shared is no
11595 longer needed, since referenceKey and noteBlock parses return strings
11596 (as many blank lines as were occupied by the key or note) and update
11597 state themselves. getPosition and setPosition are now used to ensure
11598 that error messages will give the correct line number. This yields
11599 cleaner (and slightly faster) code, with more accurate parsing error
11602 * Added new Math inline element:
11604 + Markdown and LaTeX readers now convert TeX math into Math elements,
11606 + This allows math to be treated differently from raw TeX in output.
11607 TeX elements are no longer printed in output formats other than
11608 Markdown, LaTeX, and ConTeXt. But Math elements are always printed.
11610 * New default handling of math in writers:
11612 + New module Text.Pandoc.Readers.TeXMath exports readTeXMath, which
11613 parses raw TeX math and outputs a string of Pandoc inlines that
11614 tries to render it as far as possible using unicode characters,
11615 lapsing into literal TeX when needed.
11616 + readTeXMath is now used for default HTML output in HTML, S5, RTF,
11617 and Docbook, if no other method for displaying math in HTML is
11618 specified. Enclosing $'s are no longer printed by default.
11619 + By default, math is put inside `<span class="math">`. This way it can be
11620 distinguished from the surrounding text, e.g. put in a different
11623 * New --gladtex and --mimetex options for display of math in HTML:
11625 + If --gladtex is specified, math is output between `<eq>` tags, so
11626 it can be processed by gladTeX.
11627 + If --mimetex is specified, math is put in `<img>` tags with a link
11628 to the mimetex CGI script (or any other script that takes TeX math
11629 as input and outputs an image). The URL of the script may be
11630 specified, but defaults to /cgi-bin/mimetex.cgi.
11631 + HTMLMathMethod structure in WriterOptions keeps track of how to
11632 display math in HTML output.
11633 + Updated README with a description of the four options for displaying
11638 + Fixed bug: parser for minimized attributes should not swallow
11640 + Simplified HTML attribute parsing.
11641 + Changed parsing of code blocks in HTML reader: `<code>` tag is no
11642 longer needed. `<pre>` suffices. All HTML tags in the code block
11643 (e.g. for syntax highlighting) are skipped, because they are not
11644 portable to other output formats. A `<code>...</code>` block not
11645 surrounded by `<pre>` now counts as inline HTML, not a code block.
11646 + Remove just one leading and one trailing newline from contents of
11647 `<pre>...</pre>` in codeBlock parser.
11651 + Removed support for box-style block quotes.
11652 + Require space before title in links and references.
11653 This fixes a bug in parsing URLs like http://silly/url(withparen).
11654 + Improved and simplified setextHeader parser.
11655 + Fixed logic in smart quote parsing, adding some needed 'try'
11657 + Fixed smart quote parsing so that unicode characters 8216 and 8217
11658 are recognized as single quotes, and 8220 and 8221 as double quotes.
11662 + Fixed bug in parsing of code blocks. Previously a full tab indent
11663 was required, but RST allows code to be indented any amount.
11664 Resolves Issue #27.
11665 + Allow field lists to be indented.
11666 + Parse the contents of field lists instead of treating as a raw string.
11667 + Represent field lists as definition lists instead of blockquotes.
11668 + Fixed bug in which metadata would be overridden if the document
11669 contained multiple field lists.
11670 + Parse fields associated with '.. image::' blocks, and use 'alt'
11671 field, if given, for image alt and title attributes.
11675 + Modified specialChar so that '"' characters are parsed.
11676 + Fixed a bug in parsing of \[ \] math blocks (thanks to Mark Kalderon).
11680 + Changes in handling of math (see above).
11681 + Don't produce HTML for table of contents if there are
11682 no headers. (This would be an empty list, which is invalid XHTML.)
11686 + Don't print title attribute if title is empty. (This differs from
11687 the behavior of Markdown.pl, and agrees with PHP Markdown. But John
11688 Gruber has indicated that he prefers this behavior.) Adjusted test
11690 + Fixed incorrect line wrapping in paragraphs including hard line
11691 breaks. Resolves Issue #25.
11692 + Fixed bug in markdown writer: If an ordered list item began with
11693 a marker greater than 3 characters in width, and the item took more
11694 than one line, it would appear on the line after the list marker,
11701 Now it works as follows:
11708 + Fixed bug in RST writer's handling of ordered lists. Previously,
11709 list items with multiple lines would not always line up with
11710 single-line list items. Now, list items are nested the length of
11711 the list marker + 1. This looks better and ensures that list items
11712 all line up. (Note that list markers are padded to the length of
11713 the longest list marker in the series.)
11714 + Use 3-space indent for unordered lists.
11715 + If label for a link reference contains a colon, surround it by `
11716 signs so it won't be interpreted as the end of the link label.
11720 + Cleaner output for footnotes. Footnotes now always begin on a new
11721 line, and the final } is on a line by itself only when it needs to
11722 be (i.e. only when the note ends with a Verbatim environment).
11723 + Added writer options to state, so state doesn't need to be passed as
11725 + Text wrapping now provided, using wrapTeXIfNeeded.
11727 * ConTeXt writer: many improvements for more idiomatic ConTeXt output
11728 (thanks to Idris Samawi Hamid for suggestions).
11730 + PrettyPrint module now used for output.
11731 + Writer options are now in state, so they don't have to be passed as
11733 + Text wrapping now provided, using wrapTeXIfNeeded.
11734 + Better treatment of footnotes: footnotes are always on lines by
11735 themselves, and the final } is on a line by itself only when
11736 it needs to be (after \stoptyping).
11737 + Use \subject, \subsubject, ... or \section, \subsection, ... for headings,
11738 depending on whether --number-sections option is selected.
11739 + Extra blank line inserted after \stopitemize
11740 + Use new, "official" definition of blockquote environment. Also, use
11741 blank line after \startblockquote to balance blank line at the end.
11742 + Both itemized and enumerated lists are now generated using
11743 \start-stopitemize, with appropriate options. Removed definitions
11744 of ltxenum and ltxitem, which are no longer needed. Provided
11745 defaults for itemized lists in the preamble. State keeps track of
11746 ordered list level, so that when default numbering is specified,
11747 the appropriate scheme can be used.
11748 + Changed \useurl to \useURL.
11749 + Changed link color from red to blue.
11750 + Use \subsubsubsubsection etc., since these are supported
11751 (up to at least sub x 5).
11753 * Text.Pandoc.Shared:
11755 + Save and restore position in parseFromString, so that accurate
11756 error messages can be given.
11757 + Improved efficiency of romanNumeral parser.
11758 + Added wrappedTeX and wrapTeXIfNeeded functions. These ensure
11759 that footnotes occur on lines by themselves (to make them
11760 easier to see and move) and do not screw up line wrapping.
11762 * Text.Pandoc.UTF8: modified fromUTF8 to strip out the BOM
11763 if present. Windows Notepad and other applications insert a
11764 BOM at the beginning of a UTF8 file.
11766 * Main.hs (tabFilter): Treat '\r' at end of line as newline (in
11767 addition to "\r\n" and '\n').
11769 * Added a writer option for wrapped text and a command-line option
11770 '--no-wrap', which disables text wrapping and minimizes whitespace
11771 in HTML. (Resolves Issue #26.)
11773 + Added support for '--no-wrap' to Main.hs.
11774 + Added wrapIfNeeded function to Text.Pandoc.Shared.
11775 + Use wrapIfNeeded instead of wrapped in the RST, Man, Docbook, and
11777 + Added render and renderFragment helpers to HTML writer.
11779 * Modified html2markdown to run tidy only if the HTML cannot be
11780 parsed. Previously html2markdown piped all input through tidy
11781 before passing it to pandoc. This caused problems on certain pages
11782 (e.g. http://daringfireball.com/markdown) which have well-formed
11783 XHTML that causes tidy to choke. The solution is to pipe through
11784 tidy only if pandoc cannot parse the input by itself. This means
11785 that a temp file is now always used, even when input comes from a
11786 local file or standard input.
11788 * Removed 'version' constant from Main.hs; added 'pandocVersion' to
11789 Text.Pandoc library.
11793 + Modified to work with GHC 6.8 and Cabal configurations. (For GHC
11794 6.8, pretty and containers must be added to Build-Depends, and it
11795 is desirable to use the -O2 compiler option.) Cabal configurations
11796 allows one to select options depending on the compiler version.
11797 For GHC 6.6, the splitBase option can be disabled.
11798 + pandoc.cabal.ghc66 is provided for users with older versions of
11799 Cabal, which do not support configurations.
11800 + Use Ghc-Prof-Options to ensure that '-auto-all' is used when
11801 '--enable-(executable|library)-profiling' is specified. Updated
11802 PROFILING instructions accordingly.
11806 + Makefile now checks GHC version. If GHC is 6.6, pandoc.cabal.ghc66
11807 is copied to pandoc.cabal, and the old pandoc.cabal is copied
11808 to pandoc.cabal.orig. Otherwise, pandoc.cabal is copied to
11809 pandoc.cabal.orig but otherwise unmodified. This way, the Makefile
11810 will work properly with either GHC 6.6 or 6.8.
11811 + Changed BUILDCONF to point to dist/setup-config, not .setup-config.
11812 This is where current versions of Cabal put it.
11813 + Added $(BUILDCMD) target, so setup doesn't get compiled every time.
11814 + Removed dependency of templates on ./templates, which is circular
11815 now that templates is a subdirectory of the top-level.
11817 * MacPorts Portfile:
11819 + Modified to install the pandoc library in addition to programs.
11820 + Installation must be done manually rather than using Makefile's
11822 + Note that the library must be registered in the activate phase,
11823 after the library files have been copied out of the destroot.
11824 Cabal generates a 'register.sh' script that will do this.
11826 * debian/control: Added libghc6-network-dev, libghc6-xhtml-dev, and
11827 libghc6-mtl-dev as dependencies for libghc6-pandoc-dev.
11830 * debian/rules: Converted to UTF-8.
11832 * Changed pandoc home page to http://johnmacfarlane.net/pandoc/.
11834 * Updated ASCIIMathML.js to latest version.
11836 * Directory structure:
11838 + Moved everything from src into the top-level directory.
11839 + Changed references to source directory in Makefile and
11841 + Moved ASCIIMathML.js, headers, and ui into templates directory.
11842 + Modified fillTemplates.pl to reflect new paths.
11846 * Makefile: Fixed the issue of having two copies of the library
11847 documentation under some usage scenarios.
11849 * Replaced 'ghc' with '$(GHC)' in Makefile, and made GHC
11850 and GHC_PKG configurable through the environment, to support
11851 unusual ghc installations. For example:
11852 GHC=/opt/ghc/bin/ghc GHC_PKG=/opt/ghc/bin/ghc-pkg make
11854 -- Recai Oktaş <roktas@debian.org> Sun, 07 Oct 2007 20:51:43 +0300
11856pandoc (0.44) unstable; urgency=low
11858 [ John MacFarlane ]
11860 * Fixed bug in HTML writer: when --toc was used, anchors were put around
11861 headers, which is invalid XHTML (block content within inline element).
11862 Now the anchors are put inside the header tags. Resolves Issue #23.
11864 * Added xmlns attribute to html element in html writer tests.
11865 This attribute is added by more recent versions of the
11866 xhtml library (>= 3000), and is required for valid XHTML.
11870 * On configure, compile 'Setup.hs' to 'setup' and use 'setup' as the build
11871 command instead of 'runhaskell', which, on some platforms (such as s390,
11872 alpha, m68k), throws the following error:
11874 runhaskell Setup.hs configure --prefix=/usr
11875 ghc-6.6.1: not built for interactive use
11877 This causes a serious FTBFS bug. Closes: #440668.
11879 -- Recai Oktaş <roktas@debian.org> Mon, 03 Sep 2007 18:24:02 +0300
11881pandoc (0.43) unstable; urgency=low
11883 [ John MacFarlane ]
11885 * The focus of this release is performance. The markdown parser
11886 is about five times faster than in 0.42, based on benchmarks
11887 with the TextMate manual.
11889 * Main.hs: Replaced CRFilter and tabFilter with single function
11890 tabFilter, which operates on the whole string rather than breaking
11891 it into lines, and handles dos-style line-endings as well as tabs.
11893 * Added separate LaTeX reader and native reader tests; removed
11896 * Text.Pandoc.Shared:
11898 + Removed tabsToSpaces and tabsInLine (they were used only in Main.hs.)
11899 + General code cleanup (to elimante warnings when compiling with -Wall.)
11900 + Added 'wrapped' function, which helps wrap text into paragraphs,
11901 using the prettyprinting library.
11902 + Rewrote charsInBalanced and charsInBalanced'.
11903 - Documented restriction: open and close must be distinct characters.
11904 - Rearranged options for greater efficiency.
11905 - Bug fix: Changed inner call to charsInBalanced inside
11906 charsInBalanced' to charsInBalanced'.
11907 + anyLine now requires that the line end with a newline (not eof).
11908 This is a harmless assumption, since we always add newlines to the
11909 end of a block before parsing with anyLine, and it yields a 10% speed
11911 + Removed unnecessary 'try' in anyLine.
11912 + Removed unneeded 'try' from romanNumeral parser.
11913 + Use notFollowedBy instead of notFollowedBy' in charsInBalanced.
11914 + Removed unneeded 'try' in parseFromString.
11915 + Removed unneeded 'try' from stringAnyCase. (Now it behaves
11917 + Changed definition of 'enclosed' in Text.Pandoc.Shared so that
11918 'try' is not automatically applied to the 'end' parser. Added
11919 'try' in calls to 'enclosed' where needed. Slight speed increase.
11923 + Replaced individual wrapping routines in RST, Man, and Markdown
11924 writers with 'wrapped' from Text.Pandoc.Shared.
11925 + Rewrote LaTeX writer to use the prettyprinting library,
11926 so we get word wrapping, etc.
11927 + Modified latex writer tests for new latex writer using prettyprinter.
11928 + Fixed bug in LaTeX writer: autolinks would not cause
11929 '\usepackage{url}' to be put in the document header. Also, changes
11930 to state in enumerated list items would be overwritten.
11931 + In Markdown writer, escape paragraphs that begin with ordered list
11932 markers, so they don't get interpreted as ordered lists.
11934 * Text.Pandoc.Reades.LaTeX:
11936 + Fixed bug in LaTeX reader, which wrongly assumed that the roman
11937 numeral after "enum" in "setcounter" would consist entirely of
11938 "i"s. 'enumiv' is legitimate.
11939 + LaTeX command and environment names can't contain numbers.
11940 + Rearranged order of parsers in inline for slight speed improvement.
11941 + Added '`' to special characters and 'unescapedChar'.
11943 * Text.Pandoc.Readers.RST:
11945 + Removed unneeded try's in RST reader; also minor code cleanup.
11947 + Rearranged parsers in inline (doubled speed).
11949 * Text.Pandoc.Readers.Markdown:
11951 + Skip notes parsing if running in strict mode. (This yields a nice
11952 speed improvement in strict mode.)
11953 + Simplify autolink parsing code, using Network.URI to test for
11954 URIs. Added dependency on network library to debian/control and
11956 + More perspicuous definition of nonindentSpaces.
11957 + Removed unneeded 'try' in 'rawLine'.
11958 + Combined linebreak and whitespace into a new whitespace parser, to
11959 avoid unnecessary reparsing of space characters.
11960 + Removed unnecessary 'try' in 'codeBlock', 'ellipses', 'noteMarker',
11961 'multilineRow', 'dashedLine', 'rawHtmlBlocks'.
11962 + Use lookAhead in parsers for setext headers and definition lists
11963 to see if the next line begins appropriately; if not, don't waste
11964 any more time parsing.
11965 + Don't require blank lines after code block. (It's sufficient to
11966 end code block with a nonindented line.)
11967 + Changed definition of 'emph': italics with '_' must not
11968 be followed by an alphanumeric character. This is to help
11969 prevent interpretation of e.g. `[LC_TYPE]: my_type` as
11970 `[LC<em>TYPE]:my</em>type`.
11971 + Improved Markdown.pl-compatibility in referenceLink: the two parts
11972 of a reference-style link may be separated by one space, but not
11973 more... [a] [link], [not] [a link].
11974 + Fixed markdown inline code parsing so it better accords with
11975 Markdown.pl: the marker for the end of the code section is a clump
11976 of the same number of `'s with which the section began, followed
11977 by a non-` character. So, for example,
11978 ` h ``` i ` -> `<code>h ``` i</code>`.
11979 + Split 'title' into 'linkTitle' and 'referenceTitle', since the
11980 rules are slightly different.
11981 + Rewrote 'para' for greater efficiency.
11982 + Rewrote link parsers for greater efficiency.
11983 + Removed redundant 'referenceLink' in definition of inline (it's
11984 already in 'link').
11985 + Refactored escapeChar so it doesn't need 'try'.
11986 + Refactored hrule for performance in Markdown reader.
11987 + More intelligent rearranging of 'inline' so that most frequently
11988 used parsers are tried first.
11989 + Removed tabchar parser, as whitespace handles tabs anyway.
11991 * Text.Pandoc.CharacterReferences:
11994 + Removed unnecessary 'try's for a speed improvement.
11995 + Removed unnecessary '&' and ';' from the entity table.
11999 + Makefile: Get VERSION from cabal file, not Main.hs.
12000 + Modified MacPorts Portfile:
12001 - Depend on haddock
12002 - Build and install libraries and library documentation in
12003 addition to pandoc executable
12004 - Added template item for md5 sum in Portfile.in.
12005 - Incorporated changes from MacPorts repository (r28278).
12006 + FreeBSD port: Don't try to generate distinfo in Makefile.
12007 It can be made using 'make makesum' in FreeBSD.
12008 + Make both freebsd and macports targets depend on tarball.
12010 * Website and documentation:
12012 + Updated INSTALL instructions.
12013 + Added pandocwiki demo to website.
12014 + Removed local references to Portfile, since pandoc is now in the
12015 MacPorts repository.
12017 -- Recai Oktaş <roktas@debian.org> Sun, 02 Sep 2007 15:50:11 +0300
12019pandoc (0.42) unstable; urgency=low
12021 [ John MacFarlane ]
12023 * Main.hs: Use utf8 conversion on the extra files loaded with
12024 the -H, -C, -B, and -A options. This fixes problems with unicode
12025 characters in these files.
12027 * Exposed Text.Pandoc.ASCIIMathML, since it is imported in
12028 Text.Pandoc.Readers.HTML and without it we get a linking error when
12033 + Added new rule for enhanced markdown ordered lists: if the list
12034 marker is a capital letter followed by a period (including a
12035 single-letter capital roman numeral), then it must be followed by
12036 at least two spaces. The point of this is to avoid accidentally
12037 treating people's initials as list markers: a paragraph might begin,
12038 "B. Russell was an English philosopher," and this shouldn't be
12039 treated as a list. Documented change in README.
12040 + Blocks that start with "p. " and a digit are no longer treated
12041 as ordered lists (it's a page number).
12042 + Added a needed 'try' to listItem.
12043 + Removed check for a following setext header in endline.
12044 A full test is too inefficient (doubles benchmark time), and the
12045 substitute we had before is not 100% accurate.
12046 + Don't use Code elements for autolinks if --strict specified.
12048 * LaTeX writer: When a footnote ends with a Verbatim environment, the
12049 close } of the footnote cannot occur on the same line or an error occurs.
12050 Fixed this by adding a newline before the closing } of every footnote.
12053 + Removed incorrect "{}" around style information in HTML tables.
12054 Column widths now work properly in HTML.
12055 + If --strict option is specified (and --toc is not), don't include
12056 identifiers in headers, for better Markdown compatibility.
12060 + Separated $(web_dest) and website targets.
12061 + In website, index.txt is now constructed from template index.txt.in.
12062 + Added freebsd target to Markefile. This creates the freebsd Makefile
12063 from Makefile.in, and creates distinfo. Removed Makefile and distinfo
12064 from the repository.
12065 + Added macport target to Makefile. Portfile is built from template
12067 + Removed OSX package targets. (Too many difficulties involving
12068 dependencies on dynamic libraries.)
12069 + More complete INSTALL instructions for all architectures.
12072 + Added a programming demo, pandocwiki.
12076 * Do not forget to close pandoc's ITP. Closes: #391666
12078 -- Recai Oktaş <roktas@debian.org> Sun, 26 Aug 2007 22:51:32 +0300
12080pandoc (0.41) unstable; urgency=low
12082 [ John MacFarlane ]
12084 * Fixed bugs in HTML reader:
12085 + Skip material at end *only if* `</html>` is present (previously,
12086 only part of the document would be parsed if an error was
12087 found; now a proper error message is given).
12088 + Added new constant eitherBlockOrInline with elements that may
12089 count either as block-level or as inline. Modified isInline and
12090 isBlock to take this into account.
12091 + Modified rawHtmlBlock to accept any tag (even an inline tag):
12092 this is innocuous, because rawHtmlBlock is tried only if a regular
12093 inline element can't be parsed.
12094 + Added a necessary 'try' in definition of 'para'.
12096 * Fixed bug in markdown ordered list parsing. The problem was that
12097 anyOrderedListStart did not check for a space following the
12098 ordered list marker. So in 'A.B. 2007' the parser would be
12099 expecting a list item, but would not find one, causing an error.
12100 Fixed a similar bug in the RST reader. Resolves Issue #22.
12102 * Refactored RST and Markdown readers using parseFromString.
12104 * LaTeX reader will now skip anything after \end{document}.
12106 * Fixed blockquote output in markdown writer: previously, block
12107 quotes in indented contexts would be indented only in the first
12110 * Added note to INSTALL about variations in versions of the xhtml
12111 library that can lead to failed tests (thanks to Leif LeBaron).
12113 -- Recai Oktaş <roktas@debian.org> Sun, 19 Aug 2007 23:26:07 +0300
12115pandoc (0.4) unstable; urgency=low
12117 [ John MacFarlane ]
12119 * Added two new output formats: groff man pages and ConTeXt. By
12120 default, output files with extensions ".ctx" and ".context" are
12121 assumed to be ConTeXt, and output files with single-digit extensions
12122 are assumed to be man pages.
12124 * Enhanced ordered lists (documented in README, under Lists):
12125 + The OrderedList block element now stores information about
12126 list number style, list number delimiter, and starting number.
12127 + The readers parse this information when possible.
12128 + The writers use this information to style ordered lists.
12129 + The enhancement can be disabled using the --strict option.
12131 * Added support for tables (with a new Table block element). Two kinds
12132 of tables are supported: a simple table with one-line rows, and a
12133 more complex variety with multiline rows. All output formats are
12134 supported, but only markdown tables are parsed at the moment. The
12135 syntax is documented in README.
12137 * Added support for definition lists (with a new DefinitionList block
12138 element). All output and input formats are supported. The syntax is
12139 documented in README.
12141 * Added support for superscripts and subscripts (with new Superscript
12142 and Subscript inline elements). All input and output
12143 formats. The syntax is documented in README.
12145 * Added support for strikeout (with a new Strikeout inline element).
12146 All input and output formats are supported. Thanks to Bradley Kuhn,
12147 who contributed a patch. The syntax is documented in README. Resolves
12150 * Added a --toc|--table-of-contents option. This causes an automatically
12151 generated table of contents (or an instruction that creates one) to
12152 be inserted at the beginning of the document. Not supported in S5,
12153 DocBook, or man page writers.
12155 * Modified the -m|--asciimathml option:
12157 + If an optional URL argument is provided, a link is inserted
12158 instead of the contents of the ASCIIMathML.js script.
12159 + Nothing is inserted unless the document actually contains
12162 * Removed Blank block element as unnecessary.
12164 * Removed Key and Note blocks from the Pandoc data structure. All
12165 links are now stored as explicit links, and note contents are
12166 stored with the (inline) notes.
12168 + All link Targets are now explicit (URL, title) pairs; there
12169 is no longer a 'Ref' target.
12170 + Markdown and RST parsers now need to extract data from key and
12171 note blocks and insert them into the relevant inline elements.
12172 Other parsers have been simplified, since there is no longer any need
12173 to construct separate key and note blocks.
12174 + Markdown, RST, and HTML writers need to construct lists of
12175 notes; Markdown and RST writers need to construct lists of link
12176 references (when the --reference-links option is specified); and
12177 the RST writer needs to construct a list of image substitution
12178 references. All writers have been rewritten to use the State monad
12179 when state is required.
12180 + Several functions (generateReference, keyTable,
12181 replaceReferenceLinks, replaceRefLinksBlockList, and some auxiliaries
12182 used by them) have been removed from Text.Pandoc.Shared, since
12183 they are no longer needed. New functions and data structures
12184 (Reference, isNoteBlock, isKeyBlock, isLineClump) have been
12185 added. The functions inTags, selfClosingTag, inTagsSimple, and
12186 inTagsIndented have been moved to the DocBook writer, since that
12187 is now the only module that uses them. NoteTable is now exported
12188 in Text.Pandoc.Shared.
12189 + Added stateKeys and stateNotes to ParserState; removed stateKeyBlocks,
12190 stateKeysUsed, stateNoteBlocks, stateNoteIdentifiers, stateInlineLinks.
12191 + Added writerNotes and writerReferenceLinks to WriterOptions.
12193 * Added Text.Pandoc module that exports basic readers, writers,
12194 definitions, and utility functions. This should export everything
12195 needed for most uses of Pandoc libraries. The haddock documentation
12196 includes a short example program.
12198 * Text.Pandoc.ASCIIMathML is no longer an exported module.
12200 * Added Text.Pandoc.Blocks module to help in printing markdown
12201 and RST tables. This module provides functions for working with
12202 fixed-width blocks of text--e.g., placing them side by side, as
12205 * Refactored to avoid reliance on Haskell's Text.Regex library, which
12206 (a) is slow, and (b) does not properly handle unicode. This fixed
12207 some strange bugs, e.g. in parsing S-cedilla, and improved performance.
12209 + Replaced 'gsub' with a general list function 'substitute'
12210 that does not rely on Text.Regex.
12211 + Rewrote extractTagType in HTML reader so that it doesn't use
12213 + In Markdown reader, replaced email regex test with a custom email
12214 autolink parser (autoLinkEmail). Also replaced selfClosingTag regex
12215 with a custom function isSelfClosingTag.
12216 + Modified Docbook writer so that it doesn't rely on Text.Regex for
12217 detecting 'mailto' links.
12218 + Removed escapePreservingRegex and reamped entity-handling
12219 functions in Text.Pandoc.Shared and Text.Pandoc.CharacterReferences to
12220 avoid reliance on Text.Regex (see below on character reference
12223 * Renamed Text.Pandoc.Entities as Text.Pandoc.CharacterReferences.
12225 * Changed handling of XML entities. Entities are now parsed (and unicode
12226 characters returned) in the Markdown and HTML readers, rather than being
12227 handled in the writers. In HTML and Docbook writers, UTF-8 is now used
12228 instead of entities for characters above 128. This makes the HTML and
12229 DocBook output much more readable and more easily editable.
12231 + Removed sgmlHexEntity, sgmlDecimalEntity, sgmlNamedEntity, and
12232 sgmlCharacterEntity regexes from Text.Pandoc.Shared.
12233 + Renamed escapeSGMLChar to escapeCharForXML. Added escapeStringForXML.
12234 Moved both functions to Text.Pandoc.Writers.Docbook.
12235 + Added characterReference parser to Text.Pandoc.CharacterReferences.
12236 This parses a string and return a unicode character.
12237 + Rewrote decodeCharacterReferences to use the new parser instead of
12239 + Added new charRef parser for Markdown and HTML, which replaces the
12240 old 'entity' parser. Added '&' as a special character in Markdown reader.
12241 + Modified HTML and Markdown readers to call decodeEntities on all raw
12242 strings (e.g. authors, dates, link titles), to ensure that no
12243 unprocessed entities are included in the native representation of
12244 the document. (In the HTML reader, most of this work is done by a
12245 change in extractAttributeName.)
12246 + In XML and Markdown output, escape unicode nonbreaking space as ' ',
12247 since a unicode non-breaking space is impossible to distinguish visually
12248 from a regular space. (Resolves Issue #3.)
12249 + Removed encodeEntitiesNumerical.
12250 + Use Data.Map for entityTable and (new) reverseEntityTable, for a
12251 slight performance boost over the old association list.
12252 + Removed unneeded decodeEntities from 'str' parser in HTML and
12255 * Text.Pandoc.UTF8: Renamed encodeUTF8 to toUTF8, decodeUTF8 to
12256 fromUTF8, for clarity.
12258 * Replaced old haskell98 module names replaced by hierarchical module
12259 names, e.g. List by Data.List. Removed haskell98 from dependencies
12260 in pandoc.cabal, and added mtl (needed for state monad). Substituted
12263 * Refactored and cleaned up character escaping in writers, using
12264 backslashEscapes and escapeStringUsing functions.
12266 * Instead of adding "\n\n" to the end of an input string in Main.hs,
12267 this is now done in the readers. This makes the libraries behave
12268 the way you'd expect from the pandoc program. Resolves Issue #10.
12270 * URLs and email addresses in autolinks are now typeset as Code.
12272 * In Main.hs, changed putStr to putStrLn -- mainly because MacOS X
12273 doesn't display the whole output unless there's a line ending.
12275 * Major code cleanup in all modules, for greater consistency, concision,
12280 + Fixed several bugs (extractTagType, attribute parsing).
12281 + Remove Null blocks in lists of blocks when possible.
12282 + Allow HTML comments as raw HTML inline.
12286 + Ordered list items may no longer begin with uppercase letters, or
12287 letters greater than 'n'. (This prevents first initials and page
12288 reference, e.g. 'p. 400', from being parsed as beginning lists.)
12289 Also, numbers beginning list items may no longer end with ')',
12290 which is now allowed only after letters. Note: These changes
12291 may cause documents to be parsed differently. Users should take
12293 + Changed autoLink parsing to conform better to Markdown.pl's
12294 behavior. `<google.com>` is not treated as a link, but
12295 `<http://google.com>`, `<ftp://google.com>`, and
12296 `<mailto:google@google.com>` are.
12297 + Cleaned up handling of embedded quotes in link titles. Now these are
12298 stored as a '"' character, not as '"'.
12299 + Use lookAhead parser for the 'first pass' (looking for reference keys),
12300 instead of parsing normally, then using setInput to reset input. This
12301 yields a slight performance boost.
12302 + Fixed several bugs in smart quote recognition.
12303 + Fixed bug in indentSpaces (which didn't properly handle
12304 cases with mixed spaces and tabs).
12305 + Consolidated 'text', 'special', and 'inline' into 'inline'.
12306 + Fixed bug which allowed URL and title to be separated by multiple blank
12307 lines in links and reference keys. They can be on separate lines but
12308 can't have blank lines between them.
12309 + Correctly handle bracketed text inside inline footnotes and links,using
12310 new function inlinesInBalanced. Resolves Issue #14.
12311 + Fixed bug in footnotes: links in footnotes were not being
12312 processed. Solution: three-stage parse. First, get all the
12313 reference keys and add information to state. Next, get all the
12314 notes and add information to state. (Reference keys may be needed
12315 at this stage.) Finally, parse everything else.
12316 + Replaced named constants like 'emphStart' with literals.
12317 + Removed an extra occurance of escapedChar in definition of inline.
12321 + Allow the URI in a RST hyperlink target to start on the line
12322 after the reference key.
12323 + Added 'try' in front of 'string', where needed, or used a different
12324 parser. This fixes a bug where ````` would not be correctly parsed as
12326 + Fixed slow performance in parsing inline literals in RST reader. The
12327 problem was that ``#`` was seen by 'inline' as a potential link or image.
12328 Fix: inserted 'notFollowedBy (char '`')' in link parsers.
12330 + Use lookAhead instead of getInput/setInput in RST reader. Removed
12331 unneeded getState call, since lookAhead automatically saves and
12332 restores the parser state.
12333 + Allow hyperlink target URIs to be split over multiple lines, and
12334 to start on the line after the reference. Resolves Issue #7.
12335 + Fixed handling of autolinks.
12339 + Replaced 'choice [(try (string ...), ...]' idiom with 'oneOfStrings',
12341 + Added clauses for tilde and caret. Tilde is \ensuremath{\sim}, and
12342 caret is \^{}, not \^ as before.
12343 + Added parsing for \url.
12344 + Parse \texttt{} as code, provided there's nothing fancy inside.
12348 + Modified HTML writer to use the Text.XHtml library. This results
12349 in cleaner, faster code, and it makes it easier to use Pandoc in
12350 other projects, like wikis, which use Text.XHtml. Two functions are
12351 now provided, writeHtml and writeHtmlString: the former outputs an
12352 Html structure, the latter a rendered string. The S5 writer is also
12353 changed, in parallel ways (writeS5, writeS5String).
12354 + The Html header is now written programmatically, so it has been
12355 removed from the 'headers' directory. The S5 header is still
12356 needed, but the doctype and some of the meta declarations have
12357 been removed, since they are written programatically. This change
12358 introduces a new dependency on the xhtml package.
12359 + Fixed two bugs in email obfuscation involving improper escaping
12360 of '&' in the `<noscript>` section and in `--strict` mode. Resolves
12362 + Fixed another bug in email obfuscation: If the text to be obfuscated
12363 contains an entity, this needs to be decoded before obfuscation.
12364 Thanks to thsutton for the patch. Resolves Issue #15.
12365 + Changed the way the backlink is displayed in HTML footnotes.
12366 Instead of appearing on a line by itself, it now generally
12367 appears on the last line of the note. (Exception: when the
12368 note does not end with a Plain or Para block.) This saves space
12370 + Added automatic unique identifiers to headers:
12371 - The identifier is derived from the header via a scheme
12372 documented in README.
12373 - WriterState now includes a list of header identifiers and a table
12374 of contents in addition to notes.
12375 - The function uniqueIdentifiers creates a list of unique identifiers
12376 from a list of inline lists (e.g. headers).
12377 - This list is part of WriterState and gets consumed by blockToHtml
12378 each time a header is encountered.
12379 + Include CSS for .strikethrough class in header only if strikethrough
12380 text appears in the document.
12381 + If the 'strict' option is specified, elements that do not appear in
12382 standard markdown (like definition lists) are passed through as
12384 + Simplified treatment of autolinks, using pattern matching instead of
12389 + Links in markdown output are now printed as inline links by default,
12390 rather than reference links. A --reference-links option has been added
12391 that forces links to be printed as reference links. Resolves Issue #4.
12392 + Use autolinks when possible. Instead of `[site.com](site.com)`,
12397 + Rewrote to use the State monad. The preamble now includes only those
12398 packages that are actually required, given the document's content.
12399 Thus, for example, if strikeout is not used, ulem is not required.
12400 Modified LaTeXHeader accordingly.
12401 + Modified LaTeX writer to insert '\,' between consecutive quotes.
12402 + Removed unused function tableRowColumnWidths.
12403 + Simplified code for escaping special characters.
12404 + Leave extra blank line after \maketitle.
12405 + Include empty '\author{}' when no author specified to avoid LaTeX
12407 + Include fancyvrb code in header only if needed -- that is, only
12408 if there is actually code in a footnote.
12409 + Use \url{} for autolinks.
12410 + Include [mathletters] option in ucs package, so that basic unicode
12411 Greek letters will work correctly.
12413 * RST writer: Force blank line before lists, so that sublists will
12414 be handled correctly.
12416 * Docbook writer: Fixed a bug: email links with text, like
12417 [foo](me@bar.baz), were being incorrectly treated as autolinks.
12419 * Removed Text.ParserCombinators.Pandoc and moved all its functions to
12420 Text.Pandoc.Shared.
12422 * Text.Pandoc.Shared:
12424 + Added defaultWriterOptions.
12425 + Added writerTableOfContents to WriterOptions.
12426 + Added writerIgnoreNotes option to WriterOptions. This is needed
12427 for processing header blocks for a table of contents, since notes on
12428 headers should not appear in the TOC.
12429 + Added prettyprinting for native Table format.
12430 + Removed some unneeded imports.
12431 + Moved escape and nullBlock parsers from
12432 Text.ParserCombinators.Pandoc, since the latter is for
12433 general-purpose parsers that don't depend on Text.Pandoc.Definition.
12434 + Moved isHeaderBlock from Text.Pandoc.Writers.HTML.
12435 + Moved Element, headerAtLeast, and hierarchicalize from Docbook
12436 writer, because HTML writer now uses these in constructing a table
12438 + Added clauses for new inline elements (Strikeout, Superscript,
12439 Subscript) to refsMatch.
12440 + Removed backslashEscape; added new functions escapeStringUsing and
12442 + Moved failIfStrict from markdown reader, since it is now used also
12443 by the HTML reader.
12444 + Added a 'try' to the definition of indentSpaces.
12445 + In definition of 'reference', added check to make sure it's not a note
12447 + Added functions: camelCaseToHyphenated, toRomanNumeral,
12448 anyOrderedListMarker, orderedListmarker, orderedListMarkers,
12449 charsInBalanced', withHorizDisplacement, romanNumeral
12450 + Fixed a bug in the anyLine parser. Previously it would parse an empty
12451 string "", but it should fail on an empty string, or we get an error
12452 when it is used inside "many" combinators.
12453 + Removed followedBy' parser, replacing it with the lookAhead parser from
12455 + Added some needed 'try's before multicharacter parsers, especially in
12457 + Removed the 'try' from the 'end' parser in 'enclosed', so that
12458 'enclosed' behaves like 'option', 'manyTill', etc.
12459 + Added lineClump parser, which parses a raw line block up to and
12460 including any following blank lines.
12461 + Renamed parseFromStr to parseFromString.
12462 + Added a 'try' to the 'end' parser in 'enclosed'. This makes errors in
12463 the use of 'enclosed' less likely. Removed some now-unnecessary 'try's
12465 + Removed unneeded 'try' in blanklines.
12466 + Removed endsWith function and rewrote calling functions to use
12467 isSuffixOf instead.
12468 + Added >>~ combinator.
12469 + Fixed bug in normalizeSpaces: Space:Str "":Space should compress to
12472 * Refactored runtests.pl; added separate tests for tables.
12476 + Added -asxhtml flag to tidy in html2markdown. This will
12477 perhaps help the parser, which expects closing tags.
12478 + Modified markdown2pdf to run pdflatex a second time if --toc or
12479 --table-of-contents was specified; otherwise the table of
12480 contents won't appear.
12481 + Modified markdown2pdf to print a helpful message if the 'ulem'
12482 LaTeX package is required and not found.
12484 * Changes to build process:
12486 + Dropped support for compilation with GHC 6.4. GHC 6.6 or higher
12488 + Removed cabalize and Pandoc.cabal.in. The repository now contains
12489 pandoc.cabal itself.
12490 + Pandoc.cabal has been changed to pandoc.cabal, because HackageDB
12491 likes the cabal file to have the same name as the tarball.
12492 + Expanded and revised the package description in pandoc.cabal.
12493 Revised the package synopsis.
12494 + The tarball built by 'make tarball' now contains files built from
12495 templates (including man pages and shell scripts), so pandoc can
12496 be built directly using Cabal tools, without preprocessing.
12497 + Executable binaries are now stripped before installing.
12498 + Man pages are now generated from markdown sources, using pandoc's
12500 + Use HTML version of README (instead of RTF) in Mac OS X installer.
12501 + Instead of testing for the existence of a pandoc symlink in build-exec,
12506 + Updated README and man pages with information on new features.
12507 + Updated INSTALL instructions with some useful clarifications and
12509 + Updated web content.
12511 * Added FreeBSD port.
12517 + Changed pandoc's Build-Depends to include libghc6-mtl-dev and
12518 libghc6-xhtml-dev. Removed libghc6-html-dev.
12519 + Suggest texlive-latex-recommended | tetex-extra instead of
12520 tetex-bin. This brings in fancyvrb and unicode support.
12522 -- Recai Oktaş <roktas@debian.org> Tue, 16 Jan 2007 00:37:21 +0200
12524pandoc (0.3) unstable; urgency=low
12526 [ John MacFarlane ]
12528 * Changes in pandoc options:
12530 + Allow options to follow or precede arguments.
12531 + Changed '--smartypants' to '--smart' and adjusted symbols accordingly.
12532 + Added '--strict' option.
12533 + Added '-o/--output' option.
12534 + Added '--dump-args' and '--ignore-args' options (for use in wrappers).
12535 + Modified '-v' and '-h' output to go to STDERR, not STDOUT, and return
12536 error conditions. This is helpful for writing wrappers.
12537 + Added copyright message to '-v' output, modeled after FSF messages.
12538 + Reformatted usage message so that it doesn't wrap illegibly.
12539 + Removed extra blanks after '-h' and '-D' output.
12541 * Added docbook writer.
12543 * Added implicit setting of default input and output format based
12544 on input and output filename extensions. These defaults are
12545 overridden if explicit input and output formats are specified using
12546 '-t', '-f', '-r', or '-w' options. Documented in pandoc(1) man page
12549 * Allow ordered list items to begin with (single) letters, as well
12550 as numbers. The list item marker may now be terminated either by
12551 '.' or by ')'. This extension to standard markdown is documented
12554 * Revised footnote syntax. (See README for full details.) The
12555 '[^1]' format now standard in markdown extensions is supported,
12556 as are inline footnotes with this syntax: `^[My note.]`.
12557 The earlier footnote syntax `^(1)` is no longer supported.
12559 * Improved HTML representation of footnotes. All footnotes
12560 are now auto-numbered and appear in an ordered list at the
12561 end of the HTML document. Since the default appearance is now
12562 acceptable, the old footnote styles have been removed from the
12567 + Fixed a serious bug in the markdown, LaTeX, and RST readers.
12568 These readers ran 'runParser' on processed chunks of text to handle
12569 embedded block lists in lists and quotation blocks. But then
12570 any changes made to the parser state in these chunks was lost,
12571 as the state is local to the parser. So, for example, footnotes
12572 didn't work in quotes or list items. The fix: instead of calling
12573 runParser on some raw text, use setInput to make it the input, then
12574 parse it, then use setInput to restore the input to what it was
12575 before. This is shorter and more elegant, and it fixes the problem.
12576 + Fixed bug in notFollowedBy' combinator (adding 'try' before
12577 'parser'). Adjusted code that uses this combinator accordingly.
12578 + Fixed bug in RTF writer that caused improper indentation on
12579 footnotes occurring in indented blocks like lists.
12580 + Fixed parsing of metadata in LaTeX reader. Now the title, author,
12581 and date are parsed correctly. Everything else in the preamble
12583 + Modified escapedChar in LaTeX reader to allow a '\' at the end of a
12584 line to count as escaped whitespace.
12585 + Modified LaTeX reader to produce inline links rather than reference
12586 links. Otherwise, links in footnotes aren't handled properly.
12587 + Fixed handling of titles in links in Markdown reader, so that
12588 embedded quotation marks are now handled properly.
12589 + Fixed Markdown reader's handling of embedded brackets in links.
12590 + Fixed Markdown reader so that it only parses bracketed material
12591 as a reference link if there is actually a corresponding key.
12592 + Revised inline code parsing in Markdown reader to conform to
12593 markdown standard. Now any number of `s can begin inline code,
12594 which will end with the same number of `s. For example, to
12595 have two backticks as code, write ``` `` ```. Modified Markdown
12596 writer accordingly.
12597 + Fixed bug in text-wrapping routine in Markdown and RST writers.
12598 Now LineBreaks no longer cause wrapping problems.
12599 + Supported hexadecimal numerical entity references as well as
12601 + Fixed bug in Markdown reader's handling of underscores and other
12602 inline formatting markers inside reference labels: for example,
12603 in '[A_B]: /url/a_b', the material between underscores was being
12604 parsed as emphasized inlines.
12605 + Changed Markdown reader's handling of backslash escapes so that
12606 only non-alphanumeric characters can be escaped. Strict mode
12607 follows Markdown.pl in only allowing a select group of punctuation
12608 characters to be escaped.
12609 + Modified HTML reader to skip a newline following a `<br>` tag.
12610 Otherwise the newline will be treated as a space at the beginning
12613 * Made handling of code blocks more consistent. Previously, some
12614 readers allowed trailing newlines, while others stripped them.
12615 Now, all readers strip trailing newlines in code blocks. Writers
12616 insert a newline at the end of code blocks as needed.
12618 * Modified readers to make spacing at the end of output more consistent.
12620 * Minor improvements to LaTeX reader:
12622 + '\thanks' now treated like a footnote.
12623 + Simplified parsing of LaTeX command arguments and options.
12624 commandArgs now returns a list of arguments OR options (in
12625 whatever order they appear). The brackets are included, and
12626 a new stripFirstAndLast function is provided to strip them off
12627 when needed. This fixes a problem in dealing with \newcommand
12628 and \newenvironment.
12630 * Revised RTF writer:
12632 + Default font is now Helvetica.
12633 + An '\f0' is added to each '\pard', so that font resizing works
12636 * Moved handling of "smart typography" from the writers to the Markdown
12637 and LaTeX readers. This allows great simplification of the writers
12638 and more accurate smart quotes, dashes, and ellipses. DocBook can
12639 now use `<quote>`. The '--smart' option now toggles an option in
12640 the parser state rather than a writer option. Several new kinds
12641 of inline elements have been added: Quoted, Ellipses, Apostrophe,
12644 * Changes in HTML writer:
12646 + Include title block in header even when title is null.
12647 + Made javascript obfuscation of emails even more obfuscatory,
12648 by combining it with entity obfuscation.
12650 * Changed default ASCIIMathML text color to black.
12654 + Added --strip-trailing-cr option to diff in runtests.pl, for
12655 compatibility with Windows.
12656 + Added regression tests with footnotes in quote blocks and lists.
12658 * Makefile changes:
12660 + osx-pkg target creates a Mac OS X package (directory). New osx
12661 directory contains files needed for construction of the package.
12662 + osx-dmg target creates a compressed disk image containing the package.
12663 + win-pkg target creates Windows binary package.
12664 + tarball target creates distribution source tarball.
12665 + website target generates pandoc's website automatically, including
12666 demos. New 'web' directory containts files needed for construction
12667 of the website (which will be created as the 'pandoc' subdirectory
12669 + Makefile checks to see if we're running Windows/Cygwin; if so,
12670 a '.exe' extension is added to each executable in EXECS.
12672 * Removed all wrappers except markdown2pdf and html2markdown.
12674 * Added new wrapper hsmarkdown, to be used as a drop-in replacement
12675 for Markdown.pl. hsmarkdown calls pandoc with the '--strict'
12676 option and disables other options.
12678 * Added code to html2markdown that tries to determine the character
12679 encoding of an HTML file, by parsing the "Content-type" meta tag.
12681 + If the encoding can't be determined, then if the content is local,
12682 the local encoding is used; if it comes from a URL, UTF-8 is used
12684 + If input is from STDIN, don't try to determine character encoding.
12685 + Encoding can be specified explicitly using '-e' option.
12687 * Improved warning messages in wrappers:
12689 + Print warning if iconv not available
12690 + More user-friendly error messages in markdown2pdf, when
12695 + Renamed 'Text/Pandoc/HtmlEntities' module to
12696 'Text/Pandoc/Entities'. Also changed function names so as
12697 not to be HTML-specific.
12698 + Refactored SGML string escaping functions from HTML and Docbook
12699 writers into Text/Pandoc/Shared. (escapeSGML, stringToSGML)
12700 + Removed 'BlockQuoteContext' from ParserContext, as it isn't
12702 + Removed splitBySpace and replaced it with a general, polymorphic
12704 + Refactored LaTeX reader for clarity (added isArg function).
12705 + Converted some CR's to LF's in src/ui/default/print.css.
12706 + Added license text to top of source files.
12707 + Added module data for haddock to source files.
12708 + Reformatted code for consistency.
12710 * Rewrote documentation and man pages. Split README into INSTALL
12713 * Split LICENSE into COPYING and COPYRIGHT.
12715 * Removed TODO, since we now maintain ToDo on the wiki.
12717 * Made COPYRIGHT in top level a symlink to debian/copyright, to avoid
12722 * Revamped build process to conform to debian standards and created
12723 a proper debian package. Closes: #391666.
12725 * Modified build process to support GHC 6.6.
12727 + The package can still be compiled using GHC 6.4.2, though because
12728 of dependencies the "make deb" target works only with GHC 6.6+.
12729 + The script 'cabalize' is used to create an appropriate
12730 'Pandoc.cabal' from 'Pandoc.cabal.in', depending on the GHC and
12733 * Refactored template processing (fillTemplates.pl).
12735 * Modified wrapper scripts to make them more robust and portable.
12736 To avoid code duplication and ensure consistency, wrappers are
12737 generated via a templating system from templates in src/wrappers.
12739 + Wrappers now accept multiple filenames, when appropriate.
12740 + Spaces and tabs allowed in filenames.
12741 + getopts shell builtin is used for portable option parsing.
12742 + Improved html2markdown's web grabber code, making it more robust,
12743 configurable and verbose. Added '-e', '-g' options.
12745 -- Recai Oktaş <roktas@debian.org> Fri, 05 Jan 2007 09:41:19 +0200
12747pandoc (0.2) unstable; urgency=low
12749 * Fixed unicode/utf-8 translation
12751 -- John MacFarlane <jgm@berkeley.edu> Mon, 14 Aug 2006 00:00:00 -0400
12753pandoc (0.1) unstable; urgency=low
12755 * Initial creation of debian package
12757 -- John MacFarlane <jgm@berkeley.edu> Mon, 14 Aug 2006 00:00:00 -0400
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list