5 + Fixed filepaths for nonstandard epub-subdirectory values.
6 + Ensure that epub2 is recognized as a non-text format,
7 so that a template is used.
8 + Don't include "prefix" attribute for ibooks for epub2.
10 + Fix stylesheet paths; previously we had an incorrect
11 stylesheet path for the cover page and nav page.
15 + Insert space when needed in macro expansion (#4007).
16 Sometimes we need to insert a space after a control sequence
17 to prevent it merging with a following letter.
18 + Allow unbraced arguments for macros (#4007).
19 + Allow body of macro definition to be unbraced (#4007).
21 * Linux package build: ensure that pandoc-citeproc is statically linked.
23 * trypandoc: add native, ms.
29 * New output format `ms` (groff ms). Complete support, including
30 tables, math, syntax highlighting, and PDF bookmarks. The writer uses
31 texmath's new eqn writer to convert math to eqn format, so a ms file
32 produced with this writer should be processed with `groff -ms -e` if
35 * New output format `jats` (Journal Article Tag Suite). This is an XML
36 format used in archiving and publishing articles. Note that a
37 URI-encoded CSL stylesheet (`data/jats.csl`) is added automatically
38 unless a stylesheet is specified using `--css`.
40 * New output format `gfm` (GitHub-flavored CommonMark) (#3841).
41 This uses bindings to GitHub's fork of cmark, so it should parse
42 gfm exactly as GitHub does (excepting certain postprocessing
43 steps, involving notifications, emojis, etc.). `markdown_github`
44 has been deprecated in favor of `gfm`.
46 * New output format `muse` (Emacs Muse) (Alexander Krotov, #3489).
48 * New input format `gfm` (GitHub-flavored CommonMark) (#3841).
49 This uses bindings to GitHub's fork of cmark. `markdown_github`
50 has been deprecated in favor of `gfm`.
52 * New input format `muse` (Emacs Muse) reader (Alexander Krotov, #3620).
54 * New input format `tikiwiki` (TikiWiki markup) (rlpowell, #3800).
56 * New input format `vimwiki` (Vimwiki markup) (Yuchen Pei, #3705).
57 Note that there is a new data file, `data/vimwiki.css`, which can
58 be used to display the HTML produced by this reader and
59 pandoc's HTML writer in the style of vimwiki's own HTML
62 * New input format `creole` (Creole 1.0) (#3994, Sascha Wilde).
64 * New syntax for Divs, with `fenced_divs` extension enabled by
65 default (#168). This gives an attractive, plain-text way to create
66 containers for block-level content.
68 * Added new syntax for including raw content in any output format,
69 enabled by the `raw_attribute` extension (which is on by default
70 for `markdown` and `multimarkdown`). The syntax is the same as
71 for fenced code blocks or code inlines, only with `{=FORMAT}` for
72 attributes, where `FORMAT` is the name of the output format
75 * Implement multicolumn support for slide formats (#1710).
76 The structure expected is:
79 <div class="column" width="40%">
82 <div class="column" width="60%">
87 Support has been added for beamer and all HTML slide formats.
89 * Allows line comments in templates, beginning with `$--` (#3806).
90 (Requires doctemplates 0.2.1.)
92 * Add `--eol=crlf|lf|native` flag and writer option to control line endings
93 (Stefan Dresselhaus, #3663, #2097).
95 * Add `--log` option to save log messages in JSON format to a file (#3392).
97 * Add `--request-header` option, to set request headers when pandoc
98 makes HTTP requests to fetch external resources. For example:
99 `--request-header User-Agent:blah`.
101 * Added lua filters (Albert Krewinkel, #3514). The new `--lua-filter`
102 option works like `--filter` but takes pathnames of special lua filters
103 and uses the lua interpreter baked into pandoc, so that no external
104 interpreter is needed. Note that lua filters are all applied after
105 regular filters, regardless of their position on the command line.
106 For documentation of lua filters, see `doc/lua-filters.md`.
108 * Set `PANDOC_READER_OPTIONS` in environment where filters are run.
109 This contains a JSON representation of `ReaderOptions`, so filters
112 * Support creation of pdf via groff `ms` and pdfroff.
113 `pandoc -t ms -o output.pdf input.txt`.
115 * Support for PDF generation via HTML and `weasyprint` or `prince`
116 (Mauro Bieg, #3909). `pandoc -t html5 -o output.pdf --pdf-engine=prince`.
118 * Added `--epub-subdirectory` option (#3720). This specifies the
119 subdirectory in the OCF container that holds the EPUB specific content.
120 We now put all EPUB related content in an `EPUB/` subdirectory by default
121 (later this will be configurable).
126 com.apple.ibooks.display-options.xml
128 EPUB/ <<--configurable-->>
129 fonts/ <<--static-->>
131 media/ <<--static-->>
134 styles/ <<--static-->>
142 * Added `--resource-path=SEARCHPATH` command line option (#852).
143 SEARCHPATH is separated by the usual character, depending on OS
144 (: on unix, ; on windows). Default resource path is just working
145 directory. However, the working directory must be explicitly
146 specified if the `--resource-path` option is used.
148 * Added --abbreviations=FILE option for custom abbreviations file
149 (#256). Dfault abbreviations file (`data/abbreviations`) contains
150 a list of strings that will be recognized by pandoc's
151 Markdown parser as abbreviations. (A nonbreaking space will
152 be inserted after the period, preventing a sentence space in
153 formats like LaTeX.) Users can override the default by putting a file
154 abbreviations in their user data directory (`~/.pandoc` on *nix).
156 * Allow a theme file as argument to `--highlight-style`.
157 Also include a sample, `default.theme`, in `data/`.
159 * Allow `--syntax-definition` option for dynamic loading of syntax
160 highlighting definitions (#3334).
162 * Lists in `markdown` by default now use the CommonMark variable
163 nesting rules (#3511). The indentation required for a block-level
164 item to be included in a list item is no longer fixed, but is
165 determined by the first line of the list item. To be included in
166 the list item, a block must be indented to the level of the first
167 non-space content after the list marker. Exception: if are 5 or more
168 spaces after the list marker, then the content is interpreted as an
169 indented code block, and continuation paragraphs must be indented
170 two spaces beyond the end of the list marker. See the CommonMark
171 spec for more details and examples.
173 Documents that adhere to the four-space rule should, in most cases,
174 be parsed the same way by the new rules. Here are some examples
175 of texts that will be parsed differently:
180 will be parsed as a list item with a sublist; under the four-space
181 rule, it would be a list with two items.
187 Here we have an indented code block under the list item, even though it
188 is only indented six spaces from the margin, because it is four spaces
189 past the point where a continuation paragraph could begin. With the
190 four-space rule, this would be a regular paragraph rather than a code
197 Here the code block will start with two spaces, whereas under
198 the four-space rule, it would start with `code`. With the four-space
199 rule, indented code under a list item always must be indented eight
200 spaces from the margin, while the new rules require only that it
201 be indented four spaces from the beginning of the first non-space
202 text after the list marker (here, `a`).
204 This change was motivated by a slew of bug reports from people
205 who expected lists to work differently (#3125, #2367, #2575, #2210,
206 #1990, #1137, #744, #172, #137, #128) and by the growing prevalance
207 of CommonMark (now used by GitHub, for example). Those who
208 prefer the old behavior can use `-f markdown+four_space_rule`.
210 * Added `four_space_rule` extension. This triggers the old pandoc
211 parsing rule for content nested under list items (the "four space
214 * Added `spaced_reference_links` extension (#2602). It allows whitespace
215 between the two parts of a reference link: e.g.
221 This was previously enabled by default; now it is now forbidden by default.
223 * Add `space_in_atx_header` extension (#3512). This is enabled by default
224 in pandoc and GitHub markdown but not the other flavors.
225 This requirse a space between the opening #'s and the header
226 text in ATX headers (as CommonMark does but many other implementations
227 do not). This is desirable to avoid falsely capturing things ilke
235 * Add `sourcefile` and `outputfile` template variables (Roland Hieber,
238 * Allow ibooks-specific metadata in epubs (#2693). You can now have
239 the following fields in your YAML metadata, and it will be treated
240 appropriately in the generated EPUB:
245 specified-fonts: false
246 ipad-orientation-lock: portrait-only
247 iphone-orientation-lock: landscape-only
249 scroll-axis: vertical
255 * Reader functions no longer presuppose that CRs have been
256 stripped from the input. (They strip CRs themselves, before
257 parsing, to simplify the parsers.)
259 * Added support for translations (localization) (#3559).
260 Currently this only affects the LaTeX reader, for things
261 like `\figurename`. Translation data files for 46 languages
262 can be found in `data/translations`.
264 * Make `--ascii` work with DocBook output too.
266 * Rename `--latex-engine` to `--pdf-engine`,
267 and `--latex-engine-opt` to `--pdf-engine-opt`.
269 * Removed `--parse-raw` and `readerParseRaw`. These were confusing.
270 Now we rely on the `+raw_tex` or `+raw_html` extension with latex or html
271 input. Thus, instead of `--parse-raw -f latex` we use `-f latex+raw_tex`,
272 and instead of `--parse-raw -f html` we use `-f html+raw_html`.
274 * With `--filter` R filters are now recognized, even if they are
275 not executable (#3940, #3941, Andrie de Vries).
277 * Support SVG in PDF output, converting with `rsvg2pdf` (#1793).
279 * Make epub an alias for epub3, not epub2.
281 * Removed `--epub-stylesheet`; use `--css` instead (#3472, #847).
282 Multiple stylesheets may be used. Stylesheets will be taken both from
283 `--css` and from the `stylesheet` metadata field (which can contain
284 either a file path or a list of them).
286 * `--mathml` and MathML in HTMLMathMethod no longer take an argument.
287 The argument was for a bridge JavaScript that used to be necessary
288 in 2004. We have removed the script already.
290 * `--katex` improvements. The latest version is used, and the
291 autoload script is loaded by default.
293 * Change MathJax CDN default since old one is shutting down (#3544).
294 Note: The new URL requires a version number, which we'll have
295 to update manually in subsequent pandoc releases in order to
296 take advantage of mathjax improvements.
298 * `--self-contained`: don't incorporate elements with `data-external="1"`
299 (#2656). You can leave an external link as it is by adding the attribute
300 data-external="1" to the element. Pandoc will then not try to
301 incorporate its content when `--self-contained` is used. This is
302 similar to a feature already supported by the EPUB writer.
304 * Allow `--extract-media` to work with non-binary input formats
305 (#1583, #2289). If `--extract-media` is supplied with a non-binary
306 input format, pandoc will attempt to extract the contents of all
307 linked images, whether in local files, data: uris, or external uris.
308 They will be named based on the sha1 hash of the contents.
310 * Make `papersize: a4` work regardless of the case of `a4`.
311 It is converted to `a4` in LaTeX and `A4` in ConTeXt.
313 * Make `east_asian_line_breaks` affect all readers/writers (#3703).
315 * Underlined elements are now treated consistently by readers
316 (#2270, hftf); they are always put in a Span with class `underline`.
317 This allows the user to treat them differently from other emphasis,
318 using a filter. Docx, Org, Textile, Txt2Tags, and HTML readers
321 * Improved behavior of `auto_identifiers` when there are explicit ids
322 (#1745). Previously only autogenerated ids were added to the list
323 of header identifiers in state, so explicit ids weren't taken
324 into account when generating unique identifiers. Duplicated
325 identifiers could result. This simple fix ensures that explicitly given
326 identifiers are also taken into account.
328 * Use `table-of-contents` for contents of toc, make `toc` a boolean
329 (#2872). Changed markdown, rtf, and HTML-based templates accordingly.
330 This allows you to set `toc: true` in the metadata; this
331 previously produced strange results in some output formats.
332 For backwards compatibility, `toc` is still set to the
333 toc contents. But it is recommended that you update templates
334 to use `table-of-contents` for the toc contents and `toc`
337 * Change behavior with binary format output to stdout.
338 Previously, for binary formats, output to stdout was disabled
339 unless we could detect that the output was being piped (and not
340 sent to the terminal). Unfortunately, such detection is not
341 possible on Windows, leaving windows users no way to pipe binary
342 output. So we have changed the behavior in the following way:
344 + Output to stdout is allowed when it can be determined that
345 the output is being piped (on non-Windows platforms).
346 + If the `-o` option is not used, binary output is never sent
347 to stdout by default; instead, an error is raised.
348 + If `-o -` is used, binary output is sent to stdout, regardless
349 of whether it is being piped. This works on Windows too.
351 * Better error behavior: uses of `error` have been replaced by
352 raising of `PandocError`, which can be trapped and handled by the
355 * Removed `hard_line_breaks` extension from `markdown_github` (#3594).
356 GitHub has two Markdown modes, one for long-form documents like READMEs
357 and one for short things like issue coments. In issue comments, a line
358 break is treated as a hard line break. In README, wikis, etc., it is
359 treated as a space as in regular Markdown. Since pandoc is more likely to
360 be used to convert long-form documents from GitHub Markdown,
361 `-hard_line_breaks` is a better default.
363 * Include `backtick_code_blocks` extension in `mardkown_mmd` (#3637).
365 * Escape `MetaString` values (as added with `-M/--metadata` flag) (#3792).
366 Previously they would be transmitted to the template without any
367 escaping. Note that `--M title='*foo*'` yields a different result from
373 In the latter case, we have emphasis; in the former case, just
374 a string with literal asterisks (which will be escaped
375 in formats, like Markdown, that require it).
377 * Allow `em`, `cm`, `in` for image height/width in HTML, LaTeX (#3450).
379 * HTML writer: Insert `data-` in front of unsupported attributes. Thus,
380 a span with attribute `foo` gets written to HTML5 with `data-foo`, so
381 it is valid HTML5. HTML4 is not affected. This will allow us to use
382 custom attributes in pandoc without producing invalid HTML. (With help
383 from Wandmalfarbe, #3817.)
385 * Plain writer: improved super/subscript rendering. We now
386 handle more non-digit characters for which there are
387 sub/superscripted unicode characters. When unicode
388 sub/superscripted characters are not available, we use
389 `_(..)` or `^(..)` (#3518).
391 * Docbook, JATS, TEI writers: print INFO message when omitting interior
392 header (#3750). This only applies to section headers inside list items,
393 e.g., which were otherwise silently omitted.
395 * Change to `--reference-links` in Markdown writer (#3701). With
396 `--reference-location` of `section` or `block`, pandoc will now repeat
397 references that have been used in earlier sections. The Markdown
398 reader has also been modified, so that *exactly* repeated references
399 do not generate a warning, only references with the same label but
400 different targets. The idea is that, with references after every block,
401 one might want to repeat references sometimes.
403 * ODT/OpenDocument writer:
405 + Support `lang` attribute (#1667).
406 + Added support for `--toc` (#2836). Thanks to @anayrat.
410 + `lang` meta, see #1667 (Mauro Bieg, #3515).
411 + Change `FigureWithCaption` to `CaptionedFigure` (iandol, #3658).
412 + Use `Table` rather than `Table Normal` for table style (#3275).
413 `Table Normal` is the default table style and can't be modified.
414 + Pass through comments (#2994). We assume that comments are defined as
415 parsed by the docx reader:
417 I want <span class="comment-start" id="0" author="Jesse Rosenthal"
418 date="2016-05-09T16:13:00Z">I left a comment.</span>some text to
419 have a comment <span class="comment-end" id="0"></span>on it.
421 We assume also that the id attributes are unique and properly
422 matched between comment-start and comment-end.
423 + Bookmark improvements. Bookmark start/end now surrounds content rather
424 than preceding it. Bookmarks generated for Div with id
425 (jgm/pandoc-citeproc#205).
426 + Add `keywords` metadata to docx document properties (Ian).
428 * RST writer: support unknown interpreted text roles by
429 parsing them as `Span` with `role` attributes (#3407). This
430 way they can be manipulated in the AST.
434 + Line block: Use class instead of style attribute (#1623). We now
435 issue `<div class="line-block">` and include a default definition
436 for `line-block` in the default templates, instead of hard-coding a
438 + Add class `footnoteBack` to footnote back references (Timm Albers).
439 This allows for easier CSS styling.
440 + Render SmallCaps as span with smallcaps class (#1592), rather than
441 using a style attribute directly. This gives the user more flexibility
442 in styling small caps in CSS.
443 + With reveal.js we use `data-src` instead of `src` for images for
445 + Special-case `.stretch` class for images in reveal.js (#1291).
446 Now in reveal.js, an image with class `stretch` in a paragraph
447 by itself will stretch to fill the whole screen, with no
448 caption or figure environment.
450 * Added warnings for non-rendered blocks to writers.
452 * Writers now raise an error on template failure.
454 * When creating a PDF via LaTeX, warn if the font is missing some
457 * Remove initial check for PDF-creating program (#3819).
458 Instead, just try running it and raise the exception if it
459 isn't found at that point. This improves things for users of Cygwin
460 on Windows, where the executable won't be found by `findExecutable`
461 unless `.exe` is added. The same exception is raised as before, but
464 * Readers issue warning for duplicate header identifiers (#1745).
465 Autogenerated header identifiers are given suffixes so as not to clash
466 with previously used header identifiers. But they may still coincide with
467 an explicit identifier that is given for a header later in the document,
468 or with an identifier on a div, span, link, or image. We now issue
469 a warning in this case, so users can supply an explicit identifier.
471 * CommonMark reader now supports `emoji`, `hard_line_breaks`, `smart`,
472 and `raw_html` extensions.
476 + Don't allow backslash + newline to affect block structure (#3730).
477 Note that as a result of this change, the following, which formerly
478 produced a header with two lines separated by a line break, will
479 now produce a header followed by a paragraph:
484 This may affect some existing documents that relied on
485 this undocumented and unintended behavior. This change makes pandoc
486 more consistent with other Markdown implementations, and with itself
487 (since the two-space version of a line break doesn't work inside ATX
488 headers, and neither version works inside Setext headers).
491 * Org reader (Albert Krewinkel, unless noted):
493 + Support `table.el` tables (#3314).
494 + Support macros (#3401).
495 + Support the `#+INCLUDE:` file inclusion mechanism (#3510).
496 Recognized include types are `example`, `export`, `src`, and
497 normal org file inclusion. Advanced features like line numbers
498 and level selection are not implemented yet.
499 + Interpret more meta value as inlines. The values of the following
500 meta variables are now interpreted using org-markup instead of
501 treating them as pure strings: `keywords` (comma-separated list of
502 inlines), `subtitle` (inline values), `nocite` (inline values, can
504 + Support `\n` export option (#3940). This turns all newlines in the
505 text into hard linebreaks.
509 + Improved admonition support (#223). We no longer add an
510 `admonition` class, we just use the class for the type of admonition,
511 `note` for example. We put the word corresponding to the label in
512 a paragraph inside a `Div` at the beginning of the admonition with
513 class `admonition-title`. This is about as close as we can get to
515 + Initial support of `.. table` directive. This allows adding captions
517 + Support `.. line-block` directive. This is deprecated but may still
518 be in older documents.
519 + Support scale and align attributes of images (#2662).
520 + Implemented implicit internal header links (#3475).
521 + Support RST-style citations (#853). The citations appear at the end
522 of the document as a definition list in a special div with id
523 `citations`. Citations link to the definitions.
524 + Recurse into bodies of unknown directives (#3432).
525 In most cases it's better to preserve the content than
526 to emit it. This isn't guaranteed to have good results;
527 it will fail spectacularly for unknown raw or verbatim directives.
528 + Handle chained link definitions (#262). For example,
531 .. _goodbye: example.com
533 Here both `hello` and `goodbye` should link to `example.com`.
534 + Support anchors (#262). E.g.
542 This is supported by putting "paragraph" in a `Div` with id `hello`.
543 + Support `:widths:` attribute for table directive.
544 + Implement csv-table directive (#3533). Most attributes are supported,
545 including `:file:` and `:url:`.
546 + Support unknown interpreted text roles by parsing them as Span
547 with "role" attributes (#3407). This way they can be manipulated in
550 * HTML reader: parse a span with class `smallcaps` as `SmallCaps`.
554 + Implemented `\graphicspath` (#736).
555 + Properly handle column prefixes/suffixes. For example, in
556 `\begin{tabular}{>{$}l<{$}>{$}l<{$} >{$}l<{$}}`
557 each cell will be interpreted as if it has a `$`
558 before its content and a `$` after (math mode).
559 + Handle komascript `\dedication` (#1845). It now adds a
560 `dedication` field to metadata. It is up to the user to supply
561 a template that uses this variable.
562 + Support all `\textXX` commands, where XX = `rm`, `tt`, `up`, `md`,
563 `sf`, `bf` (#3488). Spans with a class are used when there is
565 + Expand `\newenvironment` macros (#987).
566 + Add support for LaTeX subfiles package (Marc Schreiber, #3530).
567 + Better support for subfigure package (#3577).
568 A figure with two subfigures turns into two pandoc
569 figures; the subcaptions are used and the main caption
570 ignored, unless there are no subcaptions.
571 + Add support for \vdots (Marc Schreiber, #3607).
572 + Add basic support for hyphenat package (Marc Schreiber, #3603).
573 + Add basic `\textcolor` support (Marc Schreiber).
574 + Add support for `tabularx` environment (Marc Schreiber, #3632).
575 + Better handling of comments inside math environments (#3113).
576 This solves a problem with commented out `\end{eqnarray}` inside
577 an eqnarray (among other things).
578 + Parse tikzpicture as raw verbatim environment if `raw_tex` extension
579 is selected (#3692). Otherwise skip with a warning. This is better
580 than trying to parse it as text!
581 + Add `\colorbox` support (Marc Schreiber).
582 + Set identifiers on Spans used for `\label`.
583 + Have `\setmainlanguage` set `lang` in metadata.
584 + Support etoolbox's `\ifstrequal`.
585 + Support `plainbreak`, `fancybreak` et al from the memoir class
587 + Support `\let`. Also, fix regular macros so they're expanded at the
588 point of use, and NOT also the point of definition. `\let` macros,
589 by contrast, are expanded at the point of definition. Added an
590 `ExpansionPoint` field to `Macro` to track this difference.
591 + Support simple `\def` macros. Note that we still don't support
592 macros with fancy parameter delimiters, like `\def\foo#1..#2{...}`.
593 + Support \chaptername, \partname, \abstractname, etc. (#3559,
595 + Put content of `\ref`, `\label`, `\eqref` commands into `Span` with
596 attributes, so they can be handled in filters (Marc Schreiber, #3639)
597 + Add Support for `glossaries` and `acronym` package (Marc Schreiber,
598 #3589). Acronyms are not resolved by the reader, but acronym and
599 glossary information is put into attributes on Spans so that they
600 can be processed in filters.
601 + Use `Link` instead of `Span` for `\ref`. This makes more sense
602 semantically and avoids unnecessary `Span [Link]` nestings when
603 references are resolved.
604 + Rudimentary support for `\hyperlink`.
605 + Support `\textquoteleft|right`, `\textquotedblleft|right` (#3849).
606 + Support `\lq`, `\rq`.
607 + Implement `\newtoggle`, `\iftoggle`, `\toggletrue|false` from etoolbox
609 + Support `\RN` and `\Rn`, from biblatex (bucklereed, #3854).
610 + Improved support for `\hyperlink`, `\hypertarget` (#2549).
611 + Support `\k` ogonek accent.
612 + Improve handling of accents. Handle ogonek, and fall back correctly
613 with forms like `\"{}`.
614 + Better support for ogonek accents.
615 + Support for `\faCheck` and `\faClose` (Marc Schreiber, #3727).
616 + Support for `xspace` (Marc Schreiber, #3797).
617 + Support `\setmainlanguage` or `\setdefaultlanguage` (polyglossia)
619 + Better handling of `\part` in LaTeX (#1905). Now we parse chapters as
620 level 0 headers, and parts as level -1 headers. After parsing, we
621 check for the lowest header level, and if it's less than 1 we bump
622 everything up so that 1 is the lowest header level. So `\part` will
623 always produce a header; no command-line options are needed.
624 + Add block version of `\textcolor` (Marc Schreiber).
625 + `\textcolor` works as inline and block command (Marc Schreiber).
626 + `\textcolor` will be parse as span at the beginning of a paragraph
628 + Read polyglossia/babel `\text(LANG){...}` (bucklereed)
629 + Improved handling of include files in LaTeX reader (#3971).
630 Previously `\include` wouldn't work if the included file
631 contained, e.g., a begin without a matching end.
632 + Support `\expandafter` (#3983).
633 + Handle `\DeclareRobustCommand` (#3983). Currently it's just treated
634 as a synonym for `\newcommand`.
635 + Handle `\lettrine` (Mauro Bieg).
637 * Math improvements due to updates in texmath:
639 + Improved handling of accents and upper/lower delimiters.
640 + Support for output in GNU eqn format (used with *roff).
641 + Allow `\boldsymbol` + a token without braces, and similarly
642 with other styling commands.
643 + Improve parsing of `\mathop` to allow multi-character operator names.
644 + Add thin space after math operators when "faking it with
647 * `walk` is now used instead of `bottomUp` in the `ToJSONFilter`
648 instance for `a -> [a]` (pandoc-types). Note that behavior
649 will be slightly different, since `bottomUp`'s treatment of
650 a function `[a] -> [a]` is to apply it to each sublist of a
651 list, while walk applies it only to maximal sublists.
652 Usually the latter behavior is what is wanted, and the
653 former can be simulated when needed. But there may be
654 existing filters that need to be rewritten in light of the
655 new behavior. Performance should be improved.
657 * There are some changes to syntax highlighting due to revisions
658 in the `skylighting` library:
660 + Support for `powershell` has been added, and many syntax
661 definitions have been updated.
662 + Background colors have been added to the `kate` style.
663 + The way highlighted code blocks are formatted in HTML has
664 been changed (David Baynard), in ways that may require
665 changes in hard-coded CSS affecting highlighting.
666 (If you haven't included hard-coded highlighting CSS in
667 your template, you needn't change anything.)
672 * New module `Text.Pandoc.Class` (Jesse Rosenthal, John MacFarlane).
673 This contains definitions of the `PandocMonad` typeclass, the
674 `PandocIO` and `PandocPure` monads, and associated functions.
676 * Changed types of all writers and readers.
678 + We now use `Text` instead of `String` in the interface (#3731).
679 (We have not yet changed the internals of most readers to work
680 with `Text`, but making this change in the API now opens up a
682 + The result is now of form `m a` with constraint `PandocMonad m`.
683 Readers and writers can be combined to form monadic values which
684 can be run using either `runIO` or `runPure`. If `runIO` is used,
685 then both readers and writers will be able to do IO when needed
686 (for include files, for example); if `runPure` is used,
687 then the functions are pure and will not touch IO.
688 + Where previously you used
689 `writeRST def (readMarkdown def "[foo](url)")`, now you
691 `runPure $ readMarkdown def (pack "[foo](url)") >>= writeRST def`.
693 * New module `Text.Pandoc.Readers` (Albert Krewinkel). This
694 contains reader helper functions formerly defined in the
695 top-level `Text.Pandoc` module.
697 + Changed `StringReader` -> `TextReader`.
698 + `getReader` now returns a pair of a reader and
699 `Extensions`, instead of building the extensions into the
700 reader (#3659). The calling code must explicitly set
701 `readerExtensions` using the `Extensions` returned. The
702 point of the change is to make it possible for the calling
703 code to determine what extensions are being used.
705 * New module `Text.Pandoc.Writers` (Albert Krewinkel).
706 This contains writer helper functions formerly defined in the
707 top-level `Text.Pandoc` module.
709 + Changed `StringWriter` -> `TextWriter`.
710 + `getWriter` now retuns a pair of a reader and
711 `Extensions`, instead of building the extensions into the
712 reader (#3659). The calling code must explicitly set
713 `readerExtensions` using the `Extensions` returned. The
714 point of the change is to make it possible for the calling
715 code to determine what extensions are being used.
717 * New module `Text.Pandoc.Lua`, exporting `runLuaFilter` (Albert Krewinkel,
720 * New module `Text.Pandoc.App`. This abstracts out the functionality
721 of the command line program (`convertWithOpts`), so it can be reproduced
722 e.g. in a desktop or web application. Instead of exiting, we throw errors
723 (#3548), which are caught (leading to exit) in pandoc.hs, but allow other
724 users of `Text.Pandoc.App` to recover. `pandoc.hs` is now a 2-liner.
725 The module also exports some utility functions for parsing options
728 * New module `Text.Pandoc.Logging` (exported module) (#3392).
729 This now contains the `Verbosity` definition previously in
730 `Text.Pandoc.Options`, as well as a new `LogMessage` datatype that will
731 eventually be used instead of raw strings for warnings. This will enable
732 us, among other things, to provide machine-readable warnings if desired.
733 Include ToJSON instance and showLogMessage. This gives us the possibility
734 of both machine-readable and human-readable output for log messages.
736 * New module `Text.Pandoc.BCP47`, with `getLang`, `Lang(..)`, `parseBCP47`.
738 * New module `Text.Pandoc.Translations`, exporting `Term`,
739 `Translations`, `readTranslations`.
741 * New module `Text.Pandoc.Readers.LaTeX.Types', exporting `Macro`, `Tok`,
742 `TokType`, `Line`, `Column`.
744 * `Text.Pandoc.Error`: added many new constructors for `PandocError`.
746 * Expose some previously private modules (#3260). These are often
747 helpful to people writing their own reader or writer modules:
749 + `Text.Pandoc.Writers.Shared`
750 + `Text.Pandoc.Parsing`
751 + `Text.Pandoc.Asciify`
752 + `Text.Pandoc.Emoji`
753 + `Text.Pandoc.ImageSize`
754 + `Text.Pandoc.Highlighting`
756 * New module `Text.Pandoc.Extensions` (Albert Krewinkel):
757 Extension parsing and processing functions were defined in the top-level
758 `Text.Pandoc` module. These functions are moved to the Extensions
759 submodule as to enable reuse in other submodules.
761 * Add `Ext_raw_attribute` constructor for `Extension`.
763 * Add `Ext_fenced_divs` constructor for `Extension'.
765 * Add `Ext_four_space_rule` constructor in `Extension`.
767 * Add `Ext_gfm_auto_identifiers` constructor for `Extension`.
769 * Add `Monoid` instance for `Extensions`.
771 * Add `Text.Pandoc.Writers.Ms`, exporting `writeMs`.
773 * Add `Text.Pandoc.Writers.JATS`, exporting `writeJATS`.
775 * Add `Text.Pandoc.Writers.Muse`, exporting `writeMuse`.
777 * Add `Text.Pandoc.Readers.Muse`, exporting `readMuse`.
779 * Add `Text.Pandoc.Readers.TikiWiki`, exporting `readTikiWiki`.
781 * Add `Text.Pandoc.Readers.Vimwiki`, exporting `readVimwiki`.
783 * Add `Text.Pandoc.Readers.Creole`, exporting `readCreole`.
785 * Export `setVerbosity` from `Text.Pandoc`.
787 * `Text.Pandoc.Pretty`: Add `Eq` instance for `Doc`.
789 * `Text.Pandoc.XML`: `toEntities`: changed type to `Text -> Text`.
791 * `Text.Pandoc.UTF8`:
793 + Export `fromText`, `fromTextLazy`, `toText`, `toTextLazy`.
794 Define `toString`, `toStringLazy` in terms of them.
795 + Add new functions parameterized on `Newline`: `writeFileWith`,
796 `putStrWith`, `putStrLnWith`, `hPutStrWith`, `hPutStrLnWith`.
798 * `Text.Pandoc.MediaBag`: removed `extractMediaBag`.
800 * `Text.Pandoc.Highlighting`:
802 + `highlighting` now returns an Either rather than Maybe.
803 This allows us to display error information returned by the skylighting
804 library. Display a warning if the highlighting library throws an error.
805 + Add parameter for `SyntaxMap` to `highlight`.
807 * `Text.Pandoc.Writers.Math`:
809 + Export `defaultMathJaxURL`, `defaultKaTeXURL`. This will ensure that
810 we only need to update these in one place.
812 * `Text.Pandoc.SelfContained`:
814 + Removed `WriterOptions` parameter from `makeSelfContained`.
815 + Put `makeSelfContained` in PandocMonad instead of IO. This removes
816 the need to pass MediaBag around and improves exceptions. It also
817 opens up the possibility of using makeSelfContained purely.
818 + Export `makeDataURI`.
820 * `Text.Pandoc.ImageSize`:
822 + Export `lengthToDim`, new function `scaleDimension`.
823 + Export `inEm` from ImageSize (#3450).
824 + Change `showFl` and `show` instance for `Dimension` so
825 extra decimal places are omitted.
826 + Added `Em` as a constructor of `Dimension`.
827 + Add `WriterOptions` parameter to `imageSize` signature (Mauro Bieg).
829 * `Text.Pandoc.Templates`:
831 + Change type of `renderTemplate'`. Now it runs in `PandocMonad`
832 and raises a proper `PandocTemplateError` if there are problems, rather
833 than failing with uncatchable `error`.
834 + Change signature of `getDefaultTemplate`. Now it runs in any instance
835 of `PandocMonad`, and returns a `String` rather than an `Either` value.
836 And it no longer takes a `datadir` parameter, since this can be
837 retrieved from `CommonState`.
839 * `Text.Pandoc.Options`:
841 + Added `writerEpubSubdirectory` to `WriterOptions` (#3720).
842 The EPUB writer now takes its EPUB subdirectory from this option.
843 + In `WriterOptions`, rename `writerLaTeXEngine` to `writerPdfEngine`
844 and `writerLaTeXArgs` to `writerPdfArgs` (Mauro Bieg, #3909).
845 + Add `writerSyntaxMap` to `WriterOptions`.
846 + Removed `writerEpubStylesheet` from `WriterOptions`.
847 + Remove `writerUserDataDir` from `WriterOptions`. It is now carried
848 in `CommonState` in `PandocMonad` instances. (And thus it can be used
850 + Changed `writerEpubMetadata` to a `Maybe String`.
851 + Removed `readerApplyMacros` from `ReaderOptions`. Now we just check
852 the `latex_macros` reader extension.
853 + FromJSON/ToJSON instances for `ReaderOptions`.
854 + In `HTMLMathMethod`, the `KaTeX` contsructor now takes only
855 one string (for the KaTeX base URL), rather than two.
856 + Removed `writerSourceURL` from `WriterOptions`. We now use
857 `stSourceURL` in `CommonState`, which is set by `setInputFiles`.
859 * `Text.Pandoc.Shared`:
861 + `tabFilter` now takes a `Text`, not `String`.
862 + `openURL`: Changed type from an Either. Now it will just raise
863 an exception to be trapped later.
864 + Remove `normalizeSpaces` (#1530).
865 + Remove `warn`. (Use `report` from `Text.Pandoc.Class` instead.)
866 + Export a new function `crFilter`.
867 + Add `eastAsianLineBreakFilter` (previously in Markdown reader).
868 + Provide custom `isURI` that rejects unknown schemes.
869 (Albert Krewinkel, #2713). We also export the set of known
870 `schemes`. The new function replaces the function of the same name
871 from `Network.URI`, as the latter did not check whether a scheme is
872 well-known. All official IANA schemes (as of 2017-05-22) are
873 included in the set of known schemes. The four non-official schemes
874 `doi`, `isbn`, `javascript`, and `pmid` are kept.
876 + Remove `readDataFile`, `readDefaultDataFile`, `getReferenceDocx`,
877 `getReferenceODT`. These now live in `Text.Pandoc.Class`,
878 where they are defined in terms of `PandocMonad`
879 primitives and have different signatures.
880 + Remove `openURL`. Use `openURL` from `Text.Pandoc.Class` instead.
881 + Add `underlineSpan`.
883 * `Text.Pandoc.Readers.HTML`: export new `NamedTag` class.
885 * `Text.Pandoc.Readers.Markdown`: remove `readDocxWithWarnings`.
886 With the new API one can simply use `getLog` after running
889 * `Text.Pandoc.Readers.LaTeX`: Changed types for `rawLaTeXInline`
890 and `rawLaTeXBlock`. (Both now return a `String`, and they are
891 polymorphic in state.)
894 [bug fixes and under-the-hood improvements]
896 * TEI writer: Added identifiers on `<div>` elements.
898 * DokuWiki reader: Better handling for code block in list item (#3824).
900 * Custom writer: Remove old preprocesesor conditionals (Albert Krewinkel).
902 * ZimWiki writer: Removed internal formatting from note and table cells,
903 because ZimWiki does not support it (Alex Ivkin, #3446).
907 + Updated list of syntax highlighting languages (#3461).
908 Now `r` gets you `<source>` rather than `<code>` (among others).
909 + Add display attribute on `<math>` tags (#3452). This allows display
910 math to be rendered properly.
911 + Remove newline before `</ref>` (#2652).
912 + Don't softbreak lines inside list items (#3531).
916 + Reduce to two spaces after bullets (#3417, Albert Krewinkel).
917 + Add unit tests (Alexander Krotov).
918 + Stop using raw HTML to wrap divs (Albert Krewinkel, #3771).
919 + Do not strip `#` from Org anchor links (Alexander Krotov).
923 + Avoid excess blank lines at end of output.
924 + Prefer pipe tables to HTML tables even if it means losing relative
925 column width information (#3734).
926 + Support table, strikethrough extensions, when enabled (as with gfm).
927 Note that we bypass the commonmark writer from cmark and construct our
928 own pipe tables, with better results.
929 + Properly support `--wrap=none`.
930 + Use smallcaps class for `SmallCaps` (#1592).
931 + Omit "fig:" prefix in image titles. This is used internally to
932 indicate internal figures.
936 + Properly handle table captions.
937 + Don't wrap lines in in definition list terms. Wrapping is not allowed.
938 + Implemented `+/-smart` and improved escaping with `+smart`.
939 + Add empty comments when needed to avoid including a blockquote
940 in the indented content of a preceding block (#3675).
941 + Improve grid table output, fix bug with empty rows (#3516).
942 Uses the new `gridTable` in Writers.Shared, which is here
943 improved to better handle 0-width cells.
944 + Remove space at beginning/end of RST code span (#3496). Otherwise
945 we get invalid RST. There seems to be no way to escape the space.
946 + Add header anchors when header has non-standard id (#3937).
947 + Correctly handle inline code containing backticks, using a `:literal:`
949 + Don't backslash-escape word-internal punctuation (#3978).
953 + Don't include variables in metadata blocks. Previously variables set
954 on the command line were included in e.g. YAML metadata, contrary to
955 documentation and intentions.
956 + Improved escaping with `+smart`.
957 + Fixed grid tables embedded in grid tables (#2834).
958 + Use span with class 'smallcaps' for SmallCaps, instead of a style
959 attribute as before (#1592).
960 + Escape initial `%` in a paragraph if the `pandoc_title_blocks`
961 extension is enabled (#3454). Otherwise in a document starting with
962 a literal `%` the first line is wrongly interpreted as a title.
963 + Fixed false ordered lists in YAML metadata (#3492, #1685). Now we
964 properly escape things that would otherwise start ordered lists,
970 + Better handling of tables with empty columns (#3337). We now
971 calculate the number of columns based on the longest row (or the
972 length of aligns or widths).
973 + Escape unordered list markers at beginning of paragraph (#3497), to
974 avoid false interpretation as a list.
975 + Escape `|` appropriately.
976 + Ensure space before list at top level (#3487).
977 + Avoid spurious blanklines at end of document after tables and list,
979 + Fixed bugs in simple/multiline list output (#3384).
980 Previously we got overlong lists with `--wrap=none`. This is fixed.
981 Previously a multiline list could become a simple list (and would
982 always become one with `--wrap=none`).
983 + Don't emit a simple table if `simple_tables` disabled (#3529).
984 + Case-insensitive reference links (David A Roberts, #3616).
985 Ensure that we do not generate reference links whose labels differ only
986 by case. Also allow implicit reference links when the link
987 text and label are identical up to case.
988 + Put space before reference link definitions (Mauro Bieg, #3630).
989 + Better escaping for links (David A. Roberts, #3619). Previously the
990 Markdown writer would sometimes create links where there were none
991 in the source. This is now avoided by selectively escaping bracket
992 characters when they occur in a place where a link might be created.
993 + Added missing `\n` (David A. Roberts, #3647).
994 + Fixed duplicated reference links with `--reference-links`
995 and `--reference-location=section` (#3674). Also ensure that there
996 are no empty link references `[]`.
997 + Avoid inline surround-marking with empty content (#3715).
998 E.g. we don't want `<strong></strong>` to become `****`.
999 Similarly for emphasis, super/subscript, strikeout.
1000 + Don't allow soft break in header (#3736).
1001 + Make sure `plain`, `markdown_github`, etc. work for raw.
1002 Previously only `markdown` worked. Note: currently a raw block labeled
1003 `markdown_github` will be printed for any `markdown` format.
1004 + Ensure that `+` and `-` are escaped properly so they don't cause
1005 spurious lists (#3773). Previously they were only
1006 if succeeded by a space, not if they were at end of line.
1007 + Use pipe tables if `raw_html` disabled and `pipe_tables` enabled,
1008 even if the table has relative width information (#3734).
1009 + Markdown writer: don't crash on `Str ""`.
1010 + Make `Span` with null attribute transparent. That is, we don't use
1011 brackets or `<span>` tags to mark spans when there are no attributes;
1012 we simply output the contents.
1013 + Escape pipe characters when `pipe_tables` enabled (#3887).
1014 + Better escaping of `<` and `>`. If `all_symbols_escapable` is set,
1015 we backslash escape these. Otherwise we use entities as before.
1016 + When writing plain, don't use ` ` to separate list and indented
1017 code. There's no need for it in this context, since this isn't to be
1018 interpreted using Markdown rules.
1019 + Preserve classes in JS obfuscated links (Timm Albers, #2989).
1020 HTML links containing classes originally now preserve them when using
1021 javascript email obfuscation.
1022 + Render `SmallCaps` as a native span when `native_spans` are enabled.
1023 + Always write attributes with `bracketed_spans` (d-dorazio).
1027 + Fix handling of nested font commands (#3568). Previously pandoc emitted
1028 incorrect markup for bold + italic, for example, or bold + code.
1029 + Avoid error for definition lists with no definitions (#3832).
1033 + Fix internal links with `writerIdentifierPrefix opt`
1034 (#3397, Mauro Bieg).
1038 + Don't include bookmarks on headers unless non-null id (#3476).
1039 + Support 9 levels of headers (#1642).
1040 + Allow 9 list levels (#3519).
1041 + Don't take `distArchive` from datadir (#3322). The docx writer takes
1042 components from the distribution's version of `reference.docx` when it
1043 can't find them in a user's custom `reference.docx`. Previously, we
1044 allowed a `reference.docx` in the data directory (e.g. `~/.pandoc`)
1045 to be used as the distribution's reference.docx. This led to a
1046 bizarre situation where pandoc would produce a good docx using
1047 `--template ~/.pandoc/ref.docx`, but if `ref.docx` were moved to
1048 `~/.pandoc/reference.docx`, it would then produce a corrupted docx.
1049 + Fixed handling of soft hyphen (0173) (#3691).
1050 + Better handling of keywords (#3719).
1051 + Cleaner code for handling dir and style attributes for `Div`.
1052 + Use `Set` for dynamic styles to avoid duplicates.
1053 + Removed redundant element from data/docx/word/numbering.xml.
1054 The elements we need are generated when the document is
1055 compiled; this didn't do anything.
1056 + Activate `evenAndOddHeaders` from reference docx (#3901,
1057 Augustín Martín Barbero).
1059 * ODT/OpenDocument writer:
1061 + Calculate aspect ratio for percentage-sized images (Mauro Bieg, #3239).
1062 + Use more widely available bullet characters (#1400). The old
1063 characters weren't available in some font sets. These seem to work
1064 well on Windows and Linux versions of LibreOffice.
1065 + Wider labels for lists (#2421). This avoids overly narrow labels for
1066 ordered lists with `()` delimiters. However, arguably it creates
1067 overly wide labels for bullets. Also, lists now start flush with
1068 the margin, rather than indented.
1069 + Fixed dropped elements in some ordered lists (#2434).
1073 + Don't render `RawBlock` as code.
1074 + Don't fail with an error on interior headers (e.g. in list) (#3750).
1075 Instead, omit them with an INFO message.
1076 + Add support for "lang" metadata (Alexander Krotov, #3625).
1077 + Format `LineBlock` as poem (Alexander Krotov). Previously writer
1078 produced one paragraph with `<empty-line/>` elements, which are not
1079 allowed inside `<p>` according to FB2 schema.
1080 + Replace `concatMap` with `cMap` (Alexander Krotov).
1081 + Write FB2 lists without nesting blocks inside `<p>` (Alexander
1086 + Make sure `html4`, `html5` formats work for raw blocks/inlines.
1087 + Render raw inline environments when `--mathjax` used (#3816).
1088 We previously did this only with raw blocks, on the assumption
1089 that math environments would always be raw blocks. This has changed
1090 since we now parse them as inline environments.
1091 + Ensure we don't get two style attributes for width and height.
1092 + Report when not rendering raw inline/block.
1093 + Issue warning if no title specified and template used (#3473).
1094 + Info message if `lang` is unspecified (#3486).
1095 + Removed unused parameter in `dimensionsToAttributeList`.
1096 + Avoid two class attributes when adding `uri` class (#3716).
1097 + Fix internal links with `writerIdentifierPrefix opt` (#3397, Mauro
1099 + Use revealjs's math plugin for mathjax (#3743). This is a thin
1100 wrapper around mathjax that makes math look better on revealjs.
1101 + Slidy: use h1 for all slides, even if they were originally
1102 level 2 headers (#3566). Otherwise the built-in table of contents
1107 + Don't render LaTeX images with data: URIs (#3636). Note that
1108 `--extract-media` can be used when the input contains data: URIs.
1109 + Make highlighted code blocks work in footnotes (Timm Albers).
1110 + Don't use figure inside table cell (#3836).
1111 + Use proper code for list enumerators (#3891). This should fix problems
1112 with lists that don't use arabic numerals.
1113 + Always add hypertarget when there's a non-empty identifier (#2719).
1114 Previously the hypertargets were only added when there was actually
1115 a link to that identifier.
1116 + Use `%` after hypertarget before code block.
1117 + Add `\leavevmode` before hypertarget at start of paragraph (#2704,
1118 fixes formatting problems in beamer citations).
1119 + Don't use `lstinline` in \item[..] (#645). If you do, the contents
1120 of item disappear or are misplaced. Use `\texttt` instead.
1121 + Fix problem with escaping in `lstinline` (#1629). Previously the
1122 LaTeX writer created invalid LaTeX when `--listings` was specified and
1123 a code span occured inside emphasis or another construction.
1124 + Fix error with line breaks after empty content (#2874). LaTeX
1125 requires something before a line break, so we insert a `~` if no
1126 printable content has yet been emitted.
1128 + Fixed detection of otherlangs (#3770). We weren't recursing into
1130 + Handle language in inline code with `--listings` (#3422).
1131 + Write euro symbol directly in LaTeX (Andrew Dunning, #3801).
1132 The textcomp package allows pdfLaTeX to parse `€` directly, making the
1133 `\euro` command unneeded.
1134 + Fixed footnotes in table captions (#2378). Note that if the table has
1135 a first page header and a continuation page header, the notes will
1136 appear only on the first occurrence of the header.
1137 + In `writeBeamer` output, allow hyperlinks to frames (#3220).
1138 Previously you could link to a header above or below slide level but
1139 not *to* slide level. This commit changes that. Hypertargets are
1140 inserted inside frame titles; technically the reference is to just
1141 after the title, but in normal use (where slides are viewed full
1142 screen in a slide show), this does not matter.
1143 + Remove `\strut` at beginning of table cells (#3436). This fixes a
1144 problem with alignment of lists in table cells. The `\strut` at the
1145 end seems to be enough to avoid the too-close spacing that motivated
1146 addition of the strut in #1573.
1147 + Add partial siunitx Support (Marc Schreiber, #3588).
1151 + Refactored to use BCP47 module.
1152 + Remove unnecessary `$` (Alexander Krotov, #3482).
1153 + Use header identifiers for chapters (#3968).
1157 + `title_page.xhtml` is now put in `text/`.
1158 + Don't strip formatting in TOC (#1611).
1162 + Fix bug for certain links in table cells (#3667).
1163 + Allow 'pre' code in list item (#3916).
1167 + Added warnings for ignored material (#3392).
1168 + Better sanity checks to avoid parsing unintended things as
1169 raw HTML in the Markdown reader (#3257).
1170 + Revise treatment of `li` with `id` attribute (#3596). Previously we
1171 always added an empty div before the list item, but this created
1172 problems with spacing in tight lists. Now we do this: If the list
1173 item contents begin with a `Plain` block, we modify the `Plain`
1174 block by adding a `Span` around its contents. Otherwise, we add a
1175 `Div` around the contents of the list item (instead of adding an
1176 empty `Div` to the beginning, as before).
1177 + Add `details` tag to list of block tags (#3694).
1178 + Removed `button` from block tag list (#3717). It is already in the
1179 `eitherBlockOrInlineTag` list, and should be both places.
1180 + Use `Set`s instead of lists for block tag lookup.
1181 + Rewrote to use `Text` throughout. Effect on memory usage is modest
1183 + Use the lang value of `<html>` to set the lang meta value (bucklereed,
1185 + Ensure that paragraphs are closed properly when the parent block
1186 element closes, even without `</p>` (#3794).
1187 + Parse `<figure>` and `<figcaption>` (Mauro Bieg, #3813).
1188 + Parse `<main>` like `<div role=main>` (bucklereed, #3791).
1189 `<main>` closes `<p>` and behaves like a block element generally
1190 + Support column alignments (#1881). These can be set either
1191 with a `width` attribute or with `text-width` in a `style` attribute.
1192 + Modified state type to be an instance of `HasLogMessages`, so
1193 `registerHeader` can issue warnings.
1194 + `</td>` or `</th>` should close any open block tag (#3991).
1195 + `<td>` should close an open `<th>` or `<td>`.
1196 + `htmlTag` improvements (#3989). We previously failed on cases
1197 where an attribute contained a `>` character. This patch fixes the
1198 bug, which especially affects raw HTML in Markdown.
1202 + Newline is not indentation (Alexander Krotov).
1206 + Allow extra hyphens after `|-` in tables (#2649).
1207 + Allow blank line after table start (#2649).
1208 + Fixed more table issues (#2649).
1209 + Ensure that list starts begin at left margin (#2606). Including when
1210 they're in tables or other list items.
1211 + Make smart double quotes depend on `smart` extension (#3585).
1212 + Don't do curly quotes inside `<tt>` contexts (#3585). Even if `+smart`.
1213 + Modified state type to be an instance of `HasLogMessages`, so
1214 `registerHeader` can issue warnings.
1216 * TWiki reader (Alexander Krotov):
1218 + Remove unnecessary `$` (#3597).
1219 + Simplify `linkText` (#3605).
1223 + Minor refactoring, avoiding explicit MediaBag handling.
1224 This all works behind the scenes in CommonState plumbing.
1228 + Don't drop smartTag contents (#2242).
1229 + Handle local namespace declarations (#3365). Previously we didn't
1230 recognize math, for example, when the xmlns declaration occured on
1231 the element and not the root.
1232 + More efficient trimSps (#1530). Replacing `trimLineBreaks`. This
1233 does the work of `normalizeSpaces` as well, so we avoid the need for
1235 + Avoid 0-level headers (Jesse Rosenthal, #3830). We used to parse
1236 paragraphs styled with "HeadingN" as "nth-level header." But if a
1237 document has a custom style named "Heading0", this will produce a
1238 0-level header, which shouldn't exist. We only parse this style
1239 if N>0. Otherwise we treat it as a normal style name, and
1240 follow its dependencies, if any.
1241 + Add tests for avoiding zero-level header (Jesse Rosenthal).
1245 + Replaced `collectRights` with Rights from `Data.Either`.
1246 + Remove dead code (Albert Krewinkel).
1248 * Org reader (Albert Krewinkel, unless noted).
1250 + Don't allow tables inside list items (John MacFarlane, #3499).
1251 + Disallow tables on list marker lines (#3499).
1252 + Convert markup at beginning of footnotes (John MacFarlane, #3576).
1253 + Allow emphasized text to be followed by `[` (#3577).
1254 + Handle line numbering switch for src blocks.
1255 The line-numbering switch that can be given to source blocks (`-n` with
1256 an start number as an optional parameter) is parsed and translated to a
1257 class/key-value combination used by highlighting and other readers and
1259 + Stop adding rundoc prefix to src params. Source block parameter names
1260 are no longer prefixed with `rundoc`. This was intended to simplify
1261 working with the rundoc project, a babel runner. However, the rundoc
1262 project is unmaintained, and adding those markers is not the reader's
1263 job anyway. The original language that is specified for a source
1264 element is now retained as the `data-org-language` attribute and only
1265 added if it differs from the translated language.
1266 + Allow multi-word arguments to src block params (#3477). The reader now
1267 correctly parses src block parameter list even if parameter arguments
1268 contain multiple words.
1269 + Avoid creating `nullMeta` by applying `setMeta` directly
1271 + Replace `sequence . map` with `mapM`.
1272 + Fix smart parsing behavior. Parsing of smart quotes and special
1273 characters can either be enabled via the `smart` language extension or
1274 the `'` and `-` export options. Smart parsing is active if either the
1275 extension or export option is enabled. Only smart parsing of special
1276 characters (like ellipses and en and em dashes) is enabled by default,
1277 while smart quotes are disabled. Previously, all smart parsing was
1278 disabled unless the language extension was enabled.
1279 + Subject full doc tree to headline transformations (Albert Krewinkel,
1280 #3695). Emacs parses org documents into a tree structure, which is
1281 then post-processed during exporting. The reader is changed to do the
1282 same, turning the document into a single tree of headlines starting
1284 + Fix cite parsing behaviour (Herwig Stuetz). Until now, `org-ref`
1285 cite keys included special characters also at the end. This caused
1286 problems when citations occur right before colons or at the end of
1287 a sentence. With this change, all non alphanumeric characters at
1288 the end of a cite key are ignored. This also adds `,` to the list
1289 of special characters that are legal in cite keys to better mirror
1290 the behaviour of org-export.
1291 + Fix module names in haddock comments. Copy-pasting had lead to
1292 haddock module descriptions containing the wrong module names.
1293 + Recognize babel result blocks with attributes (#3706). Babel
1294 result blocks can have block attributes like captions and names.
1295 Result blocks with attributes were not recognized and were parsed
1296 as normal blocks without attributes.
1297 + Include tags in headlines. The Emacs default is to include tags in the
1298 headline when exporting. Instead of just empty spans, which contain the
1299 tag name as attribute, tags are rendered as small caps and wrapped in
1300 those spans. Non-breaking spaces serve as separators for multiple tags.
1301 + Respect export option for tags (#3713). Tags are appended to
1302 headlines by default, but will be omitted when the `tags` export option
1304 + Use `tag-name` attribute instead of `data-tag-name`.
1305 + Use `org-language` attribute rather than `data-org-language`.
1306 + Modified state type to be an instance of `HasLogMessages`, so
1307 `registerHeader` can issue warnings.
1308 + End footnotes after two blank lines. Footnotes can not only be
1309 terminated by the start of a new footnote or a header, but also by two
1310 consecutive blank lines.
1311 + Update emphasis border chars (#3933). The org reader was updated to
1312 match current org-mode behavior: the set of characters which are
1313 acceptable to occur as the first or last character in an org emphasis
1314 have been changed and now allows all non-whitespace chars at the
1315 inner border of emphasized text (see `org-emphasis-regexp-components`).
1319 + Fixed small bug in list parsing (#3432). Previously the parser didn't
1320 handle properly this case:
1326 + Handle multiline cells in simple tables (#1166).
1327 + Parse list table directive (Keiichiro Shikano, #3432).
1328 + Make use of `anyLineNewline` (Alexander Krotov, #3686).
1329 + Use `anyLineNewline` in `rawListItem` (Alexander Krotov, #3702).
1330 + Reorganize block parsers for ~20% faster parsing.
1331 + Fixed `..include::` directive (#3880).
1332 + Handle blank lines correctly in line blocks (Alexander Krotov, #3881).
1333 Previously pandoc would sometimes combine two line blocks separated
1334 by blanks, and ignore trailing blank lines within the line block.
1335 + Fix indirect hyperlink targets (#512).
1339 + Allow attributes in reference links to start on next line (#3674).
1340 + Parse YAML metadata in a context that sees footnotes defined in
1341 the body of the document (#1279).
1342 + When splitting pipe table cells, skip tex math (#3481).
1343 You might have a `|` character inside math. (Or for that matter
1344 something that the parser might mistake for raw HTML.)
1345 + Treat span with class `smallcaps` as SmallCaps.
1346 This allows users to specify small caps in Markdown this way:
1347 `[my text]{.smallcaps}` (#1592).
1348 + Fixed internal header links (#2397).
1349 This patch also adds `shortcut_reference_links` to the list
1351 + Treat certain environments as inline
1352 when they occur without space surrounding them (#3309, #2171).
1353 E.g. equation, math. This avoids incorrect vertical space
1355 + Optimized `nonindentSpaces`. Makes the benchmark go from 40 to 36 ms.
1356 + Allow latex macro definitions indented 1-3 spaces.
1357 Previously they only worked if nonindented.
1358 + Improved parsing of indented raw HTML blocks (#1841).
1359 Previously we inadvertently interpreted indented HTML as
1360 code blocks. This was a regression. We now seek to determine the
1361 indentation level of the contents of an HTML block, and (optionally)
1362 skip that much indentation. As a side effect, indentation may be
1363 stripped off of raw HTML blocks, if `markdown_in_html_blocks` is
1364 used. This is better than having things interpreted as indented
1366 + Fixed smart quotes after emphasis (#2228). E.g. in `*foo*'s 'foo'`.
1367 + Warn for notes defined but not used (#1718).
1368 + Use `anyLineNewline` (Alexander Krotov).
1369 + Interpret YAML metadata as Inlines when possible (#3755). If
1370 the metadata field is all on one line, we try to interpret it as
1371 Inlines, and only try parsing as Blocks if that fails. If it
1372 extends over one line (including possibly the `|` or `>` character
1373 signaling an indented block), then we parse as Blocks. This was
1374 motivated by some German users finding that `date: '22. Juin 2017'`
1375 got parsed as an ordered list.
1376 + Fixed spurious parsing as citation as reference def (#3840).
1377 We now disallow reference keys starting with `@` if the
1378 `citations` extension is enabled.
1379 + Parse `-@roe` as suppress-author citation (pandoc-citeproc#237).
1380 Previously only `[-@roe]` (with brackets) was recognized as
1381 suppress-author, and `-@roe` was treated the same as `@roe`.
1382 + Fixed parsing of fenced code after list when there is no intervening
1384 + Allow raw latex commands starting with `\start` (#3558). Previously
1385 these weren't allowed because they were interpreted as starting
1386 ConTeXt environments, even without a corresponding `\stop`...
1387 + Added `inlines`, `inlines1`.
1388 + Require nonempty alt text for `implicit_figures` (#2844).
1389 A figure with an empty caption doesn't make sense.
1390 + Removed texmath macro material; now all this is handled
1391 in the LaTeX reader functions.
1392 + Fixed bug with indented code following raw LaTeX (#3947).
1396 + Rewrote LaTeX reader with proper tokenization (#1390,
1397 #2118, #3236, #3779, #934, #982). This rewrite is primarily
1398 motivated by the need to get macros working properly. A side benefit
1399 is that the reader is significantly faster. We now tokenize the
1400 input text, then parse the token stream. Macros modify the token
1401 stream, so they should now be effective in any context, including
1402 math. Thus, we no longer need the clunky macro processing
1403 capacities of texmath.
1404 + Parse `\,` to `\8198` (six-per-em space) (Henri Werth).
1405 + Allow `\newcommand\foo{blah}` without braces.
1406 + Support `\lstinputlisting` (#2116).
1407 + Issue warnings when skipping unknown latex commands (#3392).
1408 + Include contents of `\parbox`.
1409 + Allow `\hspace` and `\vspace` to count as raw block or inline.
1410 Previously we would refuse to parse anything as raw inline if
1411 it was in the `blockCommands` list. Now we allow exceptions
1412 if they're listed under ignoreInlines in inlineCommands.
1413 This should make it easier e.g. to include an `\hspace`
1414 between two side-by-side raw LaTeX tables.
1415 + Don't drop contents of `\hypertarget`.
1416 + Handle spaces before `\cite` arguments.
1417 + Allow newpage, clearpage, pagebreak in inline contexts as well as
1418 block contexts (#3494).
1419 + Treat `{{xxx}}` the same as `{xxx}` (#2115).
1420 + Use `pMacroDefinition` in macro (for more direct parsing).
1421 Note that this means that `macro` will now parse one
1422 macro at a time, rather than parsing a whole group together.
1423 + Fixed failures on \ref{}, \label{} with `+raw_tex`. Now these
1424 commands are parsed as raw if `+raw_tex`; otherwise, their argument
1425 is parsed as a bracketed string.
1426 + Don't crash on empty `enumerate` environment (#3707).
1427 + Handle escaped `&` inside table cell (#3708).
1428 + Handle block structure inside table cells (#3709). `minipage` is no
1430 + Handle some width specifiers on table columns (#3709). Currently
1431 we only handle the form `0.9\linewidth`. Anything else would have
1432 to be converted to a percentage, using some kind arbitrary assumptions
1434 + Make sure `\write18` is parsed as raw LaTeX. The change is in the
1435 LaTeX reader's treatment of raw commands, but it also affects the
1437 + Fixed regression with starred environment names (#3803).
1438 + Handle optional args in raw `\titleformat` (#3804).
1439 + Improved heuristic for raw block/inline. An unknown command at the
1440 beginning of the line that could be either block or inline is
1441 treated as block if we have a sequence of block commands followed by
1442 a newline or a `\startXXX` command (which might start a raw ConTeXt
1444 + Don't remove macro definitions from the output, even if
1445 `Ext_latex_macros` is set, so that macros will be applied.
1446 Since they're only applied to math in Markdown, removing the macros
1447 can have bad effects. Even for math macros, keeping them should be
1449 + Removed `macro`. It is no longer necessary, since the
1450 `rawLaTeXBlock` parser will parse macro definitions. This also avoids
1451 the need for a separate `latexMacro` parser in the Markdown reader.
1452 + Use `label` instead of `data-label` for label in caption (#3639).
1453 + Fixed space after \figurename etc.
1454 + Resolve references to section numbers.
1455 + Fix `\let\a=0` case, with single character token.
1456 + Allow `@` as a letter in control sequences. `@` is commonly used
1457 in macros using `\makeatletter`. Ideally we'd make the tokenizer
1458 sensitive to `\makeatletter` and `\makeatother`, but until then this
1459 seems a good change.
1460 + Track header numbers and correlate with labels.
1461 + Allow `]` inside group in option brackets (#3857).
1462 + lstinline with braces can be used (verb cannot be used with braces)
1463 (Marc Schreiber, #3535).
1464 + Fix keyval funtion: pandoc did not parse options in braces correctly
1465 (Marc Schreiber, #3642).
1466 + When parsing raw LaTeX commands, include trailing space (#1773).
1467 Otherwise things like `\noindent foo` break and turn into
1468 `\noindentfoo`. Affects `-f latex+raw_tex` and `-f markdown` (and other
1469 formats that allow `raw_tex`).
1470 + Don't treat "..." as Quoted (#3958). This caused quotes to be omitted in
1472 + Add tests for existing `\includegraphics` behaviour (Ben Firshman).
1473 + Allow space before `=` in bracketd options (Ben Firshman).
1474 + Be more forgiving in parsing command options. This was needed, for
1475 example, to make some minted options work.
1476 + Strip off quotes in `\include` filenames.
1478 * Added `Text.Pandoc.CSV`, simple (unexported) CSV parser.
1480 * `Text.Pandoc.PDF`:
1482 + Got `--resource-path` working with PDF output (#852).
1483 + Fetch images when generating PDF via context (#3380).
1484 To do this, we create the temp directory as a subdirectory
1485 of the working directory. Since context mk IV by default looks
1486 for images in the parent directory, this works.
1487 + Use `report` instead of `warn`, make it sensitive to verbosity settings.
1488 + Use `fillMediaBag` and `extractMedia` to extract media to temp dir.
1489 This reduces code duplication.
1490 + `html2pdf`: use stdin instead of intermediate HTML file
1491 + Removed useless `TEXINPUTS` stuff for `context2pdf`. mkiv context
1492 doesn't use `TEXINPUTS`.
1494 * `Text.Pandoc.Pretty`:
1496 + Simplified definition of `realLength`.
1497 + Don't error for blocks of size < 1. Instead, resize to 1 (see #1785).
1499 * `Text.Pandoc.MIME`:
1501 + Use `application/javascript` (not `application/x-javascript`).
1502 + Added `emf` to mimeTypes with type `application/x-msmetafile` (#1713).
1504 * `Text.Pandoc.ImageSize`:
1506 + Improve SVG image size code (Marc Schreiber, #3580).
1507 + Make `imageSize` recognize basic SVG dimensions (Mauro Bieg, #3462).
1509 * Use `Control.Monad.State.Strict` throughout. This gives 20-30% speedup
1510 and reduction of memory usage in most of the writers.
1512 * Use `foldrWithKey` instead of deprecated `foldWithKey`.
1514 * `Text.Pandoc.SelfContained`:
1516 + Fixed problem with embedded fonts (#3629).
1517 + Refactored getData from `getDataURI` in `SelfContained`.
1518 + Don't use data URIs for script or style (#3423). Instead, just use
1519 script or style tags with the content inside. The old method with
1520 data URIs prevents certain optimizations outside pandoc. Exception:
1521 data URIs are still used when a script contains `</script>` or a
1522 style contains `</`.
1523 + SelfContained: Handle URL inside material retrieved from a URL
1524 (#3629). This can happen e.g. with an @import of a google web font.
1525 (What is imported is some CSS which contains an url reference
1526 to the font itself.) Also, allow unescaped pipe (|) in URL.
1527 + Load resources from `data-src` (needed for lazy loading in
1528 reveal.js slide shows).
1529 + Handle `data-background-image` attribute on section (#3979).
1531 * `Text.Pandoc.Parsing`:
1533 + Added `indentWith` (Alexander Krotov, #3687).
1534 + Added `stateCitations` to `ParserState`.
1535 + Removed `stateChapters` from `ParserState`.
1536 + In `ParserState`, make `stateNotes'` a Map, add `stateNoteRefs`.
1537 + Added `gobbleSpaces` and `gobbleAtMostSpaces`.
1538 + Adjusted type of `insertIncludedFile` so it can be used with token
1540 + Replace old texmath macro stuff from Parsing. Use Macro from
1541 Text.Pandoc.Readers.LaTeX.Types instead.
1542 + Export `insertIncludedFile`.
1543 + Added `HasLogMessages`, `logMessage`, `reportLogMessages` (#3447).
1544 + Replace partial with total function (Albert Krewinkel).
1545 + Introduce `HasIncludeFiles` type class (Albert Krewinkel). The
1546 `insertIncludeFile` function is generalized to work with all parser
1547 states which are instances of that class.
1548 + Add `insertIncludedFilesF` which returns F blocks (Albert Krewinkel).
1549 The `insertIncludeFiles` function was generalized and renamed
1550 to `insertIncludedFiles'`; the specialized versions are based on that.
1551 + `many1Till`: Check for the end condition before parsing (Herwig
1552 Stuetz). By not checking for the end condition before the first
1553 parse, the parser was applied too often, consuming too much of the
1554 input. This only affects `many1Till p end` where `p` matches on a
1556 + Provide `parseFromString` (#3690). This is a verison of
1557 `parseFromString` specialied to ParserState, which resets
1558 `stateLastStrPos` at the end. This is almost always what we want.
1559 This fixes a bug where `_hi_` wasn't treated as emphasis in the
1560 following, because pandoc got confused about the position of the
1561 last word: `- [o] _hi_`.
1562 + Added `takeP`, `takeWhileP` for efficient parsing of `[Char]`.
1563 + Fix `blanklines` documentation (Alexander Krotov, #3843).
1564 + Give less misleading line information with `parseWithString`.
1565 Previously positions would be reported past the end of the chunk.
1566 We now reset the source position within the chunk and report
1567 positions "in chunk."
1568 + Add `anyLineNewline` (Alexander Krotov).
1569 + Provide shared F monad functions for Markdown and Org readers
1570 (Albert Krewinkel). The `F` monads used for delayed evaluation
1571 of certain values in the Markdown and Org readers are based on a
1572 shared data type capturing the common pattern of both `F` types.
1573 + Add `returnF` (Alexander Krotov).
1574 + Avoid parsing `Notes:**` as a bare URI (#3570). This avoids parsing
1575 bare URIs that start with a scheme + colon + `*`, `_`, or `]`.
1576 + Added `readerAbbreviations` to `ParserState`. Markdown reader
1577 now consults this to determine what is an abbreviation.
1578 + Combine grid table parsers (Albert Krewinkel, #3638). The grid table
1579 parsers for markdown and rst was combined into one single
1580 parser `gridTable`, slightly changing parsing behavior of both
1581 parsers: (1) The markdown parser now compactifies block content
1582 cell-wise: pure text blocks in cells are now treated as paragraphs
1583 only if the cell contains multiple paragraphs, and as plain blocks
1584 otherwise. Before, this was true only for single-column tables. (2)
1585 The rst parser now accepts newlines and multiple blocks in header
1587 + Generalize tableWith, gridTableWith (Albert Krewinkel).
1588 The parsing functions `tableWith` and `gridTableWith` are generalized
1589 to work with more parsers. The parser state only has to be an
1590 instance of the `HasOptions` class instead of requiring a concrete
1591 type. Block parsers are required to return blocks wrapped into a
1592 monad, as this makes it possible to use parsers returning results
1593 wrapped in `Future`s.
1595 * `Text.Pandoc.Shared`:
1597 + Simplify `toRomanNumeral` using guards (Alexander Krotov, #3445)
1598 + `stringify`: handle Quoted better (#3958). Previously we were losing
1599 the quotation marks in Quoted elements.
1601 * `Text.Pandoc.Writers.Shared`:
1603 + Export `metaToJSON'`, `addVariablesToJSON` (#3439).
1604 This allows us to add the variables AFTER using the metadata
1605 to generate a YAML header (in the Markdown writer).
1606 + Added `unsmartify` (previously in RST writer).
1607 Undo literal double curly quotes. Previously we left these.
1608 + Generalize type of `metaToJSON` so it can take a Text. Previously a
1609 String was needed as argument; now any ToJSON instance will do.
1610 + Added `gridTable` (previously in Markdown writer).
1611 + `gridTable`: Refactored to use widths in chars.
1612 + `gridTable`: remove unnecessary extra space in cells.
1613 + Fixed `addVariablesToJSON`. It was previously not allowing multiple
1614 values to become lists.
1615 + Pipe tables: impose minimum cell size (see #3526).
1618 [default template changes]
1620 * HTML templates (including EPUB and HTML slide show templates):
1622 + Make default.html5 polyglot markup conformant (John Luke Bentley,
1623 #3473). Polyglot markup is HTML5 that is also valid XHTML. See
1624 <https://www.w3.org/TR/html-polyglot>. With this change, pandoc's
1625 html5 writer creates HTML that is both valid HTML5 and valid XHTML.
1626 + Regularized CSS in html/epub/html slide templates (#3485).
1627 All templates now include `code{white-space: pre-wrap}`
1628 and CSS for `q` if `--html-q-tags` is used. Previously some templates
1629 had `pre` and others `pre-wrap`; the `q` styles were only sometimes
1631 + CSS for `.smallcaps`, (Mauro Bieg, #1592)
1632 + `default.revealjs`: make `history` default to true.
1633 + `default.revealjs`: use lazy loading (#2283).
1634 + `default.revealjs`: add `mathjax` variable and some conditional code
1635 to use the MathJaX plugin.
1636 + `default.slidy` uses `https` instead of `http` (ickc, #3848).
1637 + `default.dzslides`: Load Google Font using HTTPS by default
1640 * DocBook5 template: Use `lang` and `subtitle` variables (Jens Getreu,
1643 * LaTeX/Beamer template:
1645 + Combine LaTeX/Beamer templates (Andrew Dunning, #3878).
1646 `default.beamer` has been removed; beamer now uses the
1647 `default.latex` template. Beamer-specific parts are conditional
1648 on the `beamer` variable set by the writer. Note that
1649 `pandoc -D beamer` will return this (combined) template.
1650 + Use `xcolor` for `colorlinks` option (Andrew Dunning, #3877).
1651 Beamer loads `xcolor` rather than `color`, and thus the
1652 `dvipsnames` option doesn't take effect. This also provides a wider
1653 range of colour selections with the `svgnames` option.
1654 + Use starred versions of `xcolor` names (Andrew Dunning).
1655 Prevents changes to documents defined using the `dvipsnames` list (e.g.
1656 `Blue` gives a different result with svgnames enabled).
1657 + Load `polyglossia` after header-includes (#3898). It needs to be
1658 loaded as late as possible.
1659 + Use `unicode-math` (Vaclav Haisman). Use `mathspec` with only
1661 + Don't load `fontspec` before `unicode-math` (over there).
1662 The `unicode-math` package loads `fontspec` so explict loading of
1663 `fontspec` before `unicode-math` is not necessary.
1664 + Use `unicode-math` by default in default.latex template. mathspec will
1665 be used in xelatex if the `mathspec` variable is set; otherwise
1666 unicode-math will be used (Václav Haisman).
1667 + Use `dvipsnames` options when `colorlinks` specified (otherwise
1668 we get an error for `maroon`) (Thomas Hodgson).
1669 + Added beamer `titlegraphic` and `logo` variables (Thomas Hodgson).
1670 + Fix typo in fix for notes in tables (#2378, zeeMonkeez).
1671 + Fix `hyperref` options clash (Andrew Dunning, #3847) Avoids an options
1672 clash when loading a package (e.g. `tufte-latex`) that uses
1673 `hyperref` settings different from those in the template.
1674 + Add `natbiboptions` variable (#3768).
1675 + Fix links inside captions in LaTeX output with links-as-notes
1676 (Václav Haisman, #3651). Declare our redefined `\href` robust.
1677 + Load `parskip` before `hyperref` (Václav Haisman, #3654).
1678 + Allow setting Japanese fonts when using LuaLaTeX (Václav Haisman,
1679 #3873). by using the `luatexja-fontspec` and `luatexja-preset`
1680 packages. Use existing `CJKmainfont` and `CJKoptions` template
1681 variables. Add `luatexjafontspecoptions` for `luatexja-fontspec`
1682 and `luatexjapresetoptions` for `luatexja-preset`.
1683 + Added `aspectratio` variable to beamer template (Václav Haisman,
1685 + Modified template.latex to fix XeLaTex being used with tables
1686 (lwolfsonkin, #3661). Reordered `lang` variable handling to
1687 immediately before `bidi`.
1689 * ConTeXt template: Improved font handling: `simplefonts` is now
1690 obsolete in ConTeXt (Pablo Rodríguez).
1693 [documentation improvements]
1697 + Add URL for Prince HTML > PDF engine (Ian, #3919).
1698 + Document that content above slide-level will be omitted in
1699 slide shows. See #3460, #2265.
1700 + Explain `--webtex` SVG url (Mauro Bieg, #3471)
1701 + Small clarification in YAML metadata section.
1702 + Document that html4 is technically XHTML 1.0 transitional.
1703 + Remove refs to highlighting-kate (#3672).
1704 + Document ibooks specific epub metadata.
1705 + Clarify that mathml is used for ODT math.
1706 + Mention limitations of Literate Haskell Support (#3410,
1708 + Add documentation of limitations of grid tables (Stephen
1710 + Clarify that meta-json contains transformed values (Jakob Voß,
1711 #3491) Make clear that template variable `meta-json` does not
1712 contain plain text values or JSON output format but field values
1713 transformed to the selected output format.
1717 + Clarify that templates are dual-licensed.
1718 + Clarify that pandoc-types is BSD3 licensed.
1719 + List new files not written by jgm (Albert Krewinkel).
1720 + Update dates in copyright notices (Albert Krewinkel). This follows
1721 the suggestions given by the FSF for GPL licensed software.
1722 <https://www.gnu.org/prep/maintain/html_node/Copyright-Notices.html>
1726 + Improved instructions for tests with patterns.
1727 + Put RPM-based distros on separate point (Mauro Bieg, #3449)
1731 + Fixed typos (Wandmalfarbe, #3479).
1732 + Add "ask on pandoc-discuss" (Mauro Bieg).
1734 * Add lua filter documentation in `doc/lua-filters.md`. Note that the
1735 end of this document is autogenerated from `data/pandoc.lua`
1736 using `make doc/lua-filters.md`, which uses `tools/ldoc.ltp`
1739 * Add `doc/filters.md`. This is the old scripting tutorial from
1742 * Add `doc/using-the-pandoc-api.md` (#3289). This gives an introduction
1743 to using pandoc as a Haskell library.
1746 [build infrastructure improvements]
1748 * Removed `data/templates` submodule. Templates are now a subtree
1749 in `data/templates`. This removes the need to do `git submodule
1752 * Renamed `tests` -> `test`.
1754 * Remove `https` flag. Always build with HTTPS support.
1756 * Use `file-embed` instead of `hsb2hs` to embed data files when
1757 `embed_data_files` flag is set. `file-embed` gives us better dependency
1758 tracking: if a data file changes, ghc/stack/cabal know to recompile
1759 the Data module. This also removes `hsb2hs` as a build dependency.
1761 * Add `custom-setup` stanza to pandoc, lowercase field names.
1763 * Add `static` Cabal flag.
1765 * Name change OSX -> MacOS. Add a -MacOS suffix to mac package rather
1766 than -OSX. Changed local names from osx to macos.
1768 * make_macos_package.sh - Use strip to reduce executable size.
1770 * Revised binary linux package. Now a completely static executable
1771 is created, using Docker and alpine. We create both a deb and a
1772 tarball. The old `deb` directory has been replaced with a `linux`
1773 directory. Running `make` in the `linux` directory should
1774 perform the build, putting the binary packages in `artifacts/`.
1776 * `linux/control.in`: add `Replaces:`, so existing pandoc-citeproc and
1777 pandoc-data packages will be uninstalled; this package provides
1778 both (#3822). Add latex packages as 'suggested', update
1781 * Remove cpphs build requirement -- it is no longer needed.
1783 * Replaced `{deb,macos,windows}/stack.yaml` with `stack.pkg.yaml`.
1785 * Name change OSX -> macOS (ickc, #3869).
1787 * Fix casing of Linux, UNIX, and Windows (ickc).
1789 * `.travis.yml`: create a source dist and do cabal build and test there.
1790 That way we catch errors due to files missing from the data
1791 section of pandoc.cabal.
1795 + Split `make haddock` from `make full`.
1796 + Add BRANCH variable for winpkg.
1797 + Add `lint` target.
1798 + Improve `make full`. Disable optimizations.
1799 Build everything, inc. trypandoc and benchmarks. Use parallel build.
1800 + Allow `make test` to take `TESTARGS`.
1802 * Added new command tests (`Tests.Command`), using small text files
1803 in `test/command/`. Any files added in this directory will be treated
1804 as shell tests (see smart.md for an example). This makes it very easy
1805 to add regression tests etc.
1807 * Test fixes so we can find data files. In old tests & command tests,
1808 we now set the environment variable `pandoc_datadir`. In lua tests,
1809 we set the datadir explicitly.
1811 * Refactored `compareOutput` in docx writer test.
1813 * Consolidated some common functions in `Tests.Helper`.
1815 * Small change to unbalanced bracket test to speed up test suite.
1817 * Speed up Native writer quickcheck tests.
1819 * Use tasty for tests rather than test-framework.
1821 * Add simple Emacs mode to help with Pandoc templates editing.
1822 (Václav Haisman, #3889). `tools/pandoc-template-mode.el`
1827 * Use skylighting library instead of highlighting-kate for syntax
1828 highlighting. Skylighting is faster and more accurate (#3363).
1829 Later we'll be able to add features like warning messages, dynamic
1830 loading of xml syntax definitions, and dynamic loading of themes.
1832 * Added a new highlight style, `breezeDark`.
1834 * Text.Pandoc.Highlighting: Update list of `listings` languages (#3374).
1835 This allows more languages to be used when using the `--listings`
1838 * OpenDocument writer:
1840 + Small refactoring. Removed separate 'parent' parameter in paraStyle.
1841 + Don't profilerate text styles unnecessarily (#3371).
1842 This change makes the writer create only as many temporary
1843 text styles as are absolutely necessary. It also consolidates
1844 adjacent nodes with the same style.
1846 * Org reader (Albert Krewinkel):
1848 + Allow short hand for single-line raw blocks (Albert Krewinkel,
1849 #3366). Single-line raw blocks can be given via `#+FORMAT: raw line`,
1850 where `FORMAT` must be one of `latex`, `beamer`, `html`, or `texinfo`.
1851 + Accept org-ref citations followed by commas (Albert Krewinkel).
1852 Bugfix for an issue which, whenever the citation was immediately
1853 followed by a comma, prevented correct parsing of org-ref citations.
1854 + Ensure emphasis markup can be nested. Nested emphasis markup (e.g.
1855 `/*strong and emphasized*/`) was interpreted incorrectly in that the
1856 inner markup was not recognized.
1857 + Remove pipe char irking the haddock coverage tool (Albert Krewinkel).
1859 * Docx reader: Empty header should be list of lists (Jesse Rosenthal).
1860 In the past, the docx reader wrote an empty header as an empty list. It
1861 should have the same width as a row (and be filled with empty cells).
1865 + Improved handling of display math (#3362). Sometimes display math is
1866 indented with more than one colon. Previously we handled these cases
1867 badly, generating definition lists and missing the math.
1868 + Fix quotation mark parsing (#3336, tgkokk). Change MediaWiki reader's
1869 behavior when the smart option is parsed to match other readers'
1874 + Fixed `-f markdown_github-hard_line_breaks+escaped_line_breaks`
1875 (#3341). Previously this did not properly enable escaped line breaks.
1876 + Disallow space between inline code and attributes (#3326, #3323,
1879 * DocBook5 writer: make id attribute xml:id, fixes #3329 (#3330, Mauro Bieg).
1881 * Added some test cases for ODT reader (#3306, #3308, Hubert Plociniczak).
1883 * LaTeX writer: allow tables with empty cells to count as "plain."
1884 This addresses a problem of too-wide tables when empty cells
1885 are used. Thanks to Joost Kremers for reporting the issue.
1887 * Org writer: prefix footnote numbers with `fn:` (Albert Krewinkel).
1888 Unprefixed numbers where used by older org-mode versions, but are no
1891 * HTML writer: don't process pars with empty RawInline, (#1040, #3327,
1894 * Markdown writer: Fix display math with `--webtex` (#3298).
1896 * Fix sample.lua so it properly handles raw blocks/inlines (#3358,
1901 + default.latex: Moved geometry after hyperref (Václav Haisman).
1902 Otherwise PDF sizes can be wrong in some circumstances.
1903 + Copied a few changes from default.latex to default.beamer
1905 + default.latex, default.beamer: Changed position of `\VerbatimNotes`
1906 and `fancyvrb`. This fixes hyperlinks on footnotes in documents
1907 that contain verbatim in notes (#3361). (Note: the beamer template
1908 was updated to match the LaTeX template, but at this point verbatim
1909 in notes seems not to work in beamer.)
1910 + default.latex: Allow passing `microtypeoptions` to microtype
1912 + default.latex: Add hyphen option to url package.
1913 + default.docbook5: Fix namespace declarations (Mauro Bieg).
1915 * Moved `make_osx_package.sh` to `osx/` directory.
1917 * Travis continuous integration:
1919 + Fix false positives with dist build.
1920 + Speed improvements (Kolen Cheung, #3304, #3357).
1924 + Clarify that blank space is needed around footnotes (#3352).
1925 + Fixed typo (#3351, Alexey Rogechev).
1926 + Note that `--wrap=auto` does not work in HTML output.
1927 + Default `--columns` width is 72, not 80.
1928 + Fixed broken links (#3316, Kolen Cheung).
1929 + Document usage of `@*` in nocite section (#3333, John Muccigrosso).
1933 + Indent code so it's properly formatted (#3335, Bheesham Persaud).
1934 + Added instructions for extracting binary from OSX, Windows packages.
1936 * CONTRIBUTING.md: Describe labels currently used in issue tracker
1937 (Albert Krewinkel). The labels have changed over time, the list of
1938 labels is updated to reflect the current set of labels used in the
1941 * Rearrange and extend badges in README (Albert Krewinkel, #3354)
1943 * Bumped version bounds for dependencies.
1948 * Set `PANDOC_VERSION` environment variable for filters (#2640).
1949 This allows filters to check the pandoc version that produced
1950 the JSON they are receiving.
1952 * Docx reader: Ensure one-row tables don't have header (#3285,
1953 Jesse Rosenthal). Tables in MS Word are set by default to have
1954 special first-row formatting, which pandoc uses to determine whether
1955 or not they have a header. This means that one-row tables will, by
1956 default, have only a header -- which we imagine is not what people
1957 want. This change ensures that a one-row table is not understood to
1958 be a header only. Note that this means that it is impossible to
1959 produce a header-only table from docx, even though it is legal
1960 pandoc. But we believe that in nearly all cases, it will be an
1961 accidental (and unwelcome) result
1965 + Fixed some bad regressions in HTML table parser (#3280).
1966 This regression leads to the introduction of empty rows
1967 in some circumstances.
1968 + Understand `style=width:` as well as `width` in `col` (#3286).
1972 + Print warnings when keys, substitition, notes not found.
1973 Previously the parsers failed and we got raw text. Now we get a
1974 link with an empty URL, or empty inlines in the case of a note or
1977 + Fix hyperlink aliases (#3283).
1979 * Man writer: Ensure that periods are escaped at beginning of line
1982 * LaTeX writer: Fix unnumbered headers when used with `--top-level`
1983 (#3272, Albert Krewinkel). Fix interaction of top-level divisions
1984 `part` or `chapter` with unnumbered headers when emitting LaTeX. Headers
1985 are ensured to be written using stared commands (like `\subsection*{}`).
1987 * LaTeX template: use comma not semicolon to separate keywords for
1988 `pdfkeywords`. Thanks to Wandmalfarbe.
1990 * Markdown writer: Fixed incorrect word wrapping (#3277). Previously pandoc
1991 would sometimes wrap lines too early due to this bug.
1993 * Text.Pandoc.Pretty: Added `afterBreak` [API change]. This makes it
1994 possible to insert escape codes for content that needs escaping at the
1995 beginning of a line.
1997 * Removed old MathMLInHTML.js from 2004, which should no longer
1998 be needed for MathML with modern browsers.
2000 * Fixed tests with dynamic linking (#2709).
2002 * Makefile: Use stack instead of cabal for targets. This is just
2003 a convenience for developers.
2005 * Fixed bash completion of filenames with space (#2749).
2007 * MANUAL: improved documentation on how to create a custom `reference.docx`.
2009 * Fix minor spelling typos in the manual (#3273, Anthony Geoghegan)
2013 * Changed resolution of filter paths.
2015 + We now first treat the argument of `--filter` as a full (absolute
2016 or relative) path, looking for a program there. If it's found, we
2018 + If not, and if it is a simple program name or a relative path, we
2019 try resolving it relative to `$DATADIR/filters`.
2020 + If this fails, then we treat it as a program name and look in the
2022 + Removed a hardcoded '/' that may have caused problems with
2025 Previously if you did `--filter foo` and you had `foo` in your path and
2026 also an executable `foo` in your working directory, the one in the path
2027 would be used. Now the one in the working directory is used.
2029 In addition, when you do `--filter foo/bar.hs`, pandoc will now find a
2030 filter `$DATADIR/filters/foo/bar.hs` -- assuming there isn't a
2031 `foo/bar.hs` relative to the working directory.
2033 * Allow `file://` URIs as arguments (#3196). Also improved default reader
2034 format detection. Previously with a URI ending in .md or .markdown,
2035 pandoc would assume HTML input. Now it treats these as markdown.
2037 * Allow to overwrite top-level division type heuristics (#3258,
2038 Albert Krewinkel). Pandoc uses heuristics to determine the most
2039 reasonable top-level division type when emitting LaTeX or
2040 Docbook markup. It is now possible to overwrite this implicitly set
2041 top-level division via the `top-level-division` command line parameter.
2043 * Text.Pandoc.Options \[API changes\]:
2045 + Removed `writerStandalone` field in `WriterOptions`, made
2046 `writerTemplate` a `Maybe` value. Previously setting
2047 `writerStandalone = True` did nothing unless a template was provided
2048 in writerTemplate. Now a fragment will be generated if
2049 `writerTemplate` is `Nothing`; otherwise, the specified template
2050 will be used and standalone output generated.
2051 + `Division` has been renamed `TopLevelDivision` (#3197). The
2052 `Section`, `Chapter`, and `Part` constructors were renamed to
2053 `TopLevelSection`, `TopLevelChapter`, and
2054 `TopLevelPart`, respectively. An additional `TopLevelDefault`
2055 constructor was added, which is now also the new default value of
2056 the `writerTopLevelDivision` field in `WriterOptions`.
2058 * Improved error if they give wrong arg to `--top-level-division`.
2060 * Use new module from texmath to lookup MS font codepoints in Docx reader.
2061 Removed unexported module Text.Pandoc.Readers.Docx.Fonts. Its code now
2062 lives in texmath (0.9).
2064 * DocBook reader: Fixed xref lookup (#3243). It previously only worked
2065 when the qnames lacked the docbook namespace URI.
2069 + Improved table parsing (#3027). We now check explicitly for non-1
2070 rowspan or colspan attributes, and fail when we encounter them.
2071 Previously we checked that each row had the same number of cells,
2072 but that could be true even with rowspans/colspans. And there are
2073 cases where it isn't true in tables that we can handle fine -- e.g.
2074 when a tr element is empty. So now we just pad rows with empty cells
2076 + Treat `<math>` as MathML by default unless something else is
2077 explicitly specified in xmlns. Provided it parses as MathML,
2078 of course. Also fixed default which should be to inline math if no
2079 display attribute is used.
2080 + Only treat "a" element as link if it has href (#3226). Otherwise
2083 * Docx reader (Jesse Rosenthal):
2085 + Add a placeholder value for CHART. We wrap `[CHART]` in a
2086 `<span class="chart">`. Note that it maps to inlines because, in
2087 docx, anything in a drawing tag can be part of a larger paragraph.
2088 + Be more specific in parsing images We not only want `w:drawing`,
2089 because that could also include charts. Now we specify
2090 `w:drawing/pic:pic`. This shouldn't change behavior at all, but it's
2091 a first step toward allowing other sorts of drawing data as well.
2092 + Abstract out function to avoid code repetition.
2093 + Update tests for img title and alt (#3204).
2094 + Handle Alt text and titles in images. We use the "description" field
2095 as alt text and the "title" field as title. These can be accessed
2096 through the "Format Picture" dialog in Word.
2097 + Docx reader utils: handle empty namespace in `elemName`. Previously,
2098 if given an empty namespace `(elemName ns "" "foo")` `elemName`
2099 would output a QName with a `Just ""` namespace. This is never what
2100 we want. Now we output a `Nothing`. If someone *does* want a
2101 `Just ""` in the namespace, they can enter the QName
2104 * ODT reader/writer:
2106 + Inline code when text has a special style (Hubert Plociniczak). When
2107 a piece of text has a text `Source_Text` then we assume that this is
2108 a piece of the document that represents a code that needs to
2109 be inlined. Adapted the writer to also reflect that change.
2110 Previously it was just writing a 'preformatted' text using a
2111 non-distinguishable font style. Code blocks are still not recognized
2112 by the ODT reader. That's a separate issue.
2113 + Infer table's caption from the paragraph (#3224,
2114 Hubert Plociniczak). ODT's reader always put empty captions for the
2115 parsed tables. This commit
2117 1. checks paragraphs that follow the table definition
2118 2. treats specially a paragraph with a style named 'Table'
2119 3. does some postprocessing of the paragraphs that combines tables
2120 followed immediately by captions
2122 The ODT writer used the `TableCaption` style for the caption
2123 paragraph. This commit follows the OpenOffice approach which allows
2124 for appending captions to table but uses a built-in style named
2125 `Table` instead of `TableCaption`. Users of a custom `reference.odt`
2126 should change the style's name from `TableCaption` to `Table`.
2128 * ODT reader: Infer tables' header props from rows (#3199,
2129 Hubert Plociniczak). ODT reader simply provided an empty header list
2130 which meant that the contents of the whole table, even if not empty, was
2131 simply ignored. While we still do not infer headers we at least have to
2132 provide default properties of columns.
2136 + Allow reference link labels starting with `@...` if `citations`
2137 extension disabled (#3209). Example: in
2141 `link text` isn't hyperlinked because `[@a]` is parsed as
2142 a citation. Previously this happened whether or not the `citations`
2143 extension was enabled. Now it happens only if the `citations`
2144 extension is enabled.
2145 + Allow alignments to be specified in Markdown grid tables. For
2148 +-------+---------------+--------------------+
2149 | Right | Left | Centered |
2150 +=========:+:=================+:=============:+
2151 | Bananas | $1.34 | built-in wrapper |
2152 +-------+---------------+--------------------+
2154 + Allow Small Caps elements to be created using bracketed spans (as
2155 they already can be using HTML-syntax spans) (#3191, Kolen Cheung).
2159 + Don't treat `\vspace` and `\hspace` as block commands (#3256).
2160 Fixed an error which came up, for example, with `\vspace` inside
2161 a caption. (Captions expect inlines.)
2162 + Improved table handling. We can now parse all of the tables emitted
2163 by pandoc in our tests. The only thing we don't get yet are
2164 alignments and column widths in more complex tables. See #2669.
2165 + Limited support for minipage.
2166 + Allow for `[]`s inside LaTeX optional args. Fixes cases like:
2167 + Handle BVerbatim from fancyvrb (#3203).
2168 + Handle hungarumlaut (#3201).
2169 + Allow beamer-style `<...>` options in raw LaTeX (also in Markdown)
2170 (#3184). This allows use of things like `\only<2,3>{my content}` in
2171 Markdown that is going to be converted to beamer.
2173 * Use pre-wrap for code in dzslides template (Nicolas Porcel). Otherwise
2174 overly long code will appear on every slide.
2176 * Org reader (Albert Krewinkel):
2178 + Respect column width settings (#3246). Table column properties can
2179 optionally specify a column's width with which it is displayed in
2180 the buffer. Some exporters, notably the ODT exporter in org-mode
2181 v9.0, use these values to calculate relative column widths. The org
2182 reader now implements the same behavior. Note that the org-mode
2183 LaTeX and HTML exporters in Emacs don't support this feature yet,
2184 which should be kept in mind by users who use the column
2186 + Allow HTML attribs on non-figure images (#3222). Images which are
2187 the only element in a paragraph can still be given HTML attributes,
2188 even if the image does not have a caption and is hence not a figure.
2189 The following will add set the `width` attribute of the image to
2192 +ATTR\_HTML: :width 50%
2193 =======================
2195 \[\[file:image.jpg\]\]
2197 + Support `ATTR_HTML` for special blocks (#3182). Special
2198 blocks (i.e. blocks with unrecognized names) can be prefixed with an
2199 `ATTR_HTML` block attribute. The attributes defined in that
2200 meta-directive are added to the `Div` which is used to represent the
2202 + Support the `todo` export option. The `todo` export option allows to
2203 toggle the inclusion of TODO keywords in the output. Setting this to
2204 `nil` causes TODO keywords to be dropped from headlines. The default
2205 is to include the keywords.
2206 + Add support for todo-markers. Headlines can have optional
2207 todo-markers which can be controlled via the `#+TODO`, `#+SEQ_TODO`,
2208 or `#+TYP_TODO` meta directive. Multiple such directives can be
2209 given, each adding a new set of recognized todo-markers. If no
2210 custom todo-markers are defined, the default `TODO` and `DONE`
2211 markers are used. Todo-markers are conceptually separate from
2212 headline text and are hence excluded when autogenerating
2213 headline IDs. The markers are rendered as spans and labelled with
2214 two classes: One class is the markers name, the other signals the
2215 todo-state of the marker (either `todo` or `done`).
2219 + Use `\autocites*` when "suppress-author" citation used.
2220 + Ensure that simple tables have simple cells (#2666). If cells
2221 contain more than a single Plain or Para, then we need to set
2222 nonzero widths and put contents into minipages.
2223 + Remove invalid inlines in sections (#3218, Hubert Plociniczak).
2227 + Fix calculation of column widths for aligned multiline tables
2228 (#1911, Björn Peemöller). This also fixes excessive CPU and memory
2229 usage for tables when `--columns` is set in such a way that cells
2230 must be very tiny. Now cells are guaranteed to be big enough so that
2231 single words don't need to line break, even if this pushes the line
2232 length above the column width.
2233 + Use bracketed form for native spans when `bracketed_spans`
2235 + Fixed inconsistent spacing issue (#3232). Previously a tight bullet
2236 sublist got rendered with a blank line after, while a tight ordered
2237 sublist did not. Now we don't get the blank line in either case.
2238 + Fix escaping of spaces in super/subscript (#3225). Previously two
2239 backslashes were inserted, which gave a literal backslash.
2240 + Adjust widths in Markdown grid tables so that they match
2245 + Give full detail when there are errors converting tex math.
2246 + Handle title text in images (Jesse Rosenthal). We already handled
2247 alt text. This just puts the image "title" into the docx
2249 + Fixed XML markup for empty cells (#3238). Previously the Compact
2250 style wasn't being applied properly to empty cells.
2254 + Updated `renderHtml` import from blaze-html.
2256 * Text.Pandoc.Pretty:
2258 + Fixed some bugs that caused blank lines in tables (#3251). The bugs
2259 caused spurious blank lines in grid tables when we had things like
2260 `blankline $$ blankline`.
2261 + Add exported function `minOffet` \[API change\] (Björn Peemöller).
2262 + Added error message for illegal call to `block` (Björn Peemöller).
2264 * Text.Pandoc.Shared:
2266 + Put `warn` in MonadIO.
2267 + `fetchItem`: Better handling of protocol-relative URL (#2635). If
2268 URL starts with `//` and there is no "base URL" (as there would be
2269 if a URL were used on the command line), then default to http:.
2271 * Export Text.Pandoc.getDefaultExtensions \[API change\] (#3178).
2273 * In --version, trap error in `getAppUserDataDirectory` (#3241). This
2274 fixes a crash with `pandoc --version` on unusual systems with no real
2275 user (e.g. SQL Server 2016).
2277 * Added weigh-pandoc for memory usage diagnostics (#3169).
2279 * Use correct mime types for woff and woff2 (#3228).
2281 * Remove make\_travis\_yml.hs (#3235, Kolen Cheung).
2283 * changelog: Moved an item that was misplaced in the 1.17.2 section to the
2284 1.18 section where it belongs.
2286 * CONTRIBUTING.md: minor change in wording and punctuation (#3252,
2289 * Further revisions to manual for `--version` changes (#3244).
2294 * Added `--list-input-formats`, `--list-output-formats`,
2295 `--list-extensions`, `--list-highlight-languages`, and
2296 `--list-highlight-styles` (#3173). Removed list of highlighting
2297 languages from `--version` output. Removed list of input and output
2298 formats from default `--help` output.
2300 * Added `--reference-location=block|section|document` option
2301 (Jesse Rosenthal). This determines whether Markdown link references
2302 and footnotes are placed at the end of the document, the end of the
2303 section, or the end of the top-level block.
2305 * Added `--top-level-division=section|chapter|part` (Albert Krewinkel).
2306 This determines what a level-1 header corresponds to in LaTeX,
2307 ConTeXt, DocBook, and TEI output. The default is `section`.
2308 The `--chapters` option has been deprecated in favor of
2309 `--top-level-division=chapter`.
2311 * Added `LineBlock` constructor for `Block` (Albert Krewinkel). This
2312 is now used in parsing RST and Markdown line blocks, DocBook
2313 `linegroup`/`line` combinations, and Org-mode `VERSE` blocks.
2314 Previously `Para` blocks with hard linebreaks were used. `LineBlock`s
2315 are handled specially in the following ouput formats: AsciiDoc
2316 (as `[verse]` blocks), ConTeXt (`\startlines`/`\endlines`),
2317 HTML (`div` with a style), Markdown (line blocks if `line_blocks`
2318 is enabled), Org-mode (`VERSE` blocks), RST (line blocks). In
2319 other output formats, a paragraph with hard linebreaks is emitted.
2321 * Allow binary formats to be written to stdout (but not to tty) (#2677).
2322 Only works on posix, since we use the unix library to check whether
2323 output is to tty. On Windows, pandoc works as before and always requires
2324 an output file parameter for binary formats.
2326 * Changed JSON output format (Jesse Rosenthal). Previously we used
2327 generically generated JSON, but this was subject to change depending
2328 on the version of aeson pandoc was compiled with. To ensure stability,
2329 we switched to using manually written ToJSON and FromJSON
2330 instances, and encoding the API version. **Note:** pandoc filter
2331 libraries will need to be revised to handle the format change.
2332 Here is a summary of the essential changes:
2334 + The toplevel JSON format is now `{"pandoc-api-version" :
2335 [MAJ, MIN, REV], "meta" : META, "blocks": BLOCKS}`
2336 instead of `[{"unMeta": META}, [BLOCKS]]`.
2337 Decoding fails if the major and minor version numbers don't
2339 + Leaf nodes no longer have an empty array for their "c" value.
2340 Thus, for example, a `Space` is encoded as `{"t":"Space"}`
2341 rather than `{"t":"Space","c":[]}` as before.
2343 * Removed `tests/Tests/Arbitrary.hs` and added a `Text.Pandoc.Arbitrary`
2344 module to pandoc-types (Jesse Rosenthal). This makes it easier
2345 to use QuickCheck with pandoc types outside of pandoc itself.
2347 * Add `bracketed_spans` Markdown extension, enabled by default
2348 in pandoc `markdown`. This allows you to create a native span
2349 using this syntax: `[Here is my span]{#id .class key="val"}`.
2351 * Added `angle_brackets_escapable` Markdown extension (#2846).
2352 This is needed because github flavored Markdown has a slightly
2353 different set of escapable symbols than original Markdown;
2354 it includes angle brackets.
2356 * Export `Text.Pandoc.Error` in `Text.Pandoc` [API change].
2358 * Print highlighting-kate version in `--version`.
2360 * `Text.Pandoc.Options`:
2362 + `Extension` has new constructors `Ext_brackted_spans` and
2363 `Ext_angle_brackets_escapable` [API change].
2364 + Added `ReferenceLocation` type [API change] (Jesse Rosenthal).
2365 + Added `writerReferenceLocation` field to `WriterOptions` (Jesse
2368 * `--filter`: we now check `$DATADIR/filters` for filters before
2369 looking in the path (#3127, Jesse Rosenthal, thanks to Jakob
2370 Voß for the idea). Filters placed in this directory need not
2371 be executable; if the extension is `.hs`, `.php`, `.pl`, `.js`,
2372 or `.rb`, pandoc will run the right interpreter.
2374 * For `--webtex`, replace deprecated Google Chart API by CodeCogs as
2375 default (Kolen Cheung).
2377 * Removed `raw_tex` extension from `markdown_mmd` defaults (Kolen Cheung).
2379 * Execute .js filters with node (Jakob Voß).
2383 + Support `bc..` extended code blocks (#3037). Also, remove trailing
2384 newline in code blocks (consistently with Markdown reader).
2385 + Improve table parsing. We now handle cell and row attributes, mostly
2386 by skipping them. However, alignments are now handled properly.
2387 Since in pandoc alignment is per-column, not per-cell, we
2388 try to devine column alignments from cell alignments.
2389 Table captions are also now parsed, and textile indicators
2390 for thead and tfoot no longer cause parse failure. (However,
2391 a row designated as tfoot will just be a regular row in pandoc.)
2392 + Improve definition list parsing. We now allow multiple terms
2393 (which we concatenate with linebreaks). An exponential parsing
2394 bug (#3020) is also fixed.
2395 + Disallow empty URL in explicit link (#3036).
2399 + Use Div instead of BlockQuote for admonitions (#3031).
2400 The Div has class `admonition` and (if relevant) one of the
2401 following: `attention`, `caution`, `danger`, `error`, `hint`,
2402 `important`, `note`, `tip`, `warning`. **Note:** This will change
2403 the rendering of some RST documents! The word ("Warning", "Attention",
2404 etc.) is no longer added; that must be done with CSS or a filter.
2405 + A Div is now used for `sidebar` as well.
2406 + Skip whitespace before note (Jesse Rosenthal, #3163). RST requires a
2407 space before a footnote marker. We discard those spaces so that footnotes
2408 will be adjacent to the text that comes before it. This is in line with
2409 what rst2latex does.
2410 + Allow empty lines when parsing line blocks (Albert Krewinkel).
2414 + Allow empty lines when parsing line blocks (Albert Krewinkel).
2415 + Allow attributes on autolinks (#3183, Daniele D'Orazio).
2419 + More robust parsing of unknown environments (#3026).
2420 We no longer fail on things like `^` inside options for tikz.
2421 + Be more forgiving of non-standard characters, e.g. `^` outside of math.
2422 Some custom environments give these a meaning, so we should try not to
2423 fall over when we encounter them.
2424 + Drop duplicate `*` in bibtexKeyChars (Albert Krewinkel)
2428 + Fix for unquoted attribute values in mediawiki tables (#3053).
2429 Previously an unquoted attribute value in a table row
2430 could cause parsing problems.
2431 + Improved treatment of verbatim constructions (#3055).
2432 Previously these yielded strings of alternating Code and Space
2433 elements; we now incorporate the spaces into the Code. Emphasis
2434 etc. is still possible inside these.
2435 + Properly interpret XML tags in pre environments (#3042). They are meant
2436 to be interpreted as literal text.
2438 * EPUB reader: don't add root path to data: URIs (#3150).
2439 Thanks to @lep for the bug report and patch.
2441 * Org reader (Albert Krewinkel):
2443 + Preserve indentation of verse lines (#3064). Leading spaces in verse
2444 lines are converted to non-breaking spaces, so indentation is preserved.
2445 + Ensure image sources are proper links. Image sources as those in plain
2446 images, image links, or figures, must be proper URIs or relative file
2447 paths to be recognized as images. This restriction is now enforced
2448 for all image sources. This also fixes the reader's usage of uncleaned
2449 image sources, leading to `file:` prefixes not being deleted from
2450 figure images. Thanks to @bsag for noticing this bug.
2451 + Trim verse lines properly (Albert Krewinkel).
2452 + Extract meta parsing code to module. Parsing of meta-data is well
2453 separable from other block parsing tasks. Moving into new module to
2454 get small files and clearly arranged code.
2455 + Read markup only for special meta keys. Most meta-keys should be read
2456 as normal string values, only a few are interpreted as marked-up text.
2457 + Allow multiple, comma-separated authors. Multiple authors can be
2458 specified in the `#+AUTHOR` meta line if they are given as a
2459 comma-separated list.
2460 + Give precedence to later meta lines. The last meta-line of any given
2461 type is the significant line. Previously the value of the first line
2462 was kept, even if more lines of the same type were encounterd.
2463 + Read LaTeX_header as header-includes. LaTeX-specific header commands
2464 can be defined in `#+LaTeX_header` lines. They are parsed as
2465 format-specific inlines to ensure that they will only show up in LaTeX
2467 + Set documentclass meta from LaTeX_class.
2468 + Set classoption meta from LaTeX_class_options.
2469 + Read HTML_head as header-includes. HTML-specific head content can be
2470 defined in `#+HTML_head` lines. They are parsed as format-specific
2471 inlines to ensure that they will only show up in HTML output.
2472 + Respect `author` export option. The `author` option controls whether
2473 the author should be included in the final markup. Setting
2474 `#+OPTIONS: author:nil` will drop the author from the final meta-data
2476 + Respect `email` export option. The `email` option controls whether the
2477 email meta-field should be included in the final markup. Setting
2478 `#+OPTIONS: email:nil` will drop the email field from the final
2480 + Respect `creator` export option. The `creator` option controls whether
2481 the creator meta-field should be included in the final markup. Setting
2482 `#+OPTIONS: creator:nil` will drop the creator field from the final
2483 meta-data output. Org-mode recognizes the special value `comment` for
2484 this field, causing the creator to be included in a comment. This is
2485 difficult to translate to Pandoc internals and is hence interpreted the
2486 same as other truish values (i.e. the meta field is kept if it's
2488 + Respect unnumbered header property (#3095). Sections the `unnumbered`
2489 property should, as the name implies, be excluded from the automatic
2490 numbering of section provided by some output formats. The Pandoc
2491 convention for this is to add an "unnumbered" class to the header. The
2492 reader treats properties as key-value pairs per default, so a special
2493 case is added to translate the above property to a class instead.
2494 + Allow figure with empty caption (Albert Krewinkel, #3161).
2495 A `#+CAPTION` attribute before an image is enough to turn an image into
2496 a figure. This wasn't the case because the `parseFromString` function,
2497 which processes the caption value, would fail on empty values. Adding
2498 a newline character to the caption value fixes this.
2502 + Use XML convenience functions (Jesse Rosenthal).
2503 The functions `isElem` and `elemName` (defined in Docx/Util.hs) make
2504 the code a lot cleaner than the original XML.Light functions, but they
2505 had been used inconsistently. This puts them in wherever applicable.
2506 + Handle anchor spans with content in headers. Previously, we would only
2507 be able to figure out internal links to a header in a docx if the
2508 anchor span was empty. We change that to read the inlines out of the
2509 first anchor span in a header.
2510 + Let headers use exisiting id. Previously we always generated an id for
2511 headers (since they wouldn't bring one from Docx). Now we let it use an
2512 existing one if possible. This should allow us to recurs through anchor
2514 + Use all anchor spans for header ids. Previously we only used the first
2515 anchor span to affect header ids. This allows us to use all the anchor
2516 spans in a header, whether they're nested or not (#3088).
2517 + Test for nested anchor spans in header. This ensures that anchor spans
2518 in header with content (or with other anchor spans inside) will resolve
2519 to links to a header id properly.
2521 * ODT reader (Hubert Plociniczak)
2523 + Include list's starting value. Previously the starting value of
2524 the lists' items has been hardcoded to 1. In reality ODT's list
2525 style definition can provide a new starting value in one of its
2527 + Infer caption from the text following the image.
2528 Frame can contain other frames with the text boxes.
2529 + Add `fig:` to title for Image with a caption (as expected
2530 by pandoc's writers).
2531 + Basic support for images in ODT documents.
2532 + Don't duplicate text for anchors (#3143). When creating an anchor
2533 element we were adding its representation as well as the original
2534 content, leading to text duplication.
2538 + Include an anchor element when a div or span has an id (#3102).
2539 Note that DocBook does not have a class attribute, but at least this
2540 provides an anchor for internal links.
2544 + Don't use * for unnumbered paragraph, subparagraph. The starred
2545 variants don't exist. This helps with part of #3058...it gets rid of
2546 the spurious `*`s. But we still have numbers on the 4th and 5th level
2548 + Properly escape backticks in verbatim (#3121, Jesse Rosenthal).
2549 Otherwise they can cause unintended ligatures like `` ?` ``.
2550 + Handle NARRAOW NO-BREAK SPACE into LaTeX (Vaclav Zeman) as `\,`.
2551 + Don't include `[htbp]` placement for figures (#3103, Václav Haisman).
2552 This allows figure placement defaults to be changed by the user
2555 * HTML writer (slide show formats): In slide shows, don't change slide title
2556 to level 1 header (#2221).
2558 * TEI writer: remove heuristic to detect book template (Albert Krewinkel).
2559 TEI doesn't have `<book>` elements but only generic `<divN>` division
2560 elements. Checking the template for a trailing `</book>` is nonsensical.
2562 * MediaWiki writer: transform filename with underscores in images (#3052).
2563 `foo bar.jpg` becomes `foo_bar.jpg`. This was already done
2564 for internal links, but it also needs to happen for images.
2566 * ICML writer: replace partial function (!!) in table handling (#3175,
2569 * Man writer: allow section numbers that are not a single digit (#3089).
2571 * AsciiDoc writer: avoid unnecessary use of "unconstrained" emphasis
2572 (#3068). In AsciiDoc, you must use a special form of emphasis
2573 (double `__`) for intraword emphasis. Pandoc was previously using
2574 this more than necessary.
2576 * EPUB writer: use stringify instead of plain writer for metadata
2577 (#3066). This means that underscores won't be used for emphasis,
2578 or CAPS for bold. The metadata fields will just have unadorned
2583 + Implement user-defined styles (Jesse Rosenthal). Divs and Spans
2584 with a `custom-style` key in the attributes will apply the corresponding
2585 key to the contained blocks or inlines.
2586 + Add ReaderT env to the docx writer (Jesse Rosenthal).
2587 + Clean up and streamline RTL behavior (Jesse Rosenthal, #3140).
2588 You can set `dir: rtl` in YAML metadata, or use `-M dir=rtl`
2589 on the command line. For finer-grained control, you can set
2590 the `dir` attribute in Div or Span elements.
2592 * Org writer (Albert Krewinkel):
2594 + Remove blank line after figure caption. Org-mode only treats an image
2595 as a figure if it is directly preceded by a caption.
2596 + Ensure blank line after figure. An Org-mode figure should be surrounded
2597 by blank lines. The figure would be recognized regardless, but images
2598 in the following line would unintentionally be treated as figures as
2600 + Ensure link targets are paths or URLs. Org-mode treats links as
2601 document internal searches unless the link target looks like a URL or
2602 file path, either relative or absolute. This change ensures that this
2604 + Translate language identifiers. Pandoc and Org-mode use different
2605 programming language identifiers. An additional translation between
2606 those identifiers is added to avoid unexpected behavior. This fixes a
2607 problem where language specific source code would sometimes be output
2609 + Drop space before footnote markers (Albert Krewinkel, #3162).
2610 The writer no longer adds an extra space before footnote markers.
2614 + Don't emit HTML for tables unless `raw_html` extension is set (#3154).
2615 Emit `[TABLE]` if no suitable table formats are enabled and raw HTML
2617 + Check for the `raw_html` extension before emiting a raw HTML block.
2618 + Abstract out note/ref function (Jesse Rosenthal).
2619 + Add ReaderT monad for environment variables (Jesse Rosenthal).
2621 * HTML, EPUB, slidy, revealjs templates: Use `<p>` instead of `<h1>` for
2622 subtitle, author, date (#3119). Note that, as a result of this change,
2623 authors may need to update CSS.
2625 * revealjs template: Added `notes-server` option
2626 (jgm/pandoc-templates#212, Yoan Blanc).
2630 + Restore whitespace between paragraphs. This was
2631 a regression in the last release (jgm/pandoc-templates#207).
2632 + Added `themeoptions` variable (Carsten Gips).
2633 + Added `beamerarticle` variable. This causes the `beamerarticle`
2634 package to be loaded in beamer, to produce an article from beamer
2635 slides. (Carsten Gips)
2636 + Added support for `fontfamilies` structured variable
2638 + Added hypersetup options (Jake Zimmerman).
2642 + Added dummy definition for `\institute`.
2643 This isn't a standard command, and we want to avoid a crash when
2644 `institute` is used with the default template.
2645 + Define default figure placement (Václav Haisman), since pandoc
2646 no longer includes `[htbp]` for figures. Users with custom templates
2647 will want to add this. See #3103.
2648 + Use footnote package to fix notes in tables (jgm/pandoc-templates#208,
2651 * Moved template compiling/rendering code to a separate library.
2652 `doctemplates`. This allows the pandoc templating system to be
2655 * Text.Pandoc.Error: Fix out of index error in `handleError`
2656 (Matthew Pickering). The fix is to not try to show the exact line when
2657 it would cause an out-of-bounds error as a result of included files.
2659 * Text.Pandoc.Shared: Add `linesToBlock` function (Albert Krewinkel).
2661 * Text.Pandoc.Parsing.emailAddress: tighten up parsing of email
2662 addresses. Technically `**@user` is a valid email address, but if we
2663 allow things like this, we get bad results in markdown flavors
2664 that autolink raw email addresses (see #2940). So we exclude a few
2665 valid email addresses in order to avoid these more common bad cases.
2667 * Text.Pandoc.PDF: Don't crash with nonexistent image (#3100). Instead,
2668 emit the alt text, emphasized. This accords with what the ODT writer
2669 currently does. The user will still get a warning about a nonexistent
2672 * Fix example in API documentation (#3176, Thomas Weißschuh).
2674 * Tell where to get tarball in INSTALL (#3062).
2676 * Rename README to MANUAL.txt and add GitHub-friendly README.md
2677 (Albert Krewinkel, Kolen Cheung).
2679 * Replace COPYING with Markdown version COPYING.md from GNU (Kolen Cheung).
2683 + Put note on structured vars in separate paragraph (#2148, Albert
2684 Krewinkel). Make it clearer that structured author variables require a
2686 + Note that `--katex` works best with `html5` (#3077).
2687 + Fix the LaTeX and EPUB links in manual (Morton Fox).
2688 + Document `biblio-title` variable.
2690 * Improve spacing of footnotes in `--help` output (Waldir Pimenta).
2692 * Update KaTeX to v0.6.0 (Kolen Cheung).
2694 * Allow latest dependencies.
2696 * Use texmath 0.8.6.6 (#3040).
2698 * Allow http-client 0.4.30, which is the version in stackage lts.
2699 Previously we required 0.5.
2700 Remove CPP conditionals for earlier versions.
2702 * Remove support for GHC < 7.8 (Jesse Rosenthal).
2704 + Remove Compat.Monoid.
2705 + Remove an inline monad compatibility macro.
2706 + Remove Text.Pandoc.Compat.Except.
2707 + Remove directory compat.
2708 + Change constraint on mtl.
2709 + Remove unnecessary CPP condition in UTF8.
2710 + Bump base lower bound to 4.7.
2711 + Remove 7.6 build from .travis.yaml.
2712 + Bump supported ghc version in CONTRIBUTING.md.
2713 + Add note about GHC version support to INSTALL.
2714 + Remove GHC 7.6 from list of tested versions (Albert Krewinkel).
2715 + Remove TagSoup compat.
2716 + Add EOL note to time compat module. Because time 1.4 is a boot library
2717 for GHC 7.8, we will support the compatibility module as long as we
2718 support 7.8. But we should be clear about when we will no longer need
2720 + Remove blaze-html CPP conditional.
2721 + Remove unnecessary CPP in custom Prelude.
2725 * Added Zim Wiki writer, template and tests. `zimwiki` is now
2726 a valid output format. (Alex Ivkin)
2728 * Changed email-obfuscation default to no obfuscation (#2988).
2729 + `writerEmailObfuscation` in `defaultWriterOptions` is now
2731 + the default for the command-line `--email-obfuscation` option is
2734 * Docbook writer: Declare xlink namespace in Docbook5 output (Ivo Clarysse).
2738 + Support arbitrary raw inlines (Albert Krewinkel).
2739 Org mode allows arbitrary raw inlines ("export snippets" in Emacs
2740 parlance) to be included as `@@format:raw foreign format text@@`.
2741 + Improve Div handling (Albert Krewinkel). Div blocks handling is
2742 changed to make the output look more like idiomatic org mode:
2743 - Div-wrapped content is output as-is if the div's attribute is the
2745 - Div containers with an id but neither classes nor key-value pairs
2746 are unwrapped and the id is added as an anchor.
2747 - Divs with classes associated with greater block elements are
2748 wrapped in a `#+BEGIN`...`#+END` block.
2749 - The old behavior for Divs with more complex attributes is kept.
2753 + Better support for raw LaTeX environments (#2758).
2754 Previously we just passed all raw TeX through when MathJax was used for
2755 HTML math. This passed through too much. With this patch, only raw
2756 LaTeX environments that MathJax can handle get passed through.
2757 This patch also causes raw LaTeX environments to be treated
2758 as math, when possible, with MathML and WebTeX output.
2760 * Markdown writer: use raw HTML for simple, pipe tables with linebreaks
2761 (#2993). Markdown line breaks involve a newline, and simple and pipe
2762 tables can't contain one.
2764 * Make --webtex work with the Markdown writer (#1177).
2765 This is a convenient option for people using
2766 websites whose Markdown flavors don't provide for math.
2770 + Set paragraph to FirstPara after display math (Jesse Rosenthal).
2771 We treat display math like block quotes, and apply FirstParagraph style
2772 to paragraphs that follow them. These can be styled as the user
2773 wishes. (But, when the user is using indentation, this allows for
2774 paragraphs to continue after display math without indentation.)
2775 + Use actual creation time as doc prop (Jesse Rosenthal).
2776 Previously, we had used the user-supplied date, if available, for Word's
2777 document creation metadata. This could lead to weird results, as in
2778 cases where the user post-dates a document (so the modification might be
2779 prior to the creation). Here we use the actual computer time to set the
2784 + Don't URI-escape image source (#2825). Usually this is a local file,
2785 and replacing spaces with `%20` ruins things.
2786 + Allow 'standout' as a beamer frame option (#3007).
2787 `## Slide title {.standout}`.
2789 * RST reader: Fixed links with no explicit link text. The link
2790 `` `<foo>`_ `` should have `foo` as both its link text and its URL.
2791 See RST spec at <http://docutils.sourceforge.net/docs/ref/rst/restructuredtext.html#embedded-uris-and-aliases>
2792 Closes Debian #828167 -- reported by Christian Heller.
2796 + Fixed attributes (#2984). Attributes can't be followed by
2797 a space. So, `_(class)emph_` but `_(noclass) emph_`.
2798 + Fixed exponential parsing bug (#3020).
2799 + Fix overly aggressive interpretation as images (#2998).
2800 Spaces are not allowed in the image URL in textile.
2804 + Fix `\cite` so it is a NormalCitation not AuthorInText.
2805 + Strip off double quotes around image source if present (#2825).
2806 Avoids interpreting these as part of the literal filename.
2810 + Add semicolon to list of special chars (Albert Krewinkel)
2811 Semicolons are used as special characters in citations syntax. This
2812 ensures the correct parsing of Pandoc-style citations: `[prefix; @key;
2813 suffix]`. Previously, parsing would have failed unless there was a space
2814 or other special character as the last <prefix> character.
2815 + Add support for "Berkeley-style" cites (Albert Krewinkel, #1978).
2816 A specification for an official Org-mode citation syntax was drafted by
2817 Richard Lawrence and enhanced with the help of others on the orgmode
2818 mailing list. Basic support for this citation style is added to the
2820 + Support arbitrary raw inlines (Albert Krewinkel).
2821 Org mode allows arbitrary raw inlines ("export snippets" in Emacs
2822 parlance) to be included as `@@format:raw foreign format text@@`.
2823 + Remove partial functions (Albert Krewinkel, #2991).
2824 Partial functions like `head` lead to avoidable errors and should be
2825 avoided. They are replaced with total functions.
2826 + Support figure labels (Albert Krewinkel, #2496, #2999).
2827 Figure labels given as `#+LABEL: thelabel` are used as the ID of the
2828 respective image. This allows e.g. the LaTeX to add proper `\label`
2830 + Improve tag and properties type safety (Albert Krewinkel).
2831 Specific newtype definitions are used to replace stringly typing of tags
2832 and properties. Type safety is increased while readability is improved.
2833 + Parse as headlines, convert to blocks (Albert Krewinkel).
2834 Emacs org-mode is based on outline-mode, which treats documents as trees
2835 with headlines are nodes. The reader is refactored to parse into a
2836 similar tree structure. This simplifies transformations acting on
2837 document (sub-)trees.
2838 * Refactor comment tree handling (Albert Krewinkel).
2839 Comment trees were handled after parsing, as pattern matching on lists
2840 is easier than matching on sequences. The new method of reading
2841 documents as trees allows for more elegant subtree removal.
2842 * Support archived trees export options (Albert Krewinkel).
2843 Handling of archived trees can be modified using the `arch` option.
2844 Archived trees are either dropped, exported completely, or collapsed to
2845 include just the header when the `arch` option is nil, non-nil, or
2846 `headline`, respectively.
2847 * Put export setting parser into module (Albert Krewinkel).
2848 Export option parsing is distinct enough from general block parsing to
2849 justify putting it into a separate module.
2850 * Support headline levels export setting (Albert Krewinkel).
2851 The depths of headlines can be modified using the `H` option. Deeper
2852 headlines will be converted to lists.
2853 * Replace ugly code with view pattern (Albert Krewinkel).
2854 Some less-than-smart code required a pragma switching of overlapping
2855 pattern warnings in order to compile seamlessly. Using view patterns
2856 makes the code easier to read and also doesn't require overlapping
2857 pattern checks to be disabled.
2858 * Fix parsing of verbatim inlines (Albert Krewinkel, #3016).
2859 Org rules for allowed characters before or after markup chars were not
2860 checked for verbatim text. This resultet in wrong parsing outcomes of
2861 if the verbatim text contained e.g. space enclosed markup characters as
2862 part of the text (`=is_substr = True=`). Forcing the parser to update
2863 the positions of allowed/forbidden markup border characters fixes this.
2865 * LaTeX template: fix for obscure hyperref/xelatex issue.
2866 Here's a minimal case:
2868 \documentclass[]{article}
2869 \usepackage{hyperref}
2874 Without this change, this fails on the second invocation of xelatex.
2875 This affects inputs this like `# %á` with pdf output via xelatex.
2877 * trypandoc: call results 'html' instead of 'result'.
2878 This is for better compatibility with babelmark2.
2880 * Document MultiMarkdown as input/output format (Albert Krewinkel, #2973).
2881 MultiMarkdown was only mentioned as a supported Markdown dialect but not
2882 as a possible input or output format. A brief mention is added
2883 everywhere the other supported markdown dialects are mentioned.
2885 * Document Org mode as a format containing raw HTML (Albert Krewinkel)
2886 Raw HTML is kept when the output format is Emacs Org mode.
2888 * Implement `RawInline` and `RawBlock` in sample lua custom writer (#2985).
2890 * Text.Pandoc.Shared:
2892 + Introduce blocksToInlines function (Jesse Rosenthal).
2893 This is a lossy function for converting `[Block] -> [Inline]`. Its main
2894 use, at the moment, is for docx comments, which can contain arbitrary
2895 blocks (except for footnotes), but which will be converted to spans.
2896 This is, at the moment, pretty useless for everything but the basic
2897 `Para` and `Plain` comments. It can be improved, but the docx reader
2898 should probably emit a warning if the comment contains more than this.
2899 + Add BlockQuote to blocksToInlines (Jesse Rosenthal).
2900 + Add further formats for `normalizeDate` (Jesse Rosenthal).
2901 We want to avoid illegal dates -- in particular years with greater than
2902 four digits. We attempt to parse series of digits first as `%Y%m%d`, then
2903 `%Y%m`, and finally `%Y`.
2904 + `normalizeDate` should reject illegal years (Jesse Rosenthal).
2905 We only allow years between 1601 and 9999, inclusive. The ISO 8601
2906 actually says that years are supposed to start with 1583, but MS Word
2907 only allows 1601-9999. This should stop corrupted word files if the date
2908 is out of that range, or is parsed incorrectly.
2909 + Improve year sanity check in normalizeDate (Jesse Rosenthal).
2910 Previously we parsed a list of dates, took the first one, and then
2911 tested its year range. That meant that if the first one failed, we
2912 returned nothing, regardless of what the others did. Now we test for
2913 sanity before running `msum` over the list of Maybe values. Anything
2914 failing the test will be Nothing, so will not be a candidate.
2918 + Add simple comment functionality. (Jesse Rosenthal).
2919 This adds simple track-changes comment parsing to the docx reader. It is
2920 turned on with `--track-changes=all`. All comments are converted to
2921 inlines, which can list some information. In the future a warning will be
2922 added for comments with formatting that seems like it will be excessively
2923 denatured. Note that comments can extend across blocks. For that reason
2924 there are two spans: `comment-start` and `comment-end`. `comment-start`
2925 will contain the comment. `comment-end` will always be empty. The two
2926 will be associated by a numeric id.
2927 + Enable warnings in top-level reader (Jesse Rosenthal).
2928 Previously we had only allowed for warnings in the parser. Now we allow
2929 for them in the `Docx.hs` as well. The warnings are simply concatenated.
2930 + Add warning for advanced comment formatting. (Jesse Rosenthal).
2931 We can't guarantee we'll convert every comment correctly, though we'll
2932 do the best we can. This warns if the comment includes something other
2934 + Add tests for warnings. (Jesse Rosenthal).
2935 + Add tests for comments (Jesse Rosenthal).
2936 We test for comments, using all track-changes options. Note that we
2937 should only output comments if `--track-changes=all`. We also test for
2938 emitting warnings if there is complicated formatting.
2940 * README: update to include track-changes comments. (Jesse Rosenthal)
2942 * Improved Windows installer - don't ignore properties set on command-line.
2943 See #2708. Needs testing to see if this resolves the issue.
2946 * Process markdown extensions on command line in L->R order (#2995).
2947 Previously they were processed, very unintuitively, in R->L
2948 order, so that `markdown-tex_math_dollars+tex_math_dollars`
2949 had `tex_math_dollars` disabled.
2951 * Added `secnumdepth` variable to LaTeX template (#2920).
2953 * Include table of contents in README.html in Windows package.
2955 * Writers: treat SoftBreak as space for stripping (Jesse Rosenthal)
2956 In Writers.Shared, we strip leading and trailing spaces for display
2957 math. Since SoftBreak's are treated as spaces, we should strip those
2960 * beamer, latex templates: pass biblatexoptions directly in package load.
2961 This allows runtime optinos to be used. Fixes jgm/pandoc-citeproc#201
2963 * CPP workaround for deprecation of `parseUrl` in http-client.
2965 * Removed some redundant class constraints.
2967 * make_oxs_package.sh - use OSX env variable.
2969 * Replaced INSTALL with INSTALL.md, incorporating INSTALL and the
2970 old installing page from website.
2972 * Added `winpkg` target to Makefile. This downloads the windows package
2973 from appveyor and signs it using the key.
2975 * Document Org mode as a format containing raw TeX (Albert Krewinkel).
2976 Raw TeX is kept verbatim when the output format is Emacs Org mode.
2978 * Support math with haddock-library >= 1.4.
2980 * Removed `-rtsopts` from library stanza. It has no effect, and Hackage
2981 wouldn't accept the package.
2983 * Update library dependency versions.
2987 * New output format: `docbook5` (Ivo Clarysse).
2989 * `Text.Pandoc.Options`: Add `writerDocBook5` to `WriterOptions`
2994 + Add :PROPERTIES: drawer support (Albert Krewinkel, #1962).
2995 This allows header attributes to be added to org documents in the form
2996 of `:PROPERTIES:` drawers. All available attributes are stored as
2997 key/value pairs. This reflects the way the org reader handles
2998 `:PROPERTIES:` blocks.
2999 + Add drawer capability (Carlos Sosa). For the implementation of the
3000 Drawer element in the Org Writer, we make use of a generic Block
3001 container with attributes. The presence of a `drawer` class defines
3002 that the `Div` constructor is a drawer. The first class defines the
3003 drawer name to use. The key-value list in the attributes defines
3004 the keys to add inside the Drawer. Lastly, the list of Block elements
3005 contains miscellaneous blocks elements to add inside of the Drawer.
3006 + Use `CUSTOM_ID` in properties (Albert Krewinkel). The `ID` property is
3007 reserved for internal use by Org-mode and should not be used.
3008 The `CUSTOM_ID` property is to be used instead, it is converted to the
3009 `ID` property for certain export format.
3013 + Ignore `--incremental` unless output format is beamer (#2843).
3014 + Fix polyglossia to babel env mapping (Mauro Bieg, #2728).
3015 Allow for optional argument in square brackets.
3016 + Recognize `la-x-classic` as Classical Latin (Andrew Dunning).
3017 This allows one to access the hyphenation patterns in CTAN's
3019 + Add missing languages from hyph-utf8 (Andrew Dunning).
3020 + Improve use of `\strut` with `\minipage` inside tables
3021 (Jose Luis Duran). This improves spacing in multiline
3023 + Use `{}` around options containing special chars (#2892).
3024 + Avoid lazy `foldl`.
3025 + Don't escape underscore in labels (#2921). Previously they were
3027 + brazilian -> brazil for polyglossia (#2953).
3029 * HTML writer: Ensure mathjax link is added when math appears in footnote
3030 (#2881). Previously if a document only had math in a footnote, the
3031 MathJax link would not be added.
3033 * EPUB writer: set `navpage` variable on nav page.
3034 This allows templates to treat it differently.
3038 + Use docbook5 if `writerDocbook5` is set (Ivo Clarysse).
3039 + Properly handle `ulink`/`link` (Ivo Clarysse).
3043 + Unescape URIs in spine (#2924).
3044 + EPUB reader: normalise link id (Mauro Bieg).
3048 + Parse `moveTo` and `moveFrom` (Jesse Rosenthal).
3049 `moveTo` and `moveFrom` are track-changes tags that are used when a
3050 block of text is moved in the document. We now recognize these tags and
3051 treat them the same as `insert` and `delete`, respectively. So,
3052 `--track-changes=accept` will show the moved version, while
3053 `--track-changes=reject` will show the original version.
3054 + Tests for track-changes moving (Jesse Rosenthal).
3056 * ODT, EPUB, Docx readers: throw `PandocError` on unzip failure
3057 (Jesse Rosenthal) Previously, `readDocx`, `readEPUB`, and `readOdt`
3058 would error out if zip-archive failed. We change the archive extraction
3059 step from `toArchive` to `toArchiveOrFail`, which returns an Either value.
3061 * Markdown, HTML readers: be more forgiving about unescaped `&` in
3062 HTML (#2410). We are now more forgiving about parsing invalid HTML with
3063 unescaped `&` as raw HTML. (Previously any unescaped `&`
3064 would cause pandoc not to recognize the string as raw HTML.)
3068 + Added bracket syntax for native spans (#168).
3069 + Fix pandoc title blocks with lines ending in 2 spaces (#2799).
3070 + Added `-s` to markdown-reader-more test.
3072 * HTML reader: fixed bug in `pClose`. This caused exponential parsing
3073 behavior in documnets with unclosed tags in `dl`, `dd`, `dt`.
3075 * MediaWiki reader: Allow spaces before `!` in MediaWiki table header
3078 * RST reader: Support `:class:` option for code block in RST reader
3081 * Org reader (all Albert Krewinkel, except where noted otherwise):
3083 + Stop padding short table rows.
3084 Emacs Org-mode doesn't add any padding to table rows. The first
3085 row (header or first body row) is used to determine the column count,
3086 no other magic is performed.
3087 + Refactor rows-to-table conversion. This refactors
3088 the codes conversing a list table lines to an org table ADT.
3089 The old code was simplified and is now slightly less ugly.
3090 + Fix handling of empty table cells, rows (Albert Krewinkel, #2616).
3091 This fixes Org mode parsing of some corner cases regarding empty cells
3092 and rows. Empty cells weren't parsed correctly, e.g. `|||` should be
3093 two empty cells, but would be parsed as a single cell containing a pipe
3094 character. Empty rows where parsed as alignment rows and dropped from
3096 + Fix spacing after LaTeX-style symbols.
3097 The org-reader was droping space after unescaped LaTeX-style symbol
3098 commands: `\ForAll \Auml` resulted in `∀Ä` but should give `∀ Ä`
3099 instead. This seems to be because the LaTeX-reader treats the
3100 command-terminating space as part of the command. Dropping the trailing
3101 space from the symbol-command fixes this issue.
3102 + Print empty table rows. Empty table rows should not
3103 be dropped from the output, so row-height is always set to be at least 1.
3104 + Move parser state into separate module.
3105 The org reader code has become large and confusing. Extracting smaller
3106 parts into submodules should help to clean things up.
3107 + Add support for sub/superscript export options.
3108 Org-mode allows to specify export settings via `#+OPTIONS` lines.
3109 Disabling simple sub- and superscripts is one of these export options,
3110 this options is now supported.
3111 + Support special strings export option Parsing of special strings
3112 (like `...` as ellipsis or `--` as en dash) can be toggled using the `-`
3114 + Support emphasized text export option. Parsing of emphasized text can
3115 be toggled using the `*` option. This influences parsing of text marked
3116 as emphasized, strong, strikeout, and underline. Parsing of inline math,
3117 code, and verbatim text is not affected by this option.
3118 + Support smart quotes export option. Reading of smart quotes can be
3119 toggled using the `'` option.
3120 + Parse but ignore export options. All known export options are parsed
3122 + Refactor block attribute handling. A parser state attribute was used
3123 to keep track of block attributes defined in meta-lines. Global state
3124 is undesirable, so block attributes are no longer saved as part of the
3125 parser state. Old functions and the respective part of the parser state
3127 + Use custom `anyLine`. Additional state changes need to be made after
3128 a newline is parsed, otherwise markup may not be recognized correctly.
3129 This fixes a bug where markup after certain block-types would not be
3131 + Add support for `ATTR_HTML` attributes (#1906).
3132 Arbitrary key-value pairs can be added to some block types using a
3133 `#+ATTR_HTML` line before the block. Emacs Org-mode only includes these
3134 when exporting to HTML, but since we cannot make this distinction here,
3135 the attributes are always added. The functionality is now supported
3137 + Add `:PROPERTIES:` drawer support (#1877).
3138 Headers can have optional `:PROPERTIES:` drawers associated with them.
3139 These drawers contain key/value pairs like the header's `id`. The
3140 reader adds all listed pairs to the header's attributes; `id` and
3141 `class` attributes are handled specially to match the way `Attr` are
3142 defined. This also changes behavior of how drawers of unknown type
3143 are handled. Instead of including all unknown drawers, those are not
3144 read/exported, thereby matching current Emacs behavior.
3145 + Use `CUSTOM_ID` in properties. See above on Org writer changes.
3146 + Respect drawer export setting. The `d` export option can be used
3147 to control which drawers are exported and which are discarded.
3148 Basic support for this option is added here.
3149 + Ignore leading space in org code blocks (Emanuel Evans, #2862).
3150 Also fix up tab handling for leading whitespace in code blocks.
3151 + Support new syntax for export blocks. Org-mode version 9
3152 uses a new syntax for export blocks. Instead of `#+BEGIN_<FORMAT>`,
3153 where `<FORMAT>` is the format of the block's content, the new
3154 format uses `#+BEGIN_export <FORMAT>` instead. Both types are
3156 + Refactor `BEGIN...END` block parsing.
3157 + Fix handling of whitespace in blocks, allowing content to be indented
3158 less then the block header.
3159 + Support org-ref style citations. The *org-ref* package is an
3160 org-mode extension commonly used to manage citations in org
3161 documents. Basic support for the `cite:citeKey` and
3162 `[[cite:citeKey][prefix text::suffix text]]` syntax is added.
3163 + Split code into separate modules, making for cleaner code and
3166 * Added `docbook5` template.
3168 * `--mathjax` improvements:
3170 + Use new CommonHTML output for MathJax (updated default MathJax URL,
3172 + Change default mathjax setup to use `TeX-AMS_CHTML` configuration.
3173 This is designed for cases where the input is always TeX and maximal
3174 conformity with TeX is desired. It seems to be smaller and load faster
3175 than what we used before. See #2858.
3176 + Load the full MathJax config to maximize loading speed (KolenCheung).
3178 * Bumped upper version bounds to allow use of latest packages
3179 and compilation with ghc 8.
3181 * Require texmath 0.8.6.2. Closes several texmath-related bugs (#2775,
3182 #2310, #2310, #2824). This fixes behavior of roots, e.g.
3183 `\sqrt[3]{x}`, and issues with sub/superscript positioning
3184 and matrix column alignment in docx.
3188 + Clarified documentation of `implicit_header_references` (#2904).
3189 + Improved documentation of `--columns` option.
3191 * Added appveyor setup, with artefacts (Jan Schulz).
3193 * stack.yaml versions: Use proper flags used for texmath, pandoc-citeproc.
3195 * LaTeX template: support for custom font families (vladipus).
3196 Needed for correct polyglossia operation with Cyrillic fonts and perhaps
3197 can find some other usages. Example usage in YAML metadata:
3200 - name: \cyrillicfont
3201 font: Liberation Serif
3202 - name: \cyrillicfonttt
3203 options: Scale=MatchLowercase
3206 * Create unsigned msi as build artifact in appveyor build.
3208 * On travis, test with ghc 8.0.1; drop testing for ghc 7.4.1.
3212 * LaTeX writer: Fixed position of label in figures (#2813).
3213 Previously the label wasn't in the right place, and `\ref`
3214 wouldn't work properly.
3215 * Added .tei test files to pandoc.cabal so they'll be included
3217 * Updated copyright dates.
3221 * Fixed serious regression in `htmlInBalanced`, which caused
3222 newlines to be omitted in some raw HTML blocks in Markdown
3227 * File scope is no longer used when there are no input files (i.e.,
3228 when input comes from stdin). Previously file scope was triggered
3229 when the `json` reader was specified and input came from `stdin`,
3230 and this caused no output to be produced. (Fix due to Jesse Rosenthal;
3231 thanks to Fedor Sheremetyev for calling the bug to our attention.)
3232 * Improved documentation of templates (#2797).
3236 * Added `--file-scope` option (Jesse Rosenthal).
3237 By default pandoc operates on multiple files by first concatenating
3238 them (around extra line breaks) and then processing the joined file. So
3239 it only parses a multi-file document at the document scope. This has the
3240 benefit that footnotes and links can be in different files, but for
3241 some purposes it is useful to parse the individual files first
3242 and then combine their outputs (e.g. when the files use footnotes
3243 or links with the same labels). The `--file-scope` option causes
3244 pandoc to parse the files first, and then combine the parsed output,
3245 instead of combining before parsing. `--file-scope` is selected
3246 automatically for binary input files (which cannot be concatenated)
3247 and for pandoc json.
3249 * Add TEI Writer (Chris Forster) and `tei` output format.
3251 * Added a general `ByteStringReader` with warnings, used by the docx
3252 reader (API change, Jesse Rosenthal).
3254 * Add `readDocxWithWarnings` (API change, Jesse Rosenthal).
3256 * Changed type of `Shared.uniqueIdent`'s argument from `[String]`
3257 to `Set String.` This avoids performance problems in documents with
3258 many identically named headers (API change, #2671).
3260 * Removed `tex_math_single_backslash` from `markdown_github` options
3263 * Make language extensions as well as full language names
3264 trigger syntax highlighting. For example, `py` will now work as
3265 well as `python` (jgm/highlighting-kate#83).
3267 * Added `institute` variable to latex, beamer templates (Fraser
3268 Tweedale, Josef Svenningsson).
3270 * Docx reader (Jesse Rosenthal):
3272 + Handle alternate content. Some word functions (especially graphics)
3273 give various choices for content so there can be backwards compatibility.
3274 + Don't turn numbered headers into lists.
3275 + Docx Reader: Add state to the parser, for warnings
3276 + Update feature checklist in source code.
3277 + Get rid of `Modifiable` typeclass.
3278 + Add tests for adjacent hyperlinks.
3279 + Add a "Link" modifier to `Reducible`. We want to make sure that
3280 links have their spaces removed, and are appropriately smushed
3285 + Fixed behavior of base tag (#2777).
3286 If the base path does not end with slash, the last component
3287 will be replaced. E.g. base = `http://example.com/foo`
3288 combines with `bar.html` to give `http://example.com/bar.html`.
3289 If the href begins with a slash, the whole path of the base
3290 is replaced. E.g. base = `http://example.com/foo/` combines
3291 with `/bar.html` to give `http://example.com/bar.html`.
3292 + Rewrote `htmlInBalanced`. This version avoids an exponential
3293 performance problem with `<script>` tags, and it should be faster
3295 + Properly handle an empty cell in a simple table (#2718).
3296 + Handle multiple `<meta>` tags with same name. Put them in a list
3297 in the metadata so they are all preserved, rather than (as before)
3298 throwing out all but one..
3302 + Improved pipe table parsing (#2765).
3303 + Allow `+` separators in pipe table cells. We already allowed
3304 them in the header, but not in the body rows, for some reason.
3305 This gives compatibility with org-mode tables.
3306 + Don't cross line boundary parsing pipe table row.
3307 Previously an Emph element could be parsed across the newline
3308 at the end of the pipe table row.
3309 + Use `htmlInBalanced` for `rawVerbatimBlock`, for better
3310 performance (#2730).
3311 + Fixed bug with smart quotes around tex math.
3315 + Handle interior `$` characters in math (#2743). For example,
3317 + `inlineCommand` now gobbles an empty `{}` after any command (#2687).
3318 This gives better results when people write e.g. `\TeX{}` in Markdown.
3319 + Properly handle LaTeX "math" environment as inline math (#2171).
3321 * Textile reader: Support `>`, `<`, `=`, `<>` text alignment attributes.
3324 * Org reader (Albert Krewinkel):
3326 + Prefix even empty figure names with "fig:" (#2643). The
3327 convention used by pandoc for figures is to mark them by prefixing
3328 the name with `fig:`. The org reader failed to do this if a figure
3330 + Refactor link-target processing (#2684).
3332 * ConTeXt writer: Fix whitespace at line beginning in line blocks (#2744).
3333 Thanks to @c-foster.
3335 * HTML writer: Don't include alignment attribute for default table columns.
3336 Previously these were given "left" alignment. Better to leave off
3337 alignment attributes altogether (#2694).
3339 * Markdown writer: Use hyphens for YAML metadata block bottom line, for
3340 better compatibility with other Markdown flavors (Henrik Tramberend).
3344 + Use image identifier to create a label and hypertarget for
3345 figures (Mauro Bieg).
3346 + Avoid double toprule in headerless table with caption (#2742).
3347 + Clean up options parser (Jesse Rosenthal).
3348 + Treat `memoir` template with `article` option as article, instead
3349 of treating all `memoir` templates as books.
3350 + Allow more flexible table alignment (Henrik Tramberend, #2665).
3351 New default is not to include `[c]` option (which is the default
3352 anyway if no positioning is specified). Now LaTeX emplates can
3353 control the overall table alignment in a document by setting the
3354 longtable length variables `LTleft` and `LTright`. For example,
3355 `\setlength\LTleft\parindent\setlength\LTright\fill`
3356 will create left-aligned tables that respect paragraph indentation.
3358 * Docx writer: Handle image alt text (#2754, Mauro Bieg).
3360 * Org writer - pass through RawInline with format "org".
3362 * DokuWiki writer: use `$$` for display math.
3364 * Custom writer: Pass attributes parameter to CaptionedImage (#2697).
3366 * Make protocol-relative URIs work again (#2737).
3368 * make_osx_package.sh: Use env variable for developer id certs.
3370 * Raise `tagsoup` lower bound to 0.13.7 to fix entity-related
3373 * Allow `zip-archive` 0.3.
3375 * Allow `aeson` 0.11.
3379 * Depend on deepseq rather than deepseq-generics (fpco/stackage#1096).
3381 * Fixed regression in latex smart quote parsing (#2645).
3382 In cases where a match was not found for a quote, everything
3383 from the open quote to the end of the paragraph was being dropped.
3387 * Fixed regression with `--latex-engine` (#2618). In 1.16 `--latex-engine`
3388 raises an error if a full path is given.
3390 * Org reader: Fix function dropping subtrees tagged `:noexport`
3391 (Albert Krewinkel, #2628):
3393 * Markdown reader: renormalize table column widths if they exceed 100%
3396 * Textile reader: don't allow block HTML tags in inline contexts.
3397 The reader previously did allow this, following redcloth,
3398 which happily parses
3400 Html blocks can be <div>inlined</div> as well.
3404 <p>Html blocks can be <div>inlined</div> as well.</p>
3406 This is invalid HTML. The above sample now produces;
3408 <p>Html blocks can be</p>
3414 * Improved default template lookup for custom lua scripts (#2625).
3415 Previously, if you tried to do `pandoc -s -t /path/to/lua/script.lua`,
3416 pandoc would look for the template in
3417 `~/.pandoc/templates/default./path/to/lua/script.lua`.
3418 With this change it will look in the more reasonable
3419 `~/.pandoc/templates/default.script.lua`. This makes it possible to
3420 store default templates for custom writers.
3422 * RST, Markdown writers: Fixed rendering of grid tables with blank rows
3425 * LaTeX writer: restore old treatment of Span (#2624). A Span is
3426 now rendered with surrounding `{}`, as it was before 1.16.
3428 * Entity handling fixes: improved handling of entities like
3429 `⟨` that require a trailing semicolon. Allow uppercase
3430 `x` in numerical hexidecimal character references, working
3431 around a tagsoup bug.
3433 * `stack.yaml` - use lts-4.0, but with older aeson to avoid excessive
3434 memory use on compile. With aeson 0.10 we were getting an out of
3435 memory error on a 2GB Ubuntu 64-bit VM.
3437 * Improved deb package creation script. Made `DPKGVER` work.
3438 Renamed `COMMIT` to `TREE`. You should now be able to do
3439 `TREE=1.16.0.1 DPKGVER=2 make deb`.
3444 * Added `Attr` field to `Link` and `Image` (Mauro Bieg, #261, API change).
3446 + Added syntax for link and image attributes to pandoc's Markdown.
3447 + Updated readers and writers to use link and image attributes
3449 + Support image attributes in Docx, Textile, RST readers.
3451 * Renamed link attribute extensions. The old `link_attributes` is
3452 now `mmd_link_attributes`, and `link_attributes` now enables the
3453 new pandoc-style link and image attributes (API change).
3454 Note: this change could break some existing workflows.
3456 * Implemented `SoftBreak` and new `--wrap` option (#1701, API change).
3457 Added threefold wrapping option.
3459 + Command line option: deprecated `--no-wrap`, added
3460 `--wrap=[auto|none|preserve]`
3461 + Added `WrapOption`, exported from `Text.Pandoc.Options`
3462 + Changed type of `writerWrapText` in `WriterOptions` from
3463 `Bool` to `WrapOption`.
3464 + Modified `Text.Pandoc.Shared` functions to allow `SoftBreak`.
3465 + Supported `SoftBreak` in readers and writers.
3467 * Text.Pandoc.Options: Added `writerDpi` to `WriterOptions` (API
3468 change, Mauro Bieg).
3470 * Added `--dpi` command-line option (Mauro Bieg).
3472 * Rationalized behavior of `--no-tex-ligatures` and `--smart` (#2541).
3473 This change makes `--no-tex-ligatures` affect the LaTeX reader
3474 as well as the LaTeX and ConTeXt writers. If it is used,
3475 the LaTeX reader will parse characters `` ` ``, `'`, and `-`
3476 literally, rather than parsing ligatures for quotation marks
3477 and dashes. And the LaTeX writer will print unicode quotation
3478 mark and dash characters literally, rather than converting
3479 them to the standard ASCII ligatures. Note that `--smart` has
3480 no effect on the LaTeX reader. `--smart` is still the default
3481 for all input formats when LaTeX or ConTeXt is the output format,
3482 *unless* `--no-tex-ligatures` is used.
3484 Some examples to illustrate the logic:
3487 % echo "'hi'" | pandoc -t latex
3489 % echo "'hi'" | pandoc -t latex --no-tex-ligatures
3491 % echo "'hi'" | pandoc -t latex --no-tex-ligatures --smart
3493 % echo "'hi'" | pandoc -f latex --no-tex-ligatures
3495 % echo "'hi'" | pandoc -f latex
3499 * Removed deprecated options `--offline` and `--html5`.
3501 * Fixed language code for Czech (`cs` not `cz`) (#2597).
3503 * Implemented `east_asian_line_breaks` extension (#2586).
3504 In `Text.Pandoc.Options`, added `Ext_east_asian_line_breaks` constructor
3505 to `Extension` (API change). This extension is like
3506 `ignore_line_breaks`, but smarter -- it only ignores line breaks
3507 between two East Asian wide characters. This makes it better suited
3508 for writing with a mix of East Asian and non-East Asian scripts.
3510 * Added support for PDF creation via `wkhtmltopdf`.
3511 To use this: `pandoc -t html5 -o result.pdf` (and add `--mathjax`
3512 if you have math.) Margins can be set using the variables
3513 `margin-top`, `margin-bottom`, `margin-left`, `margin-right`.
3514 Other styling can be done through CSS.
3516 * Fixed cite key parsing regression (jgm/pandoc-citeproc#201).
3517 We were capturing final colons as in `[@foo: bar]`; the citation id
3518 was being parsed as `@foo:`.
3522 + Fixed image syntax for local files (#2589).
3523 + Changed type of `writeICML` (Mauro Bieg).
3524 API change: It is now `WriterOptions -> Pandoc -> IO String`.
3525 Also handle new image attributes.
3526 + Intersperse line breaks instead of appending them to
3527 every `ParagraphStyleRange` (Mauro Bieg, #2501).
3528 + Add `Cite` style to citations (Mauro Bieg).
3529 + Added figure handling (#2590, Mauro Bieg).
3530 + Better handling of math. Instead of just printing the raw tex,
3531 we now try to fake it with unicode characters.
3533 * HTML writer: Include `example` class for example lists (#2524).
3535 * ODT/OpenDocument writer: improved image attributes (Mauro Bieg).
3537 + Support for percentage widths/heights
3538 + Use `Attr` instead of title to get dimensions from ODT walker
3539 to `writeOpenDocument`.
3543 + Support anchors in spans and divs with id elements
3544 (jgm/pandoc-citeproc#143).
3545 + Fixed code blocks (#1861).
3547 * Haddock writer: omit formatting inside links, which isn't supported
3550 * MediaWiki writer: Fixed spacing issues in table cells.
3552 + Start cell on new line unless it's a single Para or Plain
3554 + For single Para or Plain, insert a space after the `|` to
3555 avoid problems when the text begins with a character like
3558 * Beamer writer: mark frame as fragile when it contains verbatim (#1613).
3562 + Add support for GAP highlighting using listings (Raniere Silva).
3563 + Consider `header-includes` content as well as templates
3564 when determining whether to use csquotes (Andreas Lööw).
3565 + Create defaults for geometry using `margin-left` etc.
3566 If `geometry` has no value, but `margin-left`, `margin-right`,
3567 `margin-top`, and/or `-margin-bottom` are given, a default value
3568 for `geometry` is created from these. Note that these variables
3569 already affect PDF production via HTML5 with `wkhtmltopdf`.
3571 * ConTeXt writer: set default layout based on `margin-left`, etc.
3572 This sets up `\setuplayout` based on the variables `margin-left`,
3573 `margin-right`, `margin-bottom`, and `margin-top`, if no layout
3576 * Docx writer: better handling of PDF images. Previously we tried
3577 to get the image size from the image even if an explicit size was
3578 specified. Since we still can't get image size for PDFs, this made
3579 it impossible to use PDF images in docx. Now we don't try to get
3580 the image size when a size is already explicitly specified.
3582 * Markdown writer: use raw HTML for link/image attributes when
3583 the `link_attributes` extension is unset and `raw_html` is set (#2554).
3585 * MediaWiki reader: interpret markup inside `<tt>`, `<code>` (#2607).
3589 + Improved smart quote parsing (#2555). This fixes redering of
3591 + Use curly quotes for unmatched ` (#2555).
3592 + Allow blank space between braced arguments of commands (#2592).
3596 + Improved pipe table relative widths. Previously pipe table
3597 columns got relative widths (based on the header underscore lines)
3598 when the source of one of the rows was greater in width than the
3599 column width. This gave bad results in some cases where much of
3600 the width of the row was due to nonprinting material (e.g. link
3601 URLs). Now pandoc only looks at printable width (the width of a
3602 plain string version of the source), which should give better results.
3603 Thanks to John Muccigrosso for bringing up the issue.
3604 + Fixed parsing bug with macros. Previously macro definitions in
3605 indented code blocks were being parsed as macro definitions, not code.
3607 * Textile reader: skip over attribute in image source (#2515).
3608 We don't have a place yet for styles or sizes on images, but
3609 we can skip the attributes rather than incorrectly taking them
3610 to be part of the filename.
3612 * Docx reader: Handle dummy list items (Jesse Rosenthal).
3613 These come up when people create a list item and then delete the
3614 bullet. It doesn't refer to any real list item, and we used to ignore
3617 * CommonMark reader/writer rewritten to use latest `cmark`.
3619 * Fixed Emoji character definitions (#2523). There were many bugs in the
3622 * `Text.Pandoc.CSS`:
3624 + Added `pickStylesToKVs` function to extract multiple properties at
3625 once (API change, Mauro Bieg).
3626 + Parse CSS that doesn't contain the optional semicolon (Mauro Bieg).
3628 * `trypandoc`: sort drop-down lists.
3632 + Made `\euro` conditional on presence of character.
3633 for xelatex and lualatex, as it is for pdflatex (Andrew Dunning).
3634 + Moved `header-includes` before setting of title (Thomas Hodgson),
3635 to match the LaTeX template (jgm/pandoc-templates#168).
3636 + Added `section-titles` variable (defaults to true)
3637 to enable/suppress section title pages in beamer
3638 slide shows (Thomas Hodgson).
3639 + Moved beamer themes after fonts, so that themes can
3640 change fonts. (Previously the fonts set were being
3641 clobbered by lmodern.sty.) (Thomas Hodgson).
3643 * Beamer/LaTeX template changes (Thomas Hodgson):
3644 + Added `thanks` variable
3645 + Use `parskip.sty` when `indent` isn't set (fall back to using
3646 `setlength` as before if `parskip.sty` isn't available).
3647 + Use `biblio-style` with biblatex.
3648 + Added `biblatexoptions` variable.
3650 * LaTeX template changes:
3652 + Added `paper` after `$papersize$` variable in latex template.
3653 Thus you can say `papersize: a4` and the latex will contain
3654 `a4paper`. This change may break some existing workflows; if
3655 you currently specify `a4paper`, you'll get `a4paperpaper` which
3656 is meaningless. However, the change seems worth it, as it will
3657 make the `papersize` variable work uniformly across ConTeXt, LaTeX,
3658 and html->pdf via wkhtmltopdf.
3659 + Only pass options to color package if `colorlinks` is set
3661 + Make definition of `\euro` conditional in xelatex/lualatex,
3662 as it is already for pdflatex (Andrew Dunning).
3663 + Removed setting of `subject` in PDF metadata.
3664 This used to be set to the subtitle, but really the subtitle
3665 need not give the subject. Also, `subtitle` can contain formatting,
3666 so we'd need, at least, a plain text version for this.
3667 + Moved `header-includes` before setting of `\title`, `\author`,
3668 etc. This allows these macros to be redefined.
3669 + Use `\subtitle` command for `subtitle`, instead of tacking it
3670 on to the title as before. We give a no-op fallback definition if it
3671 is not defined. This change should produce much better results
3672 in classes that support `\subtitle`. With the default article
3673 class, which does not define `\subtitle`, subtitles will no
3674 longer be printed unless the user defines `\subtitle` and
3675 redefines `\maketitle`.
3676 + Moved redefinitions of `\paragraph` and `\subparagraph` to
3677 before header-includes.
3681 + Use `simplefonts` for font loading (Paolo Rodríguez). This is
3682 needed for things to work on ConTeXt stable from TeXLive 2015.
3683 + Revert use of `\setuphead` in title block (Andrew Dunning,
3686 * Update LaTeX/ConTeXt link colour usage (Andrew Dunning).
3688 * Fixed man template so disabling hyphenation actually works.
3689 The command needs to come after .TH.
3691 * Added 'navigation' variable to beamer template (#2543).
3692 Valid values are `empty` (the default), `horizontal`, `vertical`,
3693 and `frame`. Note that this changes the default behavior from
3694 `horizontal` to `empty`. Closes #2543.
3696 * Added `toc` to HTML slide format templates (Andrew Dunning),
3697 so that `--toc` creates a contents slide.
3699 * Added `stack.full.yaml` to build `pandoc-citeproc` as well.
3701 * Allow pipe tables with no body rows (#2556).
3702 Previously this raised a runtime error.
3704 * Shared: Improved `fetchItem` so that `C:/Blah/Blah.jpg` isn't treated
3705 as URL. The Haskell URI parsing routines will accept "C:" as a
3706 scheme, so we rule that out manually. This helps with
3707 `--self-contained` and absolute Windows paths.
3709 * Define a `meta-json` variable for all writers (#2019). This contains
3710 a JSON version of all the metadata, in the format selected for the
3711 writer. So, for example, to get just the YAML metadata, you can run
3712 pandoc with the following custom template: `$meta-json$`. The intent
3713 is to make it easier for static site generators and other tools to get
3716 * Document limitations of --self-contained (#2553).
3718 * Improved Citations section of README (#2551). Added information
3719 about `link-citations` and a link to the pandoc-citeproc man page.
3721 * `ImageSize`: use `safeRead` instead of `readMaybe`, which isn't
3724 * Allow .adoc file extension for AsciiDoc (Andrew Dunning).
3726 * Improved implicit pandoc-citeproc inclusion.
3727 The filter pandoc-citeproc is automatically used when
3728 `--bibliography` is specified on the command line, unless
3729 `--natbib` or `--biblatex` is used. However, previously this
3730 only worked if `--bibliography` was spelled out in full, and not
3731 if `--biblio` was used.
3733 * reveal.js: Interpret pauses correctly for all headers (#2530).
3734 Previously, when using headers below the slide level, pauses are left
3735 uninterpreted into pauses. In my opinion, unexpected behavior but
3736 intentional looking at the code.
3738 * Remove redundant `center` variable for reveal.js (Andrew Dunning).
3740 * Parsing: Add `extractIdClass`, modified type of `KeyTable` (Mauro
3743 * ImageSize: Added functions for converting between image dimensions
3746 * Use lts-3.18 in stack.yaml. This avoids Windows build
3747 issues with the HTTP library.
3749 * Bump version bounds for dependencies.
3753 * Added two missing test files, and `stack.yaml`, to
3754 `extra-source-files` so they're included in the source tarball.
3756 * reveal.js template: Fixed parallaxBackground options.
3757 `parallaxBackgroundHorizontal` and `parallaxBackgroundVertical`
3758 need integer values, not strings. (Vaughn Iverson)
3762 * `pandoc my.md -t context -o my.pdf` will now create a PDF using
3763 ConTeXt rather than LaTeX (#2463).
3765 * Fixed omitted `url(...)` in CSS data-uri with `--self-contained` (#2489).
3767 * Added `emoji` Markdown extension, enabled by default in `markdown_github`
3768 (#2523). Added `Ext_emoji` to `Extension` in `Text.Pandoc.Options`
3771 * `Text.Pandoc.Readers.HTML.parseTags`: Fixed over-eager raw HTML inline
3772 parsing (#2469). Tightened up the inline HTML parser so it disallows
3775 * Derive `Generic` instances for the types in `Text.Pandoc.Options`.
3779 + Fix paragraph/list interaction (Albert Krewinkel, #2464).
3780 Paragraphs can be followed by lists, even if there is no blank line
3781 between the two blocks. However, this should only be true if the
3782 paragraph is not within a list, were the preceding block should be
3783 parsed as a plain instead of paragraph (to allow for compact lists).
3784 Thanks to @rgaiacs for bringing this up.
3785 + Allow toggling header args (Albert Krewinkel, #2269).
3786 Org-mode allows to skip the argument of a code block header argument if
3787 it's toggling a value. Argument-less headers are now recognized,
3788 avoiding weird parsing errors.
3789 + Fix markup parsing in headers (Albert Krewinkel, #2504).
3790 Markup as the very first item in a header wasn't recognized. This was
3791 caused by an incorrect parser state: positions at which inline markup
3792 can start need to be marked explicitly by changing the parser state.
3793 This wasn't done for headers. The proper function to update the state
3794 is now called at the beginning of the header parser, fixing this issue.
3795 + Fix emphasis rules for smart parsing (Albert Krewinkel, #2513).
3796 Smart quotes, ellipses, and dashes should behave like normal quotes,
3797 single dashes, and dots with respect to text markup parsing.
3798 + Require whitespace around definition list markers (#2518).
3799 This rule was not checked before, resulting in bugs with footnotes
3800 and some link types.
3804 + Pipe tables with long lines now get relative cell widths (#2471).
3805 If a pipe table contains a line longer than the column width (as set by
3806 `--columns` or 80 by default), relative widths are computed based on the
3807 widths of the separator lines relative to the column width. This should
3808 solve persistent problems with long pipe tables in LaTeX/PDF output, and
3809 give more flexibility for determining relative column widths in other
3810 formats, too. For narrower pipe tables, column widths of 0 are used,
3811 telling pandoc not to specify widths explicitly in output formats that
3813 + Improved parser for `mmd_title_block`. We now allow blank metadata
3814 fields. These were explicitly disallowed before.
3815 + Citation keys can now contain `://`, so URLs and DOIs can be used
3816 as citation keys (jgm/pandoc-citeproc#166).
3818 * Beamer template: fix incompatibility of section slides with natbib.
3819 Natbib (and presumably biblatex) bibliography commands create
3820 their own section. Since these are in frame environments,
3821 we have an incompatibility with the `\AtBeginSection` macro
3822 which creates a special frame when a new section occurs.
3823 (We can't have a frame inside another frame.) This change disables
3824 `\AtBeginSection` inside bibliography slides. Thinks to Yihui Xie for
3825 bringing the problem to my attention. This supersedes #145. See
3828 * Textile reader: don't do smart punctuation unless explicitly asked
3829 (#2480). Note that although smart punctuation is part of the textile
3830 spec, it's not always wanted when converting from textile
3831 to, say, Markdown. So it seems better to make this an option.
3833 * LaTeX reader: Handle `comment` environment (Arata Mizuki).
3834 The `comment` environment is handled in a similar way to the
3835 `verbatim` environment, except that its content is discarded.
3837 * Docx reader: Follow relationships correctly in foot/endnotes (#2258,
3838 Jesse Rosenthal). This fixes a problem with links in notes.
3840 * LaTeX and ConTeXt writers: support `lang` attribute on divs and spans
3841 (Mauro Bieg). For LaTeX, also collect `lang` and `dir` attributes on
3842 spans and divs to set the `lang`, `otherlangs` and `dir` variables if
3843 they aren’t set already. See #895.
3847 + Use proper command for `\textarabic` (Mauro Bieg).
3848 + Added `de-CH-1901`, fixed `el-polyton` in `toPloyglossia` (Nick Bart).
3849 + Use `\hypertarget` and `\hyperlink` for links. This works correctly
3850 to link to Div or Span elements. We now don't bother defining `\label`
3851 for Div or Span elements. Closes jgm/pandoc-citeproc#174.
3852 + Avoid footnotes in list of figures (#1506).
3853 + Properly handle footnotes in captions (#1506).
3854 + Add `\protect` to `\hyperlink` (#2490). Thanks to Hadrien Mary.
3855 + Set `colorlinks` if `linkcolor`, `urlcolor`, `citecolor`, or
3856 `toccolor` is set (#2508).
3858 * Textile writer: support start number in ordered lists (#2465).
3860 * OpenDocument writer: Allow customization of opendocument
3861 automatic styles. Automatic styles can now be inserted in the
3862 template, which now provides the enclosing `<office:automatic-styles>`
3865 * Docx writer: insert space between footnote reference and note (#2527).
3866 This matches Word's default behavior.
3868 * EPUB writer: don't download linked media when `data-external` attribute
3869 set (#2473). By default pandoc downloads all linked media and includes it
3870 in the EPUB container. This can be disabled by setting `data-external` on
3871 the tags linking to media that should not be downloaded. Example:
3873 <audio controls="1">
3874 <source src="http://example.com/music/toccata.mp3"
3875 data-external="1" type="audio/mpeg">
3879 * HTML writer: use width on whole table if col widths sum to < 100%.
3880 Otherwise some browsers display the table with the columns
3881 separated far apart.
3883 * AsciiDoc template: Fix `author` and `date`; add `keywords`,
3884 `abstract` (Andrew Dunning).
3886 * HTML-based templates (Andrew Dunning):
3888 + Use en dash instead of hyphen between title prefix and title.
3889 + Add `keywords` to metadata.
3890 + Add `lang`, `dir`, `quotes` where missing.
3891 + Always make author and date display conditional.
3892 + Updated dzslides template from source.
3894 * Man template: make "generated by" comment conditional.
3896 * LaTeX, Beamer templates:
3898 + Add `babel-otherlangs` for language divs/spans; `babel-newcommands`,
3899 filled by commands that make babel understand the polyglossia-style
3900 language directives (Mauro Bieg, #137).
3901 + Improved formatting of conditionals; `$for$` is always provided to allow
3902 multiple options (Andrew Dunning, #141).
3903 + Use `Ligatures=TeX` rather than `Mapping=tex-text` with `fontspec`
3904 to improve support for LuaTeX (Andrew Dunning, #135).
3905 + Revise `hyperref` usage (Andrew Dunning, #139, #141):
3906 - use same options for all LaTeX engines;
3907 - add `subtitle` and `keywords` to PDF metadata;
3908 - do not override `hyperref` link coloring without user input, effectively making
3909 the `hidelinks` option the default (removed as a separate variable);
3910 - link colors can be enabled (using a slightly darker version of the old
3911 defaults) using a new `colorlinks` variable, automatically used by
3912 the LaTeX writer when custom colors are specified;
3913 - `pdfborder={0 0 0}` is automatically set by `hyperref` with
3914 `colorlinks`, and is only applied if `colorlinks` is disabled.
3916 * ConTeXt template (Andrew Dunning):
3918 + New variables for controlling styles: `linkstyle`, `linkcolor`,
3919 `linkcontrastcolor`, `layout`, `pagenumbering`, `whitespace`, `indenting`,
3920 `interlinespace`, `headertext`, `footertext`, `mainfont`, `sansfont`,
3921 `monofont`, `mathfont`, `fontsize`.
3922 + Default template no longer supports MkII.
3923 + Improve writing of title block (suppressing numbering of first page).
3924 + Add `title` `subtitle`, `author`, `date`, `keywords` to PDF metadata.
3925 + Support `subtitle`, `abstract`.
3926 + Support list of figures (`lof`), list of tables (`lot`).
3927 + Disable link styling by default.
3928 + Define styles for all section types.
3930 + Improved formatting of conditionals.
3932 * Beamer template: added code to prevent slide breaks inside paragraphs
3933 (#2422, thanks to Nick Bart). This will matter, in practice, only when
3934 `allowframebreaks` is used. It is especially helpful for bibliography
3937 * OpenDocument template: Add `<office:automatic-styles>` tag around
3938 automatic styles. The writer now longer provides this (see #2520).
3940 * Restored Text.Pandoc.Compat.Monoid.
3942 * Do not export (<>) from custom Prelude. The Prelude now matches
3943 base 4.8 Prelude's API.
3945 * Don't use custom prelude with ghc 7.10. Use the custom prelude
3946 only for earlier versions. This change makes `stack ghci` and
3947 `cabal repl` work (#2503), at least with ghc 7.10.
3949 * Changed § to % in operators from Odt.Arrows.Utils (#2457).
3950 This prevents problems building haddocks with "C" locale.
3952 * Change default for old-locale flag to False.
3954 * Use stack in deb, osx, and Windows package generators.
3956 * Added Vagrantfile for building deb in vm.
3957 This should help in automating binary package creation. 'make package'
3958 will make the package. 'make package COMMIT=blah' will make the package
3963 + Consistent capitalization for pandoc and Markdown.
3964 + Fixed `auto_identifiers` examples (Benoit Schweblin).
3965 + Improved documentation of template variables (Andrew Dunning).
3969 * `Text.Pandoc.Data`: store paths in dataFiles using posix separators.
3970 This way we have uniform separators, whether on Windows or Linux.
3971 This should solve a problem where on some Windows versions
3972 the data files weren't being found (#2459).
3976 * `pandocVersion` is now defined in `Text.Pandoc.Shared`
3977 and reexported from `Text.Pandoc` (Alex Vong). This allows
3978 writers to access it. (Alex Vong) (API change)
3980 * For `markdown_mmd`, add: `implicit_figures`, `superscripts`,
3981 `subscripts` (#2401).
3983 * Added `odt` as input format (Martin Linnemann). Added new module
3984 `Text.Pandoc.Reader.ODT` (API change). Fully implemented features:
3985 Paragraphs, Headers, Basic styling, Unordered lists, Ordered lists,
3986 External Links, Internal Links, Footnotes, Endnotes, Blockquotes.
3987 Partly implemented features: Citations, Tables.
3991 + Add basic tests for each header style (Ophir Lifshitz).
3992 + Add implicit header ref tests for headers with spaces (Ophir Lifshitz).
3993 + Skip spaces in headers (Ophir Lifshitz).
3994 + Handle 'id' and 'class' in parsing key/value attributes (#2396).
3995 `# Header {id="myid" class="foo bar"}`
3996 is now equivalent to `# Header {#myid .foo .bar}`.
3997 + Use '=' instead of '#' for atx-style headers in markdown+lhs.
3998 (Kristof Bastiaensen)
3999 + Pipe tables: allow indented columns. Previously the left-hand column
4000 could not start with 4 or more spaces indent. This was inconvenient
4001 for right-aligned left columns. Note that the first (header column)
4002 must still have 3 or fewer spaces indentation, or the table will be
4003 treated as an indented code block.
4004 + Fix regression: allow HTML comments containing `--`.
4005 Technically this isn't allowed in an HTML comment, but
4006 we've always allowed it, and so do most other implementations.
4007 It is handy if e.g. you want to put command line arguments
4012 + Don't eat excess whitespace after macros with only optional
4014 + Support longtable (#2411).
4015 + Implement `\Cite` (#2335).
4016 + Support abstract environment. The abstract populates an
4017 `abstract` metadata field.
4018 + Properly handle booktabs lines. Lines aren't part of the
4019 pandoc table model, so we just ignore them (#2307).
4023 + Handle type attribute on ol, e.g. `<ol type="i">` (#2313).
4024 + Updated for new automatic header attributes.
4025 + Add auto identifiers if not present on headers. This makes
4026 TOC linking work properly.
4027 + Detect `font-variant` with `pickStyleAttrProps` (Ophir Lifshitz).
4028 + Test `<ol>` type, class, and inline list-style(-type) CSS
4030 + Better handling of "section" elements (#2438). Previously
4031 `<section>` tags were just parsed as raw HTML blocks. With
4032 this change, section elements are parsed as Div elements with
4033 the class "section".
4035 * MediaWiki reader: handle unquoted table attributes (#2355).
4039 + Added proper support for DocBook `xref` elements (Frerich Raabe).
4040 Added `dbContent` field to reader state, so we can lookup
4042 + Handle `informalexample` (#2319).
4046 + Create special punctuation test (Ophir Lifshitz).
4047 + Parse soft, no-break hyphen elements (Ophir Lifshitz).
4048 + Updated headers test (Ophir Lifshitz). Replaced `styles.xml`
4049 in `headers.docx` with pandoc's current `styles.xml`, which
4050 contains styles for Heading 1 through 6. Added Heading 4
4051 through 7 to the test document. Note that Heading 7 is not
4052 parsed as a Heading because there is no Heading 7 style.
4054 * RST reader: better handling of indirect roles.
4055 Previously the parser failed on this kind of case
4057 .. role:: indirect(code)
4059 .. role:: py(indirect)
4064 Now it correctly recognizes `:py:` as a code role.
4068 + Add auto identifiers if not present on headers
4069 (#2354, Juliusz Gonera).
4070 + Allow verse blocks to contain empty lines (#2402,
4073 * EPUB reader: stop mangling external URLs (#2284).
4077 + Don't insert `\ ` when complex expression in matched pairs.
4078 E.g. `` [:sup:`3`] `` is okay; you don't need `` [:sup:`3`\ ] ``.
4079 + Ensure that `\ ` is inserted when needed before Cite and Span
4080 elements that begin with a "complex" element (jgm/pandoc-citeproc#157).
4081 + Normalize headers only in "standalone" mode (#2394).
4083 * Haddock writer: escape `*` and `^` (G. Bataille).
4087 + In TOC, add links to headers (#829).
4088 + Use unicode super/subscripts for digits in plain output
4089 (when the `superscripts` and `subscripts` extensions are
4094 + Moved invalid character stripping to `formattedString`.
4095 This avoids an inefficient generic traversal (#2356).
4096 + Use user data directory for `reference.docx` archive.
4097 This allows the test suite to work without installing pandoc first.
4098 It also brings the docx writer in line with the odt writer.
4099 + Tests: docx writer tests now use `../data` for data directory.
4100 This allows tests to be run without installing first.
4101 + Tests: Use real jpg (not empty) for docx tests to avoid warning.
4105 + Fixed detection of 'chapters' from template.
4106 If a documentclass isn't specified in metadata, but the
4107 template has a hardwired bookish documentclass, act as if
4108 `--chapters` was used. This was the default in earlier
4109 versions, but it has been broken for a little while.
4110 + Correctly recognize book documentclass in metadata (#2395).
4111 + Set language-related variables automatically, depending
4112 on the value of the `lang` field, which is now always
4113 assumed to be in BCP47 format (Mauro Bieg, #1614, #2437).
4114 + Add `\protect` to `\hyperdef` in inline context. This way we
4115 don't get an error when this is used as a moveable argument (#2136).
4116 + Support all frame attributes in Beamer.
4117 + Percent-encode more special characters in URLs (#1640, #2377).
4118 The special characters are '<','>','|','"','{','}','[',']','^', '`'.
4122 + Update KaTeX JS and CSS versions (Emily Eisenberg).
4123 + For dzslides, add `role="note"` for speaker notes (#1693).
4124 + Percent-encode more special characters in URLs (#1640, #2377).
4125 The special characters are '<','>','|','"','{','}','[',']','^', '`'.
4126 + Render Div with class `section` as `<section>` in HTML5.
4130 + In TOC, replace literal `<br/>` with space (#2105).
4131 + With `--webtex`, include image file rather than `data:` URI (#2363).
4133 * Native writer: format Div properly, with blocks separated.
4135 * Support bidirectional text output with XeLaTeX, ConTeXt and HTML
4136 (#2191, Mauro Bieg).
4140 + Add missing Header 6 style (steel blue) (Ophir Lifshitz).
4141 + Correct `outlineLvl` for Header styles (Ophir Lifshitz).
4145 + Beamer: Add `innertheme`, `outertheme` variables
4146 (Guilhem Bonnefille, #121). Add space after colon in figure caption.
4147 Integrate recent font and language updates from LaTeX template;
4148 allow use of `mainfont` variable for changing the slide text
4149 in XeTeX and LuaTeX (Andrew Dunning, #131).
4150 + LaTeX: Add `mainfontoptions`, `sansfontoptions`,
4151 `monofontoptions`, `mathfontoptions`, `fontfamilyoptions`
4152 (Andrew Dunning, #122). Support handling of bidirectional
4153 text (Mauro Bieg, #120). Improve reliability of superscripts/subscripts
4154 under XeTeX and prevent letters and numbers from appearing on a
4155 different baseline by removing use of the `realscripts` package
4156 (via `xltxtra`). To restore use of OpenType characters for these
4157 features under XeTeX or LuaTeX, add `\usepackage{realscripts}` to
4158 `header-includes` (Andrew Dunning, #130). Remove redundant
4159 reference to `xunicode` (Andrew Dunning, #130). Add `fontenc`,
4160 `indent`, `subparagraph` variables (Andrew Dunning).
4161 Allow use of `hidelinks` variable for `hyperref` package (Hugo Roy,
4162 #113). Prevent package clash with `tufte-latex` and other classes that
4163 include `hyperref` or `color` (Xavier Olive, #115).
4164 + ConTeXt: Support handling of bidirectional text (Mauro Bieg, #120).
4165 + LaTeX and ConTeXt: Use more specific language variables.
4166 Instead of directly using `lang`, we now use `babel-lang` and
4167 `polyglossia-lang` and `context-lang`. These variables are set by
4168 the writers to the necessary values, based on the `lang` variable
4169 (which now always takes a value in BCP47 format). (Mauro Bieg, #114,
4171 + HTML: Support handling of bidirectional text (Mauro Bieg, #120).
4172 Move HTML5 shiv after CSS and fix URL (Andrew Dunning).
4173 Add dir attribute in html5 (Andrew Dunning).
4174 + reveal.js: Add `controls`, `progress` variables (Grégoire Pineau, #127).
4175 Add `width`, `height` variables (Andrew Dunning). Update template
4176 from 3.1 source (Andrew Dunning). All configuration options are now
4177 available as variables, but are only be included if set (reveal.js
4178 uses defaults otherwise).
4179 + man: Added comment stating that the page is autogenerated by pandoc,
4180 giving version. Added `adjusting` and `hyphenate` variables
4183 * epub.css: added selectors for nested emphasis (Pablo Rodriguez).
4185 * MediaBag: ensure that `/` is always used as path separator.
4187 * `sample.lua`: define `CaptionedImage`, add newline at end (#2393).
4189 * Added `--bash-completion` option. This generates a bash completion
4190 script. To use: `eval "$(pandoc --bash-completion)"`.
4192 * Text.Pandoc.Error: Define Typeable and Exception instances
4193 for PandocError (#2386).
4195 * Text.Pandoc.Parsing: `toKey`: strip off outer brackets.
4196 This makes keys with extra space at the beginning and end
4203 will now be a link to bar (it wasn't before).
4205 * Text.Pandoc: disable `auto_identifiers` for epub.
4206 The epub writer inserts its own auto identifiers;
4207 this is more complex due to splitting into "chapter" files.
4209 * Renamed Text.Pandoc.Compat.Locale -> Text.Pandoc.Compat.Time.
4210 It now reexports Data.Time.
4212 * Use custom Prelude to avoid compiler warnings.
4214 + The (non-exported) prelude is in prelude/Prelude.hs.
4215 + It exports Monoid and Applicative, like base 4.8 prelude,
4216 but works with older base versions.
4217 + It exports (<>) for mappend.
4218 + It hides 'catch' on older base versions.
4220 * Added a `stack.ymal` and stack install instructions to INSTALL.
4222 * Clarified what is "out of scope" in README and CONTRIBUTING.md.
4224 * Added note to CONTRIBUTING.md about ghc versions and travis.
4226 * Clarify docs on block quotes. The space after `>` is optional (#2346).
4228 * Removed obsolete reference to default.csl (#2372).
4230 * List all styles in manual for `--reference-docx` (Chris Black)
4232 * Don't capitalize header links in man page.
4234 * Added section on repl to CONTRIBUTING.md.
4236 * README: Added space after backslash in image example (#2329).
4238 * Document details of citation locator terms (Nick Bart).
4240 * Fixed some internal links in README (#2309).
4242 * Improve CSL documentation, variables documentations,
4243 links, and cross-references in README. (Andrew Dunning)
4245 * Fix build failure with `--flags=-https` (Sergei Trofimovich).
4247 * Use `newManager` instead of `withManager` in recent `http-client`.
4248 This avoids a deprecation warning.
4250 * Allow building with latest versions of http-types,
4251 HUnit, criterion, syb, aeson.
4253 * Updated benchmark program for new criterion API.
4255 * Setup.hs: rewrite so as not to use process, directory, filepath.
4256 Using anything outside base is dangerous, since older
4257 versions of ghc may link against two different versions.
4259 * Added appveyor (Windows continuous integration) builds.
4261 * New `.travis.yml`. Autgenerated using `make_travis_yml.hs`.
4262 This script has been modified in a few ways, e.g. to add `GHCOPTS`.
4263 `make .travis.yml` regenerates it based on the tested-with
4264 field of the cabal file.
4268 * `--self-contained`: Fixed overaggressive CSS minimization (#2301, 2286).
4269 Previously `--self-contained` wiped out all spaces in CSS,
4270 including semantically significant spaces. This was a regression
4273 * Markdown reader: don't allow bare URI links or autolinks in link
4274 label (#2300). Added test cases.
4276 * `Text.Pandoc.Parsing`, `uri`: Improved bare autolink detection (#2299).
4277 Previously we disallowed `-` at the end of an autolink,
4278 and disallowed the combination `=-`. This commit liberalizes the
4279 rules for allowing punctuation in a bare URI, and adds test cases.
4280 One potential drawback is that you can no longer put a bare
4281 URI in em dashes like this:
4282 `this uri---http://example.com---is an example.`
4283 But in this respect we now match github's treatment of bare URIs.
4285 * HTML writer: support speaker notes in dzslides.
4286 With this change `<div class="notes">` and also `<div class="notes"
4287 role="note">` will be output if `-t dzslides` is used. So we can
4288 have speaker notes in dzslides too. Thanks to maybegeek.
4290 * Updated dzslides template.
4292 * Improved documentation of options to print system default files (#2298).
4293 `--print-default-data-file` and `--print-default-template`.
4295 * DokuWiki writer: use `$..$` for Math instead of `<math>..</math>`
4296 (Tiziano Müller). MathJax seems currently to be the only maintained
4297 math rendering extension for DokuWiki.
4299 * `Text.Pandoc.Shared`: Changed `hierarchicalize` so it treats references
4300 div as top-level header (#2294). This fixes a bug with `--section-divs`,
4301 where the final references section added by pandoc-citeproc, enclosed in
4302 its own div, got nested in the div for the section previous to it.
4304 * Allow vector 0.11.
4306 * Require cmark > 0.4.
4310 * HTML writer: Fixed email javascript obfuscation with `mailto:`
4311 URLs (#2280). This fixes a potential security issue. Because
4312 single quotes weren't being escaped in the link portion, a
4313 specially crafted email address could allow javascript code injection.
4315 * Markdown/HTML readers: Avoid parsing partial URLs like
4316 `<www.pandoc.org/blah#foo>` as HTML tags (#2277).
4318 * RST reader: allow inline formatting in definition list field
4319 names (Lars-Dominik Braun).
4321 * PDF: Make sure `--latex-engine-opt` goes before the filename
4322 on the command line. LaTeX needs the argument to come after
4323 the options (#1779).
4325 * CommonMark writer: fixed tags used for super/subscript.
4327 * ConTeXt template: activate hanging indent for definition lists
4330 * Make cabal require `hsb2hs` >= 0.3.1 if `embed_data_files` specified.
4331 This is done by adding `hookedPrograms` in `Setup.hs`, which allows us
4332 to include `hsb2hs` in Build-Tools in cabal.
4334 * Improved Windows installer (thanks to nkalvi).
4336 + When per-machine installation is chosen, the system path
4337 is updated instead of the user's.
4338 + An appropriate default is used for per-machine installation
4340 + Admin privileges are no longer required for a per-user install
4342 * Travis: unpack sdist for build to catch packaging bugs.
4344 * Improved documentation on where user templates go (#2272).
4348 * Added pandoc.1 man page to the repository. It is no longer
4349 built as part of the cabal build process. (This proved too
4350 fragile.) pandoc.1 can be regenerated (`make man/pandoc.1`)
4351 when `README` is changed.
4353 * Copying of the man page now respects `--destdir` (#2262).
4355 * Improved error messages for filters. User is now informed if
4356 the filter requires an interpreter that isn't found in the path,
4357 or if the filter returns an error status.
4361 * Ensure target directory is created when installing man page.
4365 * Added files needed for building man page to Extra-Source-Files.
4369 * Man page is now built and installed as part of the cabal build
4370 process. Removed Makefile target for man page.
4376 + Removed `--man1`, `--man5` options (breaking change).
4377 + Removed `Text.Pandoc.ManPages` module (breaking API change).
4378 + Makefile target for `man/man1/pandoc.1`. This uses pandoc to
4379 create the man page from README using a custom template and filters.
4380 + Added `man/` directory with template and filters needed to build
4382 + We no longer have two man pages: `pandoc.1` and `pandoc_markdown.5`.
4383 Now there is just pandoc.1, which has all the content from README.
4384 This change was needed because of the extensive cross-references
4385 between parts of the README.
4386 + Removed old `data/pandoc.1.template` and
4387 `data/pandoc_markdown.5.template`.
4389 * OpenDocument writer: Do not add a carriage return after a hard
4390 line break (Michael Chladek).
4394 + use `\goto` for internal links.
4395 + Added a `%` at end for `\reference` to avoid spurious space.
4397 * Ignore sandbox on 'make quick'
4401 * Added `--man1` and `--man5` options to pandoc, allowing pandoc
4402 to generate its own man pages. Man pages are no longer automatically
4403 generated in the build process (the process for this was too complex
4404 and prone to failure, #2190). The `make-pandoc-man-pages` executable
4405 has been removed. The `man/` directory has been removed, and man page
4406 templates have been moved to `data/`. NOTE TO PACKAGERS: You will no
4407 longer find pandoc's man pages in `man/`, but you can generate them using
4408 `pandoc --man1 > pandoc.1` and `pandoc --man5 > pandoc_markdown.5`.
4410 * Added new unexported module: `Text.Pandoc.ManPages`.
4412 * `README` now acts like a data file (even though it isn't in
4413 `data/`). So, for example, `pandoc --print-default-data-file README`
4414 will produce the README.) This change was required for the `--man1`
4415 and `--man5` options, since the man pages are produced from the
4416 README, but it may be useful for other purposes as well.
4418 * Allow `reference.docx` and `reference.odt` to be used with
4419 `--print-default-data-file` and to shadow defaults if placed in
4420 the user data directory. Note that as of 1.14, we no longer
4421 include these files as data files; instead, we include their
4422 components. This change causes pandoc to behave as if it has
4423 these data files; they are constructed on demand when needed
4424 using `getDefaultReferenceDocx` and `getDefaultReferenceODT`.
4426 * Fixed regression in CSS parsing with `--self-contained` (#2224).
4427 Pandoc 1.14.0.x used css-text to parse the CSS, but its parser
4428 silently drops big sections of CSS. This commit replaces the
4429 use of css-text with a small but principled CSS preprocessor,
4430 which removes whitespace and comments and replaces `url()` with
4431 base 64 data when possible.
4433 * Use `https://` instead of `//` for MathJax and KaTeX CDN URLs (#1920).
4434 This will allow math to work when pages are being viewed locally.
4436 * `Text.Pandoc.Options`: Export `plainExtensions`.
4437 These are the extensions used in `plain` output.
4439 * LaTeX reader: Don't parse `_` and `^` as sub/superscript outside of
4440 math mode; treat them as regular inline text. Normally these will
4441 cause an error in LaTeX, but there are contexts (e.g. `alltt`
4442 environments) where they are allowed.
4444 * HTML reader: allow `<body>` to close `<head>`.
4446 * DocBook reader: support `mediaobject`s and `figures` (#2184, Mauro Bieg).
4448 * RST reader: Fix reference names with special characters
4449 (Lars-Dominik Braun).
4451 * Textile writer: escape `+` and `-` as entities (#2225).
4453 * DokuWiki writer: Use proper `<code>` tags for code blocks (#2213).
4455 * Plain writer: don't use symbols for super/subscript (#2237).
4456 Simplified code by using `plainExtensions`.
4458 * InDesign writer: Properly escape URLs containing more than one
4459 colon character (gohai).
4461 * Docx writer: Make sure we use dist version of `reference.docx`
4462 (and not the user's version) for certain settings. Taking some
4463 settings values from a user-supplied reference.docx can lead to
4464 corruption. This fixes a regression from the last release (#2249).
4466 * `Text.Pandoc.Shared`: exports `getDefaultReferenceDocx` and
4467 `getDefaultReferenceODT` (API change). These functions have been
4468 removed from the Docx and ODT writers.
4470 * LaTeX template (Xavier Olive):
4471 + Added `CJKmainfont` and `CJKoptions` variables.
4472 + Allow dvipsnames (e.g. `MidnightBlue`) for colors (Xavier Olive).
4474 * Epub templates: use `author.role`, not `author.type`.
4476 * Bump cmark version to >= 0.3.4.
4478 * Improved Windows installer (#2205, thanks to nkalvi).
4479 Users can now select a per-user or systemwide install, and can set
4480 the installation path. At the end of installation, the install location
4481 is given. The install location is also now given in the list of
4482 installed programs in Control Panel. Cleaner WiX syntax is used for
4485 * Added `download_stats` target to Makefile.
4489 * Added missing commonmark template.
4491 * Improved try pandoc (moved button, show raw command).
4495 * Allow compilation with syb 0.5.*.
4497 * Custom writer: fixed some compiler warnings for ghc < 7.10.
4501 * Allow building with hslua 0.4.
4505 * Fixed problem with building of `reference.docx` and `reference.odt`
4506 when the `embed_data_files` flag is used. Instead of having a phase
4507 of the build where `reference.docx` and `reference.odt` are created
4508 from their constituent data files, we now construct these archives
4509 from their constituents when a `docx` or `odt` is built. The
4510 constituent files have been moved from `extra-source-files` to
4511 `data-files`, and `reference.docx` and `reference.odt` have been
4512 removed. Users can create their own `reference.docx` or
4513 `reference.odt` by using pandoc to create a simple `docx` or `odt`.
4514 `make-reference-files.hs` has been removed, simplifying the build
4517 * Don't include generated man pages in extra-source-files (#2189).
4519 * Bumped upper bound for aeson.
4521 * ConTeXt writer: create internal link anchors for Div elements with
4522 identifiers. (This is needed for linked citations to work.)
4528 * Added `commonmark` as input and output format.
4530 * Added `--verbose` flag for debugging output in PDF production (#1840,
4533 * Allow wildcards in `--epub-embed-font` arguments (#1939).
4535 * Added `--latex-engine-opt` option (#969, #1779, Sumit Sahrawat).
4537 * Added `shortcut_reference_links` extension (Konstantin Zudov, #1977).
4538 This is enabled by default for those markdown flavors that
4539 support reading shortcut reference links, namely: `markdown`,
4540 `markdown_strict`, `markdown_github`, `markdown_php`.
4541 If the extension is enabled, the reader parses shortcut reference
4542 links like `[foo]`, and the writer creates such links unless doing
4543 so would cause problems. Users of markdown flavors that support
4544 shortcut reference links should not notice a difference in reading
4545 markdown, but the markdown pandoc produces may differ.
4546 If shortcut links are not desired, the extension can be disabled
4551 * `--toc` is now supported for `docx` output (#458, Nikolay Yakimov).
4552 A "dirty" TOC is created at the beginning of document.
4553 It can be regenerated after the document has been opened.
4555 * An implicit `--filter pandoc-citeproc` is now triggered only when the
4556 `--bibliography` option is used, and not when the `bibliography`
4557 field in metadata is specified (#1849).
4561 + Reference links with `implicit_header_references` are no longer
4562 case-sensitive (#1606).
4563 + Definition lists no longer require indentation for first line (#2087).
4564 Previously the body of the definition (after the `:` or `~` marker)
4565 needed to be in column 4. This commit relaxes that requirement,
4566 to better match the behavior of PHP Markdown Extra. So, now
4567 this is a valid definition list:
4571 + Resolve a potentially ambiguity with table captions:
4581 Is "bar" a definition, or the caption for the table? We'll count
4582 it as a caption for the table.
4583 + Disallow headerless pipe tables (#1996), to conform to GFM and PHP
4584 Markdown Extra. Note: If you have been using headerless pipe tables,
4585 this change may cause existing tables to break.
4586 + Allow pipe tables with header but no body (#2017).
4587 + Allow a digit as first character of a citation key (Matthias Troffaes).
4588 See https://github.com/jgm/pandoc-citeproc/issues/97
4592 + Don't limit includes to `.tex` extension (#1882).
4593 If the extension is not `.tex`, it must be given explicitly in
4594 the `\input` or `\include`.
4598 + Allow numbering in the style file. This allows inherited styles
4599 with numbering (lists) (Jesse Rosenthal).
4603 + Support smart punctuation (Craig Bosma).
4604 + Drop trees with a :noexport: tag (Albert Krewinkel). Trees having a
4605 `:noexport:` tag set are not exported. This mirrors org-mode.
4606 + Put header tags into empty spans (Albert Krewinkel, #2160).
4607 Org mode allows headers to be tagged: `* Headline :TAG1:TAG2`.
4608 Instead of being interpreted as part of the headline, the tags are now
4609 put into the attributes of empty spans. Spans without textual content
4610 won't be visible by default, but they are detectable by filters. They
4611 can also be styled using CSS when written as HTML.
4612 + Generalize code block result parsing (Albert Krewinkel).
4613 Previously, only code blocks were recognized as result blocks;
4614 now, any kind of block can be the result.
4616 * Append newline to the LineBreak in Dokuwiki, HTML, EPUB,
4617 LaTeX, MediaWiki, OpenDocument, Texinfo writers (#1924, Tim Lin).
4621 + Add "inline" or "display" class to math spans (#1914).
4622 This allows inline and display math to be styled differently.
4623 + Include raw latex blocks if `--mathjax` specified (#1938).
4624 + Require highlighting-kate >= 0.5.14 (#1903).
4625 This ensures that all code blocks will be wrapped in a `div`
4626 with class `sourceCode`. Also, the default highlighting CSS
4627 now adds `div.sourceCode { x-overflow: auto; }`, which means
4628 that code blocks (even with line numbers) will acquire a scroll
4629 bar on screens too small to display them (e.g. mobile phones).
4630 See also jgm/highlighting-kate#65.
4634 + Use a declaration for tight lists (Jose Luis Duran, Joseph
4635 Harriott). Previously, pandoc hard-coded some commands to make
4636 tight lists in LaTeX. Now we use a custom command instead,
4637 allowing the styling to be changed in a macro in the header.
4638 (Note: existing templates may need to be modified to include
4639 the definition of this macro. See the current template.)
4640 + Beamer output: if the header introducing a slide has the
4641 class `fragile`, add the `[fragile]` option to the slide (#2119).
4645 + Use `File:` instead of the deprecated `Image:` for images and
4646 other media files (Greg Rundlett).
4650 + Render a `Div (id,_,_) [Para _]` element as a `para` element
4651 with an `id` attribute. This makes links to citations work in
4652 DocBook with pandoc-citeproc.
4656 + Normalize headings to sequential levels (Nikolay Yakimov).
4657 This is pretty much required by docutils.
4658 + Treat headings in block quotes, etc as rubrics (Nikolay Yakimov).
4659 + Better handling of raw latex inline (#1961). We use
4660 `` :raw-latex:`...` `` and add a definition for this role to
4665 + Remove `linear=no` from cover `itemref` (#1609).
4666 + Don't use `sup` element for epub footnotes (#1995).
4667 Instead, just use an a element with class `footnoteRef`.
4668 This allows more styling options, and provides better results
4669 in some readers (e.g. iBooks, where anything inside the a
4670 tag breaks popup footnotes).
4671 + Take TOC title from `toc-title` metadata field.
4675 + Implemented `FirstParagraph` style (Jesse Rosenthal).
4676 Following the ODT writer, we add the `FirstParagraph` style to the
4677 first text paragraph following an image, blockquote, table, heading,
4678 or beginning of document. This allows it to be styled differently.
4679 The default is for it to be the same as `Normal`.
4680 + Added `BodyText` style (Jesse Rosenthal).
4681 We apply a `BodyText` style to all unstyled paragraphs. This is,
4682 essentially, the same as `Normal`, except that since not everything
4683 inherits from `BodyText` (the metadata won't, for example, or
4684 the headers or footnote numbers), we can change the text in the body
4685 without having to make exceptions for everything. If we do want to
4686 change *everything*, we can still do it through `Normal`.
4687 + Altered `Blockquote` style slightly (Jesse Rosenthal).
4688 Since `BlockQuote` derives from `BodyText`, we just want to specify
4689 by default that it won't indent, regardless of what `BodyText` does.
4690 Note that this will not produce any visible difference in the default
4692 + Take TOC title from `toc-title` metadata field (Nikolay Yakimov).
4693 + Added a style to figure images (Nikolay Yakimov).
4694 Figures with empty captions use style `Figure`.
4695 Figures with nonempty captions use style `Figure with Caption`, which
4696 is based on `Figure`, and additionally has `keepNext` set.
4700 + Added figure captions (Nikolay Yakimov). The following styles are
4702 `Figure` -- for figure with empty caption),
4703 `FigureWithCaption` (based on `Figure`) -- for figure with caption,
4704 `FigureCaption` (based on `Caption`) -- for figure captions.
4705 Also, `TableCaption` (based on `Caption`) is used for table captions.
4709 * New `Text.Pandoc.Error` module with `PandocError` type
4710 (Matthew Pickering).
4712 * All readers now return `Either PandocError Pandoc` instead of `Pandoc`
4713 (Matthew Pickering). This allows better handling of errors.
4715 * Added `Text.Pandoc.Writers.CommonMark`, exporting `writeCommonMark`.
4717 * Added `Text.Pandoc.Readers.CommonMark`, exporting `readCommonMark`.
4719 * Derive `Data` and `Typeable` instances for `MediaBag`, `Extension`,
4720 `ReaderOptions`, `EPUBVersion`, `CiteMethod`, `ObfuscationMethod`,
4721 `HTMLSlideVariant`, `TrackChanges`, `WriterOptions` (Shabbaz
4724 * New `Ext_shortcut_reference_links` constructor for `Extension`
4731 + Allow smart `'` after inline math (#1909, Nikolay Yakimov).
4732 + Check for tex macros after indented code (#1973).
4733 + Rewrote `charsInBalancedBrackets` for efficiency.
4734 + Make sure a closing `</div>` doesn't get included in a
4735 definition list item (#2127).
4736 + Don't parse bracketed text as citation if it might be a link,
4737 image, or footnote (Nikolay Yakimov).
4738 + Require space after key in mmd title block (#2026, Nikolay
4739 Yakimov). Require space after key-value delimiter colon in mmd title
4741 + Require nonempty value in mmd title block (Nikolay Yakimov).
4742 + Disable all metadata block extensions when parsing
4743 metadata field values (#2026, Nikolay Yakimov). Otherwise we
4744 could get a mmd title block inside YAML metadata, for example.
4748 + Improve self-closing tag detection in `htmlInBalanced` (#2146).
4749 + Handle tables with `<th>` in body rows (#1859, Mauro Bieg).
4750 + Fixed `htmlTag` (#1820). If the tag parses as a comment, we check
4751 to see if the input starts with `<!--`. If not, it's bogus comment
4752 mode and we fail `htmlTag`.
4753 + Handle `base` tag; if it has an `href` value, this is added to
4754 all relative URLs in links and images.
4758 + Look inside "info" elements for section titles (#1931).
4762 + Parse images in deprecated vml format (Jesse Rosenthal).
4763 + Allow sub/superscript verbatims (Jesse Rosenthal).
4764 Verbatim usually shuts off all other run styles, but we don't want it
4765 to shut off sub/superscript.
4769 + Handle `tabular*` environment (#1850).
4770 Note that the table width is not actually parsed or taken into
4771 account, but pandoc no longer chokes on it.
4772 + Ignore options in `\lstinline` rather than raising error (#1997).
4773 + Add some test cases for simple tables (Mathias Schenner).
4774 + Handle valign argument in tables (Mathias Schenner) (currently
4775 we just ignore this).
4776 + Allow non-empty colsep in tables (Mathias Schenner).
4777 The `tabular` environment allows non-empty column separators
4778 with the "@{...}" syntax. Previously, pandoc would fail to
4779 parse tables if a non-empty colsep was present. With this
4780 commit, these separators are still ignored, but the table gets
4781 parsed. A test case is included.
4782 + Recognize `\newpage` as a block command.
4783 + Allow block content in \title{} (#2001).
4784 + Check for block-level newcommand aliases in blockCommand (Nikolay
4786 + Guard against paragraph starting with inline macro (Nikolay Yakimov).
4787 + Properly gobble spaces after `\\` (#2007).
4791 + Handle newlines in table cells, and empty cells (#1919).
4795 + Allow image links with non-image targets (Hans-Peter Deifel).
4796 This matches behavior of Org-Mode for links like
4797 `[[http://example.com][https://www.haskell.org/static/img/logo.png]]`.
4801 + Don't print empty id attributes (thanks to Steve Horne).
4805 + Fixed list-style-type for numbered example lists.
4806 Should be "decimal," not "example" (#1902).
4807 + Do not omit missing `alt` attribute on `img` tag (#1131,
4809 + Allow multiple colgroups in table (#2122).
4810 + In revealjs, ensure that lists in speaker notes don't add "fragment"
4811 classes, which can cause additional keypresses to be needed to
4812 advance a slide (#1394).
4816 + Don't escape `$` in URL (#1913).
4817 + Don't use listings in headers (Matthew Pickering, #1963).
4818 + Recognize book documentclass if set in metadata (#1971).
4819 This sets `--chapters` implicitly if the documentclass in metadata
4820 is a book documentclass. Previously this was done only if a book
4821 documentclass was set in a variable.
4822 + Add a `\label` in `\hyperdef` for Div, Span (or links don't work).
4823 + Make `mainlang` work when `lang` is in metadata (#2174).
4827 + Fix wrapping by using breakable spaces (Tim Lin).
4831 + Fixed toc depth in RST writer. Previously the depth was being
4832 rendered as a floating point number with a decimal point.
4836 + Improved escaping (#2086). `<` should not be escaped as `\<`, for
4837 compatibility with original Markdown. We now escape `<` and `>`
4838 with entities. Also, we now backslash-escape square brackets.
4839 + Avoid introducing spurious list items through wrapping (#1946).
4840 + Don't emit span tags if plain or raw HTML disabled.
4844 + Convert spaces to underscores in wikilink URL (#1982), like MediaWiki.
4848 + Insert some needed blank lines (#1860).
4849 + Avoid wrapping after list marker (#1858).
4853 + Properly handle internal links to IDs in spans, divs (#1884).
4854 + Use plain writer for metadata dc: fields (#2121).
4855 This gives better results when we have, e.g. multiple paragraphs.
4856 Note that tags aren't allowed in these fields.
4857 + Properly handle image links without an extension (#1855).
4858 + Improved chapter splitting and internal link rewriting (#1887,
4859 #2162, #2163). This will ensure that internal links work and
4860 that the references section produced by pandoc-citeproc is
4862 + Fixed handling of svg images (#2183).
4866 + Better handling of raw blocks and inlines (#1951).
4867 Previously these were always escaped and printed verbatim.
4868 Now they are ignored unless the format is `icml`, in which
4869 case they are passed through unescaped.
4870 + Fixed image URIs in ICML output (gohai).
4874 + Raise error if loadstring returns an error status.
4875 + Raise `PandocLuaException` instead of using 'error'.
4876 Eventually we'll change the return type so that no exception
4877 is involved, but at least this can be trapped.
4878 + Use UTF-8 aware bytestring conversion.
4879 + Set foreign encoding to UTF-8 (Nikolay Yakimov, #2101, #1634).
4880 Also factored out ByteString, since it's only used as an intermediate
4885 + Copy hyphenation settings from reference.docx (Nikolay Yakimov).
4886 + Filter out illegal XML characters (#1992, Matthew Pickering).
4887 + Added `noProof` to docx syntax highlighting `SourceCode` style.
4888 + Added footnotes id -1 and 0 (Jesse Rosenthal).
4889 Word uses, by default, footnotes with id -1 and 0 for separators. If a
4890 user modifies `reference.docx`, they will end up with a `settings.xml`
4891 file that references these footnotes, but no such footnotes in the
4892 document. This will produce a corruption error. Here we add these to the
4893 document and `settings.xml` file, so future modifications won't break
4895 + Handle lists correctly inside table cells (Jesse Rosenthal).
4896 Previously we didn't transform lists inside table cells.
4897 + Set firstRow information in tables (Nikolay Yakimov).
4898 + Don't replace `SourceCode` style in `reference.docx` if it is defined
4899 there (Nikolay Yakimov, #1872). If `--no-highlight` specified, remove
4900 any `SourceCode` and `*Tok` styles in `reference.docx`.
4901 + Attempt to match international style names (#1607, Nikolay Yakimov).
4902 + Set these styles as custom (Nikolay Yakimov): `Author`, `Abstract`,
4903 `Compact`, `Image Caption`, `Table Caption`, `Definition Term`,
4904 `Definition`, `First Paragraph`.
4905 + Rename these styles to correspond with Word `Normal.dotm` (Nikolay
4906 Yakimov): `Block Quote -> Block Text`, `Link -> Hyperlink`,
4907 `Footnote Ref -> Footnote Reference`.
4908 + Added `Caption` style (Nikolay Yakimov).
4909 + Changed these styles' inheritance (Nikolay Yakimov):
4910 `Image Caption <- Caption`, `Table Caption <- Caption`.
4911 + Remove `SourceCode` style from `reference.docx` (#1872).
4912 This is added automatically by the docx writer.
4913 + Added toc heading style to `reference.docx` (Nikolay Yakimov).
4917 + Don't suggest "Try xelatex" if xelatex already in use (Mauro Bieg,
4919 + More comprehensible errors on image conversion (#2067).
4920 EPS can't be supported without shelling out to something like
4921 ImageMagick, but at least we can avoid mysterious error messages.
4923 * `Text.Pandoc.Shared`:
4925 + Make safeRead safe (#1801, Matthew Pickering).
4926 + Addded `mapLeft`, `hush` (Matthew Pickering).
4928 * `Text.Pandoc.Pretty`:
4930 + Remove partial function (Matthew Pickering).
4932 * `Text.Pandoc.SelfContained`:
4934 + Add `;charset=utf-8` to script mime type if missing (#1842).
4935 + Improved building of data URIs (#1940). Now base64 is used except
4936 for `text/*` mime types.
4937 + `cssURLs` no longer tries to fetch fragment URLs (#2121).
4938 + Properly handle data URIs in css urls (#2129).
4939 Use a proper CSS parser (adds dependency on `text-css`).
4941 * `Text.Pandoc.UTF8`:
4943 + Better handling of bare CRs in input files (#2132).
4944 Previously we just stripped them out; now we convert
4945 other line ending styles to LF line endings.
4947 * `Text.Pandoc.ImageSize`:
4949 + Fixed some exif header parsing bugs (#1834).
4950 + Make imageSize return an Either, not a Maybe (#1834).
4951 Use `runGetOrFail` (with `binary >= 0.7`) to return `Left` on
4952 parse failure (rather than `error`).
4953 + Improved warnings when image size can't be determined.
4954 + Removed error landmines (Matthew Pickering).
4956 * Added woff2 to MIME types (Alfred Wechselberger).
4958 * pandoc: When a binary input format is used, warn that file
4959 arguments past the first one are being ignored (Matthew Pickering).
4965 + Degrade gracefully if `\paragraph` not defined.
4966 + Include `grffile` together with `graphicx` (#2074).
4967 This properly handles filenames containing spaces and dots.
4968 + Redefine `\paragraph`, `\subparagraph`... to behave more
4969 like section headers (#1658).
4970 + Import hyperref before polyglossia to avoid an error with xelatex,
4971 "please load package hyperref before bidi package" (Nick Bart).
4972 + Added `toccolor` variable to control link color in toc (Kaixhin).
4974 * LaTeX, Beamer templates:
4976 + Provide `\tightlist`, which is now used by the LaTeX writer.
4977 + Use polyglossia in beamer (#85).
4978 + Use `bibliography` instead of `biblio-files`
4979 (#1661). Also use `\addbibresource` instead of `\bibliography` for
4981 + Added `setotherlanguages` in polyglossia. This uses an `otherlang`
4982 variable that is derived from a comma-separated list in `lang`;
4983 the last language is `mainlang` and the others are `otherlang`.
4987 + Use `div`, not `p`, for "rights" on title page.
4988 + Added header-includes, include-before, include-after (#1987).
4990 * OpenDocument template:
4992 + Use `text:p` instead of `text:h` for title.
4993 Using `text:h` causes problems with numbering. Closes #2059.
4994 Thansk to @nkalvi for diagnosing this.
4996 * reveal.js template:
4998 + Link to non-minified css, js. The minified versions no longer
4999 ship with the library.
5000 + Correctly include style CSS (#1949).
5001 + New configurable options options: `center`, `maxScale`, `slideNuber`
5002 (Dmitry Smirnov, pandoc-templates#89).
5003 + Moved custom CSS after theme. This allows custom CSS to modify
5004 themes, instead of being replaced by them.
5005 + Allow `center` to be set to false.
5007 [under the hood improvements]
5009 * Removed pre-built `reference.docx` and `reference.odt` (Nikolay
5010 Yakimov). Instead the repository now includes the component text files,
5011 and the zipped binaries are built from these using a helper
5012 program, `make-reference-files`. This should make maintenance of
5013 these components easier going forward.
5015 * `Text.Pandoc.Parsing`:
5017 + Added new `<+?>` combinator (Nikolay Yakimov).
5018 + Added `stateHeaderKeys` to `ParserState`.
5020 * `make_deb.sh` fixes:
5022 + Detect architecture.
5023 + Add Installed-Size to debian package control file (#1900).
5024 + Use `fakeroot` to get permissions right.
5025 + Use `mkdir` and `cp` instead of `install`.
5026 + Set permissions of directories to 755.
5027 + Install in `/usr` rather than `/usr/local`.
5028 + Compress man pages.
5029 + Combine copyright files for `pandoc`, `pandoc-citeproc`.
5031 * Added `Text.Pandoc.Compat.Locale` and `old-locale` flag
5032 to assist with transition to `time` 1.5.
5034 * Updated CONTRIBUTING.md with information about issue tags (Matthew
5037 * Updated travis installs to the new sudo-less syntax (Tim Lin).
5039 * Updated dependency version bounds.
5041 * EPUB tests: don't use `joinPath`, which varies across platforms.
5042 Instead, use a forward-slash to join paths, regardless of the
5043 platform. This matches the way `MediaBag` now works.
5045 * Clarify JSON input and output in usage message (Caleb McDaniel).
5047 * Improved INSTALL instructions.
5049 * Always build man pages. Removed make-pandoc-man-pages flag.
5051 * Makefile: removed man target, now that we generate man pages by default.
5055 + Fixed typos (J. Lewis Muir).
5056 + Added documentation on backtick_code_blocks (#2135, Nikolay Yakimov).
5057 + Added note on in-field markup in biblio databases (Nick Bart).
5058 + Fixed misleading example of raw HTML block.
5059 + Various minor formatting and consistency fixes for the program
5060 options (Andreas Lööw).
5061 + Made definition lists for options all "loose" for consistency.
5062 + Added YAML biblio format to table, and note on `pandoc-citeproc`'s
5063 `--bib2json` and `--bib2yaml` options (Nick Bart).
5064 + Removed obsolete reference to `mods2yaml` (Nick Bart).
5065 + Added section on syntax highlighting.
5066 + Documented `toccolor` variable.
5070 * Updated to build with ghc 7.10.1.
5072 * Bumped package upper bounds for filepath, blaze-html,
5077 * TWiki Reader: add new new twiki reader (API change, Alexander Sulfrian).
5081 + Better handling of paragraph in div (#1591).
5082 Previously text that ended a div would be parsed as Plain
5083 unless there was a blank line before the closing div tag.
5084 + Don't treat a citation as a reference link label (#1763).
5085 + Fix autolinks with following punctuation (#1811).
5086 The price of this is that autolinked bare URIs can no longer
5087 contain `>` characters, but this is not a big issue.
5088 + Fix `Ext_lists_without_preceding_blankline` bug (#1636, Artyom).
5089 + Allow `startnum` to work without `fancy_lists`. Formerly
5090 `pandoc -f markdown-fancy_lists+startnum` did not work properly.
5092 * RST reader (all Daniel Bergey):
5094 + Parse quoted literal blocks (#65). RST quoted literal blocks are
5095 the same as indented literal blocks (which pandoc already supports)
5096 except that the quote character is preserved in each line.
5097 + Parse RST class directives. The class directive accepts one or more
5098 class names, and creates a Div value with those classes. If the
5099 directive has an indented body, the body is parsed as the children of
5100 the Div. If not, the first block folowing the directive is made a
5101 child of the Div. This differs from the behavior of rst2xml, which
5102 does not create a Div element. Instead, the specified classes are
5103 applied to each child of the directive. However, most Pandoc Block
5104 constructors to not take an Attr argument, so we can't duplicate this
5106 + Warn about skipped directives.
5107 + Literal role now produces Code. Code role should have "code" class.
5108 + Improved support for custom roles
5110 - Added `sourceCode` to classes for `:code:` role, and anything
5112 - Add the name of the custom role to classes if the Inline
5113 constructor supports Attr.
5114 - If the custom role directive does not specify a parent role,
5115 inherit from the `:span:` role.
5117 This differs somewhat from the `rst2xml.py` behavior. If a custom
5118 role inherits from another custom role, Pandoc will attach both
5119 roles' names as classes. `rst2xml.py` will only use the class of
5120 the directly invoked role (though in the case of inheriting from a
5121 `:code:` role with a `:language:` defined, it will also provide the
5122 inherited language as a class).
5123 + Warn about ignored fields in role directives.
5127 + Parse label after caption into a span instead of
5128 inserting an additional paragraph of bracketed text (#1747).
5129 + Parse math environments as inline when possible (#1821).
5130 + Better handling of `\noindent` and `\greektext` (#1783).
5131 + Handle `\texorpdfstring` more gracefully.
5132 + Handle `\cref` and `\sep` (Wikiwide).
5133 + Support `\smartcite` and `\Smartcite` from biblatex.
5137 + Retain display type of MathML output (#1719, Matthew Pickering).
5138 + Recognise `<br>` tags inside `<pre>` blocks (#1620, Matthew Pickering).
5139 + Make `embed` tag either block or inline (#1756).
5143 + Handle `keycombo`, `keycap` (#1815).
5144 + Get string content in inner tags for literal elements (#1816).
5145 + Handle `menuchoice` elements better, with a `>` between (#1817).
5146 + Include `id` on section headers (#1818).
5147 + Document/test "type" as implemented (Brian O'Sullivan).
5148 + Add support for calloutlist and callout (Brian O'Sullivan).
5149 We treat a calloutlist as a bulleted list. This works well in practice.
5150 + Add support for `classname` (Bryan O'Sullivan).
5154 + Fix window path for image lookup (Jesse Rosenthal).
5155 Don't use os-sensitive "combine", since we always want the paths in our
5156 zip-archive to use forward-slashes.
5157 + Single-item headers in ordered lists are headers (Jesse Rosenthal).
5158 When users number their headers, Word understands that as a single item
5159 enumerated list. We make the assumption that such a list is, in fact,
5161 + Rewrite rewriteLink to work with new headers (Jesse Rosenthal).
5162 There could be new top-level headers after making lists, so we have to
5163 rewrite links after that.
5164 + Use polyglot header list (Jesse Rosenthal).
5165 We're just keeping a list of header formats that different languages
5166 use as their default styles. At the moment, we have English, German,
5167 Danish, and French. We can continue to add to this.
5168 This is simpler than parsing the styles file, and perhaps less
5169 error-prone, since there seems to be some variations, even within a
5170 language, of how a style file will define headers.
5171 + Remove header class properly in other langs (Jesse Rosenthal).
5172 When we encounter one of the polyglot header styles, we want to remove
5173 that from the par styles after we convert to a header. To do that, we
5174 have to keep track of the style name, and remove it appropriately.
5175 + Account for external link URLs with anchors. Previously, if a URL
5176 had an anchor, the reader would incorrectly identify it as an
5177 internal link and return only the anchor as URL. (Caleb McDaniel)
5178 + Fix for Issue #1692 (i18n styles) (Nikolay Yakimov).
5182 + Added state changing blanklines (Jesse Rosenthal).
5183 This allows us to emphasize at the beginning of a new paragraph (or, in
5184 general, after blank lines).
5185 + Fixed bug with bulleted lists:
5191 was being parsed as a list, even though an unindented `*`
5192 should make a heading. See
5193 <http://orgmode.org/manual/Plain-lists.html#fn-1>.
5194 + Org reader: absolute, relative paths in link (#1741, Albert
5195 Krewinkel). The org reader was too restrictive when parsing links;
5196 some relative links and links to files given as absolute paths
5197 were not recognized correctly.
5198 + Org reader: allow empty links (jgm/gitit#471, Albert Krewinkel).
5199 This is important for use in gitit, which uses empty links
5201 + Respect indent when parsing Org bullet lists (#1650, Timothy
5202 Humphries). Fixes issue with top-level bullet list parsing.
5203 + Fix indent issue for definition lists (Timothy Humphries,
5204 see #1650, #1698, #1680).
5205 + Parse multi-inline terms correctly in definition list (#1649,
5207 + Fix rules for emphasis recognition (Albert Krewinkel).
5208 Things like `/hello,/` or `/hi'/` were falsy recognized as emphasised
5209 strings. This is wrong, as `,` and `'` are forbidden border chars and
5210 may not occur on the inner border of emphasized text.
5211 + Drop COMMENT document trees (Albert Krewinkel).
5212 Document trees under a header starting with the word `COMMENT` are
5213 comment trees and should not be exported. Those trees are dropped
5215 + Properly handle links to `file:target` (Albert Krewinkel).
5216 Org links like `[[file:target][title]]` were not handled correctly,
5217 parsing the link target verbatim. The org reader is changed such that
5218 the leading `file:` is dropped from the link target (see #756, #1812).
5219 + Parse LaTeX-style MathML entities (#1657, Albert Krewinkel).
5220 Org supports special symbols which can be included using LaTeX syntax,
5221 but are actually MathML entities. Examples for this are
5222 `\nbsp` (non-breaking space), `\Aacute` (the letter A with accent acute)
5223 or `\copy` (the copyright sign ©)
5227 + URI handling improvements. Now we outsource most of the work to
5228 `fetchItem'`. Also, do not include queries in file extensions (#1671).
5232 + Use `\texorpdfstring` for section captions when needed (Vaclav Zeman).
5233 + Handle consecutive linebreaks (#1733).
5234 + Protect graphics in headers (Jesse Rosenthal).
5235 Graphics in `\section`/`\subsection` etc titles need to be `\protect`ed.
5236 + Put `~` before header in list item text (Jesse Rosenthal).
5237 Because of the built-in line skip, LaTeX can't handle a section header
5238 as the first element in a list item.
5239 + Avoid using reserved characters as `\lstinline` delimiters (#1595).
5240 + Better handling of display math in simple tables (#1754).
5241 We convert display math to inline math in simple tables,
5242 since LaTeX can't deal with display math in simple tables.
5243 + Escape spaces in code (#1694, Bjorn Buckwalter).
5247 + Fixed links with URL = text. Previously these were rendered as bare
5248 words, even if the URL was not an absolute URL (#1825).
5252 + Don't force all citations into footnotes.
5256 + Add blankline at end of output (#1732, Matthew Pickering).
5260 + Ensure blank line after figure.
5261 + Avoid exces whitespace after last list item (#1777).
5262 + Wrap line blocks with spaces before continuations (#1656).
5263 + Fixed double-rendering of footnotes in RST tables (#1769).
5267 + Better handling of block quotes. This change ensures that
5268 multiple paragraph blockquotes are rendered using native `>`
5269 rather than as HTML (#1738).
5270 + Fix external images (#1739). Preface relative links with ":",
5271 absolute URIs without. (Timothy Humphries)
5275 + Use protocol-relative URL for mathjax.
5276 + Put newline btw img and caption paragraph.
5277 + MathML now outputted with tex annotation (#1635, Matthew Pickering).
5278 + Add support for KaTeX HTML math (#1626, Matthew Pickering).
5279 This adds `KaTeX` to `HTMLMathMethod` (API change).
5280 + Don't double render when `email-obfuscation=none` (#1625, Matthew
5282 + Make header attributes work outside top level (#1711).
5283 Previously they only appeared on top level header elements.
5284 Now they work e.g. in blockquotes.
5288 + Correctly handle images without extensions (#1729).
5289 + Strip querystring in ODT write (#1682, Todd Sifleet).
5293 + Add newline to output.
5297 + Don't add `sourceURL` to absolute URIs (#1669).
5298 + Don't use unsupported `opf:title-type` for epub2.
5299 + Include "landmarks" section in nav document for epub3 (#1757).
5300 + Removed playOrder from navpoint elements in ncx file (#1760).
5301 These aren't required, and they make manual modification of epubs
5303 + Extract title even from structured title.
5304 + Don't include nav node in spine unless `--toc` was requested.
5305 Previously we included it in the spine with `linear="no"`, leading
5306 to odd results in some readers (#1593).
5307 + Fixed absolute URI detection (#1672).
5308 + Correctly resolve relative URIs (#1671).
5309 + Use regular page template for `nav.xhtml`, including doctype (#1759).
5313 + Put docx table captions above tables (#1641, Nikolay Yakimov).
5314 + Get the page width from the reference docx file, and use
5315 it to scale images that are too large to fit (Grégory Bataille).
5316 + Partial fix for #1607 (Nikolay Yakimov). International heading styles
5317 are inferred based on `<w:name val="heading #">` fallback, if there
5318 are no en-US "Heading#" styles
5319 + Look in user data dir for archive `reference.docx`.
5320 + Renumber header and footer relationships to avoid collisions (Jesse
5321 Rosenthal). We previously took the old relationship names of the
5322 headers and footer in secptr. That led to collisions. We now make
5323 a map of availabl names in the relationships file, and then rename
5328 + Add function toLabel (Mark Szepieniec).
5329 This function can be used to sanitize reference labels so that
5330 they do not contain any of the illegal characters \#[]",{}%()|= .
5331 Currently only Links have their labels sanitized, because they
5332 are the only Elements that use passed labels.
5334 * `Text.Pandoc.Shared`:
5336 + Moved import of `toChunks` outside of CPP conditional (#1590).
5337 + Fix `inDirectory` to reset to the original directory in case
5338 an exception occurs (Freiric Barral).
5342 + LaTeX template: load polyglossia before bibtex (jgm/pandoc-templates#70).
5343 Thanks to bluebirch.
5344 + LaTeX template: Added `\VerbatimFootnotes` if there is verbatim in notes
5346 + LaTeX template: Add shorthands=off to babel options (#1648).
5347 + EPUB, EPUB3 templates: Added `id="cover"` to body of cover page.
5348 This aids styling, making it possible for example to set 0 margins
5349 on the title page (#1758).
5350 + EPUB, EPUB3 templates: Handle structured metadata on titlepage.
5351 Previously we just expected 'title', 'subtitle', 'author', 'date'.
5352 Now we still support those, but also support the format recommended
5353 for epub metadata in the pandoc README:
5360 text: An investigation of metadata
5368 text: doi:10.234234.234/33
5370 rights: (c) 2007 John Smith, CC BY-NC
5373 * `Text.Pandoc.Templates.getDefaultTemplate`:
5374 don't fail when called with "fb2" (#1660).
5376 * `Text.Pandoc.Parsing`:
5378 + Fixed `inlineMath` so it handles `\text{..}` containing `$`.
5379 For example: `$x = \text{the $n$th root of $y$}` (#1677).
5380 + Change `parseFromString` to fail if not all input is consumed.
5382 + Moved `addWarning` from Markdown reader to `Parsing`, so it can be
5383 used by more readers (API change, Daniel Bergey).
5385 * `Text.Pandoc.Pretty`:
5387 + Improve performance of `realLength` (Matthew Pickering).
5388 + Make CR + BLANKLINE = BLANKLINE. This fixes an extra blank line we
5389 were getting at the end of markdown fragments (as well as rst, org,
5392 * `Text.Pandoc.MIME`:
5394 + Add mime type for WebVTT (Jason Ronallo).
5395 + Changed mime type for `otf` to `application/vnd.ms-opentype` (#1761).
5396 This is needed for epub3 validation.
5398 * `Text.Pandoc.MediaBag`:
5400 + Fix Windows specific path problems (#1597).
5402 * `Text.Pandoc.Shared`:
5404 + Make `collapseFilePath` OS-agnostic (Matthew Pickering).
5406 * Link the test suite using `-threaded`.
5407 This allows the test suite to be run using `+RTS -N`.
5409 * Added `network` dependency under `network-uri` flag in test section.
5411 * Give better error messages when someone tries to convert from
5412 pdf, doc, odt (#1683).
5414 * Added `track` to list of tags treated by `--self-contained` (#1664).
5418 * Fixed `--self-contained` with Windows paths (#1558).
5419 Previously `C:\foo.js` was being wrongly interpreted as a URI.
5421 * HTML reader: improved handling of tags that can be block or inline.
5422 Previously a section like this would be enclosed in a paragraph,
5423 with RawInline for the video tags (since video is a tag that can
5424 be either block or inline):
5426 <video controls="controls">
5427 <source src="../videos/test.mp4" type="video/mp4" />
5428 <source src="../videos/test.webm" type="video/webm" />
5430 The videos can not be played back on your system.<br/>
5431 Try viewing on Youtube (requires Internet connection):
5432 <a href="http://youtu.be/etE5urBps_w">Relative Velocity on
5437 This change will cause the video and source tags to be parsed
5438 as RawBlock instead, giving better output.
5439 The general change is this: when we're parsing a "plain" sequence
5440 of inlines, we don't parse anything that COULD be a block-level tag.
5444 + Be sensitive to user styles. Note that "Hyperlink" is
5445 "blacklisted," as we don't want the default underline styling to be
5446 inherited by all links by default (Jesse Rosenthal).
5447 + Read single paragraph in table cell as `Plain` (Jesse Rosenthal).
5448 This makes to docx reader's native output fit with the way the markdown
5449 reader understands its markdown output.
5451 * Textile writer: Extended the range of cases where native textile
5452 tables will be used (as opposed to raw HTML): we now handle any
5453 alignment type, but only for simple tables with no captions.
5457 + Header is now parsed only if standalone flag is set (Matthew Pickering).
5458 + The header is now parsed as meta information. The first line is the
5459 `title`, the second is the `author` and third line is the `date`
5460 (Matthew Pickering).
5461 + Corrected formatting of `%%mtime` macro (Matthew Pickering).
5462 + Fixed crash when reading from stdin.
5464 * EPUB writer: Don't use page-progression-direction in EPUB2, which
5465 doesn't support it. Also, if page-progression-direction not specified
5466 in metadata, don't include the attribute even in EPUB3; not including it
5467 is the same as including it with the value "default", as we did before.
5470 * Org writer: Accept example lines with indentation at the beginning
5475 + Refactor to use Reader monad (Matthew Pickering).
5476 + Avoid using raw HTML in table cells; instead, use `\\`
5477 instead of newlines (Jesse Rosenthal).
5478 + Properly handle HTML table cell alignments, and use spacing
5479 to make the tables look prettier (#1566).
5483 + Bibliography entries get `Bibliography` style (#1559).
5484 + Implement change tracking (Jesse Rosenthal).
5488 + Fixed a bug that caused a table caption to repeat across all pages
5490 + Improved vertical spacing in tables and made it customizable using
5491 standard lengths set by booktab. See
5492 <https://groups.google.com/forum/#!msg/pandoc-discuss/qMu6_5lYy0o/ZAU7lzAIKw0J>
5494 + Added `\strut` to fix spacing in multiline tables (Jose Luis Duran).
5495 + Use `\tabularnewline` instead of `\\` in table cells (Jose Luis Duran).
5496 + Made horizontal rules more flexible (Jose Luis Duran).
5500 + Added `MimeType` (type synonym for `String`) and `getMimeTypeDef`.
5501 Code cleanups (Artyom Kazak).
5505 + LaTeX template: disable microtype protrusion for typewriter font (#1549,
5508 * Improved OSX build procedure.
5510 * Added `network-uri` flag, to deal with split of `network-uri` from
5513 * Fix build dependencies for the `trypandoc` flag, so that they are
5514 ignored if `trypandoc` flag is set to False (Gabor Pali).
5516 * Updated README to remove outdated claim that `--self-contained`
5517 looks in the user data directory for missing files.
5523 + Fixed regression which bungled list numbering (#1544), causing
5524 all lists to appear as basic ordered lists.
5525 + Include row width in table rows (Christoffer Ackelman, Viktor Kronvall).
5526 Added a property to all table rows where the sum of column widths
5527 is specified in pct (fraction of 5000). This helps persuade Word
5528 to lay out the table with the widths we specify.
5530 * Fixed a bug in Windows 8 which caused pandoc not to find the
5531 `pandoc-citeproc` filter (#1542).
5533 * Docx reader: miscellaneous under-the-hood improvements (Jesse Rosenthal).
5534 Most significantly, the reader now uses Builder, leading to some
5535 performance improvements.
5537 * HTML reader: Parse appropriately styled span as SmallCaps.
5539 * Markdown writer: don't escape `$`, `^`, `~` when `tex_math_dollars`,
5540 `superscript`, and `subscript` extensions, respectively, are
5541 deactivated (#1127).
5543 * Added `trypandoc` flag to build CGI executable used in the online
5546 * Makefile: Added 'quick', 'osxpkg' targets.
5548 * Updated README in templates to indicate templates license.
5549 The templates are dual-licensed, BSD3 and GPL2+.
5555 * Added `docx` as an input format (Jesse Rosenthal). The docx
5556 reader includes conversion of native Word equations to pandoc
5557 LaTeX `Math` elements. Metadata is taken from paragraphs at the
5558 beginning of the document with styles `Author`, `Title`, `Subtitle`,
5559 `Date`, and `Abstract`.
5561 * Added `epub` as an input format (Matthew Pickering). The epub
5562 reader includes conversion of MathML to pandoc LaTeX `Math`
5565 * Added `t2t` (Txt2Tags) as an input format (Matthew Pickering).
5566 Txt2tags is a lightweight markup format described at
5567 <http://txt2tags.org/>.
5569 * Added `dokuwiki` as an output format (Clare Macrae).
5571 * Added `haddock` as an output format.
5573 * Added `--extract-media` option to extract media contained in a zip
5574 container (docx or epub) while adjusting image paths to point to the
5577 * Added a new markdown extension, `compact_definition_lists`, that
5578 restores the syntax for definition lists of pandoc 1.12.x, allowing
5579 tight definition lists with no blank space between items, and
5580 disallowing lazy wrapping. (See below under behavior changes.)
5582 * Added an extension `epub_html_exts` for parsing HTML in EPUBs.
5584 * Added extensions `native_spans` and `native_divs` to activate
5585 parsing of material in HTML span or div tags as Pandoc Span
5586 inlines or Div blocks.
5588 * `--trace` now works with the Markdown, HTML, Haddock, EPUB,
5589 Textile, and MediaWiki readers. This is an option intended
5590 for debugging parsing problems; ordinary users should not need
5595 * Changed behavior of the `markdown_attribute` extension, to bring
5596 it in line with PHP markdown extra and multimarkdown. Setting
5597 `markdown="1"` on an outer tag affects all contained tags,
5598 recursively, until it is reversed with `markdown="0"` (#1378).
5600 * Revised markdown definition list syntax (#1429). Both the reader
5601 and writer are affected. This change brings pandoc's definition list
5602 syntax into alignment with that used in PHP markdown extra and
5603 multimarkdown (with the exception that pandoc is more flexible about
5604 the definition markers, allowing tildes as well as colons). Lazily
5605 wrapped definitions are now allowed. Blank space is required
5606 between list items. The space before a definition is used to determine
5607 whether it is a paragraph or a "plain" element. **WARNING: This change
5608 may break existing documents!** Either check your documents for
5609 definition lists without blank space between items, or use
5610 `markdown+compact_definition_lists` for the old behavior.
5612 * `.numberLines` now works in fenced code blocks even if no language
5613 is given (#1287, jgm/highlighting-kate#40).
5615 * Improvements to `--filter`:
5617 + Don't search PATH for a filter with an explicit path.
5618 This fixed a bug wherein `--filter ./caps.py` would run `caps.py` from
5619 the system path, even if there was a `caps.py` in the working directory.
5620 + Respect shebang if filter is executable (#1389).
5621 + Don't print misleading error message.
5622 Previously pandoc would say that a filter was not found,
5623 even in a case where the filter had a syntax error.
5627 + Parse `div` and `span` elements even without `--parse-raw`,
5628 provided `native_divs` and `native_spans` extensions are set.
5629 Motivation: these now generate native pandoc Div and Span
5630 elements, not raw HTML.
5631 + Parse EPUB-specific elements if the `epub_html_exts`
5632 extension is enabled. These include `switch`, `footnote`,
5633 `rearnote`, `noteref`.
5637 + Support for inline LaTeX. Inline LaTeX is now accepted and parsed by the
5638 org-mode reader. Both math symbols (like `\tau`) and LaTeX commands (like
5639 `\cite{Coffee}`), can be used without any further escaping (Albert
5642 * Textile reader and writer:
5644 + The `raw_tex` extension is no longer set by default. You can
5645 enable it with `textile+raw_tex`.
5649 + Support `equation`, `informalequation`, `inlineequation` elements with
5650 `mml:math` content. This is converted into LaTeX and put into a Pandoc
5653 * Revised `plain` output, largely following the style of Project
5656 + Emphasis is rendered with `_underscores_`, strong emphasis
5658 + Headings are rendered differently, with space to set them off,
5659 not with setext style underlines. Level 1 headers are ALL CAPS.
5660 + Math is rendered using unicode when possible, but without the
5661 distracting emphasis markers around variables.
5662 + Footnotes use a regular `[n]` style.
5666 + Horizontal rules are now a line across the whole page.
5667 + Prettier pipe tables. Columns are now aligned (#1323).
5668 + Respect the `raw_html` extension. `pandoc -t markdown-raw_html`
5669 no longer emits any raw HTML, including span and div tags
5670 generated by Span and Div elements.
5671 + Use span with style for `SmallCaps` (#1360).
5675 + Autolinks now have class `uri`, and email autolinks have class
5676 `email`, so they can be styled.
5680 + Document formatting is carried over from `reference.docx`.
5681 This includes margins, page size, page orientation, header,
5682 and footer, including images in headers and footers.
5683 + Include abstract (if present) with `Abstract` style (#1451).
5684 + Include subtitle (if present) with `Subtitle` style, rather
5685 than tacking it on to the title (#1451).
5689 + Write empty span elements with an id attribute as org anchors.
5690 For example `Span ("uid",[],[]) []` becomes `<<uid>>`.
5694 + Put table captions above tables, to match the conventional
5695 standard. (Previously they appeared below tables.)
5696 + Use `\(..\)` instead of `$..$` for inline math (#1464).
5697 + Use `\nolinkurl` in email autolinks. This allows them to be styled
5698 using `\urlstyle{tt}`. Thanks to Ulrike Fischer for the solution.
5699 + Use `\textquotesingle` for `'` in inline code. Otherwise we get
5700 curly quotes in the PDF output (#1364).
5701 + Use `\footnote<.>{..}` for notes in beamer, so that footnotes
5702 do not appear before the overlays in which their markers appear
5704 + Don't produce a `\label{..}` for a Div or Span element. Do produce
5705 a `\hyperdef{..}` (#1519).
5709 + If the metadata includes `page-progression-direction` (which can be
5710 `ltr` or `rtl`, the `page-progression-direction` attribute will
5711 be set in the EPUB spine (#1455).
5713 * Custom lua writers:
5715 + Custom writers now work with `--template`.
5716 + Removed HTML header scaffolding from `sample.lua`.
5717 + Made citation information available in lua writers.
5719 * `--normalize` and `Text.Pandoc.Shared.normalize` now consolidate
5720 adjacent `RawBlock`s when possible.
5724 * Added `Text.Pandoc.Readers.Docx`, exporting `readDocx` (Jesse Rosenthal).
5726 * Added `Text.Pandoc.Readers.EPUB`, exporting `readEPUB` (Matthew
5729 * Added `Text.Pandoc.Readers.Txt2Tags`, exporting `readTxt2Tags` (Matthew
5732 * Added `Text.Pandoc.Writers.DokuWiki`, exporting `writeDokuWiki`
5735 * Added `Text.Pandoc.Writers.Haddock`, exporting `writeHaddock`.
5737 * Added `Text.Pandoc.MediaBag`, exporting `MediaBag`, `lookupMedia`,
5738 `insertMedia`, `mediaDirectory`, `extractMediaBag`. The docx and epub
5739 readers return a pair of a `Pandoc` document and a `MediaBag` with
5740 the media resources they contain. This can be extracted using
5741 `--extract-media`. Writers that incorporate media (PDF, Docx,
5742 ODT, EPUB, RTF, or HTML formats with `--self-contained`) will look
5743 for resources in the `MediaBag` generated by the reader, in addition to
5744 the file system or web.
5746 * `Text.Pandoc.Readers.TexMath`: Removed deprecated `readTeXMath`.
5747 Renamed `readTeXMath'` to `texMathToInlines`.
5749 * `Text.Pandoc`: Added `Reader` data type (Matthew Pickering).
5750 `readers` now associates names of readers with `Reader`
5751 structures. This allows inclusion of readers, like the docx
5752 reader, that take binary rather than textual input.
5754 * `Text.Pandoc.Shared`:
5756 + Added `capitalize` (Artyom Kazak), and replaced uses of
5757 `map toUpper` (which give bad results for many languages).
5758 + Added `collapseFilePath`, which removes intermediate `.` and
5759 `..` from a path (Matthew Pickering).
5760 + Added `fetchItem'`, which works like `fetchItem` but searches
5761 a `MediaBag` before looking on the net or file system.
5762 + Added `withTempDir`.
5763 + Added `removeFormatting`.
5764 + Added `extractSpaces` (from HTML reader) and generalized its type
5765 so that it can be used by the docx reader (Matthew Pickering).
5767 + Added `normalizeInlines`, `normalizeBlocks`.
5768 + `normalize` is now `Pandoc -> Pandoc` instead of
5769 `Data a :: a -> a`. Some users may need to change their uses of
5770 `normalize` to the newly exported `normalizeInlines` or
5773 * `Text.Pandoc.Options`:
5775 + Added `writerMediaBag` to `WriterOptions`.
5776 + Removed deprecated and no longer used `readerStrict` in
5777 `ReaderOptions`. This is handled by `readerExtensions` now.
5778 + Added `Ext_compact_definition_lists`.
5779 + Added `Ext_epub_html_exts`.
5780 + Added `Ext_native_divs` and `Ext_native_spans`.
5781 This allows users to turn off the default pandoc behavior of
5782 parsing contents of div and span tags in markdown and HTML
5783 as native pandoc Div blocks and Span inlines.
5785 * `Text.Pandoc.Parsing`:
5787 + Generalized `readWith` to `readWithM` (Matthew Pickering).
5788 + Export `runParserT` and `Stream` (Matthew Pickering).
5789 + Added `HasQuoteContext` type class (Matthew Pickering).
5790 + Generalized types of `mathInline`, `smartPunctuation`, `quoted`,
5791 `singleQuoted`, `doubleQuoted`, `failIfInQuoteContext`,
5792 `applyMacros` (Matthew Pickering).
5793 + Added custom `token` (Matthew Pickering).
5794 + Added `stateInHtmlBlock` to `ParserState`. This is used to keep
5795 track of the ending tag we're waiting for when we're parsing inside
5797 + Added `stateMarkdownAttribute` to `ParserState`. This is used
5798 to keep track of whether the markdown attribute has been set in
5800 + Generalized type of `registerHeader`, using new type classes
5801 `HasReaderOptions`, `HasIdentifierList`, `HasHeaderMap` (Matthew
5802 Pickering). These allow certain common functions to be reused
5803 even in parsers that use custom state (instead of `ParserState`),
5804 such as the MediaWiki reader.
5805 + Moved `inlineMath`, `displayMath` from Markdown reader to Parsing,
5806 and generalized their types (Matthew Pickering).
5808 * `Text.Pandoc.Pretty`:
5811 + Added `blanklines`, which guarantees a certain number of blank lines
5818 + Fixed parsing of indented code in list items. Indented code
5819 at the beginning of a list item must be indented eight spaces
5820 from the margin (or edge of the container), or four spaces
5821 from the list marker, whichever is greater.
5822 + Fixed small bug in HTML parsing with `markdown_attribute`, which
5823 caused incorrect tag nesting for input like
5824 `<aside markdown="1">*hi*</aside>`.
5825 + Fixed regression with intraword underscores (#1121).
5826 + Improved parsing of inline links containing quote characters (#1534).
5827 + Slight rewrite of `enclosure`/`emphOrStrong` code.
5828 + Revamped raw HTML block parsing in markdown (#1330).
5829 We no longer include trailing spaces and newlines in the
5830 raw blocks. We look for closing tags for elements (but without
5831 backtracking). Each block-level tag is its own `RawBlock`;
5832 we no longer try to consolidate them (though `--normalize` will do so).
5833 + Combine consecutive latex environments. This helps when you have
5834 two minipages which can't have blank lines between them (#690, #1196).
5835 + Support smallcaps through span.
5836 `<span style="font-variant:small-caps;">foo</span>` will be
5837 parsed as a `SmallCaps` inline, and will work in all output
5838 formats that support small caps (#1360).
5839 + Prevent spurious line breaks after list items (#1137). When the
5840 `hard_line_breaks` option was specified, pandoc would formerly
5841 produce a spurious line break after a tight list item.
5842 + Fixed table parsing bug (#1333).
5843 + Handle `c++` and `objective-c` as language identifiers in
5844 github-style fenced blocks (#1318).
5845 + Inline math must have nonspace before final `$` (#1313).
5849 + Handle comments at the end of tables. This resolves the issue
5850 illustrated in <http://stackoverflow.com/questions/24009489>.
5851 + Correctly handle table rows with too few cells. LaTeX seems to
5852 treat them as if they have empty cells at the end (#241).
5853 + Handle leading/trailing spaces in `\emph` better.
5854 `\emph{ hi }` gets parsed as `[Space, Emph [Str "hi"], Space]`
5855 so that we don't get things like `* hi *` in markdown output.
5856 Also applies to `\textbf` and some other constructions (#1146).
5857 + Don't assume preamble doesn't contain environments (#1338).
5858 + Allow (and discard) optional argument for `\caption` (James Aspnes).
5862 + Fixed major parsing problem with HTML tables. Table cells were
5863 being combined into one cell (#1341).
5864 + Fixed performance issue with malformed HTML tables.
5865 We let a `</table>` tag close an open `<tr>` or `<td>` (#1167).
5866 + Allow space between `<col>` and `</col>`.
5867 + Added `audio` and `source` in `eitherBlockOrInline`.
5868 + Moved `video`, `svg`, `progress`, `script`, `noscript`, `svg` from
5869 `blockTags` to `eitherBlockOrInline`.
5870 + `map` and `object` were mistakenly in both lists; they have been removed
5872 + Ignore `DOCTYPE` and `xml` declarations.
5876 + Don't parse backslash escapes inside `<source>` (#1445).
5877 + Tightened up template parsing.
5878 The opening `{{` must be followed by an alphanumeric or `:`.
5879 This prevents the exponential slowdown in #1033.
5880 + Support "Bild" for images.
5884 + Better handle elements inside code environments. Pandoc's document
5885 model does not allow structure inside code blocks, but at least this way
5886 we preserve the text (#1449).
5887 + Support `<?asciidoc-br?>` (#1236).
5891 + Fixed list parsing. Lists can now start without an intervening
5893 + HTML block-level tags that do not start a line are parsed as
5894 inline HTML and do not interrupt paragraphs (as in RedCloth).
5898 + Make tildes create inline code (#1345). Also relabeled `code` and
5899 `verbatim` parsers to accord with the org-mode manual.
5900 + Respect `:exports` header argument in code blocks (Craig Bosma).
5901 + Fixed tight lists with sublists (#1437).
5905 + Avoid excess whitespace in `nav.xhtml`. This should improve
5906 TOC view in iBooks (#1392).
5907 + Fixed regression on cover image.
5908 In 1.12.4 and 1.12.4.2, the cover image would not appear properly,
5909 because the metadata id was not correct. Now we derive the id from the
5910 actual cover image filename, which we preserve rather than using
5912 + Keep newlines between block elements. This allows
5913 easier diff-ability (#1424).
5914 + Use `stringify` instead of custom `plainify`.
5915 + Use `renderTags'` for all tag rendering. This properly handles tags
5916 that should be self-closing. Previously `<hr/>` would appear in EPUB
5917 output as `<hr></hr>` (#1420).
5918 + Better handle HTML media tags.
5919 + Handle multiple dates with OPF `event` attributes. Note: in EPUB3 we
5920 can have only one dc:date, so only the first one is used.
5924 + Correctly handle figures in notes. Notes can't contain figures in
5925 LaTeX, so we fake it to avoid an error (#1053).
5926 + Fixed strikeout + highlighted code (#1294).
5927 Previously strikeout highlighted code caused an error.
5931 + Improved detection of autolinks with URLs containing escapes.
5935 + Improved image embedding: `fetchItem'` is now used to get the
5936 images, and calculated image sizes are indicated in the RTF.
5937 + Avoid extra paragraph tags in metadata (#1421).
5941 + Deactivate "incremental" inside slide speaker notes (#1394).
5942 + Don't include empty items in the table of contents for
5943 slide shows. (These would result from creating a slide
5944 using a horizontal rule.)
5948 + Minor renaming of `st` prefixed names.
5952 + Double up emphasis and strong emphasis markers in intraword
5953 contexts, as required by asciidoc (#1441).
5957 + Avoid wrapping that might start a list, blockquote, or header (#1013).
5958 + Use Span instead of (hackish) `SmallCaps` in `plainify`.
5959 + Don't use braced attributes for fenced code (#1416).
5960 If `Ext_fenced_code_attributes` is not set, the first class
5961 attribute will be printed after the opening fence as a bare word.
5962 + Separate adjacent lists of the same kind with an HTML comment (#1458).
5966 + Fixed treatment of data uris for images (#1062).
5970 + Use Compact style for empty table cells (#1353).
5971 Otherwise we get overly tall lines when there are empty
5972 table cells and the other cells are compact.
5973 + Create overrides per-image for `media/` in reference docx.
5974 This should be somewhat more robust and cover more types of images.
5975 + Improved `entryFromArchive` to avoid an unneeded parse.
5976 + Section numbering carries over from reference.docx (#1305).
5977 + Simplified `abstractNumId` numbering. Instead of sequential numbering,
5978 we assign numbers based on the list marker styles.
5980 * `Text.Pandoc.Options`:
5982 + Removed `Ext_fenced_code_attributes` from `markdown_github`
5985 * `Text.Pandoc.ImageSize`:
5987 + Use default instead of failing if image size not found
5988 in exif header (#1358).
5989 + ignore unknown exif header tag rather than crashing.
5990 Some images seem to have tag type of 256, which was causing
5993 * `Text.Pandoc.Shared`:
5995 + `fetchItem`: unescape URI encoding before reading local file (#1427).
5996 + `fetchItem`: strip a fragment like `?#iefix` from the extension before
5997 doing mime lookup, to improve mime type guessing.
5998 + Improved logic of `fetchItem`: absolute URIs are fetched from the net;
5999 other things are treated as relative URIs if `sourceURL` is `Just _`,
6000 otherwise as file paths on the local file system.
6001 + `fetchItem` now properly handles links without a protocol (#1477).
6002 + `fetchItem` now escapes characters not allowed in URIs before trying
6004 + Fixed runtime error with `compactify'DL` on certain lists (#1452).
6006 * `pandoc.hs`: Don't strip path off of `writerSourceURL`: the path is
6007 needed to resolve relative URLs when we fetch resources (#750).
6009 * `Text.Pandoc.Parsing`
6011 + Simplified `dash` and `ellipsis` (#1419).
6012 + Removed `(>>~)` in favor of the equivalent `(<*)` (Matthew Pickering).
6013 + Generalized functions to use `ParsecT` (Matthew Pickering).
6014 + Added `isbn` and `pmid` to list of recognized schemes (Matthew
6019 * Added haddock template.
6020 * EPUB3: Added `type` attribute to `link` tags. They are supposed to
6021 be "advisory" in HTML5, but kindlegen seems to require them.
6022 * EPUB3: Put title page in section with `epub:type="titlepage"`.
6023 * LaTeX: Made `\subtitle` work properly (#1327).
6024 * LaTeX/Beamer: remove conditional around date (#1321).
6025 * LaTeX: Added `lot` and `lof` variables, which can be set to
6026 get `\listoftables` and `\listoffigures` (#1407). Note that
6027 these variables can be set at the command line with `-Vlot -Vlof`
6028 or in YAML metadata.
6030 [under the hood improvements]
6032 * Rewrote normalize for efficiency (#1385).
6034 * Rewrote Haddock reader to use `haddock-library` (#1346).
6036 + This brings pandoc's rendering of haddock markup in line
6037 with the new haddock.
6038 + Fixed line breaks in `@` code blocks.
6039 + alex and happy are no longer build-depends.
6041 * Added `Text.Pandoc.Compat.Directory` to allow building against
6042 different versions of the `directory` library.
6044 + Added `Text.Pandoc.Compat.Except` to allow building against
6045 different verions of `mtl`.
6047 * Code cleanup in some writers, using Reader monad to avoid
6048 passing options parameter around (Matej Kollar).
6050 * Improved readability in `pandoc.hs`.
6052 * Miscellaneous code cleanups (Artyom Kazak).
6054 * Avoid `import Prelude hiding (catch)` (#1309, thanks to Michael
6057 * Changed `http-conduit` flag to `https`. Depend on `http-client`
6058 and `http-client-tls` instead of `http-conduit`. (Note: pandoc still
6059 depends on `conduit` via `yaml`.)
6061 * Require `highlighting-kate >= 0.5.8.5` (#1271, #1317, Debian #753299).
6062 This change to highlighting-kate means that PHP fragments no longer need
6063 to start with `<?php`. It also fixes a serious bug causing failures with
6066 * Require latest `texmath`. This fixes `\tilde{E}` and allows
6067 `\left` to be used with `]`, `)` etc. (#1319), among many other
6070 * Require latest `zip-archive`. This has fixes for unicode path names.
6072 * Added tests for plain writer.
6074 * `Text.Pandoc.Templates`:
6076 + Fail informatively on template syntax errors.
6077 With the move from parsec to attoparsec, we lost good error
6078 reporting. In fact, since we weren't testing for end of input,
6079 malformed templates would fail silently. Here we revert back to
6080 Parsec for better error messages.
6081 + Use `ordNub` (#1022).
6085 + Made benchmarks compile again (Artyom Kazak).
6086 + Fixed so that the failure of one benchmark does not prevent others
6087 from running (Artyom Kazak).
6088 + Use `nfIO` instead of the `getLength` trick to force full evaluation.
6089 + Changed benchmark to use only the test suite, so that benchmarks
6092 * Windows build script:
6094 + Add `-windows` to file name.
6095 + Use one install command for pandoc, pandoc-citeproc.
6096 + Force install of pandoc-citeproc.
6098 * `make_osx_package`: Call zip file `pandoc-VERSION-osx.zip`.
6099 The zip should not be named `SOMETHING.pkg.zip`, or OSX finder
6100 will extract it into a folder named `SOMETHING.pkg`, which it
6101 will interpret as a defective package (#1308).
6105 + Made headers for all extensions so they have IDs and can be
6106 linked to (Beni Cherniavsky-Paskin).
6107 + Fixed typos (Phillip Alday).
6108 + Fixed documentation of attributes (#1315).
6109 + Clarified documentation on small caps (#1360).
6110 + Better documentation for `fenced_code_attributes` extension
6112 + Documented fact that you can put YAML metadata in a separate file
6118 * Require highlighting-kate >= 0.5.8. Fixes a performance regression.
6120 * Shared: `addMetaValue` now behaves slightly differently:
6121 if both the new and old values are lists, it concatenates their
6122 contents to form a new list.
6126 + Set `bibliography` in metadata from `\bibliography` or
6127 `\addbibresource` command.
6128 + Don't error on `%foo` with no trailing newline.
6132 + Support code block headers (`#+BEGIN_SRC ...`) (Albert Krewinkel).
6133 + Fix parsing of blank lines within blocks (Albert Krewinkel).
6134 + Support pandoc citation extension (Albert Krewinkel). This can
6135 be turned off by specifying `org-citations` as the input format.
6139 + `citeKey` moved to `Text.Pandoc.Parsing` so it can be used by
6140 other readers (Albert Krewinkel).
6142 * `Text.Pandoc.Parsing`:
6144 + Added `citeKey` (see above).
6145 + Added `HasLastStrPosition` type class and `updateLastStrPos`
6146 and `notAfterString` functions.
6148 * Updated copyright notices (Albert Krewinkel).
6150 * Added default.icml to data files so it installs with the package.
6154 + The binary is now built with options to ensure that it can be
6155 used with OSX 10.6+.
6156 + Moved OSX package materials to osx directory.
6157 + Added OSX package uninstall script, included in the zip container
6158 (thanks to Daniel T. Staal).
6162 * Made it possible to run filters that aren't executable (#1096).
6163 Pandoc first tries to find the executable (searching the path
6164 if path isn't given). If it fails, but the file exists and has
6165 a `.py`, `.pl`, `.rb`, `.hs`, or `.php` extension, pandoc runs the filter
6166 using the appropriate interpreter. This should make it easier to
6167 use filters on Windows, and make it more convenient for everyone.
6169 * Added Emacs org-mode reader (Albert Krewinkel).
6171 * Added InDesign ICML Writer (Mauro Bieg).
6175 + Accept image links in more languages (Jaime Marquínez Ferrándiz).
6176 + Fixed bug in certain nested lists (#1213). If a level 2 list was
6177 followed by a level 1 list, the first item of the level 1 list
6179 + Handle table rows containing just an HTML comment (#1230).
6183 + Give better location information on errors, pointing to line
6184 numbers within included files (#1274).
6185 + LaTeX reader: Better handling of `table` environment (#1204).
6186 Positioning options no longer rendered verbatim.
6187 + Better handling of figure and table with caption (#1204).
6188 + Handle `@{}` and `p{length}` in tabular. The length is not actually
6189 recorded, but at least we get a table (#1180).
6190 + Properly handle `\nocite`. It now adds a `nocite` metadata
6191 field. Citations there will appear in the bibliography but not
6192 in the text (unless you explicitly put a `$nocite$` variable
6197 + Ensure that whole numbers in YAML metadata are rendered without
6198 decimal points. (This became necessary with changes to aeson
6199 and yaml libraries. aeson >= 0.7 and yaml >= 0.8.8.2 are now required.)
6200 + Fixed regression on line breaks in strict mode (#1203).
6201 + Small efficiency improvements.
6202 + Improved parsing of nested `div`s. Formerly a closing `div` tag
6203 would be missed if it came right after other block-level tags.
6204 + Avoid backtracking when closing `</div>` not found.
6205 + Fixed bug in reference link parsing in `markdown_mmd`.
6206 + Fixed a bug in list parsing (#1154). When reading a raw list
6207 item, we now strip off up to 4 spaces.
6208 + Fixed parsing of empty reference link definitions (#1186).
6209 + Made one-column pipe tables work (#1218).
6213 + Better support for attributes. Instead of being ignored, attributes
6214 are now parsed and included in Span inlines. The output will be a bit
6215 different from stock textile: e.g. for `*(foo)hi*`, we'll get
6216 `<em><span class="foo">hi</span></em>` instead of
6217 `<em class="foo">hi</em>`. But at least the data is not lost.
6218 + Improved treatment of HTML spans (%) (#1115).
6219 + Improved link parsing. In particular we now pick up on attributes.
6220 Since pandoc links can't have attributes, we enclose the whole link in
6221 a span if there are attributes (#1008).
6222 + Implemented correct parsing rules for inline markup (#1175, Matthew
6224 + Use Builder (Matthew Pickering).
6225 + Fixed list parsing bug (#1500).
6226 + Don't allow inline formatting to extend over newlines.
6227 This matches the behavior of RedCarpet, avoids some ugly bugs,
6228 and improves performance.
6232 + Better treatment of `formalpara`. We now emit the title (if present)
6233 as a separate paragraph with boldface text (#1215).
6234 + Set metadata `author` not `authors`.
6235 + Added recognition of `authorgroup` and `releaseinfo` elements (#1214,
6237 + Converted current meta information parsing in DocBook to a more
6238 extensible version which is aware of the more recent meta
6239 representation (Matthew Pickering).
6243 + Require tagsoup 0.13.1, to fix a bug with parsing of script tags
6245 + Treat processing instructions & declarations as block. Previously
6246 these were treated as inline, and included in paragraph tags in HTML
6247 or DocBook output, which is generally not what is wanted (#1233).
6248 + Updated `closes` with rules from HTML5 spec.
6249 + Use Builder (Matthew Pickering, #1162).
6253 + Remove duplicate `http` in PEP links (Albert Krewinkel).
6254 + Make rst figures true figures (#1168, CasperVector)
6255 + Enhanced Pandoc's support for rST roles (Merijn Verstaaten).
6256 rST parser now supports: all built-in rST roles, new role definition,
6257 role inheritance, though with some limitations.
6258 + Use `author` rather than `authors` in metadata.
6259 + Better handling of directives. We now correctly handle field
6260 lists that are indented more than three spaces. We treat an
6261 `aafig` directive as a code block with attributes, so it can be
6262 processed in a filter (#1212).
6266 + Mark span contents with label if span has an ID (Albert Krewinkel).
6267 + Made `--toc-depth` work well with books in latex/pdf output (#1210).
6268 + Handle line breaks in simple table cells (#1217).
6269 + Workaround for level 4-5 headers in quotes. These previously produced
6270 invalid LaTeX: `\paragraph` or `\subparagraph` in a `quote` environment.
6271 This adds an `mbox{}` in these contexts to work around the problem.
6272 See <http://tex.stackexchange.com/a/169833/22451> (#1221).
6273 + Use `\/` to avoid en-dash ligature instead of `-{}-` (Vaclav Zeman).
6274 This is to fix LuaLaTeX output. The `-{}-` sequence does not avoid the
6275 ligature with LuaLaTeX but `\/` does.
6276 + Fixed string escaping in `hyperref` and `hyperdef` (#1130).
6278 * ConTeXt writer: Improved autolinks (#1270).
6282 + Improve handling of hard line breaks in Docbook writer
6283 (Neil Mayhew). Use a `<literallayout>` for the entire paragraph, not
6284 just for the newline character.
6285 + Don't let line breaks inside footnotes influence the enclosing
6286 paragraph (Neil Mayhew).
6287 + Distinguish tight and loose lists in DocBook output, using
6288 `spacing="compact"` (Neil Mayhew, #1250).
6290 * Docx writer: When needed files are not present in the user's
6291 `reference.docx`, fall back on the versions in the `reference.docx`
6292 in pandoc's data files. This fixes a bug that occurs when a
6293 `reference.docx` saved by LibreOffice is used. (#1185)
6297 + Include extension in epub ids. This fixes a problem with duplicate
6298 extensions for fonts and images with the same base name but different
6300 + Handle files linked in raw `img` tags (#1170).
6301 + Handle media in `audio` source tags (#1170).
6302 Note that we now use a `media` directory rather than `images`.
6303 + Incorporate files linked in `video` tags (#1170). `src` and `poster`
6304 will both be incorporated into `content.opf` and the epub container.
6308 + Add colgroup around col tags (#877). Also affects EPUB writer.
6309 + Fixed bug with unnumbered section headings. Unnumbered section
6310 headings (with class `unnumbered`) were getting numbers.
6311 + Improved detection of image links. Previously image links with
6312 queries were not recognized, causing `<embed>` to be used instead
6315 * Man writer: Ensure that terms in definition lists aren't line wrapped
6320 + Use proper escapes to avoid unwanted lists (#980). Previously we used
6321 0-width spaces, an ugly hack.
6322 + Use longer backtick fences if needed (#1206). If the content contains a
6323 backtick fence and there are attributes, make sure longer fences are
6324 used to delimit the code. Note: This works well in pandoc, but github
6325 markdown is more limited, and will interpret the first string of three
6326 or more backticks as ending the code block.
6328 * RST writer: Avoid stack overflow with certain tables (#1197).
6330 * RTF writer: Fixed table cells containing paragraphs.
6334 + Correctly handle UTF-8 in custom lua scripts (#1189).
6335 + Fix bugs with lua scripts with mixed-case filenames and
6336 paths containing `+` or `-` (#1267). Note that `getWriter`
6337 in `Text.Pandoc` no longer returns a custom writer on input
6340 * AsciiDoc writer: Handle multiblock and empty table cells
6341 (#1245, #1246). Added tests.
6343 * `Text.Pandoc.Options`: Added `readerTrace` to `ReaderOptions`
6345 * `Text.Pandoc.Shared`:
6347 + Added `compactify'DL` (formerly in markdown reader) (Albert Krewinkel).
6348 + Fixed bug in `toRomanNumeral`: numbers ending with '9' would
6349 be rendered as Roman numerals ending with 'IXIV' (#1249). Thanks to
6351 + `openURL`: set proxy with value of http_proxy env variable (#1211).
6352 Note: proxies with non-root paths are not supported, due to
6353 limitations in `http-conduit`.
6355 * `Text.Pandoc.PDF`:
6357 + Ensure that temp directories deleted on Windows (#1192). The PDF is
6358 now read as a strict bytestring, ensuring that process ownership will
6359 be terminated, so the temp directory can be deleted.
6360 + Use `/` as path separators in a few places, even on Windows.
6361 This seems to be necessary for texlive (#1151, thanks to Tim Lin).
6362 + Use `;` for `TEXINPUTS` separator on Windows (#1151).
6363 + Changes to error reporting, to handle non-UTF8 error output.
6365 * `Text.Pandoc.Templates`:
6367 + Removed unneeded datatype context (Merijn Verstraaten).
6369 + YAML objects resolve to "true" in conditionals (#1133).
6370 Note: If `address` is a YAML object and you just have `$address$`
6371 in your template, the word `true` will appear, which may be
6372 unexpected. (Previously nothing would appear.)
6374 * `Text.Pandoc.SelfContained`:
6376 + `mkSelfContained` now takes just two arguments, `WriterOptions` and
6378 * It no longer looks in data files. This only made sense when we
6379 had copies of slidy and S5 code there.
6380 * `fetchItem'` is used instead of the nearly duplicate `getItem`.
6381 + Handle `poster` attribute in `video` tags (#1188).
6383 * `Text.Pandoc.Parsing`:
6385 + Made `F` an instance of Applicative (#1138).
6386 + Added `stateCaption`.
6387 + Added `HasMacros`, simplified other typeclasses.
6388 Removed `updateHeaderMap`, `setHeaderMap`, `getHeaderMap`,
6389 `updateIdentifierList`, `setIdentifierList`, `getIdentifierList`.
6390 + Changed the smart punctuation parser to return `Inlines`
6391 rather than `Inline` (Matthew Pickering).
6392 + Changed `HasReaderOptions`, `HasHeaderMap`, `HasIdentifierList`
6393 from typeclasses of monads to typeclasses of states. This simplifies
6394 the instance definitions and provides more flexibility. Generalized
6395 type of `getOption` and added a default definition. Removed
6396 `askReaderOption`. Added `extractReaderOption`. Added
6397 `extractHeaderMap` and `updateHeaderMap` in `HasHeaderMap`.
6398 Gave default definitions for `getHeaderMap`, `putHeaderMap`,
6399 `modifyHeaderMap`. Added `extractIdentifierList` and
6400 `updateIdentifierList` in `HasIdentifierList`. Gave defaults
6401 for `getIdentifierList`, `putIdentifierList`, and
6402 `modifyIdentifierList`. The ultimate goal here is to allow different
6403 parsers to use their own, tailored parser states (instead of
6404 `ParserState`) while still using shared functions.
6408 + LaTeX template: Use `fontenc` package only with `pdflatex` (#1164).
6409 + LaTeX template: Add `linestretch` and `fontfamily` variables.
6410 + LaTeX template: Conditionalize author and date commands.
6411 + Beamer template: Consistent styles for figure and table captions
6413 + LaTeX and beamer template: Adjust widths correctly for oversized
6414 images. Use `\setkeys{Gin}{}` to set appropriate defaults for
6415 `\includegraphics` (Yihui Xie, Garrick Aden-Buie). Load
6416 `upquote` only after `fontenc` (Yihui Xie).
6417 + Beamer template: Added caption package (#1200).
6418 + Beamer template: changes for better unicode handling (KarolS).
6419 + DocBook template: use `authorgroup` if there are authors.
6420 + revealjs template: Move `include-after` to end (certainlyakey).
6421 + revealjs template: Fixed PDF print function (#1220, kevinkenan).
6423 * Bumped version bounds of dependencies.
6425 * Added a `--trace` command line option, for debugging backtracking
6426 bugs. So far this only works with the markdown reader.
6428 * MathMLinHTML: Fixed deprecation warning (#362, gwern, Albert Krewinkel).
6430 * Updated travis script to test with multiple GHC versions.
6432 * Force failure of a Travis build if GHC produces warnings (Albert
6435 * Add `.editorconfig` (Albert Krewinkel).
6436 See <http://editorconfig.org/> for details.
6438 * Give more useful error message if '-t pdf' is specified (#1155).
6440 * Added `Cite`, `SmallCaps` to `Arbitrary` instance (#1269).
6442 * Allow `html4` as a synonym of `html` as a reader (it already works
6447 + Added an explanation of how to use YAML metadata to
6448 force items to appear in the bibliography without citations in
6449 the text (like LaTeX `\nocite`).
6450 + Added note to `--bibtex/--natbib`: not for use in making PDF
6451 (#1194, thanks to nahoj).
6452 + Added explanatory notes about `--natbib` and `--biblatex`.
6453 + Added specification of legal syntax for citation keys.
6454 + Fixed variable defaults documentation (Albert Krewinkel).
6456 * Removed copyright statements for files that have been removed
6459 * Moved some doc files from `data-files` to `extra-source-files` (#1123).
6460 They aren't needed at runtime. We keep README and COPYRIGHT in data
6461 to ensure that they'll be available on all systems on which pandoc
6464 * Use cabal sandboxes in Windows build script.
6468 * To changes to source; recompiled tarball with latest alex and
6469 happy, so they will work with GHC 7.8.
6473 * Bumped version bounds for blaze-html, blaze-markup.
6475 * ImageSize: Avoid use of lookAhead, which is not in binary >= 0.6
6478 * Fixed mediawiki ordered list parsing (#1122).
6480 * HTML reader: Fixed bug reading inline math with `$$` (#225).
6482 * Added support for LaTeX style literate Haskell code blocks in rST
6483 (Merijn Verstraaten).
6487 * Relaxed version constraint on binary, allowing the use of binary 0.5.
6491 * The `--bibliography` option now sets the `biblio-files` variable.
6492 So, if you're using `--natbib` or `--biblatex`, you can just use
6493 `--bibliography=foo.bib` instead of `-V bibliofiles=foo`.
6495 * Don't run pandoc-citeproc filter if `--bibliography` is
6496 used together with `--natbib` or `--biblatex` (Florian Eitel).
6500 + Updated beamer template to include booktabs.
6501 + Added `abstract` variable to LaTeX template.
6502 + Put `header-includes` after `title` in LaTeX template (#908).
6503 + Allow use of `\includegraphics[size]` in beamer.
6504 This just required porting a macro definition from the default
6505 LaTeX template to the default beamer template.
6507 * `reference.docx`: Include `FootnoteText` style.
6508 Otherwise Word ignores the style, even when specified in the `pPr`.
6511 * `reference.odt`: Tidied `styles.xml`.
6513 * Relaxed version bounds for dependencies.
6515 * Added `withSocketsDo` around http conduit code in `openURL`,
6516 so it works on Windows (#1080).
6518 * Added `Cite` function to `sample.lua`.
6522 + Fixed regression in title blocks (#1089).
6523 If author field was empty, date was being ignored.
6524 + Allow backslash-newline hard line breaks in grid and
6525 multiline table cells.
6526 + Citation keys may now start with underscores, and may contain
6527 underscores adjacent to internal punctuation.
6531 + Add support for `Verb` macro (jrnold) (#1090).
6532 + Support babel-style quoting: `` "`..."' ``.
6534 * Properly handle script blocks in strict mode. (That is,
6535 `markdown-markdown_in_html_blocks`.) Previously a spurious
6536 `<p>` tag was being added (#1093).
6538 * Docbook reader: Avoid failure if `tbody` contains no `tr` or `row`
6543 + Factored out function for table cell creation.
6544 + Better treatment of footnotes in tables.
6545 Notes now appear in the regular sequence, rather than in the
6546 table cell. (This was a regression in 1.10.)
6548 * HTML reader: Parse name/content pairs from meta tags as metadata.
6551 * Moved `fixDisplayMath` from Docx writer to `Writer.Shared`.
6553 * OpenDocument writer: Fixed `RawInline`, `RawBlock` so they don't escape.
6555 * ODT writer: Use mathml for proper rendering of formulas.
6556 Note: LibreOffice's support for this seems a bit buggy. But
6557 it should be better than what we had before.
6559 * RST writer: Ensure no blank line after def in definition list (#992).
6561 * Markdown writer: Don't use tilde code blocks with braced attributes in
6562 `markdown_github` output. A consequence of this change is that the
6563 backtick form will be preferred in general if both are enabled. That
6564 is good, as it is much more widespread than the tilde form. (#1084)
6566 * Docx writer: Fixed problem with some modified reference docx files.
6567 Include `word/_rels/settings.xml.rels` if it exists, as well as other
6568 `rels` files besides the ones pandoc generates explicitly.
6572 + With `--toc`, headers no longer link to themselves (#1081).
6573 + Omit footnotes from TOC entries. Otherwise we get doubled
6574 footnotes when headers have notes!
6578 + Avoid duplicate notes when headings contain notes.
6579 This arose because the headings are copied into the metadata
6580 "title" field, and the note gets rendered twice. We strip the
6581 note now before putting the heading in "title".
6582 + Strip out footnotes from toc entries.
6583 + Fixed bug with `--epub-stylesheet`. Now the contents of
6584 `writerEpubStylesheet` (set by `--epub-stylesheet`)
6585 should again work, and take precedence over a stylesheet specified
6588 * `Text.Pandoc.MIME`: Added `wmf`, `emf`.
6590 * `Text.Pandoc.Shared`: `fetchItem` now handles image URLs beginning
6593 * `Text.Pandoc.ImageSize`: Parse EXIF format JPEGs. Previously
6594 we could only get size information for JFIF format, which led
6595 to squished images in Word documents. Closes #976.
6597 * Removed old `MarkdownTest_1.0.3` directory (#1104).
6601 * Markdown reader: Fixed regression in list parser, involving
6602 continuation lines containing raw HTML (or even verbatim raw HTML).
6606 * Metadata may now be included in YAML blocks in a markdown document.
6614 text: An investigation of metadata
6622 text: doi:10.234234.234/33
6624 rights: (c) 2007 John Smith, CC BY-NC
6625 cover-image: img/mypic.jpg
6628 Metadata may still be provided using `--epub-metadata`; it will
6629 be merged with the metadata in YAML blocks.
6633 + `meta` tags are now used instead of `opf` attributes for EPUB3.
6634 + Insert "svg" property as needed in opf (EPUB 3).
6635 + Simplify `imageTypeOf` using `getMimeType`.
6636 + Add properties attribute to `cover-image` item for EPUB 3.
6637 + Don't include node for `cover.xhtml` if no cover!
6638 + Ensure that same identifier is used throughout (#1044).
6639 If an identifier is given in metadata, we use that; otherwise
6640 we generate a random uuid.
6641 + Add cover reference to guide element (EPUB 2) (Shaun Attfield).
6642 Fixes an issue with Calibre putting the cover at the end of the book
6643 if the spine has `linear="no"`. Apparently this is best practice
6644 for other converters as well:
6645 <http://www.idpf.org/epub/20/spec/OPF_2.0.1_draft.htm#Section2.6>.
6646 + Allow `stylesheet` in metadata. The value is a path to the stylesheet.
6647 + Allow partial dates: `YYYY`, `YYYY-MM`.
6649 * Markdown writer: Fix rendering of tight sublists (#1050).
6650 Previously a spurious blank line was included after a tight sublist.
6652 * ODT writer: Add `draw:name` attribute to `draw:frame` elements (#1069).
6653 This is reported to be necessary to avoid an error from recent
6654 versions of Libre Office when files contain more than one image
6655 Thanks to wmanley for reporting and diagnosing the problem.
6657 * ConTeXt writer: Don't hardcode figure/table placement and numbering.
6658 Instead, let this be set in the template, using `\setupfloat`.
6659 Thanks to on4aa and Aditya Mahajan for the suggestion (#1067).
6661 * Implemented CSL flipflopping spans in DOCX, LaTeX, and HTML writers.
6663 * Fixed bug with markdown intraword emphasis. Closes #1066.
6665 * Docbook writer: Hierarchicalize block content in metadata.
6666 Previously headers just disappeared from block-level metadata
6667 when it was used in templates. Now we apply the 'hierarchicalize'
6668 transformation. Note that a block headed by a level-2 header will
6669 turn into a `<sect1>` element.
6671 * OpenDocument writer: Skip raw HTML (#1035).
6672 Previously it was erroneously included as verbatim text.
6674 * HTML/EPUB writer, footnotes: Put `<sup>` tag inside `<a>` tags.
6675 This allows better control of formatting, since the `<a>`
6676 tags have a distinguishing class (#1049).
6680 + Use mime type info returned by fetchItem.
6681 + Fixed core metadata (#1046).
6682 Don't create empty date nodes if no date given.
6683 Don't create multiple `dc:creator` nodes; instead separate by
6685 + Fix URL for core-properties in `_rels/.rels` (#1046).
6687 * Plain writer: don't print `<span>` tags.
6691 + Fix definition lists with internal links in terms (#1032).
6692 This fix puts braces around a term that contains an internal
6693 link, to avoid problems with square brackets.
6694 + Properly escape pdftitle, pdfauthor (#1059).
6695 + Use booktabs package for tables (thanks to Jose Luis Duran).
6697 * Updated beamer template. Now references should work properly
6698 (in a slide) when `--biblatex` or `--natbib` is used.
6702 + Parse contents of curly quotes or matched `"` as quotes.
6703 + Support `\textnormal` as span with class `nodecor`.
6704 This is needed for pandoc-citeproc.
6705 + Improved citation parsing. This fixes a run-time error that occured
6706 with `\citet{}` (empty list of keys). It also ensures that empty keys
6709 * MediaWiki reader: Add automatic header identifiers.
6713 + Use pandoc `Div` and `Span` for raw `<div>`, `<span>` when
6715 + Recognize `svg` tags as block level content (thanks to MinRK).
6716 + Parse LaTeX math if appropriate options are set.
6720 + Yaml block must start immediately after `---`. If there's a blank
6721 line after `---`, we interpreted it as a horizontal rule.
6722 + Correctly handle empty bullet list items.
6723 + Stop parsing "list lines" when we hit a block tag.
6724 This fixes exponential slowdown in certain input, e.g.
6725 a series of lists followed by `</div>`.
6727 * Slides: Preserve `<div class="references">` in references slide.
6729 * `Text.Pandoc.Writer.Shared`:
6731 + Fixed bug in `tagWithAttrs`. A space was omitted before key-value
6732 attributes, leading to invalid HTML.
6733 + `normalizeDate`: Allow dates with year only (thanks to Shaun Attfield).
6734 + Fixed bug in `openURL` with `data:` URIs. Previously the base-64
6735 encoded bytestring was returned. We now decode it so it's a proper
6738 * DocBook reader: Handle numerical attributes starting with decimal.
6739 Also use `safeRead` instead of `read`.
6741 * `Text.Pandoc.Readers.TexMath`: Export `readTeXMath'`, which attends
6742 to display/inline. Deprecate `readTeXMath`, and use `readTeXMath'`
6743 in all the writers. Require `texmath >= 0.6.5.2`.
6745 * `Text.Pandoc.MIME`:
6747 + Add entry for `jfif`.
6748 + In looking up extensions, drop the encoding info.
6749 E.g. for 'image/jpg;base64' we should lookup 'image/jpg'.
6751 * Templates: Changed how array variables are resolved. Previously if
6752 `foo` is an array (which might be because multiple values were set on
6753 the command line), `$foo$` would resolve to the concatenation of the
6754 elements of foo. This is rarely useful behavior. It has been changed
6755 so that the first value is rendered. Of course, you can still iterate
6756 over the values using `$for(foo)$`. This has the result that you can
6757 override earlier settings using `-V` by putting new values later on the
6758 command line, which is useful for many purposes.
6760 * `Text.Pandoc`: Don't default to `pandocExtensions` for all writers.
6762 * Allow "epub2" as synonym for "epub", "html4" for "html".
6764 * Don't look for slidy files in data files with `--self-contained`.
6766 * Allow `https:` command line arguments to be downloaded.
6768 * Fixed `make_osx_package.sh` so data files embedded in `pandoc-citeproc`.
6772 * `Text.Pandoc.Definition`: Changed default JSON serialization format.
6773 Instead of `{"Str": "foo"}`, for example, we now have `{"t": "Str",
6774 "c": "foo"}`. This new format is easier to work with outside of Haskell.
6775 Incidentally, "t" stands for "tag", "c" for "contents".
6777 * MediaWiki reader: Trim contents of `<math>` tags, to avoid problems
6778 when converting to markdown (#1027).
6782 + Ensure that preamble doesn't contribute to the text of
6784 + Fixed character escaping in \url{}. Previously `\~` wasn't handled
6785 properly, among others.
6786 + Parse `{groups}` as `Span`. This is needed for accurate conversion of
6787 bibtex titles, since we need to know what was protected from
6788 titlecase conversions.
6792 + Specially escape non-ascii characters in labels.
6793 Otherwise we can get compile errors and other bugs when
6794 compiled with pdflatex (#1007). Thanks to begemotv2718 for the fix.
6795 + Add link anchors for code blocks with identifiers (#1025).
6797 * Throughout the code, use `isURI` instead of `isAbsoluteURI`.
6798 It allows fragments identifiers.
6802 + A Div element with class "notes" is treated as speaker
6803 notes. Currently beamer goes to `\note{}`, revealjs to
6804 `<aside class="notes">`, and the notes are simply suppressed in
6805 other formats (#925).
6806 + Fixed `. . .` (pause) on HTML slide formats. Closes #1029.
6807 The old version caused a pause to be inserted before the first
6808 material on a slide. This has been fixed.
6809 + Removed data files for s5, slideous, slidy.
6810 Users of s5 and slideous will have to download the needed
6811 files, as has been documented for some time in the README.
6812 By default, slidy code will be sought on the web, as before.
6814 * HTML writer: Insert command to typeset mathjax only in slideous output
6817 * RST writer: Skip spaces after display math. Otherwise we get indentation
6818 problems, and part of the next paragraph may be rendered as part of the
6821 * OpenDocument writer: Fix formatting of strikeout code (#995),
6822 thanks to wilx. don't use `font-face-decls` variable.
6824 * Fixed test suite so it works with cabal sandboxes.
6828 * Removed `stringable` dependency.
6832 * Allow `--metadata` to be repeated for the same key to form a list.
6833 This also has the effect that `--bibliography` can be repeated,
6836 * Handle boolean values in `--metadata`. Note that anything not parseable
6837 as a YAML boolean or string is treated as a literal string.
6838 You can get a string value with "yes", or any of the strings interpretable
6839 as booleans, by quoting it:
6841 -M boolvalue=yes -M stringvalue='"yes"'
6843 * LaTeX writer: Don't print references if `--natbib` or `--biblatex`
6846 * DOCX writer: Add `settings.xml` to the zip container. Fixes a bug
6847 in which docx files could not be read by some versions of Word
6848 and LibreOffice (#990).
6850 * Fixed a regression involving slide shows with bibliographies.
6851 The Div container around references messed up the procedure for carving
6852 a document into slides. So we now remove the surrounding Div in
6855 * More informative error message when a filter is not found in path.
6857 * Depend on pandoc-types 1.12.1. This provide `ToJSONFilter`
6858 instances for `Data a => a -> [a]` and `Data a => a -> IO [a]`.
6860 * Don't use unicode_collation in building OSX package:
6861 it adds something like 50MB of dependencies to the package.
6863 * Declare alex and happy as build-tools (#986).
6869 * Much more flexible metadata, including arbitrary fields and structured
6870 values. Metadata can be specified flexibly in pandoc markdown using
6871 YAML metadata blocks, which may occur anywhere in the document:
6874 title: Here is my title.
6876 This is the abstract.
6882 tags: [cat, dog, animal]
6885 Metadata fields automatically populate template variables.
6887 * Added `opml` (OPML) as input and output format. The `_note` attribute,
6888 used in OmniOutliner and supported by multimarkdown, is supported.
6889 We treat the contents as markdown blocks under a section header.
6891 * Added `haddock` (Haddock markup) as input format (David Lazar).
6893 * Added `revealjs` output format, for reveal.js HTML 5 slide shows.
6894 (Thanks to Jamie F. Olson for the initial patch.)
6895 Nested vertical stacks are used for hierarchical structure.
6896 Results for more than one level of nesting may be odd.
6898 * Custom writers can now be written in lua.
6900 pandoc -t data/sample.lua
6902 will load the script sample.lua and use it as a custom writer.
6903 (For a sample, do `pandoc --print-default-data-file sample.lua`.)
6904 Note that pandoc embeds a lua interpreter, so lua need not be
6905 installed separately.
6907 * New `--filter/-F` option to make it easier to run "filters"
6908 (Pandoc AST transformations that operate on JSON serializations).
6909 Filters are always passed the name of the output format, so their
6910 behavior can be tailored to it. The repository
6911 <https://github.com/jgm/pandocfilters> contains
6912 a python module for writing pandoc filters in python, with
6913 a number of examples.
6915 * Added `--metadata/-M` option.
6916 This is like `--variable/-V`, but actually adds to metadata, not
6919 * Added `--print-default-data-file` option, which allows printing
6920 of any of pandoc's data files. (For example,
6921 `pandoc --print-default-data-file reference.odt` will print
6924 * Added syntax for "pauses" in slide shows:
6932 * New markdown extensions:
6934 + `ignore_line_breaks`: causes intra-paragraph line breaks to be ignored,
6935 rather than being treated as hard line breaks or spaces. This is useful
6936 for some East Asian languages, where spaces aren't used between words,
6937 but text is separated into lines for readability.
6938 + `yaml_metadata_block`: Parse YAML metadata blocks. (Default.)
6939 + `ascii_identifiers`: This will force `auto_identifiers` to use ASCII
6940 only. (Default for `markdown_github`.) (#807)
6941 + `lists_without_preceding_blankline`: Allow lists to start without
6942 preceding blank space. (Default for `markdown_github`.) (#972)
6946 * `--toc-level` no longer implies `--toc`.
6947 Reason: EPUB users who don't want a visible TOC may still want
6948 to set the TOC level for in the book navigation.
6950 * `--help` now prints in and out formats in alphabetical order, and
6951 says something about PDF output (#720).
6953 * `--self-contained` now returns less verbose output (telling you
6954 which URLs it is fetching, but not giving the full header). In
6955 addition, there are better error messages when fetching a URL fails.
6957 * Citation support is no longer baked in to core pandoc. Users who
6958 need citations will need to install and use a separate filter
6959 (`--filter pandoc-citeproc`). This filter will take `bibliography`,
6960 `csl`, and `citation-abbreviations` from the metadata, though it
6961 may still be specified on the command line as before.
6963 * A `Cite` element is now created in parsing markdown whether or not
6964 there is a matching reference.
6966 * The `pandoc-citeproc` script will put the bibliography at the
6967 end of the document, as before. However, it will be put inside a `Div`
6968 element with class "references", allowing users some control
6969 over the styling of references. A final header, if any, will
6970 be included in the `Div`.
6972 * The markdown writer will not print a bibliography if the
6973 `citations` extension is enabled. (If the citations are formatted
6974 as markdown citations, it is redundant to have a bibliography,
6975 since one will be generated automatically.)
6977 * Previously we used to store the directory of the first input file,
6978 even if it was local, and used this as a base directory for finding
6979 images in ODT, EPUB, Docx, and PDF. This has been confusing to many
6980 users. So we now look for images relative to the current
6981 working directory, even if the first file argument is in another
6982 directory. Note that this change may break some existing workflows.
6983 If you have been assuming that relative links will be interpreted
6984 relative to the directory of the first file argument, you'll need
6985 to make that the current directory before running pandoc. (#942)
6987 * Better error reporting in some readers, due to changes in `readWith`:
6988 the line in which the error occured is printed, with a caret pointing
6991 * All slide formats now support incremental slide view for definition lists.
6993 * Parse `\(..\)` and `\[..\]` as math in MediaWiki reader.
6994 Parse `:<math>...</math>` as display math. These notations are used with
6995 the MathJax MediaWiki extension.
6997 * All writers: template variables are set automatically from metadata
6998 fields. However, variables specified on the command line with
6999 `--variable` will completely shadow metadata fields.
7001 * If `--variable` is used to set many variables with the same name,
7004 * Man writer: The `title`, `section`, `header`, and `footer` can now
7005 all be set individually in metadata. The `description` variable has been
7006 removed. Quotes have been added so that spaces are allowed in the
7007 title. If you have a title that begins
7009 COMMAND(1) footer here | header here
7011 pandoc will still parse it into a title, section, header, and
7012 footer. But you can also specify these elements explicitly (#885).
7016 + Added support for YAML metadata blocks, which can come anywhere
7017 in the document (not just at the beginning). A document can contain
7018 multiple YAML metadata blocks.
7019 + HTML span and div tags are parsed as pandoc Span and Div elements.
7023 + Allow simple tables to be printed as grid tables,
7024 if other table options are disabled. This means you can do
7025 `pandoc -t markdown-pipe_tables-simple_tables-multiline_tables`
7026 and all tables will render as grid tables.
7027 + Support YAML title block (render fields in alphabetical order
7028 to make output predictable).
7032 * `Meta` in `Text.Pandoc.Definition` has been changed to allow
7033 structured metadata. (Note: existing code that pattern-matches
7034 on `Meta` will have to be revised.) Metadata can now contain
7035 indefinitely many fields, with content that can be a string,
7036 a Boolean, a list of `Inline` elements, a list of `Block`
7037 elements, or a map or list of these.
7039 * A new generic block container (`Div`) has been added to `Block`,
7040 and a generic inline container (`Span`) has been added to `Inline`.
7041 These can take attributes. They will render in HTML, Textile,
7042 MediaWiki, Org, RST and and Markdown (with `markdown_in_html`
7043 extension) as HTML `<div>` and `<span>` elements; in other formats
7044 they will simply pass through their contents. But they can be
7045 targeted by scripts.
7047 * `Format` is now a newtype, not an alias for String.
7048 Equality comparisons are case-insensitive.
7050 * Added `Text.Pandoc.Walk`, which exports hand-written tree-walking
7051 functions that are much faster than the SYB functions from
7052 `Text.Pandoc.Generic`. These functions are now used where possible
7053 in pandoc's code. (`Tests.Walk` verifies that `walk` and `query`
7054 match the generic traversals `bottomUp` and `queryWith`.)
7056 * Added `Text.Pandoc.JSON`, which provides `ToJSON` and `FromJSON`
7057 instances for the basic pandoc types. They use GHC generics and
7058 should be faster than the old JSON serialization using
7059 `Data.Aeson.Generic`.
7061 * Added `Text.Pandoc.Process`, exporting `pipeProcess`.
7062 This is a souped-up version of `readProcessWithErrorcode` that
7063 uses lazy bytestrings instead of strings and allows setting
7064 environment variables. (Used in `Text.Pandoc.PDF`.)
7066 * New module `Text.Pandoc.Readers.OPML`.
7068 * New module `Text.Pandoc.Writers.OPML`.
7070 * New module `Text.Pandoc.Readers.Haddock` (David Lazar).
7071 This is based on Haddock's own lexer/parser.
7073 * New module `Text.Pandoc.Writers.Custom`.
7075 * In `Text.Pandoc.Shared`, `openURL` and `fetchItem` now return an
7076 Either, for better error handling.
7078 * Made `stringify` polymorphic in `Text.Pandoc.Shared`.
7080 * Removed `stripTags` from `Text.Pandoc.XML`.
7082 * `Text.Pandoc.Templates`:
7084 + Simplified `Template` type to a newtype.
7086 + Changed type of `renderTemplate`: it now takes a JSON context
7087 and a compiled template.
7088 + Export `compileTemplate`.
7089 + Export `renderTemplate'` that takes a string instead of a compiled
7091 + Export `varListToJSON`.
7093 * `Text.Pandoc.PDF` exports `makePDF` instead of `tex2pdf`.
7094 The signature of `makePDF` has changed and now contains
7095 an additional argument for pdf engine options.
7099 + Made `toJsonFilter` an alias for `toJSONFilter` from `Text.Pandoc.JSON`.
7100 + Removed `ToJsonFilter` typeclass. `ToJSONFilter` from
7101 `Text.Pandoc.JSON` should be used instead. (Compiling against
7102 pandoc-types instead of pandoc will also produce smaller executables.)
7103 * Removed the deprecated `jsonFilter` function.
7104 + Added `readJSON`, `writeJSON` to the API (#817).
7106 * `Text.Pandoc.Options`:
7108 + Added `Ext_lists_without_preceding_blankline`,
7109 `Ext_ascii_identifiers`, `Ext_ignore_line_breaks`,
7110 `Ext_yaml_metadataBlock` to `Extension`.
7111 + Changed `writerSourceDirectory` to `writerSourceURL` and changed the
7112 type to a `Maybe`. `writerSourceURL` is set to 'Just url' when the
7113 first command-line argument is an absolute URL. (So, relative links
7114 will be resolved in relation to the first page.) Otherwise, 'Nothing'.
7115 + All bibliography-related fields have been removed from
7116 `ReaderOptions` and `WriterOptions`: `writerBiblioFiles`,
7117 `readerReferences`, `readerCitationStyle`.
7118 + Removed `writerPdfArgs` from `WriterOptions`. These are now
7119 passed in as a parameter to `makePDF`.
7121 * The `Text.Pandoc.Biblio` module has been removed. Users of the
7122 pandoc library who want citation support will need to use
7123 `Text.CSL.Pandoc` from `pandoc-citeproc`.
7128 * In markdown, don't autolink a bare URI that is followed by `</a>`
7131 * `Text.Pandoc.Shared`
7133 + `openURL` now follows redirects (#701), properly handles `data:`
7134 URIs, and prints diagnostic output to stderr rather than stdout.
7135 + `readDefaultDataFile`: normalize the paths. This fixes bugs in
7136 `--self-contained` on pandoc compiled with `embed_data_files` (#833).
7137 + Fixed `readDefaultDataFile` so it works on Windows.
7138 + Better error messages for `readDefaultDataFile`. Instead of
7139 listing the last path tried, which can confuse people who are
7140 using `--self-contained`, so now we just list the data file name.
7141 + URL-escape pipe characters. Even though these are legal, `Network.URI`
7142 doesn't regard them as legal in URLs. So we escape them first (#535).
7144 * Mathjax in HTML slide shows: include explicit "Typeset" call.
7145 This seems to be needed for some formats (e.g. slideous) and won't
7146 hurt in others (#966).
7150 + On Windows, create temdir in working directory, since the system
7151 temp directory path may contain tildes, which can cause
7152 problems in LaTeX (#777).
7153 + Put temporary output directory in `TEXINPUTS` (see #917).
7154 + `makePDF` tries to download images that are not found locally,
7155 if the first argument is a URL (#917).
7156 + If compiling with `pdflatex` yields an encoding error, offer
7157 the suggestion to use `--latex-engine=xelatex`.
7159 * Produce automatic header identifiers in parsing textile, RST,
7160 and LaTeX, unless `auto_identifiers` extension is disabled (#967).
7162 * `Text.Pandoc.SelfContained`: Strip off fragment, query of relative URL
7163 before treating as a filename. This fixes `--self-contained` when used
7164 with CSS files that include web fonts using the method described here:
7165 <http://paulirish.com/2009/bulletproof-font-face-implementation-syntax/>
7166 (#739). Handle `src` in `embed`, `audio`, `source`, `input` tags.
7168 * `Text.Pandoc.Parsing`: `uri` parser no longer treats punctuation before
7169 percent-encoding, or a `+` character, as final punctuation.
7171 * `Text.Pandoc.ImageSize`: Handle EPS (#903). This change will make
7172 EPS images properly sized on conversion to Word.
7174 * Slidy: Use slidy.js rather than slidy.js.gz.
7175 Reason: some browsers have trouble with the gzipped js file,
7176 at least on the local file system (#795).
7180 + Properly handle blank line at beginning of input (#882).
7181 + Fixed bug in unmatched reference links. The input
7182 `[*infile*] [*outfile*]` was getting improperly parsed:
7183 "infile" was emphasized, but "*outfile*" was literal (#883).
7184 + Allow internal `+` in citation identifiers (#856).
7185 + Allow `.` or `)` after `#` in ATX headers if no `fancy_lists`.
7186 + Do not generate blank title, author, or date metadata elements.
7187 Leave these out entirely if they aren't present.
7188 + Allow backtick code blocks not to be preceded by blank line (#975).
7192 + Correctly handle entities.
7193 + Improved handling of `<pre>` blocks (#927). Remove internal HTML tags
7194 in code blocks, rather than printing them verbatim. Parse attributes
7195 on `<pre>` tag for code blocks.
7197 * HTML reader: Handle non-simple tables (#893). Column widths are read from
7198 `col` tags if present, otherwise divided equally.
7202 + Support alltt environment (#892).
7203 + Support `\textasciitilde`, `\textasciicircum` (#810).
7204 + Treat `\textsl` as emphasized text reader (#850).
7205 + Skip positional options after `\begin{figure}`.
7206 + Support `\v{}` for hacek (#926).
7207 + Don't add spurious ", " to citation suffixes.
7208 This is added when needed in pandoc-citeproc.
7209 + Allow spaces in alignment spec in tables, e.g. `{ l r c }`.
7210 + Improved support for accented characters (thanks to Scott Morrison).
7211 + Parse label after section command and set id (#951).
7215 + Don't insert paragraphs where docutils doesn't.
7216 `rst2html` doesn't add `<p>` tags to list items (even when they are
7217 separated by blank lines) unless there are multiple paragraphs in the
7218 list. This commit changes the RST reader to conform more closely to
7219 what docutils does (#880).
7220 + Improved metadata. Treat initial field list as metadata when
7221 standalone specified. Previously ALL fields "title", "author",
7222 "date" in field lists were treated as metadata, even if not at
7223 the beginning. Use `subtitle` metadata field for subtitle.
7224 + Fixed 'authors' metadata parsing in reST. Semicolons separate
7229 + Allow space before table rows.
7230 + Fixed regression for `<ref>URL</ref>`.
7231 `<` is no longer allowed in URLs, according to the uri parser
7232 in `Text.Pandoc.Parsing`. Added a test case.
7233 + Correctly handle indented preformatted text without preceding
7234 or following blank line.
7235 + Fixed `|` links inside table cells. Improved attribute parsing.
7236 + Skip attributes on table rows. Previously we just crashed if
7237 rows had attributes, now we ignore them.
7238 + Ignore attributes on headers.
7239 + Allow `Image:` for images (#971).
7240 + Parse an image with caption in a paragraph by itself as a figure.
7244 + Don't use ligatures in escaping inline code.
7245 + Fixed footnote numbers in LaTeX/PDF tables. This fixes a bug
7246 wherein notes were numbered incorrectly in tables (#827).
7247 + Always create labels for sections. Previously the labels were only
7248 created when there were links to the section in the document (#871).
7249 + Stop escaping `|` in LaTeX math.
7250 This caused problems with array environments (#891).
7251 + Change `\` to `/` in paths. `/` works even on Windows in LaTeX.
7252 `\` will cause major problems if unescaped.
7253 + Write id for code block to label attribute in LaTeX when listings
7254 is used (thanks to Florian Eitel).
7255 + Scale LaTeX tables so they don't exceed columnwidth.
7256 + Avoid problem with footnotes in unnumbered headers (#940).
7258 * Beamer writer: when creating beamer slides, add `allowframebreaks` option
7259 to the slide if it is one of the header classes. It is recommended
7260 that your bibliography slide have this attribute:
7262 # References {.allowframebreaks}
7264 This causes multiple slides to be created if necessary, depending
7265 on the length of the bibliography.
7267 * ConTeXt writer: Properly handle tables without captions. The old output
7268 only worked in MkII. This should work in MkIV as well (#837).
7270 * MediaWiki writer: Use native mediawiki tables instead of HTML (#720).
7274 + Fixed `--no-highlight` (Alexander Kondratskiy).
7275 + Don't convert to lowercase in email obfuscation (#839).
7276 + Ensure proper escaping in `<title>` and `<meta>` fields.
7280 + Support `--atx-headers` (Max Rydahl Andersen).
7281 + Don't print empty identifier blocks `([[]])` on headers (Max
7286 + Fixing wrong numbered-list indentation in open document format
7287 (Alexander Kondratskiy) (#369).
7288 + `reference.odt`: Added pandoc as "generator" in `meta.xml`.
7289 + Minor changes for ODF 1.2 conformance (#939). We leave the
7290 nonconforming `contextual-spacing` attribute, which is provided by
7291 LibreOffice itself and seems well supported.
7295 + Fixed rendering of display math in lists.
7296 In 1.11 and 1.11.1, display math in lists rendered as a new list
7297 item. Now it always appears centered, just as outside of lists,
7298 and in proper display math style, no matter how far indented the
7299 containing list item is (#784).
7300 + Use `w:br` with `w:type` `textWrapping` for linebreaks.
7301 Previously we used `w:cr` (#873).
7302 + Use Compact style for Plain block elements, to
7303 differentiate between tight and loose lists (#775).
7304 + Ignore most components of `reference.docx`.
7305 We take the `word/styles.xml`, `docProps/app.xml`,
7306 `word/theme/theme1.xml`, and `word/fontTable.xml` from
7307 `reference.docx`, ignoring everything else. This should help
7308 with the corruption problems caused when different versions of
7309 Word resave the reference.docx and reorganize things.
7310 + Made `--no-highlight` work properly.
7314 + Don't add `dc:creator` tags if present in EPUB metadata.
7315 + Add `id="toc-title"` to `h1` in `nav.xhtml` (#799).
7316 + Don't put blank title page in reading sequence.
7317 Set `linear="no"` if no title block. Addresses #797.
7318 + Download webtex images and include as data URLs.
7319 This allows you to use `--webtex` in creating EPUBs.
7320 Math with `--webtex` is automatically made self-contained.
7321 + In `data/epub.css`, removed highlighting styles (which
7322 are no longer needed, since styles are added by the HTML
7323 writer according to `--highlighting-style`). Simplified
7325 + If resource not found, skip it, as in Docx writer (#916).
7329 + Properly handle characters above the 0000-FFFF range.
7330 Uses surrogate pairs. Thanks to Hiromi Ishii for the patch.
7331 + Fixed regression with RTF table of contents.
7332 + Only autolink absolute URIs. This fixes a regression, #830.
7336 + Only autolink absolute URIs. This fixes a regression, #830.
7337 + Don't wrap attributes in fenced code blocks.
7338 + Write full metadata in MMD style title blocks.
7339 + Put multiple authors on separate lines in pandoc titleblock.
7340 Also, don't wrap long author entries, as new lines get treated
7343 * `Text.Pandoc.Templates`:
7345 + Fixed bug retrieving default template for markdown variants.
7346 + Templates can now contain "record lookups" in variables;
7347 for example, `author.institution` will retrieve the `institution`
7348 field of the `author` variable.
7349 + More consistent behavior of `$for$`. When `foo` is not a list,
7350 `$for(foo)$...$endfor$` should behave like $if(foo)$...$endif$.
7351 So if `foo` resolves to "", no output should be produced.
7352 See pandoc-templates#39.
7354 * Citation processing improvements (now part of pandoc-citeproc):
7356 + Fixed `endWithPunct` The new version correctly sees a sentence
7357 ending in '.)' as ending with punctuation. This fixes a bug which
7358 led such sentences to receive an extra period at the end: '.).'.
7359 Thanks to Steve Petersen for reporting.
7360 + Don't interfere with Notes that aren't citation notes.
7361 This fixes a bug in which notes not generated from citations were
7362 being altered (e.g. first letter capitalized) (#898).
7363 + Only capitalize footnote citations when they have a prefix.
7364 + Changes in suffix parsing. A suffix beginning with a digit gets 'p'
7365 inserted before it before passing to citeproc-hs, so that bare numbers
7366 are treated as page numbers by default. A suffix not beginning with
7367 punctuation has a space added at the beginning (rather than a comma and
7368 space, as was done before for not-author-in-text citations).
7369 The result is that `\citep[23]{item1}` in LaTeX will be interpreted
7370 properly, with '23' treated as a locator of type 'page'.
7371 + Many improvements to citation rendering, due to fixes in citeproc-hs
7372 (thanks to Andrea Rossato).
7373 + Warnings are issued for undefined citations, which are rendered
7375 + Fixed hanging behavior when locale files cannot be found.
7379 * DocBook: Use DocBook 4.5 doctype.
7381 * Org: '#+TITLE:' is inserted before the title.
7382 Previously the writer did this.
7384 * LaTeX: Changes to make mathfont work with xelatex.
7385 We need the mathspec library, not just fontspec, for this.
7386 We also need to set options for setmathfont (#734).
7388 * LaTeX: Use `tex-ansi` mapping for `monofont`.
7389 This ensures that straight quotes appear as straight, rather than
7390 being treated as curly. See #889.
7392 * Made `\includegraphics` more flexible in LaTeX template.
7393 Now it can be used with options, if needed. Thanks to Bernhard Weichel.
7395 * LaTeX/Beamer: Added `classoption` variable.
7396 This is intended for class options like `oneside`; it may
7397 be repeated with different options. (Thanks to Oliver Matthews.)
7399 * Beamer: Added `fonttheme` variable. (Thanks to Luis Osa.)
7401 * LaTeX: Added `biblio-style` variable (#920).
7403 * DZSlides: title attribute on title section.
7405 * HTML5: add meta tag to allow scaling by user (Erik Evenson)
7407 [under-the-hood improvements]
7409 * Markdown reader:Improved strong/emph parsing, using the strategy of
7410 <https://github.com/jgm/Markdown>. The new parsing algorithm requires
7411 no backtracking, and no keeping track of nesting levels. It will give
7412 different results in some edge cases, but these should not affect normal
7415 * Added `Text.Pandoc.Compat.Monoid`.
7416 This allows pandoc to compile with `base` < 4.5, where `Data.Monoid`
7417 doesn't export `<>`. Thanks to Dirk Ullirch for the patch.
7419 * Added `Text.Pandoc.Compat.TagSoupEntity`.
7420 This allows pandoc to compile with `tagsoup` 0.13.x.
7421 Thanks to Dirk Ullrich for the patch.
7423 * Most of `Text.Pandoc.Readers.TeXMath` has been moved to the
7424 `texmath` module (0.6.4). (This allows `pandoc-citeproc` to
7425 handle simple math in bibliography fields.)
7427 * Added `Text.Pandoc.Writers.Shared` for shared functions used
7428 only in writers. `metaToJSON` is used in writers to create a
7429 JSON object for use in the templates from the pandoc metadata
7430 and variables. `getField`, `setField`, and `defField` are
7431 for working with JSON template contexts.
7433 * Added `Text.Pandoc.Asciify` utility module.
7434 This exports functions to create ASCII-only versions of identifiers.
7436 * `Text.Pandoc.Parsing`
7438 + Generalized state type on `readWith` (API change).
7439 + Specialize readWith to `String` input. (API change).
7440 + In `ParserState`, replace `stateTitle`, `stateAuthors`, `stateDate`
7441 with `stateMeta` and `stateMeta'`.
7443 * `Text.Pandoc.UTF8`: use strict bytestrings in reading. The use of lazy
7444 bytestrings seemed to cause problems using pandoc on 64-bit Windows
7447 * Factored out `registerHeader` from markdown reader, added to
7448 `Text.Pandoc.Parsing`.
7450 * Removed `blaze_html_0_5` flag, require `blaze-html` >= 0.5.
7451 Reason: < 0.5 does not provide a monoid instance for Attribute,
7452 which is now needed by the HTML writer (#803).
7454 * Added `http-conduit` flag, which allows fetching https resources.
7455 It also brings in a large number of dependencies (`http-conduit`
7456 and its dependencies), which is why for now it is an optional flag
7459 * Added CONTRIBUTING.md.
7461 * Improved INSTALL instructions.
7463 * `make-windows-installer.bat`: Removed explicit paths for executables.
7465 * `aeson` is now used instead of `json` for JSON.
7467 * Set default stack size to 16M. This is needed for some large
7468 conversions, esp. if pandoc is compiled with 64-bit ghc.
7470 * Various small documentation improvements.
7471 Thanks to achalddave and drothlis for patches.
7473 * Removed comment that chokes recent versions of CPP (#933).
7475 * Removed support for GHC version < 7.2, since pandoc-types now
7476 requires at least GHC 7.2 for GHC generics.
7483 + Fixed regression in which parentheses were lost in link URLs.
7484 Added tests. Closes #786.
7485 + Better handling of unmatched double quotes in `--smart` mode.
7486 These occur frequently in fiction, since it is customary not to
7487 close quotes in dialogue if the speaker does not change between
7488 paragraphs. The unmatched quotes now get turned into literal
7489 left double quotes. (No `Quoted` inline is generated, however.)
7492 * HTML writer: Fixed numbering mismatch between TOC and sections.
7493 `--number-offset` now affects TOC numbering as well
7494 as section numbering, as it should have all along. Closes #789.
7496 * Markdown writer: Reverted 1.11 change that caused citations to be rendered
7497 as markdown citations, even if `--bibliography` was specified, unless
7498 `citation` extension is disabled. Now, formatted citations are always
7499 printed if `--bibliography` was specified. If you want to reformat
7500 markdown keeping pandoc markdown citations intact, don't use
7501 `--bibliography`. Note that citations parsed from LaTeX documents will
7502 be rendered as pandoc markdown citations when `--bibliography` is not
7505 * ODT writer: Fixed regression leading to corrupt ODTs.
7506 This was due to a change in the `Show` instance for
7507 `Text.Pandoc.Pretty.Doc`. Closes #780.
7509 * Fixed spacing bugs involving code block attributes in
7510 RST reader and Markdown writer. Closes #763.
7512 * Windows package: Various improvements due to Fyodor Sheremetyev.
7514 + Automatically set installation path (Program Files or Local App Data).
7515 + Set system PATH environment variable when installing for all users.
7516 + Pandoc can installed for all users using the following command.
7517 `msiexec /i pandoc-1.11.msi ALLUSERS=1`.
7519 * Bumped QuickCheck version bound.
7523 * Added `--number-offset` option. (See README for description.)
7525 * Added `--default-image-extension` option. (See README for description.)
7527 * `--number-sections` behavior change: headers with class `unnumbered`
7528 will not be numbered.
7530 * `--version` now reports the default data directory.
7532 * `Text.Pandoc.Parsing` is no longer exposed. (API change.)
7534 * `Text.Pandoc.Highlighting` is no longer exposed. (API change.)
7536 * `Text.Pandoc.Shared`: Changed type of `Element`. `Sec` now includes
7537 a field for `Attr` rather than just `String`. (API change.)
7539 * Added `markdown_github` as input format. This was an accidental
7542 * Added `readerDefaultImageExtension` field to `ReaderOptions`. (API
7545 * Added `writerNumberOffset` field in `WriterOptions`. (API change.)
7549 + Fixed captions with longtable. Thanks to Joost Kremers.
7550 + Provide `\Oldincludegraphics` as in LaTeX template (Benjamin Bannier).
7554 + Load microtype after fonts. Microtype needs to know
7555 what fonts are being used. Thanks to dfc for the patch.
7556 + Set `secnumdepth` to 5 if `--number-sections` specified.
7557 This yields behavior equivalent to the other writers, numbering
7558 level 4 and 5 headers too. Closes #753.
7562 + Handle `<colgroup>` tag.
7563 + Preserve all header attributes.
7567 + Parse `\hrule` as `HorizontalRule`. Closes #746.
7568 + Parse starred variants of `\section` etc. as headers with
7569 attribute `unnumbered`.
7570 + Read optional attributes in `lstlisting` and `Verbatim` environments.
7571 We convert these to pandoc standard names, e.g. `numberLines`
7572 for `numbers=left`, `startFrom=100` from `firstnumber=100`.
7573 + Handle language attribute for lstlistings.
7574 + Better support for Verbatim and minted environments. Closes #763.
7578 + `-` in an attribute context = `.unnumbered`. The point of this
7579 is to provide a way to specify unnumbered headers in non-English
7581 + Fixed bug parsing key/value attributes. Parsing failed if you
7582 had an unquoted attribute immediately before the final '}'.
7583 + Make backslash escape work in attributes.
7584 + Fix title block parsing. Now if `mmd_title_blocks` is specified,
7585 pandoc will parse a MMD title block if it sees one, even if
7586 `pandoc_title_blocks` is enabled.
7587 + Refactoring: `litChar` now includes entities, so we don't need
7588 to use `fromEntities` e.g. on titles.
7589 + Allow spaces around borders in pipe tables. Closes #772.
7590 + Allow all punctuation in angle-bracket autolinks. Previously
7591 things like `----` were disallowed, because the uri parser
7592 treated them as trailing punctuation. Closes #768.
7593 + Make `implicit_header_references` work properly when
7594 headers are given explicit identifiers.
7595 + Check for tables before line blocks. Otherwise some pipe
7596 tables get treated as line blocks.
7597 + Allow `&` in emails (for entities).
7598 + Properly handle entities in titles and links. A markdown link
7599 `<http://göogle.com>` should be a link to `http://göogle.com`.
7604 + Handle attributes on headers.
7608 + Add `fig:` as title for images with captions.
7609 This is needed for them to be rendered as figures. Closes #766.
7610 + Never emit an empty paragraph. See #761.
7611 + Handle `\caption` for images in figures. Closes #766.
7612 + Parse `\section*`, etc. as unnumbered sections.
7616 + Support header attributes. The attributes go on
7617 the enclosing `section` or `div` tag if `--section-divs` is specified.
7618 + Fixed a regression (only now noticed) in html+lhs output.
7619 Previously the bird tracks were being omitted.
7623 + Omit lists with no items to avoid LaTeX errors.
7624 + Support line numbering with `--listings`.
7625 If `numberLines` class is present, we add `numbers=left`;
7626 if `startFrom` is present, we add `firstnumber=`. (#763)
7630 + Removed `\placecontent`. This produced a duplicate toc,
7631 in conjunction with `\placelist`.
7632 + Use `\title`, `\subject` etc. for headers with
7637 + Support header attributes.
7641 + Use grid tables when needed, and if enabled. Closes #740.
7642 + Render citations as pandoc-markdown citations.
7643 Previously citations were rendered as citeproc-formatted citations
7644 by default. Now we render them as pandoc citations, e.g. `[@item1]`,
7645 unless the `citations` extension is disabled.
7646 If you still want formatted citations in your markdown output,
7647 use `pandoc -t markdown-citations`.
7651 + Support `:number-lines:` in code blocks.
7655 + Better treatment of display math. Display math inside a
7656 paragraph is now put in a separate paragraph, so it will render
7657 properly (centered and without extra blank lines around it).
7658 Partially addresses #742.
7659 + Content types and document rels xml files are now created from
7660 scratch, rather than being taken over from `reference.docx`.
7661 This fixes problems that arise when you edit the `reference.docx`
7663 + We also now encode mime types for each individual image rather
7664 than using defaults. This should allow us to handle a wider
7665 range of image types (including PDF). Closes #414.
7666 + Changed style names in `reference docx`.
7667 `FootnoteReference` -> `FootnoteRef`, `Hyperlink` -> `Link`.
7668 The old names got changed by Word when the `reference.docx` was
7669 edited. Closes #414.
7673 + Fix section numbering. Previously the numbering restarted from 1
7674 in each chapter (with `--number-sections`), though the numbers in
7675 the table of contents were correct.
7676 + Headers with "unnumbered" attribute are not numbered. (Nor do they
7677 cause an increment in running numbering.) Section numbers now work
7678 properly, even when there is material before the first numbered section.
7679 + Include HTML TOC, even in epub2. The TOC is included in `<spine>`,
7680 but `linear` is set to `no` unless the `--toc` option is specified.
7681 Include `<guide>` element in OPF. This should allow the TOC to
7682 be useable in Kindles when converted with kindlegen. Closes #773.
7684 * `Text.Pandoc.Parsing`: Optimized `oneOfStringsCI`.
7685 This dramatically reduces the speed penalty that comes from enabling the
7686 `autolink_bare_uris` extension. The penalty is still substantial (in one
7687 test, from 0.33s to 0.44s), but nowhere near what it used to be.
7688 The RST reader is also much faster now, as it autodetects URIs.
7690 * `Text.Pandoc.Shared`: `hierarchicalize` will not number section
7691 with class "unnumbered". Unnumbered sections get `[]` for their
7694 * `Text.Pandoc.Pretty`:
7696 + Fixed `chomp` so it works inside `Prefixed` elements.
7697 + Changed `Show` instance so it is better for debugging.
7699 * `Text.Pandoc.ImageSize`: Added `Pdf` to `ImageType`.
7701 * `Text.Pandoc.UTF8`: Strip off BOM if present. Closes #743.
7703 * Windows installer improvements:
7705 + The installer is now signed with a certificate (thanks to
7706 Fyodor Sheremetyev).
7707 + WiX is used instead of InnoSetup. The installer is now a
7709 + The version number is now auto-detected, and need not be
7712 * OSX installer improvements:
7714 + The package and pandoc executable are now signed with a
7715 certificate (thanks to Fyodor Sheremetyev).
7716 + RTF version of license is used.
7717 + Use full path for sysctl in `InstallationCheck` script (jonahbull).
7720 * Converted COPYING to markdown.
7722 * pandoc.cabal: Require latest versions of highlighting-kate,
7723 texmath, citeproc-hs, zip-archive.
7727 * Markdown reader: various optimizations, leading to a
7728 significant performance boost.
7730 * RST reader: Allow anonymous form of inline links:
7731 `` `hello <url>`__ `` Closes #724.
7733 * Mediawiki reader: Don't require newlines after tables.
7734 Thanks to jrunningen for the patch. Closes #733.
7736 * Fixed LaTeX macro parsing. Now LaTeX macro definitions are preserved
7737 when output is LaTeX, and applied when it is another format.
7738 Partially addresses #730.
7740 * Markdown and RST readers: Added parser to `block` that skips blank
7741 lines. This fixes a subtle regression involving grid tables with
7742 empty cells. Also added test for grid table with empty cells.
7745 * RST writer: Use `.. code:: language` for code blocks with language.
7748 * DocBook writer: Fixed output for hard line breaks, adding a newline
7749 between `<literallayout>` tags.
7751 * Markdown writer: Use an autolink when link text matches url.
7752 Previously we also checked for a null title, but this
7753 test fails for links produced by citeproc-hs in bibliographies.
7754 So, if the link has a title, it will be lost on conversion
7755 to an autolink, but that seems okay.
7757 * Markdown writer: Set title, author, date variables as before.
7758 These are no longer used in the default template, since we use
7759 titleblock, but we set them anyway for those who use custom templates.
7761 * LaTeX writer: Avoid extra space at start/end of table cell.
7762 Thanks to Nick Bart for the suggestion of using @{}.
7764 * `Text.Pandoc.Parsing`:
7766 + More efficient version of `anyLine`.
7767 + Type of `macro` has changed; the parser now returns `Blocks`
7770 * Relaxed old-time version bound, allowing 1.0.*.
7772 * Removed obsolete `hsmarkdown` script. Those who need `hsmarkdown`
7773 should create a symlink as described in the README.
7777 * Markdown reader: Try `lhsCodeBlock` before `rawTeXBlock`. Otherwise
7778 `\begin{code}...\end{code}` isn't handled properly in markdown+lhs.
7779 Thanks to Daniel Miot for noticing the bug and suggesting the fix.
7781 * Markdown reader: Fixed bug with headerless grid tables.
7782 The 1.10 code assumed that each table header cell contains exactly one
7783 block. That failed for headerless tables (0) and also for tables with
7784 multiple blocks in a header cell. The code is fixed and tests provided.
7785 Thanks to Andrew Lee for pointing out the bug.
7787 * Markdown reader: Fixed regressions in fenced code blocks. Closes #722.
7789 + Tilde code fences can again take a bare language string
7790 (`~~~ haskell`), not just curly-bracketed attributes
7792 + Backtick code blocks can take the curly-bracketed attributes.
7793 + Backtick code blocks don't *require* a language.
7794 + Consolidated code for the two kinds of fenced code blocks.
7796 * LaTeX template: Use `\urlstyle{same}` to avoid monospace URLs.
7798 * Markdown writer: Use proportional font for email autolinks with
7799 obfuscation. Closes #714.
7801 * Corrected name of `blank_before_blockquote` in README. Closes #718.
7803 * `Text.Pandoc.Shared`: Fixed bug in `uri` parser.
7804 The bug prevented an autolink at the end of a string (e.g.
7805 at the end of a line block line) from counting as a link. Closes #711.
7807 * Use the `hsb2hs` preprocessor instead of TH for embed_data_files.
7808 This should work on Windows, unlike the TH solution with
7811 * Eliminated use of TH in test suite.
7813 * Added `Text.Pandoc.Data` (non-exported) to hold the association
7814 list of embedded data files, if the `embed_data_files` flag is selected.
7815 This isolates the code that needs special treatment with file-embed or
7818 * Changes to `make-windows-installer.bat`.
7820 + Exit batch file if any of the cabal-dev installs fail.
7821 + There's no longer any need to reinstall `highlighting-kate`.
7822 + Don't start with a `cabal update`; leave that to the user.
7823 + Force reinstall of pandoc.
7825 * Fixed EPUB writer so it builds with blaze-html 0.4.x. Thanks to
7830 * Fixed bug with escaped % in LaTeX reader. Closes #710.
7834 * Added further missing fb2 tests to cabal file.
7838 * Added fb2 tests to cabal file's extra-source-files.
7842 * Bump version bounds on test-framework packages.
7848 * New input formats: `mediawiki` (MediaWiki markup).
7850 * New output formats: `epub3` (EPUB v3 with MathML),
7851 `fb2` (FictionBook2 ebooks).
7853 * New `--toc-depth` option, specifying how many levels of
7854 headers to include in a table of contents.
7856 * New `--epub-chapter-level` option, specifying the header
7857 level at which to divide EPUBs into separate files.
7858 Note that this normally affects only performance, not the
7859 visual presentation of the EPUB in a reader.
7861 * Removed the `--strict` option. Instead of using `--strict`,
7862 one can now use the format name `markdown_strict` for either input
7863 or output. This gives more fine-grained control that `--strict`
7864 did, allowing one to convert from pandoc's markdown to strict
7865 markdown or vice versa.
7867 * It is now possible to enable or disable specific syntax
7868 extensions by appending them (with `+` or `-`) to the writer
7869 or reader name. For example,
7871 pandoc -f markdown-footnotes+hard_line_breaks
7873 disables footnotes and enables treating newlines as hard
7874 line breaks. The literate Haskell extensions are now implemented
7875 this way as well, using either `+lhs` or `+literate_haskell`.
7876 For a list of extension names, see the README under
7877 "Pandoc's Markdown."
7879 * The following aliases have been introduced for specific
7880 combinations of markdown extensions: `markdown_phpextra`,
7881 `markdown_github`, `markdown_mmd`, `markdown_strict`. These aliases
7882 work just like regular reader and writer names, and can be modified
7883 with extension modifiers as described above. (Note that conversion
7884 from one markdown dialect to another does not work perfectly,
7885 because there are differences in markdown parsers besides
7886 just the extensions, and because pandoc's internal document model is
7887 not rich enough to capture all of the extensions.)
7889 * New `--html-q-tags` option. The previous default was to use `<q>`
7890 tags for smart quotes in HTML5. But `<q>` tags are also valid HTML4.
7891 Moreover, they are not a robust way of typesetting quotes, since
7892 some user agents don't support them, and some CSS resets (e.g.
7893 bootstrap) prevent pandoc's quotes CSS from working properly.
7894 We now just insert literal quote characters by default in both
7895 `html` and `html5` output, but this option is provided for
7896 those who still want `<q>` tags.
7898 * The markdown reader now prints warnings (to stderr) about
7899 duplicate link and note references. Closes #375.
7901 * Markdown syntax extensions:
7903 + Added pipe tables. Thanks to François Gannaz for the initial patch.
7904 These conform to PHP Markdown Extra's pipe table syntax. A subset
7905 of org-mode table syntax is also supported, which means that you can
7906 use org-mode's nice table editor to create tables.
7908 + Added support for RST-style line blocks. These are
7909 useful for verse and addresses.
7911 + Attributes can now be specified for headers, using the same
7912 syntax as in code blocks. (However, currently only the
7913 identifier has any effect in most writers.) For example,
7917 See [the header above](#foo).
7919 + Pandoc will now act as if link references have been defined
7920 for all headers without explicit identifiers.
7921 So, you can do this:
7925 Link to [My header].
7926 Another link to [it][My header].
7932 + Command macros now work everywhere, including non-math.
7933 Environment macros still not supported.
7934 + `\input` now works, as well as `\include`. TEXINPUTS is used.
7935 Pandoc looks recursively into included files for more included files.
7939 * The Markdown reader no longer puts the text of autolinks in a
7940 `Code` inline. This means that autolinks will no longer appear
7941 in a monospace font.
7943 * The character `/` can now appear in markdown citation keys.
7945 * HTML blocks in strict_markdown are no longer required to begin
7946 at the left margin. Technically this is required, according to
7947 the markdown syntax document, but `Markdown.pl` and other markdown
7948 processors are more liberal.
7950 * The `-V` option has been changed so that if there are duplicate
7951 variables, those specified later on the command line take precedence.
7953 * Tight lists now work in LaTeX and ConTeXt output.
7955 * The LaTeX writer no longer relien on the `enumerate` package.
7956 Instead, it uses standard LaTeX commands to change the list numbering
7959 * The LaTeX writer now uses `longtable` instead of `ctable`. This allows
7960 tables to be split over page boundaries.
7962 * The RST writer now uses a line block to render paragraphs containing
7963 linebreaks (which previously weren't supported at all).
7965 * The markdown writer now applies the `--id-prefix` to footnote IDs.
7968 * The plain writer no longer uses backslash-escaped line breaks
7969 (which are not very "plain").
7971 * `Text.Pandoc.UTF8`: Better error message for invalid UTF8.
7972 Read bytestring and use `Text`'s decodeUtf8 instead of using
7973 `System.IO.hGetContents`. This way you get a message saying
7974 "invalid UTF-8 stream" instead of "invalid byte sequence."
7975 You are also told which byte caused the problem.
7977 * Docx, ODT, and EPUB writers now download images specified by a URL
7978 instead of skipping them or raising an error.
7982 + The default CSS now left-aligns headers by default, instead of
7983 centering. This is more consistent with the rest of the writers.
7984 + A proper multi-level table of contents is now used in `toc.ncx`.
7985 There is no longer a subsidiary table of contents at the beginning
7987 + Code highlighting now works by default.
7988 + Section divs are used by default for better semantic markup.
7989 + The title is used instead of "Title Page" in the table of contents.
7990 Otherwise we have a hard-coded English string, which looks
7991 strange in ebooks written in other languages. Closes #572.
7995 + Put mathjax in span with class "math". Closes #562.
7996 + Put citations in a span with class "citation." In HTML5, also include
7997 a `data-cite` attribute with a space-separated list of citation
8000 * `Text.Pandoc.UTF8`: use universalNewlineMode in reading.
8001 This treats both `\r\n` and `\n` as `\n` on input, no matter
8002 what platform we're running on.
8004 * Citation processing is now done in the Markdown and LaTeX
8005 readers, not in `pandoc.hs`. This makes it easier for library users
8010 * HTML: Added css to template to preserve spaces in `<code>` tags.
8011 Thanks to Dirk Laurie.
8013 * Beamer: Remove English-centric strings in section pages.
8014 Section pages used to have "Section" and a number as well as the
8015 section title. Now they just have the title. Similarly for part
8016 and subsection. Closes #566.
8018 * LaTeX, ConTeXt: Added papersize variable.
8020 * LaTeX, Beamer templates: Use longtable instead of ctable.
8022 * LaTeX, Beamer templates: Don't require 'float' package for tables.
8023 We don't actually seem to use the '[H]' option.
8025 * LaTeX: Use `upquote` package if it is available. This fixes
8026 straight quotes in verbatim environments.
8028 * Markdown, plain: Fixed titleblock so it is just a single string.
8029 Previously separate title, author, and date variables were used,
8030 but this didn't allow different kinds of title blocks.
8034 + Rationalized templates. Previously there were three different
8035 templates involved in epub production. There is now just one
8036 template, `default.epub` or `default.epub3`. It can now be
8037 overridden using `--template`, just like other templates.
8038 The titlepage is now folded into the default template.
8039 A `titlepage` variable selects it.
8040 + UTF-8, lang tag, meta tags, title element.
8042 * Added scale-to-width feature to beamer template
8046 * `Text.Pandoc.Definition`: Added `Attr` field to `Header`.
8047 Previously header identifers were autogenerated by the writers.
8048 Now they are added in the readers (either automatically or explicitly).
8050 * `Text.Pandoc.Builder`:
8052 + `Inlines` and `Blocks` are now synonyms for `Many Inline` and
8053 `Many Block`. `Many` is a newtype wrapper around `Seq`, with
8054 custom Monoid instances for `Many Inline` and `Many Block. This
8055 allows `Many` to be made an instance of `Foldable` and `Traversable`.
8056 + The old `Listable` class has been removed.
8057 + The module now exports `isNull`, `toList`, `fromList`.
8058 + The old `Read` and `Show` instances have been removed; derived
8059 instances are now used.
8060 + Added `headerWith`.
8062 * The readers now take a `ReaderOptions` rather than a `ParserState`
8063 as a parameter. Indeed, not all parsers use the `ParserState` type;
8064 some have a custom state. The motivation for this change was to separate
8065 user-specifiable options from the accounting functions of parser state.
8067 * New module `Text.Pandoc.Options`. This includes the `WriterOptions`
8068 formerly in `Text.Pandoc.Shared`, and its associated
8069 data types. It also includes a new type `ReaderOptions`, which
8070 contains many options formerly in `ParserState`, and its associated
8073 + `ParserState.stateParseRaw` -> `ReaderOptions.readerParseRaw`.
8074 + `ParserState.stateColumns` -> `ReaderOptions.readerColumns`.
8075 + `ParserState.stateTabStop` -> `ReaderOptions.readerTabStop`.
8076 + `ParserState.stateOldDashes` -> `ReaderOptions.readerOldDashes`.
8077 + `ParserState.stateLiterateHaskell` -> `ReaderOptions.readerLiterateHaskell`.
8078 + `ParserState.stateCitations` -> `ReaderOptions.readerReferences`.
8079 + `ParserState.stateApplyMacros` -> `ReaderOptions.readerApplyMacros`.
8080 + `ParserState.stateIndentedCodeClasses` ->
8081 `ReaderOptions.readerIndentedCodeClasses`.
8082 + Added `ReaderOptions.readerCitationStyle`.
8084 * `WriterOptions` now includes `writerEpubVersion`, `writerEpubChapterLevel`,
8085 `writerEpubStylesheet`, `writerEpubFonts`, `writerReferenceODT`,
8086 `writerReferenceDocx`, and `writerTOCDepth`. `writerEPUBMetadata` has
8087 been renamed `writerEpubMetadata` for consistency.
8089 * Changed signatures of `writeODT`, `writeDocx`, `writeEPUB`, since they no
8090 longer stylesheet, fonts, reference files as separate parameters.
8092 * Removed `writerLiterateHaskell` from `WriterOptions`, and
8093 `readerLiterateHaskell` from `ReaderOptions`. LHS is now handled
8094 by an extension (`Ext_literate_haskell`).
8096 * Removed deprecated `writerXeTeX`.
8098 * Removed `writerStrict` from `WriterOptions`. Added `writerExtensions`.
8099 Strict is now handled through extensions.
8101 * `Text.Pandoc.Options` exports `pandocExtensions`, `strictExtensions`,
8102 `phpMarkdownExtraExtensions`, `githubMarkdownExtensions`,
8103 and `multimarkdownExtensions`, as well as the `Extensions` type.
8105 * New `Text.Pandoc.Readers.MediaWiki` module, exporting
8108 * New `Text.Pandoc.Writers.FB2` module, exporting `writeFB2`
8109 (thanks to Sergey Astanin).
8113 + Added `getReader`, `getWriter` to `Text.Pandoc`.
8114 + `writers` is now an association list `(String, Writer)`.
8115 A `Writer` can be a `PureStringWriter`, an `IOStringWriter`, or
8116 an `IOByteStringWriter`. ALL writers are now in the 'writers'
8117 list, including the binary writers and FB2 writer. This allows
8118 code in `pandoc.hs` to be simplified.
8119 + Changed type of `readers`, so all readers are in IO.
8120 Users who want pure readers can still get them form the reader
8121 modules; this just affects the function `getReader` that looks up
8122 a reader based on the format name. The point of this change is to
8123 make it possible to print warnings from the parser.
8125 * `Text.Pandoc.Parsing`:
8127 + `Text.Parsec` now exports all Parsec functions used in pandoc code.
8128 No other module directly imports Parsec. This will make it easier
8129 to change the parsing backend in the future, if we want to.
8130 + `Text.Parsec` is used instead of `Text.ParserCombinators.Parsec`.
8131 + Export the type synonym `Parser`.
8132 + Export `widthsFromIndices`, `NoteTable'`, `KeyTable'`, `Key'`, `toKey'`,
8133 `withQuoteContext`, `singleQuoteStart`, `singleQuoteEnd`,
8134 `doubleQuoteStart`, `doubleQuoteEnd`, `ellipses`, `apostrophe`,
8135 `dash`, `nested`, `F(..)`, `askF`, `asksF`, `runF`, `lineBlockLines`.
8136 + `ParserState` is no longer an instance of `Show`.
8137 + Added `stateSubstitutions` and `stateWarnings` to `ParserState`.
8138 + Generalized type of `withQuoteContext`.
8139 + Added `guardEnabled`, `guardDisabled`, `getOption`.
8140 + Removed `failIfStrict`.
8141 + `lookupKeySrc` and `fromKey` are no longer exported.
8143 * `Data.Default` instances are now provided for `ReaderOptions`,
8144 `WriterOptions`, and `ParserState`. `Text.Pandoc` re-exports `def`.
8145 Now you can use `def` (which is re-exported by `Text.Pandoc`) instead
8146 of `defaultWriterOptions` (which is still defined). Closes #546.
8148 * `Text.Pandoc.Shared`:
8151 + Renamed `removedLeadingTrailingSpace` to `trim`,
8152 `removeLeadingSpace` to `triml`, and `removeTrailingSpace` to `trimr`.
8153 + Count `\r` as space in `trim` functions.
8154 + Moved `renderTags'` from HTML reader and `Text.Pandoc.SelfContained`
8156 + Removed `failUnlessLHS`.
8157 + Export `compactify'`, formerly in Markdown reader.
8158 + Export `isTightList`.
8159 + Do not export `findDataFile`.
8160 + `readDataFile` now returns a strict ByteString.
8161 + Export `readDataFileUTF8` which returns a String, like the
8163 + Export `fetchItem` and `openURL`.
8165 * `Text.Pandoc.ImageSize`: Use strict, not lazy bytestrings.
8166 Removed `readImageSize`.
8168 * `Text.Pandoc.UTF8`: Export `encodePath`, `decodePath`,
8169 `decodeArg`, `toString`, `fromString`, `toStringLazy`,
8172 * `Text.Pandoc.UTF8` is now an exposed module.
8174 * `Text.Pandoc.Biblio`:
8176 + csl parameter now a `String` rather than a `FilePath`.
8177 + Changed type of `processBiblio`. It is no longer in the IO monad.
8178 It now takes a `Maybe Style` argument rather than parameters for CSL
8179 and abbrev filenames. (`pandoc.hs` now calls the functions to parse
8180 the style file and add abbreviations.)
8182 * Markdown reader now exports `readMarkdownWithWarnings`.
8184 * `Text.Pandoc.RTF` now exports `writeRTFWithEmbeddedImages` instead of
8189 * Make `--ascii` work properly with `--self-contained`. Closes #568.
8193 + Fixed link parser to avoid exponential slowdowns. Closes #620.
8194 Previously the parser would hang on input like this:
8196 [[[[[[[[[[[[[[[[[[hi
8198 We fixed this by making the link parser parser characters
8199 between balanced brackets (skipping brackets in inline code spans),
8200 then parsing the result as an inline list. One change is that
8202 [hi *there]* bud](/url)
8204 is now no longer parsed as a link. But in this respect pandoc behaved
8205 differently from most other implementations anyway, so that seems okay.
8207 + Look for raw html/latex blocks before tables.
8208 Otherwise the following gets parsed as a table:
8219 + Added support for `:target:` on `.. image::` blocks
8223 - Fixed field lists items with body beginning after a new line
8225 - Allow any char but ':' in names of field lists in RST reader
8227 - Don't allow line breaks in field names.
8228 - Require whitespace after field list field names.
8229 - Don't create empty definition list for metadata field lists.
8230 Previously a field list consisting only of metadata fields (author,
8231 title, date) would be parsed as an empty DefinitionList, which is
8232 not legal in LaTeX and not needed in any format.
8234 + Don't recognize inline-markup starts inside words.
8235 For example, `2*2 = 4*1` should not contain an emphasized
8236 section. Added test case for "Literal symbols". Closes #569.
8237 + Allow dashes as separator in simple tables. Closes #555.
8238 + Added support for `container`, `compound`, `epigraph`,
8239 `rubric`, `highlights`, `pull-quote`.
8240 + Added support for `.. code::`.
8241 + Made directive labels case-insensitive.
8242 + Removed requirement that directives begin at left margin.
8243 This was (correctly) not in earlier releases; docutils doesn't
8244 make the requirement.
8245 + Added support for `replace::` and `unicode::` substitutions.
8246 + Ignore unknown interpreted roles.
8247 + Renamed image parser to `subst`, since it now handles all
8248 substitution references.
8252 + Allow newlines before pipes in table. Closes #654.
8253 + Fixed bug with list items containing line breaks.
8254 Now pandoc correctly handles hard line breaks inside list items.
8255 Previously they broke list parsing.
8256 + Implemented comment blocks.
8257 + Fixed bug affected words ending in hyphen.
8258 + Properly handle links with surrounding brackets.
8259 Square brackets need to be used when the link isn't surrounded by
8260 spaces or punctuation, or when the URL ending may be ambiguous.
8262 + Removed nullBlock. Better to know about parsing problems than
8263 to skip stuff when we get stuck.
8264 + Allow ID attributes on headers.
8265 + Textile reader: Avoid parsing dashes as strikeout.
8266 Previously the input
8273 would be parsed with strikeouts rather than dashes. This fixes
8274 the problem by requiring that a strikeout delimiting - not be
8275 followed by a -. Closes #631.
8276 + Expanded list of `stringBreakers`.
8277 This fixes a bug on input like "(_hello_)" which should
8278 be a parenthesized emphasized "hello".
8279 The new list is taken from the PHP source of textile 2.4.
8280 + Fixed autolinks. Previously the textile reader and writer
8281 incorrectly implented RST-style autolinks for URLs and email
8282 addresses. This has been fixed. Now an autolink is done this way:
8283 `"$":http://myurl.com`.
8284 + Fixed footnotes bug in textile. This affected notes occuring
8285 before punctuation, e.g. `foo[1].`. Closes #518.
8289 + Better handling of citation commands.
8290 + Better handling of `\noindent`.
8291 + Added a 'try' in rawLaTeXBlock, so we can handle `\begin` without `{`.
8293 + Made `rawLaTeXInline` try to parse block commands as well. This
8294 is usually what we want, given how `rawLaTeXInline` is used in
8295 the markdown and textile readers. If a block-level LaTeX command
8296 is used in the middle of a paragraph (e.g. `\subtitle` inside a title),
8297 we can treat it as raw inline LaTeX.
8298 + Handle \slash command. Closes #605.
8299 + Basic `\enquote` support.
8300 + Fixed parsing of paragraphs beginning with a group. Closes #606.
8301 + Use curly quotes for bare straight quotes.
8302 + Support obeylines environment. Closes #604.
8303 + Guard against "begin", "end" in inlineCommand and
8305 + Better error messages for environments. Now it should tell you that
8306 it was looking for \end{env}, instead of giving "unknown parse error."
8310 + Added HTML 5 tags to list of block-level tags.
8311 + HTML reader: Fixed bug in `htmlBalanced`, which
8312 caused hangs in parsing certain markdown input using
8314 + Parse `<q>` as `Quoted DoubleQuote`.
8315 + Handle nested `<q>` tags properly.
8316 + Modified `htmlTag` for fewer false positives.
8317 A tag must start with `<` followed by `!`,`?`, `/`, or a letter.
8318 This makes it more useful in the wikimedia and markdown parsers.
8320 * DocBook reader: Support title in "figure" element. Closes #650.
8324 + Remove newline after `<br/>` in translation of `LineBreak`
8325 There's no particular need for a newline (other than making the
8326 generated MediaWiki source look nice to a human), and in fact
8327 sometimes it is incorrect: in particular, inside an enumeration, list
8328 items cannot have embedded newline characters. (Brent Yorgey)
8329 + Use `<code>` not `<tt>` for Code.
8331 * Man writer: Escape `-` as `\-`.
8332 Unescaped `-`'s become hyphens, while `\-`'s are left as ascii minus
8333 signs. That is preferable for use with command-line options. See
8334 <http://lintian.debian.org/tags/hyphen-used-as-minus-sign.html>. Thanks
8335 to Andrea Bolognani for bringing the issue to our attention.
8339 + Improved line block output. Use nonbreaking spaces for
8340 initial indent (otherwise lost in HTML and LaTeX).
8341 Allow multiple paragraphs in a single line block.
8342 Allow soft breaks w continuations in line blocks.
8343 + Properly handle images with no alt text. Closes #678.
8344 + Fixed bug with links with duplicate text. We now (a) use anonymous
8345 links for links with inline URLs, and (b) use an inline link instead
8346 of a reference link if the reference link would require a label that
8347 has already been used for a different link. Closes #511.
8348 + Fixed hyperlinked images. Closes #611. Use `:target:`
8349 field when you have a simple linked image.
8350 + Don't add `:align: center` to figures.
8352 * Texinfo writer: Fixed internal cross-references.
8353 Now we insert anchors after each header, and use `@ref` instead of `@uref`
8354 for links. Commas are now escaped as `@comma{}` only when needed;
8355 previously all commas were escaped. (This change is needed, in part,
8356 because `@ref` commands must be followed by a real comma or period.) Also
8357 insert a blank line in from of `@verbatim` environments.
8361 + Made --id-prefix work in DocBook as well as HTML.
8363 + Don't include empty captions in figures. Closes #581.
8367 + Use `\hspace*` for nonbreaking space after line break,
8368 since `~` spaces after a line break are just ignored.
8370 + Don't escape `_` in URLs or hyperref identifiers.
8371 + Properly escape strings inside \url{}. Closes #576.
8372 + Use `[fragile]` only for slides containing code rendered
8373 using listings. Closes #649.
8374 + Escape `|` as `\vert` in LaTeX math. This avoids a clash with
8375 highlighting-kate's macros, which redefine `|` as a short verbatim
8376 delimiter. Thanks to Björn Peemöller for raising this issue.
8377 + Use minipage rather than parbox for block containers in tables.
8378 This allows verbatim code to be included in grid tables.
8380 + Prevent paragraphs containing only linebreaks or spaces.
8384 + Included `highlighting-css` for code spans, too.
8385 Previously it was only included if used in a code block. Closes #653.
8386 + Improved line breaks with `<dd>` tags. We now put a newline between
8387 `</dd>` and `<dd>` when there are multiple definitions.
8388 + Changed mathjax cdn url so it doesn't use https. (This caused
8389 problems when used with `--self-contained`.) See #609.
8393 + `--number-sections` now works properly.
8394 + Don't strip meta and link elements in epub metadata.
8395 Patch from aberrancy. Closes #589.
8396 + Fixed a couple validation bugs.
8397 + Use ch001, ch002, etc. for chapter filenames. This improves sorting
8398 of chapters in some readers, which apparently sort ch2 after ch10.
8401 * ODT writer: properly set title property (Arlo O'Keeffe).
8405 + Fixed bug with nested lists. Previously a list like
8412 would come out with a bullet instead of "2."
8413 Thanks to Russell Allen for reporting the bug.
8414 + Use `w:cr` in `w:r` instead of `w:br` for linebreaks.
8415 This seems to fix a problem viewing pandoc-generated
8416 docx files in LibreOffice.
8417 + Use integer ids for bookmarks. Closes #626.
8418 + Added nsid to abstractNum elements. This helps when merging
8419 word documents with numbered or bulleted lists. Closes #627.
8420 + Use separate footnotes.xml for notes.
8421 This seems to help LibreOffice convert the file, even though
8422 it was valid docx before. Closes #637.
8423 + Use rIdNN identifiers for r:embed in images.
8424 + Avoid reading image files again when we've already processed them.
8425 + Fixed typo in `referenc.docx` that prevented image captions from
8426 working. Thanks to Huashan Chen.
8428 * `Text.Pandoc.Parsing`:
8430 + Fixed bug in `withRaw`, which didn't correctly handle the case
8431 where nothing is parsed.
8432 + Made `emailAddress` parser more correct. Now it is based on RFC 822,
8433 though it still doesn't implement quoted strings in email addresses.
8434 + Revised URI parser. It now allows many more schemes, allows
8435 uppercase URIs, and better handles trailing punctuation and
8436 trailing slashes in bare URIs. Added many tests.
8437 + Simplified and improved singleQuoteStart. This makes `'s'`, `'l'`,
8438 etc. parse properly. Formerly we had some English-centric heuristics,
8439 but they are no longer needed. Closes #698.
8441 * `Text.Pandoc.Pretty`: Added wide punctuation range to `charWidth`.
8442 This fixes bug with Chinese commas in markdown and reST tables, and
8443 a bug that caused combining characters to be dropped.
8445 * `Text.Pandoc.MIME`: Added MIME types for .wof and .eot. Closes #640.
8447 * `Text.Pandoc.Biblio`:
8449 + Run `mvPunc` and `deNote` on metadata too.
8450 This fixed a bug with notes on titles using footnote styles.
8451 + Fixed bug in fetching CSL files from CSL data directory.
8453 * `pandoc.hs`: Give correct value to `writerSourceDirectory` when a URL
8454 is provided. It should be the URL up to the path.
8456 * Fixed/simplified diff output for tests.
8457 Biblio: Make sure mvPunc and deNote run on metadata too.
8458 This fixed a bug with notes on titles using footnote styles.
8460 [under the hood improvements]
8462 * We no longer depend on `utf8-string`. Instead we use functions
8463 defined in `Text.Pandoc.UTF8` that use `Data.Text`'s conversions.
8465 * Use `safeRead` instead of using `reads` directly (various modules).
8467 * "Implicit figures" (images alone in a paragraph) are now handled
8468 differently. The markdown reader gives their titles the prefix `fig:`; the
8469 writers look for this before treating the image as a figure. Though this
8470 is a bit of a hack, it has two advantages: (i) implicit figures can be
8471 limited to the markdown reader, and (ii) they can be deactivated by turning
8472 off the `implicit_figures` extension.
8474 * `catch` from `Control.Exception` is now used instead of the
8475 old Preface `catch`.
8477 * `Text.Pandoc.Shared`: Improved algorithm for `normalizeSpaces`
8478 and `oneOfStrings` (which is now non-backtracking).
8480 * `Text.Pandoc.Biblio`: Remove workaround for `toCapital`.
8481 Now citeproc-hs is fixed upstream, so this is no longer needed.
8484 * Textile reader: Improved speed of `hyphenedWords`.
8485 This speeds up the textile reader by about a factor of 4.
8487 * Use `Text.Pandoc.Builder` in RST reader, for more flexibility,
8488 better performance, and automatic normalization.
8490 * Major rewrite of markdown reader:
8492 + Use `Text.Pandoc.Builder` instead of lists. This also
8493 means that everything is normalized automatically.
8494 + Move to a one-pass parsing strategy, returning values in the reader
8495 monad, which are then run (at the end of parsing) against the final
8498 * In HTML writer, we now use `toHtml` instead of pre-escaping.
8499 We work around the problem that blaze-html unnecessarily escapes `'`
8500 by pre-escaping just the `'` characters, instead of the whole string.
8501 If blaze-html later stops escaping `'` characters, we can simplify
8502 `strToHtml` to `toHtml`. Closes #629.
8504 * Moved code for embedding images in RTFs from `pandoc.hs` to the
8505 RTF writer (which now exports `writeRTFWithEmbeddedImages`).
8507 * Moved citation processing from `pandoc.hs` into the readers.
8508 This makes things more convenient for library users.
8510 * The man pages are now built by an executable `make-pandoc-man-pages`,
8511 which has its own stanza in the cabal file so that dependencies can be
8512 handled by Cabal. Special treatment in `Setup.hs` ensures that this
8513 executable never gets installed; it is only used to create the man pages.
8515 * The cabal file has been modified so that the pandoc library is used
8516 in building the pandoc executable. (This required moving `pandoc.hs`
8517 from `src` to `.`.) This cuts compile time in half.
8519 * `-O2` is no longer used in building pandoc. The performance improvement
8520 it yields is so slight that it is not worth it. (Measured with
8521 benchmarks on ghc 7.4.)
8523 * The `executable` and `library` flags have been removed.
8525 * `-threaded` has been removed from ghc-options.
8527 * Version bounds of dependencies have been raised, and the
8528 `blaze_html_0_5` flag now defaults to True. Pandoc now compiles on
8531 * We now require base >= 4.2.
8533 * Integrated the benchmark program into cabal. One can now do:
8535 cabal configure --enable-benchmarks && cabal build
8536 cabal bench --benchmark-option='markdown' --benchmark-option='-s 20'
8538 The benchmark now uses README + testsuite, so benchmark results
8539 from older versions aren't comparable.
8541 * Integrated test suite with cabal.
8542 To run tests, configure with `--enable-tests`, then `cabal test`.
8543 You can specify particular tests using `--test-options='-t markdown'`.
8544 No output is shown unless tests fail. The Haskell test modules
8545 have been moved from `src/` to `tests/`.
8547 * Moved all data files and templates to the `data/` subdirectory.
8549 * Added an `embed_data_files` cabal flag. This causes all
8550 data files to be embedded in the binary, so that the binary
8551 is self-sufficient and can be relocated anywhere, copied on
8552 a USB key, etc. The Windows installer now uses this.
8553 (Since we no longer have the option to build the executable
8554 without the library, this is the only way to get a relocatable
8557 * Removed pcre3.dll from windows package.
8558 It isn't needed unless highlighting-kate is compilled with the
8559 `pcre-light` flag. By default, regex-prce-builtin is used.
8564 * Don't encode/decode file paths if base >= 4.4.
8565 Prior to base 4.4, filepaths and command line arguments were treated
8566 as unencoded lists of bytes, not unicode strings, so we had to work
8567 around that by encoding and decoding them. This commit adds CPP
8568 checks for the base version that intelligibly enable encoding/decoding
8569 when needed. Fixes a bug with multilingual filenames when pandoc was
8570 compiled with ghc 7.4 (#540).
8572 * Don't generate an empty H1 after hrule slide breaks.
8573 We now use a slide-level header with contents `[Str "\0"]` to mark
8574 an hrule break. This avoids creation of an empty H1 in these
8575 contexts. Closes #484.
8577 * Docbook reader: Added support for "bold" emphasis. Thanks to Mauro Bieg.
8579 * In make_osx_package.sh, ensure citeproc-hs is built with the
8580 embed_data_files flag.
8582 * MediaWiki writer: Avoid extra blank lines after sublists (Gavin Beatty).
8584 * ConTeXt writer: Don't escape `&`, `^`, `<`, `>`, `_`,
8585 simplified escapes for `}` and `{` to `\{` and `\}` (Aditya Mahajan).
8587 * Fixed handling of absolute URLs in CSS imports with `--self-contained`.
8590 * Added webm to mime types. Closes #543.
8592 * Added some missing exports and tests to the cabal file
8593 (Alexander V Vershilov).
8595 * Compile with `-rtsopts` and `-threaded` by default.
8599 * Markdown reader: Added `cf.` and `cp.` to list of likely abbreviations.
8601 * LaTeX template: Added `linkcolor`, `urlcolor` and `links-as-notes`
8602 variables. Make TOC links black.
8604 * LaTeX template improvements.
8606 + Don't print date unless one is given explicitly in the document.
8607 + Simplified templates.
8608 + Use fontenc [T1] by default, and lmodern.
8609 + Use microtype if available.
8613 + Add comma to beginning of bare suffix, e.g. `@item1 [50]`.
8614 Motivation: `@item1 [50]` should be as close as possible to
8616 + Added workaround for a bug in citeproc-hs 0.3.4 that causes footnotes
8617 beginning with a citation to be empty. Closes #531.
8619 * Fixed documentation on mixed lists. Closes #533.
8623 * Simplified `Text.Pandoc.Biblio` and fixed bugs with citations inside
8624 footnotes and captions. We now handle note citations by inserting
8625 footnotes during initial citation processing, and doing a separate
8626 pass later to remove notes inside notes.
8628 * Added 'zenburn' highlight style from highlighting-kate.
8630 * Added Slideous writer. Slideous is an HTML + javascript slide show
8631 format, similar to Slidy, but works with IE 7. (Jonas Smedegaard)
8635 + Ensure we don't have extra blank lines at ends of cells.
8636 This can cause LaTeX errors, as they are interpreted as new paragraphs.
8637 + More consistent interblock spacing.
8638 + Require highlighting-kate >= 0.5.1, for proper highlighted inline
8639 code in LaTeX. Closes #527.
8640 + Ensure that a Verbatim at the end of a footnote is followed by
8641 a newline. (Fixes a regression in the previous version.)
8642 + In default template, use black for internal links and TOC.
8643 Added commented-out code to use footnotes for links, as would
8644 be suitable in print output.
8646 * Beamer writer: When `--incremental` is used, lists inside
8647 a block quote should appear all at once. (This makes Beamer
8648 output consistent with the HTML slide show formats.)
8652 + Escape `%` as `\letterpercent{}` not `\letterpercent `,
8653 to avoid gobbling spaces after the `%` sign.
8654 + Ensure space after `\stopformula`.
8658 + Use `:` form instead of `~` in definition lists, for better
8659 compatibility with other markdown implementations.
8660 + Don't wrap the term, because it breaks definition lists.
8661 + Use a nonzero space to prevent false recognition
8662 of list marker in ordered lists. Closes #516.
8664 * Org writer: Add space before language name. Closes #523.
8666 * Docx writer: Simplified bullet characters so they work properly
8667 with Word 2007. Closes #520.
8669 * LaTeX reader: Support `\centerline`.
8671 * RST reader: handle figures. Closes #522.
8673 * Textile reader: fix for `<notextile>` and `==`. Closes #517.
8678 * Fixed bug in `fromEntities`. The previous version would turn
8679 `hi & low you know;` into `hi &`.
8683 + Don't skip nonbreaking spaces.
8684 Previously a paragraph containing just ` ` would be rendered
8685 as an empty paragraph. Thanks to Paul Vorbach for pointing out the bug.
8686 + Support `<col>` and `<caption>` in tables. Closes #486.
8690 + Don't recognize references inside delimited code blocks.
8691 + Allow list items to begin with lists.
8693 * Added basic docbook reader (John MacFarlane and Mauro Bieg).
8697 + Handle `\bgroup`, `\egroup`, `\begingroup`, `\endgroup`.
8698 + Control sequences can't be followed by a letter.
8699 This fixes a bug where `\begingroup` was parsed as `\begin`
8700 followed by `group`.
8701 + Parse 'dimension' arguments to unknown commands. e.g. `\parindent0pt`
8702 + Make `\label` and `\ref` sensitive to `--parse-raw`.
8703 If `--parse-raw` is selected, these will be parsed as raw latex
8704 inlines, rather than bracketed text.
8705 + Don't crash on unknown block commands (like `\vspace{10pt}`)
8706 inside `\author`; just skip them. Closes #505.
8710 + Implemented literal escapes with `==` and `<notextile>`. Closes #473.
8711 + Added support for LaTeX blocks and inlines (Paul Rivier).
8712 + Better conformance to RedCloth inline parsing (Paul Rivier).
8713 + Parse '+text+' as emphasized (should be underlined, but this
8714 is better than leaving literal plus characters in the output.
8716 * Docx writer: Fixed multi-paragraph list items. Previously they each
8717 got a list marker. Closes #457.
8721 + Added `--no-tex-ligatures` option to avoid replacing
8722 quotation marks and dashes with TeX ligatures.
8723 + Use `fixltx2e` package to provide '\textsubscript'.
8724 + Improve spacing around LaTeX block environments:
8725 quote, verbatim, itemize, description, enumerate.
8727 + Use blue instead of pink for URL links in latex/pdf output.
8729 * ConTeXt writer: Fixed escaping of `%`.
8730 In text, `%` needs to be escaped as `\letterpercent`, not `\%`
8731 Inside URLs, `%` needs to be escaped as `\%`
8732 Thanks to jmarca and adityam for the fix. Closes #492.
8734 * Texinfo writer: Escape special characters in node titles.
8735 This fixes a problem pointed out by Joost Kremers. Pandoc used
8736 to escape an '@' in a chapter title, but not in the corresponding
8737 node title, leading to invalid texinfo.
8739 * Fixed document encoding in texinfo template.
8740 Resolves Debian Bug #667816.
8744 + Don't force delimited code blocks to be flush left.
8745 Fixes bug with delimited code blocks inside lists etc.
8746 + Escape `<` and `$`.
8748 * LaTeX writer: Use `\hyperref[ident]{text}` for internal links.
8749 Previously we used `\href{\#ident}{text}`, which didn't work on
8750 all systems. Thanks to Dirk Laurie.
8752 * RST writer: Don't wrap link references. Closes #487.
8754 * Updated to use latest versions of blaze-html, mtl.
8761 + Made `lstlisting` work as a proper verbatim environment.
8762 + Fixed bug parsing LaTeX tables with one column.
8766 + Use `{}` around `ctable` caption, so that formatting can be used.
8767 + Don't require eurosym package unless document has a €.
8769 * LaTeX template: Added variables for `geometry`, `romanfont`,
8770 `sansfont`, `mathfont`, `mainfont` so users can more easily
8775 + Run latex engine at least two times, to ensure
8776 that PDFs will have hyperlinked bookmarks.
8777 + Added PDF metadata (title,author) in LaTeX standalone + PDF output.
8779 * Texinfo writer: retain directories in image paths. (Peter Wang)
8781 * RST writer: Better handling of inline formatting, in accord
8782 with docutils' "inline markup recognition rules" (though we don't
8783 implement the unicode rules fully). Now `hi*there*hi` gets
8784 rendered properly as `hi\ *there*\ hi`, and unnecessary
8785 `\ ` are avoided around `:math:`, `:sub:`, `:sup:`.
8789 + Parse `\ ` as null, not escaped space.
8790 + Allow `` :math:`...` `` even when not followed by blank
8791 or `\`. This does not implement the complex rule docutils follows,
8792 but it should be good enough for most purposes.
8793 + Add support for the rST default-role directive. (Greg Maslov)
8795 * Text.Pandoc.Parsing: Added `stateRstDefaultRole` field to `ParserState`.
8798 * Markdown reader: Properly handle citations nested in other inline
8801 * Markdown writer: don't replace empty alt in image with "image".
8803 * DZSlides: Updated template.html and styles in default template.
8804 Removed bizarre CSS for `q` in dzslides template.
8806 * Avoid repeated `id` attribute in section and header in HTML slides.
8808 * README improvements: new instructions on internal links,
8809 removed misleading note on reST math.
8813 + Fixed Windows installer so that dzslides works.
8814 + Removed stripansi.sh.
8815 + Added .travis.yml for Travis continuous integration support..
8816 + Fixed upper bound for zlib (Sergei Trofimovich).
8817 + Fixed upper bound for test-framework.
8818 + Updated haddocks for haddock-2.10 (Sergei Trofimovich).
8822 * Added `beamer+lhs` as output format.
8824 * Don't escape `<` in `<style>` tags with `--self-contained`.
8825 This fixes a bug which prevented highlighting from working
8826 when using `--self-contained`.
8828 * PDF: run latex engine three times if `--toc` specified.
8829 This fixes page numbers in the table of contents.
8831 * Docx writer: Added TableNormal style to tables.
8833 * LaTeX math environment fixes. `aligned` is now used instead of
8834 the nonexistent `aligned*`. `multline` instead of the nonexistent
8837 * LaTeX writer: Use `\textasciitilde` for literal `~`.
8839 * HTML writer: Don't escape contents of EQ tags with --gladtex.
8840 This fixes a regression from 1.8.
8842 * Use `<q>` tags for Quoted items for HTML5 output.
8843 The quote style can be changed by modifying the template
8844 or including a css file. A default quote style is included.
8846 * LaTeX reader: Fixed accents (\~{a}, `\c{c}`).
8847 Correctly handle \^{}. Support "minted" as a LaTeX verbatim block.
8849 * Updated LaTeX template for better language support.
8850 Use `polyglossia` instead of `babel` with xetex.
8851 Set `lang` as documentclass option.
8852 `\setmainlanguage` will use the last of a comma-separated
8853 list of languages. Thanks to François Gannaz.
8855 * Fixed default LaTeX template so `\euro` and `€` work. The
8856 `eurosym` package is needed if you are using pdflatex.
8858 * Fixed escaping of period in man writer (thanks to Michael Thompson).
8860 * Fixed list label positions in beamer.
8862 * Set `mainlang` variable in context writer.
8863 This parallels behavior of latex writer. `mainlang` is the last
8864 of a comma-separated list of languages in lang.
8866 * EPUB language metadat: convert e.g. `en_US` from locale to `en-US`.
8868 * Changed `-V` so that you can specify a key without a value.
8869 Such keys get the value `true`.
8871 * Fixed permissions on installed man pages - thanks Magnus Therning.
8873 * Windows installer: require XP or higher. The installer is
8874 now compiled on a Windows 7 machine, which fixes a problem
8875 using citation functions on Windows 7.
8877 * OSX package: Check for 64-bit Intel CPU before installing.
8881 * Better handling of raw latex environments in markdown. Now
8887 turns into a raw latex block as expected.
8889 * Improvements to LaTeX reader:
8891 + Skip options after block commands.
8892 + Correctly handle `{\\}` in braced.
8893 + Added a needed 'try'.
8894 + Citations: add `, ` to suffix if it doesn't start with space or
8895 punctuation. Otherwise we get no space between the year and the
8896 suffix in author-date styles.
8898 * Added two needed data files for S5. This fixes a problem with
8899 `pandoc -t s5 --self-contained`. Also removed `slides.min.js`,
8900 which was no longer being used.
8902 * Fixed some minor problems in `reference.docx`:
8903 name on "Date" style, `xCs` instead of `xIs`.
8905 * Fixed a problem creating docx files using a reference docx
8906 modified using Word. The problem seems to be that Word
8907 modifies `_rels/.rels`, changing the Type of the Relationship to
8908 `docProps/core.xml`. Pandoc now changes this back to the correct
8909 value if it has been altered, fixing the problem.
8911 * Fixed html5 template so it works properly with highlighting.
8917 + Fixed regression in 1.9; properly handle escaped $ in latex math.
8918 + Put LaTeX verse environments in blockquotes.
8922 + Limit nesting of strong/emph. This avoids exponential lookahead
8923 in parasitic cases, like `a**a*a**a*a**a*a**a*a**a*a**a*a**a*a**`.
8924 + Improved attributes syntax (inn code blocks/spans):
8925 (1) Attributes can contain line breaks. (2) Values in key-value
8926 attributes can be surrounded by either double or single quotes, or
8927 left unquoted if they contain no spaces.
8929 * Don't wrap headers in markdown or RST writers.
8931 * Added `stateMaxNestingLevel` to `ParserState`.
8932 We set this to 6, so you can still have `Emph` inside `Emph`,
8933 just not indefinitely.
8935 * More efficient implementation of `nowrap` in `Text.Pandoc.Pretty`.
8937 * `Text.Pandoc.PDF`: Only run latex twice if `\tableofcontents`
8940 * Require highlighting-kate >= 0.5.0.2, texmath >= 0.6.0.2.
8944 * Changed cabal file so that build-depends for the test program
8945 are not required unless the tests flag is used.
8947 * LaTeX writer: insert `{}` between adjacent hyphens so they don't
8948 form ligatures (dashes) in code spans.
8952 * Raised version bound on test-framework to avoid problems
8953 compiling tests on GHC 7.4.1.
8955 * LaTeX reader: Use raw LaTeX as fallback inline text for Cites,
8956 so citations don't just disappear unless you process with
8957 citeproc. Ignore `\bibliographystyle`, `\nocite`.
8959 * Simplified tex2pdf; it will always run latex twice to
8960 resolve table of contents and hyperrefs.
8964 * Require Cabal >= 1.10.
8965 * Tweaked cabal file to meet Cabal 1.10 requirements.
8969 * Allow build with json 0.4 or 0.5. Otherwise we can't build with
8976 * Added a Microsoft Word `docx` writer. The writer includes support
8977 for highlighted code and for math (which is converted from TeX to OMML,
8978 Office's native math markup language, using texmath's new OMML module).
8979 A new option `--reference-docx` allows the user to customize the
8982 * Added an `asciidoc` writer (<http://www.methods.co.nz/asciidoc/>).
8984 * Better support for slide shows:
8986 + Added a `dzslides` writer. DZSlides is a lightweight HTML5/javascript
8987 slide show format due to Paul Rouget (<http://paulrouget.com/dzslides/>).
8989 + Added a LaTeX `beamer` writer. Beamer is a LaTeX package for creating
8990 slide presentations.
8992 + New, flexible rules for dividing documents into sections and slides
8993 (see the "Structuring the slide show" in the User's Guide). These
8994 are backward-compatible with the old rules, but they allow slide
8995 shows to be organized into sections and subsections containing
8998 + A new `--slide-level` option allows users to override defaults
8999 and select a slide level below the first header level with content.
9001 * A new `--self-contained` option produces HTML output that does not
9002 depend on an internet connection or the presence of any external
9003 files. Linked images, CSS, and javascript is downloaded (or fetched
9004 locally) and encoded in `data:` URIs. This is useful for making portable
9005 `HTML slide shows. The --offline` option has been deprecated and is now
9006 `treated as a synonym or --self-contained`.
9008 * Support for PDF output:
9010 + Removed the old `markdown2pdf`.
9011 + `pandoc` can now create PDFs (assuming you have latex and a set of
9012 appropriate packages installed): just specify an output file with the
9014 + A new option `--latex-engine` allows you to specify `pdflatex`,
9015 `xelatex`, or `lualatex` as the processor.
9017 * Highlighting changes:
9019 + Syntax highlighting is now a standard feature; the `highlighting`
9020 flag is no longer needed when compiling.
9021 + A new `--no-highlight` option allows highlighting to be disabled.
9022 + Highlighting now works in `docx`, `latex`, and `epub`, as well as
9023 `html`, `html5`, `dzslides`, `s5`, and `slidy`.
9024 + A new `--highlight-style` option selects between various highlighting
9027 * Internal links to sections now work in ConTeXt and LaTeX as well as HTML.
9029 * LaTeX `\include` and `\usepackage` commands are now processed,
9030 provided the files are in the working directory.
9032 * EPUB improvements:
9034 + Internal and external links now work in EPUB.
9035 + Raw HTML is allowed.
9036 + New `--epub-embed-font` option.
9037 + Customizable templates for EPUB pages offer more control over
9038 formatting: `epub-page.html`, `epub-coverimage.html`,
9039 `epub-titlepage.html`.
9041 * `--mathml` now works with DocBook.
9043 * Added support for math in RST reader and writer. Inline math uses the
9044 `` :math:`...` `` construct. Display math uses
9048 or if the math is multiline,
9054 These constructions are now supported now by `rst2latex.py`.
9056 * GitHub syntax for fenced code blocks is supported in pandoc's
9057 markdown. You can now write
9069 * Easier scripting: a new `toJsonFilter` function makes it easier to
9070 write Haskell scripts to manipulate the Pandoc AST.
9074 * Fixed parsing of consecutive lists in markdown.
9075 Pandoc previously behaved like Markdown.pl for consecutive
9076 lists of different styles. Thus, the following would be parsed
9077 as a single ordered list, rather than an ordered list followed
9078 by an unordered list:
9086 This change makes pandoc behave more sensibly, parsing this as
9087 two lists. Any change in list type (ordered/unordered) or in
9088 list number style will trigger a new list. Thus, the following
9089 will also be parsed as two lists:
9097 Since we regard this as a bug in Markdown.pl, and not something
9098 anyone would ever rely on, we do not preserve the old behavior
9099 even when `--strict` is selected.
9101 * Dashes work differently with `--smart`: `---` is always em-dash,
9102 and `--` is always en-dash. Pandoc no longer tries to guess when
9103 `-` should be en-dash. *Note:* This may change how existing documents
9104 look when processed with pandoc. A new option, `--old-dashes`,
9105 is provided for legacy documents.
9107 * The markdown writer now uses setext headers for levels 1-2.
9108 The old behavior (ATX headers for all levels) can be restored
9109 using the new `--atx-headers` option.
9111 * Links are now allowed in markdown image captions. They are also
9112 allowed in links, but will appear there as regular text. So,
9114 [link with [link](/url)](/url)
9118 <p><a href="/url">link with link</a></p>
9120 * Improved handling of citations using `citeproc-hs-0.3.4`.
9121 Added `--citation-abbreviations` option.
9123 * Citation keys can no longer end with a punctuation character.
9124 This means that `@item1.` will be parsed as a citation with key
9125 'item1', followed by a period, instead of a citation with key
9126 'item1.', as was the case previously.
9128 * In HTML output, citations are now put in a span with class `citation`.
9130 * The markdown reader now recognizes DocBook block and inline tags.
9131 It was always possible to include raw DocBook tags in a markdown
9132 document, but now pandoc will be able to distinguish block from
9133 inline tags and behave accordingly. Thus, for example,
9139 will not be wrapped in `<para>` tags.
9141 * The LaTeX parser has been completely rewritten; it is now much more
9142 accurate, robust, and extensible. However, there are two important
9143 changes in how it treats unknown LaTeX. (1) Previously, unknown
9144 environments became BlockQuote elements; now, they are treated
9145 as "transparent", so `\begin{unknown}xyz\end{unknown}` is the
9146 same as `xyz`. (2) Previously, arguments of unknown commands
9147 were passed through with their braces; now the braces are stripped
9150 * `--smart` is no longer selected automatically with `man` output.
9152 * The deprecated `--xetex` option has been removed.
9154 * The `--html5`/`-5` option has been deprecated. Use `-t html5`
9155 instead. `html5` and `html5+lhs` are now separate output formats.
9157 * Single quotes are no longer escaped in HTML output. They do not
9158 need to be escaped outside of attributes.
9160 * Pandoc will no longer transform leading newlines in code
9161 blocks to `<br/>` tags.
9163 * The ODT writer now sizes images appropriately, using the image
9164 size and DPI information embedded in the image.
9166 * `--standalone` is once again implicitly for a non-text output format
9167 (ODT, EPUB). You can again do `pandoc test.txt -o test.odt`
9168 and get a standalone ODT file.
9170 * The Docbook writer now uses `<sect1>`, `<sect2>`, etc. instead of
9173 * The HTML writer now uses `<del>` for strikeout.
9175 * In HTML output with `--section-divs`, the classes `section` and
9176 `level[1,2,..6]` are put on the `div` tags so they can be styled.
9177 In HTML 5 output with `--section-divs`, the classes
9178 `level[1,2,...6]` are put on `section` tags.
9180 * EPUB writer changes:
9182 + The `lang` variable now sets the language
9183 in the metadata (if it is not set, we default to the locale).
9184 + EPUB: UTF-8 is used rather than decimal entities.
9186 * Added `titleslide` class to title slide in S5 template.
9188 * In HTML, EPUB, and docx metadata, the date is normalized into
9189 YYYY-MM-DD format if possible. (This is required for validation.)
9191 * Attributes in highlighted code blocks are now preserved in HTML.
9192 The container element will have the classes, id, and key-value attributes
9193 you specified in the delimited code block. Previously these were stripped
9196 * The reference backlink in the HTML writer no longer has a special
9197 `footnoteBacklink` class.
9199 * The HTML template has been split into `html` and `html5` templates.
9201 * Author and date are treated more consistently in HTML templates.
9202 Authors are now `<h2>`, date `<h3>`.
9204 * URLs are hyphenated in the ConTeXt writer (B. Scott Michel).
9206 * In `Text.Pandoc.Builder`, `+++` has been replaced by `<>`.
9210 * Better support for combining characters and East Asian wide characters
9211 in markdown and reST.
9213 * Better handling of single quotes with `--smart`.
9214 Previously `D'oh l'*aide*` would be parsed with left and right single
9215 quotes instead of apostrophes. This kind of error is now fixed.
9217 * Highlighting: Use `reads` instead of `read` for better error handling.
9218 Fixes crash on `startNum="abc"`.
9220 * Added blank comment after directives in rst template.
9222 * Unescape entities in citation `refId`. The `refId`s coming
9223 from citeproc contain XML numeric entities, and these don't match with the
9224 citation keys parsed by pandoc. Solution is to unescape them.
9226 * HTML reader: Fixed bug parsing tables with both thead and tbody.
9230 + Better handling of escapes in link URLs and titles.
9231 + Fixed backslash escapes in reference links.
9232 + Fixed bug in table/hrule parsing, by checking that the top
9233 line of a table is not followed by a blank line. This bug caused
9234 slowdowns on some files with hrules and tables, as pandoc tried to
9235 interpret the hrules as the tops of multiline tables.
9236 + Fixed bug in code block attribute parser. Previously the ID attribute
9237 got lost if it didn't come first. Now attributes can come in any order.
9239 * RST reader: allow footnotes followed by newline without space characters.
9243 + Ignore empty groups {}, { }.
9244 + LaTeX reader: Handle \@.
9245 + LaTeX reader: Don't crash on commands like `\itemsep`.
9246 + LaTeX reader: Better handling of letter environments.
9248 * RST writer: Fixed bug involving empty table cells. isSimple was being
9249 calculated in a way that assumed there were no non-empty cells.
9253 + Made `--toc` work even without `--number-sections`.
9254 + Escape # in link URLs.
9255 + Use buffering for footnotes containing code blocks.
9256 + Changed 'descr' to 'description', fixed alignment.
9260 + Escape euro character.
9261 + Don't escape ~ inside href{...}.
9262 + Escape # in href URLs.
9263 + Improved detection of book classes. We now check the
9264 `documentclass` variable, and if that is not set, we look through
9265 the template itself. Also, we have added the KOMA classes scrreprt
9266 and scrbook. You can now make a book using
9267 `pandoc -V documentclass:book mybook.txt -o mybook.pdf`
9268 + LHS files now set the "listings" variable, so that the definition
9269 of the `code` environment will be included in the template.
9270 + Links are colored blue by default (this can be changed by
9271 modifying `hyperref` settings in the template).
9272 + Added `lang` variable to LaTeX template.
9276 + Fixed bug in HTML template with html5 and mathml.
9277 + Don't use self-closing img, br, hr tags for HTML5.
9278 + Use `<section>` for footnotes if HTML5.
9279 + Update HTML templates to use Content-Style-Type meta tag.
9280 + Use separate variables for meta-date, meta-author.
9281 This makes footnotes work in author and date fields.
9282 + Use 'vertical-align:middle' in WebTeX math for better alignment.
9284 * S5/slidy writer: Make footnotes appear on separate slide at end.
9286 * MIME: Added 'layout-cache' to getMimeType. This ensures that the
9287 META-INF/manifest.xml for ODT files will have everything it needs, so
9288 that ODT files modified by LibreOffice can be used as `--reference-odt`.
9290 * `Text.Pandoc.Templates`: Return empty string for json template.
9292 * `Text.Pandoc.Biblio`:
9294 + Expand citations recursively inside nested inlines.
9295 + Treat `\160` as space when parsing locator and suffix.
9296 This fixes a bug with "p. 33" when `--smart` is used. Previously
9297 the whole "p. 33" would be included in the suffix, with no locator.
9298 + Put whole author-in-text citation in a Cite. Previously just the
9299 date and other info went in the Cite.
9300 + Don't add comma+space to prefix if it ends in punctuation.
9302 * Updated chicago-author-date.csl. The old version did not work
9303 properly for edited volumes with no author.
9307 + Add date to EPUB titlepage and metadata.
9308 + Added TOC identifier in EPUB page template.
9309 + Don't generate superfluous file `cover-image.jpg`.
9311 [under the hood improvements]
9313 * Modified `make_osx_package.sh` to use cabal-dev.
9314 Items are no longer installed as root.
9315 Man pages are zipped and given proper permissions.
9317 * Modified windows installer generater to use cabal-dev.
9319 * Setup: Making man pages now works with cabal-dev (at least on OSX). In
9320 Setup.hs we now invoke 'runghc' in a way that points it to the correct
9321 package databases, instead of always falling back to the default user
9324 * Updated to work with GHC 7.4.1.
9326 * Removed dependency on old-time.
9328 * Removed dependency on dlist.
9330 * New slidy directory for "self-contained."
9332 * TeXMath writer: Use unicode thin spaces for thin spaces.
9334 * Markdown citations: don't strip off initial space in locator.
9338 * Removed `Apostrophe`, `EmDash`, `EnDash`, and `Ellipses`
9339 from the native `Inline` type in pandoc-types. Now we use `Str`
9340 elements with unicode.
9342 * Improvements to `Text.Pandoc.Builder`:
9344 + `Inlines` and `Blocks` are now newtypes (not synonyms for
9346 + Instances are defined for `IsString`, `Show`, `Read`, `Monoid`,
9347 and a new `Listable` class, which allows these to be manipulated
9348 to some extent like lists. Monoid append includes automatic
9350 + `+++` has been replaced by `<>` (mappend).
9352 * Use blaze-html instead of xhtml for HTML generation.
9353 This changes the type of `writeHtml`.
9355 * `Text.Pandoc.Shared`:
9357 + Added `warn` and `err`.
9358 + Removed `unescapeURI`, modified `escapeURI`.
9359 (See under [behavior changes], above.)
9361 * Changes in URI escaping: Previously the readers escaped URIs by
9362 converting unicode characters to octets and then percent encoding.
9363 Now unicode characters are left as they are, and `escapeURI` only
9364 percent-encodes space characters. This gives more readable
9365 URIs, and works well with modern user agents. URIs are no longer unescaped
9366 at all on conversion to `markdown`, `asciidoc`, `rst`, `org`.
9368 * New module `Text.Pandoc.SelfContained`.
9370 * New module `Text.Pandoc.Docx`.
9372 * New module `Text.Pandoc.PDF`.
9374 * Added `writerBeamer` to `WriterOptions`.
9376 * Added `normalizeDate` to `Text.Pandoc.Shared`.
9378 * Added `splitStringWithIndices` in `Text.Pandoc.Shared`.
9379 This is like `splitWithIndices`, but it is sensitive to distinctions
9380 between wide, combining, and regular characters.
9382 * `Text.Pandoc.Pretty`:
9384 + Added `chomp` combinator.
9385 + Added `beforeNonBreak` combinator. This allows you to include
9386 something conditionally on it being before a nonblank.
9387 Used for RST inline math.
9388 + Added `charWidth` function. All characters marked W or F in the unicode
9389 spec EastAsianWidth.txt get width 2.
9390 + Added `realLength`, based on `charWidth`. `realLength` is now
9391 used in calculating offsets.
9393 * New module `Text.Pandoc.Slides`, for common functions for breaking
9394 a document into slides.
9396 * Removed `Text.Pandoc.S5`, which is no longer needed.
9398 * Removed `Text.Pandoc.CharacterReferences`. Moved
9399 `characterReference` to `Text.Pandoc.Parsing`.
9400 `decodeCharacterReferences` is replaced by `fromEntities`
9401 in `Text.Pandoc.XML`.
9403 * Added `Text.Pandoc.ImageSize`. This is intened for use
9404 in `docx` and `odt` writers, so the size and dpi of images
9407 * Removed `writerAscii` in `WriterOptions`.
9409 * Added `writerHighlight` to `WriterOptions`.
9411 * Added `DZSlides` to `HTMLSlideVariant`.
9413 * `writeEPUB` has a new argument for font files to embed.
9415 * Added `stateLastStrPos` to `ParserState`. This lets us keep track
9416 of whether we're parsing the position immediately after a regular
9417 (non-space, non-symbol) string, which is useful for distinguishing
9418 apostrophes from single quote starts.
9420 * `Text.Pandoc.Parsing`:
9422 + `escaped` now returns a `Char`.
9423 + Removed `charsInBalanced'`, added a character parser as
9424 a parameter of `charsInBalanced`. This is needed for
9425 proper handling of escapes, etc.
9428 * Added `toEntities` to `Text.Pandoc.XML`.
9430 * `Text.Pandoc.Readers.LaTeX`:
9432 + Export `handleIncludes`.
9433 + Export `rawLaTeXBlock` instead of `rawLaTeXEnvironment'`.
9435 * Added `ToJsonFilter` class and `toJsonFilter` function to
9436 `Text.Pandoc`, deprecating the old `jsonFilter` function.
9438 * `Text.Pandoc.Highlighting`:
9440 + Removed `highlightHtml`, `defaultHighlightingCss`.
9441 + Export `formatLaTeXInline`, `formatLaTeXBlock`, and `highlight`, plus
9442 key functions from highlighting-kate.
9443 + Changed types of highlighting function. `highlight` returns a
9444 `Maybe`, not an `Either`.
9448 * Relaxed cabal consntraints for test-framework (S. Trofimovich).
9450 * Relaxed cabal constraints for pandoc-types.
9452 * Adjusted Arbitrary instance to help avoid timeouts in tests.
9454 * Added `Tests.Writers.Markdown` to cabal file.
9458 * Added script to produce OS X package.
9460 * Made `templates` directory a git submodule. This should make it
9461 easier for people to revise their custom templates when the default
9464 * Changed template naming scheme: `FORMAT.template` -> `default.FORMAT`.
9465 **Note:** If you have existing templates in `~/.pandoc/templates`, you
9466 must rename them to conform to the new scheme!
9468 * Fixed smart quotes bug, now handling `'...hi'` properly.
9472 + Partial support for labeled footnotes.
9473 + Improved accuracy of `simpleReferenceName` parser.
9477 + Substitute correct unicode characters for
9478 characters in the 128..159 range, which are often found even in
9479 HTML that purports to be UTF-8.
9481 * LaTeX reader: Handle `\subtitle` command (a subtitle is added
9482 to the title, after a colon and linebreak). Closes #280.
9484 * Leaner `reference.odt`.
9486 * Added unexported module `Text.Pandoc.MIME` for use in
9489 * ODT writer: Construct `manifest.xml` based on archive contents.
9490 This fixes a bug in ODTs containing images. Recent versions of
9491 LibreOffice would reject these as corrupt, because `manifest.xml`
9492 did not contain a reference to the image files.
9496 + Make verbatim environments flush to avoid spurious
9497 blank lines. Closes #277.
9498 + Use `\texttt` and escapes insntead of `\verb!...!`, which
9499 is too fragile (doesn't work in command arguments).
9500 + Use `\enquote{}` for quotes if the template includes
9501 the `csquotes` package. This provides better support for
9502 local quoting styles. (Thanks to Andreas Wagner for the idea.)
9504 * ConTeXt writer: Make `\starttyping`/`\stoptyping` flush with
9505 margin, preventing spurious blank lines.
9509 + Use non-minimized version of `slidy.css` with `--offline`
9510 option, so users can more easily edit it.
9511 + Also fixed a bug in the CSS that prevented proper centering
9512 of title (now reported and fixed upstream).
9516 + Replaced `s5/default/slides.js.{comment,packed}` with
9517 new compressed `s5/default/slides.min.js`.
9518 + Use `data:` protocol to embed S5 CSS in `<link>` tags,
9519 when `--offline` is specified. Using inline CSS didn't
9520 work with Chrome or Safari. This fixes offline
9521 S5 on those browsers.
9523 * HTML writer: Removed English title on footnote backlinks.
9524 This is incongrous in non-English documents.
9528 + Use CALS tables. (Some older docbook software does not work
9529 well with XHTML tables.) Closes #77.
9530 + Use `programlisting` tags (instead of `screen`) for code blocks.
9534 + Calls latex with `-halt-on-error -interaction nonstopmode` instead
9535 of `-interaction=batchmode`, which essentially just ignored errors,
9536 leading to bad results. Better to know when something is wrong.
9537 + Fixed issues with non-UTF-8 output of `pdflatex`.
9538 + Better error reporting.
9540 * `--mathjax` now takes an optional URL argument. If it is not
9541 provided, pandoc links directly to the (secure) mathjax CDN,
9542 as now recommended (thanks to dsanson).
9544 * Deprecated `--xetex` option in `pandoc`. It is no longer needed,
9545 since the LaTeX writer now produces a file that can be processed by
9546 `latex`, `pdflatex`, `lualatex`, or `xelatex`.
9548 * Introduced `--luatex` option to `markdown2pdf`. This causes `lualatex`
9549 to be used to create the PDF.
9551 * If a template specified with `--template` is not found, look for it
9552 in `datadir`. Also, if no extension is provided, supply one based
9553 on the writer. So now you can put your `special.latex` template in
9554 `~/.pandoc/templates`, and use it from any directory via
9555 `pandoc -t latex --template special`.
9557 * Default template improvements:
9559 + HTML: Display author and date after title.
9560 + HTML: Made table of contents more customizable. The container
9561 for the TOC is now in the template, so users can insert a header
9562 or other styling. (Thanks to Bruce D'Arcus for the suggestion.)
9563 + HTML, Slidy, S5: Enclose scripts in CDATA tags.
9564 + Slidy, S5: Added `s5-url` and `slidy-url` variables, instead of
9565 hard-coding. If you want to put your slidy files in the slidy
9566 subdirectory, for example, you can do
9567 `pandoc -t slidy -V slidy-url=slidy -s`.
9568 + LaTeX: Use `\and` to separate authors in LaTeX documents (reader
9569 & writer). Closes #279.
9570 + LaTeX: Use different `hyperref` options for `xetex`, fixing
9571 problems with unicode bookmarks (thanks to CircleCode).
9572 + LaTeX: Removed `ucs` package, use `utf8` rather than `utf8x`
9573 with `inputenc`. This covers fewer characters but is more
9574 robust with other packages, and `ucs` is unmaintained. Users
9575 who need better unicode support should use xelatex or lualatex.
9579 * Added `--epub-cover-image` option.
9581 * Documented `--biblatex` and `--natbib` options.
9583 * Allow `--section-divs` with slidy output. Resolves Issue #296.
9585 * Disallow notes within notes in reST and markdown.
9586 These previously caused infinite looping and stack overflows.
9593 Note references are allowed in reST notes, so this isn't a full
9594 implementation of reST. That can come later. For now we need to
9595 prevent the stack overflows. Partially resolves Issue #297.
9597 * EPUB writer: Allow non-plain math methods.
9599 * Forbid ()s in citation item keys. Resolves Issue #304: problems with
9600 `(@item1; @item2)` because the final paren was being parsed as part of
9603 * Changed URI parser so it doesn't include trailing punctuation.
9604 So, in RST, `http://google.com.` should be parsed as a link followed by a
9605 period. The parser is smart enough to recognize balanced parentheses, as
9606 often occur in wikipedia links: `http://foo.bar/baz_(bam)`.
9608 * Markdown+lhs reader: Require space after inverse bird tracks, so that
9609 HTML tags can be used freely at the left margin of a markdown+lhs document.
9610 Thanks to Conal Elliot for the suggestion.
9614 + Improved emph/strong parsing; fixes bug found by Perry Wagle.
9615 + Fixed bug in footnote order (reported by CircleCode).
9618 + Fixed bug in in field lists with multi-line items at the
9620 + Added parentheses to RST `specialChars`, so
9621 `(http://google.com)` will be parsed as a link in parens.
9622 Resolves Issue #291.
9623 + Allow `|` followed by newline in RST line block.
9627 + Gobble option & space after linebreak `\\[10pt]`.
9630 + Make it possible to have colons after links. (qerub)
9631 + Make it possible to have colons after links. (Christoffer Sawicki)
9634 + Skip spaces after `<b>`, `<emph>`, etc.
9635 + Handle tbody, thead in simple tables. Closes #274.
9636 + Implicit `Para`s instead of `Plains` in some contexts.
9638 * OpenDocument writer: Use special `First paragraph` style for
9639 first paragraph after most non-paragraph blocks. This allows users to
9640 specify e.g. that only paragraphs after the first paragraph of a block are
9641 to be indented. Thanks to Andrea Rossato for the patch. Closes #20.
9643 * LaTeX writer: use `deVerb` on table and picture captions.
9644 Otherwise LaTeX complains about `\verb` inside command argument.
9645 Thanks to bbanier for reporting the bug.
9647 * Markdown writer: Insert HTML comment btw list and indented code block.
9648 This prevents the code block from being interpreted as part of the list.
9650 * EPUB writer: Add a meta element specify the cover.
9651 Some EPUB e-readers, such as the Nook, require a meta element inside the
9652 OPF metadata block to ensure the cover image is properly displayed.
9655 * HTML writer: Use embed tag for images with non-image extensions.
9656 (e.g. PDFs). Closes #264.
9658 * LaTeX writer: Improved tables.
9660 + More space between lines, top-align cells.
9661 + Use ctable package, which allows footnotes and
9662 provides additional options.
9663 + Made cell alignments work in multiline tables.
9664 + Closes #271, #272.
9666 * Un-URI-escape image filenames in LaTeX, ConTeXt, RTF, Texinfo.
9667 Also do this when copying image files into EPUBs and ODTs.
9670 * Changed to github issue tracker.
9672 * Added failing emph/strong markdown test case due to Perry Wagle.
9674 * Slidy improvements:
9675 + Updated to use Slidy2.
9676 + Fixed bug, unclosed div tag.
9677 + Added `duration` variable in template.
9678 Setting this activates the timer.
9679 + Use 'titlepage' instead of 'cover' for title div.
9683 * `markdown2pdf`: Removed some debugging lines accidentally included
9684 in the 1.8.1 release. With those lines, the temp directory is created
9685 in the working directory, and it is not deleted. This fix restores
9686 the original behavior.
9690 * Added `--ascii` option. Currently supported only in HTML writer,
9691 which it causes to use numerical entities instead of UTF-8.
9693 * EPUB writer: `--toc` now works to provide a table of contents
9694 at the beginning of each chapter.
9696 * LaTeX writer: Change figure defaults to `htbp`.
9697 This prevents "too many unprocessed floats." Resolves
9700 * `Text.Pandoc.UTF8`: Encode filenames even when using recent
9703 * `markdown2pdf`: Fixed filename encoding issues. With help from Paulo
9704 Tanimoto. Resolves Issue #286.
9706 * HTML writer: Put line breaks in section divs.
9708 * `Text.Pandoc.Shared`: Make `writerSectionDivs` default to False.
9712 * Fixed Source-repository stanza in cabal file.
9718 + Stringify alt text instead of converting to HTML.
9719 + Break lines after block elements, not inside tags.
9720 HTML output now closely resembles that of tidy. Resolves Issue #134.
9722 * Markdown reader: Fixed bug in footnote block parser (pointed out
9723 by Jesse Rosenthal). The problem arose when the blank line
9724 at the end of a footnote block contained indenting spaces.
9726 * Shared: Improved 'normalize' function so it normalizes Spaces too.
9727 In normal form, Space elements only occur to separate two non-Space
9728 elements. So, we never have [Space], or [, ..., Space].
9732 + Improved Arbitrary instance.
9733 + Added timeout for test instances.
9737 + Added section on four-space rule for lists. Resolves Issue #283.
9738 + Clarified optional arguments on math options.
9740 * markdown2pdf: Fixed bug with output file extensions.
9741 Previously `markdown2pdf test.txt -o test.en.pdf` would produce
9742 `test.pdf`, not `test.en.pdf`. Thanks to Paolo Tanimoto for the fix.
9746 * Revised Interact.hs so that it works with the CPP macros
9749 * Revised Setup.hs so that we don't call MakeManPage.hs unless
9750 the man pages are out of date.
9756 * Support for citations using Andrea Rossato's `citeproc-hs` 0.3.
9757 You can now write, for example,
9759 Water is wet [see @doe99, pp. 33-35; also @smith04, ch. 1].
9761 and, when you process your document using `pandoc`, specifying
9762 a citation style using `--csl` and a bibliography using `--bibliography`,
9763 the citation will be replaced by an appropriately formatted
9764 citation, and a list of works cited will be added to the end
9767 This means that you can switch effortlessly between different citation
9768 and bibliography styles, including footnote, numerical, and author-date
9769 formats. The bibliography can be in any of the following formats: MODS,
9770 BibTeX, BibLaTeX, RIS, EndNote, EndNote XML, ISI, MEDLINE, Copac, or JSON.
9771 See the README for further details.
9773 Citations are supported in the markdown reader, using a special
9774 syntax, and in the LaTeX reader, using natbib or biblatex syntax.
9775 (Thanks to Nathan Gass for the natbib and biblatex support.)
9777 * New `textile` reader and writer. Thanks to Paul Rivier for contributing
9778 the `textile` reader, an almost complete implementation of the textile
9779 syntax used by the ruby [RedCloth library](http://redcloth.org/textile).
9782 * New `org` writer, for Emacs Org-mode, contributed by Puneeth Chaganti.
9784 * New `json` reader and writer, for reading and writing a JSON
9785 representation of the native Pandoc AST. These are much faster
9786 than the `native` reader and writer, and should be used for
9787 serializing Pandoc to text. To convert between the JSON representation
9788 and native Pandoc, use `encodeJSON` and `decodeJSON` from
9789 `Text.JSON.Generic`.
9791 * A new `jsonFilter` function in `Text.Pandoc` makes it easy
9792 to write scripts that transform a JSON-encoded pandoc document.
9795 -- removelinks.hs - removes links from document
9797 main = interact $ jsonFilter $ bottomUp removeLink
9798 where removeLink (Link xs _) = Emph xs
9801 To use this to remove links while translating markdown to LaTeX:
9803 pandoc -t json | runghc removelinks.hs | pandoc -f json -t latex
9805 * Attributes are now allowed in inline `Code` elements, for example:
9807 In this code, `ulist ! [theclass "special"] << elts`{.haskell} is...
9809 The attribute syntax is the same as for delimited code blocks.
9810 `Code` inline has an extra argument place for attributes, just like
9811 `CodeBlock`. Inline code will be highlighted in HTML output, if pandoc
9812 is compiled with highlighting support. Resolves Issue #119.
9814 * New `RawBlock` and `RawInline` elements (replacing `RawHtml`,
9815 `HtmlInline`, and `TeX`) provide lots of flexibility in writing
9816 scripts to transform Pandoc documents. Scripts can now change
9817 how each element is rendered in each output format.
9819 * You can now define LaTeX macros in markdown documents, and pandoc
9820 will apply them to TeX math. For example,
9822 \newcommand{\plus}[2]{#1 + #2}
9825 yields `3+4`. Since the macros are applied in the reader, they
9826 will work in every output format, not just LaTeX.
9828 * LaTeX macros can also be used in LaTeX documents (both in math
9829 and in non-math contexts).
9831 * A new `--mathjax` option has been added for displaying
9832 math in HTML using MathJax. Resolves issue #259.
9834 * Footnotes are now supported in the RST reader. (Note, however,
9835 that unlike docutils, pandoc ignores the numeral or symbol used in
9836 the note; footnotes are put in an auto-numbered ordered list.)
9837 Resolves Issue #258.
9839 * A new `--normalize` option causes pandoc to normalize the AST
9840 before writing the document. This means that, for example,
9841 `*hi**there*` will be rendered as `<em>hithere</em>`
9842 instead of `<em>hi</em><em>there</em>`. This is not the default,
9843 because there is a significant performance penalty.
9845 * A new `--chapters` command-line option causes headers
9846 in DocBook, LaTeX, and ConTeXt to start with "chapter" (level one).
9847 Resolves Issue #265.
9849 * In DocBook output, `<chapter>` is now used for top-level
9850 headers if the template contains `<book>`. Resolves Issue #265.
9852 * A new `--listings` option in `pandoc` and `markdown2pdf` causes
9853 the LaTeX writer to use the listings package for code blocks.
9854 (Thanks to Josef Svennigsson for the pandoc patch, and Etienne
9855 Millon for the markdown2pdf patch.)
9857 * `markdown2pdf` now supports `--data-dir`.
9859 * URLs in autolinks now have class "url" so they can be styled.
9861 * Improved prettyprinting in most formats. Lines will be wrapped
9862 more evenly and duplicate blank lines avoided.
9864 * New `--columns` command-line option sets the column width for
9865 line wrapping and relative width calculations for tables.
9867 * Made `--smart` work in HTML, RST, and Textile readers, as well
9870 * Added `--html5` option for HTML5 output.
9872 * Added support for listings package in LaTeX reader
9875 * Added support for simple tables in the LaTeX reader.
9877 * Added support for simple tables in the HTML reader.
9879 * Significant performance improvements in many readers and writers.
9881 [API and program changes]
9883 * Moved `Text.Pandoc.Definition` from the `pandoc` package to a new
9884 auxiliary package, `pandoc-types`. This will make it possible for other
9885 programs to supply output in Pandoc format, without depending on the whole
9888 * Added `Attr` field to `Code`.
9890 * Removed `RawHtml`, `HtmlInline`, and `TeX` elements; added generic
9891 `RawBlock` and `RawInline`.
9893 * Moved generic functions to `Text.Pandoc.Generic`. Deprecated
9894 `processWith`, replacing it with two functions, `bottomUp` and `topDown`.
9895 Removed previously deprecated functions `processPandoc` and `queryPandoc`.
9897 * Added `Text.Pandoc.Builder`, for building `Pandoc` structures.
9899 * `Text.Pandoc` now exports association lists `readers` and `writers`.
9901 * Added `Text.Pandoc.Readers.Native`, which exports `readNative`.
9902 `readNative` can now read full pandoc documents, block lists, blocks,
9903 inline lists, or inlines. It will interpret `Str "hi"`
9904 as if it were `Pandoc (Meta [] [] []) [Plain [Str "hi"]]`.
9905 This should make testing easier.
9907 * Removed deprecated `-C/--custom-header` option.
9908 Use `--template` instead.
9910 * `--biblio-file` has been replaced by `--bibliography`.
9911 `--biblio-format` has been removed; pandoc now guesses the format
9912 from the file extension (see README).
9914 * pandoc will treat an argument as a URI only if it has an
9915 `http(s)` scheme. Previously pandoc would treat some
9916 Windows pathnames beginning with `C:/` as URIs.
9918 * The `--sanitize-html` option and the `stateSanitize` field in
9919 `ParserState` have been removed. Sanitization is better done in the
9920 resulting HTML using `xss-sanitize`, which is based on pandoc's
9921 sanitization, but improved.
9923 * pandoc now adds a newline to the end of its output in fragment
9924 mode (= not `--standalone`).
9926 * Added support for `lang` in `html` tag in the HTML template,
9927 so you can do `pandoc -s -V lang=es`, for example.
9929 * `highlightHtml` in `Text.Pandoc.Highlighting` now takes
9930 a boolean argument that selects between "inline" and
9933 * `Text.Pandoc.Writers.RTF` now exports `rtfEmbedImage`.
9934 Images are embedded in RTF output when possible (png, jpeg).
9935 Resolves Issue #275.
9937 * Added `Text.Pandoc.Pretty`. This is better suited for pandoc than the
9938 `pretty` package. Changed all writers that used
9939 `Text.PrettyPrint.HughesPJ` to use `Text.Pandoc.Pretty` instead.
9941 * Rewrote `writeNative` using the new prettyprinting module. It is
9942 now much faster. The output has been made more consistent and compressed.
9943 `writeNative` is also now sensitive to writerStandalone`, and will simply
9944 `print a block list if writerStandalone` is False.
9946 * Removed `Text.Pandoc.Blocks`. `Text.Pandoc.Pretty` allows you to define
9947 blocks and concatenate them, so a separate module is no longer needed.
9949 * `Text.Pandoc.Shared`:
9951 + Added `writerColumns`, `writerChapters`, and `writerHtml5` to
9953 + Added `normalize`.
9954 + Removed unneeded prettyprinting functions:
9955 `wrapped`, `wrapIfNeeded`, `wrappedTeX`, `wrapTeXIfNeeded`, `hang'`,
9956 `BlockWrapper`, `wrappedBlocksToDoc`.
9957 + Made `splitBy` take a test instead of an element.
9958 + Added `findDataFile`, refactored `readDataFile`.
9959 + Added `stringify`. Rewrote `inlineListToIdentifier` using `stringify`.
9960 + Fixed `inlineListToIdentifier` to treat '\160' as ' '.
9962 * `Text.Pandoc.Readers.HTML`:
9964 + Removed `rawHtmlBlock`, `anyHtmlBlockTag`, `anyHtmlInlineTag`,
9965 `anyHtmlTag`, `anyHtmlEndTag`, `htmlEndTag`, `extractTagType`,
9966 `htmlBlockElement`, `htmlComment`
9967 + Added `htmlTag`, `htmlInBalanced`, `isInlineTag`, `isBlockTag`,
9970 * Moved `smartPunctuation` from `Text.Pandoc.Readers.Markdown`
9971 to `Text.Pandoc.Readers.Parsing`, and parameterized it with
9974 * Added `nonspaceChar` to `Text.Pandoc.Parsing`.
9976 * Ellipses are no longer allowed to contain spaces.
9977 Previously we allowed '. . .', ' . . . ', etc. This caused
9978 too many complications, and removed author's flexibility in
9979 combining ellipses with spaces and periods.
9981 * Allow linebreaks in URLs (treat as spaces). Also, a string of
9982 consecutive spaces or tabs is now parsed as a single space. If you have
9983 multiple spaces in your URL, use `%20%20`.
9985 * `Text.Pandoc.Parsing`:
9987 + Removed `refsMatch`.
9988 + Hid `Key` constructor.
9989 + Removed custom `Ord` and `Eq` instances for `Key`.
9990 + Added `toKey` and `fromKey` to convert between `Key` and `[Inline]`.
9991 + Generalized type on `readWith`.
9993 * Small change in calculation of relative widths of table columns.
9994 If the size of the header > the specified column width, use
9995 the header size as 100% for purposes of calculating
9996 relative widths of columns.
9998 * Markdown writer now uses some pandoc-specific features when `--strict`
9999 is not specified: `\` newline is used for a hard linebreak instead of
10000 two spaces then a newline. And delimited code blocks are used when
10001 there are attributes.
10003 * HTML writer: improved gladTeX output by setting ENV appropriately
10004 for display or inline math (Jonathan Daugherty).
10006 * LaTeX writer: Use `\paragraph`, `\subparagraph` for level 4,5 headers.
10010 + `\label{foo}` and `\ref{foo}` now become `{foo}` instead of `(foo)`.
10011 + `\index{}` commands are skipped.
10013 * Added `fontsize` variable to default LaTeX template.
10014 This makes it easy to set the font size using `markdown2pdf`:
10015 `markdown2pdf -V fontsize=12pt input.txt`.
10017 * Fixed problem with strikeout in LaTeX headers when using
10018 hyperref, by adding a command to the default LaTeX template
10019 that disables `\sout` inside pdf strings. Thanks to Joost Kremers
10022 * The `COLUMNS` environment variable no longer has any effect.
10024 [under-the-hood improvements]
10026 * Pandoc now compiles with GHC 7. (This alone leads to a
10027 significant performance improvement, 15-20%.)
10029 * Completely rewrote HTML reader using tagsoup as a lexer. The
10030 new reader is faster and more accurate. Unlike the
10031 old reader, it does not get bogged down on some input
10032 (Issues #277, 255). And it handles namespaces in tags
10035 * Replaced `escapeStringAsXML` with a faster version.
10037 * Rewrote `spaceChar` and some other parsers in Text.Pandoc.Parsing
10038 for a significant performance boost.
10040 * Improved performance of all readers by rewriting parsers.
10042 * Simplified Text.Pandoc.CharacterReferences by using
10043 entity lookup functions from TagSoup.
10045 * `Text.Pandoc.UTF8` now uses the unicode-aware IO functions
10046 from `System.IO` if base >= 4.2. This gives support for
10047 windows line endings on windows.
10049 * Remove duplications in documentation by generating the
10050 pandoc man page from README, using `MakeManPage.hs`.
10052 * README now includes a full description of markdown syntax,
10053 including non-pandoc-specific parts. A new `pandoc_markdown`
10054 man page is extracted from this, so you can look up markdown
10055 syntax by doing `man pandoc_markdown`.
10057 * Completely revised test framework (with help from Nathan Gass).
10058 The new test framework is built when the `tests` Cabal flag is set. It
10059 includes the old integration tests, but also some new unit and quickcheck
10060 tests. Test output has been much improved, and you can now specify a glob
10061 pattern after `cabal test` to indicate which tests should be run;
10062 for example `cabal test citations` will run all the citation tests.
10064 * Added a shell script, `stripansi.sh`, for filtering ANSI control
10065 sequences from test output: `cabal test | ./stripansi.sh > test.log`.
10067 * Added `Interact.hs` to make it easier to use ghci while developing.
10068 `Interact.hs` loads `ghci` from the `src` directory, specifying
10069 all the options needed to load pandoc modules (including
10070 specific package dependencies, which it gets by parsing
10071 dist/setup-config).
10073 * Added `Benchmark.hs`, testing all readers + writers using criterion.
10075 * Added `stats.sh`, to make it easier to collect and archive
10076 benchmark and lines-of-code stats.
10078 * Added upper bounds to all cabal dependencies.
10080 * Include man pages in extra-source-files. This allows users to
10081 install pandoc from the tarball without needing to build the man
10086 * Filenames are encoded as UTF8. Resolves Issue #252.
10088 * Handle curly quotes better in `--smart` mode. Previously, curly quotes
10089 were just parsed literally, leading to problems in some output formats.
10090 Now they are parsed as `Quoted` inlines, if `--smart` is specified.
10091 Resolves Issue #270.
10093 * Text.Pandoc.Parsing: Fixed bug in grid table parser.
10094 Spaces at end of line were not being stripped properly,
10095 resulting in unintended LineBreaks.
10099 + Allow HTML comments as inline elements in markdown.
10100 So, `aaa <!-- comment --> bbb` can be a single paragraph.
10101 + Fixed superscripts with links: `^[link](/foo)^` gets
10102 recognized as a superscripted link, not an inline note followed by
10104 + Fixed regression, making markdown reference keys case-insensitive again.
10105 Resolves Issue #272.
10106 + Properly handle abbreviations (like `Mr.`) at the end of a line.
10107 + Better handling of intraword underscores, avoiding exponential
10108 slowdowns in some cases. Resolves Issue #182.
10109 + Fixed bug in alignments in tables with blank rows in the header.
10113 + Field lists now allow spaces in field names, and
10114 block content in field values. (Thanks to Lachlan Musicman
10115 for pointing out the bug.)
10116 + Definition list items are now always `Para` instead of
10117 `Plain`, matching behavior of `rst2xml.py`.
10118 + In image blocks, the description is parsed properly and
10119 used for the alt attribute, not also the title.
10120 + Skip blank lines at beginning of file. Resolves
10125 + Improved parsing of preamble.
10126 Previously you'd get unexpected behavior on a document that
10127 contained `\begin{document}` in, say, a verbatim block.
10128 + Allow spaces between `\begin` or `\end` and `{`.
10129 + Support `\L` and `\l`.
10130 + Skip comments inside paragraphs.
10134 + Escape strings in `\href{..}`.
10135 + In nonsimple tables, put cells in `\parbox`.
10137 * OpenDocument writer: don't print raw TeX.
10141 + Fixed bug in `Image`. URI was getting unescaped twice!
10142 + Avoid printing extra blank lines at the end if there are
10143 no notes or references.
10145 * LaTeX and ConTeXt: Escape `[` and `]` as `{[}` and `{]}`.
10146 This avoids unwanted interpretation as an optional argument.
10148 * ConTeXt writer: Fixed problem with inline code. Previously
10149 `}` would be rendered `\type{}}`. Now we check the string for '}' and '{'.
10150 If it contains neither, use `\type{}`; otherwise use `\mono{}`
10151 with an escaped version of the string.
10153 * `:` now allowed in HTML tags. Resolves Issue #274.
10157 [ John MacFarlane ]
10159 * New EPUB and HTML Slidy writers. (Issue #122)
10161 - EPUB is a standard ebook format, used in Apple's iBooks for
10162 the iPad and iPhone, Barnes and Noble's nook reader, the Sony
10163 reader, and many other devices.
10164 - Slidy, like S5, is a system for producing HTML+javascript slide
10167 * All input is assumed to be UTF-8, no matter what the locale and ghc
10168 version, and all output is UTF-8. This reverts to pre-1.5 behavior.
10169 Also, a BOM, if present, is stripped from the input.
10171 * Markdown now supports grid tables, whose cells can contain
10172 arbitrary block elements. (Issue #43)
10174 * Sequentially numbered example lists in markdown with `@` marker.
10176 * Markdown table captions can begin with a bare colon and no longer need
10177 to include the English word "table." Also, a caption can now occur
10178 either before or after the table. (Issue #227)
10180 * New command-line options:
10182 - `--epub-stylesheet` allows you to specify a CSS file that will
10183 be used to style your ebook.
10184 - `--epub-metadata` allows you to specify metadata for the ebook.
10185 - `--offline` causes the generated HTML slideshow to include all
10186 needed scripts and stylesheets.
10187 - `--webtex` causes TeX math to be converted to images using the
10188 Google Charts API (unless a different URL is specified).
10189 - `--section-divs` causes div tags to be added around each section
10190 in an HTML document. (Issue #230, 239)
10192 * Default behavior of S5 writer in standalone mode has changed:
10193 previously, it would include all needed scripts and stylesheets
10194 in the generated HTML; now, only links are included unless
10195 the `--offline` option is used.
10197 * Default behavior of HTML writer has changed. Between 1.2 and 1.5,
10198 pandoc would enclose sections in div tags with identifiers on the
10199 div tags, so that the sections can be manipulated in javascript.
10200 This caused undesirable interactions with raw HTML div tags. So,
10201 starting with 1.6, the default is to put the identifiers directly
10202 on the header tags, and not to include the divs. The `--section-divs`
10203 option selects the 1.2-1.5 behavior.
10207 - `HTMLMathMethod`: Added `WebTeX`, removed `MimeTeX`.
10208 - `WriterOptions`: Added `writerUserDataDir`, `writerSourceDirectory`,
10209 `writerEPUBMetadata` fields. Removed `writerIncludeBefore`,
10210 `writerIncludeAfter`.
10211 - Added `headerShift` to `Text.Pandoc.Shared`.
10212 - Moved parsing code and `ParserState` from `Text.Pandoc.Shared`
10213 to a new module, `Text.Pandoc.Parsing`.
10214 - Added `stateHasChapters` to `ParserState`.
10215 - Added `HTMLSlideVariant`.
10216 - Made `KeyTable` a map instead of an association list.
10217 - Added accessors for `Meta` fields (`docTitle`, `docAuthors`,
10219 - `Pandoc`, `Meta`, `Inline`, and `Block` have been given `Ord`
10221 - Reference keys now have a type of their own (`Key`), with its
10222 own `Ord` instance for case-insensitive comparison.
10223 - Added `Text.Pandoc.Writers.EPUB`.
10224 - Added `Text.Pandoc.UUID`.
10225 - Removed `Text.Pandoc.ODT`, added `Text.Pandoc.Writers.ODT`.
10226 Removed `saveOpenDocumentAsODT`, added `writeODT`.
10227 - Added `Text.Pandoc.Writers.Native` and `writeNative`.
10228 Removed `prettyPandoc`.
10229 - Added `Text.Pandoc.UTF8` for portable UTF8 string IO.
10230 - Removed `Text.Pandoc.Writers.S5` and the `writeS5` function.
10231 Moved `s5Includes` to a new module, `Text.Pandoc.S5`.
10232 To write S5, you now use `writeHtml` with `writerSlideVariant`
10233 set to `S5Slides` or `SlidySlides`.
10235 * Template changes. If you use custom templates, please update them,
10236 particularly if you use syntax highlighting with pandoc. The old HTML
10237 templates hardcoded highlighting CSS that will no longer work with
10238 the most recent version of highlighting-kate.
10240 - HTML template: avoid empty meta tag if no date.
10241 - HTML template: Use default highlighting CSS from highlighting-kate
10242 instead of hard-coding the CSS into the template.
10243 - HTML template: insert-before text goes before the title, and
10244 immediately after the <body> tag, as documented. (Issue #241)
10245 - Added slidy and s5 templates.
10246 - Added amssymb to preamble of latex template. (github Issue 1)
10248 * Removed excess newlines at the end of output. Note: because output
10249 will not contain an extra newline, you may need to make adjustments
10250 if you are inserting pandoc's output into a template.
10252 * In S5 and slidy, horizontal rules now cause a new slide, so you
10253 are no longer limited to one slide per section.
10255 * Improved handling of code in man writer. Inline code is now monospace,
10256 not bold, and code blocks now use .nf (no fill) and .IP (indented para).
10258 * HTML reader parses `<tt>` as Code. (Issue #247)
10260 * html+lhs output now contains bird tracks, even when compiled without
10261 highlighting support. (Issue #242)
10263 * Colons are now no longer allowed in autogenerated XML/HTML identifiers,
10264 since they have a special meaning in XML.
10266 * Code improvements in ODT writer. Remote images are now replaced with
10267 their alt text rather than a broken link.
10269 * LaTeX reader improvements:
10271 - Made latex `\section`, `\chapter` parsers more forgiving of
10273 - Parse `\chapter{}` in latex.
10274 - Changed `rawLaTeXInline` to accept `\section`, `\begin`, etc.
10275 - Use new `rawLaTeXInline'` in LaTeX reader, and export `rawLaTeXInline`
10276 for use in markdown reader.
10277 - Fixes bug wherein `\section{foo}` was not recognized as raw TeX
10278 in markdown document.
10280 * LaTeX writer: images are automatically shrunk if they would extend
10281 beyond the page margin.
10283 * Plain, markdown, RST writers now use unicode for smart punctuation.
10285 * Man writer converts math to unicode when possible, as in other writers.
10287 * `markdown2pdf` can now recognize citeproc options.
10289 * Command-line arguments are converted to UTF-8. (Issue #234)
10291 * `Text.Pandoc.TeXMath` has been rewritten to use texmath's parser.
10292 This allows it to handle a wider range of formulas. Also, if a formula
10293 cannot be converted, it is left in raw TeX; formulas are no longer
10294 partially converted.
10296 * Unicode curly quotes are left alone when parsing smart quotes. (Issue
10299 * Cabal file changes:
10301 - Removed parsec < 3 restriction.
10302 - Added 'threaded' flag for architectures where GHC lacks a threaded
10304 - Use 'threaded' only for markdown2pdf; it is not needed for pandoc.
10305 - Require highlighting-kate 0.2.7.
10307 * Use explicit imports from `Data.Generics`. Otherwise we have a
10308 conflict with the 'empty' symbol, introduced in syb >= 0.2. (Issue #237)
10310 * New data files: slidy/slidy.min.js, slidy/slidy.min.css, epub.css.
10314 [ John MacFarlane ]
10316 * Fixed uniqueIdent in Shared so that header identifiers work as
10317 advertized in the README and are are valid XHTML names.
10321 [ John MacFarlane ]
10323 * Fixed treatment of unicode characters in URIs.
10324 + Shared now exports escapeURI and unescapeURI. These handle
10325 UTF8 encoding and decoding as well as URI escaping/unescaping.
10326 + Shared: uri and emailAddress now return a pair of the original
10327 parsed text and the escaped URI (in the latter case, with
10328 the mailto: prefix).
10329 + HTML reader: unsanitaryURI has been modified to allow unicode
10330 high characters in a URI.
10331 + Readers: All link and image URIs are now escaped using
10333 + Markdown and RST writers: unescapeURI is used so that URIs
10334 in these formats are human-readable.
10336 * Setup.hs: Don't assume that the build directory is "dist".
10337 Instead, get it from localBuildInfo.
10339 * OpenDocument writer: Use a Map for stTextStyleAttr.
10340 This avoids duplicates (and invalid xml). Resolves Issue #222.
10344 [ John MacFarlane ]
10346 * HTML writer: Fixed error in math writer (with MathML option)
10347 that caused an infinite loop for unparsable MathML.
10351 [ John MacFarlane ]
10353 * Added --mathml option. When this is selected, pandoc will convert
10354 TeX math into MathML.
10355 + Added data/MathMLinHTML.js, which is included when no URL is
10356 provided for --mathml. This allows MathML to be displayed (in
10357 better browsers) as text/html.
10358 + Removed Text.Pandoc.LaTeXMathML. The module was no longer
10359 necessary; it was replaced by two lines in pandoc.hs.
10360 + Replaced LaTeXMathML.js.commend and LaTeXMathML.js.packed with a
10361 single combined file, LaTeXMathML.js.
10363 * Added --data-dir option.
10364 This specifies a user data directory. If not specified, will default
10365 to ~/.pandoc on unix or Application Data\pandoc on Windows.
10366 Files placed in the user data directory will override system default
10369 * Added Maybe datadir parameter to readDataFile, saveOpenDocumentAsODT,
10370 latexMathMLScript, s5HeaderIncludes, and getDefaultTemplate. If
10371 Nothing, no user directory is searched for an override.
10373 * Added 'plain' output format. This is similar to markdown, but
10374 removes links, pictures, inline formatting, and most anything that
10375 looks even vaguely markupish. The function writePlain is exported by
10376 Text.Pandoc.Writers.Markdown, with which it shares most of its code.
10378 * Allow multi-line titles and authors in meta block.
10379 Titles may span multiple lines, provided continuation lines
10380 begin with a space character. Separate authors may be put on
10381 multiple lines, provided each line after the first begins with
10382 a space character. Each author must fit on one line. Multiple
10383 authors on a single line may still be separated by a semicolon.
10384 Based on a patch by Justin Bogner.
10386 * When given an absolute URI as parameter, pandoc will try to fetch
10387 the content via HTTP. So you can do:
10388 'pandoc -r html -w markdown http://www.fsf.org'
10389 Adds dependency on HTTP.
10391 * Made HTML reader much more forgiving.
10392 + Incorporated idea (from HXT) that an element can be closed
10393 by an open tag for another element.
10394 + Javascript is partially parsed to make sure that a <script>
10395 section is not closed by a </script> in a comment or string.
10396 + More lenient non-quoted attribute values.
10397 Now we accept anything but a space character, quote, or <>.
10398 This helps in parsing e.g. www.google.com!
10399 + Bare & signs are now parsed as a string. This is a common
10401 + Skip a bare < in malformed HTML.
10403 * Removed html2markdown and hsmarkdown.
10404 + html2markdown is no longer needed, since you can now pass URI
10405 arguments to pandoc and directly convert web pages. (Note,
10406 however, that pandoc assumes the pages are UTF8. html2markdown
10407 made an attempt to guess the encoding and convert them.)
10408 + hsmarkdown is pointless -- a large executable that could be
10409 replaced by 'pandoc --strict'.
10411 * In most writers, an image in a paragraph by itself is now rendered
10412 as a figure, with the alt text as the caption. (Texinfo, HTML, RST,
10413 MediaWiki, Docbook, LaTeX, ConTeXt, HTML.) Other images are
10416 * Depend on extensible-exceptions. This allows pandoc to be compiled
10419 * Added --base-header-level option. For example, --base-header-level=2
10420 will change level 1 headers to level 2, level 2 to level 3, etc.
10421 Closes Debian #563416.
10423 * Incomplete support for RST tables (simple and grid).
10424 Thanks to Eric Kow. Colspans and rowspans not yet supported.
10426 * Added accessors (docTitle, docAuthors, docDate) to Meta type.
10428 * MediaWiki writer: format links with relative URLs as wikilinks.
10429 The new rule: If the link target is an absolute URL, an external
10430 link is created. Otherwise, a wikilink is created.
10432 * Text.Pandoc.Shared: Export uniqueIdent, and don't allow tilde in
10433 identifier. Note: This may break links to sections that involve
10436 * Markdown(+lhs) reader: handle "inverse bird tracks."
10437 Inverse bird tracks (<) are used for haskell example code that is not
10438 part of the literate Haskell program. Resolves Issue #211.
10441 + Recognize '\ ' (interword space).
10442 + Recognize nonbreaking space '~'.
10443 + Ignore \section, \pdfannot, \pdfstringdef. Ignore alt title in
10444 section headers. Don't treat \section as inline LaTeX.
10445 Resolves Issue #202.
10446 + LaTeX reader: allow any special character to be escaped.
10447 Resolves Issue #221.
10448 + LaTeX reader: treat \paragraph and \subparagraph as level 4, 5
10449 headers. Resolves Issue #207.
10451 * Use template variables for include-before/after.
10452 + These options now imply -s; previously they worked also in fragment
10454 + Users can now adjust position of include-before and include-after
10455 text in the templates.
10456 + Default position of include-before moved back (as it was before 1.4)
10457 before table of contents.
10458 + Resolves Issue #217.
10460 * Don't print an empty table header: (all writers).
10461 Resolves Issue #210.
10463 * HTML, Docbook writer: Use tbody, thead, and cols in tables.
10465 * HTML writer: Don't include TOC div if table of contents is empty.
10467 * Markdown writer: Fixed citations.
10468 Previously the markdown writer printed raw citation codes, e.g.
10469 [geach1970], rather than the expanded citations provided by
10470 citeproc, e.g. (Geach 1970). Now it prints the expanded citations.
10471 This means that the document produced can be processed as a markdown
10472 document without citeproc. Thanks to dsanson for reporting, and
10473 Andrea Rossato for the patch.
10475 * Improved and simplified title block in context template.
10476 Previously it caused an error if there was no title.
10477 This method should also be easier for users to customize.
10480 + Treat p., pp., sec., ch., as abbreviations in smart mode.
10481 + Disallow blank lines in inline code span.
10482 + Allow footnotes to be indented < 4 spaces.
10483 This fixes a regression. A test case has been added.
10484 + Escape spaces in URLs as %20. Previously they were incorrectly
10485 escaped as +, which is appropriate only for the query part of
10486 a URL. Resolves Issue #220.
10487 + Require two spaces after capital letter + period for list item.
10488 Otherwise "E. coli" starts a list. This might change the semantics
10489 of some existing documents, since previously the two-space
10490 requirement was only enforced when the second word started
10491 with a capital letter. But it is consistent with the existing
10492 documentation and follows the principle of least surprise.
10493 Resolves Issue #212.
10495 * LaTeX template: redefine labelwidth when using enumerate package.
10496 Otherwise the list labels (numbers) often extend past the left
10497 margin, which looks bad.
10499 * Mediawiki writer: Don't print a "== Notes ==" header before
10500 references. This is too English-centric. Writers can provide their
10501 own header at the end of the document.
10503 * Promoted mediawiki headers. '= head =' is now level 1, '== head =='
10504 level 2, etc. This seems to be correct; it's only by convention
10505 that wikipedia articles have level 2 headers at most.
10506 Patch due to Eric Kow.
10508 * RunTests.hs: Set LANG to a UTF-8 locale. Use 'pandoc --data-dir=' so
10509 data files don't need to have been installed. This removes the need to
10513 + Handle spaces before <html>. Resolves Issue #216.
10514 + Be forgiving in parsing a bare list within a list.
10515 The following is not valid xhtml, but the intent is clear:
10518 <ol><li>sub</li></ol>
10521 We'll treat the <ol> as if it's in a <li>. Resolves Issue #215.
10523 * Updated INSTALL instructions. cabal method is now promoted.
10525 * Updated markdown2pdf man page. It no longer says all pandoc options
10528 * README/man pages: Removed advice to pipe through tidy before HTML
10529 reader. This is obsolete, now that we have a forgiving HTML parser.
10531 * LaTeX writer: set numbersections template variable, so
10532 the section numbering options work again.
10534 * Removed obsolete Makefile.
10536 * Website: renamed index.txt.in -> index.txt.
10538 * New batch file to make-windows-installer.
10539 + Removed old Makefile.windows
10540 + Added make-windows-installer.bat
10541 + Modified default installer name in pandoc-setup.iss
10543 * Removed freebsd and macports directories.
10544 They are no longer up to date.
10547 + Made man page building sensitive to build verbosity.
10548 + Improved detection of highlighting support in test hook.
10549 + Install wrapper scripts into cabal bin directory.
10550 + Also simplified installManpages.
10551 + Setup.hs: install manpages to mandir. Code borrowed from darcs.
10553 * Changed default of writerXeTeX to False.
10555 * HTML writer: don't include empty UL if --toc but no sections.
10556 Resolves Issue #199.
10560 + If book, report, or memoir documentclass, use \chapter{}
10561 for first-level headers. Otherwise use \section{}.
10562 + Removed stLink, link template variable. Reason: we now always
10563 include hyperref in the template.
10567 + Only show \author if there are some.
10568 + Always include hyperref package. It is used not just for links but
10569 for toc, section heading bookmarks, footnotes, etc. Also added
10570 unicode=true on hyperref options.
10572 * markdown2pdf: always do at least two runs. hyperref bookmarks
10575 * cabal file: Removed unneeded dependency on template-haskell.
10577 * Windows installer - fixed bug in data file locations.
10578 Resolves Issue #197.
10580 * Deprecated --custom-header in documentation.
10581 Removed old "Custom Headers" section in README.
10585 [ John MacFarlane ]
10587 * Pandoc will now compile with either GHC 6.10 or 6.12.
10588 + Don't use System.IO.UTF8 when compiling with 6.12
10589 + Use -fno-warn-unused-do-bind option when compiling with 6.12
10591 * Replaced old headers with templates. Now users have much more
10592 control over the way documents appear in --standalone mode,
10593 and writer code is simplified. Resolves Issues #59, 147.
10594 Every effort has been made to retain backwards compatibilty.
10595 So, the --custom-header option should still work as before.
10597 + Added Text.Pandoc.Templates. This provides functions for
10598 retrieving default templates and for rendering templates.
10599 + System templates (in the pandoc data directory) can be
10600 overridden by user templates in $HOME/.pandoc/templates.
10601 + Removed Text.Pandoc.DefaultHeaders.
10602 + Removed data/headers directory.
10603 + Added templates directory.
10604 + Added writerTemplate and writerVariables fields to WriterOptions.
10605 + Removed writerTitlePrefix, writerHeader fields from WriterOptions.
10606 + Changed --print-default-header to --print-default-template.
10607 + Added --template option.
10608 + Added -V/--variable option to set custom template variables.
10610 * Pandoc no longer requires Template Haskell. Resolves Issue #186.
10612 + Removed need for TH in ODT module. Instead get reference.odt from
10613 data file at run time.
10614 + Removed TH dependency from S5 module. S5 module now exports
10615 s5HeaderIncludes, which pandoc.hs includes if writer is s5 and
10617 + Refactored LaTeXMathML not to use TH.
10619 * Meta is now Meta [Inline] [[Inline]] [Inline] rather than
10620 Meta [Inline] [String] String. Authors and date in Meta are now lists
10621 of Inline elements rather than raw strings. This means that they can
10622 be formatted and can include footnotes. NOTE: This may be a breaking
10623 change for those using pandoc as a library.
10625 * Added readDataFile to Text.Pandoc.Shared. This retrieves
10626 a data file from the user pandoc data directory (~/.pandoc
10627 on unix), or, if not found there, from the system data
10628 directory ($CABALDIR/shared/pandoc-VERSION/). All data
10629 files, including templates, LaTeXMathML.js, s5 styles,
10630 and reference.odt, can be overridden by the user.
10632 * s5 files moved from data/ui/default to s5/default.
10634 * Use unicode instead of entities in HTML and XML output. Resolves
10637 * Prettier HTML footnote references: put anchor inside sup,
10638 instead of other way. Resolves Issue #191. Thanks to
10641 * Added --xetex option to pandoc and markdown2pdf.
10642 If --xetex is specified, pandoc produces latex suitable for
10643 processing by xelatex, and markdown2pdf uses xelatex to create
10644 the PDF. Resolves Issue #185.
10646 * RTF writer: multiple authors now occupy multiple paragraphs rather
10647 than using a line break.
10649 * Man writer: now the "--after-body" will come after the "AUTHORS"
10650 section, whereas before it would come before it. This is a
10651 slight break from backwards compatibility.
10653 * Added --reference-odt option, so users may customize the styles
10654 used in pandoc-generated ODT files. Users may also place a
10655 default reference.odt in the ~\.pandoc directory.
10658 + Indented and line-broke styles.xml so it can be modified more easily.
10659 + Omitted some unnecessary style declarations.
10660 + Don't wrap text in OpenDocument writer. The tags are too long, making
10661 wrapping ugly and pointless.
10663 * LaTeX reader: use \\ to separate multiple authors.
10665 * Markdown reader: use ; as separator between authors.
10666 This allows you to use ',' within author names: e.g. "John Jones, Jr."
10668 * S5 writer: use linebreak to separate authors in title page.
10670 * RST reader: Allow :: before lhs code block. The RST spec requires the
10671 :: before verbatim blocks. This :: should not be treated as literal
10672 colons. Resolves Issue #189.
10674 * Documented pandoc 1.3's new definition list syntax in README.
10675 (An oversight in the last release.)
10678 + interpret ! in a log as an error line.
10679 + --toc now works properly.
10681 * Changes in RunTests.hs:
10682 + Use the Diff library rather than a local copy of Diff.hs.
10683 (This vastly increases performance.) This change means that 'cabal
10684 test' presupposes that the Diff library is installed.
10685 + Removed tests/Diff.hs from cabal file.
10686 + Changed RunTests to use local environment. We need at least HOME, so
10687 pandoc can find its data directory.
10689 * Updated windows installer to install data files in the app directory.
10691 * Windows installer now installs portable wrappers hsmarkdown and
10696 [ John MacFarlane ]
10698 * Added --id-prefix option (Issue #41). This adds a prefix to all
10699 automatically generated HTML identifiers, which helps prevent
10700 duplicate identifiers when you're generating a fragment (say a blog
10703 * Added --indented-code-classes option. This specifies classes
10704 to use for indented code blocks. (Patch due to buttock; Issue #87.)
10706 * --number-sections now affects HTML output as well as ConTeXt and LaTeX
10709 * Improved syntax for markdown definition lists (Issue #24).
10710 Definition lists are now more compatible with PHP Markdown Extra.
10711 + You can have multiple definitions for a term (but still not
10713 + Multi-block definitions no longer need a column before each block
10714 (indeed, this will now cause multiple definitions).
10715 + The marker no longer needs to be flush with the left margin,
10716 but can be indented at or two spaces. Also, ~ as well as :
10717 can be used as the marker (this suggestion due to David
10719 + There can now be a blank line between the term and the
10722 * Better looking simple tables. Resolves Issue #180.
10723 + Markdown reader: simple tables are now given column widths of 0.
10724 + Column width of 0 is interpreted as meaning: use default column width.
10725 + Writers now include explicit column width information only
10726 for multiline tables. (Exception: RTF writer, which requires
10727 column widths. In this case, columns are given equal widths,
10728 adding up to the text width.)
10729 + Simple tables should now look better in most output formats.
10731 * Allow markdown tables without headers (Issue #50).
10732 The new syntax is described in README. Also allow optional line of
10733 dashes at bottom of simple tables.
10735 * Compensate for width of final table column (Issue #144).
10737 * Treat a backslash followed by a newline as a hard line break
10738 in markdown. Resolves Issue #154. This is a nice alternative
10739 to markdown's "invisible" way of indicating hardline breaks
10740 using lines that end with two spaces.
10742 * Improved performance of markdown reader by ~10% by eliminating the
10743 need for a separate parsing pass for notes. Raw notes are now stored
10744 on the first pass (which parses references), then parsed when the
10745 note is inserted into the AST. The stateNotes field in ParserState
10746 is now a list of [(String, String)] pairs instead of [(String,
10749 * In markdown reader, treat 4 or more * or _ in a row as literal
10750 text. (Trying to parse long strings of * or _ as strong or emph
10751 leads to exponential performance problems.)
10753 * Markdown reader: Use + rather than %20 for spaces in URLs.
10755 * Fixed htmlComment parser, adding a needed 'try'.
10757 * Don't print raw HTML in man output.
10759 * Allow . _ and ~ in header identifiers.
10761 * Specially mark code blocks that were "literate" in the input.
10762 They can then be treated differently in the writers. This allows
10763 authors to distinguish bits of the literate program they are writing
10764 from source code examples, even if the examples are marked as
10765 Haskell for highlighting. (Issue #174.)
10767 * Modified html+lhs output to use "haskell" highlighter instead
10768 of "literateHaskell". The highlighting module now adds bird tracks
10769 after highlighting (for HTML output), if the code block has the
10770 "literate" class. This gives better results, because kate's
10771 haskell highlighter is much better than the literateHaskell
10774 * Fixed handling of footnotes in titles (HTML) and headers (LaTeX).
10777 * Support for "..code-block" directive in RST reader. Not core
10778 RST, but used in Sphinx for code blocks annotated with syntax
10779 information. Thanks to Luke Plant for the patch.
10781 * Added "head" to list of block-level HTML tags. Resolves
10784 * Added stripTags to Text.Pandoc.XML. This is used in the HTML writer.
10786 * Set utf-8 encoding in texinfo headers.
10788 * Docbook writer: add ids to sections. Use link for internal links.
10791 * Blank lines after lists in MediaWiki writer.
10793 * Properly handle commented-out list items in markdown.
10794 Resolves Issue #142. Example:
10802 * Changed heuristic in compactify. compactify has to decide whether a
10803 Para that ends a list is a Para intentionally, or just because of
10804 the blank lines at the end of every list. In the latter case the
10805 Para is turned to a Plain. The old heuristic was: change final Para
10806 to Plain iff the other items all end in Plain. This produces bad
10807 results when, for example, an item contains just a Plain and an HTML
10808 comment, as it does in the list above. The new heuristic: change
10809 final Para to Plain iff the other items don't contain a Para.
10811 * Added % as an rst underline character. Resolves Issue #173.
10813 * Fix inline math parser so that \$ is allowed in math.
10814 Resolves Issue #169.
10816 * Translate \int (integral) into unicode when using unicode math
10817 method. Resolves Issue #177.
10819 * markdown2pdf.hs improvements:
10820 + Use System.IO.UTF8.
10821 + Print error messages on last attempt.
10822 + Do not create a backup when overwriting a PDF (Issue #166).
10823 + Accept --longopt=val options.
10824 + Added man/man1/markdown2pdf.1 to extra-tmp-files in cabal, so that
10825 it is properly cleaned.
10827 * Added haddock comments warning that readers assume \n line endings.
10829 * Updated COPYRIGHT file.
10831 * Makefile: Changed EXECSBASE so it doesn't pull in hsmarkdown &
10832 markdown2pdf. Otherwise strip tries to strip shell scripts when you
10833 install using 'make'.
10835 * Changed Makefile so it doesn't build Haskell wrappers.
10837 * Fixed Makefile so it doesn't try to build man pages in build-doc.
10839 * Install pcre3.dll in Windows install script; this allows us to
10840 package a version of pandoc with highlighting support.
10844 [ John MacFarlane ]
10846 * Fixed regression with --preserveTabs. Brought back optPreserveTabs.
10847 The trick of setting tabStop to 0 to mean "preserve tabs" had a bad
10848 side effect: strings of 0 spaces were interpreted as indentation.
10849 So, with --preserve-tabs, unindented paragraphs were treated as
10850 code. Resolves Issue #138.
10852 * HTML writer: wrap sections in divs. Resolves Issue #70.
10854 + hierarchicalize has been rationalized; it builds a hierarchical
10855 representation of the document from the headers, and simultaneously
10856 gives each section a unique identifier based on the heading title.
10857 + Identifiers are now attached to the divs rather than
10858 to the headers themselves.
10859 + Table of content backlinks go to the beginning of the table, rather
10860 than to the section reference that was clicked.
10861 + Code for constructing identifiers has been moved to Text.Pandoc.Shared
10862 from the HTML writer, since it is now consumed only by
10864 + In --strict mode, pandoc just prints bare headings, as before
10865 (unless --toc has been specified).
10866 + In s5 output, it does not wrap sections in divs, as that seems to
10867 confuse the s5 javascript.
10869 * Man writer: break lines at end of each sentence. groff expects this
10870 and treats '.' and '?' differently when followed by line ending as
10871 opposed to ordinary space. Also, don't escape periods. Instead, use
10872 zero-width character \& to avoid unwanted interpretation of periods
10873 at start of line. Resolves Issue #148.
10875 * Markdown writer: Added '#' and '>' to list of characters to be
10876 escaped in markdown output. Removed '<', as it is not an officially
10877 escapable character. This partially resolves Issue #96.
10879 * Make --smart the default for man output format. Otherwise we have
10880 trouble dividing lists of endlines into sentences.
10882 * DocBook writer: Use language attribute to indicate source language
10887 + Allow # to continue list, even if the list was started with an
10888 explicit marker. For example:
10893 Resolves Issue #140.
10894 + Allow continuation lines in line blocks. Also added test cases for
10895 line blocks for RST reader. Resolves Issue #149.
10896 + Allow explicit links with spaces in URL: `link <to this>`_
10898 * Improved LaTeX reader's coverage of math modes. Remove displaymath*
10899 (which is not in LaTeX) and recognize all the amsmath environments
10900 that are alternatives to eqnarray, namely equation, equation*,
10901 gather, gather*, gathered, multline, multline*, align, align*,
10902 alignat, alignat*, aligned, alignedat, split. Resolves Issue #103.
10903 Thanks to shreevatsa.public for the patch.
10907 + Allow -, _, :, . in markdown attribute names. These are legal in
10908 XML attribute names.
10909 + Use non-breaking spaces in abbreviations.
10910 + Markdown reader: improved efficiency of abbreviation parsing.
10911 Instead of a separate abbrev parser, we just check for
10912 abbreviations each time we parse a string. This gives a huge
10913 performance boost with -S. Resolves Issue #141.
10915 * Improved efficiency of shared parsers: hexNum, htmlComment,
10916 whitespace, indentSpaces.
10918 * Export HTMLMathMethod in Text.Pandoc.
10920 * Export languagesByExtension in Text.Pandoc.Highlighting.
10922 * Added new Haskell version of markdown2pdf, due to
10923 Paulo Tanimoto. This should be more portable than the old
10926 * Made 'pandoc -v' more explicit about compiler options.
10927 Resolves Issue #139.
10929 * pandoc.hs: Made --strict compatible with --standalone, --toc.
10931 * Use Paths_pandoc to get version number, instead of hard-coding it
10932 into Text/Pandoc.hs.
10936 [ John MacFarlane ]
10938 * Added support for literate Haskell. lhs support is triggered by
10939 '+lhs' suffixes in formats. For example, 'latex+lhs' is literate
10940 Haskell LaTeX. '.lhs' files are treated by default as literate
10943 + Added stateLiterateHaskell to parser state.
10944 + Added parser for lhsCodeBlock to Markdown, RST, LaTeX readers.
10945 + Added parser for |inline lhs| to LaTeX reader.
10946 + Added writerLiterateHaskell to WriterOptions.
10947 + Added lhs support to Markdown, RST, LaTeX, HTML writers.
10948 + Added definition of code environment to LaTeX header.
10949 + Added tests (run only if highlighting support compiled in).
10950 + Documented lhs features in man page and README.
10952 * In Text.Pandoc.Definition, added processWith, processWithM,
10953 and queryWith, and deprecated processPandoc and queryPandoc
10954 for these more general functions.
10956 * Fixed bug in mediawiki writer: improper closing tags in tables.
10957 Thanks to Benct Philip Jonsson for reporting the bug.
10959 * Added --email-obfuscation option.
10961 + Added writer option for email obfuscation.
10962 + Implemented email obfuscation options in HTML writer.
10963 + Added option to option parser.
10964 + Documented in README and pandoc man page.
10965 + Resolves Issue #97.
10967 * LaTeX writer: fixed bug with empty table cells.
10968 Resolves Issue #107. Thanks to rodja.trappe for the patch.
10970 * Fixed bug with header spacing in Markdown and RST writers.
10971 A null header (Meta [] [] []) should not cause a blank line
10972 at the beginning of output. But a blank line is needed between
10973 a non-null header and the main text.
10975 * Markdown reader: Relax spacing rules for $$ in display math. Now
10976 space and newlines are allowed after the opening $$ and before the
10977 closing $$. However, the display math cannot contain an entirely
10978 blank line. Resolves Issue #105.
10980 * Markdown reader: Gobble space after Plain blocks containing only
10981 raw html inline. Otherwise following header blocks are not parsed
10982 correctly, since the parser sees blank space before them. Resolves
10985 * Markdown reader: Allow " as well as '' to end a latex double-quote.
10987 * Conditionally depend on syb and base >= 4 if ghc >= 6.10.
10988 Resolves Issue #109.
10990 * Fixed problems in RST and markdown output due to bug in pretty-1.0.1.0
10992 + Added hang' function to Text.Pandoc.Shared; this will be used instead
10993 of hang, which doesn't work properly in pretty-1.0.1.0. When pretty
10994 is upgraded, we can go back to hang.
10995 See http://article.gmane.org/gmane.comp.lang.haskell.general/16687
10996 + Use hang' (and some different techniques) in RST and markdown writers.
10997 Some output is now a bit different.
10999 * Brought citeproc support up to date for citeproc-hs-0.2.
11000 (Patch by Andrea Rossato.)
11002 * Moved all haskell source to src subdirectory. Renamed Main.hs to
11005 * Rewrote hsmarkdown in Haskell for portability (src/hsmarkdown.hs).
11006 For now, keeping the old shell script too.
11008 * Added TemplateHaskell to Extensions for executable, removed
11009 -threaded for library. Thanks to duncan.coutts for the bug report.
11010 Resolves Issue #121.
11012 * Moved some Extra-Source-Files to Data-Files.
11014 * Moved tabFilter to Shared.
11016 * In pandoc.hs, removed optPreserveTabs; instead, tabstop of 0 means
11019 * Minor code cleanup based on hlint suggestions.
11023 [ John MacFarlane ]
11027 + Changed date on copyright message in Main.hs.
11028 + Have the '-v' option print syntax highlighting languages
11029 separated by commas, and wrapped in lines, instead of in five
11032 * Added --jsmath option. Resolves Issue #68.
11034 + Added --jsmath option to Main.hs
11035 + Added JsMath to HTMLMathMethod in Text.Pandoc.Shared.
11036 + Handle math appropriately in HTML writer when JsMath selected.
11037 + Documented the option in README and man page.
11039 * Text.Pandoc.Shared: Changed compactify to use a better heuristic
11040 for tight and loose lists. Final Para is changed to Plain if all
11041 other list items *end* with a Plain block. Addresses Issue #99.
11045 + Added colons to protocols in unsanitaryURI. Closes Issue #88.
11046 + HTML reader: Don't interpret contents of <pre> blocks as markdown.
11047 Added rawVerbatimBlock parser. Resolves Issue #94.
11051 + Allow URLs with spaces in them in links and references, but escape
11053 + Allow blank space at the end of horizontal rules.
11055 * RST reader: Modified 'unknownDirective' parser to handle comment
11056 blocks correctly, and added tests for comment blocks. Resolves Issue
11057 #86. Closes Debian Bug #500662.
11061 + Include classes on tr elements in HTML output:
11062 "header", "odd", "even". This allows tables to be styled with
11063 lines in alternating colors. Resolves Issue #91.
11064 + Enclose all LaTeXMathML bits in <span class="LaTeX">.
11065 This prevents parts of the document that are not math from being
11066 interpreted as math by LaTeXMathML.js.
11068 * OpenDocument and ODT writers: Added support for HorizontalRule elements,
11069 which were formerly ignored. Resolves Issue #95.
11071 * Text.Pandoc.Shared: Modified wrappedTeX to eliminate the line break
11072 between a footnote and immediately following nonspace characters in
11073 LaTeX and ConTeXt output. (This gets interpreted as a space, which
11074 is not desired in cases like `text^[note]---`.) Resolves Issue #93.
11076 * Windows installer: Don't require admin privileges to run
11077 installer. Modified pandoc-setup.iss, and changed modpath.iss to
11078 modify HKCU path if user lacks admin privileges. Also fixed case
11079 where oldpath is empty (previously this led to the new path
11080 beginning with a semicolon).
11082 * Updated INSTALL instructions for Arch packages and OS X install using
11085 * Removed the (now unneeded) debian directory.
11086 Removed empty Codec and System directories.
11088 * Moved odt-styles/ to data/. Removed unneeded variable in Makefile.
11090 * Modified Setup.hs so that the "test" target returns an error status
11091 when tests fail, and "build" returns a success status if
11092 the build succeeds. Resolves Issue #100.
11094 * Added BUGS to files in tarball.
11099 [ John MacFarlane ]
11101 * Removed spurious reference to pdf output format from pandoc(1) man page.
11107 * Added new OpenDocument writer.
11109 * Added support for SmallCaps inline element.
11111 * Added support for integrating pandoc with citeproc-hs.
11113 + Added Cite element to definition and writers.
11114 + Added Text.Pandoc.Biblio module
11115 + Note: This support is included only if the 'citeproc'
11116 Cabal configuration flag is set.
11118 * Made Pandoc data structure an instance of Typeable.
11119 Added new processPandoc and queryPandoc functions, to query
11120 or transform matching elements in a Pandoc structure.
11124 * Added new Texinfo writer.
11126 [ John MacFarlane ]
11128 * Changes to Texinfo writer:
11130 + No space between paragraph and following @verbatim (provides more
11131 pleasing appearance in text formats)
11132 + Blank line consistently after list environments.
11134 + Use @code instead of @verb for inline code (this solves the character
11135 escaping problem for texi2dvi and texi2pdf).
11136 + Added news of Texinfo writer to README.
11137 + Added Texinfo to list of formats in man page, and removed extra 'groff'.
11138 + Added texi & texinfo extensions to Main.hs, and fixed bug in determining
11139 default output extension.
11140 + Modified disallowedInNode in Texinfo writer to correct list of disallowed characters.
11142 * Added tests for OpenDocument writer.
11144 * Added ODT writer (using zip-archive library to package output of
11145 OpenDocument writer). Added odt-styles directory with default ODT styles.
11147 * Added new mediawiki writer and tests.
11149 * Markdown reader: Added support for delimited code blocks, with optional
11150 syntax highlighting using highlighting-kate (if the 'highlighting'
11151 configuration option is selected).
11153 + Currently highlighting is supported only in the HTML writer.
11154 + Delimited code blocks can have attributes; using the language name as
11155 class triggers highlighting.
11156 + New Attributes parameter in CodeBlock structure.
11157 + --version now indicates whether syntax highlighting support is compiled
11158 in, and prints a list of supported languages
11160 * Removed debian directory. Pandoc is no longer a native debian package.
11162 * Changes to build process: pandoc can now be built from the repository
11163 using Cabal. No unix tools are needed (so, pandoc can be built on Windows
11166 + Include shell scripts themselves in repo, rather than generating from wrappers.
11167 Removed wrappers directory and wrappers Makefile target.
11168 + Text/Pandoc/ASCIIMathML.hs, Text/Pandoc/DefaultHeaders.hs,
11169 and Text/Pandoc/Writers/S5.hs are no longer built in Makefile
11170 from templates in the templates/ directory. Instead, they use template
11171 haskell to read data at compile time from the relevant files in data/.
11172 Template haskell functions go in a new module, Text.Pandoc.TH.
11173 + man pages are now generated in Setup.hs hook, not by Makefile
11174 + Makefile 'tarball' target now calls Cabal's 'sdist'
11175 + Added "Extra-Source-Files" to pandoc.cabal, so sdist contains everything needed
11176 + Added "Build-Type" field to pandoc.cabal to avoid warning.
11177 + Added to "Extra-source-files" and "Extra-tmp-files" in pandoc.cabal,
11178 so 'sdist' and 'clean' will work properly.
11179 + Setup.hs now generates man pages in a postbuild hook.
11180 + Added dependency-checking to Setup.hs, so it only rebuilds things
11181 that need rebuilding.
11182 + Added 'library' and 'executable' configuration flags.
11183 Cabal can now be told to build just the library or just the executable.
11184 + CABALOPTS may now be specified with 'make' to pass Cabal configuration flags.
11185 For example: CABALOPTS=-fhighlighting make
11187 * Rewrote test suite so it doesn't depend on perl or unix tools.
11189 + Replaced old runtests.pl with a Haskell script RunTests.hs.
11190 + Added Diff.hs module to be used by RunTests.hs instead of unix 'diff'.
11191 + Added test hook to Setup.hs, so tests may be run from cabal.
11192 + Changed Makefile's 'test' target to run tests via cabal.
11193 + Removed old generate.sh.
11194 + Since we no longer have 'sed' to filter out raw HTML sections
11195 from the docbook writer test, or raw LaTeX sections from the
11196 context writer test, we now just include these sections.
11197 They can be taken out if it is necessary to process the files.
11198 + Updated latex and context writer tests to remove extra spaces
11200 + Added a markdown table reader test.
11201 + Added markdown-reader-more.txt to test suite, for additional test cases
11202 for raw ConTeXt environments and more.
11204 * Compatibility fixes for CPP, Cabal, and haddock:
11206 + Use CPP in "Extensions" field in pandoc.cabal.
11207 + Removed use of backslash string continuations in source files.
11209 * Removed pandoc.cabal.ghc66. We now require Cabal >= 1.2, GHC >= 6.8,
11212 * Require parsec < 3.
11213 The compatibility module in parsec 3.0.0 gives far worse performance than
11214 parsec 2.1. Eventually pandoc will be upgraded to use the new bytestring
11215 version of parsec, and then we'll go to parsec 3.0.0.
11217 * Removed Text.Regex dependencies by rewriting using plain Haskell
11218 (Text.Pandoc.Writers.RTF, Text.Pandoc.Writers.HTML, Main.hs)
11220 * Moved Text.Pandoc.Writers.DefaultHeaders -> Text.Pandoc.DefaultHeaders.
11224 + Added 'configure' as dependency of 'uninstall-all'.
11225 (It uses the Cabal build program.)
11226 + Makefile: only use --with-hc-pkg if GHC_PKG is defined.
11227 Note that Cabal will automatically choose the ghc-pkg appropriate
11228 for the compiler selected, so normally specifying GHC by itself
11231 * Removed Text.Pandoc.UTF8 module; instead, depend on utf8-string and use
11232 its IO and conversion functions.
11234 * Added -Wall to ghc-options in pandoc.cabal. Cleaned up modules so that
11235 everything is -Wall clean.
11237 + Added pragma to HTML writer to avoid deprecation warning for use of "start" attribute.
11238 + Added pragma to Text/Pandoc/Shared.hs to get rid of "orphan instance" warnings.
11239 (These are caused by the Lift instance for ByteString.)
11241 * Changed the comment used to replace unsafe HTML if sanitize-html option
11244 * Made -c/--css option repeatable on the command line (like -H, -A, -B).
11246 * Moved XML-formatting functions to new unexported module Text.Pandoc.XML.
11248 * Escape '\160' as " ", not " " in XML.
11249 "nbsp" isn't a predefined XML entity.
11251 * Fixed bug in RST reader, which would choke on: "p. one\ntwo\n".
11252 Added some try's in ordered list parsers.
11254 * Man writer: don't escape " as \".
11256 * Allow newline before URL in markdown link references. Resolves Issue #81.
11257 Added tests for this issue in new "markdown-reader-more" tests.
11258 Changed RunTests.hs to run these tests.
11260 * Support for display math. Resolves Issue #47.
11262 + Added a DisplayMath/InlineMath selector to Math inlines.
11263 + Markdown parser yields DisplayMath for $$...$$.
11264 + LaTeX parser yields DisplayMath when appropriate. Removed
11265 mathBlock parsers, since the same effect is achieved by the math
11266 inline parsers, now that they handle display math.
11267 + Writers handle DisplayMath as appropriate for the format.
11268 + Modified tests accordingly; added new tests for display math.
11270 * Use LaTeXMathML instead of ASCIIMathML. LaTeXMathML is closer
11271 to LaTeX in its display of math, and supports many non-math LaTeX environments.
11273 + Changed -m option to use LaTeXMathML rather than ASCIIMathML.
11274 + Modified HTML writer to print raw TeX when LaTeXMathML is
11275 being used instead of suppressing it.
11276 + Removed ASCIIMathML files from data/ and added LaTeXMathML.
11277 + Replaced ASCIIMathML with LaTeXMathML in source files.
11278 + Modified README and pandoc man page source.
11279 + Added --latexmathml option (kept --asciimathml as a synonym
11280 for backwards compatibility)
11282 * Markdown reader: Parse setext headers before atx headers.
11286 parsed by Markdown.pl as an H1 header with contents "# hi".
11288 * Markdown reader: Treat "mixed" lists the same way as Markdown.pl does.
11289 The marker on the first list item determines the type of the whole
11290 list. Thus, a list like
11294 gets parsed as a single ordered list. (Previous versions of pandoc
11295 treated this as an ordered list with an unordered sublist.)
11297 * Markdown smart typography:
11299 + Em dashes no longer eat surrounding whitespace. Resolves Issue #69.
11300 + Use nonbreaking spaces after known abbreviations in markdown parser.
11301 Thus, for example, "Mr. Brown" comes out as "Mr.~Brown" in LaTeX, and does
11302 not produce a sentence-separating space. Resolves Issue #75.
11304 * Markdown writer: Print unicode \160 literally, rather than as .
11306 * Treat '\ ' in (extended) markdown as nonbreaking space.
11307 Print nonbreaking space appropriately in each writer (e.g. ~ in LaTeX).
11309 * The '--sanitize-html' option now examines URIs in markdown links
11310 and images, and in HTML href and src attributes. If the URI scheme
11311 is not on a whitelist of safe schemes, it is rejected. The main point
11312 is to prevent cross-site scripting attacks using 'javascript:' URIs.
11313 See http://www.mail-archive.com/markdown-discuss@six.pairlist.net/msg01186.html
11314 and http://ha.ckers.org/xss.html. Resolves Issue #62.
11318 + Override Text.XHtml's stringToHtml function,
11319 so that characters below 0xff are not converted to numerical entity
11320 references. Also convert '\160' to " ". This should aid readability
11321 and editability of the HTML source. It does presuppose that the HTML
11322 will be served as UTF-8.
11323 + In code blocks, change leading newlines to <br /> tags.
11324 (Some browsers ignore them.) Resolves Issue #71.
11325 See http://six.pairlist.net/pipermail/markdown-discuss/2008-May/001297.html
11326 + Use style attributes rather than css classes for strikethrough
11327 and ordered list styles. This works better when fragments, rather than
11328 standalone documents, are generated.
11330 * HTML reader: Count anything that isn't a known block (HTML) tag as an
11331 inline tag (rather than the other way around). Added "html", "head", and
11332 "body" to list of block tags. Resolves Issue #66, allowing
11333 <lj> to count as an inline tag.
11335 * RTF writer: Fixed bug. Extra spaces were being printed after emphasized,
11336 boldface, and other inline elements. Resolves Issue #64.
11338 * LaTeX reader: improvements in raw LaTeX parsing.
11340 + "loose punctuation" (like {}) parsed as Space
11341 + Para elements must contain more than Str "" and Space elements
11342 + Added parser for "\ignore" command used in literate haskell.
11343 + Reworked unknownCommand and rawLaTeXInline: when not in "parse raw"
11344 mode, these parsers simply strip off the command part and allow
11345 the arguments to be parsed normally. So, for example,
11346 \blorg{\emph{hi}} will be parsed as Emph "hi" rather than
11347 Str "{\\emph{hi}}".
11348 + Parse lhs "code" environments as verbatim.
11349 Refactored parsers for verbatim environments.
11350 + Removed specialEnvironment parser.
11351 + parse '{}', if present, after \textless, \textgreater,
11352 \textbar, \textbackslash, \ldots.
11353 + Parse unescaped special characters verbatim rather than
11354 changing them to spaces. This way arguments of unknown
11355 commands will appear in braces.
11357 * Parse raw ConTeXt environments as TeX in markdown reader.
11358 Resolves Issue #73.
11360 * Moved BlockWrapper and wrappedBlocksToDoc from ConTeXt writer to Shared.
11362 * Made some structural changes to parsing of raw LaTeX environments.
11363 Previously there was a special block parser for LaTeX environments.
11364 It returned a Para element containing the raw TeX inline. This has
11365 been removed, and the raw LaTeX environment parser is now used in the
11366 rawLaTeXInline parser. The effect is exactly the same, except that we
11367 can now handle consecutive LaTeX and ConTeXt environments not separated
11368 by spaces. This new flexibility is required by the example in
11371 \placeformula \startformula
11375 API change: The LaTeX reader now exports rawLaTeXEnvironment' (which
11376 returns a string) rather than rawLaTeXEnvironment (which returns a block
11377 element). This is more likely to be useful in other applications.
11379 * Use \textsubscr instead of \textsubscript for LaTeX subscript macro.
11380 \textsubscript conflicts with a definition in the memoir class.
11381 Resolves Issue #65.
11383 * Removed unneeded space after "\\item" in LaTeX and ConTeXt output.
11385 * Added amsmath package to default LaTeX header. Resolves Issue #48.
11387 * Added \setupitemize[autointro] to ConTeXt header, to prevent orphaned
11388 list introduction lines.
11390 * Changed Float to Double in definition of Table element.
11391 (Double is more efficient in GHC.)
11393 * Fixed bug in Markdown parser: regular $s triggering math mode.
11394 For example: "shoes ($20) and socks ($5)."
11395 The fix consists in two new restrictions:
11397 + the $ that ends a math span may not be directly followed by a digit.
11398 + no blank lines may be included within a math span.
11400 Thanks to Joseph Reagle for noticing the bug.
11402 * Use Data.List's 'intercalate' instead of custom 'joinWithSep'.
11403 Removed 'joinWithSep' from Text.Pandoc.Shared.
11405 * Updated README and man pages. Acknowledge contributors in README.
11406 Added paragraph to README about producing S5 with separate CSS/javascript.
11408 * Updated INSTALL to reflect new build system (including configuration
11409 options) and document new dependencies. Added note to INSTALL that
11410 Cabal >= 1.2 is required for build. Resolves Issue #74.
11412 * Fixed some haddock documentation errors.
11414 * Small fix to markdown2pdf man page: only input needs to be piped through iconv.
11416pandoc (0.46) unstable; urgency=low
11418 [ John MacFarlane ]
11420 * Made -H, -A, and -B options cumulative: if they are specified
11421 multiple times, multiple files will be included.
11423 * Added optional HTML sanitization using a whitelist.
11424 When this option is specified (--sanitize-html on the command line),
11425 unsafe HTML tags will be replaced by HTML comments, and unsafe HTML
11426 attributes will be removed. This option should be especially useful
11427 for those who want to use pandoc libraries in web applications, where
11428 users will provide the input.
11430 + Main.hs: Added --sanitize-html option.
11432 + Text.Pandoc.Shared: Added stateSanitizeHTML to ParserState.
11434 + Text.Pandoc.Readers.HTML:
11435 - Added whitelists of sanitaryTags and sanitaryAttributes.
11436 - Added parsers to check these lists (and state) to see if a given
11437 tag or attribute should be counted unsafe.
11438 - Modified anyHtmlTag and anyHtmlEndTag to replace unsafe tags
11440 - Modified htmlAttribute to remove unsafe attributes.
11441 - Modified htmlScript and htmlStyle to remove these elements if
11444 + Modified README and man pages to document new option.
11446 * Improved handling of email addresses in markdown and reStructuredText.
11447 Consolidated uri and email address parsers. (Resolves Issue #37.)
11449 + New emailAddress and uri parsers in Text.Pandoc.Shared.
11450 - uri parser uses parseURI from Network.URI.
11451 - emailAddress parser properly handles email addresses with periods
11454 + Removed uri and emailAddress parsers from Text.Pandoc.Readers.RST
11455 and Text.Pandoc.Readers.Markdown.
11459 + Fixed emph parser so that "*hi **there***" is parsed as a Strong
11460 nested in an Emph. (A '*' is only recognized as the end of the
11461 emphasis if it's not the beginning of a strong emphasis.)
11463 + Moved blockQuote parser before list parsers for performance.
11465 + Modified 'source' parser to allow backslash-escapes in URLs.
11466 So, for example, [my](/url\(1\)) yields a link to /url(1).
11467 Resolves Issue #34.
11469 + Disallowed links within links. (Resolves Issue #35.)
11470 - Replaced inlinesInBalanced with inlinesInBalancedBrackets, which
11471 instead of hard-coding the inline parser takes an inline parser
11473 - Modified reference and inlineNote to use inlinesInBalancedBrackets.
11474 - Removed unneeded inlineString function.
11475 - Added inlineNonLink parser, which is now used in the definition of
11477 - Added inlineParsers list and redefined inline and inlineNonLink parsers
11479 - Added failIfLink parser.
11481 + Better handling of parentheses in URLs and quotation marks in titles.
11482 - 'source' parser first tries to parse URL with balanced parentheses;
11483 if that doesn't work, it tries to parse everything beginning with
11484 '(' and ending with ')'.
11485 - source parser now uses an auxiliary function source'.
11486 - linkTitle parser simplified and improved, under assumption that it
11487 will be called in context of source'.
11489 + Make 'block' conditional on strictness state, instead of using
11490 failIfStrict in block parsers. Use a different ordering of parsers
11491 in strict mode (raw HTML block before paragraph) for performance.
11492 In non-strict mode use rawHtmlBlocks instead of htmlBlock.
11493 Simplified htmlBlock, since we know it's only called in strict
11496 + Improved handling of raw HTML. (Resolves Issue #36.)
11497 - Tags that can be either block or inline (e.g. <ins>) should
11498 be treated as block when appropriate and as inline when
11499 appropriate. Thus, for example,
11501 should be treated as a paragraph with inline <ins> tags, while
11505 should be treated as a paragraph within <ins> tags.
11506 - Moved htmlBlock after para in list of block parsers. This ensures
11507 that tags that can be either block or inline get parsed as inline
11509 - Modified rawHtmlInline' so that block elements aren't treated as
11511 - Modified para parser so that paragraphs containing only HTML tags and
11512 blank space are not allowed. Treat these as raw HTML blocks instead.
11514 + Fixed bug wherein HTML preceding a code block could cause it to
11515 be parsed as a paragraph. The problem is that the HTML parser
11516 used to eat all blank space after an HTML block, including the
11517 indentation of the code block. (Resolves Issue #39.)
11518 - In Text.Pandoc.Readers.HTML, removed parsing of following space
11520 - In Text.Pandoc.Readers.Markdown, modified rawHtmlBlocks so that
11521 indentation is eaten *only* on the first line after the HTML
11522 block. This means that in
11526 the foo won't be treated as a code block, but in
11532 it will. This seems the right approach for least surprise.
11536 + Fixed bug in parsing explicit links (resolves Issue #44).
11537 The problem was that we were looking for inlines until a '<' character
11538 signaled the start of the URL; so, if you hit a reference-style link,
11539 it would keep looking til the end of the document. Fix: change
11540 inline => (notFollowedBy (char '`') >> inline). Note that this won't
11541 allow code inlines in links, but these aren't allowed in resT anyway.
11543 + Cleaned up parsing of reference names in key blocks and links.
11544 Allow nonquoted reference links to contain isolated '.', '-', '_', so
11545 so that strings like 'a_b_' count as links.
11547 + Removed unnecessary check for following link in str.
11548 This is unnecessary now that link is above str in the definition of
11553 + Modified rawHtmlBlock so it parses </html> and </body> tags.
11554 This allows these tags to be handled correctly in Markdown.
11555 HTML reader now uses rawHtmlBlock', which excludes </html> and </body>,
11556 since these are handled in parseHtml. (Resolves Issue #38.)
11558 + Fixed bug (emph parser was looking for `<IT>` tag, not `<I>`).
11560 + Don't interpret contents of style tags as markdown.
11561 (Resolves Issue #40.)
11562 - Added htmlStyle, analagous to htmlScript.
11563 - Use htmlStyle in htmlBlockElement and rawHtmlInline.
11564 - Moved "script" from the list of tags that can be either block or
11565 inline to the list of block tags.
11567 + Modified rawHtmlBlock to use anyHtmlBlockTag instead of anyHtmlTag
11568 and anyHtmlEndTag. This fixes a bug in markdown parsing, where
11569 inline tags would be included in raw HTML blocks.
11571 + Modified anyHtmlBlockTag to test for (not inline) rather than
11572 directly for block. This allows us to handle e.g. docbook in
11573 the markdown reader.
11575 * LaTeX reader: Properly recognize --parse-raw in rawLaTeXInline.
11576 Updated LaTeX reader test to use --parse-raw.
11580 + Modified rules for automatic HTML header identifiers to
11581 ensure that identifiers begin with an alphabetic character.
11582 The new rules are described in README. (Resolves Issue #33.)
11584 + Changed handling of titles in HTML writer so you don't get
11585 "titleprefix - " followed by nothing.
11587 * ConTeXt writer: Use wrappers around Doc elements to ensure proper
11588 spacing. Each block element is wrapped with either Pad or Reg.
11589 Pad'ed elements are guaranteed to have a blank line in between.
11593 + Refactored RST writer to use a record instead of a tuple for state,
11594 and to include options in state so it doesn't need to be passed as
11597 + Use an interpreted text role to render math in restructuredText.
11598 See http://www.american.edu/econ/itex2mml/mathhack.rst for the
11603 * Debian packaging changes:
11605 + Remove the empty 'include' directory in -dev package, which lintian
11607 + Bump Standarts-Version to 3.7.3.
11608 + Use new 'Homepage:' field to specify the upstream URL on suggestion of
11611 -- Recai Oktaş <roktas@debian.org> Tue, 08 Jan 2008 05:13:31 +0200
11613pandoc (0.45) unstable; urgency=low
11615 [ John MacFarlane ]
11617 * Simplified parsing of reference keys and notes in markdown and RST
11618 readers: The Reference data structure from Text.Pandoc.Shared is no
11619 longer needed, since referenceKey and noteBlock parses return strings
11620 (as many blank lines as were occupied by the key or note) and update
11621 state themselves. getPosition and setPosition are now used to ensure
11622 that error messages will give the correct line number. This yields
11623 cleaner (and slightly faster) code, with more accurate parsing error
11626 * Added new Math inline element:
11628 + Markdown and LaTeX readers now convert TeX math into Math elements,
11630 + This allows math to be treated differently from raw TeX in output.
11631 TeX elements are no longer printed in output formats other than
11632 Markdown, LaTeX, and ConTeXt. But Math elements are always printed.
11634 * New default handling of math in writers:
11636 + New module Text.Pandoc.Readers.TeXMath exports readTeXMath, which
11637 parses raw TeX math and outputs a string of Pandoc inlines that
11638 tries to render it as far as possible using unicode characters,
11639 lapsing into literal TeX when needed.
11640 + readTeXMath is now used for default HTML output in HTML, S5, RTF,
11641 and Docbook, if no other method for displaying math in HTML is
11642 specified. Enclosing $'s are no longer printed by default.
11643 + By default, math is put inside `<span class="math">`. This way it can be
11644 distinguished from the surrounding text, e.g. put in a different
11647 * New --gladtex and --mimetex options for display of math in HTML:
11649 + If --gladtex is specified, math is output between `<eq>` tags, so
11650 it can be processed by gladTeX.
11651 + If --mimetex is specified, math is put in `<img>` tags with a link
11652 to the mimetex CGI script (or any other script that takes TeX math
11653 as input and outputs an image). The URL of the script may be
11654 specified, but defaults to /cgi-bin/mimetex.cgi.
11655 + HTMLMathMethod structure in WriterOptions keeps track of how to
11656 display math in HTML output.
11657 + Updated README with a description of the four options for displaying
11662 + Fixed bug: parser for minimized attributes should not swallow
11664 + Simplified HTML attribute parsing.
11665 + Changed parsing of code blocks in HTML reader: `<code>` tag is no
11666 longer needed. `<pre>` suffices. All HTML tags in the code block
11667 (e.g. for syntax highlighting) are skipped, because they are not
11668 portable to other output formats. A `<code>...</code>` block not
11669 surrounded by `<pre>` now counts as inline HTML, not a code block.
11670 + Remove just one leading and one trailing newline from contents of
11671 `<pre>...</pre>` in codeBlock parser.
11675 + Removed support for box-style block quotes.
11676 + Require space before title in links and references.
11677 This fixes a bug in parsing URLs like http://silly/url(withparen).
11678 + Improved and simplified setextHeader parser.
11679 + Fixed logic in smart quote parsing, adding some needed 'try'
11681 + Fixed smart quote parsing so that unicode characters 8216 and 8217
11682 are recognized as single quotes, and 8220 and 8221 as double quotes.
11686 + Fixed bug in parsing of code blocks. Previously a full tab indent
11687 was required, but RST allows code to be indented any amount.
11688 Resolves Issue #27.
11689 + Allow field lists to be indented.
11690 + Parse the contents of field lists instead of treating as a raw string.
11691 + Represent field lists as definition lists instead of blockquotes.
11692 + Fixed bug in which metadata would be overridden if the document
11693 contained multiple field lists.
11694 + Parse fields associated with '.. image::' blocks, and use 'alt'
11695 field, if given, for image alt and title attributes.
11699 + Modified specialChar so that '"' characters are parsed.
11700 + Fixed a bug in parsing of \[ \] math blocks (thanks to Mark Kalderon).
11704 + Changes in handling of math (see above).
11705 + Don't produce HTML for table of contents if there are
11706 no headers. (This would be an empty list, which is invalid XHTML.)
11710 + Don't print title attribute if title is empty. (This differs from
11711 the behavior of Markdown.pl, and agrees with PHP Markdown. But John
11712 Gruber has indicated that he prefers this behavior.) Adjusted test
11714 + Fixed incorrect line wrapping in paragraphs including hard line
11715 breaks. Resolves Issue #25.
11716 + Fixed bug in markdown writer: If an ordered list item began with
11717 a marker greater than 3 characters in width, and the item took more
11718 than one line, it would appear on the line after the list marker,
11725 Now it works as follows:
11732 + Fixed bug in RST writer's handling of ordered lists. Previously,
11733 list items with multiple lines would not always line up with
11734 single-line list items. Now, list items are nested the length of
11735 the list marker + 1. This looks better and ensures that list items
11736 all line up. (Note that list markers are padded to the length of
11737 the longest list marker in the series.)
11738 + Use 3-space indent for unordered lists.
11739 + If label for a link reference contains a colon, surround it by `
11740 signs so it won't be interpreted as the end of the link label.
11744 + Cleaner output for footnotes. Footnotes now always begin on a new
11745 line, and the final } is on a line by itself only when it needs to
11746 be (i.e. only when the note ends with a Verbatim environment).
11747 + Added writer options to state, so state doesn't need to be passed as
11749 + Text wrapping now provided, using wrapTeXIfNeeded.
11751 * ConTeXt writer: many improvements for more idiomatic ConTeXt output
11752 (thanks to Idris Samawi Hamid for suggestions).
11754 + PrettyPrint module now used for output.
11755 + Writer options are now in state, so they don't have to be passed as
11757 + Text wrapping now provided, using wrapTeXIfNeeded.
11758 + Better treatment of footnotes: footnotes are always on lines by
11759 themselves, and the final } is on a line by itself only when
11760 it needs to be (after \stoptyping).
11761 + Use \subject, \subsubject, ... or \section, \subsection, ... for headings,
11762 depending on whether --number-sections option is selected.
11763 + Extra blank line inserted after \stopitemize
11764 + Use new, "official" definition of blockquote environment. Also, use
11765 blank line after \startblockquote to balance blank line at the end.
11766 + Both itemized and enumerated lists are now generated using
11767 \start-stopitemize, with appropriate options. Removed definitions
11768 of ltxenum and ltxitem, which are no longer needed. Provided
11769 defaults for itemized lists in the preamble. State keeps track of
11770 ordered list level, so that when default numbering is specified,
11771 the appropriate scheme can be used.
11772 + Changed \useurl to \useURL.
11773 + Changed link color from red to blue.
11774 + Use \subsubsubsubsection etc., since these are supported
11775 (up to at least sub x 5).
11777 * Text.Pandoc.Shared:
11779 + Save and restore position in parseFromString, so that accurate
11780 error messages can be given.
11781 + Improved efficiency of romanNumeral parser.
11782 + Added wrappedTeX and wrapTeXIfNeeded functions. These ensure
11783 that footnotes occur on lines by themselves (to make them
11784 easier to see and move) and do not screw up line wrapping.
11786 * Text.Pandoc.UTF8: modified fromUTF8 to strip out the BOM
11787 if present. Windows Notepad and other applications insert a
11788 BOM at the beginning of a UTF8 file.
11790 * Main.hs (tabFilter): Treat '\r' at end of line as newline (in
11791 addition to "\r\n" and '\n').
11793 * Added a writer option for wrapped text and a command-line option
11794 '--no-wrap', which disables text wrapping and minimizes whitespace
11795 in HTML. (Resolves Issue #26.)
11797 + Added support for '--no-wrap' to Main.hs.
11798 + Added wrapIfNeeded function to Text.Pandoc.Shared.
11799 + Use wrapIfNeeded instead of wrapped in the RST, Man, Docbook, and
11801 + Added render and renderFragment helpers to HTML writer.
11803 * Modified html2markdown to run tidy only if the HTML cannot be
11804 parsed. Previously html2markdown piped all input through tidy
11805 before passing it to pandoc. This caused problems on certain pages
11806 (e.g. http://daringfireball.com/markdown) which have well-formed
11807 XHTML that causes tidy to choke. The solution is to pipe through
11808 tidy only if pandoc cannot parse the input by itself. This means
11809 that a temp file is now always used, even when input comes from a
11810 local file or standard input.
11812 * Removed 'version' constant from Main.hs; added 'pandocVersion' to
11813 Text.Pandoc library.
11817 + Modified to work with GHC 6.8 and Cabal configurations. (For GHC
11818 6.8, pretty and containers must be added to Build-Depends, and it
11819 is desirable to use the -O2 compiler option.) Cabal configurations
11820 allows one to select options depending on the compiler version.
11821 For GHC 6.6, the splitBase option can be disabled.
11822 + pandoc.cabal.ghc66 is provided for users with older versions of
11823 Cabal, which do not support configurations.
11824 + Use Ghc-Prof-Options to ensure that '-auto-all' is used when
11825 '--enable-(executable|library)-profiling' is specified. Updated
11826 PROFILING instructions accordingly.
11830 + Makefile now checks GHC version. If GHC is 6.6, pandoc.cabal.ghc66
11831 is copied to pandoc.cabal, and the old pandoc.cabal is copied
11832 to pandoc.cabal.orig. Otherwise, pandoc.cabal is copied to
11833 pandoc.cabal.orig but otherwise unmodified. This way, the Makefile
11834 will work properly with either GHC 6.6 or 6.8.
11835 + Changed BUILDCONF to point to dist/setup-config, not .setup-config.
11836 This is where current versions of Cabal put it.
11837 + Added $(BUILDCMD) target, so setup doesn't get compiled every time.
11838 + Removed dependency of templates on ./templates, which is circular
11839 now that templates is a subdirectory of the top-level.
11841 * MacPorts Portfile:
11843 + Modified to install the pandoc library in addition to programs.
11844 + Installation must be done manually rather than using Makefile's
11846 + Note that the library must be registered in the activate phase,
11847 after the library files have been copied out of the destroot.
11848 Cabal generates a 'register.sh' script that will do this.
11850 * debian/control: Added libghc6-network-dev, libghc6-xhtml-dev, and
11851 libghc6-mtl-dev as dependencies for libghc6-pandoc-dev.
11854 * debian/rules: Converted to UTF-8.
11856 * Changed pandoc home page to http://johnmacfarlane.net/pandoc/.
11858 * Updated ASCIIMathML.js to latest version.
11860 * Directory structure:
11862 + Moved everything from src into the top-level directory.
11863 + Changed references to source directory in Makefile and
11865 + Moved ASCIIMathML.js, headers, and ui into templates directory.
11866 + Modified fillTemplates.pl to reflect new paths.
11870 * Makefile: Fixed the issue of having two copies of the library
11871 documentation under some usage scenarios.
11873 * Replaced 'ghc' with '$(GHC)' in Makefile, and made GHC
11874 and GHC_PKG configurable through the environment, to support
11875 unusual ghc installations. For example:
11876 GHC=/opt/ghc/bin/ghc GHC_PKG=/opt/ghc/bin/ghc-pkg make
11878 -- Recai Oktaş <roktas@debian.org> Sun, 07 Oct 2007 20:51:43 +0300
11880pandoc (0.44) unstable; urgency=low
11882 [ John MacFarlane ]
11884 * Fixed bug in HTML writer: when --toc was used, anchors were put around
11885 headers, which is invalid XHTML (block content within inline element).
11886 Now the anchors are put inside the header tags. Resolves Issue #23.
11888 * Added xmlns attribute to html element in html writer tests.
11889 This attribute is added by more recent versions of the
11890 xhtml library (>= 3000), and is required for valid XHTML.
11894 * On configure, compile 'Setup.hs' to 'setup' and use 'setup' as the build
11895 command instead of 'runhaskell', which, on some platforms (such as s390,
11896 alpha, m68k), throws the following error:
11898 runhaskell Setup.hs configure --prefix=/usr
11899 ghc-6.6.1: not built for interactive use
11901 This causes a serious FTBFS bug. Closes: #440668.
11903 -- Recai Oktaş <roktas@debian.org> Mon, 03 Sep 2007 18:24:02 +0300
11905pandoc (0.43) unstable; urgency=low
11907 [ John MacFarlane ]
11909 * The focus of this release is performance. The markdown parser
11910 is about five times faster than in 0.42, based on benchmarks
11911 with the TextMate manual.
11913 * Main.hs: Replaced CRFilter and tabFilter with single function
11914 tabFilter, which operates on the whole string rather than breaking
11915 it into lines, and handles dos-style line-endings as well as tabs.
11917 * Added separate LaTeX reader and native reader tests; removed
11920 * Text.Pandoc.Shared:
11922 + Removed tabsToSpaces and tabsInLine (they were used only in Main.hs.)
11923 + General code cleanup (to elimante warnings when compiling with -Wall.)
11924 + Added 'wrapped' function, which helps wrap text into paragraphs,
11925 using the prettyprinting library.
11926 + Rewrote charsInBalanced and charsInBalanced'.
11927 - Documented restriction: open and close must be distinct characters.
11928 - Rearranged options for greater efficiency.
11929 - Bug fix: Changed inner call to charsInBalanced inside
11930 charsInBalanced' to charsInBalanced'.
11931 + anyLine now requires that the line end with a newline (not eof).
11932 This is a harmless assumption, since we always add newlines to the
11933 end of a block before parsing with anyLine, and it yields a 10% speed
11935 + Removed unnecessary 'try' in anyLine.
11936 + Removed unneeded 'try' from romanNumeral parser.
11937 + Use notFollowedBy instead of notFollowedBy' in charsInBalanced.
11938 + Removed unneeded 'try' in parseFromString.
11939 + Removed unneeded 'try' from stringAnyCase. (Now it behaves
11941 + Changed definition of 'enclosed' in Text.Pandoc.Shared so that
11942 'try' is not automatically applied to the 'end' parser. Added
11943 'try' in calls to 'enclosed' where needed. Slight speed increase.
11947 + Replaced individual wrapping routines in RST, Man, and Markdown
11948 writers with 'wrapped' from Text.Pandoc.Shared.
11949 + Rewrote LaTeX writer to use the prettyprinting library,
11950 so we get word wrapping, etc.
11951 + Modified latex writer tests for new latex writer using prettyprinter.
11952 + Fixed bug in LaTeX writer: autolinks would not cause
11953 '\usepackage{url}' to be put in the document header. Also, changes
11954 to state in enumerated list items would be overwritten.
11955 + In Markdown writer, escape paragraphs that begin with ordered list
11956 markers, so they don't get interpreted as ordered lists.
11958 * Text.Pandoc.Reades.LaTeX:
11960 + Fixed bug in LaTeX reader, which wrongly assumed that the roman
11961 numeral after "enum" in "setcounter" would consist entirely of
11962 "i"s. 'enumiv' is legitimate.
11963 + LaTeX command and environment names can't contain numbers.
11964 + Rearranged order of parsers in inline for slight speed improvement.
11965 + Added '`' to special characters and 'unescapedChar'.
11967 * Text.Pandoc.Readers.RST:
11969 + Removed unneeded try's in RST reader; also minor code cleanup.
11971 + Rearranged parsers in inline (doubled speed).
11973 * Text.Pandoc.Readers.Markdown:
11975 + Skip notes parsing if running in strict mode. (This yields a nice
11976 speed improvement in strict mode.)
11977 + Simplify autolink parsing code, using Network.URI to test for
11978 URIs. Added dependency on network library to debian/control and
11980 + More perspicuous definition of nonindentSpaces.
11981 + Removed unneeded 'try' in 'rawLine'.
11982 + Combined linebreak and whitespace into a new whitespace parser, to
11983 avoid unnecessary reparsing of space characters.
11984 + Removed unnecessary 'try' in 'codeBlock', 'ellipses', 'noteMarker',
11985 'multilineRow', 'dashedLine', 'rawHtmlBlocks'.
11986 + Use lookAhead in parsers for setext headers and definition lists
11987 to see if the next line begins appropriately; if not, don't waste
11988 any more time parsing.
11989 + Don't require blank lines after code block. (It's sufficient to
11990 end code block with a nonindented line.)
11991 + Changed definition of 'emph': italics with '_' must not
11992 be followed by an alphanumeric character. This is to help
11993 prevent interpretation of e.g. `[LC_TYPE]: my_type` as
11994 `[LC<em>TYPE]:my</em>type`.
11995 + Improved Markdown.pl-compatibility in referenceLink: the two parts
11996 of a reference-style link may be separated by one space, but not
11997 more... [a] [link], [not] [a link].
11998 + Fixed markdown inline code parsing so it better accords with
11999 Markdown.pl: the marker for the end of the code section is a clump
12000 of the same number of `'s with which the section began, followed
12001 by a non-` character. So, for example,
12002 ` h ``` i ` -> `<code>h ``` i</code>`.
12003 + Split 'title' into 'linkTitle' and 'referenceTitle', since the
12004 rules are slightly different.
12005 + Rewrote 'para' for greater efficiency.
12006 + Rewrote link parsers for greater efficiency.
12007 + Removed redundant 'referenceLink' in definition of inline (it's
12008 already in 'link').
12009 + Refactored escapeChar so it doesn't need 'try'.
12010 + Refactored hrule for performance in Markdown reader.
12011 + More intelligent rearranging of 'inline' so that most frequently
12012 used parsers are tried first.
12013 + Removed tabchar parser, as whitespace handles tabs anyway.
12015 * Text.Pandoc.CharacterReferences:
12018 + Removed unnecessary 'try's for a speed improvement.
12019 + Removed unnecessary '&' and ';' from the entity table.
12023 + Makefile: Get VERSION from cabal file, not Main.hs.
12024 + Modified MacPorts Portfile:
12025 - Depend on haddock
12026 - Build and install libraries and library documentation in
12027 addition to pandoc executable
12028 - Added template item for md5 sum in Portfile.in.
12029 - Incorporated changes from MacPorts repository (r28278).
12030 + FreeBSD port: Don't try to generate distinfo in Makefile.
12031 It can be made using 'make makesum' in FreeBSD.
12032 + Make both freebsd and macports targets depend on tarball.
12034 * Website and documentation:
12036 + Updated INSTALL instructions.
12037 + Added pandocwiki demo to website.
12038 + Removed local references to Portfile, since pandoc is now in the
12039 MacPorts repository.
12041 -- Recai Oktaş <roktas@debian.org> Sun, 02 Sep 2007 15:50:11 +0300
12043pandoc (0.42) unstable; urgency=low
12045 [ John MacFarlane ]
12047 * Main.hs: Use utf8 conversion on the extra files loaded with
12048 the -H, -C, -B, and -A options. This fixes problems with unicode
12049 characters in these files.
12051 * Exposed Text.Pandoc.ASCIIMathML, since it is imported in
12052 Text.Pandoc.Readers.HTML and without it we get a linking error when
12057 + Added new rule for enhanced markdown ordered lists: if the list
12058 marker is a capital letter followed by a period (including a
12059 single-letter capital roman numeral), then it must be followed by
12060 at least two spaces. The point of this is to avoid accidentally
12061 treating people's initials as list markers: a paragraph might begin,
12062 "B. Russell was an English philosopher," and this shouldn't be
12063 treated as a list. Documented change in README.
12064 + Blocks that start with "p. " and a digit are no longer treated
12065 as ordered lists (it's a page number).
12066 + Added a needed 'try' to listItem.
12067 + Removed check for a following setext header in endline.
12068 A full test is too inefficient (doubles benchmark time), and the
12069 substitute we had before is not 100% accurate.
12070 + Don't use Code elements for autolinks if --strict specified.
12072 * LaTeX writer: When a footnote ends with a Verbatim environment, the
12073 close } of the footnote cannot occur on the same line or an error occurs.
12074 Fixed this by adding a newline before the closing } of every footnote.
12077 + Removed incorrect "{}" around style information in HTML tables.
12078 Column widths now work properly in HTML.
12079 + If --strict option is specified (and --toc is not), don't include
12080 identifiers in headers, for better Markdown compatibility.
12084 + Separated $(web_dest) and website targets.
12085 + In website, index.txt is now constructed from template index.txt.in.
12086 + Added freebsd target to Markefile. This creates the freebsd Makefile
12087 from Makefile.in, and creates distinfo. Removed Makefile and distinfo
12088 from the repository.
12089 + Added macport target to Makefile. Portfile is built from template
12091 + Removed OSX package targets. (Too many difficulties involving
12092 dependencies on dynamic libraries.)
12093 + More complete INSTALL instructions for all architectures.
12096 + Added a programming demo, pandocwiki.
12100 * Do not forget to close pandoc's ITP. Closes: #391666
12102 -- Recai Oktaş <roktas@debian.org> Sun, 26 Aug 2007 22:51:32 +0300
12104pandoc (0.41) unstable; urgency=low
12106 [ John MacFarlane ]
12108 * Fixed bugs in HTML reader:
12109 + Skip material at end *only if* `</html>` is present (previously,
12110 only part of the document would be parsed if an error was
12111 found; now a proper error message is given).
12112 + Added new constant eitherBlockOrInline with elements that may
12113 count either as block-level or as inline. Modified isInline and
12114 isBlock to take this into account.
12115 + Modified rawHtmlBlock to accept any tag (even an inline tag):
12116 this is innocuous, because rawHtmlBlock is tried only if a regular
12117 inline element can't be parsed.
12118 + Added a necessary 'try' in definition of 'para'.
12120 * Fixed bug in markdown ordered list parsing. The problem was that
12121 anyOrderedListStart did not check for a space following the
12122 ordered list marker. So in 'A.B. 2007' the parser would be
12123 expecting a list item, but would not find one, causing an error.
12124 Fixed a similar bug in the RST reader. Resolves Issue #22.
12126 * Refactored RST and Markdown readers using parseFromString.
12128 * LaTeX reader will now skip anything after \end{document}.
12130 * Fixed blockquote output in markdown writer: previously, block
12131 quotes in indented contexts would be indented only in the first
12134 * Added note to INSTALL about variations in versions of the xhtml
12135 library that can lead to failed tests (thanks to Leif LeBaron).
12137 -- Recai Oktaş <roktas@debian.org> Sun, 19 Aug 2007 23:26:07 +0300
12139pandoc (0.4) unstable; urgency=low
12141 [ John MacFarlane ]
12143 * Added two new output formats: groff man pages and ConTeXt. By
12144 default, output files with extensions ".ctx" and ".context" are
12145 assumed to be ConTeXt, and output files with single-digit extensions
12146 are assumed to be man pages.
12148 * Enhanced ordered lists (documented in README, under Lists):
12149 + The OrderedList block element now stores information about
12150 list number style, list number delimiter, and starting number.
12151 + The readers parse this information when possible.
12152 + The writers use this information to style ordered lists.
12153 + The enhancement can be disabled using the --strict option.
12155 * Added support for tables (with a new Table block element). Two kinds
12156 of tables are supported: a simple table with one-line rows, and a
12157 more complex variety with multiline rows. All output formats are
12158 supported, but only markdown tables are parsed at the moment. The
12159 syntax is documented in README.
12161 * Added support for definition lists (with a new DefinitionList block
12162 element). All output and input formats are supported. The syntax is
12163 documented in README.
12165 * Added support for superscripts and subscripts (with new Superscript
12166 and Subscript inline elements). All input and output
12167 formats. The syntax is documented in README.
12169 * Added support for strikeout (with a new Strikeout inline element).
12170 All input and output formats are supported. Thanks to Bradley Kuhn,
12171 who contributed a patch. The syntax is documented in README. Resolves
12174 * Added a --toc|--table-of-contents option. This causes an automatically
12175 generated table of contents (or an instruction that creates one) to
12176 be inserted at the beginning of the document. Not supported in S5,
12177 DocBook, or man page writers.
12179 * Modified the -m|--asciimathml option:
12181 + If an optional URL argument is provided, a link is inserted
12182 instead of the contents of the ASCIIMathML.js script.
12183 + Nothing is inserted unless the document actually contains
12186 * Removed Blank block element as unnecessary.
12188 * Removed Key and Note blocks from the Pandoc data structure. All
12189 links are now stored as explicit links, and note contents are
12190 stored with the (inline) notes.
12192 + All link Targets are now explicit (URL, title) pairs; there
12193 is no longer a 'Ref' target.
12194 + Markdown and RST parsers now need to extract data from key and
12195 note blocks and insert them into the relevant inline elements.
12196 Other parsers have been simplified, since there is no longer any need
12197 to construct separate key and note blocks.
12198 + Markdown, RST, and HTML writers need to construct lists of
12199 notes; Markdown and RST writers need to construct lists of link
12200 references (when the --reference-links option is specified); and
12201 the RST writer needs to construct a list of image substitution
12202 references. All writers have been rewritten to use the State monad
12203 when state is required.
12204 + Several functions (generateReference, keyTable,
12205 replaceReferenceLinks, replaceRefLinksBlockList, and some auxiliaries
12206 used by them) have been removed from Text.Pandoc.Shared, since
12207 they are no longer needed. New functions and data structures
12208 (Reference, isNoteBlock, isKeyBlock, isLineClump) have been
12209 added. The functions inTags, selfClosingTag, inTagsSimple, and
12210 inTagsIndented have been moved to the DocBook writer, since that
12211 is now the only module that uses them. NoteTable is now exported
12212 in Text.Pandoc.Shared.
12213 + Added stateKeys and stateNotes to ParserState; removed stateKeyBlocks,
12214 stateKeysUsed, stateNoteBlocks, stateNoteIdentifiers, stateInlineLinks.
12215 + Added writerNotes and writerReferenceLinks to WriterOptions.
12217 * Added Text.Pandoc module that exports basic readers, writers,
12218 definitions, and utility functions. This should export everything
12219 needed for most uses of Pandoc libraries. The haddock documentation
12220 includes a short example program.
12222 * Text.Pandoc.ASCIIMathML is no longer an exported module.
12224 * Added Text.Pandoc.Blocks module to help in printing markdown
12225 and RST tables. This module provides functions for working with
12226 fixed-width blocks of text--e.g., placing them side by side, as
12229 * Refactored to avoid reliance on Haskell's Text.Regex library, which
12230 (a) is slow, and (b) does not properly handle unicode. This fixed
12231 some strange bugs, e.g. in parsing S-cedilla, and improved performance.
12233 + Replaced 'gsub' with a general list function 'substitute'
12234 that does not rely on Text.Regex.
12235 + Rewrote extractTagType in HTML reader so that it doesn't use
12237 + In Markdown reader, replaced email regex test with a custom email
12238 autolink parser (autoLinkEmail). Also replaced selfClosingTag regex
12239 with a custom function isSelfClosingTag.
12240 + Modified Docbook writer so that it doesn't rely on Text.Regex for
12241 detecting 'mailto' links.
12242 + Removed escapePreservingRegex and reamped entity-handling
12243 functions in Text.Pandoc.Shared and Text.Pandoc.CharacterReferences to
12244 avoid reliance on Text.Regex (see below on character reference
12247 * Renamed Text.Pandoc.Entities as Text.Pandoc.CharacterReferences.
12249 * Changed handling of XML entities. Entities are now parsed (and unicode
12250 characters returned) in the Markdown and HTML readers, rather than being
12251 handled in the writers. In HTML and Docbook writers, UTF-8 is now used
12252 instead of entities for characters above 128. This makes the HTML and
12253 DocBook output much more readable and more easily editable.
12255 + Removed sgmlHexEntity, sgmlDecimalEntity, sgmlNamedEntity, and
12256 sgmlCharacterEntity regexes from Text.Pandoc.Shared.
12257 + Renamed escapeSGMLChar to escapeCharForXML. Added escapeStringForXML.
12258 Moved both functions to Text.Pandoc.Writers.Docbook.
12259 + Added characterReference parser to Text.Pandoc.CharacterReferences.
12260 This parses a string and return a unicode character.
12261 + Rewrote decodeCharacterReferences to use the new parser instead of
12263 + Added new charRef parser for Markdown and HTML, which replaces the
12264 old 'entity' parser. Added '&' as a special character in Markdown reader.
12265 + Modified HTML and Markdown readers to call decodeEntities on all raw
12266 strings (e.g. authors, dates, link titles), to ensure that no
12267 unprocessed entities are included in the native representation of
12268 the document. (In the HTML reader, most of this work is done by a
12269 change in extractAttributeName.)
12270 + In XML and Markdown output, escape unicode nonbreaking space as ' ',
12271 since a unicode non-breaking space is impossible to distinguish visually
12272 from a regular space. (Resolves Issue #3.)
12273 + Removed encodeEntitiesNumerical.
12274 + Use Data.Map for entityTable and (new) reverseEntityTable, for a
12275 slight performance boost over the old association list.
12276 + Removed unneeded decodeEntities from 'str' parser in HTML and
12279 * Text.Pandoc.UTF8: Renamed encodeUTF8 to toUTF8, decodeUTF8 to
12280 fromUTF8, for clarity.
12282 * Replaced old haskell98 module names replaced by hierarchical module
12283 names, e.g. List by Data.List. Removed haskell98 from dependencies
12284 in pandoc.cabal, and added mtl (needed for state monad). Substituted
12287 * Refactored and cleaned up character escaping in writers, using
12288 backslashEscapes and escapeStringUsing functions.
12290 * Instead of adding "\n\n" to the end of an input string in Main.hs,
12291 this is now done in the readers. This makes the libraries behave
12292 the way you'd expect from the pandoc program. Resolves Issue #10.
12294 * URLs and email addresses in autolinks are now typeset as Code.
12296 * In Main.hs, changed putStr to putStrLn -- mainly because MacOS X
12297 doesn't display the whole output unless there's a line ending.
12299 * Major code cleanup in all modules, for greater consistency, concision,
12304 + Fixed several bugs (extractTagType, attribute parsing).
12305 + Remove Null blocks in lists of blocks when possible.
12306 + Allow HTML comments as raw HTML inline.
12310 + Ordered list items may no longer begin with uppercase letters, or
12311 letters greater than 'n'. (This prevents first initials and page
12312 reference, e.g. 'p. 400', from being parsed as beginning lists.)
12313 Also, numbers beginning list items may no longer end with ')',
12314 which is now allowed only after letters. Note: These changes
12315 may cause documents to be parsed differently. Users should take
12317 + Changed autoLink parsing to conform better to Markdown.pl's
12318 behavior. `<google.com>` is not treated as a link, but
12319 `<http://google.com>`, `<ftp://google.com>`, and
12320 `<mailto:google@google.com>` are.
12321 + Cleaned up handling of embedded quotes in link titles. Now these are
12322 stored as a '"' character, not as '"'.
12323 + Use lookAhead parser for the 'first pass' (looking for reference keys),
12324 instead of parsing normally, then using setInput to reset input. This
12325 yields a slight performance boost.
12326 + Fixed several bugs in smart quote recognition.
12327 + Fixed bug in indentSpaces (which didn't properly handle
12328 cases with mixed spaces and tabs).
12329 + Consolidated 'text', 'special', and 'inline' into 'inline'.
12330 + Fixed bug which allowed URL and title to be separated by multiple blank
12331 lines in links and reference keys. They can be on separate lines but
12332 can't have blank lines between them.
12333 + Correctly handle bracketed text inside inline footnotes and links,using
12334 new function inlinesInBalanced. Resolves Issue #14.
12335 + Fixed bug in footnotes: links in footnotes were not being
12336 processed. Solution: three-stage parse. First, get all the
12337 reference keys and add information to state. Next, get all the
12338 notes and add information to state. (Reference keys may be needed
12339 at this stage.) Finally, parse everything else.
12340 + Replaced named constants like 'emphStart' with literals.
12341 + Removed an extra occurance of escapedChar in definition of inline.
12345 + Allow the URI in a RST hyperlink target to start on the line
12346 after the reference key.
12347 + Added 'try' in front of 'string', where needed, or used a different
12348 parser. This fixes a bug where ````` would not be correctly parsed as
12350 + Fixed slow performance in parsing inline literals in RST reader. The
12351 problem was that ``#`` was seen by 'inline' as a potential link or image.
12352 Fix: inserted 'notFollowedBy (char '`')' in link parsers.
12354 + Use lookAhead instead of getInput/setInput in RST reader. Removed
12355 unneeded getState call, since lookAhead automatically saves and
12356 restores the parser state.
12357 + Allow hyperlink target URIs to be split over multiple lines, and
12358 to start on the line after the reference. Resolves Issue #7.
12359 + Fixed handling of autolinks.
12363 + Replaced 'choice [(try (string ...), ...]' idiom with 'oneOfStrings',
12365 + Added clauses for tilde and caret. Tilde is \ensuremath{\sim}, and
12366 caret is \^{}, not \^ as before.
12367 + Added parsing for \url.
12368 + Parse \texttt{} as code, provided there's nothing fancy inside.
12372 + Modified HTML writer to use the Text.XHtml library. This results
12373 in cleaner, faster code, and it makes it easier to use Pandoc in
12374 other projects, like wikis, which use Text.XHtml. Two functions are
12375 now provided, writeHtml and writeHtmlString: the former outputs an
12376 Html structure, the latter a rendered string. The S5 writer is also
12377 changed, in parallel ways (writeS5, writeS5String).
12378 + The Html header is now written programmatically, so it has been
12379 removed from the 'headers' directory. The S5 header is still
12380 needed, but the doctype and some of the meta declarations have
12381 been removed, since they are written programatically. This change
12382 introduces a new dependency on the xhtml package.
12383 + Fixed two bugs in email obfuscation involving improper escaping
12384 of '&' in the `<noscript>` section and in `--strict` mode. Resolves
12386 + Fixed another bug in email obfuscation: If the text to be obfuscated
12387 contains an entity, this needs to be decoded before obfuscation.
12388 Thanks to thsutton for the patch. Resolves Issue #15.
12389 + Changed the way the backlink is displayed in HTML footnotes.
12390 Instead of appearing on a line by itself, it now generally
12391 appears on the last line of the note. (Exception: when the
12392 note does not end with a Plain or Para block.) This saves space
12394 + Added automatic unique identifiers to headers:
12395 - The identifier is derived from the header via a scheme
12396 documented in README.
12397 - WriterState now includes a list of header identifiers and a table
12398 of contents in addition to notes.
12399 - The function uniqueIdentifiers creates a list of unique identifiers
12400 from a list of inline lists (e.g. headers).
12401 - This list is part of WriterState and gets consumed by blockToHtml
12402 each time a header is encountered.
12403 + Include CSS for .strikethrough class in header only if strikethrough
12404 text appears in the document.
12405 + If the 'strict' option is specified, elements that do not appear in
12406 standard markdown (like definition lists) are passed through as
12408 + Simplified treatment of autolinks, using pattern matching instead of
12413 + Links in markdown output are now printed as inline links by default,
12414 rather than reference links. A --reference-links option has been added
12415 that forces links to be printed as reference links. Resolves Issue #4.
12416 + Use autolinks when possible. Instead of `[site.com](site.com)`,
12421 + Rewrote to use the State monad. The preamble now includes only those
12422 packages that are actually required, given the document's content.
12423 Thus, for example, if strikeout is not used, ulem is not required.
12424 Modified LaTeXHeader accordingly.
12425 + Modified LaTeX writer to insert '\,' between consecutive quotes.
12426 + Removed unused function tableRowColumnWidths.
12427 + Simplified code for escaping special characters.
12428 + Leave extra blank line after \maketitle.
12429 + Include empty '\author{}' when no author specified to avoid LaTeX
12431 + Include fancyvrb code in header only if needed -- that is, only
12432 if there is actually code in a footnote.
12433 + Use \url{} for autolinks.
12434 + Include [mathletters] option in ucs package, so that basic unicode
12435 Greek letters will work correctly.
12437 * RST writer: Force blank line before lists, so that sublists will
12438 be handled correctly.
12440 * Docbook writer: Fixed a bug: email links with text, like
12441 [foo](me@bar.baz), were being incorrectly treated as autolinks.
12443 * Removed Text.ParserCombinators.Pandoc and moved all its functions to
12444 Text.Pandoc.Shared.
12446 * Text.Pandoc.Shared:
12448 + Added defaultWriterOptions.
12449 + Added writerTableOfContents to WriterOptions.
12450 + Added writerIgnoreNotes option to WriterOptions. This is needed
12451 for processing header blocks for a table of contents, since notes on
12452 headers should not appear in the TOC.
12453 + Added prettyprinting for native Table format.
12454 + Removed some unneeded imports.
12455 + Moved escape and nullBlock parsers from
12456 Text.ParserCombinators.Pandoc, since the latter is for
12457 general-purpose parsers that don't depend on Text.Pandoc.Definition.
12458 + Moved isHeaderBlock from Text.Pandoc.Writers.HTML.
12459 + Moved Element, headerAtLeast, and hierarchicalize from Docbook
12460 writer, because HTML writer now uses these in constructing a table
12462 + Added clauses for new inline elements (Strikeout, Superscript,
12463 Subscript) to refsMatch.
12464 + Removed backslashEscape; added new functions escapeStringUsing and
12466 + Moved failIfStrict from markdown reader, since it is now used also
12467 by the HTML reader.
12468 + Added a 'try' to the definition of indentSpaces.
12469 + In definition of 'reference', added check to make sure it's not a note
12471 + Added functions: camelCaseToHyphenated, toRomanNumeral,
12472 anyOrderedListMarker, orderedListmarker, orderedListMarkers,
12473 charsInBalanced', withHorizDisplacement, romanNumeral
12474 + Fixed a bug in the anyLine parser. Previously it would parse an empty
12475 string "", but it should fail on an empty string, or we get an error
12476 when it is used inside "many" combinators.
12477 + Removed followedBy' parser, replacing it with the lookAhead parser from
12479 + Added some needed 'try's before multicharacter parsers, especially in
12481 + Removed the 'try' from the 'end' parser in 'enclosed', so that
12482 'enclosed' behaves like 'option', 'manyTill', etc.
12483 + Added lineClump parser, which parses a raw line block up to and
12484 including any following blank lines.
12485 + Renamed parseFromStr to parseFromString.
12486 + Added a 'try' to the 'end' parser in 'enclosed'. This makes errors in
12487 the use of 'enclosed' less likely. Removed some now-unnecessary 'try's
12489 + Removed unneeded 'try' in blanklines.
12490 + Removed endsWith function and rewrote calling functions to use
12491 isSuffixOf instead.
12492 + Added >>~ combinator.
12493 + Fixed bug in normalizeSpaces: Space:Str "":Space should compress to
12496 * Refactored runtests.pl; added separate tests for tables.
12500 + Added -asxhtml flag to tidy in html2markdown. This will
12501 perhaps help the parser, which expects closing tags.
12502 + Modified markdown2pdf to run pdflatex a second time if --toc or
12503 --table-of-contents was specified; otherwise the table of
12504 contents won't appear.
12505 + Modified markdown2pdf to print a helpful message if the 'ulem'
12506 LaTeX package is required and not found.
12508 * Changes to build process:
12510 + Dropped support for compilation with GHC 6.4. GHC 6.6 or higher
12512 + Removed cabalize and Pandoc.cabal.in. The repository now contains
12513 pandoc.cabal itself.
12514 + Pandoc.cabal has been changed to pandoc.cabal, because HackageDB
12515 likes the cabal file to have the same name as the tarball.
12516 + Expanded and revised the package description in pandoc.cabal.
12517 Revised the package synopsis.
12518 + The tarball built by 'make tarball' now contains files built from
12519 templates (including man pages and shell scripts), so pandoc can
12520 be built directly using Cabal tools, without preprocessing.
12521 + Executable binaries are now stripped before installing.
12522 + Man pages are now generated from markdown sources, using pandoc's
12524 + Use HTML version of README (instead of RTF) in Mac OS X installer.
12525 + Instead of testing for the existence of a pandoc symlink in build-exec,
12530 + Updated README and man pages with information on new features.
12531 + Updated INSTALL instructions with some useful clarifications and
12533 + Updated web content.
12535 * Added FreeBSD port.
12541 + Changed pandoc's Build-Depends to include libghc6-mtl-dev and
12542 libghc6-xhtml-dev. Removed libghc6-html-dev.
12543 + Suggest texlive-latex-recommended | tetex-extra instead of
12544 tetex-bin. This brings in fancyvrb and unicode support.
12546 -- Recai Oktaş <roktas@debian.org> Tue, 16 Jan 2007 00:37:21 +0200
12548pandoc (0.3) unstable; urgency=low
12550 [ John MacFarlane ]
12552 * Changes in pandoc options:
12554 + Allow options to follow or precede arguments.
12555 + Changed '--smartypants' to '--smart' and adjusted symbols accordingly.
12556 + Added '--strict' option.
12557 + Added '-o/--output' option.
12558 + Added '--dump-args' and '--ignore-args' options (for use in wrappers).
12559 + Modified '-v' and '-h' output to go to STDERR, not STDOUT, and return
12560 error conditions. This is helpful for writing wrappers.
12561 + Added copyright message to '-v' output, modeled after FSF messages.
12562 + Reformatted usage message so that it doesn't wrap illegibly.
12563 + Removed extra blanks after '-h' and '-D' output.
12565 * Added docbook writer.
12567 * Added implicit setting of default input and output format based
12568 on input and output filename extensions. These defaults are
12569 overridden if explicit input and output formats are specified using
12570 '-t', '-f', '-r', or '-w' options. Documented in pandoc(1) man page
12573 * Allow ordered list items to begin with (single) letters, as well
12574 as numbers. The list item marker may now be terminated either by
12575 '.' or by ')'. This extension to standard markdown is documented
12578 * Revised footnote syntax. (See README for full details.) The
12579 '[^1]' format now standard in markdown extensions is supported,
12580 as are inline footnotes with this syntax: `^[My note.]`.
12581 The earlier footnote syntax `^(1)` is no longer supported.
12583 * Improved HTML representation of footnotes. All footnotes
12584 are now auto-numbered and appear in an ordered list at the
12585 end of the HTML document. Since the default appearance is now
12586 acceptable, the old footnote styles have been removed from the
12591 + Fixed a serious bug in the markdown, LaTeX, and RST readers.
12592 These readers ran 'runParser' on processed chunks of text to handle
12593 embedded block lists in lists and quotation blocks. But then
12594 any changes made to the parser state in these chunks was lost,
12595 as the state is local to the parser. So, for example, footnotes
12596 didn't work in quotes or list items. The fix: instead of calling
12597 runParser on some raw text, use setInput to make it the input, then
12598 parse it, then use setInput to restore the input to what it was
12599 before. This is shorter and more elegant, and it fixes the problem.
12600 + Fixed bug in notFollowedBy' combinator (adding 'try' before
12601 'parser'). Adjusted code that uses this combinator accordingly.
12602 + Fixed bug in RTF writer that caused improper indentation on
12603 footnotes occurring in indented blocks like lists.
12604 + Fixed parsing of metadata in LaTeX reader. Now the title, author,
12605 and date are parsed correctly. Everything else in the preamble
12607 + Modified escapedChar in LaTeX reader to allow a '\' at the end of a
12608 line to count as escaped whitespace.
12609 + Modified LaTeX reader to produce inline links rather than reference
12610 links. Otherwise, links in footnotes aren't handled properly.
12611 + Fixed handling of titles in links in Markdown reader, so that
12612 embedded quotation marks are now handled properly.
12613 + Fixed Markdown reader's handling of embedded brackets in links.
12614 + Fixed Markdown reader so that it only parses bracketed material
12615 as a reference link if there is actually a corresponding key.
12616 + Revised inline code parsing in Markdown reader to conform to
12617 markdown standard. Now any number of `s can begin inline code,
12618 which will end with the same number of `s. For example, to
12619 have two backticks as code, write ``` `` ```. Modified Markdown
12620 writer accordingly.
12621 + Fixed bug in text-wrapping routine in Markdown and RST writers.
12622 Now LineBreaks no longer cause wrapping problems.
12623 + Supported hexadecimal numerical entity references as well as
12625 + Fixed bug in Markdown reader's handling of underscores and other
12626 inline formatting markers inside reference labels: for example,
12627 in '[A_B]: /url/a_b', the material between underscores was being
12628 parsed as emphasized inlines.
12629 + Changed Markdown reader's handling of backslash escapes so that
12630 only non-alphanumeric characters can be escaped. Strict mode
12631 follows Markdown.pl in only allowing a select group of punctuation
12632 characters to be escaped.
12633 + Modified HTML reader to skip a newline following a `<br>` tag.
12634 Otherwise the newline will be treated as a space at the beginning
12637 * Made handling of code blocks more consistent. Previously, some
12638 readers allowed trailing newlines, while others stripped them.
12639 Now, all readers strip trailing newlines in code blocks. Writers
12640 insert a newline at the end of code blocks as needed.
12642 * Modified readers to make spacing at the end of output more consistent.
12644 * Minor improvements to LaTeX reader:
12646 + '\thanks' now treated like a footnote.
12647 + Simplified parsing of LaTeX command arguments and options.
12648 commandArgs now returns a list of arguments OR options (in
12649 whatever order they appear). The brackets are included, and
12650 a new stripFirstAndLast function is provided to strip them off
12651 when needed. This fixes a problem in dealing with \newcommand
12652 and \newenvironment.
12654 * Revised RTF writer:
12656 + Default font is now Helvetica.
12657 + An '\f0' is added to each '\pard', so that font resizing works
12660 * Moved handling of "smart typography" from the writers to the Markdown
12661 and LaTeX readers. This allows great simplification of the writers
12662 and more accurate smart quotes, dashes, and ellipses. DocBook can
12663 now use `<quote>`. The '--smart' option now toggles an option in
12664 the parser state rather than a writer option. Several new kinds
12665 of inline elements have been added: Quoted, Ellipses, Apostrophe,
12668 * Changes in HTML writer:
12670 + Include title block in header even when title is null.
12671 + Made javascript obfuscation of emails even more obfuscatory,
12672 by combining it with entity obfuscation.
12674 * Changed default ASCIIMathML text color to black.
12678 + Added --strip-trailing-cr option to diff in runtests.pl, for
12679 compatibility with Windows.
12680 + Added regression tests with footnotes in quote blocks and lists.
12682 * Makefile changes:
12684 + osx-pkg target creates a Mac OS X package (directory). New osx
12685 directory contains files needed for construction of the package.
12686 + osx-dmg target creates a compressed disk image containing the package.
12687 + win-pkg target creates Windows binary package.
12688 + tarball target creates distribution source tarball.
12689 + website target generates pandoc's website automatically, including
12690 demos. New 'web' directory containts files needed for construction
12691 of the website (which will be created as the 'pandoc' subdirectory
12693 + Makefile checks to see if we're running Windows/Cygwin; if so,
12694 a '.exe' extension is added to each executable in EXECS.
12696 * Removed all wrappers except markdown2pdf and html2markdown.
12698 * Added new wrapper hsmarkdown, to be used as a drop-in replacement
12699 for Markdown.pl. hsmarkdown calls pandoc with the '--strict'
12700 option and disables other options.
12702 * Added code to html2markdown that tries to determine the character
12703 encoding of an HTML file, by parsing the "Content-type" meta tag.
12705 + If the encoding can't be determined, then if the content is local,
12706 the local encoding is used; if it comes from a URL, UTF-8 is used
12708 + If input is from STDIN, don't try to determine character encoding.
12709 + Encoding can be specified explicitly using '-e' option.
12711 * Improved warning messages in wrappers:
12713 + Print warning if iconv not available
12714 + More user-friendly error messages in markdown2pdf, when
12719 + Renamed 'Text/Pandoc/HtmlEntities' module to
12720 'Text/Pandoc/Entities'. Also changed function names so as
12721 not to be HTML-specific.
12722 + Refactored SGML string escaping functions from HTML and Docbook
12723 writers into Text/Pandoc/Shared. (escapeSGML, stringToSGML)
12724 + Removed 'BlockQuoteContext' from ParserContext, as it isn't
12726 + Removed splitBySpace and replaced it with a general, polymorphic
12728 + Refactored LaTeX reader for clarity (added isArg function).
12729 + Converted some CR's to LF's in src/ui/default/print.css.
12730 + Added license text to top of source files.
12731 + Added module data for haddock to source files.
12732 + Reformatted code for consistency.
12734 * Rewrote documentation and man pages. Split README into INSTALL
12737 * Split LICENSE into COPYING and COPYRIGHT.
12739 * Removed TODO, since we now maintain ToDo on the wiki.
12741 * Made COPYRIGHT in top level a symlink to debian/copyright, to avoid
12746 * Revamped build process to conform to debian standards and created
12747 a proper debian package. Closes: #391666.
12749 * Modified build process to support GHC 6.6.
12751 + The package can still be compiled using GHC 6.4.2, though because
12752 of dependencies the "make deb" target works only with GHC 6.6+.
12753 + The script 'cabalize' is used to create an appropriate
12754 'Pandoc.cabal' from 'Pandoc.cabal.in', depending on the GHC and
12757 * Refactored template processing (fillTemplates.pl).
12759 * Modified wrapper scripts to make them more robust and portable.
12760 To avoid code duplication and ensure consistency, wrappers are
12761 generated via a templating system from templates in src/wrappers.
12763 + Wrappers now accept multiple filenames, when appropriate.
12764 + Spaces and tabs allowed in filenames.
12765 + getopts shell builtin is used for portable option parsing.
12766 + Improved html2markdown's web grabber code, making it more robust,
12767 configurable and verbose. Added '-e', '-g' options.
12769 -- Recai Oktaş <roktas@debian.org> Fri, 05 Jan 2007 09:41:19 +0200
12771pandoc (0.2) unstable; urgency=low
12773 * Fixed unicode/utf-8 translation
12775 -- John MacFarlane <jgm@berkeley.edu> Mon, 14 Aug 2006 00:00:00 -0400
12777pandoc (0.1) unstable; urgency=low
12779 * Initial creation of debian package
12781 -- 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