3 * Added missing commonmark template.
5 * Improved try pandoc (moved button, show raw command).
9 * Allow compilation with syb 0.5.*.
11 * Custom writer: fixed some compiler warnings for ghc < 7.10.
15 * Allow building with hslua 0.4.
19 * Fixed problem with building of `reference.docx` and `reference.odt`
20 when the `embed_data_files` flag is used. Instead of having a phase
21 of the build where `reference.docx` and `reference.odt` are created
22 from their constituent data files, we now construct these archives
23 from their constituents when a `docx` or `odt` is built. The
24 constituent files have been moved from `extra-source-files` to
25 `data-files`, and `reference.docx` and `reference.odt` have been
26 removed. Users can create their own `reference.docx` or
27 `reference.odt` by using pandoc to create a simple `docx` or `odt`.
28 `make-reference-files.hs` has been removed, simplifying the build
31 * Don't include generated man pages in extra-source-files (#2189).
33 * Bumped upper bound for aeson.
35 * ConTeXt writer: create internal link anchors for Div elements with
36 identifiers. (This is needed for linked citations to work.)
42 * Added `commonmark` as input and output format.
44 * Added `--verbose` flag for debugging output in PDF production (#1840,
47 * Allow wildcards in `--epub-embed-font` arguments (#1939).
49 * Added `--latex-engine-opt` option (#969, #1779, Sumit Sahrawat).
51 * Added `shortcut_reference_links` extension (Konstantin Zudov, #1977).
52 This is enabled by default for those markdown flavors that
53 support reading shortcut reference links, namely: `markdown`,
54 `markdown_strict`, `markdown_github`, `markdown_php`.
55 If the extension is enabled, the reader parses shortcut reference
56 links like `[foo]`, and the writer creates such links unless doing
57 so would cause problems. Users of markdown flavors that support
58 shortcut reference links should not notice a difference in reading
59 markdown, but the markdown pandoc produces may differ.
60 If shortcut links are not desired, the extension can be disabled
65 * `--toc` is now supported for `docx` output (#458, Nikolay Yakimov).
66 A "dirty" TOC is created at the beginning of document.
67 It can be regenerated after the document has been opened.
69 * An implicit `--filter pandoc-citeproc` is now triggered only when the
70 `--bibliography` option is used, and not when the `bibliography`
71 field in metadata is specified (#1849).
75 + Reference links with `implicit_header_references` are no longer
76 case-sensitive (#1606).
77 + Definition lists no longer require indentation for first line (#2087).
78 Previously the body of the definition (after the `:` or `~` marker)
79 needed to be in column 4. This commit relaxes that requirement,
80 to better match the behavior of PHP Markdown Extra. So, now
81 this is a valid definition list:
85 + Resolve a potentially ambiguity with table captions:
95 Is "bar" a definition, or the caption for the table? We'll count
96 it as a caption for the table.
97 + Disallow headerless pipe tables (#1996), to conform to GFM and PHP
98 Markdown Extra. Note: If you have been using headerless pipe tables,
99 this change may cause existing tables to break.
100 + Allow pipe tables with header but no body (#2017).
101 + Allow a digit as first character of a citation key (Matthias Troffaes).
102 See https://github.com/jgm/pandoc-citeproc/issues/97
106 + Don't limit includes to `.tex` extension (#1882).
107 If the extension is not `.tex`, it must be given explicitly in
108 the `\input` or `\include`.
112 + Allow numbering in the style file. This allows inherited styles
113 with numbering (lists) (Jesse Rosenthal).
117 + Support smart punctuation (Craig Bosma).
118 + Drop trees with a :noexport: tag (Albert Krewinkel). Trees having a
119 `:noexport:` tag set are not exported. This mirrors org-mode.
120 + Put header tags into empty spans (Albert Krewinkel, #2160).
121 Org mode allows headers to be tagged: `* Headline :TAG1:TAG2`.
122 Instead of being interpreted as part of the headline, the tags are now
123 put into the attributes of empty spans. Spans without textual content
124 won't be visible by default, but they are detectable by filters. They
125 can also be styled using CSS when written as HTML.
126 + Generalize code block result parsing (Albert Krewinkel).
127 Previously, only code blocks were recognized as result blocks;
128 now, any kind of block can be the result.
130 * Append newline to the LineBreak in Dokuwiki, HTML, EPUB,
131 LaTeX, MediaWiki, OpenDocument, Texinfo writers (#1924, Tim Lin).
135 + Add "inline" or "display" class to math spans (#1914).
136 This allows inline and display math to be styled differently.
137 + Include raw latex blocks if `--mathjax` specified (#1938).
138 + Require highlighting-kate >= 0.5.14 (#1903).
139 This ensures that all code blocks will be wrapped in a `div`
140 with class `sourceCode`. Also, the default highlighting CSS
141 now adds `div.sourceCode { x-overflow: auto; }`, which means
142 that code blocks (even with line numbers) will acquire a scroll
143 bar on screens too small to display them (e.g. mobile phones).
144 See also jgm/highlighting-kate#65.
148 + Use a declaration for tight lists (Jose Luis Duran, Joseph
149 Harriott). Previously, pandoc hard-coded some commands to make
150 tight lists in LaTeX. Now we use a custom command instead,
151 allowing the styling to be changed in a macro in the header.
152 (Note: existing templates may need to be modified to include
153 the definition of this macro. See the current template.)
154 + Beamer output: if the header introducing a slide has the
155 class `fragile`, add the `[fragile]` option to the slide (#2119).
159 + Use `File:` instead of the deprecated `Image:` for images and
160 other media files (Greg Rundlett).
164 + Render a `Div (id,_,_) [Para _]` element as a `para` element
165 with an `id` attribute. This makes links to citations work in
166 DocBook with pandoc-citeproc.
170 + Normalize headings to sequential levels (Nikolay Yakimov).
171 This is pretty much required by docutils.
172 + Treat headings in block quotes, etc as rubrics (Nikolay Yakimov).
173 + Better handling of raw latex inline (#1961). We use
174 `` :raw-latex:`...` `` and add a definition for this role to
179 + Remove `linear=no` from cover `itemref` (#1609).
180 + Don't use `sup` element for epub footnotes (#1995).
181 Instead, just use an a element with class `footnoteRef`.
182 This allows more styling options, and provides better results
183 in some readers (e.g. iBooks, where anything inside the a
184 tag breaks popup footnotes).
185 + Take TOC title from `toc-title` metadata field.
189 + Implemented `FirstParagraph` style (Jesse Rosenthal).
190 Following the ODT writer, we add the `FirstParagraph` style to the
191 first text paragraph following an image, blockquote, table, heading,
192 or beginning of document. This allows it to be styled differently.
193 The default is for it to be the same as `Normal`.
194 + Added `BodyText` style (Jesse Rosenthal).
195 We apply a `BodyText` style to all unstyled paragraphs. This is,
196 essentially, the same as `Normal`, except that since not everything
197 inherits from `BodyText` (the metadata won't, for example, or
198 the headers or footnote numbers), we can change the text in the body
199 without having to make exceptions for everything. If we do want to
200 change *everything*, we can still do it through `Normal`.
201 + Altered `Blockquote` style slightly (Jesse Rosenthal).
202 Since `BlockQuote` derives from `BodyText`, we just want to specify
203 by default that it won't indent, regardless of what `BodyText` does.
204 Note that this will not produce any visible difference in the default
206 + Take TOC title from `toc-title` metadata field (Nikolay Yakimov).
207 + Added a style to figure images (Nikolay Yakimov).
208 Figures with empty captions use style `Figure`.
209 Figures with nonempty captions use style `Figure with Caption`, which
210 is based on `Figure`, and additionally has `keepNext` set.
214 + Added figure captions (Nikolay Yakimov). The following styles are
216 `Figure` -- for figure with empty caption),
217 `FigureWithCaption` (based on `Figure`) -- for figure with caption,
218 `FigureCaption` (based on `Caption`) -- for figure captions.
219 Also, `TableCaption` (based on `Caption`) is used for table captions.
223 * New `Text.Pandoc.Error` module with `PandocError` type
226 * All readers now return `Either PandocError Pandoc` instead of `Pandoc`
227 (Matthew Pickering). This allows better handling of errors.
229 * Added `Text.Pandoc.Writers.CommonMark`, exporting `writeCommonMark`.
231 * Added `Text.Pandoc.Readers.CommonMark`, exporting `readCommonMark`.
233 * Derive `Data` and `Typeable` instances for `MediaBag`, `Extension`,
234 `ReaderOptions`, `EPUBVersion`, `CiteMethod`, `ObfuscationMethod`,
235 `HTMLSlideVariant`, `TrackChanges`, `WriterOptions` (Shabbaz
238 * New `Ext_shortcut_reference_links` constructor for `Extension`
245 + Allow smart `'` after inline math (#1909, Nikolay Yakimov).
246 + Check for tex macros after indented code (#1973).
247 + Rewrote `charsInBalancedBrackets` for efficiency.
248 + Make sure a closing `</div>` doesn't get included in a
249 definition list item (#2127).
250 + Don't parse bracketed text as citation if it might be a link,
251 image, or footnote (Nikolay Yakimov).
252 + Require space after key in mmd title block (#2026, Nikolay
253 Yakimov). Require space after key-value delimiter colon in mmd title
255 + Require nonempty value in mmd title block (Nikolay Yakimov).
256 + Disable all metadata block extensions when parsing
257 metadata field values (#2026, Nikolay Yakimov). Otherwise we
258 could get a mmd title block inside YAML metadata, for example.
262 + Improve self-closing tag detection in `htmlInBalanced` (#2146).
263 + Handle tables with `<th>` in body rows (#1859, mb21).
264 + Fixed `htmlTag` (#1820). If the tag parses as a comment, we check
265 to see if the input starts with `<!--`. If not, it's bogus comment
266 mode and we fail `htmlTag`.
267 + Handle `base` tag; if it has an `href` value, this is added to
268 all relative URLs in links and images.
272 + Look inside "info" elements for section titles (#1931).
276 + Parse images in deprecated vml format (Jesse Rosenthal).
277 + Allow sub/superscript verbatims (Jesse Rosenthal).
278 Verbatim usually shuts off all other run styles, but we don't want it
279 to shut off sub/superscript.
283 + Handle `tabular*` environment (#1850).
284 Note that the table width is not actually parsed or taken into
285 account, but pandoc no longer chokes on it.
286 + Ignore options in `\lstinline` rather than raising error (#1997).
287 + Add some test cases for simple tables (Mathias Schenner).
288 + Handle valign argument in tables (Mathias Schenner) (currently
289 we just ignore this).
290 + Allow non-empty colsep in tables (Mathias Schenner).
291 The `tabular` environment allows non-empty column separators
292 with the "@{...}" syntax. Previously, pandoc would fail to
293 parse tables if a non-empty colsep was present. With this
294 commit, these separators are still ignored, but the table gets
295 parsed. A test case is included.
296 + Recognize `\newpage` as a block command.
297 + Allow block content in \title{} (#2001).
298 + Check for block-level newcommand aliases in blockCommand (Nikolay
300 + Guard against paragraph starting with inline macro (Nikolay Yakimov).
301 + Properly gobble spaces after `\\` (#2007).
305 + Handle newlines in table cells, and empty cells (#1919).
309 + Allow image links with non-image targets (Hans-Peter Deifel).
310 This matches behavior of Org-Mode for links like
311 `[[http://example.com][https://www.haskell.org/static/img/logo.png]]`.
315 + Don't print empty id attributes (thanks to Steve Horne).
319 + Fixed list-style-type for numbered example lists.
320 Should be "decimal," not "example" (#1902).
321 + Do not omit missing `alt` attribute on `img` tag (#1131,
323 + Allow multiple colgroups in table (#2122).
324 + In revealjs, ensure that lists in speaker notes don't add "fragment"
325 classes, which can cause additional keypresses to be needed to
326 advance a slide (#1394).
330 + Don't escape `$` in URL (#1913).
331 + Don't use listings in headers (Matthew Pickering, #1963).
332 + Recognize book documentclass if set in metadata (#1971).
333 This sets `--chapters` implicitly if the documentclass in metadata
334 is a book documentclass. Previously this was done only if a book
335 documentclass was set in a variable.
336 + Add a `\label` in `\hyperdef` for Div, Span (or links don't work).
337 + Make `mainlang` work when `lang` is in metadata (#2174).
341 + Fix wrapping by using breakable spaces (Tim Lin).
345 + Fixed toc depth in RST writer. Previously the depth was being
346 rendered as a floating point number with a decimal point.
350 + Improved escaping (#2086). `<` should not be escaped as `\<`, for
351 compatibility with original Markdown. We now escape `<` and `>`
352 with entities. Also, we now backslash-escape square brackets.
353 + Avoid introducing spurious list items through wrapping (#1946).
354 + Don't emit span tags if plain or raw HTML disabled.
358 + Convert spaces to underscores in wikilink URL (#1982), like MediaWiki.
362 + Insert some needed blank lines (#1860).
363 + Avoid wrapping after list marker (#1858).
367 + Properly handle internal links to IDs in spans, divs (#1884).
368 + Use plain writer for metadata dc: fields (#2121).
369 This gives better results when we have, e.g. multiple paragraphs.
370 Note that tags aren't allowed in these fields.
371 + Properly handle image links without an extension (#1855).
372 + Improved chapter splitting and internal link rewriting (#1887,
373 #2162, #2163). This will ensure that internal links work and
374 that the references section produced by pandoc-citeproc is
376 + Fixed handling of svg images (#2183).
380 + Better handling of raw blocks and inlines (#1951).
381 Previously these were always escaped and printed verbatim.
382 Now they are ignored unless the format is `icml`, in which
383 case they are passed through unescaped.
384 + Fixed image URIs in ICML output (gohai).
388 + Raise error if loadstring returns an error status.
389 + Raise `PandocLuaException` instead of using 'error'.
390 Eventually we'll change the return type so that no exception
391 is involved, but at least this can be trapped.
392 + Use UTF-8 aware bytestring conversion.
393 + Set foreign encoding to UTF-8 (Nikolay Yakimov, #2101, #1634).
394 Also factored out ByteString, since it's only used as an intermediate
399 + Copy hyphenation settings from reference.docx (Nikolay Yakimov).
400 + Filter out illegal XML characters (#1992, Matthew Pickering).
401 + Added `noProof` to docx syntax highlighting `SourceCode` style.
402 + Added footnotes id -1 and 0 (Jesse Rosenthal).
403 Word uses, by default, footnotes with id -1 and 0 for separators. If a
404 user modifies `reference.docx`, they will end up with a `settings.xml`
405 file that references these footnotes, but no such footnotes in the
406 document. This will produce a corruption error. Here we add these to the
407 document and `settings.xml` file, so future modifications won't break
409 + Handle lists correctly inside table cells (Jesse Rosenthal).
410 Previously we didn't transform lists inside table cells.
411 + Set firstRow information in tables (Nikolay Yakimov).
412 + Don't replace `SourceCode` style in `reference.docx` if it is defined
413 there (Nikolay Yakimov, #1872). If `--no-highlight` specified, remove
414 any `SourceCode` and `*Tok` styles in `reference.docx`.
415 + Attempt to match international style names (#1607, Nikolay Yakimov).
416 + Set these styles as custom (Nikolay Yakimov): `Author`, `Abstract`,
417 `Compact`, `Image Caption`, `Table Caption`, `Definition Term`,
418 `Definition`, `First Paragraph`.
419 + Rename these styles to correspond with Word `Normal.dotm` (Nikolay
420 Yakimov): `Block Quote -> Block Text`, `Link -> Hyperlink`,
421 `Footnote Ref -> Footnote Reference`.
422 + Added `Caption` style (Nikolay Yakimov).
423 + Changed these styles' inheritance (Nikolay Yakimov):
424 `Image Caption <- Caption`, `Table Caption <- Caption`.
425 + Remove `SourceCode` style from `reference.docx` (#1872).
426 This is added automatically by the docx writer.
427 + Added toc heading style to `reference.docx` (Nikolay Yakimov).
431 + Don't suggest "Try xelatex" if xelatex already in use (mb21, #1832).
432 + More comprehensible errors on image conversion (#2067).
433 EPS can't be supported without shelling out to something like
434 ImageMagick, but at least we can avoid mysterious error messages.
436 * `Text.Pandoc.Shared`:
438 + Make safeRead safe (#1801, Matthew Pickering).
439 + Addded `mapLeft`, `hush` (Matthew Pickering).
441 * `Text.Pandoc.Pretty`:
443 + Remove partial function (Matthew Pickering).
445 * `Text.Pandoc.SelfContained`:
447 + Add `;charset=utf-8` to script mime type if missing (#1842).
448 + Improved building of data URIs (#1940). Now base64 is used except
449 for `text/*` mime types.
450 + `cssURLs` no longer tries to fetch fragment URLs (#2121).
451 + Properly handle data URIs in css urls (#2129).
452 Use a proper CSS parser (adds dependency on `text-css`).
454 * `Text.Pandoc.UTF8`:
456 + Better handling of bare CRs in input files (#2132).
457 Previously we just stripped them out; now we convert
458 other line ending styles to LF line endings.
460 * `Text.Pandoc.ImageSize`:
462 + Fixed some exif header parsing bugs (#1834).
463 + Make imageSize return an Either, not a Maybe (#1834).
464 Use `runGetOrFail` (with `binary >= 0.7`) to return `Left` on
465 parse failure (rather than `error`).
466 + Improved warnings when image size can't be determined.
467 + Removed error landmines (Matthew Pickering).
469 * Added woff2 to MIME types (Alfred Wechselberger).
471 * pandoc: When a binary input format is used, warn that file
472 arguments past the first one are being ignored (Matthew Pickering).
478 + Degrade gracefully if `\paragraph` not defined.
479 + Include `grffile` together with `graphicx` (#2074).
480 This properly handles filenames containing spaces and dots.
481 + Redefine `\paragraph`, `\subparagraph`... to behave more
482 like section headers (#1658).
483 + Import hyperref before polyglossia to avoid an error with xelatex,
484 "please load package hyperref before bidi package" (Nick Bart).
485 + Added `toccolor` variable to control link color in toc (Kaixhin).
487 * LaTeX, Beamer templates:
489 + Provide `\tightlist`, which is now used by the LaTeX writer.
490 + Use polyglossia in beamer (#85).
491 + Use `bibliography` instead of `biblio-files`
492 (#1661). Also use `\addbibresource` instead of `\bibliography` for
494 + Added `setotherlanguages` in polyglossia. This uses an `otherlang`
495 variable that is derived from a comma-separated list in `lang`;
496 the last language is `mainlang` and the others are `otherlang`.
500 + Use `div`, not `p`, for "rights" on title page.
501 + Added header-includes, include-before, include-after (#1987).
503 * OpenDocument template:
505 + Use `text:p` instead of `text:h` for title.
506 Using `text:h` causes problems with numbering. Closes #2059.
507 Thansk to @nkalvi for diagnosing this.
509 * reveal.js template:
511 + Link to non-minified css, js. The minified versions no longer
512 ship with the library.
513 + Correctly include style CSS (#1949).
514 + New configurable options options: `center`, `maxScale`, `slideNuber`
515 (Dmitry Smirnov, pandoc-templates#89).
516 + Moved custom CSS after theme. This allows custom CSS to modify
517 themes, instead of being replaced by them.
518 + Allow `center` to be set to false.
520 [under the hood improvements]
522 * Removed pre-built `reference.docx` and `reference.odt` (Nikolay
523 Yakimov). Instead the repository now includes the component text files,
524 and the zipped binaries are built from these using a helper
525 program, `make-reference-files`. This should make maintenance of
526 these components easier going forward.
528 * `Text.Pandoc.Parsing`:
530 + Added new `<+?>` combinator (Nikolay Yakimov).
531 + Added `stateHeaderKeys` to `ParserState`.
533 * `make_deb.sh` fixes:
535 + Detect architecture.
536 + Add Installed-Size to debian package control file (#1900).
537 + Use `fakeroot` to get permissions right.
538 + Use `mkdir` and `cp` instead of `install`.
539 + Set permissions of directories to 755.
540 + Install in `/usr` rather than `/usr/local`.
541 + Compress man pages.
542 + Combine copyright files for `pandoc`, `pandoc-citeproc`.
544 * Added `Text.Pandoc.Compat.Locale` and `old-locale` flag
545 to assist with transition to `time` 1.5.
547 * Updated CONTRIBUTING.md with information about issue tags (Matthew
550 * Updated travis installs to the new sudo-less syntax (Tim Lin).
552 * Updated dependency version bounds.
554 * EPUB tests: don't use `joinPath`, which varies across platforms.
555 Instead, use a forward-slash to join paths, regardless of the
556 platform. This matches the way `MediaBag` now works.
558 * Clarify JSON input and output in usage message (Caleb McDaniel).
560 * Improved INSTALL instructions.
562 * Always build man pages. Removed make-pandoc-man-pages flag.
564 * Makefile: removed man target, now that we generate man pages by default.
568 + Fixed typos (J. Lewis Muir).
569 + Added documentation on backtick_code_blocks (#2135, Nikolay Yakimov).
570 + Added note on in-field markup in biblio databases (Nick Bart).
571 + Fixed misleading example of raw HTML block.
572 + Various minor formatting and consistency fixes for the program
573 options (Andreas Lööw).
574 + Made definition lists for options all "loose" for consistency.
575 + Added YAML biblio format to table, and note on `pandoc-citeproc`'s
576 `--bib2json` and `--bib2yaml` options (Nick Bart).
577 + Removed obsolete reference to `mods2yaml` (Nick Bart).
578 + Added section on syntax highlighting.
579 + Documented `toccolor` variable.
583 * Updated to build with ghc 7.10.1.
585 * Bumped package upper bounds for filepath, blaze-html,
590 * TWiki Reader: add new new twiki reader (API chaneg, Alexander Sulfrian).
594 + Better handling of paragraph in div (#1591).
595 Previously text that ended a div would be parsed as Plain
596 unless there was a blank line before the closing div tag.
597 + Don't treat a citation as a reference link label (#1763).
598 + Fix autolinks with following punctuation (#1811).
599 The price of this is that autolinked bare URIs can no longer
600 contain `>` characters, but this is not a big issue.
601 + Fix `Ext_lists_without_preceding_blankline` bug (#1636, Artyom).
602 + Allow `startnum` to work without `fancy_lists`. Formerly
603 `pandoc -f markdown-fancy_lists+startnum` did not work properly.
605 * RST reader (all Daniel Bergey):
607 + Parse quoted literal blocks (#65). RST quoted literal blocks are
608 the same as indented literal blocks (which pandoc already supports)
609 except that the quote character is preserved in each line.
610 + Parse RST class directives. The class directive accepts one or more
611 class names, and creates a Div value with those classes. If the
612 directive has an indented body, the body is parsed as the children of
613 the Div. If not, the first block folowing the directive is made a
614 child of the Div. This differs from the behavior of rst2xml, which
615 does not create a Div element. Instead, the specified classes are
616 applied to each child of the directive. However, most Pandoc Block
617 constructors to not take an Attr argument, so we can't duplicate this
619 + Warn about skipped directives.
620 + Literal role now produces Code. Code role should have "code" class.
621 + Improved support for custom roles
623 - Added `sourceCode` to classes for `:code:` role, and anything
625 - Add the name of the custom role to classes if the Inline
626 constructor supports Attr.
627 - If the custom role directive does not specify a parent role,
628 inherit from the `:span:` role.
630 This differs somewhat from the `rst2xml.py` behavior. If a custom
631 role inherits from another custom role, Pandoc will attach both
632 roles' names as classes. `rst2xml.py` will only use the class of
633 the directly invoked role (though in the case of inheriting from a
634 `:code:` role with a `:language:` defined, it will also provide the
635 inherited language as a class).
636 + Warn about ignored fields in role directives.
640 + Parse label after caption into a span instead of
641 inserting an additional paragraph of bracketed text (#1747).
642 + Parse math environments as inline when possible (#1821).
643 + Better handling of `\noindent` and `\greektext` (#1783).
644 + Handle `\texorpdfstring` more gracefully.
645 + Handle `\cref` and `\sep` (Wikiwide).
646 + Support `\smartcite` and `\Smartcite` from biblatex.
650 + Retain display type of MathML output (#1719, Matthew Pickering).
651 + Recognise `<br>` tags inside `<pre>` blocks (#1620, Matthew Pickering).
652 + Make `embed` tag either block or inline (#1756).
656 + Handle `keycombo`, `keycap` (#1815).
657 + Get string content in inner tags for literal elements (#1816).
658 + Handle `menuchoice` elements better, with a `>` between (#1817).
659 + Include `id` on section headers (#1818).
660 + Document/test "type" as implemented (Brian O'Sullivan).
661 + Add support for calloutlist and callout (Brian O'Sullivan).
662 We treat a calloutlist as a bulleted list. This works well in practice.
663 + Add support for `classname` (Bryan O'Sullivan).
667 + Fix window path for image lookup (Jesse Rosenthal).
668 Don't use os-sensitive "combine", since we always want the paths in our
669 zip-archive to use forward-slashes.
670 + Single-item headers in ordered lists are headers (Jesse Rosenthal).
671 When users number their headers, Word understands that as a single item
672 enumerated list. We make the assumption that such a list is, in fact,
674 + Rewrite rewriteLink to work with new headers (Jesse Rosenthal).
675 There could be new top-level headers after making lists, so we have to
676 rewrite links after that.
677 + Use polyglot header list (Jesse Rosenthal).
678 We're just keeping a list of header formats that different languages
679 use as their default styles. At the moment, we have English, German,
680 Danish, and French. We can continue to add to this.
681 This is simpler than parsing the styles file, and perhaps less
682 error-prone, since there seems to be some variations, even within a
683 language, of how a style file will define headers.
684 + Remove header class properly in other langs (Jesse Rosenthal).
685 When we encounter one of the polyglot header styles, we want to remove
686 that from the par styles after we convert to a header. To do that, we
687 have to keep track of the style name, and remove it appropriately.
688 + Account for external link URLs with anchors. Previously, if a URL
689 had an anchor, the reader would incorrectly identify it as an
690 internal link and return only the anchor as URL. (Caleb McDaniel)
691 + Fix for Issue #1692 (i18n styles) (Nikolay Yakimov).
695 + Added state changing blanklines (Jesse Rosenthal).
696 This allows us to emphasize at the beginning of a new paragraph (or, in
697 general, after blank lines).
698 + Fixed bug with bulleted lists:
704 was being parsed as a list, even though an unindented `*`
705 should make a heading. See
706 <http://orgmode.org/manual/Plain-lists.html#fn-1>.
707 + Org reader: absolute, relative paths in link (#1741, Albert
708 Krewinkel). The org reader was too restrictive when parsing links;
709 some relative links and links to files given as absolute paths
710 were not recognized correctly.
711 + Org reader: allow empty links (jgm/gitit#471, Albert Krewinkel).
712 This is important for use in gitit, which uses empty links
714 + Respect indent when parsing Org bullet lists (#1650, Timothy
715 Humphries). Fixes issue with top-level bullet list parsing.
716 + Fix indent issue for definition lists (Timothy Humphries,
717 see #1650, #1698, #1680).
718 + Parse multi-inline terms correctly in definition list (#1649,
720 + Fix rules for emphasis recognition (Albert Krewinkel).
721 Things like `/hello,/` or `/hi'/` were falsy recognized as emphasised
722 strings. This is wrong, as `,` and `'` are forbidden border chars and
723 may not occur on the inner border of emphasized text.
724 + Drop COMMENT document trees (Albert Krewinkel).
725 Document trees under a header starting with the word `COMMENT` are
726 comment trees and should not be exported. Those trees are dropped
728 + Properly handle links to `file:target` (Albert Krewinkel).
729 Org links like `[[file:target][title]]` were not handled correctly,
730 parsing the link target verbatim. The org reader is changed such that
731 the leading `file:` is dropped from the link target (see #756, #1812).
732 + Parse LaTeX-style MathML entities (#1657, Albert Krewinkel).
733 Org supports special symbols which can be included using LaTeX syntax,
734 but are actually MathML entities. Examples for this are
735 `\nbsp` (non-breaking space), `\Aacute` (the letter A with accent acute)
736 or `\copy` (the copyright sign ©)
740 + URI handling improvements. Now we outsource most of the work to
741 `fetchItem'`. Also, do not include queries in file extensions (#1671).
745 + Use `\texorpdfstring` for section captions when needed (Vaclav Zeman).
746 + Handle consecutive linebreaks (#1733).
747 + Protect graphics in headers (Jesse Rosenthal).
748 Graphics in `\section`/`\subsection` etc titles need to be `\protect`ed.
749 + Put `~` before header in list item text (Jesse Rosenthal).
750 Because of the built-in line skip, LaTeX can't handle a section header
751 as the first element in a list item.
752 + Avoid using reserved characters as `\lstinline` delimiters (#1595).
753 + Better handling of display math in simple tables (#1754).
754 We convert display math to inline math in simple tables,
755 since LaTeX can't deal with display math in simple tables.
756 + Escape spaces in code (#1694, Bjorn Buckwalter).
760 + Fixed links with URL = text. Previously these were rendered as bare
761 words, even if the URL was not an absolute URL (#1825).
765 + Don't force all citations into footnotes.
769 + Add blankline at end of output (#1732, Matthew Pickering).
773 + Ensure blank line after figure.
774 + Avoid exces whitespace after last list item (#1777).
775 + Wrap line blocks with spaces before continuations (#1656).
776 + Fixed double-rendering of footnotes in RST tables (#1769).
780 + Better handling of block quotes. This change ensures that
781 multiple paragraph blockquotes are rendered using native `>`
782 rather than as HTML (#1738).
783 + Fix external images (#1739). Preface relative links with ":",
784 absolute URIs without. (Timothy Humphries)
788 + Use protocol-relative URL for mathjax.
789 + Put newline btw img and caption paragraph.
790 + MathML now outputted with tex annotation (#1635, Matthew Pickering).
791 + Add support for KaTeX HTML math (#1626, Matthew Pickering).
792 This adds `KaTeX` to `HTMLMathMethod` (API change).
793 + Don't double render when `email-obfuscation=none` (#1625, Matthew
795 + Make header attributes work outside top level (#1711).
796 Previously they only appeared on top level header elements.
797 Now they work e.g. in blockquotes.
801 + Correctly handle images without extensions (#1729).
802 + Strip querystring in ODT write (#1682, Todd Sifleet).
806 + Add newline to output.
810 + Don't add `sourceURL` to absolute URIs (#1669).
811 + Don't use unsupported `opf:title-type` for epub2.
812 + Include "landmarks" section in nav document for epub3 (#1757).
813 + Removed playOrder from navpoint elements in ncx file (#1760).
814 These aren't required, and they make manual modification of epubs
816 + Extract title even from structured title.
817 + Don't include nav node in spine unless `--toc` was requested.
818 Previously we included it in the spine with `linear="no"`, leading
819 to odd results in some readers (#1593).
820 + Fixed absolute URI detection (#1672).
821 + Correctly resolve relative URIs (#1671).
822 + Use regular page template for `nav.xhtml`, including doctype (#1759).
826 + Put docx table captions above tables (#1641, Nikolay Yakimov).
827 + Get the page width from the reference docx file, and use
828 it to scale images that are too large to fit (Grégory Bataille).
829 + Partial fix for #1607 (Nikolay Yakimov). International heading styles
830 are inferred based on `<w:name val="heading #">` fallback, if there
831 are no en-US "Heading#" styles
832 + Look in user data dir for archive `reference.docx`.
833 + Renumber header and footer relationships to avoid collisions (Jesse
834 Rosenthal). We previously took the old relationship names of the
835 headers and footer in secptr. That led to collisions. We now make
836 a map of availabl names in the relationships file, and then rename
841 + Add function toLabel (Mark Szepieniec).
842 This function can be used to sanitize reference labels so that
843 they do not contain any of the illegal characters \#[]",{}%()|= .
844 Currently only Links have their labels sanitized, because they
845 are the only Elements that use passed labels.
847 * `Text.Pandoc.Shared`:
849 + Moved import of `toChunks` outside of CPP conditional (#1590).
850 + Fix `inDirectory` to reset to the original directory in case
851 an exception occurs (Freiric Barral).
855 + LaTeX template: load polyglossia before bibtex (jgm/pandoc-templates#70).
857 + LaTeX template: Added `\VerbatimFootnotes` if there is verbatim in notes
859 + LaTeX template: Add shorthands=off to babel options (#1648).
860 + EPUB, EPUB3 templates: Added `id="cover"` to body of cover page.
861 This aids styling, making it possible for example to set 0 margins
862 on the title page (#1758).
863 + EPUB, EPUB3 templates: Handle structured metadata on titlepage.
864 Previously we just expected 'title', 'subtitle', 'author', 'date'.
865 Now we still support those, but also support the format recommended
866 for epub metadata in the pandoc README:
873 text: An investigation of metadata
881 text: doi:10.234234.234/33
883 rights: (c) 2007 John Smith, CC BY-NC
886 * `Text.Pandoc.Templates.getDefaultTemplate`:
887 don't fail when called with "fb2" (#1660).
889 * `Text.Pandoc.Parsing`:
891 + Fixed `inlineMath` so it handles `\text{..}` containing `$`.
892 For example: `$x = \text{the $n$th root of $y$}` (#1677).
893 + Change `parseFromString` to fail if not all input is consumed.
895 + Moved `addWarning` from Markdown reader to `Parsing`, so it can be
896 used by more readers (API change, Daniel Bergey).
898 * `Text.Pandoc.Pretty`:
900 + Improve performance of `realLength` (Matthew Pickering).
901 + Make CR + BLANKLINE = BLANKLINE. This fixes an extra blank line we
902 were getting at the end of markdown fragments (as well as rst, org,
905 * `Text.Pandoc.MIME`:
907 + Add mime type for WebVTT (Jason Ronallo).
908 + Changed mime type for `otf` to `application/vnd.ms-opentype` (#1761).
909 This is needed for epub3 validation.
911 * `Text.Pandoc.MediaBag`:
913 + Fix Windows specific path problems (#1597).
915 * `Text.Pandoc.Shared`:
917 + Make `collapseFilePath` OS-agnostic (Matthew Pickering).
919 * Link the test suite using `-threaded`.
920 This allows the test suite to be run using `+RTS -N`.
922 * Added `network` dependency under `network-uri` flag in test section.
924 * Give better error messages when someone tries to convert from
925 pdf, doc, odt (#1683).
927 * Added `track` to list of tags treated by `--self-contained` (#1664).
931 * Fixed `--self-contained` with Windows paths (#1558).
932 Previously `C:\foo.js` was being wrongly interpreted as a URI.
934 * HTML reader: improved handling of tags that can be block or inline.
935 Previously a section like this would be enclosed in a paragraph,
936 with RawInline for the video tags (since video is a tag that can
937 be either block or inline):
939 <video controls="controls">
940 <source src="../videos/test.mp4" type="video/mp4" />
941 <source src="../videos/test.webm" type="video/webm" />
943 The videos can not be played back on your system.<br/>
944 Try viewing on Youtube (requires Internet connection):
945 <a href="http://youtu.be/etE5urBps_w">Relative Velocity on
950 This change will cause the video and source tags to be parsed
951 as RawBlock instead, giving better output.
952 The general change is this: when we're parsing a "plain" sequence
953 of inlines, we don't parse anything that COULD be a block-level tag.
957 + Be sensitive to user styles. Note that "Hyperlink" is
958 "blacklisted," as we don't want the default underline styling to be
959 inherited by all links by default (Jesse Rosenthal).
960 + Read single paragraph in table cell as `Plain` (Jesse Rosenthal).
961 This makes to docx reader's native output fit with the way the markdown
962 reader understands its markdown output.
964 * Textile writer: Extended the range of cases where native textile
965 tables will be used (as opposed to raw HTML): we now handle any
966 alignment type, but only for simple tables with no captions.
970 + Header is now parsed only if standalone flag is set (Matthew Pickering).
971 + The header is now parsed as meta information. The first line is the
972 `title`, the second is the `author` and third line is the `date`
974 + Corrected formatting of `%%mtime` macro (Matthew Pickering).
975 + Fixed crash when reading from stdin.
977 * EPUB writer: Don't use page-progression-direction in EPUB2, which
978 doesn't support it. Also, if page-progression-direction not specified
979 in metadata, don't include the attribute even in EPUB3; not including it
980 is the same as including it with the value "default", as we did before.
983 * Org writer: Accept example lines with indentation at the beginning
988 + Refactor to use Reader monad (Matthew Pickering).
989 + Avoid using raw HTML in table cells; instead, use `\\`
990 instead of newlines (Jesse Rosenthal).
991 + Properly handle HTML table cell alignments, and use spacing
992 to make the tables look prettier (#1566).
996 + Bibliography entries get `Bibliography` style (#1559).
997 + Implement change tracking (Jesse Rosenthal).
1001 + Fixed a bug that caused a table caption to repeat across all pages
1003 + Improved vertical spacing in tables and made it customizable using
1004 standard lengths set by booktab. See
1005 <https://groups.google.com/forum/#!msg/pandoc-discuss/qMu6_5lYy0o/ZAU7lzAIKw0J>
1007 + Added `\strut` to fix spacing in multiline tables (Jose Luis Duran).
1008 + Use `\tabularnewline` instead of `\\` in table cells (Jose Luis Duran).
1009 + Made horizontal rules more flexible (Jose Luis Duran).
1013 + Added `MimeType` (type synonym for `String`) and `getMimeTypeDef`.
1014 Code cleanups (Artyom Kazak).
1018 + LaTeX template: disable microtype protrusion for typewriter font (#1549,
1021 * Improved OSX build procedure.
1023 * Added `network-uri` flag, to deal with split of `network-uri` from
1026 * Fix build dependencies for the `trypandoc` flag, so that they are
1027 ignored if `trypandoc` flag is set to False (Gabor Pali).
1029 * Updated README to remove outdated claim that `--self-contained`
1030 looks in the user data directory for missing files.
1036 + Fixed regression which bungled list numbering (#1544), causing
1037 all lists to appear as basic ordered lists.
1038 + Include row width in table rows (Christoffer Ackelman, Viktor Kronvall).
1039 Added a property to all table rows where the sum of column widths
1040 is specified in pct (fraction of 5000). This helps persuade Word
1041 to lay out the table with the widths we specify.
1043 * Fixed a bug in Windows 8 which caused pandoc not to find the
1044 `pandoc-citeproc` filter (#1542).
1046 * Docx reader: miscellaneous under-the-hood improvements (Jesse Rosenthal).
1047 Most significantly, the reader now uses Builder, leading to some
1048 performance improvements.
1050 * HTML reader: Parse appropriately styled span as SmallCaps.
1052 * Markdown writer: don't escape `$`, `^`, `~` when `tex_math_dollars`,
1053 `superscript`, and `subscript` extensions, respectively, are
1054 deactivated (#1127).
1056 * Added `trypandoc` flag to build CGI executable used in the online
1059 * Makefile: Added 'quick', 'osxpkg' targets.
1061 * Updated README in templates to indicate templates license.
1062 The templates are dual-licensed, BSD3 and GPL2+.
1068 * Added `docx` as an input format (Jesse Rosenthal). The docx
1069 reader includes conversion of native Word equations to pandoc
1070 LaTeX `Math` elements. Metadata is taken from paragraphs at the
1071 beginning of the document with styles `Author`, `Title`, `Subtitle`,
1072 `Date`, and `Abstract`.
1074 * Added `epub` as an input format (Matthew Pickering). The epub
1075 reader includes conversion of MathML to pandoc LaTeX `Math`
1078 * Added `t2t` (Txt2Tags) as an input format (Matthew Pickering).
1079 Txt2tags is a lightweight markup format described at
1080 <http://txt2tags.org/>.
1082 * Added `dokuwiki` as an output format (Clare Macrae).
1084 * Added `haddock` as an output format.
1086 * Added `--extract-media` option to extract media contained in a zip
1087 container (docx or epub) while adjusting image paths to point to the
1090 * Added a new markdown extension, `compact_definition_lists`, that
1091 restores the syntax for definition lists of pandoc 1.12.x, allowing
1092 tight definition lists with no blank space between items, and
1093 disallowing lazy wrapping. (See below under behavior changes.)
1095 * Added an extension `epub_html_exts` for parsing HTML in EPUBs.
1097 * Added extensions `native_spans` and `native_divs` to activate
1098 parsing of material in HTML span or div tags as Pandoc Span
1099 inlines or Div blocks.
1101 * `--trace` now works with the Markdown, HTML, Haddock, EPUB,
1102 Textile, and MediaWiki readers. This is an option intended
1103 for debugging parsing problems; ordinary users should not need
1108 * Changed behavior of the `markdown_attribute` extension, to bring
1109 it in line with PHP markdown extra and multimarkdown. Setting
1110 `markdown="1"` on an outer tag affects all contained tags,
1111 recursively, until it is reversed with `markdown="0"` (#1378).
1113 * Revised markdown definition list syntax (#1429). Both the reader
1114 and writer are affected. This change brings pandoc's definition list
1115 syntax into alignment with that used in PHP markdown extra and
1116 multimarkdown (with the exception that pandoc is more flexible about
1117 the definition markers, allowing tildes as well as colons). Lazily
1118 wrapped definitions are now allowed. Blank space is required
1119 between list items. The space before a definition is used to determine
1120 whether it is a paragraph or a "plain" element. **WARNING: This change
1121 may break existing documents!** Either check your documents for
1122 definition lists without blank space between items, or use
1123 `markdown+compact_definition_lists` for the old behavior.
1125 * `.numberLines` now works in fenced code blocks even if no language
1126 is given (#1287, jgm/highlighting-kate#40).
1128 * Improvements to `--filter`:
1130 + Don't search PATH for a filter with an explicit path.
1131 This fixed a bug wherein `--filter ./caps.py` would run `caps.py` from
1132 the system path, even if there was a `caps.py` in the working directory.
1133 + Respect shebang if filter is executable (#1389).
1134 + Don't print misleading error message.
1135 Previously pandoc would say that a filter was not found,
1136 even in a case where the filter had a syntax error.
1140 + Parse `div` and `span` elements even without `--parse-raw`,
1141 provided `native_divs` and `native_spans` extensions are set.
1142 Motivation: these now generate native pandoc Div and Span
1143 elements, not raw HTML.
1144 + Parse EPUB-specific elements if the `epub_html_exts`
1145 extension is enabled. These include `switch`, `footnote`,
1146 `rearnote`, `noteref`.
1150 + Support for inline LaTeX. Inline LaTeX is now accepted and parsed by the
1151 org-mode reader. Both math symbols (like `\tau`) and LaTeX commands (like
1152 `\cite{Coffee}`), can be used without any further escaping (Albert
1155 * Textile reader and writer:
1157 + The `raw_tex` extension is no longer set by default. You can
1158 enable it with `textile+raw_tex`.
1162 + Support `equation`, `informalequation`, `inlineequation` elements with
1163 `mml:math` content. This is converted into LaTeX and put into a Pandoc
1166 * Revised `plain` output, largely following the style of Project
1169 + Emphasis is rendered with `_underscores_`, strong emphasis
1171 + Headings are rendered differently, with space to set them off,
1172 not with setext style underlines. Level 1 headers are ALL CAPS.
1173 + Math is rendered using unicode when possible, but without the
1174 distracting emphasis markers around variables.
1175 + Footnotes use a regular `[n]` style.
1179 + Horizontal rules are now a line across the whole page.
1180 + Prettier pipe tables. Columns are now aligned (#1323).
1181 + Respect the `raw_html` extension. `pandoc -t markdown-raw_html`
1182 no longer emits any raw HTML, including span and div tags
1183 generated by Span and Div elements.
1184 + Use span with style for `SmallCaps` (#1360).
1188 + Autolinks now have class `uri`, and email autolinks have class
1189 `email`, so they can be styled.
1193 + Document formatting is carried over from `reference.docx`.
1194 This includes margins, page size, page orientation, header,
1195 and footer, including images in headers and footers.
1196 + Include abstract (if present) with `Abstract` style (#1451).
1197 + Include subtitle (if present) with `Subtitle` style, rather
1198 than tacking it on to the title (#1451).
1202 + Write empty span elements with an id attribute as org anchors.
1203 For example `Span ("uid",[],[]) []` becomes `<<uid>>`.
1207 + Put table captions above tables, to match the conventional
1208 standard. (Previously they appeared below tables.)
1209 + Use `\(..\)` instead of `$..$` for inline math (#1464).
1210 + Use `\nolinkurl` in email autolinks. This allows them to be styled
1211 using `\urlstyle{tt}`. Thanks to Ulrike Fischer for the solution.
1212 + Use `\textquotesingle` for `'` in inline code. Otherwise we get
1213 curly quotes in the PDF output (#1364).
1214 + Use `\footnote<.>{..}` for notes in beamer, so that footnotes
1215 do not appear before the overlays in which their markers appear
1217 + Don't produce a `\label{..}` for a Div or Span element. Do produce
1218 a `\hyperdef{..}` (#1519).
1222 + If the metadata includes `page-progression-direction` (which can be
1223 `ltr` or `rtl`, the `page-progression-direction` attribute will
1224 be set in the EPUB spine (#1455).
1226 * Custom lua writers:
1228 + Custom writers now work with `--template`.
1229 + Removed HTML header scaffolding from `sample.lua`.
1230 + Made citation information available in lua writers.
1232 * `--normalize` and `Text.Pandoc.Shared.normalize` now consolidate
1233 adjacent `RawBlock`s when possible.
1237 * Added `Text.Pandoc.Readers.Docx`, exporting `readDocx` (Jesse Rosenthal).
1239 * Added `Text.Pandoc.Readers.EPUB`, exporting `readEPUB` (Matthew
1242 * Added `Text.Pandoc.Readers.Txt2Tags`, exporting `readTxt2Tags` (Matthew
1245 * Added `Text.Pandoc.Writers.DokuWiki`, exporting `writeDokuWiki`
1248 * Added `Text.Pandoc.Writers.Haddock`, exporting `writeHaddock`.
1250 * Added `Text.Pandoc.MediaBag`, exporting `MediaBag`, `lookupMedia`,
1251 `insertMedia`, `mediaDirectory`, `extractMediaBag`. The docx and epub
1252 readers return a pair of a `Pandoc` document and a `MediaBag` with
1253 the media resources they contain. This can be extracted using
1254 `--extract-media`. Writers that incorporate media (PDF, Docx,
1255 ODT, EPUB, RTF, or HTML formats with `--self-contained`) will look
1256 for resources in the `MediaBag` generated by the reader, in addition to
1257 the file system or web.
1259 * `Text.Pandoc.Readers.TexMath`: Removed deprecated `readTeXMath`.
1260 Renamed `readTeXMath'` to `texMathToInlines`.
1262 * `Text.Pandoc`: Added `Reader` data type (Matthew Pickering).
1263 `readers` now associates names of readers with `Reader`
1264 structures. This allows inclusion of readers, like the docx
1265 reader, that take binary rather than textual input.
1267 * `Text.Pandoc.Shared`:
1269 + Added `capitalize` (Artyom Kazak), and replaced uses of
1270 `map toUpper` (which give bad results for many languages).
1271 + Added `collapseFilePath`, which removes intermediate `.` and
1272 `..` from a path (Matthew Pickering).
1273 + Added `fetchItem'`, which works like `fetchItem` but searches
1274 a `MediaBag` before looking on the net or file system.
1275 + Added `withTempDir`.
1276 + Added `removeFormatting`.
1277 + Added `extractSpaces` (from HTML reader) and generalized its type
1278 so that it can be used by the docx reader (Matthew Pickering).
1280 + Added `normalizeInlines`, `normalizeBlocks`.
1281 + `normalize` is now `Pandoc -> Pandoc` instead of
1282 `Data a :: a -> a`. Some users may need to change their uses of
1283 `normalize` to the newly exported `normalizeInlines` or
1286 * `Text.Pandoc.Options`:
1288 + Added `writerMediaBag` to `WriterOptions`.
1289 + Removed deprecated and no longer used `readerStrict` in
1290 `ReaderOptions`. This is handled by `readerExtensions` now.
1291 + Added `Ext_compact_definition_lists`.
1292 + Added `Ext_epub_html_exts`.
1293 + Added `Ext_native_divs` and `Ext_native_spans`.
1294 This allows users to turn off the default pandoc behavior of
1295 parsing contents of div and span tags in markdown and HTML
1296 as native pandoc Div blocks and Span inlines.
1298 * `Text.Pandoc.Parsing`:
1300 + Generalized `readWith` to `readWithM` (Matthew Pickering).
1301 + Export `runParserT` and `Stream` (Matthew Pickering).
1302 + Added `HasQuoteContext` type class (Matthew Pickering).
1303 + Generalized types of `mathInline`, `smartPunctuation`, `quoted`,
1304 `singleQuoted`, `doubleQuoted`, `failIfInQuoteContext`,
1305 `applyMacros` (Matthew Pickering).
1306 + Added custom `token` (Matthew Pickering).
1307 + Added `stateInHtmlBlock` to `ParserState`. This is used to keep
1308 track of the ending tag we're waiting for when we're parsing inside
1310 + Added `stateMarkdownAttribute` to `ParserState`. This is used
1311 to keep track of whether the markdown attribute has been set in
1313 + Generalized type of `registerHeader`, using new type classes
1314 `HasReaderOptions`, `HasIdentifierList`, `HasHeaderMap` (Matthew
1315 Pickering). These allow certain common functions to be reused
1316 even in parsers that use custom state (instead of `ParserState`),
1317 such as the MediaWiki reader.
1318 + Moved `inlineMath`, `displayMath` from Markdown reader to Parsing,
1319 and generalized their types (Matthew Pickering).
1321 * `Text.Pandoc.Pretty`:
1324 + Added `blanklines`, which guarantees a certain number of blank lines
1331 + Fixed parsing of indented code in list items. Indented code
1332 at the beginning of a list item must be indented eight spaces
1333 from the margin (or edge of the container), or four spaces
1334 from the list marker, whichever is greater.
1335 + Fixed small bug in HTML parsing with `markdown_attribute`, which
1336 caused incorrect tag nesting for input like
1337 `<aside markdown="1">*hi*</aside>`.
1338 + Fixed regression with intraword underscores (#1121).
1339 + Improved parsing of inline links containing quote characters (#1534).
1340 + Slight rewrite of `enclosure`/`emphOrStrong` code.
1341 + Revamped raw HTML block parsing in markdown (#1330).
1342 We no longer include trailing spaces and newlines in the
1343 raw blocks. We look for closing tags for elements (but without
1344 backtracking). Each block-level tag is its own `RawBlock`;
1345 we no longer try to consolidate them (though `--normalize` will do so).
1346 + Combine consecutive latex environments. This helps when you have
1347 two minipages which can't have blank lines between them (#690, #1196).
1348 + Support smallcaps through span.
1349 `<span style="font-variant:small-caps;">foo</span>` will be
1350 parsed as a `SmallCaps` inline, and will work in all output
1351 formats that support small caps (#1360).
1352 + Prevent spurious line breaks after list items (#1137). When the
1353 `hard_line_breaks` option was specified, pandoc would formerly
1354 produce a spurious line break after a tight list item.
1355 + Fixed table parsing bug (#1333).
1356 + Handle `c++` and `objective-c` as language identifiers in
1357 github-style fenced blocks (#1318).
1358 + Inline math must have nonspace before final `$` (#1313).
1362 + Handle comments at the end of tables. This resolves the issue
1363 illustrated in <http://stackoverflow.com/questions/24009489>.
1364 + Correctly handle table rows with too few cells. LaTeX seems to
1365 treat them as if they have empty cells at the end (#241).
1366 + Handle leading/trailing spaces in `\emph` better.
1367 `\emph{ hi }` gets parsed as `[Space, Emph [Str "hi"], Space]`
1368 so that we don't get things like `* hi *` in markdown output.
1369 Also applies to `\textbf` and some other constructions (#1146).
1370 + Don't assume preamble doesn't contain environments (#1338).
1371 + Allow (and discard) optional argument for `\caption` (James Aspnes).
1375 + Fixed major parsing problem with HTML tables. Table cells were
1376 being combined into one cell (#1341).
1377 + Fixed performance issue with malformed HTML tables.
1378 We let a `</table>` tag close an open `<tr>` or `<td>` (#1167).
1379 + Allow space between `<col>` and `</col>`.
1380 + Added `audio` and `source` in `eitherBlockOrInline`.
1381 + Moved `video`, `svg`, `progress`, `script`, `noscript`, `svg` from
1382 `blockTags` to `eitherBlockOrInline`.
1383 + `map` and `object` were mistakenly in both lists; they have been removed
1385 + Ignore `DOCTYPE` and `xml` declarations.
1389 + Don't parse backslash escapes inside `<source>` (#1445).
1390 + Tightened up template parsing.
1391 The opening `{{` must be followed by an alphanumeric or `:`.
1392 This prevents the exponential slowdown in #1033.
1393 + Support "Bild" for images.
1397 + Better handle elements inside code environments. Pandoc's document
1398 model does not allow structure inside code blocks, but at least this way
1399 we preserve the text (#1449).
1400 + Support `<?asciidoc-br?>` (#1236).
1404 + Fixed list parsing. Lists can now start without an intervening
1406 + HTML block-level tags that do not start a line are parsed as
1407 inline HTML and do not interrupt paragraphs (as in RedCloth).
1411 + Make tildes create inline code (#1345). Also relabeled `code` and
1412 `verbatim` parsers to accord with the org-mode manual.
1413 + Respect `:exports` header argument in code blocks (Craig Bosma).
1414 + Fixed tight lists with sublists (#1437).
1418 + Avoid excess whitespace in `nav.xhtml`. This should improve
1419 TOC view in iBooks (#1392).
1420 + Fixed regression on cover image.
1421 In 1.12.4 and 1.12.4.2, the cover image would not appear properly,
1422 because the metadata id was not correct. Now we derive the id from the
1423 actual cover image filename, which we preserve rather than using
1425 + Keep newlines between block elements. This allows
1426 easier diff-ability (#1424).
1427 + Use `stringify` instead of custom `plainify`.
1428 + Use `renderTags'` for all tag rendering. This properly handles tags
1429 that should be self-closing. Previously `<hr/>` would appear in EPUB
1430 output as `<hr></hr>` (#1420).
1431 + Better handle HTML media tags.
1432 + Handle multiple dates with OPF `event` attributes. Note: in EPUB3 we
1433 can have only one dc:date, so only the first one is used.
1437 + Correctly handle figures in notes. Notes can't contain figures in
1438 LaTeX, so we fake it to avoid an error (#1053).
1439 + Fixed strikeout + highlighted code (#1294).
1440 Previously strikeout highlighted code caused an error.
1444 + Improved detection of autolinks with URLs containing escapes.
1448 + Improved image embedding: `fetchItem'` is now used to get the
1449 images, and calculated image sizes are indicated in the RTF.
1450 + Avoid extra paragraph tags in metadata (#1421).
1454 + Deactivate "incremental" inside slide speaker notes (#1394).
1455 + Don't include empty items in the table of contents for
1456 slide shows. (These would result from creating a slide
1457 using a horizontal rule.)
1461 + Minor renaming of `st` prefixed names.
1465 + Double up emphasis and strong emphasis markers in intraword
1466 contexts, as required by asciidoc (#1441).
1470 + Avoid wrapping that might start a list, blockquote, or header (#1013).
1471 + Use Span instead of (hackish) `SmallCaps` in `plainify`.
1472 + Don't use braced attributes for fenced code (#1416).
1473 If `Ext_fenced_code_attributes` is not set, the first class
1474 attribute will be printed after the opening fence as a bare word.
1475 + Separate adjacent lists of the same kind with an HTML comment (#1458).
1479 + Fixed treatment of data uris for images (#1062).
1483 + Use Compact style for empty table cells (#1353).
1484 Otherwise we get overly tall lines when there are empty
1485 table cells and the other cells are compact.
1486 + Create overrides per-image for `media/` in reference docx.
1487 This should be somewhat more robust and cover more types of images.
1488 + Improved `entryFromArchive` to avoid an unneeded parse.
1489 + Section numbering carries over from reference.docx (#1305).
1490 + Simplified `abstractNumId` numbering. Instead of sequential numbering,
1491 we assign numbers based on the list marker styles.
1493 * `Text.Pandoc.Options`:
1495 + Removed `Ext_fenced_code_attributes` from `markdown_github`
1498 * `Text.Pandoc.ImageSize`:
1500 + Use default instead of failing if image size not found
1501 in exif header (#1358).
1502 + ignore unknown exif header tag rather than crashing.
1503 Some images seem to have tag type of 256, which was causing
1506 * `Text.Pandoc.Shared`:
1508 + `fetchItem`: unescape URI encoding before reading local file (#1427).
1509 + `fetchItem`: strip a fragment like `?#iefix` from the extension before
1510 doing mime lookup, to improve mime type guessing.
1511 + Improved logic of `fetchItem`: absolute URIs are fetched from the net;
1512 other things are treated as relative URIs if `sourceURL` is `Just _`,
1513 otherwise as file paths on the local file system.
1514 + `fetchItem` now properly handles links without a protocol (#1477).
1515 + `fetchItem` now escapes characters not allowed in URIs before trying
1517 + Fixed runtime error with `compactify'DL` on certain lists (#1452).
1519 * `pandoc.hs`: Don't strip path off of `writerSourceURL`: the path is
1520 needed to resolve relative URLs when we fetch resources (#750).
1522 * `Text.Pandoc.Parsing`
1524 + Simplified `dash` and `ellipsis` (#1419).
1525 + Removed `(>>~)` in favor of the equivalent `(<*)` (Matthew Pickering).
1526 + Generalized functions to use `ParsecT` (Matthew Pickering).
1527 + Added `isbn` and `pmid` to list of recognized schemes (Matthew
1532 * Added haddock template.
1533 * EPUB3: Added `type` attribute to `link` tags. They are supposed to
1534 be "advisory" in HTML5, but kindlegen seems to require them.
1535 * EPUB3: Put title page in section with `epub:type="titlepage"`.
1536 * LaTeX: Made `\subtitle` work properly (#1327).
1537 * LaTeX/Beamer: remove conditional around date (#1321).
1538 * LaTeX: Added `lot` and `lof` variables, which can be set to
1539 get `\listoftables` and `\listoffigures` (#1407). Note that
1540 these variables can be set at the command line with `-Vlot -Vlof`
1541 or in YAML metadata.
1543 [under the hood improvements]
1545 * Rewrote normalize for efficiency (#1385).
1547 * Rewrote Haddock reader to use `haddock-library` (#1346).
1549 + This brings pandoc's rendering of haddock markup in line
1550 with the new haddock.
1551 + Fixed line breaks in `@` code blocks.
1552 + alex and happy are no longer build-depends.
1554 * Added `Text.Pandoc.Compat.Directory` to allow building against
1555 different versions of the `directory` library.
1557 + Added `Text.Pandoc.Compat.Except` to allow building against
1558 different verions of `mtl`.
1560 * Code cleanup in some writers, using Reader monad to avoid
1561 passing options parameter around (Matej Kollar).
1563 * Improved readability in `pandoc.hs`.
1565 * Miscellaneous code cleanups (Artyom Kazak).
1567 * Avoid `import Prelude hiding (catch)` (#1309, thanks to Michael
1570 * Changed `http-conduit` flag to `https`. Depend on `http-client`
1571 and `http-client-tls` instead of `http-conduit`. (Note: pandoc still
1572 depends on `conduit` via `yaml`.)
1574 * Require `highlighting-kate >= 0.5.8.5` (#1271, #1317, Debian #753299).
1575 This change to highlighting-kate means that PHP fragments no longer need
1576 to start with `<?php`. It also fixes a serious bug causing failures with
1579 * Require latest `texmath`. This fixes `\tilde{E}` and allows
1580 `\left` to be used with `]`, `)` etc. (#1319), among many other
1583 * Require latest `zip-archive`. This has fixes for unicode path names.
1585 * Added tests for plain writer.
1587 * `Text.Pandoc.Templates`:
1589 + Fail informatively on template syntax errors.
1590 With the move from parsec to attoparsec, we lost good error
1591 reporting. In fact, since we weren't testing for end of input,
1592 malformed templates would fail silently. Here we revert back to
1593 Parsec for better error messages.
1594 + Use `ordNub` (#1022).
1598 + Made benchmarks compile again (Artyom Kazak).
1599 + Fixed so that the failure of one benchmark does not prevent others
1600 from running (Artyom Kazak).
1601 + Use `nfIO` instead of the `getLength` trick to force full evaluation.
1602 + Changed benchmark to use only the test suite, so that benchmarks
1605 * Windows build script:
1607 + Add `-windows` to file name.
1608 + Use one install command for pandoc, pandoc-citeproc.
1609 + Force install of pandoc-citeproc.
1611 * `make_osx_package`: Call zip file `pandoc-VERSION-osx.zip`.
1612 The zip should not be named `SOMETHING.pkg.zip`, or OSX finder
1613 will extract it into a folder named `SOMETHING.pkg`, which it
1614 will interpret as a defective package (#1308).
1618 + Made headers for all extensions so they have IDs and can be
1619 linked to (Beni Cherniavsky-Paskin).
1620 + Fixed typos (Phillip Alday).
1621 + Fixed documentation of attributes (#1315).
1622 + Clarified documentation on small caps (#1360).
1623 + Better documentation for `fenced_code_attributes` extension
1625 + Documented fact that you can put YAML metadata in a separate file
1631 * Require highlighting-kate >= 0.5.8. Fixes a performance regression.
1633 * Shared: `addMetaValue` now behaves slightly differently:
1634 if both the new and old values are lists, it concatenates their
1635 contents to form a new list.
1639 + Set `bibliography` in metadata from `\bibliography` or
1640 `\addbibresource` command.
1641 + Don't error on `%foo` with no trailing newline.
1645 + Support code block headers (`#+BEGIN_SRC ...`) (Albert Krewinkel).
1646 + Fix parsing of blank lines within blocks (Albert Krewinkel).
1647 + Support pandoc citation extension (Albert Krewinkel). This can
1648 be turned off by specifying `org-citations` as the input format.
1652 + `citeKey` moved to `Text.Pandoc.Parsing` so it can be used by
1653 other readers (Albert Krewinkel).
1655 * `Text.Pandoc.Parsing`:
1657 + Added `citeKey` (see above).
1658 + Added `HasLastStrPosition` type class and `updateLastStrPos`
1659 and `notAfterString` functions.
1661 * Updated copyright notices (Albert Krewinkel).
1663 * Added default.icml to data files so it installs with the package.
1667 + The binary is now built with options to ensure that it can be
1668 used with OSX 10.6+.
1669 + Moved OSX package materials to osx directory.
1670 + Added OSX package uninstall script, included in the zip container
1671 (thanks to Daniel T. Staal).
1675 * Made it possible to run filters that aren't executable (#1096).
1676 Pandoc first tries to find the executable (searching the path
1677 if path isn't given). If it fails, but the file exists and has
1678 a `.py`, `.pl`, `.rb`, `.hs`, or `.php` extension, pandoc runs the filter
1679 using the appropriate interpreter. This should make it easier to
1680 use filters on Windows, and make it more convenient for everyone.
1682 * Added Emacs org-mode reader (Albert Krewinkel).
1684 * Added InDesign ICML Writer (mb21).
1688 + Accept image links in more languages (Jaime Marquínez Ferrándiz).
1689 + Fixed bug in certain nested lists (#1213). If a level 2 list was
1690 followed by a level 1 list, the first item of the level 1 list
1692 + Handle table rows containing just an HTML comment (#1230).
1696 + Give better location information on errors, pointing to line
1697 numbers within included files (#1274).
1698 + LaTeX reader: Better handling of `table` environment (#1204).
1699 Positioning options no longer rendered verbatim.
1700 + Better handling of figure and table with caption (#1204).
1701 + Handle `@{}` and `p{length}` in tabular. The length is not actually
1702 recorded, but at least we get a table (#1180).
1703 + Properly handle `\nocite`. It now adds a `nocite` metadata
1704 field. Citations there will appear in the bibliography but not
1705 in the text (unless you explicitly put a `$nocite$` variable
1710 + Ensure that whole numbers in YAML metadata are rendered without
1711 decimal points. (This became necessary with changes to aeson
1712 and yaml libraries. aeson >= 0.7 and yaml >= 0.8.8.2 are now required.)
1713 + Fixed regression on line breaks in strict mode (#1203).
1714 + Small efficiency improvements.
1715 + Improved parsing of nested `div`s. Formerly a closing `div` tag
1716 would be missed if it came right after other block-level tags.
1717 + Avoid backtracking when closing `</div>` not found.
1718 + Fixed bug in reference link parsing in `markdown_mmd`.
1719 + Fixed a bug in list parsing (#1154). When reading a raw list
1720 item, we now strip off up to 4 spaces.
1721 + Fixed parsing of empty reference link definitions (#1186).
1722 + Made one-column pipe tables work (#1218).
1726 + Better support for attributes. Instead of being ignored, attributes
1727 are now parsed and included in Span inlines. The output will be a bit
1728 different from stock textile: e.g. for `*(foo)hi*`, we'll get
1729 `<em><span class="foo">hi</span></em>` instead of
1730 `<em class="foo">hi</em>`. But at least the data is not lost.
1731 + Improved treatment of HTML spans (%) (#1115).
1732 + Improved link parsing. In particular we now pick up on attributes.
1733 Since pandoc links can't have attributes, we enclose the whole link in
1734 a span if there are attributes (#1008).
1735 + Implemented correct parsing rules for inline markup (#1175, Matthew
1737 + Use Builder (Matthew Pickering).
1738 + Fixed list parsing bug (#1500).
1739 + Don't allow inline formatting to extend over newlines.
1740 This matches the behavior of RedCarpet, avoids some ugly bugs,
1741 and improves performance.
1745 + Better treatment of `formalpara`. We now emit the title (if present)
1746 as a separate paragraph with boldface text (#1215).
1747 + Set metadata `author` not `authors`.
1748 + Added recognition of `authorgroup` and `releaseinfo` elements (#1214,
1750 + Converted current meta information parsing in DocBook to a more
1751 extensible version which is aware of the more recent meta
1752 representation (Matthew Pickering).
1756 + Require tagsoup 0.13.1, to fix a bug with parsing of script tags
1758 + Treat processing instructions & declarations as block. Previously
1759 these were treated as inline, and included in paragraph tags in HTML
1760 or DocBook output, which is generally not what is wanted (#1233).
1761 + Updated `closes` with rules from HTML5 spec.
1762 + Use Builder (Matthew Pickering, #1162).
1766 + Remove duplicate `http` in PEP links (Albert Krewinkel).
1767 + Make rst figures true figures (#1168, CasperVector)
1768 + Enhanced Pandoc's support for rST roles (Merijn Verstaaten).
1769 rST parser now supports: all built-in rST roles, new role definition,
1770 role inheritance, though with some limitations.
1771 + Use `author` rather than `authors` in metadata.
1772 + Better handling of directives. We now correctly handle field
1773 lists that are indented more than three spaces. We treat an
1774 `aafig` directive as a code block with attributes, so it can be
1775 processed in a filter (#1212).
1779 + Mark span contents with label if span has an ID (Albert Krewinkel).
1780 + Made `--toc-depth` work well with books in latex/pdf output (#1210).
1781 + Handle line breaks in simple table cells (#1217).
1782 + Workaround for level 4-5 headers in quotes. These previously produced
1783 invalid LaTeX: `\paragraph` or `\subparagraph` in a `quote` environment.
1784 This adds an `mbox{}` in these contexts to work around the problem.
1785 See <http://tex.stackexchange.com/a/169833/22451> (#1221).
1786 + Use `\/` to avoid en-dash ligature instead of `-{}-` (Vaclav Zeman).
1787 This is to fix LuaLaTeX output. The `-{}-` sequence does not avoid the
1788 ligature with LuaLaTeX but `\/` does.
1789 + Fixed string escaping in `hyperref` and `hyperdef` (#1130).
1791 * ConTeXt writer: Improved autolinks (#1270).
1795 + Improve handling of hard line breaks in Docbook writer
1796 (Neil Mayhew). Use a `<literallayout>` for the entire paragraph, not
1797 just for the newline character.
1798 + Don't let line breaks inside footnotes influence the enclosing
1799 paragraph (Neil Mayhew).
1800 + Distinguish tight and loose lists in DocBook output, using
1801 `spacing="compact"` (Neil Mayhew, #1250).
1803 * Docx writer: When needed files are not present in the user's
1804 `reference.docx`, fall back on the versions in the `reference.docx`
1805 in pandoc's data files. This fixes a bug that occurs when a
1806 `reference.docx` saved by LibreOffice is used. (#1185)
1810 + Include extension in epub ids. This fixes a problem with duplicate
1811 extensions for fonts and images with the same base name but different
1813 + Handle files linked in raw `img` tags (#1170).
1814 + Handle media in `audio` source tags (#1170).
1815 Note that we now use a `media` directory rather than `images`.
1816 + Incorporate files linked in `video` tags (#1170). `src` and `poster`
1817 will both be incorporated into `content.opf` and the epub container.
1821 + Add colgroup around col tags (#877). Also affects EPUB writer.
1822 + Fixed bug with unnumbered section headings. Unnumbered section
1823 headings (with class `unnumbered`) were getting numbers.
1824 + Improved detection of image links. Previously image links with
1825 queries were not recognized, causing `<embed>` to be used instead
1828 * Man writer: Ensure that terms in definition lists aren't line wrapped
1833 + Use proper escapes to avoid unwanted lists (#980). Previously we used
1834 0-width spaces, an ugly hack.
1835 + Use longer backtick fences if needed (#1206). If the content contains a
1836 backtick fence and there are attributes, make sure longer fences are
1837 used to delimit the code. Note: This works well in pandoc, but github
1838 markdown is more limited, and will interpret the first string of three
1839 or more backticks as ending the code block.
1841 * RST writer: Avoid stack overflow with certain tables (#1197).
1843 * RTF writer: Fixed table cells containing paragraphs.
1847 + Correctly handle UTF-8 in custom lua scripts (#1189).
1848 + Fix bugs with lua scripts with mixed-case filenames and
1849 paths containing `+` or `-` (#1267). Note that `getWriter`
1850 in `Text.Pandoc` no longer returns a custom writer on input
1853 * AsciiDoc writer: Handle multiblock and empty table cells
1854 (#1245, #1246). Added tests.
1856 * `Text.Pandoc.Options`: Added `readerTrace` to `ReaderOptions`
1858 * `Text.Pandoc.Shared`:
1860 + Added `compactify'DL` (formerly in markdown reader) (Albert Krewinkel).
1861 + Fixed bug in `toRomanNumeral`: numbers ending with '9' would
1862 be rendered as Roman numerals ending with 'IXIV' (#1249). Thanks to
1864 + `openURL`: set proxy with value of http_proxy env variable (#1211).
1865 Note: proxies with non-root paths are not supported, due to
1866 limitations in `http-conduit`.
1868 * `Text.Pandoc.PDF`:
1870 + Ensure that temp directories deleted on Windows (#1192). The PDF is
1871 now read as a strict bytestring, ensuring that process ownership will
1872 be terminated, so the temp directory can be deleted.
1873 + Use `/` as path separators in a few places, even on Windows.
1874 This seems to be necessary for texlive (#1151, thanks to Tim Lin).
1875 + Use `;` for `TEXINPUTS` separator on Windows (#1151).
1876 + Changes to error reporting, to handle non-UTF8 error output.
1878 * `Text.Pandoc.Templates`:
1880 + Removed unneeded datatype context (Merijn Verstraaten).
1882 + YAML objects resolve to "true" in conditionals (#1133).
1883 Note: If `address` is a YAML object and you just have `$address$`
1884 in your template, the word `true` will appear, which may be
1885 unexpected. (Previously nothing would appear.)
1887 * `Text.Pandoc.SelfContained`:
1889 + `mkSelfContained` now takes just two arguments, `WriterOptions` and
1891 * It no longer looks in data files. This only made sense when we
1892 had copies of slidy and S5 code there.
1893 * `fetchItem'` is used instead of the nearly duplicate `getItem`.
1894 + Handle `poster` attribute in `video` tags (#1188).
1896 * `Text.Pandoc.Parsing`:
1898 + Made `F` an instance of Applicative (#1138).
1899 + Added `stateCaption`.
1900 + Added `HasMacros`, simplified other typeclasses.
1901 Removed `updateHeaderMap`, `setHeaderMap`, `getHeaderMap`,
1902 `updateIdentifierList`, `setIdentifierList`, `getIdentifierList`.
1903 + Changed the smart punctuation parser to return `Inlines`
1904 rather than `Inline` (Matthew Pickering).
1905 + Changed `HasReaderOptions`, `HasHeaderMap`, `HasIdentifierList`
1906 from typeclasses of monads to typeclasses of states. This simplifies
1907 the instance definitions and provides more flexibility. Generalized
1908 type of `getOption` and added a default definition. Removed
1909 `askReaderOption`. Added `extractReaderOption`. Added
1910 `extractHeaderMap` and `updateHeaderMap` in `HasHeaderMap`.
1911 Gave default definitions for `getHeaderMap`, `putHeaderMap`,
1912 `modifyHeaderMap`. Added `extractIdentifierList` and
1913 `updateIdentifierList` in `HasIdentifierList`. Gave defaults
1914 for `getIdentifierList`, `putIdentifierList`, and
1915 `modifyIdentifierList`. The ultimate goal here is to allow different
1916 parsers to use their own, tailored parser states (instead of
1917 `ParserState`) while still using shared functions.
1921 + LaTeX template: Use `fontenc` package only with `pdflatex` (#1164).
1922 + LaTeX template: Add `linestretch` and `fontfamily` variables.
1923 + LaTeX template: Conditionalize author and date commands.
1924 + Beamer template: Consistent styles for figure and table captions
1926 + LaTeX and beamer template: Adjust widths correctly for oversized
1927 images. Use `\setkeys{Gin}{}` to set appropriate defaults for
1928 `\includegraphics` (Yihui Xie, Garrick Aden-Buie). Load
1929 `upquote` only after `fontenc` (Yihui Xie).
1930 + Beamer template: Added caption package (#1200).
1931 + Beamer template: changes for better unicode handling (KarolS).
1932 + DocBook template: use `authorgroup` if there are authors.
1933 + revealjs template: Move `include-after` to end (certainlyakey).
1934 + revealjs template: Fixed PDF print function (#1220, kevinkenan).
1936 * Bumped version bounds of dependencies.
1938 * Added a `--trace` command line option, for debugging backtracking
1939 bugs. So far this only works with the markdown reader.
1941 * MathMLinHTML: Fixed deprecation warning (#362, gwern, Albert Krewinkel).
1943 * Updated travis script to test with multiple GHC versions.
1945 * Force failure of a Travis build if GHC produces warnings (Albert
1948 * Add `.editorconfig` (Albert Krewinkel).
1949 See <http://editorconfig.org/> for details.
1951 * Give more useful error message if '-t pdf' is specified (#1155).
1953 * Added `Cite`, `SmallCaps` to `Arbitrary` instance (#1269).
1955 * Allow `html4` as a synonym of `html` as a reader (it already works
1960 + Added an explanation of how to use YAML metadata to
1961 force items to appear in the bibliography without citations in
1962 the text (like LaTeX `\nocite`).
1963 + Added note to `--bibtex/--natbib`: not for use in making PDF
1964 (#1194, thanks to nahoj).
1965 + Added explanatory notes about `--natbib` and `--biblatex`.
1966 + Added specification of legal syntax for citation keys.
1967 + Fixed variable defaults documentation (Albert Krewinkel).
1969 * Removed copyright statements for files that have been removed
1972 * Moved some doc files from `data-files` to `extra-source-files` (#1123).
1973 They aren't needed at runtime. We keep README and COPYRIGHT in data
1974 to ensure that they'll be available on all systems on which pandoc
1977 * Use cabal sandboxes in Windows build script.
1981 * To changes to source; recompiled tarball with latest alex and
1982 happy, so they will work with GHC 7.8.
1986 * Bumped version bounds for blaze-html, blaze-markup.
1988 * ImageSize: Avoid use of lookAhead, which is not in binary >= 0.6
1991 * Fixed mediawiki ordered list parsing (#1122).
1993 * HTML reader: Fixed bug reading inline math with `$$` (#225).
1995 * Added support for LaTeX style literate Haskell code blocks in rST
1996 (Merijn Verstraaten).
2000 * Relaxed version constraint on binary, allowing the use of binary 0.5.
2004 * The `--bibliography` option now sets the `biblio-files` variable.
2005 So, if you're using `--natbib` or `--biblatex`, you can just use
2006 `--bibliography=foo.bib` instead of `-V bibliofiles=foo`.
2008 * Don't run pandoc-citeproc filter if `--bibliography` is
2009 used together with `--natbib` or `--biblatex` (Florian Eitel).
2013 + Updated beamer template to include booktabs.
2014 + Added `abstract` variable to LaTeX template.
2015 + Put `header-includes` after `title` in LaTeX template (#908).
2016 + Allow use of `\includegraphics[size]` in beamer.
2017 This just required porting a macro definition from the default
2018 LaTeX template to the default beamer template.
2020 * `reference.docx`: Include `FootnoteText` style.
2021 Otherwise Word ignores the style, even when specified in the `pPr`.
2024 * `reference.odt`: Tidied `styles.xml`.
2026 * Relaxed version bounds for dependencies.
2028 * Added `withSocketsDo` around http conduit code in `openURL`,
2029 so it works on Windows (#1080).
2031 * Added `Cite` function to `sample.lua`.
2035 + Fixed regression in title blocks (#1089).
2036 If author field was empty, date was being ignored.
2037 + Allow backslash-newline hard line breaks in grid and
2038 multiline table cells.
2039 + Citation keys may now start with underscores, and may contain
2040 underscores adjacent to internal punctuation.
2044 + Add support for `Verb` macro (jrnold) (#1090).
2045 + Support babel-style quoting: `` "`..."' ``.
2047 * Properly handle script blocks in strict mode. (That is,
2048 `markdown-markdown_in_html_blocks`.) Previously a spurious
2049 `<p>` tag was being added (#1093).
2051 * Docbook reader: Avoid failure if `tbody` contains no `tr` or `row`
2056 + Factored out function for table cell creation.
2057 + Better treatment of footnotes in tables.
2058 Notes now appear in the regular sequence, rather than in the
2059 table cell. (This was a regression in 1.10.)
2061 * HTML reader: Parse name/content pairs from meta tags as metadata.
2064 * Moved `fixDisplayMath` from Docx writer to `Writer.Shared`.
2066 * OpenDocument writer: Fixed `RawInline`, `RawBlock` so they don't escape.
2068 * ODT writer: Use mathml for proper rendering of formulas.
2069 Note: LibreOffice's support for this seems a bit buggy. But
2070 it should be better than what we had before.
2072 * RST writer: Ensure no blank line after def in definition list (#992).
2074 * Markdown writer: Don't use tilde code blocks with braced attributes in
2075 `markdown_github` output. A consequence of this change is that the
2076 backtick form will be preferred in general if both are enabled. That
2077 is good, as it is much more widespread than the tilde form. (#1084)
2079 * Docx writer: Fixed problem with some modified reference docx files.
2080 Include `word/_rels/settings.xml.rels` if it exists, as well as other
2081 `rels` files besides the ones pandoc generates explicitly.
2085 + With `--toc`, headers no longer link to themselves (#1081).
2086 + Omit footnotes from TOC entries. Otherwise we get doubled
2087 footnotes when headers have notes!
2091 + Avoid duplicate notes when headings contain notes.
2092 This arose because the headings are copied into the metadata
2093 "title" field, and the note gets rendered twice. We strip the
2094 note now before putting the heading in "title".
2095 + Strip out footnotes from toc entries.
2096 + Fixed bug with `--epub-stylesheet`. Now the contents of
2097 `writerEpubStylesheet` (set by `--epub-stylesheet`)
2098 should again work, and take precedence over a stylesheet specified
2101 * `Text.Pandoc.MIME`: Added `wmf`, `emf`.
2103 * `Text.Pandoc.Shared`: `fetchItem` now handles image URLs beginning
2106 * `Text.Pandoc.ImageSize`: Parse EXIF format JPEGs. Previously
2107 we could only get size information for JFIF format, which led
2108 to squished images in Word documents. Closes #976.
2110 * Removed old `MarkdownTest_1.0.3` directory (#1104).
2114 * Markdown reader: Fixed regression in list parser, involving
2115 continuation lines containing raw HTML (or even verbatim raw HTML).
2119 * Metadata may now be included in YAML blocks in a markdown document.
2127 text: An investigation of metadata
2135 text: doi:10.234234.234/33
2137 rights: (c) 2007 John Smith, CC BY-NC
2138 cover-image: img/mypic.jpg
2141 Metadata may still be provided using `--epub-metadata`; it will
2142 be merged with the metadata in YAML blocks.
2146 + `meta` tags are now used instead of `opf` attributes for EPUB3.
2147 + Insert "svg" property as needed in opf (EPUB 3).
2148 + Simplify `imageTypeOf` using `getMimeType`.
2149 + Add properties attribute to `cover-image` item for EPUB 3.
2150 + Don't include node for `cover.xhtml` if no cover!
2151 + Ensure that same identifier is used throughout (#1044).
2152 If an identifier is given in metadata, we use that; otherwise
2153 we generate a random uuid.
2154 + Add cover reference to guide element (EPUB 2) (Shaun Attfield).
2155 Fixes an issue with Calibre putting the cover at the end of the book
2156 if the spine has `linear="no"`. Apparently this is best practice
2157 for other converters as well:
2158 <http://www.idpf.org/epub/20/spec/OPF_2.0.1_draft.htm#Section2.6>.
2159 + Allow `stylesheet` in metadata. The value is a path to the stylesheet.
2160 + Allow partial dates: `YYYY`, `YYYY-MM`.
2162 * Markdown writer: Fix rendering of tight sublists (#1050).
2163 Previously a spurious blank line was included after a tight sublist.
2165 * ODT writer: Add `draw:name` attribute to `draw:frame` elements (#1069).
2166 This is reported to be necessary to avoid an error from recent
2167 versions of Libre Office when files contain more than one image
2168 Thanks to wmanley for reporting and diagnosing the problem.
2170 * ConTeXt writer: Don't hardcode figure/table placement and numbering.
2171 Instead, let this be set in the template, using `\setupfloat`.
2172 Thanks to on4aa and Aditya Mahajan for the suggestion (#1067).
2174 * Implemented CSL flipflopping spans in DOCX, LaTeX, and HTML writers.
2176 * Fixed bug with markdown intraword emphasis. Closes #1066.
2178 * Docbook writer: Hierarchicalize block content in metadata.
2179 Previously headers just disappeared from block-level metadata
2180 when it was used in templates. Now we apply the 'hierarchicalize'
2181 transformation. Note that a block headed by a level-2 header will
2182 turn into a `<sect1>` element.
2184 * OpenDocument writer: Skip raw HTML (#1035).
2185 Previously it was erroneously included as verbatim text.
2187 * HTML/EPUB writer, footnotes: Put `<sup>` tag inside `<a>` tags.
2188 This allows better control of formatting, since the `<a>`
2189 tags have a distinguishing class (#1049).
2193 + Use mime type info returned by fetchItem.
2194 + Fixed core metadata (#1046).
2195 Don't create empty date nodes if no date given.
2196 Don't create multiple `dc:creator` nodes; instead separate by
2198 + Fix URL for core-properties in `_rels/.rels` (#1046).
2200 * Plain writer: don't print `<span>` tags.
2204 + Fix definition lists with internal links in terms (#1032).
2205 This fix puts braces around a term that contains an internal
2206 link, to avoid problems with square brackets.
2207 + Properly escape pdftitle, pdfauthor (#1059).
2208 + Use booktabs package for tables (thanks to Jose Luis Duran).
2210 * Updated beamer template. Now references should work properly
2211 (in a slide) when `--biblatex` or `--natbib` is used.
2215 + Parse contents of curly quotes or matched `"` as quotes.
2216 + Support `\textnormal` as span with class `nodecor`.
2217 This is needed for pandoc-citeproc.
2218 + Improved citation parsing. This fixes a run-time error that occured
2219 with `\citet{}` (empty list of keys). It also ensures that empty keys
2222 * MediaWiki reader: Add automatic header identifiers.
2226 + Use pandoc `Div` and `Span` for raw `<div>`, `<span>` when
2228 + Recognize `svg` tags as block level content (thanks to MinRK).
2229 + Parse LaTeX math if appropriate options are set.
2233 + Yaml block must start immediately after `---`. If there's a blank
2234 line after `---`, we interpreted it as a horizontal rule.
2235 + Correctly handle empty bullet list items.
2236 + Stop parsing "list lines" when we hit a block tag.
2237 This fixes exponential slowdown in certain input, e.g.
2238 a series of lists followed by `</div>`.
2240 * Slides: Preserve `<div class="references">` in references slide.
2242 * `Text.Pandoc.Writer.Shared`:
2244 + Fixed bug in `tagWithAttrs`. A space was omitted before key-value
2245 attributes, leading to invalid HTML.
2246 + `normalizeDate`: Allow dates with year only (thanks to Shaun Attfield).
2247 + Fixed bug in `openURL` with `data:` URIs. Previously the base-64
2248 encoded bytestring was returned. We now decode it so it's a proper
2251 * DocBook reader: Handle numerical attributes starting with decimal.
2252 Also use `safeRead` instead of `read`.
2254 * `Text.Pandoc.Readers.TexMath`: Export `readTeXMath'`, which attends
2255 to display/inline. Deprecate `readTeXMath`, and use `readTeXMath'`
2256 in all the writers. Require `texmath >= 0.6.5.2`.
2258 * `Text.Pandoc.MIME`:
2260 + Add entry for `jfif`.
2261 + In looking up extensions, drop the encoding info.
2262 E.g. for 'image/jpg;base64' we should lookup 'image/jpg'.
2264 * Templates: Changed how array variables are resolved. Previously if
2265 `foo` is an array (which might be because multiple values were set on
2266 the command line), `$foo$` would resolve to the concatenation of the
2267 elements of foo. This is rarely useful behavior. It has been changed
2268 so that the first value is rendered. Of course, you can still iterate
2269 over the values using `$for(foo)$`. This has the result that you can
2270 override earlier settings using `-V` by putting new values later on the
2271 command line, which is useful for many purposes.
2273 * `Text.Pandoc`: Don't default to `pandocExtensions` for all writers.
2275 * Allow "epub2" as synonym for "epub", "html4" for "html".
2277 * Don't look for slidy files in data files with `--self-contained`.
2279 * Allow `https:` command line arguments to be downloaded.
2281 * Fixed `make_osx_package.sh` so data files embedded in `pandoc-citeproc`.
2285 * `Text.Pandoc.Definition`: Changed default JSON serialization format.
2286 Instead of `{"Str": "foo"}`, for example, we now have `{"t": "Str",
2287 "c": "foo"}`. This new format is easier to work with outside of Haskell.
2288 Incidentally, "t" stands for "tag", "c" for "contents".
2290 * MediaWiki reader: Trim contents of `<math>` tags, to avoid problems
2291 when converting to markdown (#1027).
2295 + Ensure that preamble doesn't contribute to the text of
2297 + Fixed character escaping in \url{}. Previously `\~` wasn't handled
2298 properly, among others.
2299 + Parse `{groups}` as `Span`. This is needed for accurate conversion of
2300 bibtex titles, since we need to know what was protected from
2301 titlecase conversions.
2305 + Specially escape non-ascii characters in labels.
2306 Otherwise we can get compile errors and other bugs when
2307 compiled with pdflatex (#1007). Thanks to begemotv2718 for the fix.
2308 + Add link anchors for code blocks with identifiers (#1025).
2310 * Throughout the code, use `isURI` instead of `isAbsoluteURI`.
2311 It allows fragments identifiers.
2315 + A Div element with class "notes" is treated as speaker
2316 notes. Currently beamer goes to `\note{}`, revealjs to
2317 `<aside class="notes">`, and the notes are simply suppressed in
2318 other formats (#925).
2319 + Fixed `. . .` (pause) on HTML slide formats. Closes #1029.
2320 The old version caused a pause to be inserted before the first
2321 material on a slide. This has been fixed.
2322 + Removed data files for s5, slideous, slidy.
2323 Users of s5 and slideous will have to download the needed
2324 files, as has been documented for some time in the README.
2325 By default, slidy code will be sought on the web, as before.
2327 * HTML writer: Insert command to typeset mathjax only in slideous output
2330 * RST writer: Skip spaces after display math. Otherwise we get indentation
2331 problems, and part of the next paragraph may be rendered as part of the
2334 * OpenDocument writer: Fix formatting of strikeout code (#995),
2335 thanks to wilx. don't use `font-face-decls` variable.
2337 * Fixed test suite so it works with cabal sandboxes.
2341 * Removed `stringable` dependency.
2345 * Allow `--metadata` to be repeated for the same key to form a list.
2346 This also has the effect that `--bibliography` can be repeated,
2349 * Handle boolean values in `--metadata`. Note that anything not parseable
2350 as a YAML boolean or string is treated as a literal string.
2351 You can get a string value with "yes", or any of the strings interpretable
2352 as booleans, by quoting it:
2354 -M boolvalue=yes -M stringvalue='"yes"'
2356 * LaTeX writer: Don't print references if `--natbib` or `--biblatex`
2359 * DOCX writer: Add `settings.xml` to the zip container. Fixes a bug
2360 in which docx files could not be read by some versions of Word
2361 and LibreOffice (#990).
2363 * Fixed a regression involving slide shows with bibliographies.
2364 The Div container around references messed up the procedure for carving
2365 a document into slides. So we now remove the surrounding Div in
2368 * More informative error message when a filter is not found in path.
2370 * Depend on pandoc-types 1.12.1. This provide `ToJSONFilter`
2371 instances for `Data a => a -> [a]` and `Data a => a -> IO [a]`.
2373 * Don't use unicode_collation in building OSX package:
2374 it adds something like 50MB of dependencies to the package.
2376 * Declare alex and happy as build-tools (#986).
2382 * Much more flexible metadata, including arbitrary fields and structured
2383 values. Metadata can be specified flexibly in pandoc markdown using
2384 YAML metadata blocks, which may occur anywhere in the document:
2387 title: Here is my title.
2389 This is the abstract.
2395 tags: [cat, dog, animal]
2398 Metadata fields automatically populate template variables.
2400 * Added `opml` (OPML) as input and output format. The `_note` attribute,
2401 used in OmniOutliner and supported by multimarkdown, is supported.
2402 We treat the contents as markdown blocks under a section header.
2404 * Added `haddock` (Haddock markup) as input format (David Lazar).
2406 * Added `revealjs` output format, for reveal.js HTML 5 slide shows.
2407 (Thanks to Jamie F. Olson for the initial patch.)
2408 Nested vertical stacks are used for hierarchical structure.
2409 Results for more than one level of nesting may be odd.
2411 * Custom writers can now be written in lua.
2413 pandoc -t data/sample.lua
2415 will load the script sample.lua and use it as a custom writer.
2416 (For a sample, do `pandoc --print-default-data-file sample.lua`.)
2417 Note that pandoc embeds a lua interpreter, so lua need not be
2418 installed separately.
2420 * New `--filter/-F` option to make it easier to run "filters"
2421 (Pandoc AST transformations that operate on JSON serializations).
2422 Filters are always passed the name of the output format, so their
2423 behavior can be tailored to it. The repository
2424 <https://github.com/jgm/pandocfilters> contains
2425 a python module for writing pandoc filters in python, with
2426 a number of examples.
2428 * Added `--metadata/-M` option.
2429 This is like `--variable/-V`, but actually adds to metadata, not
2432 * Added `--print-default-data-file` option, which allows printing
2433 of any of pandoc's data files. (For example,
2434 `pandoc --print-default-data-file reference.odt` will print
2437 * Added syntax for "pauses" in slide shows:
2445 * New markdown extensions:
2447 + `ignore_line_breaks`: causes intra-paragraph line breaks to be ignored,
2448 rather than being treated as hard line breaks or spaces. This is useful
2449 for some East Asian languages, where spaces aren't used between words,
2450 but text is separated into lines for readability.
2451 + `yaml_metadata_block`: Parse YAML metadata blocks. (Default.)
2452 + `ascii_identifiers`: This will force `auto_identifiers` to use ASCII
2453 only. (Default for `markdown_github`.) (#807)
2454 + `lists_without_preceding_blankline`: Allow lists to start without
2455 preceding blank space. (Default for `markdown_github`.) (#972)
2459 * `--toc-level` no longer implies `--toc`.
2460 Reason: EPUB users who don't want a visible TOC may still want
2461 to set the TOC level for in the book navigation.
2463 * `--help` now prints in and out formats in alphabetical order, and
2464 says something about PDF output (#720).
2466 * `--self-contained` now returns less verbose output (telling you
2467 which URLs it is fetching, but not giving the full header). In
2468 addition, there are better error messages when fetching a URL fails.
2470 * Citation support is no longer baked in to core pandoc. Users who
2471 need citations will need to install and use a separate filter
2472 (`--filter pandoc-citeproc`). This filter will take `bibliography`,
2473 `csl`, and `citation-abbreviations` from the metadata, though it
2474 may still be specified on the command line as before.
2476 * A `Cite` element is now created in parsing markdown whether or not
2477 there is a matching reference.
2479 * The `pandoc-citeproc` script will put the bibliography at the
2480 end of the document, as before. However, it will be put inside a `Div`
2481 element with class "references", allowing users some control
2482 over the styling of references. A final header, if any, will
2483 be included in the `Div`.
2485 * The markdown writer will not print a bibliography if the
2486 `citations` extension is enabled. (If the citations are formatted
2487 as markdown citations, it is redundant to have a bibliography,
2488 since one will be generated automatically.)
2490 * Previously we used to store the directory of the first input file,
2491 even if it was local, and used this as a base directory for finding
2492 images in ODT, EPUB, Docx, and PDF. This has been confusing to many
2493 users. So we now look for images relative to the current
2494 working directory, even if the first file argument is in another
2495 directory. Note that this change may break some existing workflows.
2496 If you have been assuming that relative links will be interpreted
2497 relative to the directory of the first file argument, you'll need
2498 to make that the current directory before running pandoc. (#942)
2500 * Better error reporting in some readers, due to changes in `readWith`:
2501 the line in which the error occured is printed, with a caret pointing
2504 * All slide formats now support incremental slide view for definition lists.
2506 * Parse `\(..\)` and `\[..\]` as math in MediaWiki reader.
2507 Parse `:<math>...</math>` as display math. These notations are used with
2508 the MathJax MediaWiki extension.
2510 * All writers: template variables are set automatically from metadata
2511 fields. However, variables specified on the command line with
2512 `--variable` will completely shadow metadata fields.
2514 * If `--variable` is used to set many variables with the same name,
2517 * Man writer: The `title`, `section`, `header`, and `footer` can now
2518 all be set individually in metadata. The `description` variable has been
2519 removed. Quotes have been added so that spaces are allowed in the
2520 title. If you have a title that begins
2522 COMMAND(1) footer here | header here
2524 pandoc will still parse it into a title, section, header, and
2525 footer. But you can also specify these elements explicitly (#885).
2529 + Added support for YAML metadata blocks, which can come anywhere
2530 in the document (not just at the beginning). A document can contain
2531 multiple YAML metadata blocks.
2532 + HTML span and div tags are parsed as pandoc Span and Div elements.
2536 + Allow simple tables to be printed as grid tables,
2537 if other table options are disabled. This means you can do
2538 `pandoc -t markdown-pipe_tables-simple_tables-multiline_tables`
2539 and all tables will render as grid tables.
2540 + Support YAML title block (render fields in alphabetical order
2541 to make output predictable).
2545 * `Meta` in `Text.Pandoc.Definition` has been changed to allow
2546 structured metadata. (Note: existing code that pattern-matches
2547 on `Meta` will have to be revised.) Metadata can now contain
2548 indefinitely many fields, with content that can be a string,
2549 a Boolean, a list of `Inline` elements, a list of `Block`
2550 elements, or a map or list of these.
2552 * A new generic block container (`Div`) has been added to `Block`,
2553 and a generic inline container (`Span`) has been added to `Inline`.
2554 These can take attributes. They will render in HTML, Textile,
2555 MediaWiki, Org, RST and and Markdown (with `markdown_in_html`
2556 extension) as HTML `<div>` and `<span>` elements; in other formats
2557 they will simply pass through their contents. But they can be
2558 targeted by scripts.
2560 * `Format` is now a newtype, not an alias for String.
2561 Equality comparisons are case-insensitive.
2563 * Added `Text.Pandoc.Walk`, which exports hand-written tree-walking
2564 functions that are much faster than the SYB functions from
2565 `Text.Pandoc.Generic`. These functions are now used where possible
2566 in pandoc's code. (`Tests.Walk` verifies that `walk` and `query`
2567 match the generic traversals `bottomUp` and `queryWith`.)
2569 * Added `Text.Pandoc.JSON`, which provides `ToJSON` and `FromJSON`
2570 instances for the basic pandoc types. They use GHC generics and
2571 should be faster than the old JSON serialization using
2572 `Data.Aeson.Generic`.
2574 * Added `Text.Pandoc.Process`, exporting `pipeProcess`.
2575 This is a souped-up version of `readProcessWithErrorcode` that
2576 uses lazy bytestrings instead of strings and allows setting
2577 environment variables. (Used in `Text.Pandoc.PDF`.)
2579 * New module `Text.Pandoc.Readers.OPML`.
2581 * New module `Text.Pandoc.Writers.OPML`.
2583 * New module `Text.Pandoc.Readers.Haddock` (David Lazar).
2584 This is based on Haddock's own lexer/parser.
2586 * New module `Text.Pandoc.Writers.Custom`.
2588 * In `Text.Pandoc.Shared`, `openURL` and `fetchItem` now return an
2589 Either, for better error handling.
2591 * Made `stringify` polymorphic in `Text.Pandoc.Shared`.
2593 * Removed `stripTags` from `Text.Pandoc.XML`.
2595 * `Text.Pandoc.Templates`:
2597 + Simplified `Template` type to a newtype.
2599 + Changed type of `renderTemplate`: it now takes a JSON context
2600 and a compiled template.
2601 + Export `compileTemplate`.
2602 + Export `renderTemplate'` that takes a string instead of a compiled
2604 + Export `varListToJSON`.
2606 * `Text.Pandoc.PDF` exports `makePDF` instead of `tex2pdf`.
2610 + Made `toJsonFilter` an alias for `toJSONFilter` from `Text.Pandoc.JSON`.
2611 + Removed `ToJsonFilter` typeclass. `ToJSONFilter` from
2612 `Text.Pandoc.JSON` should be used instead. (Compiling against
2613 pandoc-types instead of pandoc will also produce smaller executables.)
2614 * Removed the deprecated `jsonFilter` function.
2615 + Added `readJSON`, `writeJSON` to the API (#817).
2617 * `Text.Pandoc.Options`:
2619 + Added `Ext_lists_without_preceding_blankline`,
2620 `Ext_ascii_identifiers`, `Ext_ignore_line_breaks`,
2621 `Ext_yaml_metadataBlock` to `Extension`.
2622 + Changed `writerSourceDirectory` to `writerSourceURL` and changed the
2623 type to a `Maybe`. `writerSourceURL` is set to 'Just url' when the
2624 first command-line argument is an absolute URL. (So, relative links
2625 will be resolved in relation to the first page.) Otherwise, 'Nothing'.
2626 + All bibliography-related fields have been removed from
2627 `ReaderOptions` and `WriterOptions`: `writerBiblioFiles`,
2628 `readerReferences`, `readerCitationStyle`.
2630 * The `Text.Pandoc.Biblio` module has been removed. Users of the
2631 pandoc library who want citation support will need to use
2632 `Text.CSL.Pandoc` from `pandoc-citeproc`.
2637 * In markdown, don't autolink a bare URI that is followed by `</a>`
2640 * `Text.Pandoc.Shared`
2642 + `openURL` now follows redirects (#701), properly handles `data:`
2643 URIs, and prints diagnostic output to stderr rather than stdout.
2644 + `readDefaultDataFile`: normalize the paths. This fixes bugs in
2645 `--self-contained` on pandoc compiled with `embed_data_files` (#833).
2646 + Fixed `readDefaultDataFile` so it works on Windows.
2647 + Better error messages for `readDefaultDataFile`. Instead of
2648 listing the last path tried, which can confuse people who are
2649 using `--self-contained`, so now we just list the data file name.
2650 + URL-escape pipe characters. Even though these are legal, `Network.URI`
2651 doesn't regard them as legal in URLs. So we escape them first (#535).
2653 * Mathjax in HTML slide shows: include explicit "Typeset" call.
2654 This seems to be needed for some formats (e.g. slideous) and won't
2655 hurt in others (#966).
2659 + On Windows, create temdir in working directory, since the system
2660 temp directory path may contain tildes, which can cause
2661 problems in LaTeX (#777).
2662 + Put temporary output directory in `TEXINPUTS` (see #917).
2663 + `makePDF` tries to download images that are not found locally,
2664 if the first argument is a URL (#917).
2665 + If compiling with `pdflatex` yields an encoding error, offer
2666 the suggestion to use `--latex-engine=xelatex`.
2668 * Produce automatic header identifiers in parsing textile, RST,
2669 and LaTeX, unless `auto_identifiers` extension is disabled (#967).
2671 * `Text.Pandoc.SelfContained`: Strip off fragment, query of relative URL
2672 before treating as a filename. This fixes `--self-contained` when used
2673 with CSS files that include web fonts using the method described here:
2674 <http://paulirish.com/2009/bulletproof-font-face-implementation-syntax/>
2675 (#739). Handle `src` in `embed`, `audio`, `source`, `input` tags.
2677 * `Text.Pandoc.Parsing`: `uri` parser no longer treats punctuation before
2678 percent-encoding, or a `+` character, as final punctuation.
2680 * `Text.Pandoc.ImageSize`: Handle EPS (#903). This change will make
2681 EPS images properly sized on conversion to Word.
2683 * Slidy: Use slidy.js rather than slidy.js.gz.
2684 Reason: some browsers have trouble with the gzipped js file,
2685 at least on the local file system (#795).
2689 + Properly handle blank line at beginning of input (#882).
2690 + Fixed bug in unmatched reference links. The input
2691 `[*infile*] [*outfile*]` was getting improperly parsed:
2692 "infile" was emphasized, but "*outfile*" was literal (#883).
2693 + Allow internal `+` in citation identifiers (#856).
2694 + Allow `.` or `)` after `#` in ATX headers if no `fancy_lists`.
2695 + Do not generate blank title, author, or date metadata elements.
2696 Leave these out entirely if they aren't present.
2697 + Allow backtick code blocks not to be preceded by blank line (#975).
2701 + Correctly handle entities.
2702 + Improved handling of `<pre>` blocks (#927). Remove internal HTML tags
2703 in code blocks, rather than printing them verbatim. Parse attributes
2704 on `<pre>` tag for code blocks.
2706 * HTML reader: Handle non-simple tables (#893). Column widths are read from
2707 `col` tags if present, otherwise divided equally.
2711 + Support alltt environment (#892).
2712 + Support `\textasciitilde`, `\textasciicircum` (#810).
2713 + Treat `\textsl` as emphasized text reader (#850).
2714 + Skip positional options after `\begin{figure}`.
2715 + Support `\v{}` for hacek (#926).
2716 + Don't add spurious ", " to citation suffixes.
2717 This is added when needed in pandoc-citeproc.
2718 + Allow spaces in alignment spec in tables, e.g. `{ l r c }`.
2719 + Improved support for accented characters (thanks to Scott Morrison).
2720 + Parse label after section command and set id (#951).
2724 + Don't insert paragraphs where docutils doesn't.
2725 `rst2html` doesn't add `<p>` tags to list items (even when they are
2726 separated by blank lines) unless there are multiple paragraphs in the
2727 list. This commit changes the RST reader to conform more closely to
2728 what docutils does (#880).
2729 + Improved metadata. Treat initial field list as metadata when
2730 standalone specified. Previously ALL fields "title", "author",
2731 "date" in field lists were treated as metadata, even if not at
2732 the beginning. Use `subtitle` metadata field for subtitle.
2733 + Fixed 'authors' metadata parsing in reST. Semicolons separate
2738 + Allow space before table rows.
2739 + Fixed regression for `<ref>URL</ref>`.
2740 `<` is no longer allowed in URLs, according to the uri parser
2741 in `Text.Pandoc.Parsing`. Added a test case.
2742 + Correctly handle indented preformatted text without preceding
2743 or following blank line.
2744 + Fixed `|` links inside table cells. Improved attribute parsing.
2745 + Skip attributes on table rows. Previously we just crashed if
2746 rows had attributes, now we ignore them.
2747 + Ignore attributes on headers.
2748 + Allow `Image:` for images (#971).
2749 + Parse an image with caption in a paragraph by itself as a figure.
2753 + Don't use ligatures in escaping inline code.
2754 + Fixed footnote numbers in LaTeX/PDF tables. This fixes a bug
2755 wherein notes were numbered incorrectly in tables (#827).
2756 + Always create labels for sections. Previously the labels were only
2757 created when there were links to the section in the document (#871).
2758 + Stop escaping `|` in LaTeX math.
2759 This caused problems with array environments (#891).
2760 + Change `\` to `/` in paths. `/` works even on Windows in LaTeX.
2761 `\` will cause major problems if unescaped.
2762 + Write id for code block to label attribute in LaTeX when listings
2763 is used (thanks to Florian Eitel).
2764 + Scale LaTeX tables so they don't exceed columnwidth.
2765 + Avoid problem with footnotes in unnumbered headers (#940).
2767 * Beamer writer: when creating beamer slides, add `allowframebreaks` option
2768 to the slide if it is one of the header classes. It is recommended
2769 that your bibliography slide have this attribute:
2771 # References {.allowframebreaks}
2773 This causes multiple slides to be created if necessary, depending
2774 on the length of the bibliography.
2776 * ConTeXt writer: Properly handle tables without captions. The old output
2777 only worked in MkII. This should work in MkIV as well (#837).
2779 * MediaWiki writer: Use native mediawiki tables instead of HTML (#720).
2783 + Fixed `--no-highlight` (Alexander Kondratskiy).
2784 + Don't convert to lowercase in email obfuscation (#839).
2785 + Ensure proper escaping in `<title>` and `<meta>` fields.
2789 + Support `--atx-headers` (Max Rydahl Andersen).
2790 + Don't print empty identifier blocks `([[]])` on headers (Max
2795 + Fixing wrong numbered-list indentation in open document format
2796 (Alexander Kondratskiy) (#369).
2797 + `reference.odt`: Added pandoc as "generator" in `meta.xml`.
2798 + Minor changes for ODF 1.2 conformance (#939). We leave the
2799 nonconforming `contextual-spacing` attribute, which is provided by
2800 LibreOffice itself and seems well supported.
2804 + Fixed rendering of display math in lists.
2805 In 1.11 and 1.11.1, display math in lists rendered as a new list
2806 item. Now it always appears centered, just as outside of lists,
2807 and in proper display math style, no matter how far indented the
2808 containing list item is (#784).
2809 + Use `w:br` with `w:type` `textWrapping` for linebreaks.
2810 Previously we used `w:cr` (#873).
2811 + Use Compact style for Plain block elements, to
2812 differentiate between tight and loose lists (#775).
2813 + Ignore most components of `reference.docx`.
2814 We take the `word/styles.xml`, `docProps/app.xml`,
2815 `word/theme/theme1.xml`, and `word/fontTable.xml` from
2816 `reference.docx`, ignoring everything else. This should help
2817 with the corruption problems caused when different versions of
2818 Word resave the reference.docx and reorganize things.
2819 + Made `--no-highlight` work properly.
2823 + Don't add `dc:creator` tags if present in EPUB metadata.
2824 + Add `id="toc-title"` to `h1` in `nav.xhtml` (#799).
2825 + Don't put blank title page in reading sequence.
2826 Set `linear="no"` if no title block. Addresses #797.
2827 + Download webtex images and include as data URLs.
2828 This allows you to use `--webtex` in creating EPUBs.
2829 Math with `--webtex` is automatically made self-contained.
2830 + In `data/epub.css`, removed highlighting styles (which
2831 are no longer needed, since styles are added by the HTML
2832 writer according to `--highlighting-style`). Simplified
2834 + If resource not found, skip it, as in Docx writer (#916).
2838 + Properly handle characters above the 0000-FFFF range.
2839 Uses surrogate pairs. Thanks to Hiromi Ishii for the patch.
2840 + Fixed regression with RTF table of contents.
2841 + Only autolink absolute URIs. This fixes a regression, #830.
2845 + Only autolink absolute URIs. This fixes a regression, #830.
2846 + Don't wrap attributes in fenced code blocks.
2847 + Write full metadata in MMD style title blocks.
2848 + Put multiple authors on separate lines in pandoc titleblock.
2849 Also, don't wrap long author entries, as new lines get treated
2852 * `Text.Pandoc.Templates`:
2854 + Fixed bug retrieving default template for markdown variants.
2855 + Templates can now contain "record lookups" in variables;
2856 for example, `author.institution` will retrieve the `institution`
2857 field of the `author` variable.
2858 + More consistent behavior of `$for$`. When `foo` is not a list,
2859 `$for(foo)$...$endfor$` should behave like $if(foo)$...$endif$.
2860 So if `foo` resolves to "", no output should be produced.
2861 See pandoc-templates#39.
2863 * Citation processing improvements (now part of pandoc-citeproc):
2865 + Fixed `endWithPunct` The new version correctly sees a sentence
2866 ending in '.)' as ending with punctuation. This fixes a bug which
2867 led such sentences to receive an extra period at the end: '.).'.
2868 Thanks to Steve Petersen for reporting.
2869 + Don't interfere with Notes that aren't citation notes.
2870 This fixes a bug in which notes not generated from citations were
2871 being altered (e.g. first letter capitalized) (#898).
2872 + Only capitalize footnote citations when they have a prefix.
2873 + Changes in suffix parsing. A suffix beginning with a digit gets 'p'
2874 inserted before it before passing to citeproc-hs, so that bare numbers
2875 are treated as page numbers by default. A suffix not beginning with
2876 punctuation has a space added at the beginning (rather than a comma and
2877 space, as was done before for not-author-in-text citations).
2878 The result is that `\citep[23]{item1}` in LaTeX will be interpreted
2879 properly, with '23' treated as a locator of type 'page'.
2880 + Many improvements to citation rendering, due to fixes in citeproc-hs
2881 (thanks to Andrea Rossato).
2882 + Warnings are issued for undefined citations, which are rendered
2884 + Fixed hanging behavior when locale files cannot be found.
2888 * DocBook: Use DocBook 4.5 doctype.
2890 * Org: '#+TITLE:' is inserted before the title.
2891 Previously the writer did this.
2893 * LaTeX: Changes to make mathfont work with xelatex.
2894 We need the mathspec library, not just fontspec, for this.
2895 We also need to set options for setmathfont (#734).
2897 * LaTeX: Use `tex-ansi` mapping for `monofont`.
2898 This ensures that straight quotes appear as straight, rather than
2899 being treated as curly. See #889.
2901 * Made `\includegraphics` more flexible in LaTeX template.
2902 Now it can be used with options, if needed. Thanks to Bernhard Weichel.
2904 * LaTeX/Beamer: Added `classoption` variable.
2905 This is intended for class options like `oneside`; it may
2906 be repeated with different options. (Thanks to Oliver Matthews.)
2908 * Beamer: Added `fonttheme` variable. (Thanks to Luis Osa.)
2910 * LaTeX: Added `biblio-style` variable (#920).
2912 * DZSlides: title attribute on title section.
2914 * HTML5: add meta tag to allow scaling by user (Erik Evenson)
2916 [under-the-hood improvements]
2918 * Markdown reader:Improved strong/emph parsing, using the strategy of
2919 <https://github.com/jgm/Markdown>. The new parsing algorithm requires
2920 no backtracking, and no keeping track of nesting levels. It will give
2921 different results in some edge cases, but these should not affect normal
2924 * Added `Text.Pandoc.Compat.Monoid`.
2925 This allows pandoc to compile with `base` < 4.5, where `Data.Monoid`
2926 doesn't export `<>`. Thanks to Dirk Ullirch for the patch.
2928 * Added `Text.Pandoc.Compat.TagSoupEntity`.
2929 This allows pandoc to compile with `tagsoup` 0.13.x.
2930 Thanks to Dirk Ullrich for the patch.
2932 * Most of `Text.Pandoc.Readers.TeXMath` has been moved to the
2933 `texmath` module (0.6.4). (This allows `pandoc-citeproc` to
2934 handle simple math in bibliography fields.)
2936 * Added `Text.Pandoc.Writers.Shared` for shared functions used
2937 only in writers. `metaToJSON` is used in writers to create a
2938 JSON object for use in the templates from the pandoc metadata
2939 and variables. `getField`, `setField`, and `defField` are
2940 for working with JSON template contexts.
2942 * Added `Text.Pandoc.Asciify` utility module.
2943 This exports functions to create ASCII-only versions of identifiers.
2945 * `Text.Pandoc.Parsing`
2947 + Generalized state type on `readWith` (API change).
2948 + Specialize readWith to `String` input. (API change).
2949 + In `ParserState`, replace `stateTitle`, `stateAuthors`, `stateDate`
2950 with `stateMeta` and `stateMeta'`.
2952 * `Text.Pandoc.UTF8`: use strict bytestrings in reading. The use of lazy
2953 bytestrings seemed to cause problems using pandoc on 64-bit Windows
2956 * Factored out `registerHeader` from markdown reader, added to
2957 `Text.Pandoc.Parsing`.
2959 * Removed `blaze_html_0_5` flag, require `blaze-html` >= 0.5.
2960 Reason: < 0.5 does not provide a monoid instance for Attribute,
2961 which is now needed by the HTML writer (#803).
2963 * Added `http-conduit` flag, which allows fetching https resources.
2964 It also brings in a large number of dependencies (`http-conduit`
2965 and its dependencies), which is why for now it is an optional flag
2968 * Added CONTRIBUTING.md.
2970 * Improved INSTALL instructions.
2972 * `make-windows-installer.bat`: Removed explicit paths for executables.
2974 * `aeson` is now used instead of `json` for JSON.
2976 * Set default stack size to 16M. This is needed for some large
2977 conversions, esp. if pandoc is compiled with 64-bit ghc.
2979 * Various small documentation improvements.
2980 Thanks to achalddave and drothlis for patches.
2982 * Removed comment that chokes recent versions of CPP (#933).
2984 * Removed support for GHC version < 7.2, since pandoc-types now
2985 requires at least GHC 7.2 for GHC generics.
2992 + Fixed regression in which parentheses were lost in link URLs.
2993 Added tests. Closes #786.
2994 + Better handling of unmatched double quotes in `--smart` mode.
2995 These occur frequently in fiction, since it is customary not to
2996 close quotes in dialogue if the speaker does not change between
2997 paragraphs. The unmatched quotes now get turned into literal
2998 left double quotes. (No `Quoted` inline is generated, however.)
3001 * HTML writer: Fixed numbering mismatch between TOC and sections.
3002 `--number-offset` now affects TOC numbering as well
3003 as section numbering, as it should have all along. Closes #789.
3005 * Markdown writer: Reverted 1.11 change that caused citations to be rendered
3006 as markdown citations, even if `--bibliography` was specified, unless
3007 `citation` extension is disabled. Now, formatted citations are always
3008 printed if `--bibliography` was specified. If you want to reformat
3009 markdown keeping pandoc markdown citations intact, don't use
3010 `--bibliography`. Note that citations parsed from LaTeX documents will
3011 be rendered as pandoc markdown citations when `--bibliography` is not
3014 * ODT writer: Fixed regression leading to corrupt ODTs.
3015 This was due to a change in the `Show` instance for
3016 `Text.Pandoc.Pretty.Doc`. Closes #780.
3018 * Fixed spacing bugs involving code block attributes in
3019 RST reader and Markdown writer. Closes #763.
3021 * Windows package: Various improvements due to Fyodor Sheremetyev.
3023 + Automatically set installation path (Program Files or Local App Data).
3024 + Set system PATH environment variable when installing for all users.
3025 + Pandoc can installed for all users using the following command.
3026 `msiexec /i pandoc-1.11.msi ALLUSERS=1`.
3028 * Bumped QuickCheck version bound.
3032 * Added `--number-offset` option. (See README for description.)
3034 * Added `--default-image-extension` option. (See README for description.)
3036 * `--number-sections` behavior change: headers with class `unnumbered`
3037 will not be numbered.
3039 * `--version` now reports the default data directory.
3041 * `Text.Pandoc.Parsing` is no longer exposed. (API change.)
3043 * `Text.Pandoc.Highlighting` is no longer exposed. (API change.)
3045 * `Text.Pandoc.Shared`: Changed type of `Element`. `Sec` now includes
3046 a field for `Attr` rather than just `String`. (API change.)
3048 * Added `markdown_github` as input format. This was an accidental
3051 * Added `readerDefaultImageExtension` field to `ReaderOptions`. (API
3054 * Added `writerNumberOffset` field in `WriterOptions`. (API change.)
3058 + Fixed captions with longtable. Thanks to Joost Kremers.
3059 + Provide `\Oldincludegraphics` as in LaTeX template (Benjamin Bannier).
3063 + Load microtype after fonts. Microtype needs to know
3064 what fonts are being used. Thanks to dfc for the patch.
3065 + Set `secnumdepth` to 5 if `--number-sections` specified.
3066 This yields behavior equivalent to the other writers, numbering
3067 level 4 and 5 headers too. Closes #753.
3071 + Handle `<colgroup>` tag.
3072 + Preserve all header attributes.
3076 + Parse `\hrule` as `HorizontalRule`. Closes #746.
3077 + Parse starred variants of `\section` etc. as headers with
3078 attribute `unnumbered`.
3079 + Read optional attributes in `lstlisting` and `Verbatim` environments.
3080 We convert these to pandoc standard names, e.g. `numberLines`
3081 for `numbers=left`, `startFrom=100` from `firstnumber=100`.
3082 + Handle language attribute for lstlistings.
3083 + Better support for Verbatim and minted environments. Closes #763.
3087 + `-` in an attribute context = `.unnumbered`. The point of this
3088 is to provide a way to specify unnumbered headers in non-English
3090 + Fixed bug parsing key/value attributes. Parsing failed if you
3091 had an unquoted attribute immediately before the final '}'.
3092 + Make backslash escape work in attributes.
3093 + Fix title block parsing. Now if `mmd_title_blocks` is specified,
3094 pandoc will parse a MMD title block if it sees one, even if
3095 `pandoc_title_blocks` is enabled.
3096 + Refactoring: `litChar` now includes entities, so we don't need
3097 to use `fromEntities` e.g. on titles.
3098 + Allow spaces around borders in pipe tables. Closes #772.
3099 + Allow all punctuation in angle-bracket autolinks. Previously
3100 things like `----` were disallowed, because the uri parser
3101 treated them as trailing punctuation. Closes #768.
3102 + Make `implicit_header_references` work properly when
3103 headers are given explicit identifiers.
3104 + Check for tables before line blocks. Otherwise some pipe
3105 tables get treated as line blocks.
3106 + Allow `&` in emails (for entities).
3107 + Properly handle entities in titles and links. A markdown link
3108 `<http://göogle.com>` should be a link to `http://göogle.com`.
3113 + Handle attributes on headers.
3117 + Add `fig:` as title for images with captions.
3118 This is needed for them to be rendered as figures. Closes #766.
3119 + Never emit an empty paragraph. See #761.
3120 + Handle `\caption` for images in figures. Closes #766.
3121 + Parse `\section*`, etc. as unnumbered sections.
3125 + Support header attributes. The attributes go on
3126 the enclosing `section` or `div` tag if `--section-divs` is specified.
3127 + Fixed a regression (only now noticed) in html+lhs output.
3128 Previously the bird tracks were being omitted.
3132 + Omit lists with no items to avoid LaTeX errors.
3133 + Support line numbering with `--listings`.
3134 If `numberLines` class is present, we add `numbers=left`;
3135 if `startFrom` is present, we add `firstnumber=`. (#763)
3139 + Removed `\placecontent`. This produced a duplicate toc,
3140 in conjunction with `\placelist`.
3141 + Use `\title`, `\subject` etc. for headers with
3146 + Support header attributes.
3150 + Use grid tables when needed, and if enabled. Closes #740.
3151 + Render citations as pandoc-markdown citations.
3152 Previously citations were rendered as citeproc-formatted citations
3153 by default. Now we render them as pandoc citations, e.g. `[@item1]`,
3154 unless the `citations` extension is disabled.
3155 If you still want formatted citations in your markdown output,
3156 use `pandoc -t markdown-citations`.
3160 + Support `:number-lines:` in code blocks.
3164 + Better treatment of display math. Display math inside a
3165 paragraph is now put in a separate paragraph, so it will render
3166 properly (centered and without extra blank lines around it).
3167 Partially addresses #742.
3168 + Content types and document rels xml files are now created from
3169 scratch, rather than being taken over from `reference.docx`.
3170 This fixes problems that arise when you edit the `reference.docx`
3172 + We also now encode mime types for each individual image rather
3173 than using defaults. This should allow us to handle a wider
3174 range of image types (including PDF). Closes #414.
3175 + Changed style names in `reference docx`.
3176 `FootnoteReference` -> `FootnoteRef`, `Hyperlink` -> `Link`.
3177 The old names got changed by Word when the `reference.docx` was
3178 edited. Closes #414.
3182 + Fix section numbering. Previously the numbering restarted from 1
3183 in each chapter (with `--number-sections`), though the numbers in
3184 the table of contents were correct.
3185 + Headers with "unnumbered" attribute are not numbered. (Nor do they
3186 cause an increment in running numbering.) Section numbers now work
3187 properly, even when there is material before the first numbered section.
3188 + Include HTML TOC, even in epub2. The TOC is included in `<spine>`,
3189 but `linear` is set to `no` unless the `--toc` option is specified.
3190 Include `<guide>` element in OPF. This should allow the TOC to
3191 be useable in Kindles when converted with kindlegen. Closes #773.
3193 * `Text.Pandoc.Parsing`: Optimized `oneOfStringsCI`.
3194 This dramatically reduces the speed penalty that comes from enabling the
3195 `autolink_bare_uris` extension. The penalty is still substantial (in one
3196 test, from 0.33s to 0.44s), but nowhere near what it used to be.
3197 The RST reader is also much faster now, as it autodetects URIs.
3199 * `Text.Pandoc.Shared`: `hierarchicalize` will not number section
3200 with class "unnumbered". Unnumbered sections get `[]` for their
3203 * `Text.Pandoc.Pretty`:
3205 + Fixed `chomp` so it works inside `Prefixed` elements.
3206 + Changed `Show` instance so it is better for debugging.
3208 * `Text.Pandoc.ImageSize`: Added `Pdf` to `ImageType`.
3210 * `Text.Pandoc.UTF8`: Strip off BOM if present. Closes #743.
3212 * Windows installer improvements:
3214 + The installer is now signed with a certificate (thanks to
3215 Fyodor Sheremetyev).
3216 + WiX is used instead of InnoSetup. The installer is now a
3218 + The version number is now auto-detected, and need not be
3221 * OSX installer improvements:
3223 + The package and pandoc executable are now signed with a
3224 certificate (thanks to Fyodor Sheremetyev).
3225 + RTF version of license is used.
3226 + Use full path for sysctl in `InstallationCheck` script (jonahbull).
3229 * Converted COPYING to markdown.
3231 * pandoc.cabal: Require latest versions of highlighting-kate,
3232 texmath, citeproc-hs, zip-archive.
3236 * Markdown reader: various optimizations, leading to a
3237 significant performance boost.
3239 * RST reader: Allow anonymous form of inline links:
3240 `` `hello <url>`__ `` Closes #724.
3242 * Mediawiki reader: Don't require newlines after tables.
3243 Thanks to jrunningen for the patch. Closes #733.
3245 * Fixed LaTeX macro parsing. Now LaTeX macro definitions are preserved
3246 when output is LaTeX, and applied when it is another format.
3247 Partially addresses #730.
3249 * Markdown and RST readers: Added parser to `block` that skips blank
3250 lines. This fixes a subtle regression involving grid tables with
3251 empty cells. Also added test for grid table with empty cells.
3254 * RST writer: Use `.. code:: language` for code blocks with language.
3257 * DocBook writer: Fixed output for hard line breaks, adding a newline
3258 between `<literallayout>` tags.
3260 * Markdown writer: Use an autolink when link text matches url.
3261 Previously we also checked for a null title, but this
3262 test fails for links produced by citeproc-hs in bibliographies.
3263 So, if the link has a title, it will be lost on conversion
3264 to an autolink, but that seems okay.
3266 * Markdown writer: Set title, author, date variables as before.
3267 These are no longer used in the default template, since we use
3268 titleblock, but we set them anyway for those who use custom templates.
3270 * LaTeX writer: Avoid extra space at start/end of table cell.
3271 Thanks to Nick Bart for the suggestion of using @{}.
3273 * `Text.Pandoc.Parsing`:
3275 + More efficient version of `anyLine`.
3276 + Type of `macro` has changed; the parser now returns `Blocks`
3279 * Relaxed old-time version bound, allowing 1.0.*.
3281 * Removed obsolete `hsmarkdown` script. Those who need `hsmarkdown`
3282 should create a symlink as described in the README.
3286 * Markdown reader: Try `lhsCodeBlock` before `rawTeXBlock`. Otherwise
3287 `\begin{code}...\end{code}` isn't handled properly in markdown+lhs.
3288 Thanks to Daniel Miot for noticing the bug and suggesting the fix.
3290 * Markdown reader: Fixed bug with headerless grid tables.
3291 The 1.10 code assumed that each table header cell contains exactly one
3292 block. That failed for headerless tables (0) and also for tables with
3293 multiple blocks in a header cell. The code is fixed and tests provided.
3294 Thanks to Andrew Lee for pointing out the bug.
3296 * Markdown reader: Fixed regressions in fenced code blocks. Closes #722.
3298 + Tilde code fences can again take a bare language string
3299 (`~~~ haskell`), not just curly-bracketed attributes
3301 + Backtick code blocks can take the curly-bracketed attributes.
3302 + Backtick code blocks don't *require* a language.
3303 + Consolidated code for the two kinds of fenced code blocks.
3305 * LaTeX template: Use `\urlstyle{same}` to avoid monospace URLs.
3307 * Markdown writer: Use proportional font for email autolinks with
3308 obfuscation. Closes #714.
3310 * Corrected name of `blank_before_blockquote` in README. Closes #718.
3312 * `Text.Pandoc.Shared`: Fixed bug in `uri` parser.
3313 The bug prevented an autolink at the end of a string (e.g.
3314 at the end of a line block line) from counting as a link. Closes #711.
3316 * Use the `hsb2hs` preprocessor instead of TH for embed_data_files.
3317 This should work on Windows, unlike the TH solution with
3320 * Eliminated use of TH in test suite.
3322 * Added `Text.Pandoc.Data` (non-exported) to hold the association
3323 list of embedded data files, if the `embed_data_files` flag is selected.
3324 This isolates the code that needs special treatment with file-embed or
3327 * Changes to `make-windows-installer.bat`.
3329 + Exit batch file if any of the cabal-dev installs fail.
3330 + There's no longer any need to reinstall `highlighting-kate`.
3331 + Don't start with a `cabal update`; leave that to the user.
3332 + Force reinstall of pandoc.
3334 * Fixed EPUB writer so it builds with blaze-html 0.4.x. Thanks to
3339 * Fixed bug with escaped % in LaTeX reader. Closes #710.
3343 * Added further missing fb2 tests to cabal file.
3347 * Added fb2 tests to cabal file's extra-source-files.
3351 * Bump version bounds on test-framework packages.
3357 * New input formats: `mediawiki` (MediaWiki markup).
3359 * New output formats: `epub3` (EPUB v3 with MathML),
3360 `fb2` (FictionBook2 ebooks).
3362 * New `--toc-depth` option, specifying how many levels of
3363 headers to include in a table of contents.
3365 * New `--epub-chapter-level` option, specifying the header
3366 level at which to divide EPUBs into separate files.
3367 Note that this normally affects only performance, not the
3368 visual presentation of the EPUB in a reader.
3370 * Removed the `--strict` option. Instead of using `--strict`,
3371 one can now use the format name `markdown_strict` for either input
3372 or output. This gives more fine-grained control that `--strict`
3373 did, allowing one to convert from pandoc's markdown to strict
3374 markdown or vice versa.
3376 * It is now possible to enable or disable specific syntax
3377 extensions by appending them (with `+` or `-`) to the writer
3378 or reader name. For example,
3380 pandoc -f markdown-footnotes+hard_line_breaks
3382 disables footnotes and enables treating newlines as hard
3383 line breaks. The literate Haskell extensions are now implemented
3384 this way as well, using either `+lhs` or `+literate_haskell`.
3385 For a list of extension names, see the README under
3386 "Pandoc's Markdown."
3388 * The following aliases have been introduced for specific
3389 combinations of markdown extensions: `markdown_phpextra`,
3390 `markdown_github`, `markdown_mmd`, `markdown_strict`. These aliases
3391 work just like regular reader and writer names, and can be modified
3392 with extension modifiers as described above. (Note that conversion
3393 from one markdown dialect to another does not work perfectly,
3394 because there are differences in markdown parsers besides
3395 just the extensions, and because pandoc's internal document model is
3396 not rich enough to capture all of the extensions.)
3398 * New `--html-q-tags` option. The previous default was to use `<q>`
3399 tags for smart quotes in HTML5. But `<q>` tags are also valid HTML4.
3400 Moreover, they are not a robust way of typesetting quotes, since
3401 some user agents don't support them, and some CSS resets (e.g.
3402 bootstrap) prevent pandoc's quotes CSS from working properly.
3403 We now just insert literal quote characters by default in both
3404 `html` and `html5` output, but this option is provided for
3405 those who still want `<q>` tags.
3407 * The markdown reader now prints warnings (to stderr) about
3408 duplicate link and note references. Closes #375.
3410 * Markdown syntax extensions:
3412 + Added pipe tables. Thanks to François Gannaz for the initial patch.
3413 These conform to PHP Markdown Extra's pipe table syntax. A subset
3414 of org-mode table syntax is also supported, which means that you can
3415 use org-mode's nice table editor to create tables.
3417 + Added support for RST-style line blocks. These are
3418 useful for verse and addresses.
3420 + Attributes can now be specified for headers, using the same
3421 syntax as in code blocks. (However, currently only the
3422 identifier has any effect in most writers.) For example,
3426 See [the header above](#foo).
3428 + Pandoc will now act as if link references have been defined
3429 for all headers without explicit identifiers.
3430 So, you can do this:
3434 Link to [My header].
3435 Another link to [it][My header].
3441 + Command macros now work everywhere, including non-math.
3442 Environment macros still not supported.
3443 + `\input` now works, as well as `\include`. TEXINPUTS is used.
3444 Pandoc looks recursively into included files for more included files.
3448 * The Markdown reader no longer puts the text of autolinks in a
3449 `Code` inline. This means that autolinks will no longer appear
3450 in a monospace font.
3452 * The character `/` can now appear in markdown citation keys.
3454 * HTML blocks in strict_markdown are no longer required to begin
3455 at the left margin. Technically this is required, according to
3456 the markdown syntax document, but `Markdown.pl` and other markdown
3457 processors are more liberal.
3459 * The `-V` option has been changed so that if there are duplicate
3460 variables, those specified later on the command line take precedence.
3462 * Tight lists now work in LaTeX and ConTeXt output.
3464 * The LaTeX writer no longer relien on the `enumerate` package.
3465 Instead, it uses standard LaTeX commands to change the list numbering
3468 * The LaTeX writer now uses `longtable` instead of `ctable`. This allows
3469 tables to be split over page boundaries.
3471 * The RST writer now uses a line block to render paragraphs containing
3472 linebreaks (which previously weren't supported at all).
3474 * The markdown writer now applies the `--id-prefix` to footnote IDs.
3477 * The plain writer no longer uses backslash-escaped line breaks
3478 (which are not very "plain").
3480 * `Text.Pandoc.UTF8`: Better error message for invalid UTF8.
3481 Read bytestring and use `Text`'s decodeUtf8 instead of using
3482 `System.IO.hGetContents`. This way you get a message saying
3483 "invalid UTF-8 stream" instead of "invalid byte sequence."
3484 You are also told which byte caused the problem.
3486 * Docx, ODT, and EPUB writers now download images specified by a URL
3487 instead of skipping them or raising an error.
3491 + The default CSS now left-aligns headers by default, instead of
3492 centering. This is more consistent with the rest of the writers.
3493 + A proper multi-level table of contents is now used in `toc.ncx`.
3494 There is no longer a subsidiary table of contents at the beginning
3496 + Code highlighting now works by default.
3497 + Section divs are used by default for better semantic markup.
3498 + The title is used instead of "Title Page" in the table of contents.
3499 Otherwise we have a hard-coded English string, which looks
3500 strange in ebooks written in other languages. Closes #572.
3504 + Put mathjax in span with class "math". Closes #562.
3505 + Put citations in a span with class "citation." In HTML5, also include
3506 a `data-cite` attribute with a space-separated list of citation
3509 * `Text.Pandoc.UTF8`: use universalNewlineMode in reading.
3510 This treats both `\r\n` and `\n` as `\n` on input, no matter
3511 what platform we're running on.
3513 * Citation processing is now done in the Markdown and LaTeX
3514 readers, not in `pandoc.hs`. This makes it easier for library users
3519 * HTML: Added css to template to preserve spaces in `<code>` tags.
3520 Thanks to Dirk Laurie.
3522 * Beamer: Remove English-centric strings in section pages.
3523 Section pages used to have "Section" and a number as well as the
3524 section title. Now they just have the title. Similarly for part
3525 and subsection. Closes #566.
3527 * LaTeX, ConTeXt: Added papersize variable.
3529 * LaTeX, Beamer templates: Use longtable instead of ctable.
3531 * LaTeX, Beamer templates: Don't require 'float' package for tables.
3532 We don't actually seem to use the '[H]' option.
3534 * LaTeX: Use `upquote` package if it is available. This fixes
3535 straight quotes in verbatim environments.
3537 * Markdown, plain: Fixed titleblock so it is just a single string.
3538 Previously separate title, author, and date variables were used,
3539 but this didn't allow different kinds of title blocks.
3543 + Rationalized templates. Previously there were three different
3544 templates involved in epub production. There is now just one
3545 template, `default.epub` or `default.epub3`. It can now be
3546 overridden using `--template`, just like other templates.
3547 The titlepage is now folded into the default template.
3548 A `titlepage` variable selects it.
3549 + UTF-8, lang tag, meta tags, title element.
3551 * Added scale-to-width feature to beamer template
3555 * `Text.Pandoc.Definition`: Added `Attr` field to `Header`.
3556 Previously header identifers were autogenerated by the writers.
3557 Now they are added in the readers (either automatically or explicitly).
3559 * `Text.Pandoc.Builder`:
3561 + `Inlines` and `Blocks` are now synonyms for `Many Inline` and
3562 `Many Block`. `Many` is a newtype wrapper around `Seq`, with
3563 custom Monoid instances for `Many Inline` and `Many Block. This
3564 allows `Many` to be made an instance of `Foldable` and `Traversable`.
3565 + The old `Listable` class has been removed.
3566 + The module now exports `isNull`, `toList`, `fromList`.
3567 + The old `Read` and `Show` instances have been removed; derived
3568 instances are now used.
3569 + Added `headerWith`.
3571 * The readers now take a `ReaderOptions` rather than a `ParserState`
3572 as a parameter. Indeed, not all parsers use the `ParserState` type;
3573 some have a custom state. The motivation for this change was to separate
3574 user-specifiable options from the accounting functions of parser state.
3576 * New module `Text.Pandoc.Options`. This includes the `WriterOptions`
3577 formerly in `Text.Pandoc.Shared`, and its associated
3578 data types. It also includes a new type `ReaderOptions`, which
3579 contains many options formerly in `ParserState`, and its associated
3582 + `ParserState.stateParseRaw` -> `ReaderOptions.readerParseRaw`.
3583 + `ParserState.stateColumns` -> `ReaderOptions.readerColumns`.
3584 + `ParserState.stateTabStop` -> `ReaderOptions.readerTabStop`.
3585 + `ParserState.stateOldDashes` -> `ReaderOptions.readerOldDashes`.
3586 + `ParserState.stateLiterateHaskell` -> `ReaderOptions.readerLiterateHaskell`.
3587 + `ParserState.stateCitations` -> `ReaderOptions.readerReferences`.
3588 + `ParserState.stateApplyMacros` -> `ReaderOptions.readerApplyMacros`.
3589 + `ParserState.stateIndentedCodeClasses` ->
3590 `ReaderOptions.readerIndentedCodeClasses`.
3591 + Added `ReaderOptions.readerCitationStyle`.
3593 * `WriterOptions` now includes `writerEpubVersion`, `writerEpubChapterLevel`,
3594 `writerEpubStylesheet`, `writerEpubFonts`, `writerReferenceODT`,
3595 `writerReferenceDocx`, and `writerTOCDepth`. `writerEPUBMetadata` has
3596 been renamed `writerEpubMetadata` for consistency.
3598 * Changed signatures of `writeODT`, `writeDocx`, `writeEPUB`, since they no
3599 longer stylesheet, fonts, reference files as separate parameters.
3601 * Removed `writerLiterateHaskell` from `WriterOptions`, and
3602 `readerLiterateHaskell` from `ReaderOptions`. LHS is now handled
3603 by an extension (`Ext_literate_haskell`).
3605 * Removed deprecated `writerXeTeX`.
3607 * Removed `writerStrict` from `WriterOptions`. Added `writerExtensions`.
3608 Strict is now handled through extensions.
3610 * `Text.Pandoc.Options` exports `pandocExtensions`, `strictExtensions`,
3611 `phpMarkdownExtraExtensions`, `githubMarkdownExtensions`,
3612 and `multimarkdownExtensions`, as well as the `Extensions` type.
3614 * New `Text.Pandoc.Readers.MediaWiki` module, exporting
3617 * New `Text.Pandoc.Writers.FB2` module, exporting `writeFB2`
3618 (thanks to Sergey Astanin).
3622 + Added `getReader`, `getWriter` to `Text.Pandoc`.
3623 + `writers` is now an association list `(String, Writer)`.
3624 A `Writer` can be a `PureStringWriter`, an `IOStringWriter`, or
3625 an `IOByteStringWriter`. ALL writers are now in the 'writers'
3626 list, including the binary writers and FB2 writer. This allows
3627 code in `pandoc.hs` to be simplified.
3628 + Changed type of `readers`, so all readers are in IO.
3629 Users who want pure readers can still get them form the reader
3630 modules; this just affects the function `getReader` that looks up
3631 a reader based on the format name. The point of this change is to
3632 make it possible to print warnings from the parser.
3634 * `Text.Pandoc.Parsing`:
3636 + `Text.Parsec` now exports all Parsec functions used in pandoc code.
3637 No other module directly imports Parsec. This will make it easier
3638 to change the parsing backend in the future, if we want to.
3639 + `Text.Parsec` is used instead of `Text.ParserCombinators.Parsec`.
3640 + Export the type synonym `Parser`.
3641 + Export `widthsFromIndices`, `NoteTable'`, `KeyTable'`, `Key'`, `toKey'`,
3642 `withQuoteContext`, `singleQuoteStart`, `singleQuoteEnd`,
3643 `doubleQuoteStart`, `doubleQuoteEnd`, `ellipses`, `apostrophe`,
3644 `dash`, `nested`, `F(..)`, `askF`, `asksF`, `runF`, `lineBlockLines`.
3645 + `ParserState` is no longer an instance of `Show`.
3646 + Added `stateSubstitutions` and `stateWarnings` to `ParserState`.
3647 + Generalized type of `withQuoteContext`.
3648 + Added `guardEnabled`, `guardDisabled`, `getOption`.
3649 + Removed `failIfStrict`.
3650 + `lookupKeySrc` and `fromKey` are no longer exported.
3652 * `Data.Default` instances are now provided for `ReaderOptions`,
3653 `WriterOptions`, and `ParserState`. `Text.Pandoc` re-exports `def`.
3654 Now you can use `def` (which is re-exported by `Text.Pandoc`) instead
3655 of `defaultWriterOptions` (which is still defined). Closes #546.
3657 * `Text.Pandoc.Shared`:
3660 + Renamed `removedLeadingTrailingSpace` to `trim`,
3661 `removeLeadingSpace` to `triml`, and `removeTrailingSpace` to `trimr`.
3662 + Count `\r` as space in `trim` functions.
3663 + Moved `renderTags'` from HTML reader and `Text.Pandoc.SelfContained`
3665 + Removed `failUnlessLHS`.
3666 + Export `compactify'`, formerly in Markdown reader.
3667 + Export `isTightList`.
3668 + Do not export `findDataFile`.
3669 + `readDataFile` now returns a strict ByteString.
3670 + Export `readDataFileUTF8` which returns a String, like the
3672 + Export `fetchItem` and `openURL`.
3674 * `Text.Pandoc.ImageSize`: Use strict, not lazy bytestrings.
3675 Removed `readImageSize`.
3677 * `Text.Pandoc.UTF8`: Export `encodePath`, `decodePath`,
3678 `decodeArg`, `toString`, `fromString`, `toStringLazy`,
3681 * `Text.Pandoc.UTF8` is now an exposed module.
3683 * `Text.Pandoc.Biblio`:
3685 + csl parameter now a `String` rather than a `FilePath`.
3686 + Changed type of `processBiblio`. It is no longer in the IO monad.
3687 It now takes a `Maybe Style` argument rather than parameters for CSL
3688 and abbrev filenames. (`pandoc.hs` now calls the functions to parse
3689 the style file and add abbreviations.)
3691 * Markdown reader now exports `readMarkdownWithWarnings`.
3693 * `Text.Pandoc.RTF` now exports `writeRTFWithEmbeddedImages` instead of
3698 * Make `--ascii` work properly with `--self-contained`. Closes #568.
3702 + Fixed link parser to avoid exponential slowdowns. Closes #620.
3703 Previously the parser would hang on input like this:
3705 [[[[[[[[[[[[[[[[[[hi
3707 We fixed this by making the link parser parser characters
3708 between balanced brackets (skipping brackets in inline code spans),
3709 then parsing the result as an inline list. One change is that
3711 [hi *there]* bud](/url)
3713 is now no longer parsed as a link. But in this respect pandoc behaved
3714 differently from most other implementations anyway, so that seems okay.
3716 + Look for raw html/latex blocks before tables.
3717 Otherwise the following gets parsed as a table:
3728 + Added support for `:target:` on `.. image::` blocks
3732 - Fixed field lists items with body beginning after a new line
3734 - Allow any char but ':' in names of field lists in RST reader
3736 - Don't allow line breaks in field names.
3737 - Require whitespace after field list field names.
3738 - Don't create empty definition list for metadata field lists.
3739 Previously a field list consisting only of metadata fields (author,
3740 title, date) would be parsed as an empty DefinitionList, which is
3741 not legal in LaTeX and not needed in any format.
3743 + Don't recognize inline-markup starts inside words.
3744 For example, `2*2 = 4*1` should not contain an emphasized
3745 section. Added test case for "Literal symbols". Closes #569.
3746 + Allow dashes as separator in simple tables. Closes #555.
3747 + Added support for `container`, `compound`, `epigraph`,
3748 `rubric`, `highlights`, `pull-quote`.
3749 + Added support for `.. code::`.
3750 + Made directive labels case-insensitive.
3751 + Removed requirement that directives begin at left margin.
3752 This was (correctly) not in earlier releases; docutils doesn't
3753 make the requirement.
3754 + Added support for `replace::` and `unicode::` substitutions.
3755 + Ignore unknown interpreted roles.
3756 + Renamed image parser to `subst`, since it now handles all
3757 substitution references.
3761 + Allow newlines before pipes in table. Closes #654.
3762 + Fixed bug with list items containing line breaks.
3763 Now pandoc correctly handles hard line breaks inside list items.
3764 Previously they broke list parsing.
3765 + Implemented comment blocks.
3766 + Fixed bug affected words ending in hyphen.
3767 + Properly handle links with surrounding brackets.
3768 Square brackets need to be used when the link isn't surrounded by
3769 spaces or punctuation, or when the URL ending may be ambiguous.
3771 + Removed nullBlock. Better to know about parsing problems than
3772 to skip stuff when we get stuck.
3773 + Allow ID attributes on headers.
3774 + Textile reader: Avoid parsing dashes as strikeout.
3775 Previously the input
3782 would be parsed with strikeouts rather than dashes. This fixes
3783 the problem by requiring that a strikeout delimiting - not be
3784 followed by a -. Closes #631.
3785 + Expanded list of `stringBreakers`.
3786 This fixes a bug on input like "(_hello_)" which should
3787 be a parenthesized emphasized "hello".
3788 The new list is taken from the PHP source of textile 2.4.
3789 + Fixed autolinks. Previously the textile reader and writer
3790 incorrectly implented RST-style autolinks for URLs and email
3791 addresses. This has been fixed. Now an autolink is done this way:
3792 `"$":http://myurl.com`.
3793 + Fixed footnotes bug in textile. This affected notes occuring
3794 before punctuation, e.g. `foo[1].`. Closes #518.
3798 + Better handling of citation commands.
3799 + Better handling of `\noindent`.
3800 + Added a 'try' in rawLaTeXBlock, so we can handle `\begin` without `{`.
3802 + Made `rawLaTeXInline` try to parse block commands as well. This
3803 is usually what we want, given how `rawLaTeXInline` is used in
3804 the markdown and textile readers. If a block-level LaTeX command
3805 is used in the middle of a paragraph (e.g. `\subtitle` inside a title),
3806 we can treat it as raw inline LaTeX.
3807 + Handle \slash command. Closes #605.
3808 + Basic `\enquote` support.
3809 + Fixed parsing of paragraphs beginning with a group. Closes #606.
3810 + Use curly quotes for bare straight quotes.
3811 + Support obeylines environment. Closes #604.
3812 + Guard against "begin", "end" in inlineCommand and
3814 + Better error messages for environments. Now it should tell you that
3815 it was looking for \end{env}, instead of giving "unknown parse error."
3819 + Added HTML 5 tags to list of block-level tags.
3820 + HTML reader: Fixed bug in `htmlBalanced`, which
3821 caused hangs in parsing certain markdown input using
3823 + Parse `<q>` as `Quoted DoubleQuote`.
3824 + Handle nested `<q>` tags properly.
3825 + Modified `htmlTag` for fewer false positives.
3826 A tag must start with `<` followed by `!`,`?`, `/`, or a letter.
3827 This makes it more useful in the wikimedia and markdown parsers.
3829 * DocBook reader: Support title in "figure" element. Closes #650.
3833 + Remove newline after `<br/>` in translation of `LineBreak`
3834 There's no particular need for a newline (other than making the
3835 generated MediaWiki source look nice to a human), and in fact
3836 sometimes it is incorrect: in particular, inside an enumeration, list
3837 items cannot have embedded newline characters. (Brent Yorgey)
3838 + Use `<code>` not `<tt>` for Code.
3840 * Man writer: Escape `-` as `\-`.
3841 Unescaped `-`'s become hyphens, while `\-`'s are left as ascii minus
3842 signs. That is preferable for use with command-line options. See
3843 <http://lintian.debian.org/tags/hyphen-used-as-minus-sign.html>. Thanks
3844 to Andrea Bolognani for bringing the issue to our attention.
3848 + Improved line block output. Use nonbreaking spaces for
3849 initial indent (otherwise lost in HTML and LaTeX).
3850 Allow multiple paragraphs in a single line block.
3851 Allow soft breaks w continuations in line blocks.
3852 + Properly handle images with no alt text. Closes #678.
3853 + Fixed bug with links with duplicate text. We now (a) use anonymous
3854 links for links with inline URLs, and (b) use an inline link instead
3855 of a reference link if the reference link would require a label that
3856 has already been used for a different link. Closes #511.
3857 + Fixed hyperlinked images. Closes #611. Use `:target:`
3858 field when you have a simple linked image.
3859 + Don't add `:align: center` to figures.
3861 * Texinfo writer: Fixed internal cross-references.
3862 Now we insert anchors after each header, and use `@ref` instead of `@uref`
3863 for links. Commas are now escaped as `@comma{}` only when needed;
3864 previously all commas were escaped. (This change is needed, in part,
3865 because `@ref` commands must be followed by a real comma or period.) Also
3866 insert a blank line in from of `@verbatim` environments.
3870 + Made --id-prefix work in DocBook as well as HTML.
3872 + Don't include empty captions in figures. Closes #581.
3876 + Use `\hspace*` for nonbreaking space after line break,
3877 since `~` spaces after a line break are just ignored.
3879 + Don't escape `_` in URLs or hyperref identifiers.
3880 + Properly escape strings inside \url{}. Closes #576.
3881 + Use `[fragile]` only for slides containing code rendered
3882 using listings. Closes #649.
3883 + Escape `|` as `\vert` in LaTeX math. This avoids a clash with
3884 highlighting-kate's macros, which redefine `|` as a short verbatim
3885 delimiter. Thanks to Björn Peemöller for raising this issue.
3886 + Use minipage rather than parbox for block containers in tables.
3887 This allows verbatim code to be included in grid tables.
3889 + Prevent paragraphs containing only linebreaks or spaces.
3893 + Included `highlighting-css` for code spans, too.
3894 Previously it was only included if used in a code block. Closes #653.
3895 + Improved line breaks with `<dd>` tags. We now put a newline between
3896 `</dd>` and `<dd>` when there are multiple definitions.
3897 + Changed mathjax cdn url so it doesn't use https. (This caused
3898 problems when used with `--self-contained`.) See #609.
3902 + `--number-sections` now works properly.
3903 + Don't strip meta and link elements in epub metadata.
3904 Patch from aberrancy. Closes #589.
3905 + Fixed a couple validation bugs.
3906 + Use ch001, ch002, etc. for chapter filenames. This improves sorting
3907 of chapters in some readers, which apparently sort ch2 after ch10.
3910 * ODT writer: properly set title property (Arlo O'Keeffe).
3914 + Fixed bug with nested lists. Previously a list like
3921 would come out with a bullet instead of "2."
3922 Thanks to Russell Allen for reporting the bug.
3923 + Use `w:cr` in `w:r` instead of `w:br` for linebreaks.
3924 This seems to fix a problem viewing pandoc-generated
3925 docx files in LibreOffice.
3926 + Use integer ids for bookmarks. Closes #626.
3927 + Added nsid to abstractNum elements. This helps when merging
3928 word documents with numbered or bulleted lists. Closes #627.
3929 + Use separate footnotes.xml for notes.
3930 This seems to help LibreOffice convert the file, even though
3931 it was valid docx before. Closes #637.
3932 + Use rIdNN identifiers for r:embed in images.
3933 + Avoid reading image files again when we've already processed them.
3934 + Fixed typo in `referenc.docx` that prevented image captions from
3935 working. Thanks to Huashan Chen.
3937 * `Text.Pandoc.Parsing`:
3939 + Fixed bug in `withRaw`, which didn't correctly handle the case
3940 where nothing is parsed.
3941 + Made `emailAddress` parser more correct. Now it is based on RFC 822,
3942 though it still doesn't implement quoted strings in email addresses.
3943 + Revised URI parser. It now allows many more schemes, allows
3944 uppercase URIs, and better handles trailing punctuation and
3945 trailing slashes in bare URIs. Added many tests.
3946 + Simplified and improved singleQuoteStart. This makes `'s'`, `'l'`,
3947 etc. parse properly. Formerly we had some English-centric heuristics,
3948 but they are no longer needed. Closes #698.
3950 * `Text.Pandoc.Pretty`: Added wide punctuation range to `charWidth`.
3951 This fixes bug with Chinese commas in markdown and reST tables, and
3952 a bug that caused combining characters to be dropped.
3954 * `Text.Pandoc.MIME`: Added MIME types for .wof and .eot. Closes #640.
3956 * `Text.Pandoc.Biblio`:
3958 + Run `mvPunc` and `deNote` on metadata too.
3959 This fixed a bug with notes on titles using footnote styles.
3960 + Fixed bug in fetching CSL files from CSL data directory.
3962 * `pandoc.hs`: Give correct value to `writerSourceDirectory` when a URL
3963 is provided. It should be the URL up to the path.
3965 * Fixed/simplified diff output for tests.
3966 Biblio: Make sure mvPunc and deNote run on metadata too.
3967 This fixed a bug with notes on titles using footnote styles.
3969 [under the hood improvements]
3971 * We no longer depend on `utf8-string`. Instead we use functions
3972 defined in `Text.Pandoc.UTF8` that use `Data.Text`'s conversions.
3974 * Use `safeRead` instead of using `reads` directly (various modules).
3976 * "Implicit figures" (images alone in a paragraph) are now handled
3977 differently. The markdown reader gives their titles the prefix `fig:`; the
3978 writers look for this before treating the image as a figure. Though this
3979 is a bit of a hack, it has two advantages: (i) implicit figures can be
3980 limited to the markdown reader, and (ii) they can be deactivated by turning
3981 off the `implicit_figures` extension.
3983 * `catch` from `Control.Exception` is now used instead of the
3984 old Preface `catch`.
3986 * `Text.Pandoc.Shared`: Improved algorithm for `normalizeSpaces`
3987 and `oneOfStrings` (which is now non-backtracking).
3989 * `Text.Pandoc.Biblio`: Remove workaround for `toCapital`.
3990 Now citeproc-hs is fixed upstream, so this is no longer needed.
3993 * Textile reader: Improved speed of `hyphenedWords`.
3994 This speeds up the textile reader by about a factor of 4.
3996 * Use `Text.Pandoc.Builder` in RST reader, for more flexibility,
3997 better performance, and automatic normalization.
3999 * Major rewrite of markdown reader:
4001 + Use `Text.Pandoc.Builder` instead of lists. This also
4002 means that everything is normalized automatically.
4003 + Move to a one-pass parsing strategy, returning values in the reader
4004 monad, which are then run (at the end of parsing) against the final
4007 * In HTML writer, we now use `toHtml` instead of pre-escaping.
4008 We work around the problem that blaze-html unnecessarily escapes `'`
4009 by pre-escaping just the `'` characters, instead of the whole string.
4010 If blaze-html later stops escaping `'` characters, we can simplify
4011 `strToHtml` to `toHtml`. Closes #629.
4013 * Moved code for embedding images in RTFs from `pandoc.hs` to the
4014 RTF writer (which now exports `writeRTFWithEmbeddedImages`).
4016 * Moved citation processing from `pandoc.hs` into the readers.
4017 This makes things more convenient for library users.
4019 * The man pages are now built by an executable `make-pandoc-man-pages`,
4020 which has its own stanza in the cabal file so that dependencies can be
4021 handled by Cabal. Special treatment in `Setup.hs` ensures that this
4022 executable never gets installed; it is only used to create the man pages.
4024 * The cabal file has been modified so that the pandoc library is used
4025 in building the pandoc executable. (This required moving `pandoc.hs`
4026 from `src` to `.`.) This cuts compile time in half.
4028 * `-O2` is no longer used in building pandoc. The performance improvement
4029 it yields is so slight that it is not worth it. (Measured with
4030 benchmarks on ghc 7.4.)
4032 * The `executable` and `library` flags have been removed.
4034 * `-threaded` has been removed from ghc-options.
4036 * Version bounds of dependencies have been raised, and the
4037 `blaze_html_0_5` flag now defaults to True. Pandoc now compiles on
4040 * We now require base >= 4.2.
4042 * Integrated the benchmark program into cabal. One can now do:
4044 cabal configure --enable-benchmarks && cabal build
4045 cabal bench --benchmark-option='markdown' --benchmark-option='-s 20'
4047 The benchmark now uses README + testsuite, so benchmark results
4048 from older versions aren't comparable.
4050 * Integrated test suite with cabal.
4051 To run tests, configure with `--enable-tests`, then `cabal test`.
4052 You can specify particular tests using `--test-options='-t markdown'`.
4053 No output is shown unless tests fail. The Haskell test modules
4054 have been moved from `src/` to `tests/`.
4056 * Moved all data files and templates to the `data/` subdirectory.
4058 * Added an `embed_data_files` cabal flag. This causes all
4059 data files to be embedded in the binary, so that the binary
4060 is self-sufficient and can be relocated anywhere, copied on
4061 a USB key, etc. The Windows installer now uses this.
4062 (Since we no longer have the option to build the executable
4063 without the library, this is the only way to get a relocatable
4066 * Removed pcre3.dll from windows package.
4067 It isn't needed unless highlighting-kate is compilled with the
4068 `pcre-light` flag. By default, regex-prce-builtin is used.
4073 * Don't encode/decode file paths if base >= 4.4.
4074 Prior to base 4.4, filepaths and command line arguments were treated
4075 as unencoded lists of bytes, not unicode strings, so we had to work
4076 around that by encoding and decoding them. This commit adds CPP
4077 checks for the base version that intelligibly enable encoding/decoding
4078 when needed. Fixes a bug with multilingual filenames when pandoc was
4079 compiled with ghc 7.4 (#540).
4081 * Don't generate an empty H1 after hrule slide breaks.
4082 We now use a slide-level header with contents `[Str "\0"]` to mark
4083 an hrule break. This avoids creation of an empty H1 in these
4084 contexts. Closes #484.
4086 * Docbook reader: Added support for "bold" emphasis. Thanks to mb21.
4088 * In make_osx_package.sh, ensure citeproc-hs is built with the
4089 embed_data_files flag.
4091 * MediaWiki writer: Avoid extra blank lines after sublists (Gavin Beatty).
4093 * ConTeXt writer: Don't escape `&`, `^`, `<`, `>`, `_`,
4094 simplified escapes for `}` and `{` to `\{` and `\}` (Aditya Mahajan).
4096 * Fixed handling of absolute URLs in CSS imports with `--self-contained`.
4099 * Added webm to mime types. Closes #543.
4101 * Added some missing exports and tests to the cabal file
4102 (Alexander V Vershilov).
4104 * Compile with `-rtsopts` and `-threaded` by default.
4108 * Markdown reader: Added `cf.` and `cp.` to list of likely abbreviations.
4110 * LaTeX template: Added `linkcolor`, `urlcolor` and `links-as-notes`
4111 variables. Make TOC links black.
4113 * LaTeX template improvements.
4115 + Don't print date unless one is given explicitly in the document.
4116 + Simplified templates.
4117 + Use fontenc [T1] by default, and lmodern.
4118 + Use microtype if available.
4122 + Add comma to beginning of bare suffix, e.g. `@item1 [50]`.
4123 Motivation: `@item1 [50]` should be as close as possible to
4125 + Added workaround for a bug in citeproc-hs 0.3.4 that causes footnotes
4126 beginning with a citation to be empty. Closes #531.
4128 * Fixed documentation on mixed lists. Closes #533.
4132 * Simplified `Text.Pandoc.Biblio` and fixed bugs with citations inside
4133 footnotes and captions. We now handle note citations by inserting
4134 footnotes during initial citation processing, and doing a separate
4135 pass later to remove notes inside notes.
4137 * Added 'zenburn' highlight style from highlighting-kate.
4139 * Added Slideous writer. Slideous is an HTML + javascript slide show
4140 format, similar to Slidy, but works with IE 7. (Jonas Smedegaard)
4144 + Ensure we don't have extra blank lines at ends of cells.
4145 This can cause LaTeX errors, as they are interpreted as new paragraphs.
4146 + More consistent interblock spacing.
4147 + Require highlighting-kate >= 0.5.1, for proper highlighted inline
4148 code in LaTeX. Closes #527.
4149 + Ensure that a Verbatim at the end of a footnote is followed by
4150 a newline. (Fixes a regression in the previous version.)
4151 + In default template, use black for internal links and TOC.
4152 Added commented-out code to use footnotes for links, as would
4153 be suitable in print output.
4155 * Beamer writer: When `--incremental` is used, lists inside
4156 a block quote should appear all at once. (This makes Beamer
4157 output consistent with the HTML slide show formats.)
4161 + Escape `%` as `\letterpercent{}` not `\letterpercent `,
4162 to avoid gobbling spaces after the `%` sign.
4163 + Ensure space after `\stopformula`.
4167 + Use `:` form instead of `~` in definition lists, for better
4168 compatibility with other markdown implementations.
4169 + Don't wrap the term, because it breaks definition lists.
4170 + Use a nonzero space to prevent false recognition
4171 of list marker in ordered lists. Closes #516.
4173 * Org writer: Add space before language name. Closes #523.
4175 * Docx writer: Simplified bullet characters so they work properly
4176 with Word 2007. Closes #520.
4178 * LaTeX reader: Support `\centerline`.
4180 * RST reader: handle figures. Closes #522.
4182 * Textile reader: fix for `<notextile>` and `==`. Closes #517.
4187 * Fixed bug in `fromEntities`. The previous version would turn
4188 `hi & low you know;` into `hi &`.
4192 + Don't skip nonbreaking spaces.
4193 Previously a paragraph containing just ` ` would be rendered
4194 as an empty paragraph. Thanks to Paul Vorbach for pointing out the bug.
4195 + Support `<col>` and `<caption>` in tables. Closes #486.
4199 + Don't recognize references inside delimited code blocks.
4200 + Allow list items to begin with lists.
4202 * Added basic docbook reader (John MacFarlane and Mauro Bieg).
4206 + Handle `\bgroup`, `\egroup`, `\begingroup`, `\endgroup`.
4207 + Control sequences can't be followed by a letter.
4208 This fixes a bug where `\begingroup` was parsed as `\begin`
4209 followed by `group`.
4210 + Parse 'dimension' arguments to unknown commands. e.g. `\parindent0pt`
4211 + Make `\label` and `\ref` sensitive to `--parse-raw`.
4212 If `--parse-raw` is selected, these will be parsed as raw latex
4213 inlines, rather than bracketed text.
4214 + Don't crash on unknown block commands (like `\vspace{10pt}`)
4215 inside `\author`; just skip them. Closes #505.
4219 + Implemented literal escapes with `==` and `<notextile>`. Closes #473.
4220 + Added support for LaTeX blocks and inlines (Paul Rivier).
4221 + Better conformance to RedCloth inline parsing (Paul Rivier).
4222 + Parse '+text+' as emphasized (should be underlined, but this
4223 is better than leaving literal plus characters in the output.
4225 * Docx writer: Fixed multi-paragraph list items. Previously they each
4226 got a list marker. Closes #457.
4230 + Added `--no-tex-ligatures` option to avoid replacing
4231 quotation marks and dashes with TeX ligatures.
4232 + Use `fixltx2e` package to provide '\textsubscript'.
4233 + Improve spacing around LaTeX block environments:
4234 quote, verbatim, itemize, description, enumerate.
4236 + Use blue instead of pink for URL links in latex/pdf output.
4238 * ConTeXt writer: Fixed escaping of `%`.
4239 In text, `%` needs to be escaped as `\letterpercent`, not `\%`
4240 Inside URLs, `%` needs to be escaped as `\%`
4241 Thanks to jmarca and adityam for the fix. Closes #492.
4243 * Texinfo writer: Escape special characters in node titles.
4244 This fixes a problem pointed out by Joost Kremers. Pandoc used
4245 to escape an '@' in a chapter title, but not in the corresponding
4246 node title, leading to invalid texinfo.
4248 * Fixed document encoding in texinfo template.
4249 Resolves Debian Bug #667816.
4253 + Don't force delimited code blocks to be flush left.
4254 Fixes bug with delimited code blocks inside lists etc.
4255 + Escape `<` and `$`.
4257 * LaTeX writer: Use `\hyperref[ident]{text}` for internal links.
4258 Previously we used `\href{\#ident}{text}`, which didn't work on
4259 all systems. Thanks to Dirk Laurie.
4261 * RST writer: Don't wrap link references. Closes #487.
4263 * Updated to use latest versions of blaze-html, mtl.
4270 + Made `lstlisting` work as a proper verbatim environment.
4271 + Fixed bug parsing LaTeX tables with one column.
4275 + Use `{}` around `ctable` caption, so that formatting can be used.
4276 + Don't require eurosym package unless document has a €.
4278 * LaTeX template: Added variables for `geometry`, `romanfont`,
4279 `sansfont`, `mathfont`, `mainfont` so users can more easily
4284 + Run latex engine at least two times, to ensure
4285 that PDFs will have hyperlinked bookmarks.
4286 + Added PDF metadata (title,author) in LaTeX standalone + PDF output.
4288 * Texinfo writer: retain directories in image paths. (Peter Wang)
4290 * RST writer: Better handling of inline formatting, in accord
4291 with docutils' "inline markup recognition rules" (though we don't
4292 implement the unicode rules fully). Now `hi*there*hi` gets
4293 rendered properly as `hi\ *there*\ hi`, and unnecessary
4294 `\ ` are avoided around `:math:`, `:sub:`, `:sup:`.
4298 + Parse `\ ` as null, not escaped space.
4299 + Allow `` :math:`...` `` even when not followed by blank
4300 or `\`. This does not implement the complex rule docutils follows,
4301 but it should be good enough for most purposes.
4302 + Add support for the rST default-role directive. (Greg Maslov)
4304 * Text.Pandoc.Parsing: Added `stateRstDefaultRole` field to `ParserState`.
4307 * Markdown reader: Properly handle citations nested in other inline
4310 * Markdown writer: don't replace empty alt in image with "image".
4312 * DZSlides: Updated template.html and styles in default template.
4313 Removed bizarre CSS for `q` in dzslides template.
4315 * Avoid repeated `id` attribute in section and header in HTML slides.
4317 * README improvements: new instructions on internal links,
4318 removed misleading note on reST math.
4322 + Fixed Windows installer so that dzslides works.
4323 + Removed stripansi.sh.
4324 + Added .travis.yml for Travis continuous integration support..
4325 + Fixed upper bound for zlib (Sergei Trofimovich).
4326 + Fixed upper bound for test-framework.
4327 + Updated haddocks for haddock-2.10 (Sergei Trofimovich).
4331 * Added `beamer+lhs` as output format.
4333 * Don't escape `<` in `<style>` tags with `--self-contained`.
4334 This fixes a bug which prevented highlighting from working
4335 when using `--self-contained`.
4337 * PDF: run latex engine three times if `--toc` specified.
4338 This fixes page numbers in the table of contents.
4340 * Docx writer: Added TableNormal style to tables.
4342 * LaTeX math environment fixes. `aligned` is now used instead of
4343 the nonexistent `aligned*`. `multline` instead of the nonexistent
4346 * LaTeX writer: Use `\textasciitilde` for literal `~`.
4348 * HTML writer: Don't escape contents of EQ tags with --gladtex.
4349 This fixes a regression from 1.8.
4351 * Use `<q>` tags for Quoted items for HTML5 output.
4352 The quote style can be changed by modifying the template
4353 or including a css file. A default quote style is included.
4355 * LaTeX reader: Fixed accents (\~{a}, `\c{c}`).
4356 Correctly handle \^{}. Support "minted" as a LaTeX verbatim block.
4358 * Updated LaTeX template for better language support.
4359 Use `polyglossia` instead of `babel` with xetex.
4360 Set `lang` as documentclass option.
4361 `\setmainlanguage` will use the last of a comma-separated
4362 list of languages. Thanks to François Gannaz.
4364 * Fixed default LaTeX template so `\euro` and `€` work. The
4365 `eurosym` package is needed if you are using pdflatex.
4367 * Fixed escaping of period in man writer (thanks to Michael Thompson).
4369 * Fixed list label positions in beamer.
4371 * Set `mainlang` variable in context writer.
4372 This parallels behavior of latex writer. `mainlang` is the last
4373 of a comma-separated list of languages in lang.
4375 * EPUB language metadat: convert e.g. `en_US` from locale to `en-US`.
4377 * Changed `-V` so that you can specify a key without a value.
4378 Such keys get the value `true`.
4380 * Fixed permissions on installed man pages - thanks Magnus Therning.
4382 * Windows installer: require XP or higher. The installer is
4383 now compiled on a Windows 7 machine, which fixes a problem
4384 using citation functions on Windows 7.
4386 * OSX package: Check for 64-bit Intel CPU before installing.
4390 * Better handling of raw latex environments in markdown. Now
4396 turns into a raw latex block as expected.
4398 * Improvements to LaTeX reader:
4400 + Skip options after block commands.
4401 + Correctly handle `{\\}` in braced.
4402 + Added a needed 'try'.
4403 + Citations: add `, ` to suffix if it doesn't start with space or
4404 punctuation. Otherwise we get no space between the year and the
4405 suffix in author-date styles.
4407 * Added two needed data files for S5. This fixes a problem with
4408 `pandoc -t s5 --self-contained`. Also removed `slides.min.js`,
4409 which was no longer being used.
4411 * Fixed some minor problems in `reference.docx`:
4412 name on "Date" style, `xCs` instead of `xIs`.
4414 * Fixed a problem creating docx files using a reference docx
4415 modified using Word. The problem seems to be that Word
4416 modifies `_rels/.rels`, changing the Type of the Relationship to
4417 `docProps/core.xml`. Pandoc now changes this back to the correct
4418 value if it has been altered, fixing the problem.
4420 * Fixed html5 template so it works properly with highlighting.
4426 + Fixed regression in 1.9; properly handle escaped $ in latex math.
4427 + Put LaTeX verse environments in blockquotes.
4431 + Limit nesting of strong/emph. This avoids exponential lookahead
4432 in parasitic cases, like `a**a*a**a*a**a*a**a*a**a*a**a*a**a*a**`.
4433 + Improved attributes syntax (inn code blocks/spans):
4434 (1) Attributes can contain line breaks. (2) Values in key-value
4435 attributes can be surrounded by either double or single quotes, or
4436 left unquoted if they contain no spaces.
4438 * Don't wrap headers in markdown or RST writers.
4440 * Added `stateMaxNestingLevel` to `ParserState`.
4441 We set this to 6, so you can still have `Emph` inside `Emph`,
4442 just not indefinitely.
4444 * More efficient implementation of `nowrap` in `Text.Pandoc.Pretty`.
4446 * `Text.Pandoc.PDF`: Only run latex twice if `\tableofcontents`
4449 * Require highlighting-kate >= 0.5.0.2, texmath >= 0.6.0.2.
4453 * Changed cabal file so that build-depends for the test program
4454 are not required unless the tests flag is used.
4456 * LaTeX writer: insert `{}` between adjacent hyphens so they don't
4457 form ligatures (dashes) in code spans.
4461 * Raised version bound on test-framework to avoid problems
4462 compiling tests on GHC 7.4.1.
4464 * LaTeX reader: Use raw LaTeX as fallback inline text for Cites,
4465 so citations don't just disappear unless you process with
4466 citeproc. Ignore `\bibliographystyle`, `\nocite`.
4468 * Simplified tex2pdf; it will always run latex twice to
4469 resolve table of contents and hyperrefs.
4473 * Require Cabal >= 1.10.
4474 * Tweaked cabal file to meet Cabal 1.10 requirements.
4478 * Allow build with json 0.4 or 0.5. Otherwise we can't build with
4485 * Added a Microsoft Word `docx` writer. The writer includes support
4486 for highlighted code and for math (which is converted from TeX to OMML,
4487 Office's native math markup language, using texmath's new OMML module).
4488 A new option `--reference-docx` allows the user to customize the
4491 * Added an `asciidoc` writer (<http://www.methods.co.nz/asciidoc/>).
4493 * Better support for slide shows:
4495 + Added a `dzslides` writer. DZSlides is a lightweight HTML5/javascript
4496 slide show format due to Paul Rouget (<http://paulrouget.com/dzslides/>).
4498 + Added a LaTeX `beamer` writer. Beamer is a LaTeX package for creating
4499 slide presentations.
4501 + New, flexible rules for dividing documents into sections and slides
4502 (see the "Structuring the slide show" in the User's Guide). These
4503 are backward-compatible with the old rules, but they allow slide
4504 shows to be organized into sections and subsections containing
4507 + A new `--slide-level` option allows users to override defaults
4508 and select a slide level below the first header level with content.
4510 * A new `--self-contained` option produces HTML output that does not
4511 depend on an internet connection or the presence of any external
4512 files. Linked images, CSS, and javascript is downloaded (or fetched
4513 locally) and encoded in `data:` URIs. This is useful for making portable
4514 `HTML slide shows. The --offline` option has been deprecated and is now
4515 `treated as a synonym or --self-contained`.
4517 * Support for PDF output:
4519 + Removed the old `markdown2pdf`.
4520 + `pandoc` can now create PDFs (assuming you have latex and a set of
4521 appropriate packages installed): just specify an output file with the
4523 + A new option `--latex-engine` allows you to specify `pdflatex`,
4524 `xelatex`, or `lualatex` as the processor.
4526 * Highlighting changes:
4528 + Syntax highlighting is now a standard feature; the `highlighting`
4529 flag is no longer needed when compiling.
4530 + A new `--no-highlight` option allows highlighting to be disabled.
4531 + Highlighting now works in `docx`, `latex`, and `epub`, as well as
4532 `html`, `html5`, `dzslides`, `s5`, and `slidy`.
4533 + A new `--highlight-style` option selects between various highlighting
4536 * Internal links to sections now work in ConTeXt and LaTeX as well as HTML.
4538 * LaTeX `\include` and `\usepackage` commands are now processed,
4539 provided the files are in the working directory.
4541 * EPUB improvements:
4543 + Internal and external links now work in EPUB.
4544 + Raw HTML is allowed.
4545 + New `--epub-embed-font` option.
4546 + Customizable templates for EPUB pages offer more control over
4547 formatting: `epub-page.html`, `epub-coverimage.html`,
4548 `epub-titlepage.html`.
4550 * `--mathml` now works with DocBook.
4552 * Added support for math in RST reader and writer. Inline math uses the
4553 `` :math:`...` `` construct. Display math uses
4557 or if the math is multiline,
4563 These constructions are now supported now by `rst2latex.py`.
4565 * GitHub syntax for fenced code blocks is supported in pandoc's
4566 markdown. You can now write
4578 * Easier scripting: a new `toJsonFilter` function makes it easier to
4579 write Haskell scripts to manipulate the Pandoc AST.
4583 * Fixed parsing of consecutive lists in markdown.
4584 Pandoc previously behaved like Markdown.pl for consecutive
4585 lists of different styles. Thus, the following would be parsed
4586 as a single ordered list, rather than an ordered list followed
4587 by an unordered list:
4595 This change makes pandoc behave more sensibly, parsing this as
4596 two lists. Any change in list type (ordered/unordered) or in
4597 list number style will trigger a new list. Thus, the following
4598 will also be parsed as two lists:
4606 Since we regard this as a bug in Markdown.pl, and not something
4607 anyone would ever rely on, we do not preserve the old behavior
4608 even when `--strict` is selected.
4610 * Dashes work differently with `--smart`: `---` is always em-dash,
4611 and `--` is always en-dash. Pandoc no longer tries to guess when
4612 `-` should be en-dash. *Note:* This may change how existing documents
4613 look when processed with pandoc. A new option, `--old-dashes`,
4614 is provided for legacy documents.
4616 * The markdown writer now uses setext headers for levels 1-2.
4617 The old behavior (ATX headers for all levels) can be restored
4618 using the new `--atx-headers` option.
4620 * Links are now allowed in markdown image captions. They are also
4621 allowed in links, but will appear there as regular text. So,
4623 [link with [link](/url)](/url)
4627 <p><a href="/url">link with link</a></p>
4629 * Improved handling of citations using `citeproc-hs-0.3.4`.
4630 Added `--citation-abbreviations` option.
4632 * Citation keys can no longer end with a punctuation character.
4633 This means that `@item1.` will be parsed as a citation with key
4634 'item1', followed by a period, instead of a citation with key
4635 'item1.', as was the case previously.
4637 * In HTML output, citations are now put in a span with class `citation`.
4639 * The markdown reader now recognizes DocBook block and inline tags.
4640 It was always possible to include raw DocBook tags in a markdown
4641 document, but now pandoc will be able to distinguish block from
4642 inline tags and behave accordingly. Thus, for example,
4648 will not be wrapped in `<para>` tags.
4650 * The LaTeX parser has been completely rewritten; it is now much more
4651 accurate, robust, and extensible. However, there are two important
4652 changes in how it treats unknown LaTeX. (1) Previously, unknown
4653 environments became BlockQuote elements; now, they are treated
4654 as "transparent", so `\begin{unknown}xyz\end{unknown}` is the
4655 same as `xyz`. (2) Previously, arguments of unknown commands
4656 were passed through with their braces; now the braces are stripped
4659 * `--smart` is no longer selected automatically with `man` output.
4661 * The deprecated `--xetex` option has been removed.
4663 * The `--html5`/`-5` option has been deprecated. Use `-t html5`
4664 instead. `html5` and `html5+lhs` are now separate output formats.
4666 * Single quotes are no longer escaped in HTML output. They do not
4667 need to be escaped outside of attributes.
4669 * Pandoc will no longer transform leading newlines in code
4670 blocks to `<br/>` tags.
4672 * The ODT writer now sizes images appropriately, using the image
4673 size and DPI information embedded in the image.
4675 * `--standalone` is once again implicitly for a non-text output format
4676 (ODT, EPUB). You can again do `pandoc test.txt -o test.odt`
4677 and get a standalone ODT file.
4679 * The Docbook writer now uses `<sect1>`, `<sect2>`, etc. instead of
4682 * The HTML writer now uses `<del>` for strikeout.
4684 * In HTML output with `--section-divs`, the classes `section` and
4685 `level[1,2,..6]` are put on the `div` tags so they can be styled.
4686 In HTML 5 output with `--section-divs`, the classes
4687 `level[1,2,...6]` are put on `section` tags.
4689 * EPUB writer changes:
4691 + The `lang` variable now sets the language
4692 in the metadata (if it is not set, we default to the locale).
4693 + EPUB: UTF-8 is used rather than decimal entities.
4695 * Added `titleslide` class to title slide in S5 template.
4697 * In HTML, EPUB, and docx metadata, the date is normalized into
4698 YYYY-MM-DD format if possible. (This is required for validation.)
4700 * Attributes in highlighted code blocks are now preserved in HTML.
4701 The container element will have the classes, id, and key-value attributes
4702 you specified in the delimited code block. Previously these were stripped
4705 * The reference backlink in the HTML writer no longer has a special
4706 `footnoteBacklink` class.
4708 * The HTML template has been split into `html` and `html5` templates.
4710 * Author and date are treated more consistently in HTML templates.
4711 Authors are now `<h2>`, date `<h3>`.
4713 * URLs are hyphenated in the ConTeXt writer (B. Scott Michel).
4715 * In `Text.Pandoc.Builder`, `+++` has been replaced by `<>`.
4719 * Better support for combining characters and East Asian wide characters
4720 in markdown and reST.
4722 * Better handling of single quotes with `--smart`.
4723 Previously `D'oh l'*aide*` would be parsed with left and right single
4724 quotes instead of apostrophes. This kind of error is now fixed.
4726 * Highlighting: Use `reads` instead of `read` for better error handling.
4727 Fixes crash on `startNum="abc"`.
4729 * Added blank comment after directives in rst template.
4731 * Unescape entities in citation `refId`. The `refId`s coming
4732 from citeproc contain XML numeric entities, and these don't match with the
4733 citation keys parsed by pandoc. Solution is to unescape them.
4735 * HTML reader: Fixed bug parsing tables with both thead and tbody.
4739 + Better handling of escapes in link URLs and titles.
4740 + Fixed backslash escapes in reference links.
4741 + Fixed bug in table/hrule parsing, by checking that the top
4742 line of a table is not followed by a blank line. This bug caused
4743 slowdowns on some files with hrules and tables, as pandoc tried to
4744 interpret the hrules as the tops of multiline tables.
4745 + Fixed bug in code block attribute parser. Previously the ID attribute
4746 got lost if it didn't come first. Now attributes can come in any order.
4748 * RST reader: allow footnotes followed by newline without space characters.
4752 + Ignore empty groups {}, { }.
4753 + LaTeX reader: Handle \@.
4754 + LaTeX reader: Don't crash on commands like `\itemsep`.
4755 + LaTeX reader: Better handling of letter environments.
4757 * RST writer: Fixed bug involving empty table cells. isSimple was being
4758 calculated in a way that assumed there were no non-empty cells.
4762 + Made `--toc` work even without `--number-sections`.
4763 + Escape # in link URLs.
4764 + Use buffering for footnotes containing code blocks.
4765 + Changed 'descr' to 'description', fixed alignment.
4769 + Escape euro character.
4770 + Don't escape ~ inside href{...}.
4771 + Escape # in href URLs.
4772 + Improved detection of book classes. We now check the
4773 `documentclass` variable, and if that is not set, we look through
4774 the template itself. Also, we have added the KOMA classes scrreprt
4775 and scrbook. You can now make a book using
4776 `pandoc -V documentclass:book mybook.txt -o mybook.pdf`
4777 + LHS files now set the "listings" variable, so that the definition
4778 of the `code` environment will be included in the template.
4779 + Links are colored blue by default (this can be changed by
4780 modifying `hyperref` settings in the template).
4781 + Added `lang` variable to LaTeX template.
4785 + Fixed bug in HTML template with html5 and mathml.
4786 + Don't use self-closing img, br, hr tags for HTML5.
4787 + Use `<section>` for footnotes if HTML5.
4788 + Update HTML templates to use Content-Style-Type meta tag.
4789 + Use separate variables for meta-date, meta-author.
4790 This makes footnotes work in author and date fields.
4791 + Use 'vertical-align:middle' in WebTeX math for better alignment.
4793 * S5/slidy writer: Make footnotes appear on separate slide at end.
4795 * MIME: Added 'layout-cache' to getMimeType. This ensures that the
4796 META-INF/manifest.xml for ODT files will have everything it needs, so
4797 that ODT files modified by LibreOffice can be used as `--reference-odt`.
4799 * `Text.Pandoc.Templates`: Return empty string for json template.
4801 * `Text.Pandoc.Biblio`:
4803 + Expand citations recursively inside nested inlines.
4804 + Treat `\160` as space when parsing locator and suffix.
4805 This fixes a bug with "p. 33" when `--smart` is used. Previously
4806 the whole "p. 33" would be included in the suffix, with no locator.
4807 + Put whole author-in-text citation in a Cite. Previously just the
4808 date and other info went in the Cite.
4809 + Don't add comma+space to prefix if it ends in punctuation.
4811 * Updated chicago-author-date.csl. The old version did not work
4812 properly for edited volumes with no author.
4816 + Add date to EPUB titlepage and metadata.
4817 + Added TOC identifier in EPUB page template.
4818 + Don't generate superfluous file `cover-image.jpg`.
4820 [under the hood improvements]
4822 * Modified `make_osx_package.sh` to use cabal-dev.
4823 Items are no longer installed as root.
4824 Man pages are zipped and given proper permissions.
4826 * Modified windows installer generater to use cabal-dev.
4828 * Setup: Making man pages now works with cabal-dev (at least on OSX). In
4829 Setup.hs we now invoke 'runghc' in a way that points it to the correct
4830 package databases, instead of always falling back to the default user
4833 * Updated to work with GHC 7.4.1.
4835 * Removed dependency on old-time.
4837 * Removed dependency on dlist.
4839 * New slidy directory for "self-contained."
4841 * TeXMath writer: Use unicode thin spaces for thin spaces.
4843 * Markdown citations: don't strip off initial space in locator.
4847 * Removed `Apostrophe`, `EmDash`, `EnDash`, and `Ellipses`
4848 from the native `Inline` type in pandoc-types. Now we use `Str`
4849 elements with unicode.
4851 * Improvements to `Text.Pandoc.Builder`:
4853 + `Inlines` and `Blocks` are now newtypes (not synonyms for
4855 + Instances are defined for `IsString`, `Show`, `Read`, `Monoid`,
4856 and a new `Listable` class, which allows these to be manipulated
4857 to some extent like lists. Monoid append includes automatic
4859 + `+++` has been replaced by `<>` (mappend).
4861 * Use blaze-html instead of xhtml for HTML generation.
4862 This changes the type of `writeHtml`.
4864 * `Text.Pandoc.Shared`:
4866 + Added `warn` and `err`.
4867 + Removed `unescapeURI`, modified `escapeURI`.
4868 (See under [behavior changes], above.)
4870 * Changes in URI escaping: Previously the readers escaped URIs by
4871 converting unicode characters to octets and then percent encoding.
4872 Now unicode characters are left as they are, and `escapeURI` only
4873 percent-encodes space characters. This gives more readable
4874 URIs, and works well with modern user agents. URIs are no longer unescaped
4875 at all on conversion to `markdown`, `asciidoc`, `rst`, `org`.
4877 * New module `Text.Pandoc.SelfContained`.
4879 * New module `Text.Pandoc.Docx`.
4881 * New module `Text.Pandoc.PDF`.
4883 * Added `writerBeamer` to `WriterOptions`.
4885 * Added `normalizeDate` to `Text.Pandoc.Shared`.
4887 * Added `splitStringWithIndices` in `Text.Pandoc.Shared`.
4888 This is like `splitWithIndices`, but it is sensitive to distinctions
4889 between wide, combining, and regular characters.
4891 * `Text.Pandoc.Pretty`:
4893 + Added `chomp` combinator.
4894 + Added `beforeNonBreak` combinator. This allows you to include
4895 something conditionally on it being before a nonblank.
4896 Used for RST inline math.
4897 + Added `charWidth` function. All characters marked W or F in the unicode
4898 spec EastAsianWidth.txt get width 2.
4899 + Added `realLength`, based on `charWidth`. `realLength` is now
4900 used in calculating offsets.
4902 * New module `Text.Pandoc.Slides`, for common functions for breaking
4903 a document into slides.
4905 * Removed `Text.Pandoc.S5`, which is no longer needed.
4907 * Removed `Text.Pandoc.CharacterReferences`. Moved
4908 `characterReference` to `Text.Pandoc.Parsing`.
4909 `decodeCharacterReferences` is replaced by `fromEntities`
4910 in `Text.Pandoc.XML`.
4912 * Added `Text.Pandoc.ImageSize`. This is intened for use
4913 in `docx` and `odt` writers, so the size and dpi of images
4916 * Removed `writerAscii` in `WriterOptions`.
4918 * Added `writerHighlight` to `WriterOptions`.
4920 * Added `DZSlides` to `HTMLSlideVariant`.
4922 * `writeEPUB` has a new argument for font files to embed.
4924 * Added `stateLastStrPos` to `ParserState`. This lets us keep track
4925 of whether we're parsing the position immediately after a regular
4926 (non-space, non-symbol) string, which is useful for distinguishing
4927 apostrophes from single quote starts.
4929 * `Text.Pandoc.Parsing`:
4931 + `escaped` now returns a `Char`.
4932 + Removed `charsInBalanced'`, added a character parser as
4933 a parameter of `charsInBalanced`. This is needed for
4934 proper handling of escapes, etc.
4937 * Added `toEntities` to `Text.Pandoc.XML`.
4939 * `Text.Pandoc.Readers.LaTeX`:
4941 + Export `handleIncludes`.
4942 + Export `rawLaTeXBlock` instead of `rawLaTeXEnvironment'`.
4944 * Added `ToJsonFilter` class and `toJsonFilter` function to
4945 `Text.Pandoc`, deprecating the old `jsonFilter` function.
4947 * `Text.Pandoc.Highlighting`:
4949 + Removed `highlightHtml`, `defaultHighlightingCss`.
4950 + Export `formatLaTeXInline`, `formatLaTeXBlock`, and `highlight`, plus
4951 key functions from highlighting-kate.
4952 + Changed types of highlighting function. `highlight` returns a
4953 `Maybe`, not an `Either`.
4957 * Relaxed cabal consntraints for test-framework (S. Trofimovich).
4959 * Relaxed cabal constraints for pandoc-types.
4961 * Adjusted Arbitrary instance to help avoid timeouts in tests.
4963 * Added `Tests.Writers.Markdown` to cabal file.
4967 * Added script to produce OS X package.
4969 * Made `templates` directory a git submodule. This should make it
4970 easier for people to revise their custom templates when the default
4973 * Changed template naming scheme: `FORMAT.template` -> `default.FORMAT`.
4974 **Note:** If you have existing templates in `~/.pandoc/templates`, you
4975 must rename them to conform to the new scheme!
4977 * Fixed smart quotes bug, now handling `'...hi'` properly.
4981 + Partial support for labeled footnotes.
4982 + Improved accuracy of `simpleReferenceName` parser.
4986 + Substitute correct unicode characters for
4987 characters in the 128..159 range, which are often found even in
4988 HTML that purports to be UTF-8.
4990 * LaTeX reader: Handle `\subtitle` command (a subtitle is added
4991 to the title, after a colon and linebreak). Closes #280.
4993 * Leaner `reference.odt`.
4995 * Added unexported module `Text.Pandoc.MIME` for use in
4998 * ODT writer: Construct `manifest.xml` based on archive contents.
4999 This fixes a bug in ODTs containing images. Recent versions of
5000 LibreOffice would reject these as corrupt, because `manifest.xml`
5001 did not contain a reference to the image files.
5005 + Make verbatim environments flush to avoid spurious
5006 blank lines. Closes #277.
5007 + Use `\texttt` and escapes insntead of `\verb!...!`, which
5008 is too fragile (doesn't work in command arguments).
5009 + Use `\enquote{}` for quotes if the template includes
5010 the `csquotes` package. This provides better support for
5011 local quoting styles. (Thanks to Andreas Wagner for the idea.)
5013 * ConTeXt writer: Make `\starttyping`/`\stoptyping` flush with
5014 margin, preventing spurious blank lines.
5018 + Use non-minimized version of `slidy.css` with `--offline`
5019 option, so users can more easily edit it.
5020 + Also fixed a bug in the CSS that prevented proper centering
5021 of title (now reported and fixed upstream).
5025 + Replaced `s5/default/slides.js.{comment,packed}` with
5026 new compressed `s5/default/slides.min.js`.
5027 + Use `data:` protocol to embed S5 CSS in `<link>` tags,
5028 when `--offline` is specified. Using inline CSS didn't
5029 work with Chrome or Safari. This fixes offline
5030 S5 on those browsers.
5032 * HTML writer: Removed English title on footnote backlinks.
5033 This is incongrous in non-English documents.
5037 + Use CALS tables. (Some older docbook software does not work
5038 well with XHTML tables.) Closes #77.
5039 + Use `programlisting` tags (instead of `screen`) for code blocks.
5043 + Calls latex with `-halt-on-error -interaction nonstopmode` instead
5044 of `-interaction=batchmode`, which essentially just ignored errors,
5045 leading to bad results. Better to know when something is wrong.
5046 + Fixed issues with non-UTF-8 output of `pdflatex`.
5047 + Better error reporting.
5049 * `--mathjax` now takes an optional URL argument. If it is not
5050 provided, pandoc links directly to the (secure) mathjax CDN,
5051 as now recommended (thanks to dsanson).
5053 * Deprecated `--xetex` option in `pandoc`. It is no longer needed,
5054 since the LaTeX writer now produces a file that can be processed by
5055 `latex`, `pdflatex`, `lualatex`, or `xelatex`.
5057 * Introduced `--luatex` option to `markdown2pdf`. This causes `lualatex`
5058 to be used to create the PDF.
5060 * If a template specified with `--template` is not found, look for it
5061 in `datadir`. Also, if no extension is provided, supply one based
5062 on the writer. So now you can put your `special.latex` template in
5063 `~/.pandoc/templates`, and use it from any directory via
5064 `pandoc -t latex --template special`.
5066 * Default template improvements:
5068 + HTML: Display author and date after title.
5069 + HTML: Made table of contents more customizable. The container
5070 for the TOC is now in the template, so users can insert a header
5071 or other styling. (Thanks to Bruce D'Arcus for the suggestion.)
5072 + HTML, Slidy, S5: Enclose scripts in CDATA tags.
5073 + Slidy, S5: Added `s5-url` and `slidy-url` variables, instead of
5074 hard-coding. If you want to put your slidy files in the slidy
5075 subdirectory, for example, you can do
5076 `pandoc -t slidy -V slidy-url=slidy -s`.
5077 + LaTeX: Use `\and` to separate authors in LaTeX documents (reader
5078 & writer). Closes #279.
5079 + LaTeX: Use different `hyperref` options for `xetex`, fixing
5080 problems with unicode bookmarks (thanks to CircleCode).
5081 + LaTeX: Removed `ucs` package, use `utf8` rather than `utf8x`
5082 with `inputenc`. This covers fewer characters but is more
5083 robust with other packages, and `ucs` is unmaintained. Users
5084 who need better unicode support should use xelatex or lualatex.
5088 * Added `--epub-cover-image` option.
5090 * Documented `--biblatex` and `--natbib` options.
5092 * Allow `--section-divs` with slidy output. Resolves Issue #296.
5094 * Disallow notes within notes in reST and markdown.
5095 These previously caused infinite looping and stack overflows.
5102 Note references are allowed in reST notes, so this isn't a full
5103 implementation of reST. That can come later. For now we need to
5104 prevent the stack overflows. Partially resolves Issue #297.
5106 * EPUB writer: Allow non-plain math methods.
5108 * Forbid ()s in citation item keys. Resolves Issue #304: problems with
5109 `(@item1; @item2)` because the final paren was being parsed as part of
5112 * Changed URI parser so it doesn't include trailing punctuation.
5113 So, in RST, `http://google.com.` should be parsed as a link followed by a
5114 period. The parser is smart enough to recognize balanced parentheses, as
5115 often occur in wikipedia links: `http://foo.bar/baz_(bam)`.
5117 * Markdown+lhs reader: Require space after inverse bird tracks, so that
5118 HTML tags can be used freely at the left margin of a markdown+lhs document.
5119 Thanks to Conal Elliot for the suggestion.
5123 + Improved emph/strong parsing; fixes bug found by Perry Wagle.
5124 + Fixed bug in footnote order (reported by CircleCode).
5127 + Fixed bug in in field lists with multi-line items at the
5129 + Added parentheses to RST `specialChars`, so
5130 `(http://google.com)` will be parsed as a link in parens.
5131 Resolves Issue #291.
5132 + Allow `|` followed by newline in RST line block.
5136 + Gobble option & space after linebreak `\\[10pt]`.
5139 + Make it possible to have colons after links. (qerub)
5140 + Make it possible to have colons after links. (Christoffer Sawicki)
5143 + Skip spaces after `<b>`, `<emph>`, etc.
5144 + Handle tbody, thead in simple tables. Closes #274.
5145 + Implicit `Para`s instead of `Plains` in some contexts.
5147 * OpenDocument writer: Use special `First paragraph` style for
5148 first paragraph after most non-paragraph blocks. This allows users to
5149 specify e.g. that only paragraphs after the first paragraph of a block are
5150 to be indented. Thanks to Andrea Rossato for the patch. Closes #20.
5152 * LaTeX writer: use `deVerb` on table and picture captions.
5153 Otherwise LaTeX complains about `\verb` inside command argument.
5154 Thanks to bbanier for reporting the bug.
5156 * Markdown writer: Insert HTML comment btw list and indented code block.
5157 This prevents the code block from being interpreted as part of the list.
5159 * EPUB writer: Add a meta element specify the cover.
5160 Some EPUB e-readers, such as the Nook, require a meta element inside the
5161 OPF metadata block to ensure the cover image is properly displayed.
5164 * HTML writer: Use embed tag for images with non-image extensions.
5165 (e.g. PDFs). Closes #264.
5167 * LaTeX writer: Improved tables.
5169 + More space between lines, top-align cells.
5170 + Use ctable package, which allows footnotes and
5171 provides additional options.
5172 + Made cell alignments work in multiline tables.
5173 + Closes #271, #272.
5175 * Un-URI-escape image filenames in LaTeX, ConTeXt, RTF, Texinfo.
5176 Also do this when copying image files into EPUBs and ODTs.
5179 * Changed to github issue tracker.
5181 * Added failing emph/strong markdown test case due to Perry Wagle.
5183 * Slidy improvements:
5184 + Updated to use Slidy2.
5185 + Fixed bug, unclosed div tag.
5186 + Added `duration` variable in template.
5187 Setting this activates the timer.
5188 + Use 'titlepage' instead of 'cover' for title div.
5192 * `markdown2pdf`: Removed some debugging lines accidentally included
5193 in the 1.8.1 release. With those lines, the temp directory is created
5194 in the working directory, and it is not deleted. This fix restores
5195 the original behavior.
5199 * Added `--ascii` option. Currently supported only in HTML writer,
5200 which it causes to use numerical entities instead of UTF-8.
5202 * EPUB writer: `--toc` now works to provide a table of contents
5203 at the beginning of each chapter.
5205 * LaTeX writer: Change figure defaults to `htbp`.
5206 This prevents "too many unprocessed floats." Resolves
5209 * `Text.Pandoc.UTF8`: Encode filenames even when using recent
5212 * `markdown2pdf`: Fixed filename encoding issues. With help from Paulo
5213 Tanimoto. Resolves Issue #286.
5215 * HTML writer: Put line breaks in section divs.
5217 * `Text.Pandoc.Shared`: Make `writerSectionDivs` default to False.
5221 * Fixed Source-repository stanza in cabal file.
5227 + Stringify alt text instead of converting to HTML.
5228 + Break lines after block elements, not inside tags.
5229 HTML output now closely resembles that of tidy. Resolves Issue #134.
5231 * Markdown reader: Fixed bug in footnote block parser (pointed out
5232 by Jesse Rosenthal). The problem arose when the blank line
5233 at the end of a footnote block contained indenting spaces.
5235 * Shared: Improved 'normalize' function so it normalizes Spaces too.
5236 In normal form, Space elements only occur to separate two non-Space
5237 elements. So, we never have [Space], or [, ..., Space].
5241 + Improved Arbitrary instance.
5242 + Added timeout for test instances.
5246 + Added section on four-space rule for lists. Resolves Issue #283.
5247 + Clarified optional arguments on math options.
5249 * markdown2pdf: Fixed bug with output file extensions.
5250 Previously `markdown2pdf test.txt -o test.en.pdf` would produce
5251 `test.pdf`, not `test.en.pdf`. Thanks to Paolo Tanimoto for the fix.
5255 * Revised Interact.hs so that it works with the CPP macros
5258 * Revised Setup.hs so that we don't call MakeManPage.hs unless
5259 the man pages are out of date.
5265 * Support for citations using Andrea Rossato's `citeproc-hs` 0.3.
5266 You can now write, for example,
5268 Water is wet [see @doe99, pp. 33-35; also @smith04, ch. 1].
5270 and, when you process your document using `pandoc`, specifying
5271 a citation style using `--csl` and a bibliography using `--bibliography`,
5272 the citation will be replaced by an appropriately formatted
5273 citation, and a list of works cited will be added to the end
5276 This means that you can switch effortlessly between different citation
5277 and bibliography styles, including footnote, numerical, and author-date
5278 formats. The bibliography can be in any of the following formats: MODS,
5279 BibTeX, BibLaTeX, RIS, EndNote, EndNote XML, ISI, MEDLINE, Copac, or JSON.
5280 See the README for further details.
5282 Citations are supported in the markdown reader, using a special
5283 syntax, and in the LaTeX reader, using natbib or biblatex syntax.
5284 (Thanks to Nathan Gass for the natbib and biblatex support.)
5286 * New `textile` reader and writer. Thanks to Paul Rivier for contributing
5287 the `textile` reader, an almost complete implementation of the textile
5288 syntax used by the ruby [RedCloth library](http://redcloth.org/textile).
5291 * New `org` writer, for Emacs Org-mode, contributed by Puneeth Chaganti.
5293 * New `json` reader and writer, for reading and writing a JSON
5294 representation of the native Pandoc AST. These are much faster
5295 than the `native` reader and writer, and should be used for
5296 serializing Pandoc to text. To convert between the JSON representation
5297 and native Pandoc, use `encodeJSON` and `decodeJSON` from
5298 `Text.JSON.Generic`.
5300 * A new `jsonFilter` function in `Text.Pandoc` makes it easy
5301 to write scripts that transform a JSON-encoded pandoc document.
5304 -- removelinks.hs - removes links from document
5306 main = interact $ jsonFilter $ bottomUp removeLink
5307 where removeLink (Link xs _) = Emph xs
5310 To use this to remove links while translating markdown to LaTeX:
5312 pandoc -t json | runghc removelinks.hs | pandoc -f json -t latex
5314 * Attributes are now allowed in inline `Code` elements, for example:
5316 In this code, `ulist ! [theclass "special"] << elts`{.haskell} is...
5318 The attribute syntax is the same as for delimited code blocks.
5319 `Code` inline has an extra argument place for attributes, just like
5320 `CodeBlock`. Inline code will be highlighted in HTML output, if pandoc
5321 is compiled with highlighting support. Resolves Issue #119.
5323 * New `RawBlock` and `RawInline` elements (replacing `RawHtml`,
5324 `HtmlInline`, and `TeX`) provide lots of flexibility in writing
5325 scripts to transform Pandoc documents. Scripts can now change
5326 how each element is rendered in each output format.
5328 * You can now define LaTeX macros in markdown documents, and pandoc
5329 will apply them to TeX math. For example,
5331 \newcommand{\plus}[2]{#1 + #2}
5334 yields `3+4`. Since the macros are applied in the reader, they
5335 will work in every output format, not just LaTeX.
5337 * LaTeX macros can also be used in LaTeX documents (both in math
5338 and in non-math contexts).
5340 * A new `--mathjax` option has been added for displaying
5341 math in HTML using MathJax. Resolves issue #259.
5343 * Footnotes are now supported in the RST reader. (Note, however,
5344 that unlike docutils, pandoc ignores the numeral or symbol used in
5345 the note; footnotes are put in an auto-numbered ordered list.)
5346 Resolves Issue #258.
5348 * A new `--normalize` option causes pandoc to normalize the AST
5349 before writing the document. This means that, for example,
5350 `*hi**there*` will be rendered as `<em>hithere</em>`
5351 instead of `<em>hi</em><em>there</em>`. This is not the default,
5352 because there is a significant performance penalty.
5354 * A new `--chapters` command-line option causes headers
5355 in DocBook, LaTeX, and ConTeXt to start with "chapter" (level one).
5356 Resolves Issue #265.
5358 * In DocBook output, `<chapter>` is now used for top-level
5359 headers if the template contains `<book>`. Resolves Issue #265.
5361 * A new `--listings` option in `pandoc` and `markdown2pdf` causes
5362 the LaTeX writer to use the listings package for code blocks.
5363 (Thanks to Josef Svennigsson for the pandoc patch, and Etienne
5364 Millon for the markdown2pdf patch.)
5366 * `markdown2pdf` now supports `--data-dir`.
5368 * URLs in autolinks now have class "url" so they can be styled.
5370 * Improved prettyprinting in most formats. Lines will be wrapped
5371 more evenly and duplicate blank lines avoided.
5373 * New `--columns` command-line option sets the column width for
5374 line wrapping and relative width calculations for tables.
5376 * Made `--smart` work in HTML, RST, and Textile readers, as well
5379 * Added `--html5` option for HTML5 output.
5381 * Added support for listings package in LaTeX reader
5384 * Added support for simple tables in the LaTeX reader.
5386 * Added support for simple tables in the HTML reader.
5388 * Significant performance improvements in many readers and writers.
5390 [API and program changes]
5392 * Moved `Text.Pandoc.Definition` from the `pandoc` package to a new
5393 auxiliary package, `pandoc-types`. This will make it possible for other
5394 programs to supply output in Pandoc format, without depending on the whole
5397 * Added `Attr` field to `Code`.
5399 * Removed `RawHtml`, `HtmlInline`, and `TeX` elements; added generic
5400 `RawBlock` and `RawInline`.
5402 * Moved generic functions to `Text.Pandoc.Generic`. Deprecated
5403 `processWith`, replacing it with two functions, `bottomUp` and `topDown`.
5404 Removed previously deprecated functions `processPandoc` and `queryPandoc`.
5406 * Added `Text.Pandoc.Builder`, for building `Pandoc` structures.
5408 * `Text.Pandoc` now exports association lists `readers` and `writers`.
5410 * Added `Text.Pandoc.Readers.Native`, which exports `readNative`.
5411 `readNative` can now read full pandoc documents, block lists, blocks,
5412 inline lists, or inlines. It will interpret `Str "hi"`
5413 as if it were `Pandoc (Meta [] [] []) [Plain [Str "hi"]]`.
5414 This should make testing easier.
5416 * Removed deprecated `-C/--custom-header` option.
5417 Use `--template` instead.
5419 * `--biblio-file` has been replaced by `--bibliography`.
5420 `--biblio-format` has been removed; pandoc now guesses the format
5421 from the file extension (see README).
5423 * pandoc will treat an argument as a URI only if it has an
5424 `http(s)` scheme. Previously pandoc would treat some
5425 Windows pathnames beginning with `C:/` as URIs.
5427 * The `--sanitize-html` option and the `stateSanitize` field in
5428 `ParserState` have been removed. Sanitization is better done in the
5429 resulting HTML using `xss-sanitize`, which is based on pandoc's
5430 sanitization, but improved.
5432 * pandoc now adds a newline to the end of its output in fragment
5433 mode (= not `--standalone`).
5435 * Added support for `lang` in `html` tag in the HTML template,
5436 so you can do `pandoc -s -V lang=es`, for example.
5438 * `highlightHtml` in `Text.Pandoc.Highlighting` now takes
5439 a boolean argument that selects between "inline" and
5442 * `Text.Pandoc.Writers.RTF` now exports `rtfEmbedImage`.
5443 Images are embedded in RTF output when possible (png, jpeg).
5444 Resolves Issue #275.
5446 * Added `Text.Pandoc.Pretty`. This is better suited for pandoc than the
5447 `pretty` package. Changed all writers that used
5448 `Text.PrettyPrint.HughesPJ` to use `Text.Pandoc.Pretty` instead.
5450 * Rewrote `writeNative` using the new prettyprinting module. It is
5451 now much faster. The output has been made more consistent and compressed.
5452 `writeNative` is also now sensitive to writerStandalone`, and will simply
5453 `print a block list if writerStandalone` is False.
5455 * Removed `Text.Pandoc.Blocks`. `Text.Pandoc.Pretty` allows you to define
5456 blocks and concatenate them, so a separate module is no longer needed.
5458 * `Text.Pandoc.Shared`:
5460 + Added `writerColumns`, `writerChapters`, and `writerHtml5` to
5462 + Added `normalize`.
5463 + Removed unneeded prettyprinting functions:
5464 `wrapped`, `wrapIfNeeded`, `wrappedTeX`, `wrapTeXIfNeeded`, `hang'`,
5465 `BlockWrapper`, `wrappedBlocksToDoc`.
5466 + Made `splitBy` take a test instead of an element.
5467 + Added `findDataFile`, refactored `readDataFile`.
5468 + Added `stringify`. Rewrote `inlineListToIdentifier` using `stringify`.
5469 + Fixed `inlineListToIdentifier` to treat '\160' as ' '.
5471 * `Text.Pandoc.Readers.HTML`:
5473 + Removed `rawHtmlBlock`, `anyHtmlBlockTag`, `anyHtmlInlineTag`,
5474 `anyHtmlTag`, `anyHtmlEndTag`, `htmlEndTag`, `extractTagType`,
5475 `htmlBlockElement`, `htmlComment`
5476 + Added `htmlTag`, `htmlInBalanced`, `isInlineTag`, `isBlockTag`,
5479 * Moved `smartPunctuation` from `Text.Pandoc.Readers.Markdown`
5480 to `Text.Pandoc.Readers.Parsing`, and parameterized it with
5483 * Added `nonspaceChar` to `Text.Pandoc.Parsing`.
5485 * Ellipses are no longer allowed to contain spaces.
5486 Previously we allowed '. . .', ' . . . ', etc. This caused
5487 too many complications, and removed author's flexibility in
5488 combining ellipses with spaces and periods.
5490 * Allow linebreaks in URLs (treat as spaces). Also, a string of
5491 consecutive spaces or tabs is now parsed as a single space. If you have
5492 multiple spaces in your URL, use `%20%20`.
5494 * `Text.Pandoc.Parsing`:
5496 + Removed `refsMatch`.
5497 + Hid `Key` constructor.
5498 + Removed custom `Ord` and `Eq` instances for `Key`.
5499 + Added `toKey` and `fromKey` to convert between `Key` and `[Inline]`.
5500 + Generalized type on `readWith`.
5502 * Small change in calculation of relative widths of table columns.
5503 If the size of the header > the specified column width, use
5504 the header size as 100% for purposes of calculating
5505 relative widths of columns.
5507 * Markdown writer now uses some pandoc-specific features when `--strict`
5508 is not specified: `\` newline is used for a hard linebreak instead of
5509 two spaces then a newline. And delimited code blocks are used when
5510 there are attributes.
5512 * HTML writer: improved gladTeX output by setting ENV appropriately
5513 for display or inline math (Jonathan Daugherty).
5515 * LaTeX writer: Use `\paragraph`, `\subparagraph` for level 4,5 headers.
5519 + `\label{foo}` and `\ref{foo}` now become `{foo}` instead of `(foo)`.
5520 + `\index{}` commands are skipped.
5522 * Added `fontsize` variable to default LaTeX template.
5523 This makes it easy to set the font size using `markdown2pdf`:
5524 `markdown2pdf -V fontsize=12pt input.txt`.
5526 * Fixed problem with strikeout in LaTeX headers when using
5527 hyperref, by adding a command to the default LaTeX template
5528 that disables `\sout` inside pdf strings. Thanks to Joost Kremers
5531 * The `COLUMNS` environment variable no longer has any effect.
5533 [under-the-hood improvements]
5535 * Pandoc now compiles with GHC 7. (This alone leads to a
5536 significant performance improvement, 15-20%.)
5538 * Completely rewrote HTML reader using tagsoup as a lexer. The
5539 new reader is faster and more accurate. Unlike the
5540 old reader, it does not get bogged down on some input
5541 (Issues #277, 255). And it handles namespaces in tags
5544 * Replaced `escapeStringAsXML` with a faster version.
5546 * Rewrote `spaceChar` and some other parsers in Text.Pandoc.Parsing
5547 for a significant performance boost.
5549 * Improved performance of all readers by rewriting parsers.
5551 * Simplified Text.Pandoc.CharacterReferences by using
5552 entity lookup functions from TagSoup.
5554 * `Text.Pandoc.UTF8` now uses the unicode-aware IO functions
5555 from `System.IO` if base >= 4.2. This gives support for
5556 windows line endings on windows.
5558 * Remove duplications in documentation by generating the
5559 pandoc man page from README, using `MakeManPage.hs`.
5561 * README now includes a full description of markdown syntax,
5562 including non-pandoc-specific parts. A new `pandoc_markdown`
5563 man page is extracted from this, so you can look up markdown
5564 syntax by doing `man pandoc_markdown`.
5566 * Completely revised test framework (with help from Nathan Gass).
5567 The new test framework is built when the `tests` Cabal flag is set. It
5568 includes the old integration tests, but also some new unit and quickcheck
5569 tests. Test output has been much improved, and you can now specify a glob
5570 pattern after `cabal test` to indicate which tests should be run;
5571 for example `cabal test citations` will run all the citation tests.
5573 * Added a shell script, `stripansi.sh`, for filtering ANSI control
5574 sequences from test output: `cabal test | ./stripansi.sh > test.log`.
5576 * Added `Interact.hs` to make it easier to use ghci while developing.
5577 `Interact.hs` loads `ghci` from the `src` directory, specifying
5578 all the options needed to load pandoc modules (including
5579 specific package dependencies, which it gets by parsing
5582 * Added `Benchmark.hs`, testing all readers + writers using criterion.
5584 * Added `stats.sh`, to make it easier to collect and archive
5585 benchmark and lines-of-code stats.
5587 * Added upper bounds to all cabal dependencies.
5589 * Include man pages in extra-source-files. This allows users to
5590 install pandoc from the tarball without needing to build the man
5595 * Filenames are encoded as UTF8. Resolves Issue #252.
5597 * Handle curly quotes better in `--smart` mode. Previously, curly quotes
5598 were just parsed literally, leading to problems in some output formats.
5599 Now they are parsed as `Quoted` inlines, if `--smart` is specified.
5600 Resolves Issue #270.
5602 * Text.Pandoc.Parsing: Fixed bug in grid table parser.
5603 Spaces at end of line were not being stripped properly,
5604 resulting in unintended LineBreaks.
5608 + Allow HTML comments as inline elements in markdown.
5609 So, `aaa <!-- comment --> bbb` can be a single paragraph.
5610 + Fixed superscripts with links: `^[link](/foo)^` gets
5611 recognized as a superscripted link, not an inline note followed by
5613 + Fixed regression, making markdown reference keys case-insensitive again.
5614 Resolves Issue #272.
5615 + Properly handle abbreviations (like `Mr.`) at the end of a line.
5616 + Better handling of intraword underscores, avoiding exponential
5617 slowdowns in some cases. Resolves Issue #182.
5618 + Fixed bug in alignments in tables with blank rows in the header.
5622 + Field lists now allow spaces in field names, and
5623 block content in field values. (Thanks to Lachlan Musicman
5624 for pointing out the bug.)
5625 + Definition list items are now always `Para` instead of
5626 `Plain`, matching behavior of `rst2xml.py`.
5627 + In image blocks, the description is parsed properly and
5628 used for the alt attribute, not also the title.
5629 + Skip blank lines at beginning of file. Resolves
5634 + Improved parsing of preamble.
5635 Previously you'd get unexpected behavior on a document that
5636 contained `\begin{document}` in, say, a verbatim block.
5637 + Allow spaces between `\begin` or `\end` and `{`.
5638 + Support `\L` and `\l`.
5639 + Skip comments inside paragraphs.
5643 + Escape strings in `\href{..}`.
5644 + In nonsimple tables, put cells in `\parbox`.
5646 * OpenDocument writer: don't print raw TeX.
5650 + Fixed bug in `Image`. URI was getting unescaped twice!
5651 + Avoid printing extra blank lines at the end if there are
5652 no notes or references.
5654 * LaTeX and ConTeXt: Escape `[` and `]` as `{[}` and `{]}`.
5655 This avoids unwanted interpretation as an optional argument.
5657 * ConTeXt writer: Fixed problem with inline code. Previously
5658 `}` would be rendered `\type{}}`. Now we check the string for '}' and '{'.
5659 If it contains neither, use `\type{}`; otherwise use `\mono{}`
5660 with an escaped version of the string.
5662 * `:` now allowed in HTML tags. Resolves Issue #274.
5668 * New EPUB and HTML Slidy writers. (Issue #122)
5670 - EPUB is a standard ebook format, used in Apple's iBooks for
5671 the iPad and iPhone, Barnes and Noble's nook reader, the Sony
5672 reader, and many other devices.
5673 - Slidy, like S5, is a system for producing HTML+javascript slide
5676 * All input is assumed to be UTF-8, no matter what the locale and ghc
5677 version, and all output is UTF-8. This reverts to pre-1.5 behavior.
5678 Also, a BOM, if present, is stripped from the input.
5680 * Markdown now supports grid tables, whose cells can contain
5681 arbitrary block elements. (Issue #43)
5683 * Sequentially numbered example lists in markdown with `@` marker.
5685 * Markdown table captions can begin with a bare colon and no longer need
5686 to include the English word "table." Also, a caption can now occur
5687 either before or after the table. (Issue #227)
5689 * New command-line options:
5691 - `--epub-stylesheet` allows you to specify a CSS file that will
5692 be used to style your ebook.
5693 - `--epub-metadata` allows you to specify metadata for the ebook.
5694 - `--offline` causes the generated HTML slideshow to include all
5695 needed scripts and stylesheets.
5696 - `--webtex` causes TeX math to be converted to images using the
5697 Google Charts API (unless a different URL is specified).
5698 - `--section-divs` causes div tags to be added around each section
5699 in an HTML document. (Issue #230, 239)
5701 * Default behavior of S5 writer in standalone mode has changed:
5702 previously, it would include all needed scripts and stylesheets
5703 in the generated HTML; now, only links are included unless
5704 the `--offline` option is used.
5706 * Default behavior of HTML writer has changed. Between 1.2 and 1.5,
5707 pandoc would enclose sections in div tags with identifiers on the
5708 div tags, so that the sections can be manipulated in javascript.
5709 This caused undesirable interactions with raw HTML div tags. So,
5710 starting with 1.6, the default is to put the identifiers directly
5711 on the header tags, and not to include the divs. The `--section-divs`
5712 option selects the 1.2-1.5 behavior.
5716 - `HTMLMathMethod`: Added `WebTeX`, removed `MimeTeX`.
5717 - `WriterOptions`: Added `writerUserDataDir`, `writerSourceDirectory`,
5718 `writerEPUBMetadata` fields. Removed `writerIncludeBefore`,
5719 `writerIncludeAfter`.
5720 - Added `headerShift` to `Text.Pandoc.Shared`.
5721 - Moved parsing code and `ParserState` from `Text.Pandoc.Shared`
5722 to a new module, `Text.Pandoc.Parsing`.
5723 - Added `stateHasChapters` to `ParserState`.
5724 - Added `HTMLSlideVariant`.
5725 - Made `KeyTable` a map instead of an association list.
5726 - Added accessors for `Meta` fields (`docTitle`, `docAuthors`,
5728 - `Pandoc`, `Meta`, `Inline`, and `Block` have been given `Ord`
5730 - Reference keys now have a type of their own (`Key`), with its
5731 own `Ord` instance for case-insensitive comparison.
5732 - Added `Text.Pandoc.Writers.EPUB`.
5733 - Added `Text.Pandoc.UUID`.
5734 - Removed `Text.Pandoc.ODT`, added `Text.Pandoc.Writers.ODT`.
5735 Removed `saveOpenDocumentAsODT`, added `writeODT`.
5736 - Added `Text.Pandoc.Writers.Native` and `writeNative`.
5737 Removed `prettyPandoc`.
5738 - Added `Text.Pandoc.UTF8` for portable UTF8 string IO.
5739 - Removed `Text.Pandoc.Writers.S5` and the `writeS5` function.
5740 Moved `s5Includes` to a new module, `Text.Pandoc.S5`.
5741 To write S5, you now use `writeHtml` with `writerSlideVariant`
5742 set to `S5Slides` or `SlidySlides`.
5744 * Template changes. If you use custom templates, please update them,
5745 particularly if you use syntax highlighting with pandoc. The old HTML
5746 templates hardcoded highlighting CSS that will no longer work with
5747 the most recent version of highlighting-kate.
5749 - HTML template: avoid empty meta tag if no date.
5750 - HTML template: Use default highlighting CSS from highlighting-kate
5751 instead of hard-coding the CSS into the template.
5752 - HTML template: insert-before text goes before the title, and
5753 immediately after the <body> tag, as documented. (Issue #241)
5754 - Added slidy and s5 templates.
5755 - Added amssymb to preamble of latex template. (github Issue 1)
5757 * Removed excess newlines at the end of output. Note: because output
5758 will not contain an extra newline, you may need to make adjustments
5759 if you are inserting pandoc's output into a template.
5761 * In S5 and slidy, horizontal rules now cause a new slide, so you
5762 are no longer limited to one slide per section.
5764 * Improved handling of code in man writer. Inline code is now monospace,
5765 not bold, and code blocks now use .nf (no fill) and .IP (indented para).
5767 * HTML reader parses `<tt>` as Code. (Issue #247)
5769 * html+lhs output now contains bird tracks, even when compiled without
5770 highlighting support. (Issue #242)
5772 * Colons are now no longer allowed in autogenerated XML/HTML identifiers,
5773 since they have a special meaning in XML.
5775 * Code improvements in ODT writer. Remote images are now replaced with
5776 their alt text rather than a broken link.
5778 * LaTeX reader improvements:
5780 - Made latex `\section`, `\chapter` parsers more forgiving of
5782 - Parse `\chapter{}` in latex.
5783 - Changed `rawLaTeXInline` to accept `\section`, `\begin`, etc.
5784 - Use new `rawLaTeXInline'` in LaTeX reader, and export `rawLaTeXInline`
5785 for use in markdown reader.
5786 - Fixes bug wherein `\section{foo}` was not recognized as raw TeX
5787 in markdown document.
5789 * LaTeX writer: images are automatically shrunk if they would extend
5790 beyond the page margin.
5792 * Plain, markdown, RST writers now use unicode for smart punctuation.
5794 * Man writer converts math to unicode when possible, as in other writers.
5796 * `markdown2pdf` can now recognize citeproc options.
5798 * Command-line arguments are converted to UTF-8. (Issue #234)
5800 * `Text.Pandoc.TeXMath` has been rewritten to use texmath's parser.
5801 This allows it to handle a wider range of formulas. Also, if a formula
5802 cannot be converted, it is left in raw TeX; formulas are no longer
5803 partially converted.
5805 * Unicode curly quotes are left alone when parsing smart quotes. (Issue
5808 * Cabal file changes:
5810 - Removed parsec < 3 restriction.
5811 - Added 'threaded' flag for architectures where GHC lacks a threaded
5813 - Use 'threaded' only for markdown2pdf; it is not needed for pandoc.
5814 - Require highlighting-kate 0.2.7.
5816 * Use explicit imports from `Data.Generics`. Otherwise we have a
5817 conflict with the 'empty' symbol, introduced in syb >= 0.2. (Issue #237)
5819 * New data files: slidy/slidy.min.js, slidy/slidy.min.css, epub.css.
5825 * Fixed uniqueIdent in Shared so that header identifiers work as
5826 advertized in the README and are are valid XHTML names.
5832 * Fixed treatment of unicode characters in URIs.
5833 + Shared now exports escapeURI and unescapeURI. These handle
5834 UTF8 encoding and decoding as well as URI escaping/unescaping.
5835 + Shared: uri and emailAddress now return a pair of the original
5836 parsed text and the escaped URI (in the latter case, with
5837 the mailto: prefix).
5838 + HTML reader: unsanitaryURI has been modified to allow unicode
5839 high characters in a URI.
5840 + Readers: All link and image URIs are now escaped using
5842 + Markdown and RST writers: unescapeURI is used so that URIs
5843 in these formats are human-readable.
5845 * Setup.hs: Don't assume that the build directory is "dist".
5846 Instead, get it from localBuildInfo.
5848 * OpenDocument writer: Use a Map for stTextStyleAttr.
5849 This avoids duplicates (and invalid xml). Resolves Issue #222.
5855 * HTML writer: Fixed error in math writer (with MathML option)
5856 that caused an infinite loop for unparsable MathML.
5862 * Added --mathml option. When this is selected, pandoc will convert
5863 TeX math into MathML.
5864 + Added data/MathMLinHTML.js, which is included when no URL is
5865 provided for --mathml. This allows MathML to be displayed (in
5866 better browsers) as text/html.
5867 + Removed Text.Pandoc.LaTeXMathML. The module was no longer
5868 necessary; it was replaced by two lines in pandoc.hs.
5869 + Replaced LaTeXMathML.js.commend and LaTeXMathML.js.packed with a
5870 single combined file, LaTeXMathML.js.
5872 * Added --data-dir option.
5873 This specifies a user data directory. If not specified, will default
5874 to ~/.pandoc on unix or Application Data\pandoc on Windows.
5875 Files placed in the user data directory will override system default
5878 * Added Maybe datadir parameter to readDataFile, saveOpenDocumentAsODT,
5879 latexMathMLScript, s5HeaderIncludes, and getDefaultTemplate. If
5880 Nothing, no user directory is searched for an override.
5882 * Added 'plain' output format. This is similar to markdown, but
5883 removes links, pictures, inline formatting, and most anything that
5884 looks even vaguely markupish. The function writePlain is exported by
5885 Text.Pandoc.Writers.Markdown, with which it shares most of its code.
5887 * Allow multi-line titles and authors in meta block.
5888 Titles may span multiple lines, provided continuation lines
5889 begin with a space character. Separate authors may be put on
5890 multiple lines, provided each line after the first begins with
5891 a space character. Each author must fit on one line. Multiple
5892 authors on a single line may still be separated by a semicolon.
5893 Based on a patch by Justin Bogner.
5895 * When given an absolute URI as parameter, pandoc will try to fetch
5896 the content via HTTP. So you can do:
5897 'pandoc -r html -w markdown http://www.fsf.org'
5898 Adds dependency on HTTP.
5900 * Made HTML reader much more forgiving.
5901 + Incorporated idea (from HXT) that an element can be closed
5902 by an open tag for another element.
5903 + Javascript is partially parsed to make sure that a <script>
5904 section is not closed by a </script> in a comment or string.
5905 + More lenient non-quoted attribute values.
5906 Now we accept anything but a space character, quote, or <>.
5907 This helps in parsing e.g. www.google.com!
5908 + Bare & signs are now parsed as a string. This is a common
5910 + Skip a bare < in malformed HTML.
5912 * Removed html2markdown and hsmarkdown.
5913 + html2markdown is no longer needed, since you can now pass URI
5914 arguments to pandoc and directly convert web pages. (Note,
5915 however, that pandoc assumes the pages are UTF8. html2markdown
5916 made an attempt to guess the encoding and convert them.)
5917 + hsmarkdown is pointless -- a large executable that could be
5918 replaced by 'pandoc --strict'.
5920 * In most writers, an image in a paragraph by itself is now rendered
5921 as a figure, with the alt text as the caption. (Texinfo, HTML, RST,
5922 MediaWiki, Docbook, LaTeX, ConTeXt, HTML.) Other images are
5925 * Depend on extensible-exceptions. This allows pandoc to be compiled
5928 * Added --base-header-level option. For example, --base-header-level=2
5929 will change level 1 headers to level 2, level 2 to level 3, etc.
5930 Closes Debian #563416.
5932 * Incomplete support for RST tables (simple and grid).
5933 Thanks to Eric Kow. Colspans and rowspans not yet supported.
5935 * Added accessors (docTitle, docAuthors, docDate) to Meta type.
5937 * MediaWiki writer: format links with relative URLs as wikilinks.
5938 The new rule: If the link target is an absolute URL, an external
5939 link is created. Otherwise, a wikilink is created.
5941 * Text.Pandoc.Shared: Export uniqueIdent, and don't allow tilde in
5942 identifier. Note: This may break links to sections that involve
5945 * Markdown(+lhs) reader: handle "inverse bird tracks."
5946 Inverse bird tracks (<) are used for haskell example code that is not
5947 part of the literate Haskell program. Resolves Issue #211.
5950 + Recognize '\ ' (interword space).
5951 + Recognize nonbreaking space '~'.
5952 + Ignore \section, \pdfannot, \pdfstringdef. Ignore alt title in
5953 section headers. Don't treat \section as inline LaTeX.
5954 Resolves Issue #202.
5955 + LaTeX reader: allow any special character to be escaped.
5956 Resolves Issue #221.
5957 + LaTeX reader: treat \paragraph and \subparagraph as level 4, 5
5958 headers. Resolves Issue #207.
5960 * Use template variables for include-before/after.
5961 + These options now imply -s; previously they worked also in fragment
5963 + Users can now adjust position of include-before and include-after
5964 text in the templates.
5965 + Default position of include-before moved back (as it was before 1.4)
5966 before table of contents.
5967 + Resolves Issue #217.
5969 * Don't print an empty table header: (all writers).
5970 Resolves Issue #210.
5972 * HTML, Docbook writer: Use tbody, thead, and cols in tables.
5974 * HTML writer: Don't include TOC div if table of contents is empty.
5976 * Markdown writer: Fixed citations.
5977 Previously the markdown writer printed raw citation codes, e.g.
5978 [geach1970], rather than the expanded citations provided by
5979 citeproc, e.g. (Geach 1970). Now it prints the expanded citations.
5980 This means that the document produced can be processed as a markdown
5981 document without citeproc. Thanks to dsanson for reporting, and
5982 Andrea Rossato for the patch.
5984 * Improved and simplified title block in context template.
5985 Previously it caused an error if there was no title.
5986 This method should also be easier for users to customize.
5989 + Treat p., pp., sec., ch., as abbreviations in smart mode.
5990 + Disallow blank lines in inline code span.
5991 + Allow footnotes to be indented < 4 spaces.
5992 This fixes a regression. A test case has been added.
5993 + Escape spaces in URLs as %20. Previously they were incorrectly
5994 escaped as +, which is appropriate only for the query part of
5995 a URL. Resolves Issue #220.
5996 + Require two spaces after capital letter + period for list item.
5997 Otherwise "E. coli" starts a list. This might change the semantics
5998 of some existing documents, since previously the two-space
5999 requirement was only enforced when the second word started
6000 with a capital letter. But it is consistent with the existing
6001 documentation and follows the principle of least surprise.
6002 Resolves Issue #212.
6004 * LaTeX template: redefine labelwidth when using enumerate package.
6005 Otherwise the list labels (numbers) often extend past the left
6006 margin, which looks bad.
6008 * Mediawiki writer: Don't print a "== Notes ==" header before
6009 references. This is too English-centric. Writers can provide their
6010 own header at the end of the document.
6012 * Promoted mediawiki headers. '= head =' is now level 1, '== head =='
6013 level 2, etc. This seems to be correct; it's only by convention
6014 that wikipedia articles have level 2 headers at most.
6015 Patch due to Eric Kow.
6017 * RunTests.hs: Set LANG to a UTF-8 locale. Use 'pandoc --data-dir=' so
6018 data files don't need to have been installed. This removes the need to
6022 + Handle spaces before <html>. Resolves Issue #216.
6023 + Be forgiving in parsing a bare list within a list.
6024 The following is not valid xhtml, but the intent is clear:
6027 <ol><li>sub</li></ol>
6030 We'll treat the <ol> as if it's in a <li>. Resolves Issue #215.
6032 * Updated INSTALL instructions. cabal method is now promoted.
6034 * Updated markdown2pdf man page. It no longer says all pandoc options
6037 * README/man pages: Removed advice to pipe through tidy before HTML
6038 reader. This is obsolete, now that we have a forgiving HTML parser.
6040 * LaTeX writer: set numbersections template variable, so
6041 the section numbering options work again.
6043 * Removed obsolete Makefile.
6045 * Website: renamed index.txt.in -> index.txt.
6047 * New batch file to make-windows-installer.
6048 + Removed old Makefile.windows
6049 + Added make-windows-installer.bat
6050 + Modified default installer name in pandoc-setup.iss
6052 * Removed freebsd and macports directories.
6053 They are no longer up to date.
6056 + Made man page building sensitive to build verbosity.
6057 + Improved detection of highlighting support in test hook.
6058 + Install wrapper scripts into cabal bin directory.
6059 + Also simplified installManpages.
6060 + Setup.hs: install manpages to mandir. Code borrowed from darcs.
6062 * Changed default of writerXeTeX to False.
6064 * HTML writer: don't include empty UL if --toc but no sections.
6065 Resolves Issue #199.
6069 + If book, report, or memoir documentclass, use \chapter{}
6070 for first-level headers. Otherwise use \section{}.
6071 + Removed stLink, link template variable. Reason: we now always
6072 include hyperref in the template.
6076 + Only show \author if there are some.
6077 + Always include hyperref package. It is used not just for links but
6078 for toc, section heading bookmarks, footnotes, etc. Also added
6079 unicode=true on hyperref options.
6081 * markdown2pdf: always do at least two runs. hyperref bookmarks
6084 * cabal file: Removed unneeded dependency on template-haskell.
6086 * Windows installer - fixed bug in data file locations.
6087 Resolves Issue #197.
6089 * Deprecated --custom-header in documentation.
6090 Removed old "Custom Headers" section in README.
6096 * Pandoc will now compile with either GHC 6.10 or 6.12.
6097 + Don't use System.IO.UTF8 when compiling with 6.12
6098 + Use -fno-warn-unused-do-bind option when compiling with 6.12
6100 * Replaced old headers with templates. Now users have much more
6101 control over the way documents appear in --standalone mode,
6102 and writer code is simplified. Resolves Issues #59, 147.
6103 Every effort has been made to retain backwards compatibilty.
6104 So, the --custom-header option should still work as before.
6106 + Added Text.Pandoc.Templates. This provides functions for
6107 retrieving default templates and for rendering templates.
6108 + System templates (in the pandoc data directory) can be
6109 overridden by user templates in $HOME/.pandoc/templates.
6110 + Removed Text.Pandoc.DefaultHeaders.
6111 + Removed data/headers directory.
6112 + Added templates directory.
6113 + Added writerTemplate and writerVariables fields to WriterOptions.
6114 + Removed writerTitlePrefix, writerHeader fields from WriterOptions.
6115 + Changed --print-default-header to --print-default-template.
6116 + Added --template option.
6117 + Added -V/--variable option to set custom template variables.
6119 * Pandoc no longer requires Template Haskell. Resolves Issue #186.
6121 + Removed need for TH in ODT module. Instead get reference.odt from
6122 data file at run time.
6123 + Removed TH dependency from S5 module. S5 module now exports
6124 s5HeaderIncludes, which pandoc.hs includes if writer is s5 and
6126 + Refactored LaTeXMathML not to use TH.
6128 * Meta is now Meta [Inline] [[Inline]] [Inline] rather than
6129 Meta [Inline] [String] String. Authors and date in Meta are now lists
6130 of Inline elements rather than raw strings. This means that they can
6131 be formatted and can include footnotes. NOTE: This may be a breaking
6132 change for those using pandoc as a library.
6134 * Added readDataFile to Text.Pandoc.Shared. This retrieves
6135 a data file from the user pandoc data directory (~/.pandoc
6136 on unix), or, if not found there, from the system data
6137 directory ($CABALDIR/shared/pandoc-VERSION/). All data
6138 files, including templates, LaTeXMathML.js, s5 styles,
6139 and reference.odt, can be overridden by the user.
6141 * s5 files moved from data/ui/default to s5/default.
6143 * Use unicode instead of entities in HTML and XML output. Resolves
6146 * Prettier HTML footnote references: put anchor inside sup,
6147 instead of other way. Resolves Issue #191. Thanks to
6150 * Added --xetex option to pandoc and markdown2pdf.
6151 If --xetex is specified, pandoc produces latex suitable for
6152 processing by xelatex, and markdown2pdf uses xelatex to create
6153 the PDF. Resolves Issue #185.
6155 * RTF writer: multiple authors now occupy multiple paragraphs rather
6156 than using a line break.
6158 * Man writer: now the "--after-body" will come after the "AUTHORS"
6159 section, whereas before it would come before it. This is a
6160 slight break from backwards compatibility.
6162 * Added --reference-odt option, so users may customize the styles
6163 used in pandoc-generated ODT files. Users may also place a
6164 default reference.odt in the ~\.pandoc directory.
6167 + Indented and line-broke styles.xml so it can be modified more easily.
6168 + Omitted some unnecessary style declarations.
6169 + Don't wrap text in OpenDocument writer. The tags are too long, making
6170 wrapping ugly and pointless.
6172 * LaTeX reader: use \\ to separate multiple authors.
6174 * Markdown reader: use ; as separator between authors.
6175 This allows you to use ',' within author names: e.g. "John Jones, Jr."
6177 * S5 writer: use linebreak to separate authors in title page.
6179 * RST reader: Allow :: before lhs code block. The RST spec requires the
6180 :: before verbatim blocks. This :: should not be treated as literal
6181 colons. Resolves Issue #189.
6183 * Documented pandoc 1.3's new definition list syntax in README.
6184 (An oversight in the last release.)
6187 + interpret ! in a log as an error line.
6188 + --toc now works properly.
6190 * Changes in RunTests.hs:
6191 + Use the Diff library rather than a local copy of Diff.hs.
6192 (This vastly increases performance.) This change means that 'cabal
6193 test' presupposes that the Diff library is installed.
6194 + Removed tests/Diff.hs from cabal file.
6195 + Changed RunTests to use local environment. We need at least HOME, so
6196 pandoc can find its data directory.
6198 * Updated windows installer to install data files in the app directory.
6200 * Windows installer now installs portable wrappers hsmarkdown and
6207 * Added --id-prefix option (Issue #41). This adds a prefix to all
6208 automatically generated HTML identifiers, which helps prevent
6209 duplicate identifiers when you're generating a fragment (say a blog
6212 * Added --indented-code-classes option. This specifies classes
6213 to use for indented code blocks. (Patch due to buttock; Issue #87.)
6215 * --number-sections now affects HTML output as well as ConTeXt and LaTeX
6218 * Improved syntax for markdown definition lists (Issue #24).
6219 Definition lists are now more compatible with PHP Markdown Extra.
6220 + You can have multiple definitions for a term (but still not
6222 + Multi-block definitions no longer need a column before each block
6223 (indeed, this will now cause multiple definitions).
6224 + The marker no longer needs to be flush with the left margin,
6225 but can be indented at or two spaces. Also, ~ as well as :
6226 can be used as the marker (this suggestion due to David
6228 + There can now be a blank line between the term and the
6231 * Better looking simple tables. Resolves Issue #180.
6232 + Markdown reader: simple tables are now given column widths of 0.
6233 + Column width of 0 is interpreted as meaning: use default column width.
6234 + Writers now include explicit column width information only
6235 for multiline tables. (Exception: RTF writer, which requires
6236 column widths. In this case, columns are given equal widths,
6237 adding up to the text width.)
6238 + Simple tables should now look better in most output formats.
6240 * Allow markdown tables without headers (Issue #50).
6241 The new syntax is described in README. Also allow optional line of
6242 dashes at bottom of simple tables.
6244 * Compensate for width of final table column (Issue #144).
6246 * Treat a backslash followed by a newline as a hard line break
6247 in markdown. Resolves Issue #154. This is a nice alternative
6248 to markdown's "invisible" way of indicating hardline breaks
6249 using lines that end with two spaces.
6251 * Improved performance of markdown reader by ~10% by eliminating the
6252 need for a separate parsing pass for notes. Raw notes are now stored
6253 on the first pass (which parses references), then parsed when the
6254 note is inserted into the AST. The stateNotes field in ParserState
6255 is now a list of [(String, String)] pairs instead of [(String,
6258 * In markdown reader, treat 4 or more * or _ in a row as literal
6259 text. (Trying to parse long strings of * or _ as strong or emph
6260 leads to exponential performance problems.)
6262 * Markdown reader: Use + rather than %20 for spaces in URLs.
6264 * Fixed htmlComment parser, adding a needed 'try'.
6266 * Don't print raw HTML in man output.
6268 * Allow . _ and ~ in header identifiers.
6270 * Specially mark code blocks that were "literate" in the input.
6271 They can then be treated differently in the writers. This allows
6272 authors to distinguish bits of the literate program they are writing
6273 from source code examples, even if the examples are marked as
6274 Haskell for highlighting. (Issue #174.)
6276 * Modified html+lhs output to use "haskell" highlighter instead
6277 of "literateHaskell". The highlighting module now adds bird tracks
6278 after highlighting (for HTML output), if the code block has the
6279 "literate" class. This gives better results, because kate's
6280 haskell highlighter is much better than the literateHaskell
6283 * Fixed handling of footnotes in titles (HTML) and headers (LaTeX).
6286 * Support for "..code-block" directive in RST reader. Not core
6287 RST, but used in Sphinx for code blocks annotated with syntax
6288 information. Thanks to Luke Plant for the patch.
6290 * Added "head" to list of block-level HTML tags. Resolves
6293 * Added stripTags to Text.Pandoc.XML. This is used in the HTML writer.
6295 * Set utf-8 encoding in texinfo headers.
6297 * Docbook writer: add ids to sections. Use link for internal links.
6300 * Blank lines after lists in MediaWiki writer.
6302 * Properly handle commented-out list items in markdown.
6303 Resolves Issue #142. Example:
6311 * Changed heuristic in compactify. compactify has to decide whether a
6312 Para that ends a list is a Para intentionally, or just because of
6313 the blank lines at the end of every list. In the latter case the
6314 Para is turned to a Plain. The old heuristic was: change final Para
6315 to Plain iff the other items all end in Plain. This produces bad
6316 results when, for example, an item contains just a Plain and an HTML
6317 comment, as it does in the list above. The new heuristic: change
6318 final Para to Plain iff the other items don't contain a Para.
6320 * Added % as an rst underline character. Resolves Issue #173.
6322 * Fix inline math parser so that \$ is allowed in math.
6323 Resolves Issue #169.
6325 * Translate \int (integral) into unicode when using unicode math
6326 method. Resolves Issue #177.
6328 * markdown2pdf.hs improvements:
6329 + Use System.IO.UTF8.
6330 + Print error messages on last attempt.
6331 + Do not create a backup when overwriting a PDF (Issue #166).
6332 + Accept --longopt=val options.
6333 + Added man/man1/markdown2pdf.1 to extra-tmp-files in cabal, so that
6334 it is properly cleaned.
6336 * Added haddock comments warning that readers assume \n line endings.
6338 * Updated COPYRIGHT file.
6340 * Makefile: Changed EXECSBASE so it doesn't pull in hsmarkdown &
6341 markdown2pdf. Otherwise strip tries to strip shell scripts when you
6342 install using 'make'.
6344 * Changed Makefile so it doesn't build Haskell wrappers.
6346 * Fixed Makefile so it doesn't try to build man pages in build-doc.
6348 * Install pcre3.dll in Windows install script; this allows us to
6349 package a version of pandoc with highlighting support.
6355 * Fixed regression with --preserveTabs. Brought back optPreserveTabs.
6356 The trick of setting tabStop to 0 to mean "preserve tabs" had a bad
6357 side effect: strings of 0 spaces were interpreted as indentation.
6358 So, with --preserve-tabs, unindented paragraphs were treated as
6359 code. Resolves Issue #138.
6361 * HTML writer: wrap sections in divs. Resolves Issue #70.
6363 + hierarchicalize has been rationalized; it builds a hierarchical
6364 representation of the document from the headers, and simultaneously
6365 gives each section a unique identifier based on the heading title.
6366 + Identifiers are now attached to the divs rather than
6367 to the headers themselves.
6368 + Table of content backlinks go to the beginning of the table, rather
6369 than to the section reference that was clicked.
6370 + Code for constructing identifiers has been moved to Text.Pandoc.Shared
6371 from the HTML writer, since it is now consumed only by
6373 + In --strict mode, pandoc just prints bare headings, as before
6374 (unless --toc has been specified).
6375 + In s5 output, it does not wrap sections in divs, as that seems to
6376 confuse the s5 javascript.
6378 * Man writer: break lines at end of each sentence. groff expects this
6379 and treats '.' and '?' differently when followed by line ending as
6380 opposed to ordinary space. Also, don't escape periods. Instead, use
6381 zero-width character \& to avoid unwanted interpretation of periods
6382 at start of line. Resolves Issue #148.
6384 * Markdown writer: Added '#' and '>' to list of characters to be
6385 escaped in markdown output. Removed '<', as it is not an officially
6386 escapable character. This partially resolves Issue #96.
6388 * Make --smart the default for man output format. Otherwise we have
6389 trouble dividing lists of endlines into sentences.
6391 * DocBook writer: Use language attribute to indicate source language
6396 + Allow # to continue list, even if the list was started with an
6397 explicit marker. For example:
6402 Resolves Issue #140.
6403 + Allow continuation lines in line blocks. Also added test cases for
6404 line blocks for RST reader. Resolves Issue #149.
6405 + Allow explicit links with spaces in URL: `link <to this>`_
6407 * Improved LaTeX reader's coverage of math modes. Remove displaymath*
6408 (which is not in LaTeX) and recognize all the amsmath environments
6409 that are alternatives to eqnarray, namely equation, equation*,
6410 gather, gather*, gathered, multline, multline*, align, align*,
6411 alignat, alignat*, aligned, alignedat, split. Resolves Issue #103.
6412 Thanks to shreevatsa.public for the patch.
6416 + Allow -, _, :, . in markdown attribute names. These are legal in
6417 XML attribute names.
6418 + Use non-breaking spaces in abbreviations.
6419 + Markdown reader: improved efficiency of abbreviation parsing.
6420 Instead of a separate abbrev parser, we just check for
6421 abbreviations each time we parse a string. This gives a huge
6422 performance boost with -S. Resolves Issue #141.
6424 * Improved efficiency of shared parsers: hexNum, htmlComment,
6425 whitespace, indentSpaces.
6427 * Export HTMLMathMethod in Text.Pandoc.
6429 * Export languagesByExtension in Text.Pandoc.Highlighting.
6431 * Added new Haskell version of markdown2pdf, due to
6432 Paulo Tanimoto. This should be more portable than the old
6435 * Made 'pandoc -v' more explicit about compiler options.
6436 Resolves Issue #139.
6438 * pandoc.hs: Made --strict compatible with --standalone, --toc.
6440 * Use Paths_pandoc to get version number, instead of hard-coding it
6441 into Text/Pandoc.hs.
6447 * Added support for literate Haskell. lhs support is triggered by
6448 '+lhs' suffixes in formats. For example, 'latex+lhs' is literate
6449 Haskell LaTeX. '.lhs' files are treated by default as literate
6452 + Added stateLiterateHaskell to parser state.
6453 + Added parser for lhsCodeBlock to Markdown, RST, LaTeX readers.
6454 + Added parser for |inline lhs| to LaTeX reader.
6455 + Added writerLiterateHaskell to WriterOptions.
6456 + Added lhs support to Markdown, RST, LaTeX, HTML writers.
6457 + Added definition of code environment to LaTeX header.
6458 + Added tests (run only if highlighting support compiled in).
6459 + Documented lhs features in man page and README.
6461 * In Text.Pandoc.Definition, added processWith, processWithM,
6462 and queryWith, and deprecated processPandoc and queryPandoc
6463 for these more general functions.
6465 * Fixed bug in mediawiki writer: improper closing tags in tables.
6466 Thanks to Benct Philip Jonsson for reporting the bug.
6468 * Added --email-obfuscation option.
6470 + Added writer option for email obfuscation.
6471 + Implemented email obfuscation options in HTML writer.
6472 + Added option to option parser.
6473 + Documented in README and pandoc man page.
6474 + Resolves Issue #97.
6476 * LaTeX writer: fixed bug with empty table cells.
6477 Resolves Issue #107. Thanks to rodja.trappe for the patch.
6479 * Fixed bug with header spacing in Markdown and RST writers.
6480 A null header (Meta [] [] []) should not cause a blank line
6481 at the beginning of output. But a blank line is needed between
6482 a non-null header and the main text.
6484 * Markdown reader: Relax spacing rules for $$ in display math. Now
6485 space and newlines are allowed after the opening $$ and before the
6486 closing $$. However, the display math cannot contain an entirely
6487 blank line. Resolves Issue #105.
6489 * Markdown reader: Gobble space after Plain blocks containing only
6490 raw html inline. Otherwise following header blocks are not parsed
6491 correctly, since the parser sees blank space before them. Resolves
6494 * Markdown reader: Allow " as well as '' to end a latex double-quote.
6496 * Conditionally depend on syb and base >= 4 if ghc >= 6.10.
6497 Resolves Issue #109.
6499 * Fixed problems in RST and markdown output due to bug in pretty-1.0.1.0
6501 + Added hang' function to Text.Pandoc.Shared; this will be used instead
6502 of hang, which doesn't work properly in pretty-1.0.1.0. When pretty
6503 is upgraded, we can go back to hang.
6504 See http://article.gmane.org/gmane.comp.lang.haskell.general/16687
6505 + Use hang' (and some different techniques) in RST and markdown writers.
6506 Some output is now a bit different.
6508 * Brought citeproc support up to date for citeproc-hs-0.2.
6509 (Patch by Andrea Rossato.)
6511 * Moved all haskell source to src subdirectory. Renamed Main.hs to
6514 * Rewrote hsmarkdown in Haskell for portability (src/hsmarkdown.hs).
6515 For now, keeping the old shell script too.
6517 * Added TemplateHaskell to Extensions for executable, removed
6518 -threaded for library. Thanks to duncan.coutts for the bug report.
6519 Resolves Issue #121.
6521 * Moved some Extra-Source-Files to Data-Files.
6523 * Moved tabFilter to Shared.
6525 * In pandoc.hs, removed optPreserveTabs; instead, tabstop of 0 means
6528 * Minor code cleanup based on hlint suggestions.
6536 + Changed date on copyright message in Main.hs.
6537 + Have the '-v' option print syntax highlighting languages
6538 separated by commas, and wrapped in lines, instead of in five
6541 * Added --jsmath option. Resolves Issue #68.
6543 + Added --jsmath option to Main.hs
6544 + Added JsMath to HTMLMathMethod in Text.Pandoc.Shared.
6545 + Handle math appropriately in HTML writer when JsMath selected.
6546 + Documented the option in README and man page.
6548 * Text.Pandoc.Shared: Changed compactify to use a better heuristic
6549 for tight and loose lists. Final Para is changed to Plain if all
6550 other list items *end* with a Plain block. Addresses Issue #99.
6554 + Added colons to protocols in unsanitaryURI. Closes Issue #88.
6555 + HTML reader: Don't interpret contents of <pre> blocks as markdown.
6556 Added rawVerbatimBlock parser. Resolves Issue #94.
6560 + Allow URLs with spaces in them in links and references, but escape
6562 + Allow blank space at the end of horizontal rules.
6564 * RST reader: Modified 'unknownDirective' parser to handle comment
6565 blocks correctly, and added tests for comment blocks. Resolves Issue
6566 #86. Closes Debian Bug #500662.
6570 + Include classes on tr elements in HTML output:
6571 "header", "odd", "even". This allows tables to be styled with
6572 lines in alternating colors. Resolves Issue #91.
6573 + Enclose all LaTeXMathML bits in <span class="LaTeX">.
6574 This prevents parts of the document that are not math from being
6575 interpreted as math by LaTeXMathML.js.
6577 * OpenDocument and ODT writers: Added support for HorizontalRule elements,
6578 which were formerly ignored. Resolves Issue #95.
6580 * Text.Pandoc.Shared: Modified wrappedTeX to eliminate the line break
6581 between a footnote and immediately following nonspace characters in
6582 LaTeX and ConTeXt output. (This gets interpreted as a space, which
6583 is not desired in cases like "text^[note]---".) Resolves Issue #93.
6585 * Windows installer: Don't require admin privileges to run
6586 installer. Modified pandoc-setup.iss, and changed modpath.iss to
6587 modify HKCU path if user lacks admin privileges. Also fixed case
6588 where oldpath is empty (previously this led to the new path
6589 beginning with a semicolon).
6591 * Updated INSTALL instructions for Arch packages and OS X install using
6594 * Removed the (now unneeded) debian directory.
6595 Removed empty Codec and System directories.
6597 * Moved odt-styles/ to data/. Removed unneeded variable in Makefile.
6599 * Modified Setup.hs so that the "test" target returns an error status
6600 when tests fail, and "build" returns a success status if
6601 the build succeeds. Resolves Issue #100.
6603 * Added BUGS to files in tarball.
6610 * Removed spurious reference to pdf output format from pandoc(1) man page.
6616 * Added new OpenDocument writer.
6618 * Added support for SmallCaps inline element.
6620 * Added support for integrating pandoc with citeproc-hs.
6622 + Added Cite element to definition and writers.
6623 + Added Text.Pandoc.Biblio module
6624 + Note: This support is included only if the 'citeproc'
6625 Cabal configuration flag is set.
6627 * Made Pandoc data structure an instance of Typeable.
6628 Added new processPandoc and queryPandoc functions, to query
6629 or transform matching elements in a Pandoc structure.
6633 * Added new Texinfo writer.
6637 * Changes to Texinfo writer:
6639 + No space between paragraph and following @verbatim (provides more
6640 pleasing appearance in text formats)
6641 + Blank line consistently after list environments.
6643 + Use @code instead of @verb for inline code (this solves the character
6644 escaping problem for texi2dvi and texi2pdf).
6645 + Added news of Texinfo writer to README.
6646 + Added Texinfo to list of formats in man page, and removed extra 'groff'.
6647 + Added texi & texinfo extensions to Main.hs, and fixed bug in determining
6648 default output extension.
6649 + Modified disallowedInNode in Texinfo writer to correct list of disallowed characters.
6651 * Added tests for OpenDocument writer.
6653 * Added ODT writer (using zip-archive library to package output of
6654 OpenDocument writer). Added odt-styles directory with default ODT styles.
6656 * Added new mediawiki writer and tests.
6658 * Markdown reader: Added support for delimited code blocks, with optional
6659 syntax highlighting using highlighting-kate (if the 'highlighting'
6660 configuration option is selected).
6662 + Currently highlighting is supported only in the HTML writer.
6663 + Delimited code blocks can have attributes; using the language name as
6664 class triggers highlighting.
6665 + New Attributes parameter in CodeBlock structure.
6666 + --version now indicates whether syntax highlighting support is compiled
6667 in, and prints a list of supported languages
6669 * Removed debian directory. Pandoc is no longer a native debian package.
6671 * Changes to build process: pandoc can now be built from the repository
6672 using Cabal. No unix tools are needed (so, pandoc can be built on Windows
6675 + Include shell scripts themselves in repo, rather than generating from wrappers.
6676 Removed wrappers directory and wrappers Makefile target.
6677 + Text/Pandoc/ASCIIMathML.hs, Text/Pandoc/DefaultHeaders.hs,
6678 and Text/Pandoc/Writers/S5.hs are no longer built in Makefile
6679 from templates in the templates/ directory. Instead, they use template
6680 haskell to read data at compile time from the relevant files in data/.
6681 Template haskell functions go in a new module, Text.Pandoc.TH.
6682 + man pages are now generated in Setup.hs hook, not by Makefile
6683 + Makefile 'tarball' target now calls Cabal's 'sdist'
6684 + Added "Extra-Source-Files" to pandoc.cabal, so sdist contains everything needed
6685 + Added "Build-Type" field to pandoc.cabal to avoid warning.
6686 + Added to "Extra-source-files" and "Extra-tmp-files" in pandoc.cabal,
6687 so 'sdist' and 'clean' will work properly.
6688 + Setup.hs now generates man pages in a postbuild hook.
6689 + Added dependency-checking to Setup.hs, so it only rebuilds things
6690 that need rebuilding.
6691 + Added 'library' and 'executable' configuration flags.
6692 Cabal can now be told to build just the library or just the executable.
6693 + CABALOPTS may now be specified with 'make' to pass Cabal configuration flags.
6694 For example: CABALOPTS=-fhighlighting make
6696 * Rewrote test suite so it doesn't depend on perl or unix tools.
6698 + Replaced old runtests.pl with a Haskell script RunTests.hs.
6699 + Added Diff.hs module to be used by RunTests.hs instead of unix 'diff'.
6700 + Added test hook to Setup.hs, so tests may be run from cabal.
6701 + Changed Makefile's 'test' target to run tests via cabal.
6702 + Removed old generate.sh.
6703 + Since we no longer have 'sed' to filter out raw HTML sections
6704 from the docbook writer test, or raw LaTeX sections from the
6705 context writer test, we now just include these sections.
6706 They can be taken out if it is necessary to process the files.
6707 + Updated latex and context writer tests to remove extra spaces
6709 + Added a markdown table reader test.
6710 + Added markdown-reader-more.txt to test suite, for additional test cases
6711 for raw ConTeXt environments and more.
6713 * Compatibility fixes for CPP, Cabal, and haddock:
6715 + Use CPP in "Extensions" field in pandoc.cabal.
6716 + Removed use of backslash string continuations in source files.
6718 * Removed pandoc.cabal.ghc66. We now require Cabal >= 1.2, GHC >= 6.8,
6721 * Require parsec < 3.
6722 The compatibility module in parsec 3.0.0 gives far worse performance than
6723 parsec 2.1. Eventually pandoc will be upgraded to use the new bytestring
6724 version of parsec, and then we'll go to parsec 3.0.0.
6726 * Removed Text.Regex dependencies by rewriting using plain Haskell
6727 (Text.Pandoc.Writers.RTF, Text.Pandoc.Writers.HTML, Main.hs)
6729 * Moved Text.Pandoc.Writers.DefaultHeaders -> Text.Pandoc.DefaultHeaders.
6733 + Added 'configure' as dependency of 'uninstall-all'.
6734 (It uses the Cabal build program.)
6735 + Makefile: only use --with-hc-pkg if GHC_PKG is defined.
6736 Note that Cabal will automatically choose the ghc-pkg appropriate
6737 for the compiler selected, so normally specifying GHC by itself
6740 * Removed Text.Pandoc.UTF8 module; instead, depend on utf8-string and use
6741 its IO and conversion functions.
6743 * Added -Wall to ghc-options in pandoc.cabal. Cleaned up modules so that
6744 everything is -Wall clean.
6746 + Added pragma to HTML writer to avoid deprecation warning for use of "start" attribute.
6747 + Added pragma to Text/Pandoc/Shared.hs to get rid of "orphan instance" warnings.
6748 (These are caused by the Lift instance for ByteString.)
6750 * Changed the comment used to replace unsafe HTML if sanitize-html option
6753 * Made -c/--css option repeatable on the command line (like -H, -A, -B).
6755 * Moved XML-formatting functions to new unexported module Text.Pandoc.XML.
6757 * Escape '\160' as " ", not " " in XML.
6758 "nbsp" isn't a predefined XML entity.
6760 * Fixed bug in RST reader, which would choke on: "p. one\ntwo\n".
6761 Added some try's in ordered list parsers.
6763 * Man writer: don't escape " as \".
6765 * Allow newline before URL in markdown link references. Resolves Issue #81.
6766 Added tests for this issue in new "markdown-reader-more" tests.
6767 Changed RunTests.hs to run these tests.
6769 * Support for display math. Resolves Issue #47.
6771 + Added a DisplayMath/InlineMath selector to Math inlines.
6772 + Markdown parser yields DisplayMath for $$...$$.
6773 + LaTeX parser yields DisplayMath when appropriate. Removed
6774 mathBlock parsers, since the same effect is achieved by the math
6775 inline parsers, now that they handle display math.
6776 + Writers handle DisplayMath as appropriate for the format.
6777 + Modified tests accordingly; added new tests for display math.
6779 * Use LaTeXMathML instead of ASCIIMathML. LaTeXMathML is closer
6780 to LaTeX in its display of math, and supports many non-math LaTeX environments.
6782 + Changed -m option to use LaTeXMathML rather than ASCIIMathML.
6783 + Modified HTML writer to print raw TeX when LaTeXMathML is
6784 being used instead of suppressing it.
6785 + Removed ASCIIMathML files from data/ and added LaTeXMathML.
6786 + Replaced ASCIIMathML with LaTeXMathML in source files.
6787 + Modified README and pandoc man page source.
6788 + Added --latexmathml option (kept --asciimathml as a synonym
6789 for backwards compatibility)
6791 * Markdown reader: Parse setext headers before atx headers.
6795 parsed by Markdown.pl as an H1 header with contents "# hi".
6797 * Markdown reader: Treat "mixed" lists the same way as Markdown.pl does.
6798 The marker on the first list item determines the type of the whole
6799 list. Thus, a list like
6803 gets parsed as a single ordered list. (Previous versions of pandoc
6804 treated this as an ordered list with an unordered sublist.)
6806 * Markdown smart typography:
6808 + Em dashes no longer eat surrounding whitespace. Resolves Issue #69.
6809 + Use nonbreaking spaces after known abbreviations in markdown parser.
6810 Thus, for example, "Mr. Brown" comes out as "Mr.~Brown" in LaTeX, and does
6811 not produce a sentence-separating space. Resolves Issue #75.
6813 * Markdown writer: Print unicode \160 literally, rather than as .
6815 * Treat '\ ' in (extended) markdown as nonbreaking space.
6816 Print nonbreaking space appropriately in each writer (e.g. ~ in LaTeX).
6818 * The '--sanitize-html' option now examines URIs in markdown links
6819 and images, and in HTML href and src attributes. If the URI scheme
6820 is not on a whitelist of safe schemes, it is rejected. The main point
6821 is to prevent cross-site scripting attacks using 'javascript:' URIs.
6822 See http://www.mail-archive.com/markdown-discuss@six.pairlist.net/msg01186.html
6823 and http://ha.ckers.org/xss.html. Resolves Issue #62.
6827 + Override Text.XHtml's stringToHtml function,
6828 so that characters below 0xff are not converted to numerical entity
6829 references. Also convert '\160' to " ". This should aid readability
6830 and editability of the HTML source. It does presuppose that the HTML
6831 will be served as UTF-8.
6832 + In code blocks, change leading newlines to <br /> tags.
6833 (Some browsers ignore them.) Resolves Issue #71.
6834 See http://six.pairlist.net/pipermail/markdown-discuss/2008-May/001297.html
6835 + Use style attributes rather than css classes for strikethrough
6836 and ordered list styles. This works better when fragments, rather than
6837 standalone documents, are generated.
6839 * HTML reader: Count anything that isn't a known block (HTML) tag as an
6840 inline tag (rather than the other way around). Added "html", "head", and
6841 "body" to list of block tags. Resolves Issue #66, allowing
6842 <lj> to count as an inline tag.
6844 * RTF writer: Fixed bug. Extra spaces were being printed after emphasized,
6845 boldface, and other inline elements. Resolves Issue #64.
6847 * LaTeX reader: improvements in raw LaTeX parsing.
6849 + "loose punctuation" (like {}) parsed as Space
6850 + Para elements must contain more than Str "" and Space elements
6851 + Added parser for "\ignore" command used in literate haskell.
6852 + Reworked unknownCommand and rawLaTeXInline: when not in "parse raw"
6853 mode, these parsers simply strip off the command part and allow
6854 the arguments to be parsed normally. So, for example,
6855 \blorg{\emph{hi}} will be parsed as Emph "hi" rather than
6857 + Parse lhs "code" environments as verbatim.
6858 Refactored parsers for verbatim environments.
6859 + Removed specialEnvironment parser.
6860 + parse '{}', if present, after \textless, \textgreater,
6861 \textbar, \textbackslash, \ldots.
6862 + Parse unescaped special characters verbatim rather than
6863 changing them to spaces. This way arguments of unknown
6864 commands will appear in braces.
6866 * Parse raw ConTeXt environments as TeX in markdown reader.
6869 * Moved BlockWrapper and wrappedBlocksToDoc from ConTeXt writer to Shared.
6871 * Made some structural changes to parsing of raw LaTeX environments.
6872 Previously there was a special block parser for LaTeX environments.
6873 It returned a Para element containing the raw TeX inline. This has
6874 been removed, and the raw LaTeX environment parser is now used in the
6875 rawLaTeXInline parser. The effect is exactly the same, except that we
6876 can now handle consecutive LaTeX and ConTeXt environments not separated
6877 by spaces. This new flexibility is required by the example in
6880 \placeformula \startformula
6884 API change: The LaTeX reader now exports rawLaTeXEnvironment' (which
6885 returns a string) rather than rawLaTeXEnvironment (which returns a block
6886 element). This is more likely to be useful in other applications.
6888 * Use \textsubscr instead of \textsubscript for LaTeX subscript macro.
6889 \textsubscript conflicts with a definition in the memoir class.
6892 * Removed unneeded space after "\\item" in LaTeX and ConTeXt output.
6894 * Added amsmath package to default LaTeX header. Resolves Issue #48.
6896 * Added \setupitemize[autointro] to ConTeXt header, to prevent orphaned
6897 list introduction lines.
6899 * Changed Float to Double in definition of Table element.
6900 (Double is more efficient in GHC.)
6902 * Fixed bug in Markdown parser: regular $s triggering math mode.
6903 For example: "shoes ($20) and socks ($5)."
6904 The fix consists in two new restrictions:
6906 + the $ that ends a math span may not be directly followed by a digit.
6907 + no blank lines may be included within a math span.
6909 Thanks to Joseph Reagle for noticing the bug.
6911 * Use Data.List's 'intercalate' instead of custom 'joinWithSep'.
6912 Removed 'joinWithSep' from Text.Pandoc.Shared.
6914 * Updated README and man pages. Acknowledge contributors in README.
6915 Added paragraph to README about producing S5 with separate CSS/javascript.
6917 * Updated INSTALL to reflect new build system (including configuration
6918 options) and document new dependencies. Added note to INSTALL that
6919 Cabal >= 1.2 is required for build. Resolves Issue #74.
6921 * Fixed some haddock documentation errors.
6923 * Small fix to markdown2pdf man page: only input needs to be piped through iconv.
6925pandoc (0.46) unstable; urgency=low
6929 * Made -H, -A, and -B options cumulative: if they are specified
6930 multiple times, multiple files will be included.
6932 * Added optional HTML sanitization using a whitelist.
6933 When this option is specified (--sanitize-html on the command line),
6934 unsafe HTML tags will be replaced by HTML comments, and unsafe HTML
6935 attributes will be removed. This option should be especially useful
6936 for those who want to use pandoc libraries in web applications, where
6937 users will provide the input.
6939 + Main.hs: Added --sanitize-html option.
6941 + Text.Pandoc.Shared: Added stateSanitizeHTML to ParserState.
6943 + Text.Pandoc.Readers.HTML:
6944 - Added whitelists of sanitaryTags and sanitaryAttributes.
6945 - Added parsers to check these lists (and state) to see if a given
6946 tag or attribute should be counted unsafe.
6947 - Modified anyHtmlTag and anyHtmlEndTag to replace unsafe tags
6949 - Modified htmlAttribute to remove unsafe attributes.
6950 - Modified htmlScript and htmlStyle to remove these elements if
6953 + Modified README and man pages to document new option.
6955 * Improved handling of email addresses in markdown and reStructuredText.
6956 Consolidated uri and email address parsers. (Resolves Issue #37.)
6958 + New emailAddress and uri parsers in Text.Pandoc.Shared.
6959 - uri parser uses parseURI from Network.URI.
6960 - emailAddress parser properly handles email addresses with periods
6963 + Removed uri and emailAddress parsers from Text.Pandoc.Readers.RST
6964 and Text.Pandoc.Readers.Markdown.
6968 + Fixed emph parser so that "*hi **there***" is parsed as a Strong
6969 nested in an Emph. (A '*' is only recognized as the end of the
6970 emphasis if it's not the beginning of a strong emphasis.)
6972 + Moved blockQuote parser before list parsers for performance.
6974 + Modified 'source' parser to allow backslash-escapes in URLs.
6975 So, for example, [my](/url\(1\)) yields a link to /url(1).
6978 + Disallowed links within links. (Resolves Issue #35.)
6979 - Replaced inlinesInBalanced with inlinesInBalancedBrackets, which
6980 instead of hard-coding the inline parser takes an inline parser
6982 - Modified reference and inlineNote to use inlinesInBalancedBrackets.
6983 - Removed unneeded inlineString function.
6984 - Added inlineNonLink parser, which is now used in the definition of
6986 - Added inlineParsers list and redefined inline and inlineNonLink parsers
6988 - Added failIfLink parser.
6990 + Better handling of parentheses in URLs and quotation marks in titles.
6991 - 'source' parser first tries to parse URL with balanced parentheses;
6992 if that doesn't work, it tries to parse everything beginning with
6993 '(' and ending with ')'.
6994 - source parser now uses an auxiliary function source'.
6995 - linkTitle parser simplified and improved, under assumption that it
6996 will be called in context of source'.
6998 + Make 'block' conditional on strictness state, instead of using
6999 failIfStrict in block parsers. Use a different ordering of parsers
7000 in strict mode (raw HTML block before paragraph) for performance.
7001 In non-strict mode use rawHtmlBlocks instead of htmlBlock.
7002 Simplified htmlBlock, since we know it's only called in strict
7005 + Improved handling of raw HTML. (Resolves Issue #36.)
7006 - Tags that can be either block or inline (e.g. <ins>) should
7007 be treated as block when appropriate and as inline when
7008 appropriate. Thus, for example,
7010 should be treated as a paragraph with inline <ins> tags, while
7014 should be treated as a paragraph within <ins> tags.
7015 - Moved htmlBlock after para in list of block parsers. This ensures
7016 that tags that can be either block or inline get parsed as inline
7018 - Modified rawHtmlInline' so that block elements aren't treated as
7020 - Modified para parser so that paragraphs containing only HTML tags and
7021 blank space are not allowed. Treat these as raw HTML blocks instead.
7023 + Fixed bug wherein HTML preceding a code block could cause it to
7024 be parsed as a paragraph. The problem is that the HTML parser
7025 used to eat all blank space after an HTML block, including the
7026 indentation of the code block. (Resolves Issue #39.)
7027 - In Text.Pandoc.Readers.HTML, removed parsing of following space
7029 - In Text.Pandoc.Readers.Markdown, modified rawHtmlBlocks so that
7030 indentation is eaten *only* on the first line after the HTML
7031 block. This means that in
7035 the foo won't be treated as a code block, but in
7041 it will. This seems the right approach for least surprise.
7045 + Fixed bug in parsing explicit links (resolves Issue #44).
7046 The problem was that we were looking for inlines until a '<' character
7047 signaled the start of the URL; so, if you hit a reference-style link,
7048 it would keep looking til the end of the document. Fix: change
7049 inline => (notFollowedBy (char '`') >> inline). Note that this won't
7050 allow code inlines in links, but these aren't allowed in resT anyway.
7052 + Cleaned up parsing of reference names in key blocks and links.
7053 Allow nonquoted reference links to contain isolated '.', '-', '_', so
7054 so that strings like 'a_b_' count as links.
7056 + Removed unnecessary check for following link in str.
7057 This is unnecessary now that link is above str in the definition of
7062 + Modified rawHtmlBlock so it parses </html> and </body> tags.
7063 This allows these tags to be handled correctly in Markdown.
7064 HTML reader now uses rawHtmlBlock', which excludes </html> and </body>,
7065 since these are handled in parseHtml. (Resolves Issue #38.)
7067 + Fixed bug (emph parser was looking for `<IT>` tag, not `<I>`).
7069 + Don't interpret contents of style tags as markdown.
7070 (Resolves Issue #40.)
7071 - Added htmlStyle, analagous to htmlScript.
7072 - Use htmlStyle in htmlBlockElement and rawHtmlInline.
7073 - Moved "script" from the list of tags that can be either block or
7074 inline to the list of block tags.
7076 + Modified rawHtmlBlock to use anyHtmlBlockTag instead of anyHtmlTag
7077 and anyHtmlEndTag. This fixes a bug in markdown parsing, where
7078 inline tags would be included in raw HTML blocks.
7080 + Modified anyHtmlBlockTag to test for (not inline) rather than
7081 directly for block. This allows us to handle e.g. docbook in
7082 the markdown reader.
7084 * LaTeX reader: Properly recognize --parse-raw in rawLaTeXInline.
7085 Updated LaTeX reader test to use --parse-raw.
7089 + Modified rules for automatic HTML header identifiers to
7090 ensure that identifiers begin with an alphabetic character.
7091 The new rules are described in README. (Resolves Issue #33.)
7093 + Changed handling of titles in HTML writer so you don't get
7094 "titleprefix - " followed by nothing.
7096 * ConTeXt writer: Use wrappers around Doc elements to ensure proper
7097 spacing. Each block element is wrapped with either Pad or Reg.
7098 Pad'ed elements are guaranteed to have a blank line in between.
7102 + Refactored RST writer to use a record instead of a tuple for state,
7103 and to include options in state so it doesn't need to be passed as
7106 + Use an interpreted text role to render math in restructuredText.
7107 See http://www.american.edu/econ/itex2mml/mathhack.rst for the
7112 * Debian packaging changes:
7114 + Remove the empty 'include' directory in -dev package, which lintian
7116 + Bump Standarts-Version to 3.7.3.
7117 + Use new 'Homepage:' field to specify the upstream URL on suggestion of
7120 -- Recai Oktaş <roktas@debian.org> Tue, 08 Jan 2008 05:13:31 +0200
7122pandoc (0.45) unstable; urgency=low
7126 * Simplified parsing of reference keys and notes in markdown and RST
7127 readers: The Reference data structure from Text.Pandoc.Shared is no
7128 longer needed, since referenceKey and noteBlock parses return strings
7129 (as many blank lines as were occupied by the key or note) and update
7130 state themselves. getPosition and setPosition are now used to ensure
7131 that error messages will give the correct line number. This yields
7132 cleaner (and slightly faster) code, with more accurate parsing error
7135 * Added new Math inline element:
7137 + Markdown and LaTeX readers now convert TeX math into Math elements,
7139 + This allows math to be treated differently from raw TeX in output.
7140 TeX elements are no longer printed in output formats other than
7141 Markdown, LaTeX, and ConTeXt. But Math elements are always printed.
7143 * New default handling of math in writers:
7145 + New module Text.Pandoc.Readers.TeXMath exports readTeXMath, which
7146 parses raw TeX math and outputs a string of Pandoc inlines that
7147 tries to render it as far as possible using unicode characters,
7148 lapsing into literal TeX when needed.
7149 + readTeXMath is now used for default HTML output in HTML, S5, RTF,
7150 and Docbook, if no other method for displaying math in HTML is
7151 specified. Enclosing $'s are no longer printed by default.
7152 + By default, math is put inside `<span class="math">`. This way it can be
7153 distinguished from the surrounding text, e.g. put in a different
7156 * New --gladtex and --mimetex options for display of math in HTML:
7158 + If --gladtex is specified, math is output between `<eq>` tags, so
7159 it can be processed by gladTeX.
7160 + If --mimetex is specified, math is put in `<img>` tags with a link
7161 to the mimetex CGI script (or any other script that takes TeX math
7162 as input and outputs an image). The URL of the script may be
7163 specified, but defaults to /cgi-bin/mimetex.cgi.
7164 + HTMLMathMethod structure in WriterOptions keeps track of how to
7165 display math in HTML output.
7166 + Updated README with a description of the four options for displaying
7171 + Fixed bug: parser for minimized attributes should not swallow
7173 + Simplified HTML attribute parsing.
7174 + Changed parsing of code blocks in HTML reader: `<code>` tag is no
7175 longer needed. `<pre>` suffices. All HTML tags in the code block
7176 (e.g. for syntax highlighting) are skipped, because they are not
7177 portable to other output formats. A `<code>...</code>` block not
7178 surrounded by `<pre>` now counts as inline HTML, not a code block.
7179 + Remove just one leading and one trailing newline from contents of
7180 `<pre>...</pre>` in codeBlock parser.
7184 + Removed support for box-style block quotes.
7185 + Require space before title in links and references.
7186 This fixes a bug in parsing URLs like http://silly/url(withparen).
7187 + Improved and simplified setextHeader parser.
7188 + Fixed logic in smart quote parsing, adding some needed 'try'
7190 + Fixed smart quote parsing so that unicode characters 8216 and 8217
7191 are recognized as single quotes, and 8220 and 8221 as double quotes.
7195 + Fixed bug in parsing of code blocks. Previously a full tab indent
7196 was required, but RST allows code to be indented any amount.
7198 + Allow field lists to be indented.
7199 + Parse the contents of field lists instead of treating as a raw string.
7200 + Represent field lists as definition lists instead of blockquotes.
7201 + Fixed bug in which metadata would be overridden if the document
7202 contained multiple field lists.
7203 + Parse fields associated with '.. image::' blocks, and use 'alt'
7204 field, if given, for image alt and title attributes.
7208 + Modified specialChar so that '"' characters are parsed.
7209 + Fixed a bug in parsing of \[ \] math blocks (thanks to Mark Kalderon).
7213 + Changes in handling of math (see above).
7214 + Don't produce HTML for table of contents if there are
7215 no headers. (This would be an empty list, which is invalid XHTML.)
7219 + Don't print title attribute if title is empty. (This differs from
7220 the behavior of Markdown.pl, and agrees with PHP Markdown. But John
7221 Gruber has indicated that he prefers this behavior.) Adjusted test
7223 + Fixed incorrect line wrapping in paragraphs including hard line
7224 breaks. Resolves Issue #25.
7225 + Fixed bug in markdown writer: If an ordered list item began with
7226 a marker greater than 3 characters in width, and the item took more
7227 than one line, it would appear on the line after the list marker,
7234 Now it works as follows:
7241 + Fixed bug in RST writer's handling of ordered lists. Previously,
7242 list items with multiple lines would not always line up with
7243 single-line list items. Now, list items are nested the length of
7244 the list marker + 1. This looks better and ensures that list items
7245 all line up. (Note that list markers are padded to the length of
7246 the longest list marker in the series.)
7247 + Use 3-space indent for unordered lists.
7248 + If label for a link reference contains a colon, surround it by `
7249 signs so it won't be interpreted as the end of the link label.
7253 + Cleaner output for footnotes. Footnotes now always begin on a new
7254 line, and the final } is on a line by itself only when it needs to
7255 be (i.e. only when the note ends with a Verbatim environment).
7256 + Added writer options to state, so state doesn't need to be passed as
7258 + Text wrapping now provided, using wrapTeXIfNeeded.
7260 * ConTeXt writer: many improvements for more idiomatic ConTeXt output
7261 (thanks to Idris Samawi Hamid for suggestions).
7263 + PrettyPrint module now used for output.
7264 + Writer options are now in state, so they don't have to be passed as
7266 + Text wrapping now provided, using wrapTeXIfNeeded.
7267 + Better treatment of footnotes: footnotes are always on lines by
7268 themselves, and the final } is on a line by itself only when
7269 it needs to be (after \stoptyping).
7270 + Use \subject, \subsubject, ... or \section, \subsection, ... for headings,
7271 depending on whether --number-sections option is selected.
7272 + Extra blank line inserted after \stopitemize
7273 + Use new, "official" definition of blockquote environment. Also, use
7274 blank line after \startblockquote to balance blank line at the end.
7275 + Both itemized and enumerated lists are now generated using
7276 \start-stopitemize, with appropriate options. Removed definitions
7277 of ltxenum and ltxitem, which are no longer needed. Provided
7278 defaults for itemized lists in the preamble. State keeps track of
7279 ordered list level, so that when default numbering is specified,
7280 the appropriate scheme can be used.
7281 + Changed \useurl to \useURL.
7282 + Changed link color from red to blue.
7283 + Use \subsubsubsubsection etc., since these are supported
7284 (up to at least sub x 5).
7286 * Text.Pandoc.Shared:
7288 + Save and restore position in parseFromString, so that accurate
7289 error messages can be given.
7290 + Improved efficiency of romanNumeral parser.
7291 + Added wrappedTeX and wrapTeXIfNeeded functions. These ensure
7292 that footnotes occur on lines by themselves (to make them
7293 easier to see and move) and do not screw up line wrapping.
7295 * Text.Pandoc.UTF8: modified fromUTF8 to strip out the BOM
7296 if present. Windows Notepad and other applications insert a
7297 BOM at the beginning of a UTF8 file.
7299 * Main.hs (tabFilter): Treat '\r' at end of line as newline (in
7300 addition to "\r\n" and '\n').
7302 * Added a writer option for wrapped text and a command-line option
7303 '--no-wrap', which disables text wrapping and minimizes whitespace
7304 in HTML. (Resolves Issue #26.)
7306 + Added support for '--no-wrap' to Main.hs.
7307 + Added wrapIfNeeded function to Text.Pandoc.Shared.
7308 + Use wrapIfNeeded instead of wrapped in the RST, Man, Docbook, and
7310 + Added render and renderFragment helpers to HTML writer.
7312 * Modified html2markdown to run tidy only if the HTML cannot be
7313 parsed. Previously html2markdown piped all input through tidy
7314 before passing it to pandoc. This caused problems on certain pages
7315 (e.g. http://daringfireball.com/markdown) which have well-formed
7316 XHTML that causes tidy to choke. The solution is to pipe through
7317 tidy only if pandoc cannot parse the input by itself. This means
7318 that a temp file is now always used, even when input comes from a
7319 local file or standard input.
7321 * Removed 'version' constant from Main.hs; added 'pandocVersion' to
7322 Text.Pandoc library.
7326 + Modified to work with GHC 6.8 and Cabal configurations. (For GHC
7327 6.8, pretty and containers must be added to Build-Depends, and it
7328 is desirable to use the -O2 compiler option.) Cabal configurations
7329 allows one to select options depending on the compiler version.
7330 For GHC 6.6, the splitBase option can be disabled.
7331 + pandoc.cabal.ghc66 is provided for users with older versions of
7332 Cabal, which do not support configurations.
7333 + Use Ghc-Prof-Options to ensure that '-auto-all' is used when
7334 '--enable-(executable|library)-profiling' is specified. Updated
7335 PROFILING instructions accordingly.
7339 + Makefile now checks GHC version. If GHC is 6.6, pandoc.cabal.ghc66
7340 is copied to pandoc.cabal, and the old pandoc.cabal is copied
7341 to pandoc.cabal.orig. Otherwise, pandoc.cabal is copied to
7342 pandoc.cabal.orig but otherwise unmodified. This way, the Makefile
7343 will work properly with either GHC 6.6 or 6.8.
7344 + Changed BUILDCONF to point to dist/setup-config, not .setup-config.
7345 This is where current versions of Cabal put it.
7346 + Added $(BUILDCMD) target, so setup doesn't get compiled every time.
7347 + Removed dependency of templates on ./templates, which is circular
7348 now that templates is a subdirectory of the top-level.
7350 * MacPorts Portfile:
7352 + Modified to install the pandoc library in addition to programs.
7353 + Installation must be done manually rather than using Makefile's
7355 + Note that the library must be registered in the activate phase,
7356 after the library files have been copied out of the destroot.
7357 Cabal generates a 'register.sh' script that will do this.
7359 * debian/control: Added libghc6-network-dev, libghc6-xhtml-dev, and
7360 libghc6-mtl-dev as dependencies for libghc6-pandoc-dev.
7363 * debian/rules: Converted to UTF-8.
7365 * Changed pandoc home page to http://johnmacfarlane.net/pandoc/.
7367 * Updated ASCIIMathML.js to latest version.
7369 * Directory structure:
7371 + Moved everything from src into the top-level directory.
7372 + Changed references to source directory in Makefile and
7374 + Moved ASCIIMathML.js, headers, and ui into templates directory.
7375 + Modified fillTemplates.pl to reflect new paths.
7379 * Makefile: Fixed the issue of having two copies of the library
7380 documentation under some usage scenarios.
7382 * Replaced 'ghc' with '$(GHC)' in Makefile, and made GHC
7383 and GHC_PKG configurable through the environment, to support
7384 unusual ghc installations. For example:
7385 GHC=/opt/ghc/bin/ghc GHC_PKG=/opt/ghc/bin/ghc-pkg make
7387 -- Recai Oktaş <roktas@debian.org> Sun, 07 Oct 2007 20:51:43 +0300
7389pandoc (0.44) unstable; urgency=low
7393 * Fixed bug in HTML writer: when --toc was used, anchors were put around
7394 headers, which is invalid XHTML (block content within inline element).
7395 Now the anchors are put inside the header tags. Resolves Issue #23.
7397 * Added xmlns attribute to html element in html writer tests.
7398 This attribute is added by more recent versions of the
7399 xhtml library (>= 3000), and is required for valid XHTML.
7403 * On configure, compile 'Setup.hs' to 'setup' and use 'setup' as the build
7404 command instead of 'runhaskell', which, on some platforms (such as s390,
7405 alpha, m68k), throws the following error:
7407 runhaskell Setup.hs configure --prefix=/usr
7408 ghc-6.6.1: not built for interactive use
7410 This causes a serious FTBFS bug. Closes: #440668.
7412 -- Recai Oktaş <roktas@debian.org> Mon, 03 Sep 2007 18:24:02 +0300
7414pandoc (0.43) unstable; urgency=low
7418 * The focus of this release is performance. The markdown parser
7419 is about five times faster than in 0.42, based on benchmarks
7420 with the TextMate manual.
7422 * Main.hs: Replaced CRFilter and tabFilter with single function
7423 tabFilter, which operates on the whole string rather than breaking
7424 it into lines, and handles dos-style line-endings as well as tabs.
7426 * Added separate LaTeX reader and native reader tests; removed
7429 * Text.Pandoc.Shared:
7431 + Removed tabsToSpaces and tabsInLine (they were used only in Main.hs.)
7432 + General code cleanup (to elimante warnings when compiling with -Wall.)
7433 + Added 'wrapped' function, which helps wrap text into paragraphs,
7434 using the prettyprinting library.
7435 + Rewrote charsInBalanced and charsInBalanced'.
7436 - Documented restriction: open and close must be distinct characters.
7437 - Rearranged options for greater efficiency.
7438 - Bug fix: Changed inner call to charsInBalanced inside
7439 charsInBalanced' to charsInBalanced'.
7440 + anyLine now requires that the line end with a newline (not eof).
7441 This is a harmless assumption, since we always add newlines to the
7442 end of a block before parsing with anyLine, and it yields a 10% speed
7444 + Removed unnecessary 'try' in anyLine.
7445 + Removed unneeded 'try' from romanNumeral parser.
7446 + Use notFollowedBy instead of notFollowedBy' in charsInBalanced.
7447 + Removed unneeded 'try' in parseFromString.
7448 + Removed unneeded 'try' from stringAnyCase. (Now it behaves
7450 + Changed definition of 'enclosed' in Text.Pandoc.Shared so that
7451 'try' is not automatically applied to the 'end' parser. Added
7452 'try' in calls to 'enclosed' where needed. Slight speed increase.
7456 + Replaced individual wrapping routines in RST, Man, and Markdown
7457 writers with 'wrapped' from Text.Pandoc.Shared.
7458 + Rewrote LaTeX writer to use the prettyprinting library,
7459 so we get word wrapping, etc.
7460 + Modified latex writer tests for new latex writer using prettyprinter.
7461 + Fixed bug in LaTeX writer: autolinks would not cause
7462 '\usepackage{url}' to be put in the document header. Also, changes
7463 to state in enumerated list items would be overwritten.
7464 + In Markdown writer, escape paragraphs that begin with ordered list
7465 markers, so they don't get interpreted as ordered lists.
7467 * Text.Pandoc.Reades.LaTeX:
7469 + Fixed bug in LaTeX reader, which wrongly assumed that the roman
7470 numeral after "enum" in "setcounter" would consist entirely of
7471 "i"s. 'enumiv' is legitimate.
7472 + LaTeX command and environment names can't contain numbers.
7473 + Rearranged order of parsers in inline for slight speed improvement.
7474 + Added '`' to special characters and 'unescapedChar'.
7476 * Text.Pandoc.Readers.RST:
7478 + Removed unneeded try's in RST reader; also minor code cleanup.
7480 + Rearranged parsers in inline (doubled speed).
7482 * Text.Pandoc.Readers.Markdown:
7484 + Skip notes parsing if running in strict mode. (This yields a nice
7485 speed improvement in strict mode.)
7486 + Simplify autolink parsing code, using Network.URI to test for
7487 URIs. Added dependency on network library to debian/control and
7489 + More perspicuous definition of nonindentSpaces.
7490 + Removed unneeded 'try' in 'rawLine'.
7491 + Combined linebreak and whitespace into a new whitespace parser, to
7492 avoid unnecessary reparsing of space characters.
7493 + Removed unnecessary 'try' in 'codeBlock', 'ellipses', 'noteMarker',
7494 'multilineRow', 'dashedLine', 'rawHtmlBlocks'.
7495 + Use lookAhead in parsers for setext headers and definition lists
7496 to see if the next line begins appropriately; if not, don't waste
7497 any more time parsing.
7498 + Don't require blank lines after code block. (It's sufficient to
7499 end code block with a nonindented line.)
7500 + Changed definition of 'emph': italics with '_' must not
7501 be followed by an alphanumeric character. This is to help
7502 prevent interpretation of e.g. `[LC_TYPE]: my_type` as
7503 `[LC<em>TYPE]:my</em>type`.
7504 + Improved Markdown.pl-compatibility in referenceLink: the two parts
7505 of a reference-style link may be separated by one space, but not
7506 more... [a] [link], [not] [a link].
7507 + Fixed markdown inline code parsing so it better accords with
7508 Markdown.pl: the marker for the end of the code section is a clump
7509 of the same number of `'s with which the section began, followed
7510 by a non-` character. So, for example,
7511 ` h ``` i ` -> `<code>h ``` i</code>`.
7512 + Split 'title' into 'linkTitle' and 'referenceTitle', since the
7513 rules are slightly different.
7514 + Rewrote 'para' for greater efficiency.
7515 + Rewrote link parsers for greater efficiency.
7516 + Removed redundant 'referenceLink' in definition of inline (it's
7518 + Refactored escapeChar so it doesn't need 'try'.
7519 + Refactored hrule for performance in Markdown reader.
7520 + More intelligent rearranging of 'inline' so that most frequently
7521 used parsers are tried first.
7522 + Removed tabchar parser, as whitespace handles tabs anyway.
7524 * Text.Pandoc.CharacterReferences:
7527 + Removed unnecessary 'try's for a speed improvement.
7528 + Removed unnecessary '&' and ';' from the entity table.
7532 + Makefile: Get VERSION from cabal file, not Main.hs.
7533 + Modified MacPorts Portfile:
7535 - Build and install libraries and library documentation in
7536 addition to pandoc executable
7537 - Added template item for md5 sum in Portfile.in.
7538 - Incorporated changes from MacPorts repository (r28278).
7539 + FreeBSD port: Don't try to generate distinfo in Makefile.
7540 It can be made using 'make makesum' in FreeBSD.
7541 + Make both freebsd and macports targets depend on tarball.
7543 * Website and documentation:
7545 + Updated INSTALL instructions.
7546 + Added pandocwiki demo to website.
7547 + Removed local references to Portfile, since pandoc is now in the
7548 MacPorts repository.
7550 -- Recai Oktaş <roktas@debian.org> Sun, 02 Sep 2007 15:50:11 +0300
7552pandoc (0.42) unstable; urgency=low
7556 * Main.hs: Use utf8 conversion on the extra files loaded with
7557 the -H, -C, -B, and -A options. This fixes problems with unicode
7558 characters in these files.
7560 * Exposed Text.Pandoc.ASCIIMathML, since it is imported in
7561 Text.Pandoc.Readers.HTML and without it we get a linking error when
7566 + Added new rule for enhanced markdown ordered lists: if the list
7567 marker is a capital letter followed by a period (including a
7568 single-letter capital roman numeral), then it must be followed by
7569 at least two spaces. The point of this is to avoid accidentally
7570 treating people's initials as list markers: a paragraph might begin,
7571 "B. Russell was an English philosopher," and this shouldn't be
7572 treated as a list. Documented change in README.
7573 + Blocks that start with "p. " and a digit are no longer treated
7574 as ordered lists (it's a page number).
7575 + Added a needed 'try' to listItem.
7576 + Removed check for a following setext header in endline.
7577 A full test is too inefficient (doubles benchmark time), and the
7578 substitute we had before is not 100% accurate.
7579 + Don't use Code elements for autolinks if --strict specified.
7581 * LaTeX writer: When a footnote ends with a Verbatim environment, the
7582 close } of the footnote cannot occur on the same line or an error occurs.
7583 Fixed this by adding a newline before the closing } of every footnote.
7586 + Removed incorrect "{}" around style information in HTML tables.
7587 Column widths now work properly in HTML.
7588 + If --strict option is specified (and --toc is not), don't include
7589 identifiers in headers, for better Markdown compatibility.
7593 + Separated $(web_dest) and website targets.
7594 + In website, index.txt is now constructed from template index.txt.in.
7595 + Added freebsd target to Markefile. This creates the freebsd Makefile
7596 from Makefile.in, and creates distinfo. Removed Makefile and distinfo
7597 from the repository.
7598 + Added macport target to Makefile. Portfile is built from template
7600 + Removed OSX package targets. (Too many difficulties involving
7601 dependencies on dynamic libraries.)
7602 + More complete INSTALL instructions for all architectures.
7605 + Added a programming demo, pandocwiki.
7609 * Do not forget to close pandoc's ITP. Closes: #391666
7611 -- Recai Oktaş <roktas@debian.org> Sun, 26 Aug 2007 22:51:32 +0300
7613pandoc (0.41) unstable; urgency=low
7617 * Fixed bugs in HTML reader:
7618 + Skip material at end *only if* `</html>` is present (previously,
7619 only part of the document would be parsed if an error was
7620 found; now a proper error message is given).
7621 + Added new constant eitherBlockOrInline with elements that may
7622 count either as block-level or as inline. Modified isInline and
7623 isBlock to take this into account.
7624 + Modified rawHtmlBlock to accept any tag (even an inline tag):
7625 this is innocuous, because rawHtmlBlock is tried only if a regular
7626 inline element can't be parsed.
7627 + Added a necessary 'try' in definition of 'para'.
7629 * Fixed bug in markdown ordered list parsing. The problem was that
7630 anyOrderedListStart did not check for a space following the
7631 ordered list marker. So in 'A.B. 2007' the parser would be
7632 expecting a list item, but would not find one, causing an error.
7633 Fixed a similar bug in the RST reader. Resolves Issue #22.
7635 * Refactored RST and Markdown readers using parseFromString.
7637 * LaTeX reader will now skip anything after \end{document}.
7639 * Fixed blockquote output in markdown writer: previously, block
7640 quotes in indented contexts would be indented only in the first
7643 * Added note to INSTALL about variations in versions of the xhtml
7644 library that can lead to failed tests (thanks to Leif LeBaron).
7646 -- Recai Oktaş <roktas@debian.org> Sun, 19 Aug 2007 23:26:07 +0300
7648pandoc (0.4) unstable; urgency=low
7652 * Added two new output formats: groff man pages and ConTeXt. By
7653 default, output files with extensions ".ctx" and ".context" are
7654 assumed to be ConTeXt, and output files with single-digit extensions
7655 are assumed to be man pages.
7657 * Enhanced ordered lists (documented in README, under Lists):
7658 + The OrderedList block element now stores information about
7659 list number style, list number delimiter, and starting number.
7660 + The readers parse this information when possible.
7661 + The writers use this information to style ordered lists.
7662 + The enhancement can be disabled using the --strict option.
7664 * Added support for tables (with a new Table block element). Two kinds
7665 of tables are supported: a simple table with one-line rows, and a
7666 more complex variety with multiline rows. All output formats are
7667 supported, but only markdown tables are parsed at the moment. The
7668 syntax is documented in README.
7670 * Added support for definition lists (with a new DefinitionList block
7671 element). All output and input formats are supported. The syntax is
7672 documented in README.
7674 * Added support for superscripts and subscripts (with new Superscript
7675 and Subscript inline elements). All input and output
7676 formats. The syntax is documented in README.
7678 * Added support for strikeout (with a new Strikeout inline element).
7679 All input and output formats are supported. Thanks to Bradley Kuhn,
7680 who contributed a patch. The syntax is documented in README. Resolves
7683 * Added a --toc|--table-of-contents option. This causes an automatically
7684 generated table of contents (or an instruction that creates one) to
7685 be inserted at the beginning of the document. Not supported in S5,
7686 DocBook, or man page writers.
7688 * Modified the -m|--asciimathml option:
7690 + If an optional URL argument is provided, a link is inserted
7691 instead of the contents of the ASCIIMathML.js script.
7692 + Nothing is inserted unless the document actually contains
7695 * Removed Blank block element as unnecessary.
7697 * Removed Key and Note blocks from the Pandoc data structure. All
7698 links are now stored as explicit links, and note contents are
7699 stored with the (inline) notes.
7701 + All link Targets are now explicit (URL, title) pairs; there
7702 is no longer a 'Ref' target.
7703 + Markdown and RST parsers now need to extract data from key and
7704 note blocks and insert them into the relevant inline elements.
7705 Other parsers have been simplified, since there is no longer any need
7706 to construct separate key and note blocks.
7707 + Markdown, RST, and HTML writers need to construct lists of
7708 notes; Markdown and RST writers need to construct lists of link
7709 references (when the --reference-links option is specified); and
7710 the RST writer needs to construct a list of image substitution
7711 references. All writers have been rewritten to use the State monad
7712 when state is required.
7713 + Several functions (generateReference, keyTable,
7714 replaceReferenceLinks, replaceRefLinksBlockList, and some auxiliaries
7715 used by them) have been removed from Text.Pandoc.Shared, since
7716 they are no longer needed. New functions and data structures
7717 (Reference, isNoteBlock, isKeyBlock, isLineClump) have been
7718 added. The functions inTags, selfClosingTag, inTagsSimple, and
7719 inTagsIndented have been moved to the DocBook writer, since that
7720 is now the only module that uses them. NoteTable is now exported
7721 in Text.Pandoc.Shared.
7722 + Added stateKeys and stateNotes to ParserState; removed stateKeyBlocks,
7723 stateKeysUsed, stateNoteBlocks, stateNoteIdentifiers, stateInlineLinks.
7724 + Added writerNotes and writerReferenceLinks to WriterOptions.
7726 * Added Text.Pandoc module that exports basic readers, writers,
7727 definitions, and utility functions. This should export everything
7728 needed for most uses of Pandoc libraries. The haddock documentation
7729 includes a short example program.
7731 * Text.Pandoc.ASCIIMathML is no longer an exported module.
7733 * Added Text.Pandoc.Blocks module to help in printing markdown
7734 and RST tables. This module provides functions for working with
7735 fixed-width blocks of text--e.g., placing them side by side, as
7738 * Refactored to avoid reliance on Haskell's Text.Regex library, which
7739 (a) is slow, and (b) does not properly handle unicode. This fixed
7740 some strange bugs, e.g. in parsing S-cedilla, and improved performance.
7742 + Replaced 'gsub' with a general list function 'substitute'
7743 that does not rely on Text.Regex.
7744 + Rewrote extractTagType in HTML reader so that it doesn't use
7746 + In Markdown reader, replaced email regex test with a custom email
7747 autolink parser (autoLinkEmail). Also replaced selfClosingTag regex
7748 with a custom function isSelfClosingTag.
7749 + Modified Docbook writer so that it doesn't rely on Text.Regex for
7750 detecting 'mailto' links.
7751 + Removed escapePreservingRegex and reamped entity-handling
7752 functions in Text.Pandoc.Shared and Text.Pandoc.CharacterReferences to
7753 avoid reliance on Text.Regex (see below on character reference
7756 * Renamed Text.Pandoc.Entities as Text.Pandoc.CharacterReferences.
7758 * Changed handling of XML entities. Entities are now parsed (and unicode
7759 characters returned) in the Markdown and HTML readers, rather than being
7760 handled in the writers. In HTML and Docbook writers, UTF-8 is now used
7761 instead of entities for characters above 128. This makes the HTML and
7762 DocBook output much more readable and more easily editable.
7764 + Removed sgmlHexEntity, sgmlDecimalEntity, sgmlNamedEntity, and
7765 sgmlCharacterEntity regexes from Text.Pandoc.Shared.
7766 + Renamed escapeSGMLChar to escapeCharForXML. Added escapeStringForXML.
7767 Moved both functions to Text.Pandoc.Writers.Docbook.
7768 + Added characterReference parser to Text.Pandoc.CharacterReferences.
7769 This parses a string and return a unicode character.
7770 + Rewrote decodeCharacterReferences to use the new parser instead of
7772 + Added new charRef parser for Markdown and HTML, which replaces the
7773 old 'entity' parser. Added '&' as a special character in Markdown reader.
7774 + Modified HTML and Markdown readers to call decodeEntities on all raw
7775 strings (e.g. authors, dates, link titles), to ensure that no
7776 unprocessed entities are included in the native representation of
7777 the document. (In the HTML reader, most of this work is done by a
7778 change in extractAttributeName.)
7779 + In XML and Markdown output, escape unicode nonbreaking space as ' ',
7780 since a unicode non-breaking space is impossible to distinguish visually
7781 from a regular space. (Resolves Issue #3.)
7782 + Removed encodeEntitiesNumerical.
7783 + Use Data.Map for entityTable and (new) reverseEntityTable, for a
7784 slight performance boost over the old association list.
7785 + Removed unneeded decodeEntities from 'str' parser in HTML and
7788 * Text.Pandoc.UTF8: Renamed encodeUTF8 to toUTF8, decodeUTF8 to
7789 fromUTF8, for clarity.
7791 * Replaced old haskell98 module names replaced by hierarchical module
7792 names, e.g. List by Data.List. Removed haskell98 from dependencies
7793 in pandoc.cabal, and added mtl (needed for state monad). Substituted
7796 * Refactored and cleaned up character escaping in writers, using
7797 backslashEscapes and escapeStringUsing functions.
7799 * Instead of adding "\n\n" to the end of an input string in Main.hs,
7800 this is now done in the readers. This makes the libraries behave
7801 the way you'd expect from the pandoc program. Resolves Issue #10.
7803 * URLs and email addresses in autolinks are now typeset as Code.
7805 * In Main.hs, changed putStr to putStrLn -- mainly because MacOS X
7806 doesn't display the whole output unless there's a line ending.
7808 * Major code cleanup in all modules, for greater consistency, concision,
7813 + Fixed several bugs (extractTagType, attribute parsing).
7814 + Remove Null blocks in lists of blocks when possible.
7815 + Allow HTML comments as raw HTML inline.
7819 + Ordered list items may no longer begin with uppercase letters, or
7820 letters greater than 'n'. (This prevents first initials and page
7821 reference, e.g. 'p. 400', from being parsed as beginning lists.)
7822 Also, numbers beginning list items may no longer end with ')',
7823 which is now allowed only after letters. Note: These changes
7824 may cause documents to be parsed differently. Users should take
7826 + Changed autoLink parsing to conform better to Markdown.pl's
7827 behavior. `<google.com>` is not treated as a link, but
7828 `<http://google.com>`, `<ftp://google.com>`, and
7829 `<mailto:google@google.com>` are.
7830 + Cleaned up handling of embedded quotes in link titles. Now these are
7831 stored as a '"' character, not as '"'.
7832 + Use lookAhead parser for the 'first pass' (looking for reference keys),
7833 instead of parsing normally, then using setInput to reset input. This
7834 yields a slight performance boost.
7835 + Fixed several bugs in smart quote recognition.
7836 + Fixed bug in indentSpaces (which didn't properly handle
7837 cases with mixed spaces and tabs).
7838 + Consolidated 'text', 'special', and 'inline' into 'inline'.
7839 + Fixed bug which allowed URL and title to be separated by multiple blank
7840 lines in links and reference keys. They can be on separate lines but
7841 can't have blank lines between them.
7842 + Correctly handle bracketed text inside inline footnotes and links,using
7843 new function inlinesInBalanced. Resolves Issue #14.
7844 + Fixed bug in footnotes: links in footnotes were not being
7845 processed. Solution: three-stage parse. First, get all the
7846 reference keys and add information to state. Next, get all the
7847 notes and add information to state. (Reference keys may be needed
7848 at this stage.) Finally, parse everything else.
7849 + Replaced named constants like 'emphStart' with literals.
7850 + Removed an extra occurance of escapedChar in definition of inline.
7854 + Allow the URI in a RST hyperlink target to start on the line
7855 after the reference key.
7856 + Added 'try' in front of 'string', where needed, or used a different
7857 parser. This fixes a bug where ````` would not be correctly parsed as
7859 + Fixed slow performance in parsing inline literals in RST reader. The
7860 problem was that ``#`` was seen by 'inline' as a potential link or image.
7861 Fix: inserted 'notFollowedBy (char '`')' in link parsers.
7863 + Use lookAhead instead of getInput/setInput in RST reader. Removed
7864 unneeded getState call, since lookAhead automatically saves and
7865 restores the parser state.
7866 + Allow hyperlink target URIs to be split over multiple lines, and
7867 to start on the line after the reference. Resolves Issue #7.
7868 + Fixed handling of autolinks.
7872 + Replaced 'choice [(try (string ...), ...]' idiom with 'oneOfStrings',
7874 + Added clauses for tilde and caret. Tilde is \ensuremath{\sim}, and
7875 caret is \^{}, not \^ as before.
7876 + Added parsing for \url.
7877 + Parse \texttt{} as code, provided there's nothing fancy inside.
7881 + Modified HTML writer to use the Text.XHtml library. This results
7882 in cleaner, faster code, and it makes it easier to use Pandoc in
7883 other projects, like wikis, which use Text.XHtml. Two functions are
7884 now provided, writeHtml and writeHtmlString: the former outputs an
7885 Html structure, the latter a rendered string. The S5 writer is also
7886 changed, in parallel ways (writeS5, writeS5String).
7887 + The Html header is now written programmatically, so it has been
7888 removed from the 'headers' directory. The S5 header is still
7889 needed, but the doctype and some of the meta declarations have
7890 been removed, since they are written programatically. This change
7891 introduces a new dependency on the xhtml package.
7892 + Fixed two bugs in email obfuscation involving improper escaping
7893 of '&' in the `<noscript>` section and in `--strict` mode. Resolves
7895 + Fixed another bug in email obfuscation: If the text to be obfuscated
7896 contains an entity, this needs to be decoded before obfuscation.
7897 Thanks to thsutton for the patch. Resolves Issue #15.
7898 + Changed the way the backlink is displayed in HTML footnotes.
7899 Instead of appearing on a line by itself, it now generally
7900 appears on the last line of the note. (Exception: when the
7901 note does not end with a Plain or Para block.) This saves space
7903 + Added automatic unique identifiers to headers:
7904 - The identifier is derived from the header via a scheme
7905 documented in README.
7906 - WriterState now includes a list of header identifiers and a table
7907 of contents in addition to notes.
7908 - The function uniqueIdentifiers creates a list of unique identifiers
7909 from a list of inline lists (e.g. headers).
7910 - This list is part of WriterState and gets consumed by blockToHtml
7911 each time a header is encountered.
7912 + Include CSS for .strikethrough class in header only if strikethrough
7913 text appears in the document.
7914 + If the 'strict' option is specified, elements that do not appear in
7915 standard markdown (like definition lists) are passed through as
7917 + Simplified treatment of autolinks, using pattern matching instead of
7922 + Links in markdown output are now printed as inline links by default,
7923 rather than reference links. A --reference-links option has been added
7924 that forces links to be printed as reference links. Resolves Issue #4.
7925 + Use autolinks when possible. Instead of `[site.com](site.com)`,
7930 + Rewrote to use the State monad. The preamble now includes only those
7931 packages that are actually required, given the document's content.
7932 Thus, for example, if strikeout is not used, ulem is not required.
7933 Modified LaTeXHeader accordingly.
7934 + Modified LaTeX writer to insert '\,' between consecutive quotes.
7935 + Removed unused function tableRowColumnWidths.
7936 + Simplified code for escaping special characters.
7937 + Leave extra blank line after \maketitle.
7938 + Include empty '\author{}' when no author specified to avoid LaTeX
7940 + Include fancyvrb code in header only if needed -- that is, only
7941 if there is actually code in a footnote.
7942 + Use \url{} for autolinks.
7943 + Include [mathletters] option in ucs package, so that basic unicode
7944 Greek letters will work correctly.
7946 * RST writer: Force blank line before lists, so that sublists will
7947 be handled correctly.
7949 * Docbook writer: Fixed a bug: email links with text, like
7950 [foo](me@bar.baz), were being incorrectly treated as autolinks.
7952 * Removed Text.ParserCombinators.Pandoc and moved all its functions to
7955 * Text.Pandoc.Shared:
7957 + Added defaultWriterOptions.
7958 + Added writerTableOfContents to WriterOptions.
7959 + Added writerIgnoreNotes option to WriterOptions. This is needed
7960 for processing header blocks for a table of contents, since notes on
7961 headers should not appear in the TOC.
7962 + Added prettyprinting for native Table format.
7963 + Removed some unneeded imports.
7964 + Moved escape and nullBlock parsers from
7965 Text.ParserCombinators.Pandoc, since the latter is for
7966 general-purpose parsers that don't depend on Text.Pandoc.Definition.
7967 + Moved isHeaderBlock from Text.Pandoc.Writers.HTML.
7968 + Moved Element, headerAtLeast, and hierarchicalize from Docbook
7969 writer, because HTML writer now uses these in constructing a table
7971 + Added clauses for new inline elements (Strikeout, Superscript,
7972 Subscript) to refsMatch.
7973 + Removed backslashEscape; added new functions escapeStringUsing and
7975 + Moved failIfStrict from markdown reader, since it is now used also
7977 + Added a 'try' to the definition of indentSpaces.
7978 + In definition of 'reference', added check to make sure it's not a note
7980 + Added functions: camelCaseToHyphenated, toRomanNumeral,
7981 anyOrderedListMarker, orderedListmarker, orderedListMarkers,
7982 charsInBalanced', withHorizDisplacement, romanNumeral
7983 + Fixed a bug in the anyLine parser. Previously it would parse an empty
7984 string "", but it should fail on an empty string, or we get an error
7985 when it is used inside "many" combinators.
7986 + Removed followedBy' parser, replacing it with the lookAhead parser from
7988 + Added some needed 'try's before multicharacter parsers, especially in
7990 + Removed the 'try' from the 'end' parser in 'enclosed', so that
7991 'enclosed' behaves like 'option', 'manyTill', etc.
7992 + Added lineClump parser, which parses a raw line block up to and
7993 including any following blank lines.
7994 + Renamed parseFromStr to parseFromString.
7995 + Added a 'try' to the 'end' parser in 'enclosed'. This makes errors in
7996 the use of 'enclosed' less likely. Removed some now-unnecessary 'try's
7998 + Removed unneeded 'try' in blanklines.
7999 + Removed endsWith function and rewrote calling functions to use
8001 + Added >>~ combinator.
8002 + Fixed bug in normalizeSpaces: Space:Str "":Space should compress to
8005 * Refactored runtests.pl; added separate tests for tables.
8009 + Added -asxhtml flag to tidy in html2markdown. This will
8010 perhaps help the parser, which expects closing tags.
8011 + Modified markdown2pdf to run pdflatex a second time if --toc or
8012 --table-of-contents was specified; otherwise the table of
8013 contents won't appear.
8014 + Modified markdown2pdf to print a helpful message if the 'ulem'
8015 LaTeX package is required and not found.
8017 * Changes to build process:
8019 + Dropped support for compilation with GHC 6.4. GHC 6.6 or higher
8021 + Removed cabalize and Pandoc.cabal.in. The repository now contains
8022 pandoc.cabal itself.
8023 + Pandoc.cabal has been changed to pandoc.cabal, because HackageDB
8024 likes the cabal file to have the same name as the tarball.
8025 + Expanded and revised the package description in pandoc.cabal.
8026 Revised the package synopsis.
8027 + The tarball built by 'make tarball' now contains files built from
8028 templates (including man pages and shell scripts), so pandoc can
8029 be built directly using Cabal tools, without preprocessing.
8030 + Executable binaries are now stripped before installing.
8031 + Man pages are now generated from markdown sources, using pandoc's
8033 + Use HTML version of README (instead of RTF) in Mac OS X installer.
8034 + Instead of testing for the existence of a pandoc symlink in build-exec,
8039 + Updated README and man pages with information on new features.
8040 + Updated INSTALL instructions with some useful clarifications and
8042 + Updated web content.
8044 * Added FreeBSD port.
8050 + Changed pandoc's Build-Depends to include libghc6-mtl-dev and
8051 libghc6-xhtml-dev. Removed libghc6-html-dev.
8052 + Suggest texlive-latex-recommended | tetex-extra instead of
8053 tetex-bin. This brings in fancyvrb and unicode support.
8055 -- Recai Oktaş <roktas@debian.org> Tue, 16 Jan 2007 00:37:21 +0200
8057pandoc (0.3) unstable; urgency=low
8061 * Changes in pandoc options:
8063 + Allow options to follow or precede arguments.
8064 + Changed '--smartypants' to '--smart' and adjusted symbols accordingly.
8065 + Added '--strict' option.
8066 + Added '-o/--output' option.
8067 + Added '--dump-args' and '--ignore-args' options (for use in wrappers).
8068 + Modified '-v' and '-h' output to go to STDERR, not STDOUT, and return
8069 error conditions. This is helpful for writing wrappers.
8070 + Added copyright message to '-v' output, modeled after FSF messages.
8071 + Reformatted usage message so that it doesn't wrap illegibly.
8072 + Removed extra blanks after '-h' and '-D' output.
8074 * Added docbook writer.
8076 * Added implicit setting of default input and output format based
8077 on input and output filename extensions. These defaults are
8078 overridden if explicit input and output formats are specified using
8079 '-t', '-f', '-r', or '-w' options. Documented in pandoc(1) man page
8082 * Allow ordered list items to begin with (single) letters, as well
8083 as numbers. The list item marker may now be terminated either by
8084 '.' or by ')'. This extension to standard markdown is documented
8087 * Revised footnote syntax. (See README for full details.) The
8088 '[^1]' format now standard in markdown extensions is supported,
8089 as are inline footnotes with this syntax: '^[My note.]'.
8090 The earlier footnote syntax '^(1)' is no longer supported.
8092 * Improved HTML representation of footnotes. All footnotes
8093 are now auto-numbered and appear in an ordered list at the
8094 end of the HTML document. Since the default appearance is now
8095 acceptable, the old footnote styles have been removed from the
8100 + Fixed a serious bug in the markdown, LaTeX, and RST readers.
8101 These readers ran 'runParser' on processed chunks of text to handle
8102 embedded block lists in lists and quotation blocks. But then
8103 any changes made to the parser state in these chunks was lost,
8104 as the state is local to the parser. So, for example, footnotes
8105 didn't work in quotes or list items. The fix: instead of calling
8106 runParser on some raw text, use setInput to make it the input, then
8107 parse it, then use setInput to restore the input to what it was
8108 before. This is shorter and more elegant, and it fixes the problem.
8109 + Fixed bug in notFollowedBy' combinator (adding 'try' before
8110 'parser'). Adjusted code that uses this combinator accordingly.
8111 + Fixed bug in RTF writer that caused improper indentation on
8112 footnotes occurring in indented blocks like lists.
8113 + Fixed parsing of metadata in LaTeX reader. Now the title, author,
8114 and date are parsed correctly. Everything else in the preamble
8116 + Modified escapedChar in LaTeX reader to allow a '\' at the end of a
8117 line to count as escaped whitespace.
8118 + Modified LaTeX reader to produce inline links rather than reference
8119 links. Otherwise, links in footnotes aren't handled properly.
8120 + Fixed handling of titles in links in Markdown reader, so that
8121 embedded quotation marks are now handled properly.
8122 + Fixed Markdown reader's handling of embedded brackets in links.
8123 + Fixed Markdown reader so that it only parses bracketed material
8124 as a reference link if there is actually a corresponding key.
8125 + Revised inline code parsing in Markdown reader to conform to
8126 markdown standard. Now any number of `s can begin inline code,
8127 which will end with the same number of `s. For example, to
8128 have two backticks as code, write ``` `` ```. Modified Markdown
8130 + Fixed bug in text-wrapping routine in Markdown and RST writers.
8131 Now LineBreaks no longer cause wrapping problems.
8132 + Supported hexadecimal numerical entity references as well as
8134 + Fixed bug in Markdown reader's handling of underscores and other
8135 inline formatting markers inside reference labels: for example,
8136 in '[A_B]: /url/a_b', the material between underscores was being
8137 parsed as emphasized inlines.
8138 + Changed Markdown reader's handling of backslash escapes so that
8139 only non-alphanumeric characters can be escaped. Strict mode
8140 follows Markdown.pl in only allowing a select group of punctuation
8141 characters to be escaped.
8142 + Modified HTML reader to skip a newline following a `<br>` tag.
8143 Otherwise the newline will be treated as a space at the beginning
8146 * Made handling of code blocks more consistent. Previously, some
8147 readers allowed trailing newlines, while others stripped them.
8148 Now, all readers strip trailing newlines in code blocks. Writers
8149 insert a newline at the end of code blocks as needed.
8151 * Modified readers to make spacing at the end of output more consistent.
8153 * Minor improvements to LaTeX reader:
8155 + '\thanks' now treated like a footnote.
8156 + Simplified parsing of LaTeX command arguments and options.
8157 commandArgs now returns a list of arguments OR options (in
8158 whatever order they appear). The brackets are included, and
8159 a new stripFirstAndLast function is provided to strip them off
8160 when needed. This fixes a problem in dealing with \newcommand
8161 and \newenvironment.
8163 * Revised RTF writer:
8165 + Default font is now Helvetica.
8166 + An '\f0' is added to each '\pard', so that font resizing works
8169 * Moved handling of "smart typography" from the writers to the Markdown
8170 and LaTeX readers. This allows great simplification of the writers
8171 and more accurate smart quotes, dashes, and ellipses. DocBook can
8172 now use `<quote>`. The '--smart' option now toggles an option in
8173 the parser state rather than a writer option. Several new kinds
8174 of inline elements have been added: Quoted, Ellipses, Apostrophe,
8177 * Changes in HTML writer:
8179 + Include title block in header even when title is null.
8180 + Made javascript obfuscation of emails even more obfuscatory,
8181 by combining it with entity obfuscation.
8183 * Changed default ASCIIMathML text color to black.
8187 + Added --strip-trailing-cr option to diff in runtests.pl, for
8188 compatibility with Windows.
8189 + Added regression tests with footnotes in quote blocks and lists.
8193 + osx-pkg target creates a Mac OS X package (directory). New osx
8194 directory contains files needed for construction of the package.
8195 + osx-dmg target creates a compressed disk image containing the package.
8196 + win-pkg target creates Windows binary package.
8197 + tarball target creates distribution source tarball.
8198 + website target generates pandoc's website automatically, including
8199 demos. New 'web' directory containts files needed for construction
8200 of the website (which will be created as the 'pandoc' subdirectory
8202 + Makefile checks to see if we're running Windows/Cygwin; if so,
8203 a '.exe' extension is added to each executable in EXECS.
8205 * Removed all wrappers except markdown2pdf and html2markdown.
8207 * Added new wrapper hsmarkdown, to be used as a drop-in replacement
8208 for Markdown.pl. hsmarkdown calls pandoc with the '--strict'
8209 option and disables other options.
8211 * Added code to html2markdown that tries to determine the character
8212 encoding of an HTML file, by parsing the "Content-type" meta tag.
8214 + If the encoding can't be determined, then if the content is local,
8215 the local encoding is used; if it comes from a URL, UTF-8 is used
8217 + If input is from STDIN, don't try to determine character encoding.
8218 + Encoding can be specified explicitly using '-e' option.
8220 * Improved warning messages in wrappers:
8222 + Print warning if iconv not available
8223 + More user-friendly error messages in markdown2pdf, when
8228 + Renamed 'Text/Pandoc/HtmlEntities' module to
8229 'Text/Pandoc/Entities'. Also changed function names so as
8230 not to be HTML-specific.
8231 + Refactored SGML string escaping functions from HTML and Docbook
8232 writers into Text/Pandoc/Shared. (escapeSGML, stringToSGML)
8233 + Removed 'BlockQuoteContext' from ParserContext, as it isn't
8235 + Removed splitBySpace and replaced it with a general, polymorphic
8237 + Refactored LaTeX reader for clarity (added isArg function).
8238 + Converted some CR's to LF's in src/ui/default/print.css.
8239 + Added license text to top of source files.
8240 + Added module data for haddock to source files.
8241 + Reformatted code for consistency.
8243 * Rewrote documentation and man pages. Split README into INSTALL
8246 * Split LICENSE into COPYING and COPYRIGHT.
8248 * Removed TODO, since we now maintain ToDo on the wiki.
8250 * Made COPYRIGHT in top level a symlink to debian/copyright, to avoid
8255 * Revamped build process to conform to debian standards and created
8256 a proper debian package. Closes: #391666.
8258 * Modified build process to support GHC 6.6.
8260 + The package can still be compiled using GHC 6.4.2, though because
8261 of dependencies the "make deb" target works only with GHC 6.6+.
8262 + The script 'cabalize' is used to create an appropriate
8263 'Pandoc.cabal' from 'Pandoc.cabal.in', depending on the GHC and
8266 * Refactored template processing (fillTemplates.pl).
8268 * Modified wrapper scripts to make them more robust and portable.
8269 To avoid code duplication and ensure consistency, wrappers are
8270 generated via a templating system from templates in src/wrappers.
8272 + Wrappers now accept multiple filenames, when appropriate.
8273 + Spaces and tabs allowed in filenames.
8274 + getopts shell builtin is used for portable option parsing.
8275 + Improved html2markdown's web grabber code, making it more robust,
8276 configurable and verbose. Added '-e', '-g' options.
8278 -- Recai Oktaş <roktas@debian.org> Fri, 05 Jan 2007 09:41:19 +0200
8280pandoc (0.2) unstable; urgency=low
8282 * Fixed unicode/utf-8 translation
8284 -- John MacFarlane <jgm@berkeley.edu> Mon, 14 Aug 2006 00:00:00 -0400
8286pandoc (0.1) unstable; urgency=low
8288 * Initial creation of debian package
8290 -- 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