git.iko.soy/typeable/pandoc
on 1.14.0.3 help sign in
typeable/pandoc/changelog
8284 lines 344 kB history raw
1pandoc (1.14.0.3)
3 * Allow compilation with syb 0.5.*.
5 * Custom writer: fixed some compiler warnings for ghc < 7.10.
7pandoc (1.14.0.2)
9 * Allow building with hslua 0.4.
11pandoc (1.14.0.1)
13 * Fixed problem with building of `reference.docx` and `reference.odt`
14 when the `embed_data_files` flag is used. Instead of having a phase
15 of the build where `reference.docx` and `reference.odt` are created
16 from their constituent data files, we now construct these archives
17 from their constituents when a `docx` or `odt` is built. The
18 constituent files have been moved from `extra-source-files` to
19 `data-files`, and `reference.docx` and `reference.odt` have been
20 removed. Users can create their own `reference.docx` or
21 `reference.odt` by using pandoc to create a simple `docx` or `odt`.
22 `make-reference-files.hs` has been removed, simplifying the build
23 process (#2187)
25 * Don't include generated man pages in extra-source-files (#2189).
27 * Bumped upper bound for aeson.
29 * ConTeXt writer: create internal link anchors for Div elements with
30 identifiers. (This is needed for linked citations to work.)
32pandoc (1.14)
34 [new features]
36 * Added `commonmark` as input and output format.
38 * Added `--verbose` flag for debugging output in PDF production (#1840,
39 #1653).
41 * Allow wildcards in `--epub-embed-font` arguments (#1939).
43 * Added `--latex-engine-opt` option (#969, #1779, Sumit Sahrawat).
45 * Added `shortcut_reference_links` extension (Konstantin Zudov, #1977).
46 This is enabled by default for those markdown flavors that
47 support reading shortcut reference links, namely: `markdown`,
48 `markdown_strict`, `markdown_github`, `markdown_php`.
49 If the extension is enabled, the reader parses shortcut reference
50 links like `[foo]`, and the writer creates such links unless doing
51 so would cause problems. Users of markdown flavors that support
52 shortcut reference links should not notice a difference in reading
53 markdown, but the markdown pandoc produces may differ.
54 If shortcut links are not desired, the extension can be disabled
55 in the normal way.
57 [behavior changes]
59 * `--toc` is now supported for `docx` output (#458, Nikolay Yakimov).
60 A "dirty" TOC is created at the beginning of document.
61 It can be regenerated after the document has been opened.
63 * An implicit `--filter pandoc-citeproc` is now triggered only when the
64 `--bibliography` option is used, and not when the `bibliography`
65 field in metadata is specified (#1849).
67 * Markdown reader:
69 + Reference links with `implicit_header_references` are no longer
70 case-sensitive (#1606).
71 + Definition lists no longer require indentation for first line (#2087).
72 Previously the body of the definition (after the `:` or `~` marker)
73 needed to be in column 4. This commit relaxes that requirement,
74 to better match the behavior of PHP Markdown Extra. So, now
75 this is a valid definition list:
77 foo
78 : bar
79 + Resolve a potentially ambiguity with table captions:
81 foo
83 : bar
85 -----
86 table
87 -----
89 Is "bar" a definition, or the caption for the table? We'll count
90 it as a caption for the table.
91 + Disallow headerless pipe tables (#1996), to conform to GFM and PHP
92 Markdown Extra. Note: If you have been using headerless pipe tables,
93 this change may cause existing tables to break.
94 + Allow pipe tables with header but no body (#2017).
95 + Allow a digit as first character of a citation key (Matthias Troffaes).
96 See https://github.com/jgm/pandoc-citeproc/issues/97
98 * LaTeX reader:
100 + Don't limit includes to `.tex` extension (#1882).
101 If the extension is not `.tex`, it must be given explicitly in
102 the `\input` or `\include`.
104 * Docx reader:
106 + Allow numbering in the style file. This allows inherited styles
107 with numbering (lists) (Jesse Rosenthal).
109 * Org reader:
111 + Support smart punctuation (Craig Bosma).
112 + Drop trees with a :noexport: tag (Albert Krewinkel). Trees having a
113 `:noexport:` tag set are not exported. This mirrors org-mode.
114 + Put header tags into empty spans (Albert Krewinkel, #2160).
115 Org mode allows headers to be tagged: `* Headline :TAG1:TAG2`.
116 Instead of being interpreted as part of the headline, the tags are now
117 put into the attributes of empty spans. Spans without textual content
118 won't be visible by default, but they are detectable by filters. They
119 can also be styled using CSS when written as HTML.
120 + Generalize code block result parsing (Albert Krewinkel).
121 Previously, only code blocks were recognized as result blocks;
122 now, any kind of block can be the result.
124 * Append newline to the LineBreak in Dokuwiki, HTML, EPUB,
125 LaTeX, MediaWiki, OpenDocument, Texinfo writers (#1924, Tim Lin).
127 * HTML writer:
129 + Add "inline" or "display" class to math spans (#1914).
130 This allows inline and display math to be styled differently.
131 + Include raw latex blocks if `--mathjax` specified (#1938).
132 + Require highlighting-kate >= 0.5.14 (#1903).
133 This ensures that all code blocks will be wrapped in a `div`
134 with class `sourceCode`. Also, the default highlighting CSS
135 now adds `div.sourceCode { x-overflow: auto; }`, which means
136 that code blocks (even with line numbers) will acquire a scroll
137 bar on screens too small to display them (e.g. mobile phones).
138 See also jgm/highlighting-kate#65.
140 * LaTeX writer:
142 + Use a declaration for tight lists (Jose Luis Duran, Joseph
143 Harriott). Previously, pandoc hard-coded some commands to make
144 tight lists in LaTeX. Now we use a custom command instead,
145 allowing the styling to be changed in a macro in the header.
146 (Note: existing templates may need to be modified to include
147 the definition of this macro. See the current template.)
148 + Beamer output: if the header introducing a slide has the
149 class `fragile`, add the `[fragile]` option to the slide (#2119).
151 * MediaWiki writer:
153 + Use `File:` instead of the deprecated `Image:` for images and
154 other media files (Greg Rundlett).
156 * DocBook writer:
158 + Render a `Div (id,_,_) [Para _]` element as a `para` element
159 with an `id` attribute. This makes links to citations work in
160 DocBook with pandoc-citeproc.
162 * RST writer:
164 + Normalize headings to sequential levels (Nikolay Yakimov).
165 This is pretty much required by docutils.
166 + Treat headings in block quotes, etc as rubrics (Nikolay Yakimov).
167 + Better handling of raw latex inline (#1961). We use
168 `` :raw-latex:`...` `` and add a definition for this role to
169 the template.
171 * EPUB writer:
173 + Remove `linear=no` from cover `itemref` (#1609).
174 + Don't use `sup` element for epub footnotes (#1995).
175 Instead, just use an a element with class `footnoteRef`.
176 This allows more styling options, and provides better results
177 in some readers (e.g. iBooks, where anything inside the a
178 tag breaks popup footnotes).
179 + Take TOC title from `toc-title` metadata field.
181 * Docx writer:
183 + Implemented `FirstParagraph` style (Jesse Rosenthal).
184 Following the ODT writer, we add the `FirstParagraph` style to the
185 first text paragraph following an image, blockquote, table, heading,
186 or beginning of document. This allows it to be styled differently.
187 The default is for it to be the same as `Normal`.
188 + Added `BodyText` style (Jesse Rosenthal).
189 We apply a `BodyText` style to all unstyled paragraphs. This is,
190 essentially, the same as `Normal`, except that since not everything
191 inherits from `BodyText` (the metadata won't, for example, or
192 the headers or footnote numbers), we can change the text in the body
193 without having to make exceptions for everything. If we do want to
194 change *everything*, we can still do it through `Normal`.
195 + Altered `Blockquote` style slightly (Jesse Rosenthal).
196 Since `BlockQuote` derives from `BodyText`, we just want to specify
197 by default that it won't indent, regardless of what `BodyText` does.
198 Note that this will not produce any visible difference in the default
199 configuration.
200 + Take TOC title from `toc-title` metadata field (Nikolay Yakimov).
201 + Added a style to figure images (Nikolay Yakimov).
202 Figures with empty captions use style `Figure`.
203 Figures with nonempty captions use style `Figure with Caption`, which
204 is based on `Figure`, and additionally has `keepNext` set.
206 * ODT writer:
208 + Added figure captions (Nikolay Yakimov). The following styles are
209 used for figures:
210 `Figure` -- for figure with empty caption),
211 `FigureWithCaption` (based on `Figure`) -- for figure with caption,
212 `FigureCaption` (based on `Caption`) -- for figure captions.
213 Also, `TableCaption` (based on `Caption`) is used for table captions.
215 [API changes]
217 * New `Text.Pandoc.Error` module with `PandocError` type
218 (Matthew Pickering).
220 * All readers now return `Either PandocError Pandoc` instead of `Pandoc`
221 (Matthew Pickering). This allows better handling of errors.
223 * Added `Text.Pandoc.Writers.CommonMark`, exporting `writeCommonMark`.
225 * Added `Text.Pandoc.Readers.CommonMark`, exporting `readCommonMark`.
227 * Derive `Data` and `Typeable` instances for `MediaBag`, `Extension`,
228 `ReaderOptions`, `EPUBVersion`, `CiteMethod`, `ObfuscationMethod`,
229 `HTMLSlideVariant`, `TrackChanges`, `WriterOptions` (Shabbaz
230 Youssefi).
232 * New `Ext_shortcut_reference_links` constructor for `Extension`
233 (Konstantin Zudov).
235 [bug fixes]
237 * Markdown reader:
239 + Allow smart `'` after inline math (#1909, Nikolay Yakimov).
240 + Check for tex macros after indented code (#1973).
241 + Rewrote `charsInBalancedBrackets` for efficiency.
242 + Make sure a closing `</div>` doesn't get included in a
243 definition list item (#2127).
244 + Don't parse bracketed text as citation if it might be a link,
245 image, or footnote (Nikolay Yakimov).
246 + Require space after key in mmd title block (#2026, Nikolay
247 Yakimov). Require space after key-value delimiter colon in mmd title
248 block.
249 + Require nonempty value in mmd title block (Nikolay Yakimov).
250 + Disable all metadata block extensions when parsing
251 metadata field values (#2026, Nikolay Yakimov). Otherwise we
252 could get a mmd title block inside YAML metadata, for example.
254 * HTML reader:
256 + Improve self-closing tag detection in `htmlInBalanced` (#2146).
257 + Handle tables with `<th>` in body rows (#1859, mb21).
258 + Fixed `htmlTag` (#1820). If the tag parses as a comment, we check
259 to see if the input starts with `<!--`. If not, it's bogus comment
260 mode and we fail `htmlTag`.
261 + Handle `base` tag; if it has an `href` value, this is added to
262 all relative URLs in links and images.
264 * DocBook reader:
266 + Look inside "info" elements for section titles (#1931).
268 * Docx reader:
270 + Parse images in deprecated vml format (Jesse Rosenthal).
271 + Allow sub/superscript verbatims (Jesse Rosenthal).
272 Verbatim usually shuts off all other run styles, but we don't want it
273 to shut off sub/superscript.
275 * LaTeX reader:
277 + Handle `tabular*` environment (#1850).
278 Note that the table width is not actually parsed or taken into
279 account, but pandoc no longer chokes on it.
280 + Ignore options in `\lstinline` rather than raising error (#1997).
281 + Add some test cases for simple tables (Mathias Schenner).
282 + Handle valign argument in tables (Mathias Schenner) (currently
283 we just ignore this).
284 + Allow non-empty colsep in tables (Mathias Schenner).
285 The `tabular` environment allows non-empty column separators
286 with the "@{...}" syntax. Previously, pandoc would fail to
287 parse tables if a non-empty colsep was present. With this
288 commit, these separators are still ignored, but the table gets
289 parsed. A test case is included.
290 + Recognize `\newpage` as a block command.
291 + Allow block content in \title{} (#2001).
292 + Check for block-level newcommand aliases in blockCommand (Nikolay
293 Yakimov).
294 + Guard against paragraph starting with inline macro (Nikolay Yakimov).
295 + Properly gobble spaces after `\\` (#2007).
297 * Textile reader:
299 + Handle newlines in table cells, and empty cells (#1919).
301 * Org reader:
303 + Allow image links with non-image targets (Hans-Peter Deifel).
304 This matches behavior of Org-Mode for links like
305 `[[http://example.com][https://www.haskell.org/static/img/logo.png]]`.
307 * Docbook writer:
309 + Don't print empty id attributes (thanks to Steve Horne).
311 * HTML writer:
313 + Fixed list-style-type for numbered example lists.
314 Should be "decimal," not "example" (#1902).
315 + Do not omit missing `alt` attribute on `img` tag (#1131,
316 Konstantin Zudov).
317 + Allow multiple colgroups in table (#2122).
318 + In revealjs, ensure that lists in speaker notes don't add "fragment"
319 classes, which can cause additional keypresses to be needed to
320 advance a slide (#1394).
322 * LaTeX writer:
324 + Don't escape `$` in URL (#1913).
325 + Don't use listings in headers (Matthew Pickering, #1963).
326 + Recognize book documentclass if set in metadata (#1971).
327 This sets `--chapters` implicitly if the documentclass in metadata
328 is a book documentclass. Previously this was done only if a book
329 documentclass was set in a variable.
330 + Add a `\label` in `\hyperdef` for Div, Span (or links don't work).
331 + Make `mainlang` work when `lang` is in metadata (#2174).
333 * Texinfo writer:
335 + Fix wrapping by using breakable spaces (Tim Lin).
337 * RST writer:
339 + Fixed toc depth in RST writer. Previously the depth was being
340 rendered as a floating point number with a decimal point.
342 * Markdown writer:
344 + Improved escaping (#2086). `<` should not be escaped as `\<`, for
345 compatibility with original Markdown. We now escape `<` and `>`
346 with entities. Also, we now backslash-escape square brackets.
347 + Avoid introducing spurious list items through wrapping (#1946).
348 + Don't emit span tags if plain or raw HTML disabled.
350 * MediaWiki writer:
352 + Convert spaces to underscores in wikilink URL (#1982), like MediaWiki.
354 * AsciiDoc writer:
356 + Insert some needed blank lines (#1860).
357 + Avoid wrapping after list marker (#1858).
359 * EPUB writer:
361 + Properly handle internal links to IDs in spans, divs (#1884).
362 + Use plain writer for metadata dc: fields (#2121).
363 This gives better results when we have, e.g. multiple paragraphs.
364 Note that tags aren't allowed in these fields.
365 + Properly handle image links without an extension (#1855).
366 + Improved chapter splitting and internal link rewriting (#1887,
367 #2162, #2163). This will ensure that internal links work and
368 that the references section produced by pandoc-citeproc is
369 in its own chapter.
370 + Fixed handling of svg images (#2183).
372 * ICML writer:
374 + Better handling of raw blocks and inlines (#1951).
375 Previously these were always escaped and printed verbatim.
376 Now they are ignored unless the format is `icml`, in which
377 case they are passed through unescaped.
378 + Fixed image URIs in ICML output (gohai).
380 * Custom writer:
382 + Raise error if loadstring returns an error status.
383 + Raise `PandocLuaException` instead of using 'error'.
384 Eventually we'll change the return type so that no exception
385 is involved, but at least this can be trapped.
386 + Use UTF-8 aware bytestring conversion.
387 + Set foreign encoding to UTF-8 (Nikolay Yakimov, #2101, #1634).
388 Also factored out ByteString, since it's only used as an intermediate
389 representation.
391 * Docx writer:
393 + Copy hyphenation settings from reference.docx (Nikolay Yakimov).
394 + Filter out illegal XML characters (#1992, Matthew Pickering).
395 + Added `noProof` to docx syntax highlighting `SourceCode` style.
396 + Added footnotes id -1 and 0 (Jesse Rosenthal).
397 Word uses, by default, footnotes with id -1 and 0 for separators. If a
398 user modifies `reference.docx`, they will end up with a `settings.xml`
399 file that references these footnotes, but no such footnotes in the
400 document. This will produce a corruption error. Here we add these to the
401 document and `settings.xml` file, so future modifications won't break
402 the file.
403 + Handle lists correctly inside table cells (Jesse Rosenthal).
404 Previously we didn't transform lists inside table cells.
405 + Set firstRow information in tables (Nikolay Yakimov).
406 + Don't replace `SourceCode` style in `reference.docx` if it is defined
407 there (Nikolay Yakimov, #1872). If `--no-highlight` specified, remove
408 any `SourceCode` and `*Tok` styles in `reference.docx`.
409 + Attempt to match international style names (#1607, Nikolay Yakimov).
410 + Set these styles as custom (Nikolay Yakimov): `Author`, `Abstract`,
411 `Compact`, `Image Caption`, `Table Caption`, `Definition Term`,
412 `Definition`, `First Paragraph`.
413 + Rename these styles to correspond with Word `Normal.dotm` (Nikolay
414 Yakimov): `Block Quote -> Block Text`, `Link -> Hyperlink`,
415 `Footnote Ref -> Footnote Reference`.
416 + Added `Caption` style (Nikolay Yakimov).
417 + Changed these styles' inheritance (Nikolay Yakimov):
418 `Image Caption <- Caption`, `Table Caption <- Caption`.
419 + Remove `SourceCode` style from `reference.docx` (#1872).
420 This is added automatically by the docx writer.
421 + Added toc heading style to `reference.docx` (Nikolay Yakimov).
423 * `Text.Pandoc.PDF`
425 + Don't suggest "Try xelatex" if xelatex already in use (mb21, #1832).
426 + More comprehensible errors on image conversion (#2067).
427 EPS can't be supported without shelling out to something like
428 ImageMagick, but at least we can avoid mysterious error messages.
430 * `Text.Pandoc.Shared`:
432 + Make safeRead safe (#1801, Matthew Pickering).
433 + Addded `mapLeft`, `hush` (Matthew Pickering).
435 * `Text.Pandoc.Pretty`:
437 + Remove partial function (Matthew Pickering).
439 * `Text.Pandoc.SelfContained`:
441 + Add `;charset=utf-8` to script mime type if missing (#1842).
442 + Improved building of data URIs (#1940). Now base64 is used except
443 for `text/*` mime types.
444 + `cssURLs` no longer tries to fetch fragment URLs (#2121).
445 + Properly handle data URIs in css urls (#2129).
446 Use a proper CSS parser (adds dependency on `text-css`).
448 * `Text.Pandoc.UTF8`:
450 + Better handling of bare CRs in input files (#2132).
451 Previously we just stripped them out; now we convert
452 other line ending styles to LF line endings.
454 * `Text.Pandoc.ImageSize`:
456 + Fixed some exif header parsing bugs (#1834).
457 + Make imageSize return an Either, not a Maybe (#1834).
458 Use `runGetOrFail` (with `binary >= 0.7`) to return `Left` on
459 parse failure (rather than `error`).
460 + Improved warnings when image size can't be determined.
461 + Removed error landmines (Matthew Pickering).
463 * Added woff2 to MIME types (Alfred Wechselberger).
465 * pandoc: When a binary input format is used, warn that file
466 arguments past the first one are being ignored (Matthew Pickering).
468 [template changes]
470 * LaTeX template:
472 + Degrade gracefully if `\paragraph` not defined.
473 + Include `grffile` together with `graphicx` (#2074).
474 This properly handles filenames containing spaces and dots.
475 + Redefine `\paragraph`, `\subparagraph`... to behave more
476 like section headers (#1658).
477 + Import hyperref before polyglossia to avoid an error with xelatex,
478 "please load package hyperref before bidi package" (Nick Bart).
479 + Added `toccolor` variable to control link color in toc (Kaixhin).
481 * LaTeX, Beamer templates:
483 + Provide `\tightlist`, which is now used by the LaTeX writer.
484 + Use polyglossia in beamer (#85).
485 + Use `bibliography` instead of `biblio-files`
486 (#1661). Also use `\addbibresource` instead of `\bibliography` for
487 biblatex.
488 + Added `setotherlanguages` in polyglossia. This uses an `otherlang`
489 variable that is derived from a comma-separated list in `lang`;
490 the last language is `mainlang` and the others are `otherlang`.
492 * EPUB templates:
494 + Use `div`, not `p`, for "rights" on title page.
495 + Added header-includes, include-before, include-after (#1987).
497 * OpenDocument template:
499 + Use `text:p` instead of `text:h` for title.
500 Using `text:h` causes problems with numbering. Closes #2059.
501 Thansk to @nkalvi for diagnosing this.
503 * reveal.js template:
505 + Link to non-minified css, js. The minified versions no longer
506 ship with the library.
507 + Correctly include style CSS (#1949).
508 + New configurable options options: `center`, `maxScale`, `slideNuber`
509 (Dmitry Smirnov, pandoc-templates#89).
510 + Moved custom CSS after theme. This allows custom CSS to modify
511 themes, instead of being replaced by them.
512 + Allow `center` to be set to false.
514 [under the hood improvements]
516 * Removed pre-built `reference.docx` and `reference.odt` (Nikolay
517 Yakimov). Instead the repository now includes the component text files,
518 and the zipped binaries are built from these using a helper
519 program, `make-reference-files`. This should make maintenance of
520 these components easier going forward.
522 * `Text.Pandoc.Parsing`:
524 + Added new `<+?>` combinator (Nikolay Yakimov).
525 + Added `stateHeaderKeys` to `ParserState`.
527 * `make_deb.sh` fixes:
529 + Detect architecture.
530 + Add Installed-Size to debian package control file (#1900).
531 + Use `fakeroot` to get permissions right.
532 + Use `mkdir` and `cp` instead of `install`.
533 + Set permissions of directories to 755.
534 + Install in `/usr` rather than `/usr/local`.
535 + Compress man pages.
536 + Combine copyright files for `pandoc`, `pandoc-citeproc`.
538 * Added `Text.Pandoc.Compat.Locale` and `old-locale` flag
539 to assist with transition to `time` 1.5.
541 * Updated CONTRIBUTING.md with information about issue tags (Matthew
542 Pickering).
544 * Updated travis installs to the new sudo-less syntax (Tim Lin).
546 * Updated dependency version bounds.
548 * EPUB tests: don't use `joinPath`, which varies across platforms.
549 Instead, use a forward-slash to join paths, regardless of the
550 platform. This matches the way `MediaBag` now works.
552 * Clarify JSON input and output in usage message (Caleb McDaniel).
554 * Improved INSTALL instructions.
556 * Always build man pages. Removed make-pandoc-man-pages flag.
558 * Makefile: removed man target, now that we generate man pages by default.
560 * README:
562 + Fixed typos (J. Lewis Muir).
563 + Added documentation on backtick_code_blocks (#2135, Nikolay Yakimov).
564 + Added note on in-field markup in biblio databases (Nick Bart).
565 + Fixed misleading example of raw HTML block.
566 + Various minor formatting and consistency fixes for the program
567 options (Andreas Lööw).
568 + Made definition lists for options all "loose" for consistency.
569 + Added YAML biblio format to table, and note on `pandoc-citeproc`'s
570 `--bib2json` and `--bib2yaml` options (Nick Bart).
571 + Removed obsolete reference to `mods2yaml` (Nick Bart).
572 + Added section on syntax highlighting.
573 + Documented `toccolor` variable.
575pandoc (1.13.2.1)
577 * Updated to build with ghc 7.10.1.
579 * Bumped package upper bounds for filepath, blaze-html,
580 blaze-markup.
582pandoc (1.13.2)
584 * TWiki Reader: add new new twiki reader (API chaneg, Alexander Sulfrian).
586 * Markdown reader:
588 + Better handling of paragraph in div (#1591).
589 Previously text that ended a div would be parsed as Plain
590 unless there was a blank line before the closing div tag.
591 + Don't treat a citation as a reference link label (#1763).
592 + Fix autolinks with following punctuation (#1811).
593 The price of this is that autolinked bare URIs can no longer
594 contain `>` characters, but this is not a big issue.
595 + Fix `Ext_lists_without_preceding_blankline` bug (#1636, Artyom).
596 + Allow `startnum` to work without `fancy_lists`. Formerly
597 `pandoc -f markdown-fancy_lists+startnum` did not work properly.
599 * RST reader (all Daniel Bergey):
601 + Parse quoted literal blocks (#65). RST quoted literal blocks are
602 the same as indented literal blocks (which pandoc already supports)
603 except that the quote character is preserved in each line.
604 + Parse RST class directives. The class directive accepts one or more
605 class names, and creates a Div value with those classes. If the
606 directive has an indented body, the body is parsed as the children of
607 the Div. If not, the first block folowing the directive is made a
608 child of the Div. This differs from the behavior of rst2xml, which
609 does not create a Div element. Instead, the specified classes are
610 applied to each child of the directive. However, most Pandoc Block
611 constructors to not take an Attr argument, so we can't duplicate this
612 behavior.
613 + Warn about skipped directives.
614 + Literal role now produces Code. Code role should have "code" class.
615 + Improved support for custom roles
617 - Added `sourceCode` to classes for `:code:` role, and anything
618 inheriting from it.
619 - Add the name of the custom role to classes if the Inline
620 constructor supports Attr.
621 - If the custom role directive does not specify a parent role,
622 inherit from the `:span:` role.
624 This differs somewhat from the `rst2xml.py` behavior. If a custom
625 role inherits from another custom role, Pandoc will attach both
626 roles' names as classes. `rst2xml.py` will only use the class of
627 the directly invoked role (though in the case of inheriting from a
628 `:code:` role with a `:language:` defined, it will also provide the
629 inherited language as a class).
630 + Warn about ignored fields in role directives.
632 * LaTeX reader:
634 + Parse label after caption into a span instead of
635 inserting an additional paragraph of bracketed text (#1747).
636 + Parse math environments as inline when possible (#1821).
637 + Better handling of `\noindent` and `\greektext` (#1783).
638 + Handle `\texorpdfstring` more gracefully.
639 + Handle `\cref` and `\sep` (Wikiwide).
640 + Support `\smartcite` and `\Smartcite` from biblatex.
642 * HTML reader:
644 + Retain display type of MathML output (#1719, Matthew Pickering).
645 + Recognise `<br>` tags inside `<pre>` blocks (#1620, Matthew Pickering).
646 + Make `embed` tag either block or inline (#1756).
648 * DocBook reader:
650 + Handle `keycombo`, `keycap` (#1815).
651 + Get string content in inner tags for literal elements (#1816).
652 + Handle `menuchoice` elements better, with a `>` between (#1817).
653 + Include `id` on section headers (#1818).
654 + Document/test "type" as implemented (Brian O'Sullivan).
655 + Add support for calloutlist and callout (Brian O'Sullivan).
656 We treat a calloutlist as a bulleted list. This works well in practice.
657 + Add support for `classname` (Bryan O'Sullivan).
659 * Docx reader:
661 + Fix window path for image lookup (Jesse Rosenthal).
662 Don't use os-sensitive "combine", since we always want the paths in our
663 zip-archive to use forward-slashes.
664 + Single-item headers in ordered lists are headers (Jesse Rosenthal).
665 When users number their headers, Word understands that as a single item
666 enumerated list. We make the assumption that such a list is, in fact,
667 a header.
668 + Rewrite rewriteLink to work with new headers (Jesse Rosenthal).
669 There could be new top-level headers after making lists, so we have to
670 rewrite links after that.
671 + Use polyglot header list (Jesse Rosenthal).
672 We're just keeping a list of header formats that different languages
673 use as their default styles. At the moment, we have English, German,
674 Danish, and French. We can continue to add to this.
675 This is simpler than parsing the styles file, and perhaps less
676 error-prone, since there seems to be some variations, even within a
677 language, of how a style file will define headers.
678 + Remove header class properly in other langs (Jesse Rosenthal).
679 When we encounter one of the polyglot header styles, we want to remove
680 that from the par styles after we convert to a header. To do that, we
681 have to keep track of the style name, and remove it appropriately.
682 + Account for external link URLs with anchors. Previously, if a URL
683 had an anchor, the reader would incorrectly identify it as an
684 internal link and return only the anchor as URL. (Caleb McDaniel)
685 + Fix for Issue #1692 (i18n styles) (Nikolay Yakimov).
687 * Org reader:
689 + Added state changing blanklines (Jesse Rosenthal).
690 This allows us to emphasize at the beginning of a new paragraph (or, in
691 general, after blank lines).
692 + Fixed bug with bulleted lists:
694 - a
695 - b
696 * c
698 was being parsed as a list, even though an unindented `*`
699 should make a heading. See
700 <http://orgmode.org/manual/Plain-lists.html#fn-1>.
701 + Org reader: absolute, relative paths in link (#1741, Albert
702 Krewinkel). The org reader was too restrictive when parsing links;
703 some relative links and links to files given as absolute paths
704 were not recognized correctly.
705 + Org reader: allow empty links (jgm/gitit#471, Albert Krewinkel).
706 This is important for use in gitit, which uses empty links
707 for wikilinks.
708 + Respect indent when parsing Org bullet lists (#1650, Timothy
709 Humphries). Fixes issue with top-level bullet list parsing.
710 + Fix indent issue for definition lists (Timothy Humphries,
711 see #1650, #1698, #1680).
712 + Parse multi-inline terms correctly in definition list (#1649,
713 Matthew Pickering).
714 + Fix rules for emphasis recognition (Albert Krewinkel).
715 Things like `/hello,/` or `/hi'/` were falsy recognized as emphasised
716 strings. This is wrong, as `,` and `'` are forbidden border chars and
717 may not occur on the inner border of emphasized text.
718 + Drop COMMENT document trees (Albert Krewinkel).
719 Document trees under a header starting with the word `COMMENT` are
720 comment trees and should not be exported. Those trees are dropped
721 silently (#1678).
722 + Properly handle links to `file:target` (Albert Krewinkel).
723 Org links like `[[file:target][title]]` were not handled correctly,
724 parsing the link target verbatim. The org reader is changed such that
725 the leading `file:` is dropped from the link target (see #756, #1812).
726 + Parse LaTeX-style MathML entities (#1657, Albert Krewinkel).
727 Org supports special symbols which can be included using LaTeX syntax,
728 but are actually MathML entities. Examples for this are
729 `\nbsp` (non-breaking space), `\Aacute` (the letter A with accent acute)
730 or `\copy` (the copyright sign ©)
732 * EPUB reader:
734 + URI handling improvements. Now we outsource most of the work to
735 `fetchItem'`. Also, do not include queries in file extensions (#1671).
737 * LaTeX writer:
739 + Use `\texorpdfstring` for section captions when needed (Vaclav Zeman).
740 + Handle consecutive linebreaks (#1733).
741 + Protect graphics in headers (Jesse Rosenthal).
742 Graphics in `\section`/`\subsection` etc titles need to be `\protect`ed.
743 + Put `~` before header in list item text (Jesse Rosenthal).
744 Because of the built-in line skip, LaTeX can't handle a section header
745 as the first element in a list item.
746 + Avoid using reserved characters as `\lstinline` delimiters (#1595).
747 + Better handling of display math in simple tables (#1754).
748 We convert display math to inline math in simple tables,
749 since LaTeX can't deal with display math in simple tables.
750 + Escape spaces in code (#1694, Bjorn Buckwalter).
752 * MediaWiki writer:
754 + Fixed links with URL = text. Previously these were rendered as bare
755 words, even if the URL was not an absolute URL (#1825).
757 * ICML writer:
759 + Don't force all citations into footnotes.
761 * RTF writer:
763 + Add blankline at end of output (#1732, Matthew Pickering).
765 * RST writer:
767 + Ensure blank line after figure.
768 + Avoid exces whitespace after last list item (#1777).
769 + Wrap line blocks with spaces before continuations (#1656).
770 + Fixed double-rendering of footnotes in RST tables (#1769).
772 * DokuWiki writer:
774 + Better handling of block quotes. This change ensures that
775 multiple paragraph blockquotes are rendered using native `>`
776 rather than as HTML (#1738).
777 + Fix external images (#1739). Preface relative links with ":",
778 absolute URIs without. (Timothy Humphries)
780 * HTML writer:
782 + Use protocol-relative URL for mathjax.
783 + Put newline btw img and caption paragraph.
784 + MathML now outputted with tex annotation (#1635, Matthew Pickering).
785 + Add support for KaTeX HTML math (#1626, Matthew Pickering).
786 This adds `KaTeX` to `HTMLMathMethod` (API change).
787 + Don't double render when `email-obfuscation=none` (#1625, Matthew
788 Pickering).
789 + Make header attributes work outside top level (#1711).
790 Previously they only appeared on top level header elements.
791 Now they work e.g. in blockquotes.
793 * ODT writer:
795 + Correctly handle images without extensions (#1729).
796 + Strip querystring in ODT write (#1682, Todd Sifleet).
798 * FB2 writer:
800 + Add newline to output.
802 * EPUB writer:
804 + Don't add `sourceURL` to absolute URIs (#1669).
805 + Don't use unsupported `opf:title-type` for epub2.
806 + Include "landmarks" section in nav document for epub3 (#1757).
807 + Removed playOrder from navpoint elements in ncx file (#1760).
808 These aren't required, and they make manual modification of epubs
809 difficult.
810 + Extract title even from structured title.
811 + Don't include nav node in spine unless `--toc` was requested.
812 Previously we included it in the spine with `linear="no"`, leading
813 to odd results in some readers (#1593).
814 + Fixed absolute URI detection (#1672).
815 + Correctly resolve relative URIs (#1671).
816 + Use regular page template for `nav.xhtml`, including doctype (#1759).
818 * Docx writer:
820 + Put docx table captions above tables (#1641, Nikolay Yakimov).
821 + Get the page width from the reference docx file, and use
822 it to scale images that are too large to fit (Grégory Bataille).
823 + Partial fix for #1607 (Nikolay Yakimov). International heading styles
824 are inferred based on `<w:name val="heading #">` fallback, if there
825 are no en-US "Heading#" styles
826 + Look in user data dir for archive `reference.docx`.
827 + Renumber header and footer relationships to avoid collisions (Jesse
828 Rosenthal). We previously took the old relationship names of the
829 headers and footer in secptr. That led to collisions. We now make
830 a map of availabl names in the relationships file, and then rename
831 in secptr.
833 * ConTeXt writer:
835 + Add function toLabel (Mark Szepieniec).
836 This function can be used to sanitize reference labels so that
837 they do not contain any of the illegal characters \#[]",{}%()|= .
838 Currently only Links have their labels sanitized, because they
839 are the only Elements that use passed labels.
841 * `Text.Pandoc.Shared`:
843 + Moved import of `toChunks` outside of CPP conditional (#1590).
844 + Fix `inDirectory` to reset to the original directory in case
845 an exception occurs (Freiric Barral).
847 * Templates:
849 + LaTeX template: load polyglossia before bibtex (jgm/pandoc-templates#70).
850 Thanks to bluebirch.
851 + LaTeX template: Added `\VerbatimFootnotes` if there is verbatim in notes
852 (#1616).
853 + LaTeX template: Add shorthands=off to babel options (#1648).
854 + EPUB, EPUB3 templates: Added `id="cover"` to body of cover page.
855 This aids styling, making it possible for example to set 0 margins
856 on the title page (#1758).
857 + EPUB, EPUB3 templates: Handle structured metadata on titlepage.
858 Previously we just expected 'title', 'subtitle', 'author', 'date'.
859 Now we still support those, but also support the format recommended
860 for epub metadata in the pandoc README:
862 ---
863 title:
864 - type: main
865 text: My Book
866 - type: subtitle
867 text: An investigation of metadata
868 creator:
869 - role: author
870 text: John Smith
871 - role: editor
872 text: Sarah Jones
873 identifier:
874 - scheme: DOI
875 text: doi:10.234234.234/33
876 publisher: My Press
877 rights: (c) 2007 John Smith, CC BY-NC
878 ...
880 * `Text.Pandoc.Templates.getDefaultTemplate`:
881 don't fail when called with "fb2" (#1660).
883 * `Text.Pandoc.Parsing`:
885 + Fixed `inlineMath` so it handles `\text{..}` containing `$`.
886 For example: `$x = \text{the $n$th root of $y$}` (#1677).
887 + Change `parseFromString` to fail if not all input is consumed.
888 (Matthew Pickering)
889 + Moved `addWarning` from Markdown reader to `Parsing`, so it can be
890 used by more readers (API change, Daniel Bergey).
892 * `Text.Pandoc.Pretty`:
894 + Improve performance of `realLength` (Matthew Pickering).
895 + Make CR + BLANKLINE = BLANKLINE. This fixes an extra blank line we
896 were getting at the end of markdown fragments (as well as rst, org,
897 etc.) (#1705).
899 * `Text.Pandoc.MIME`:
901 + Add mime type for WebVTT (Jason Ronallo).
902 + Changed mime type for `otf` to `application/vnd.ms-opentype` (#1761).
903 This is needed for epub3 validation.
905 * `Text.Pandoc.MediaBag`:
907 + Fix Windows specific path problems (#1597).
909 * `Text.Pandoc.Shared`:
911 + Make `collapseFilePath` OS-agnostic (Matthew Pickering).
913 * Link the test suite using `-threaded`.
914 This allows the test suite to be run using `+RTS -N`.
916 * Added `network` dependency under `network-uri` flag in test section.
918 * Give better error messages when someone tries to convert from
919 pdf, doc, odt (#1683).
921 * Added `track` to list of tags treated by `--self-contained` (#1664).
923pandoc (1.13.1)
925 * Fixed `--self-contained` with Windows paths (#1558).
926 Previously `C:\foo.js` was being wrongly interpreted as a URI.
928 * HTML reader: improved handling of tags that can be block or inline.
929 Previously a section like this would be enclosed in a paragraph,
930 with RawInline for the video tags (since video is a tag that can
931 be either block or inline):
933 <video controls="controls">
934 <source src="../videos/test.mp4" type="video/mp4" />
935 <source src="../videos/test.webm" type="video/webm" />
936 <p>
937 The videos can not be played back on your system.<br/>
938 Try viewing on Youtube (requires Internet connection):
939 <a href="http://youtu.be/etE5urBps_w">Relative Velocity on
940 Youtube</a>.
941 </p>
942 </video>
944 This change will cause the video and source tags to be parsed
945 as RawBlock instead, giving better output.
946 The general change is this: when we're parsing a "plain" sequence
947 of inlines, we don't parse anything that COULD be a block-level tag.
949 * Docx reader:
951 + Be sensitive to user styles. Note that "Hyperlink" is
952 "blacklisted," as we don't want the default underline styling to be
953 inherited by all links by default (Jesse Rosenthal).
954 + Read single paragraph in table cell as `Plain` (Jesse Rosenthal).
955 This makes to docx reader's native output fit with the way the markdown
956 reader understands its markdown output.
958 * Textile writer: Extended the range of cases where native textile
959 tables will be used (as opposed to raw HTML): we now handle any
960 alignment type, but only for simple tables with no captions.
962 * Txt2Tags reader:
964 + Header is now parsed only if standalone flag is set (Matthew Pickering).
965 + The header is now parsed as meta information. The first line is the
966 `title`, the second is the `author` and third line is the `date`
967 (Matthew Pickering).
968 + Corrected formatting of `%%mtime` macro (Matthew Pickering).
969 + Fixed crash when reading from stdin.
971 * EPUB writer: Don't use page-progression-direction in EPUB2, which
972 doesn't support it. Also, if page-progression-direction not specified
973 in metadata, don't include the attribute even in EPUB3; not including it
974 is the same as including it with the value "default", as we did before.
975 (#1550)
977 * Org writer: Accept example lines with indentation at the beginning
978 (Calvin Beck).
980 * DokuWiki writer:
982 + Refactor to use Reader monad (Matthew Pickering).
983 + Avoid using raw HTML in table cells; instead, use `\\`
984 instead of newlines (Jesse Rosenthal).
985 + Properly handle HTML table cell alignments, and use spacing
986 to make the tables look prettier (#1566).
988 * Docx writer:
990 + Bibliography entries get `Bibliography` style (#1559).
991 + Implement change tracking (Jesse Rosenthal).
993 * LaTeX writer:
995 + Fixed a bug that caused a table caption to repeat across all pages
996 (Jose Luis Duran).
997 + Improved vertical spacing in tables and made it customizable using
998 standard lengths set by booktab. See
999 <https://groups.google.com/forum/#!msg/pandoc-discuss/qMu6_5lYy0o/ZAU7lzAIKw0J>
1000 (Jose Luis Duran).
1001 + Added `\strut` to fix spacing in multiline tables (Jose Luis Duran).
1002 + Use `\tabularnewline` instead of `\\` in table cells (Jose Luis Duran).
1003 + Made horizontal rules more flexible (Jose Luis Duran).
1005 * Text.Pandoc.MIME:
1007 + Added `MimeType` (type synonym for `String`) and `getMimeTypeDef`.
1008 Code cleanups (Artyom Kazak).
1010 * Templates:
1012 + LaTeX template: disable microtype protrusion for typewriter font (#1549,
1013 thanks lemzwerg).
1015 * Improved OSX build procedure.
1017 * Added `network-uri` flag, to deal with split of `network-uri` from
1018 `network`.
1020 * Fix build dependencies for the `trypandoc` flag, so that they are
1021 ignored if `trypandoc` flag is set to False (Gabor Pali).
1023 * Updated README to remove outdated claim that `--self-contained`
1024 looks in the user data directory for missing files.
1026pandoc (1.13.0.1)
1028 * Docx writer:
1030 + Fixed regression which bungled list numbering (#1544), causing
1031 all lists to appear as basic ordered lists.
1032 + Include row width in table rows (Christoffer Ackelman, Viktor Kronvall).
1033 Added a property to all table rows where the sum of column widths
1034 is specified in pct (fraction of 5000). This helps persuade Word
1035 to lay out the table with the widths we specify.
1037 * Fixed a bug in Windows 8 which caused pandoc not to find the
1038 `pandoc-citeproc` filter (#1542).
1040 * Docx reader: miscellaneous under-the-hood improvements (Jesse Rosenthal).
1041 Most significantly, the reader now uses Builder, leading to some
1042 performance improvements.
1044 * HTML reader: Parse appropriately styled span as SmallCaps.
1046 * Markdown writer: don't escape `$`, `^`, `~` when `tex_math_dollars`,
1047 `superscript`, and `subscript` extensions, respectively, are
1048 deactivated (#1127).
1050 * Added `trypandoc` flag to build CGI executable used in the online
1051 demo.
1053 * Makefile: Added 'quick', 'osxpkg' targets.
1055 * Updated README in templates to indicate templates license.
1056 The templates are dual-licensed, BSD3 and GPL2+.
1058pandoc (1.13)
1060 [new features]
1062 * Added `docx` as an input format (Jesse Rosenthal). The docx
1063 reader includes conversion of native Word equations to pandoc
1064 LaTeX `Math` elements. Metadata is taken from paragraphs at the
1065 beginning of the document with styles `Author`, `Title`, `Subtitle`,
1066 `Date`, and `Abstract`.
1068 * Added `epub` as an input format (Matthew Pickering). The epub
1069 reader includes conversion of MathML to pandoc LaTeX `Math`
1070 elements.
1072 * Added `t2t` (Txt2Tags) as an input format (Matthew Pickering).
1073 Txt2tags is a lightweight markup format described at
1074 <http://txt2tags.org/>.
1076 * Added `dokuwiki` as an output format (Clare Macrae).
1078 * Added `haddock` as an output format.
1080 * Added `--extract-media` option to extract media contained in a zip
1081 container (docx or epub) while adjusting image paths to point to the
1082 extracted images.
1084 * Added a new markdown extension, `compact_definition_lists`, that
1085 restores the syntax for definition lists of pandoc 1.12.x, allowing
1086 tight definition lists with no blank space between items, and
1087 disallowing lazy wrapping. (See below under behavior changes.)
1089 * Added an extension `epub_html_exts` for parsing HTML in EPUBs.
1091 * Added extensions `native_spans` and `native_divs` to activate
1092 parsing of material in HTML span or div tags as Pandoc Span
1093 inlines or Div blocks.
1095 * `--trace` now works with the Markdown, HTML, Haddock, EPUB,
1096 Textile, and MediaWiki readers. This is an option intended
1097 for debugging parsing problems; ordinary users should not need
1098 to use it.
1100 [behavior changes]
1102 * Changed behavior of the `markdown_attribute` extension, to bring
1103 it in line with PHP markdown extra and multimarkdown. Setting
1104 `markdown="1"` on an outer tag affects all contained tags,
1105 recursively, until it is reversed with `markdown="0"` (#1378).
1107 * Revised markdown definition list syntax (#1429). Both the reader
1108 and writer are affected. This change brings pandoc's definition list
1109 syntax into alignment with that used in PHP markdown extra and
1110 multimarkdown (with the exception that pandoc is more flexible about
1111 the definition markers, allowing tildes as well as colons). Lazily
1112 wrapped definitions are now allowed. Blank space is required
1113 between list items. The space before a definition is used to determine
1114 whether it is a paragraph or a "plain" element. **WARNING: This change
1115 may break existing documents!** Either check your documents for
1116 definition lists without blank space between items, or use
1117 `markdown+compact_definition_lists` for the old behavior.
1119 * `.numberLines` now works in fenced code blocks even if no language
1120 is given (#1287, jgm/highlighting-kate#40).
1122 * Improvements to `--filter`:
1124 + Don't search PATH for a filter with an explicit path.
1125 This fixed a bug wherein `--filter ./caps.py` would run `caps.py` from
1126 the system path, even if there was a `caps.py` in the working directory.
1127 + Respect shebang if filter is executable (#1389).
1128 + Don't print misleading error message.
1129 Previously pandoc would say that a filter was not found,
1130 even in a case where the filter had a syntax error.
1132 * HTML reader:
1134 + Parse `div` and `span` elements even without `--parse-raw`,
1135 provided `native_divs` and `native_spans` extensions are set.
1136 Motivation: these now generate native pandoc Div and Span
1137 elements, not raw HTML.
1138 + Parse EPUB-specific elements if the `epub_html_exts`
1139 extension is enabled. These include `switch`, `footnote`,
1140 `rearnote`, `noteref`.
1142 * Org reader:
1144 + Support for inline LaTeX. Inline LaTeX is now accepted and parsed by the
1145 org-mode reader. Both math symbols (like `\tau`) and LaTeX commands (like
1146 `\cite{Coffee}`), can be used without any further escaping (Albert
1147 Krewinkel).
1149 * Textile reader and writer:
1151 + The `raw_tex` extension is no longer set by default. You can
1152 enable it with `textile+raw_tex`.
1154 * DocBook reader:
1156 + Support `equation`, `informalequation`, `inlineequation` elements with
1157 `mml:math` content. This is converted into LaTeX and put into a Pandoc
1158 Math inline.
1160 * Revised `plain` output, largely following the style of Project
1161 Gutenberg:
1163 + Emphasis is rendered with `_underscores_`, strong emphasis
1164 with ALL CAPS.
1165 + Headings are rendered differently, with space to set them off,
1166 not with setext style underlines. Level 1 headers are ALL CAPS.
1167 + Math is rendered using unicode when possible, but without the
1168 distracting emphasis markers around variables.
1169 + Footnotes use a regular `[n]` style.
1171 * Markdown writer:
1173 + Horizontal rules are now a line across the whole page.
1174 + Prettier pipe tables. Columns are now aligned (#1323).
1175 + Respect the `raw_html` extension. `pandoc -t markdown-raw_html`
1176 no longer emits any raw HTML, including span and div tags
1177 generated by Span and Div elements.
1178 + Use span with style for `SmallCaps` (#1360).
1180 * HTML writer:
1182 + Autolinks now have class `uri`, and email autolinks have class
1183 `email`, so they can be styled.
1185 * Docx writer:
1187 + Document formatting is carried over from `reference.docx`.
1188 This includes margins, page size, page orientation, header,
1189 and footer, including images in headers and footers.
1190 + Include abstract (if present) with `Abstract` style (#1451).
1191 + Include subtitle (if present) with `Subtitle` style, rather
1192 than tacking it on to the title (#1451).
1194 * Org writer:
1196 + Write empty span elements with an id attribute as org anchors.
1197 For example `Span ("uid",[],[]) []` becomes `<<uid>>`.
1199 * LaTeX writer:
1201 + Put table captions above tables, to match the conventional
1202 standard. (Previously they appeared below tables.)
1203 + Use `\(..\)` instead of `$..$` for inline math (#1464).
1204 + Use `\nolinkurl` in email autolinks. This allows them to be styled
1205 using `\urlstyle{tt}`. Thanks to Ulrike Fischer for the solution.
1206 + Use `\textquotesingle` for `'` in inline code. Otherwise we get
1207 curly quotes in the PDF output (#1364).
1208 + Use `\footnote<.>{..}` for notes in beamer, so that footnotes
1209 do not appear before the overlays in which their markers appear
1210 (#1525).
1211 + Don't produce a `\label{..}` for a Div or Span element. Do produce
1212 a `\hyperdef{..}` (#1519).
1214 * EPUB writer:
1216 + If the metadata includes `page-progression-direction` (which can be
1217 `ltr` or `rtl`, the `page-progression-direction` attribute will
1218 be set in the EPUB spine (#1455).
1220 * Custom lua writers:
1222 + Custom writers now work with `--template`.
1223 + Removed HTML header scaffolding from `sample.lua`.
1224 + Made citation information available in lua writers.
1226 * `--normalize` and `Text.Pandoc.Shared.normalize` now consolidate
1227 adjacent `RawBlock`s when possible.
1229 [API changes]
1231 * Added `Text.Pandoc.Readers.Docx`, exporting `readDocx` (Jesse Rosenthal).
1233 * Added `Text.Pandoc.Readers.EPUB`, exporting `readEPUB` (Matthew
1234 Pickering).
1236 * Added `Text.Pandoc.Readers.Txt2Tags`, exporting `readTxt2Tags` (Matthew
1237 Pickering).
1239 * Added `Text.Pandoc.Writers.DokuWiki`, exporting `writeDokuWiki`
1240 (Clare Macrae).
1242 * Added `Text.Pandoc.Writers.Haddock`, exporting `writeHaddock`.
1244 * Added `Text.Pandoc.MediaBag`, exporting `MediaBag`, `lookupMedia`,
1245 `insertMedia`, `mediaDirectory`, `extractMediaBag`. The docx and epub
1246 readers return a pair of a `Pandoc` document and a `MediaBag` with
1247 the media resources they contain. This can be extracted using
1248 `--extract-media`. Writers that incorporate media (PDF, Docx,
1249 ODT, EPUB, RTF, or HTML formats with `--self-contained`) will look
1250 for resources in the `MediaBag` generated by the reader, in addition to
1251 the file system or web.
1253 * `Text.Pandoc.Readers.TexMath`: Removed deprecated `readTeXMath`.
1254 Renamed `readTeXMath'` to `texMathToInlines`.
1256 * `Text.Pandoc`: Added `Reader` data type (Matthew Pickering).
1257 `readers` now associates names of readers with `Reader`
1258 structures. This allows inclusion of readers, like the docx
1259 reader, that take binary rather than textual input.
1261 * `Text.Pandoc.Shared`:
1263 + Added `capitalize` (Artyom Kazak), and replaced uses of
1264 `map toUpper` (which give bad results for many languages).
1265 + Added `collapseFilePath`, which removes intermediate `.` and
1266 `..` from a path (Matthew Pickering).
1267 + Added `fetchItem'`, which works like `fetchItem` but searches
1268 a `MediaBag` before looking on the net or file system.
1269 + Added `withTempDir`.
1270 + Added `removeFormatting`.
1271 + Added `extractSpaces` (from HTML reader) and generalized its type
1272 so that it can be used by the docx reader (Matthew Pickering).
1273 + Added `ordNub`.
1274 + Added `normalizeInlines`, `normalizeBlocks`.
1275 + `normalize` is now `Pandoc -> Pandoc` instead of
1276 `Data a :: a -> a`. Some users may need to change their uses of
1277 `normalize` to the newly exported `normalizeInlines` or
1278 `normalizeBlocks`.
1280 * `Text.Pandoc.Options`:
1282 + Added `writerMediaBag` to `WriterOptions`.
1283 + Removed deprecated and no longer used `readerStrict` in
1284 `ReaderOptions`. This is handled by `readerExtensions` now.
1285 + Added `Ext_compact_definition_lists`.
1286 + Added `Ext_epub_html_exts`.
1287 + Added `Ext_native_divs` and `Ext_native_spans`.
1288 This allows users to turn off the default pandoc behavior of
1289 parsing contents of div and span tags in markdown and HTML
1290 as native pandoc Div blocks and Span inlines.
1292 * `Text.Pandoc.Parsing`:
1294 + Generalized `readWith` to `readWithM` (Matthew Pickering).
1295 + Export `runParserT` and `Stream` (Matthew Pickering).
1296 + Added `HasQuoteContext` type class (Matthew Pickering).
1297 + Generalized types of `mathInline`, `smartPunctuation`, `quoted`,
1298 `singleQuoted`, `doubleQuoted`, `failIfInQuoteContext`,
1299 `applyMacros` (Matthew Pickering).
1300 + Added custom `token` (Matthew Pickering).
1301 + Added `stateInHtmlBlock` to `ParserState`. This is used to keep
1302 track of the ending tag we're waiting for when we're parsing inside
1303 HTML block tags.
1304 + Added `stateMarkdownAttribute` to `ParserState`. This is used
1305 to keep track of whether the markdown attribute has been set in
1306 an enclosing tag.
1307 + Generalized type of `registerHeader`, using new type classes
1308 `HasReaderOptions`, `HasIdentifierList`, `HasHeaderMap` (Matthew
1309 Pickering). These allow certain common functions to be reused
1310 even in parsers that use custom state (instead of `ParserState`),
1311 such as the MediaWiki reader.
1312 + Moved `inlineMath`, `displayMath` from Markdown reader to Parsing,
1313 and generalized their types (Matthew Pickering).
1315 * `Text.Pandoc.Pretty`:
1317 + Added `nestle`.
1318 + Added `blanklines`, which guarantees a certain number of blank lines
1319 (and no more).
1321 [bug fixes]
1323 * Markdown reader:
1325 + Fixed parsing of indented code in list items. Indented code
1326 at the beginning of a list item must be indented eight spaces
1327 from the margin (or edge of the container), or four spaces
1328 from the list marker, whichever is greater.
1329 + Fixed small bug in HTML parsing with `markdown_attribute`, which
1330 caused incorrect tag nesting for input like
1331 `<aside markdown="1">*hi*</aside>`.
1332 + Fixed regression with intraword underscores (#1121).
1333 + Improved parsing of inline links containing quote characters (#1534).
1334 + Slight rewrite of `enclosure`/`emphOrStrong` code.
1335 + Revamped raw HTML block parsing in markdown (#1330).
1336 We no longer include trailing spaces and newlines in the
1337 raw blocks. We look for closing tags for elements (but without
1338 backtracking). Each block-level tag is its own `RawBlock`;
1339 we no longer try to consolidate them (though `--normalize` will do so).
1340 + Combine consecutive latex environments. This helps when you have
1341 two minipages which can't have blank lines between them (#690, #1196).
1342 + Support smallcaps through span.
1343 `<span style="font-variant:small-caps;">foo</span>` will be
1344 parsed as a `SmallCaps` inline, and will work in all output
1345 formats that support small caps (#1360).
1346 + Prevent spurious line breaks after list items (#1137). When the
1347 `hard_line_breaks` option was specified, pandoc would formerly
1348 produce a spurious line break after a tight list item.
1349 + Fixed table parsing bug (#1333).
1350 + Handle `c++` and `objective-c` as language identifiers in
1351 github-style fenced blocks (#1318).
1352 + Inline math must have nonspace before final `$` (#1313).
1354 * LaTeX reader:
1356 + Handle comments at the end of tables. This resolves the issue
1357 illustrated in <http://stackoverflow.com/questions/24009489>.
1358 + Correctly handle table rows with too few cells. LaTeX seems to
1359 treat them as if they have empty cells at the end (#241).
1360 + Handle leading/trailing spaces in `\emph` better.
1361 `\emph{ hi }` gets parsed as `[Space, Emph [Str "hi"], Space]`
1362 so that we don't get things like `* hi *` in markdown output.
1363 Also applies to `\textbf` and some other constructions (#1146).
1364 + Don't assume preamble doesn't contain environments (#1338).
1365 + Allow (and discard) optional argument for `\caption` (James Aspnes).
1367 * HTML reader:
1369 + Fixed major parsing problem with HTML tables. Table cells were
1370 being combined into one cell (#1341).
1371 + Fixed performance issue with malformed HTML tables.
1372 We let a `</table>` tag close an open `<tr>` or `<td>` (#1167).
1373 + Allow space between `<col>` and `</col>`.
1374 + Added `audio` and `source` in `eitherBlockOrInline`.
1375 + Moved `video`, `svg`, `progress`, `script`, `noscript`, `svg` from
1376 `blockTags` to `eitherBlockOrInline`.
1377 + `map` and `object` were mistakenly in both lists; they have been removed
1378 from `blockTags`.
1379 + Ignore `DOCTYPE` and `xml` declarations.
1381 * MediaWiki reader:
1383 + Don't parse backslash escapes inside `<source>` (#1445).
1384 + Tightened up template parsing.
1385 The opening `{{` must be followed by an alphanumeric or `:`.
1386 This prevents the exponential slowdown in #1033.
1387 + Support "Bild" for images.
1389 * DocBook reader:
1391 + Better handle elements inside code environments. Pandoc's document
1392 model does not allow structure inside code blocks, but at least this way
1393 we preserve the text (#1449).
1394 + Support `<?asciidoc-br?>` (#1236).
1396 * Textile reader:
1398 + Fixed list parsing. Lists can now start without an intervening
1399 blank line (#1513).
1400 + HTML block-level tags that do not start a line are parsed as
1401 inline HTML and do not interrupt paragraphs (as in RedCloth).
1403 * Org reader:
1405 + Make tildes create inline code (#1345). Also relabeled `code` and
1406 `verbatim` parsers to accord with the org-mode manual.
1407 + Respect `:exports` header argument in code blocks (Craig Bosma).
1408 + Fixed tight lists with sublists (#1437).
1410 * EPUB writer:
1412 + Avoid excess whitespace in `nav.xhtml`. This should improve
1413 TOC view in iBooks (#1392).
1414 + Fixed regression on cover image.
1415 In 1.12.4 and 1.12.4.2, the cover image would not appear properly,
1416 because the metadata id was not correct. Now we derive the id from the
1417 actual cover image filename, which we preserve rather than using
1418 "cover-image."
1419 + Keep newlines between block elements. This allows
1420 easier diff-ability (#1424).
1421 + Use `stringify` instead of custom `plainify`.
1422 + Use `renderTags'` for all tag rendering. This properly handles tags
1423 that should be self-closing. Previously `<hr/>` would appear in EPUB
1424 output as `<hr></hr>` (#1420).
1425 + Better handle HTML media tags.
1426 + Handle multiple dates with OPF `event` attributes. Note: in EPUB3 we
1427 can have only one dc:date, so only the first one is used.
1429 * LaTeX writer:
1431 + Correctly handle figures in notes. Notes can't contain figures in
1432 LaTeX, so we fake it to avoid an error (#1053).
1433 + Fixed strikeout + highlighted code (#1294).
1434 Previously strikeout highlighted code caused an error.
1436 * ConTeXt writer:
1438 + Improved detection of autolinks with URLs containing escapes.
1440 * RTF writer:
1442 + Improved image embedding: `fetchItem'` is now used to get the
1443 images, and calculated image sizes are indicated in the RTF.
1444 + Avoid extra paragraph tags in metadata (#1421).
1446 * HTML writer:
1448 + Deactivate "incremental" inside slide speaker notes (#1394).
1449 + Don't include empty items in the table of contents for
1450 slide shows. (These would result from creating a slide
1451 using a horizontal rule.)
1453 * MediaWiki writer:
1455 + Minor renaming of `st` prefixed names.
1457 * AsciiDoc writer:
1459 + Double up emphasis and strong emphasis markers in intraword
1460 contexts, as required by asciidoc (#1441).
1462 * Markdown writer:
1464 + Avoid wrapping that might start a list, blockquote, or header (#1013).
1465 + Use Span instead of (hackish) `SmallCaps` in `plainify`.
1466 + Don't use braced attributes for fenced code (#1416).
1467 If `Ext_fenced_code_attributes` is not set, the first class
1468 attribute will be printed after the opening fence as a bare word.
1469 + Separate adjacent lists of the same kind with an HTML comment (#1458).
1471 * PDF writer:
1473 + Fixed treatment of data uris for images (#1062).
1475 * Docx writer:
1477 + Use Compact style for empty table cells (#1353).
1478 Otherwise we get overly tall lines when there are empty
1479 table cells and the other cells are compact.
1480 + Create overrides per-image for `media/` in reference docx.
1481 This should be somewhat more robust and cover more types of images.
1482 + Improved `entryFromArchive` to avoid an unneeded parse.
1483 + Section numbering carries over from reference.docx (#1305).
1484 + Simplified `abstractNumId` numbering. Instead of sequential numbering,
1485 we assign numbers based on the list marker styles.
1487 * `Text.Pandoc.Options`:
1489 + Removed `Ext_fenced_code_attributes` from `markdown_github`
1490 extensions.
1492 * `Text.Pandoc.ImageSize`:
1494 + Use default instead of failing if image size not found
1495 in exif header (#1358).
1496 + ignore unknown exif header tag rather than crashing.
1497 Some images seem to have tag type of 256, which was causing
1498 a runtime error.
1500 * `Text.Pandoc.Shared`:
1502 + `fetchItem`: unescape URI encoding before reading local file (#1427).
1503 + `fetchItem`: strip a fragment like `?#iefix` from the extension before
1504 doing mime lookup, to improve mime type guessing.
1505 + Improved logic of `fetchItem`: absolute URIs are fetched from the net;
1506 other things are treated as relative URIs if `sourceURL` is `Just _`,
1507 otherwise as file paths on the local file system.
1508 + `fetchItem` now properly handles links without a protocol (#1477).
1509 + `fetchItem` now escapes characters not allowed in URIs before trying
1510 to parse the URIs.
1511 + Fixed runtime error with `compactify'DL` on certain lists (#1452).
1513 * `pandoc.hs`: Don't strip path off of `writerSourceURL`: the path is
1514 needed to resolve relative URLs when we fetch resources (#750).
1516 * `Text.Pandoc.Parsing`
1518 + Simplified `dash` and `ellipsis` (#1419).
1519 + Removed `(>>~)` in favor of the equivalent `(<*)` (Matthew Pickering).
1520 + Generalized functions to use `ParsecT` (Matthew Pickering).
1521 + Added `isbn` and `pmid` to list of recognized schemes (Matthew
1522 Pickering).
1524 [template changes]
1526 * Added haddock template.
1527 * EPUB3: Added `type` attribute to `link` tags. They are supposed to
1528 be "advisory" in HTML5, but kindlegen seems to require them.
1529 * EPUB3: Put title page in section with `epub:type="titlepage"`.
1530 * LaTeX: Made `\subtitle` work properly (#1327).
1531 * LaTeX/Beamer: remove conditional around date (#1321).
1532 * LaTeX: Added `lot` and `lof` variables, which can be set to
1533 get `\listoftables` and `\listoffigures` (#1407). Note that
1534 these variables can be set at the command line with `-Vlot -Vlof`
1535 or in YAML metadata.
1537 [under the hood improvements]
1539 * Rewrote normalize for efficiency (#1385).
1541 * Rewrote Haddock reader to use `haddock-library` (#1346).
1543 + This brings pandoc's rendering of haddock markup in line
1544 with the new haddock.
1545 + Fixed line breaks in `@` code blocks.
1546 + alex and happy are no longer build-depends.
1548 * Added `Text.Pandoc.Compat.Directory` to allow building against
1549 different versions of the `directory` library.
1551 + Added `Text.Pandoc.Compat.Except` to allow building against
1552 different verions of `mtl`.
1554 * Code cleanup in some writers, using Reader monad to avoid
1555 passing options parameter around (Matej Kollar).
1557 * Improved readability in `pandoc.hs`.
1559 * Miscellaneous code cleanups (Artyom Kazak).
1561 * Avoid `import Prelude hiding (catch)` (#1309, thanks to Michael
1562 Thompson).
1564 * Changed `http-conduit` flag to `https`. Depend on `http-client`
1565 and `http-client-tls` instead of `http-conduit`. (Note: pandoc still
1566 depends on `conduit` via `yaml`.)
1568 * Require `highlighting-kate >= 0.5.8.5` (#1271, #1317, Debian #753299).
1569 This change to highlighting-kate means that PHP fragments no longer need
1570 to start with `<?php`. It also fixes a serious bug causing failures with
1571 ocaml and fsharp.
1573 * Require latest `texmath`. This fixes `\tilde{E}` and allows
1574 `\left` to be used with `]`, `)` etc. (#1319), among many other
1575 improvements.
1577 * Require latest `zip-archive`. This has fixes for unicode path names.
1579 * Added tests for plain writer.
1581 * `Text.Pandoc.Templates`:
1583 + Fail informatively on template syntax errors.
1584 With the move from parsec to attoparsec, we lost good error
1585 reporting. In fact, since we weren't testing for end of input,
1586 malformed templates would fail silently. Here we revert back to
1587 Parsec for better error messages.
1588 + Use `ordNub` (#1022).
1590 * Benchmarks:
1592 + Made benchmarks compile again (Artyom Kazak).
1593 + Fixed so that the failure of one benchmark does not prevent others
1594 from running (Artyom Kazak).
1595 + Use `nfIO` instead of the `getLength` trick to force full evaluation.
1596 + Changed benchmark to use only the test suite, so that benchmarks
1597 run more quickly.
1599 * Windows build script:
1601 + Add `-windows` to file name.
1602 + Use one install command for pandoc, pandoc-citeproc.
1603 + Force install of pandoc-citeproc.
1605 * `make_osx_package`: Call zip file `pandoc-VERSION-osx.zip`.
1606 The zip should not be named `SOMETHING.pkg.zip`, or OSX finder
1607 will extract it into a folder named `SOMETHING.pkg`, which it
1608 will interpret as a defective package (#1308).
1610 * `README`:
1612 + Made headers for all extensions so they have IDs and can be
1613 linked to (Beni Cherniavsky-Paskin).
1614 + Fixed typos (Phillip Alday).
1615 + Fixed documentation of attributes (#1315).
1616 + Clarified documentation on small caps (#1360).
1617 + Better documentation for `fenced_code_attributes` extension
1618 (Caleb McDaniel).
1619 + Documented fact that you can put YAML metadata in a separate file
1620 (#1412).
1623pandoc (1.12.4.2)
1625 * Require highlighting-kate >= 0.5.8. Fixes a performance regression.
1627 * Shared: `addMetaValue` now behaves slightly differently:
1628 if both the new and old values are lists, it concatenates their
1629 contents to form a new list.
1631 * LaTeX reader:
1633 + Set `bibliography` in metadata from `\bibliography` or
1634 `\addbibresource` command.
1635 + Don't error on `%foo` with no trailing newline.
1637 * Org reader:
1639 + Support code block headers (`#+BEGIN_SRC ...`) (Albert Krewinkel).
1640 + Fix parsing of blank lines within blocks (Albert Krewinkel).
1641 + Support pandoc citation extension (Albert Krewinkel). This can
1642 be turned off by specifying `org-citations` as the input format.
1644 * Markdown reader:
1646 + `citeKey` moved to `Text.Pandoc.Parsing` so it can be used by
1647 other readers (Albert Krewinkel).
1649 * `Text.Pandoc.Parsing`:
1651 + Added `citeKey` (see above).
1652 + Added `HasLastStrPosition` type class and `updateLastStrPos`
1653 and `notAfterString` functions.
1655 * Updated copyright notices (Albert Krewinkel).
1657 * Added default.icml to data files so it installs with the package.
1659 * OSX package:
1661 + The binary is now built with options to ensure that it can be
1662 used with OSX 10.6+.
1663 + Moved OSX package materials to osx directory.
1664 + Added OSX package uninstall script, included in the zip container
1665 (thanks to Daniel T. Staal).
1667pandoc (1.12.4)
1669 * Made it possible to run filters that aren't executable (#1096).
1670 Pandoc first tries to find the executable (searching the path
1671 if path isn't given). If it fails, but the file exists and has
1672 a `.py`, `.pl`, `.rb`, `.hs`, or `.php` extension, pandoc runs the filter
1673 using the appropriate interpreter. This should make it easier to
1674 use filters on Windows, and make it more convenient for everyone.
1676 * Added Emacs org-mode reader (Albert Krewinkel).
1678 * Added InDesign ICML Writer (mb21).
1680 * MediaWiki reader:
1682 + Accept image links in more languages (Jaime Marquínez Ferrándiz).
1683 + Fixed bug in certain nested lists (#1213). If a level 2 list was
1684 followed by a level 1 list, the first item of the level 1 list
1685 would be lost.
1686 + Handle table rows containing just an HTML comment (#1230).
1688 * LaTeX reader:
1690 + Give better location information on errors, pointing to line
1691 numbers within included files (#1274).
1692 + LaTeX reader: Better handling of `table` environment (#1204).
1693 Positioning options no longer rendered verbatim.
1694 + Better handling of figure and table with caption (#1204).
1695 + Handle `@{}` and `p{length}` in tabular. The length is not actually
1696 recorded, but at least we get a table (#1180).
1697 + Properly handle `\nocite`. It now adds a `nocite` metadata
1698 field. Citations there will appear in the bibliography but not
1699 in the text (unless you explicitly put a `$nocite$` variable
1700 in your template).
1702 * Markdown reader:
1704 + Ensure that whole numbers in YAML metadata are rendered without
1705 decimal points. (This became necessary with changes to aeson
1706 and yaml libraries. aeson >= 0.7 and yaml >= 0.8.8.2 are now required.)
1707 + Fixed regression on line breaks in strict mode (#1203).
1708 + Small efficiency improvements.
1709 + Improved parsing of nested `div`s. Formerly a closing `div` tag
1710 would be missed if it came right after other block-level tags.
1711 + Avoid backtracking when closing `</div>` not found.
1712 + Fixed bug in reference link parsing in `markdown_mmd`.
1713 + Fixed a bug in list parsing (#1154). When reading a raw list
1714 item, we now strip off up to 4 spaces.
1715 + Fixed parsing of empty reference link definitions (#1186).
1716 + Made one-column pipe tables work (#1218).
1718 * Textile reader:
1720 + Better support for attributes. Instead of being ignored, attributes
1721 are now parsed and included in Span inlines. The output will be a bit
1722 different from stock textile: e.g. for `*(foo)hi*`, we'll get
1723 `<em><span class="foo">hi</span></em>` instead of
1724 `<em class="foo">hi</em>`. But at least the data is not lost.
1725 + Improved treatment of HTML spans (%) (#1115).
1726 + Improved link parsing. In particular we now pick up on attributes.
1727 Since pandoc links can't have attributes, we enclose the whole link in
1728 a span if there are attributes (#1008).
1729 + Implemented correct parsing rules for inline markup (#1175, Matthew
1730 Pickering).
1731 + Use Builder (Matthew Pickering).
1732 + Fixed list parsing bug (#1500).
1733 + Don't allow inline formatting to extend over newlines.
1734 This matches the behavior of RedCarpet, avoids some ugly bugs,
1735 and improves performance.
1737 * DocBook reader:
1739 + Better treatment of `formalpara`. We now emit the title (if present)
1740 as a separate paragraph with boldface text (#1215).
1741 + Set metadata `author` not `authors`.
1742 + Added recognition of `authorgroup` and `releaseinfo` elements (#1214,
1743 Matthew Pickering).
1744 + Converted current meta information parsing in DocBook to a more
1745 extensible version which is aware of the more recent meta
1746 representation (Matthew Pickering).
1748 * HTML reader:
1750 + Require tagsoup 0.13.1, to fix a bug with parsing of script tags
1751 (#1248).
1752 + Treat processing instructions & declarations as block. Previously
1753 these were treated as inline, and included in paragraph tags in HTML
1754 or DocBook output, which is generally not what is wanted (#1233).
1755 + Updated `closes` with rules from HTML5 spec.
1756 + Use Builder (Matthew Pickering, #1162).
1758 * RST reader:
1760 + Remove duplicate `http` in PEP links (Albert Krewinkel).
1761 + Make rst figures true figures (#1168, CasperVector)
1762 + Enhanced Pandoc's support for rST roles (Merijn Verstaaten).
1763 rST parser now supports: all built-in rST roles, new role definition,
1764 role inheritance, though with some limitations.
1765 + Use `author` rather than `authors` in metadata.
1766 + Better handling of directives. We now correctly handle field
1767 lists that are indented more than three spaces. We treat an
1768 `aafig` directive as a code block with attributes, so it can be
1769 processed in a filter (#1212).
1771 * LaTeX writer:
1773 + Mark span contents with label if span has an ID (Albert Krewinkel).
1774 + Made `--toc-depth` work well with books in latex/pdf output (#1210).
1775 + Handle line breaks in simple table cells (#1217).
1776 + Workaround for level 4-5 headers in quotes. These previously produced
1777 invalid LaTeX: `\paragraph` or `\subparagraph` in a `quote` environment.
1778 This adds an `mbox{}` in these contexts to work around the problem.
1779 See <http://tex.stackexchange.com/a/169833/22451> (#1221).
1780 + Use `\/` to avoid en-dash ligature instead of `-{}-` (Vaclav Zeman).
1781 This is to fix LuaLaTeX output. The `-{}-` sequence does not avoid the
1782 ligature with LuaLaTeX but `\/` does.
1783 + Fixed string escaping in `hyperref` and `hyperdef` (#1130).
1785 * ConTeXt writer: Improved autolinks (#1270).
1787 * DocBook writer:
1789 + Improve handling of hard line breaks in Docbook writer
1790 (Neil Mayhew). Use a `<literallayout>` for the entire paragraph, not
1791 just for the newline character.
1792 + Don't let line breaks inside footnotes influence the enclosing
1793 paragraph (Neil Mayhew).
1794 + Distinguish tight and loose lists in DocBook output, using
1795 `spacing="compact"` (Neil Mayhew, #1250).
1797 * Docx writer: When needed files are not present in the user's
1798 `reference.docx`, fall back on the versions in the `reference.docx`
1799 in pandoc's data files. This fixes a bug that occurs when a
1800 `reference.docx` saved by LibreOffice is used. (#1185)
1802 * EPUB writer:
1804 + Include extension in epub ids. This fixes a problem with duplicate
1805 extensions for fonts and images with the same base name but different
1806 extensions (#1254).
1807 + Handle files linked in raw `img` tags (#1170).
1808 + Handle media in `audio` source tags (#1170).
1809 Note that we now use a `media` directory rather than `images`.
1810 + Incorporate files linked in `video` tags (#1170). `src` and `poster`
1811 will both be incorporated into `content.opf` and the epub container.
1813 * HTML writer:
1815 + Add colgroup around col tags (#877). Also affects EPUB writer.
1816 + Fixed bug with unnumbered section headings. Unnumbered section
1817 headings (with class `unnumbered`) were getting numbers.
1818 + Improved detection of image links. Previously image links with
1819 queries were not recognized, causing `<embed>` to be used instead
1820 of `<img>`.
1822 * Man writer: Ensure that terms in definition lists aren't line wrapped
1823 (#1195).
1825 * Markdown writer:
1827 + Use proper escapes to avoid unwanted lists (#980). Previously we used
1828 0-width spaces, an ugly hack.
1829 + Use longer backtick fences if needed (#1206). If the content contains a
1830 backtick fence and there are attributes, make sure longer fences are
1831 used to delimit the code. Note: This works well in pandoc, but github
1832 markdown is more limited, and will interpret the first string of three
1833 or more backticks as ending the code block.
1835 * RST writer: Avoid stack overflow with certain tables (#1197).
1837 * RTF writer: Fixed table cells containing paragraphs.
1839 * Custom writer:
1841 + Correctly handle UTF-8 in custom lua scripts (#1189).
1842 + Fix bugs with lua scripts with mixed-case filenames and
1843 paths containing `+` or `-` (#1267). Note that `getWriter`
1844 in `Text.Pandoc` no longer returns a custom writer on input
1845 `foo.lua`.
1847 * AsciiDoc writer: Handle multiblock and empty table cells
1848 (#1245, #1246). Added tests.
1850 * `Text.Pandoc.Options`: Added `readerTrace` to `ReaderOptions`
1852 * `Text.Pandoc.Shared`:
1854 + Added `compactify'DL` (formerly in markdown reader) (Albert Krewinkel).
1855 + Fixed bug in `toRomanNumeral`: numbers ending with '9' would
1856 be rendered as Roman numerals ending with 'IXIV' (#1249). Thanks to
1857 Jesse Rosenthal.
1858 + `openURL`: set proxy with value of http_proxy env variable (#1211).
1859 Note: proxies with non-root paths are not supported, due to
1860 limitations in `http-conduit`.
1862 * `Text.Pandoc.PDF`:
1864 + Ensure that temp directories deleted on Windows (#1192). The PDF is
1865 now read as a strict bytestring, ensuring that process ownership will
1866 be terminated, so the temp directory can be deleted.
1867 + Use `/` as path separators in a few places, even on Windows.
1868 This seems to be necessary for texlive (#1151, thanks to Tim Lin).
1869 + Use `;` for `TEXINPUTS` separator on Windows (#1151).
1870 + Changes to error reporting, to handle non-UTF8 error output.
1872 * `Text.Pandoc.Templates`:
1874 + Removed unneeded datatype context (Merijn Verstraaten).
1876 + YAML objects resolve to "true" in conditionals (#1133).
1877 Note: If `address` is a YAML object and you just have `$address$`
1878 in your template, the word `true` will appear, which may be
1879 unexpected. (Previously nothing would appear.)
1881 * `Text.Pandoc.SelfContained`:
1883 + `mkSelfContained` now takes just two arguments, `WriterOptions` and
1884 the string.
1885 * It no longer looks in data files. This only made sense when we
1886 had copies of slidy and S5 code there.
1887 * `fetchItem'` is used instead of the nearly duplicate `getItem`.
1888 + Handle `poster` attribute in `video` tags (#1188).
1890 * `Text.Pandoc.Parsing`:
1892 + Made `F` an instance of Applicative (#1138).
1893 + Added `stateCaption`.
1894 + Added `HasMacros`, simplified other typeclasses.
1895 Removed `updateHeaderMap`, `setHeaderMap`, `getHeaderMap`,
1896 `updateIdentifierList`, `setIdentifierList`, `getIdentifierList`.
1897 + Changed the smart punctuation parser to return `Inlines`
1898 rather than `Inline` (Matthew Pickering).
1899 + Changed `HasReaderOptions`, `HasHeaderMap`, `HasIdentifierList`
1900 from typeclasses of monads to typeclasses of states. This simplifies
1901 the instance definitions and provides more flexibility. Generalized
1902 type of `getOption` and added a default definition. Removed
1903 `askReaderOption`. Added `extractReaderOption`. Added
1904 `extractHeaderMap` and `updateHeaderMap` in `HasHeaderMap`.
1905 Gave default definitions for `getHeaderMap`, `putHeaderMap`,
1906 `modifyHeaderMap`. Added `extractIdentifierList` and
1907 `updateIdentifierList` in `HasIdentifierList`. Gave defaults
1908 for `getIdentifierList`, `putIdentifierList`, and
1909 `modifyIdentifierList`. The ultimate goal here is to allow different
1910 parsers to use their own, tailored parser states (instead of
1911 `ParserState`) while still using shared functions.
1913 * Template changes:
1915 + LaTeX template: Use `fontenc` package only with `pdflatex` (#1164).
1916 + LaTeX template: Add `linestretch` and `fontfamily` variables.
1917 + LaTeX template: Conditionalize author and date commands.
1918 + Beamer template: Consistent styles for figure and table captions
1919 (aaronwolen).
1920 + LaTeX and beamer template: Adjust widths correctly for oversized
1921 images. Use `\setkeys{Gin}{}` to set appropriate defaults for
1922 `\includegraphics` (Yihui Xie, Garrick Aden-Buie). Load
1923 `upquote` only after `fontenc` (Yihui Xie).
1924 + Beamer template: Added caption package (#1200).
1925 + Beamer template: changes for better unicode handling (KarolS).
1926 + DocBook template: use `authorgroup` if there are authors.
1927 + revealjs template: Move `include-after` to end (certainlyakey).
1928 + revealjs template: Fixed PDF print function (#1220, kevinkenan).
1930 * Bumped version bounds of dependencies.
1932 * Added a `--trace` command line option, for debugging backtracking
1933 bugs. So far this only works with the markdown reader.
1935 * MathMLinHTML: Fixed deprecation warning (#362, gwern, Albert Krewinkel).
1937 * Updated travis script to test with multiple GHC versions.
1939 * Force failure of a Travis build if GHC produces warnings (Albert
1940 Krewinkel).
1942 * Add `.editorconfig` (Albert Krewinkel).
1943 See <http://editorconfig.org/> for details.
1945 * Give more useful error message if '-t pdf' is specified (#1155).
1947 * Added `Cite`, `SmallCaps` to `Arbitrary` instance (#1269).
1949 * Allow `html4` as a synonym of `html` as a reader (it already works
1950 as a writer).
1952 * README:
1954 + Added an explanation of how to use YAML metadata to
1955 force items to appear in the bibliography without citations in
1956 the text (like LaTeX `\nocite`).
1957 + Added note to `--bibtex/--natbib`: not for use in making PDF
1958 (#1194, thanks to nahoj).
1959 + Added explanatory notes about `--natbib` and `--biblatex`.
1960 + Added specification of legal syntax for citation keys.
1961 + Fixed variable defaults documentation (Albert Krewinkel).
1963 * Removed copyright statements for files that have been removed
1964 (Albert Krewinkel).
1966 * Moved some doc files from `data-files` to `extra-source-files` (#1123).
1967 They aren't needed at runtime. We keep README and COPYRIGHT in data
1968 to ensure that they'll be available on all systems on which pandoc
1969 is installed.
1971 * Use cabal sandboxes in Windows build script.
1973pandoc (1.12.3.3)
1975 * To changes to source; recompiled tarball with latest alex and
1976 happy, so they will work with GHC 7.8.
1978pandoc (1.12.3.2)
1980 * Bumped version bounds for blaze-html, blaze-markup.
1982 * ImageSize: Avoid use of lookAhead, which is not in binary >= 0.6
1983 (#1124).
1985 * Fixed mediawiki ordered list parsing (#1122).
1987 * HTML reader: Fixed bug reading inline math with `$$` (#225).
1989 * Added support for LaTeX style literate Haskell code blocks in rST
1990 (Merijn Verstraaten).
1992pandoc (1.12.3.1)
1994 * Relaxed version constraint on binary, allowing the use of binary 0.5.
1996pandoc (1.12.3)
1998 * The `--bibliography` option now sets the `biblio-files` variable.
1999 So, if you're using `--natbib` or `--biblatex`, you can just use
2000 `--bibliography=foo.bib` instead of `-V bibliofiles=foo`.
2002 * Don't run pandoc-citeproc filter if `--bibliography` is
2003 used together with `--natbib` or `--biblatex` (Florian Eitel).
2005 * Template changes:
2007 + Updated beamer template to include booktabs.
2008 + Added `abstract` variable to LaTeX template.
2009 + Put `header-includes` after `title` in LaTeX template (#908).
2010 + Allow use of `\includegraphics[size]` in beamer.
2011 This just required porting a macro definition from the default
2012 LaTeX template to the default beamer template.
2014 * `reference.docx`: Include `FootnoteText` style.
2015 Otherwise Word ignores the style, even when specified in the `pPr`.
2016 (#901)
2018 * `reference.odt`: Tidied `styles.xml`.
2020 * Relaxed version bounds for dependencies.
2022 * Added `withSocketsDo` around http conduit code in `openURL`,
2023 so it works on Windows (#1080).
2025 * Added `Cite` function to `sample.lua`.
2027 * Markdown reader:
2029 + Fixed regression in title blocks (#1089).
2030 If author field was empty, date was being ignored.
2031 + Allow backslash-newline hard line breaks in grid and
2032 multiline table cells.
2033 + Citation keys may now start with underscores, and may contain
2034 underscores adjacent to internal punctuation.
2036 * LaTeX reader:
2038 + Add support for `Verb` macro (jrnold) (#1090).
2039 + Support babel-style quoting: `` "`..."' ``.
2041 * Properly handle script blocks in strict mode. (That is,
2042 `markdown-markdown_in_html_blocks`.) Previously a spurious
2043 `<p>` tag was being added (#1093).
2045 * Docbook reader: Avoid failure if `tbody` contains no `tr` or `row`
2046 elements.
2048 * LaTeX writer:
2050 + Factored out function for table cell creation.
2051 + Better treatment of footnotes in tables.
2052 Notes now appear in the regular sequence, rather than in the
2053 table cell. (This was a regression in 1.10.)
2055 * HTML reader: Parse name/content pairs from meta tags as metadata.
2056 Closes #1106.
2058 * Moved `fixDisplayMath` from Docx writer to `Writer.Shared`.
2060 * OpenDocument writer: Fixed `RawInline`, `RawBlock` so they don't escape.
2062 * ODT writer: Use mathml for proper rendering of formulas.
2063 Note: LibreOffice's support for this seems a bit buggy. But
2064 it should be better than what we had before.
2066 * RST writer: Ensure no blank line after def in definition list (#992).
2068 * Markdown writer: Don't use tilde code blocks with braced attributes in
2069 `markdown_github` output. A consequence of this change is that the
2070 backtick form will be preferred in general if both are enabled. That
2071 is good, as it is much more widespread than the tilde form. (#1084)
2073 * Docx writer: Fixed problem with some modified reference docx files.
2074 Include `word/_rels/settings.xml.rels` if it exists, as well as other
2075 `rels` files besides the ones pandoc generates explicitly.
2077 * HTML writer:
2079 + With `--toc`, headers no longer link to themselves (#1081).
2080 + Omit footnotes from TOC entries. Otherwise we get doubled
2081 footnotes when headers have notes!
2083 * EPUB writer:
2085 + Avoid duplicate notes when headings contain notes.
2086 This arose because the headings are copied into the metadata
2087 "title" field, and the note gets rendered twice. We strip the
2088 note now before putting the heading in "title".
2089 + Strip out footnotes from toc entries.
2090 + Fixed bug with `--epub-stylesheet`. Now the contents of
2091 `writerEpubStylesheet` (set by `--epub-stylesheet`)
2092 should again work, and take precedence over a stylesheet specified
2093 in the metadata.
2095 * `Text.Pandoc.MIME`: Added `wmf`, `emf`.
2097 * `Text.Pandoc.Shared`: `fetchItem` now handles image URLs beginning
2098 with `//`.
2100 * `Text.Pandoc.ImageSize`: Parse EXIF format JPEGs. Previously
2101 we could only get size information for JFIF format, which led
2102 to squished images in Word documents. Closes #976.
2104 * Removed old `MarkdownTest_1.0.3` directory (#1104).
2106pandoc (1.12.2.1)
2108 * Markdown reader: Fixed regression in list parser, involving
2109 continuation lines containing raw HTML (or even verbatim raw HTML).
2111pandoc (1.12.2)
2113 * Metadata may now be included in YAML blocks in a markdown document.
2114 For example,
2116 ---
2117 title:
2118 - type: main
2119 text: My Book
2120 - type: subtitle
2121 text: An investigation of metadata
2122 creator:
2123 - role: author
2124 text: John Smith
2125 - role: editor
2126 text: Sarah Jones
2127 identifier:
2128 - scheme: DOI
2129 text: doi:10.234234.234/33
2130 publisher: My Press
2131 rights: (c) 2007 John Smith, CC BY-NC
2132 cover-image: img/mypic.jpg
2133 ...
2135 Metadata may still be provided using `--epub-metadata`; it will
2136 be merged with the metadata in YAML blocks.
2138 * EPUB writer:
2140 + `meta` tags are now used instead of `opf` attributes for EPUB3.
2141 + Insert "svg" property as needed in opf (EPUB 3).
2142 + Simplify `imageTypeOf` using `getMimeType`.
2143 + Add properties attribute to `cover-image` item for EPUB 3.
2144 + Don't include node for `cover.xhtml` if no cover!
2145 + Ensure that same identifier is used throughout (#1044).
2146 If an identifier is given in metadata, we use that; otherwise
2147 we generate a random uuid.
2148 + Add cover reference to guide element (EPUB 2) (Shaun Attfield).
2149 Fixes an issue with Calibre putting the cover at the end of the book
2150 if the spine has `linear="no"`. Apparently this is best practice
2151 for other converters as well:
2152 <http://www.idpf.org/epub/20/spec/OPF_2.0.1_draft.htm#Section2.6>.
2153 + Allow `stylesheet` in metadata. The value is a path to the stylesheet.
2154 + Allow partial dates: `YYYY`, `YYYY-MM`.
2156 * Markdown writer: Fix rendering of tight sublists (#1050).
2157 Previously a spurious blank line was included after a tight sublist.
2159 * ODT writer: Add `draw:name` attribute to `draw:frame` elements (#1069).
2160 This is reported to be necessary to avoid an error from recent
2161 versions of Libre Office when files contain more than one image
2162 Thanks to wmanley for reporting and diagnosing the problem.
2164 * ConTeXt writer: Don't hardcode figure/table placement and numbering.
2165 Instead, let this be set in the template, using `\setupfloat`.
2166 Thanks to on4aa and Aditya Mahajan for the suggestion (#1067).
2168 * Implemented CSL flipflopping spans in DOCX, LaTeX, and HTML writers.
2170 * Fixed bug with markdown intraword emphasis. Closes #1066.
2172 * Docbook writer: Hierarchicalize block content in metadata.
2173 Previously headers just disappeared from block-level metadata
2174 when it was used in templates. Now we apply the 'hierarchicalize'
2175 transformation. Note that a block headed by a level-2 header will
2176 turn into a `<sect1>` element.
2178 * OpenDocument writer: Skip raw HTML (#1035).
2179 Previously it was erroneously included as verbatim text.
2181 * HTML/EPUB writer, footnotes: Put `<sup>` tag inside `<a>` tags.
2182 This allows better control of formatting, since the `<a>`
2183 tags have a distinguishing class (#1049).
2185 * Docx writer:
2187 + Use mime type info returned by fetchItem.
2188 + Fixed core metadata (#1046).
2189 Don't create empty date nodes if no date given.
2190 Don't create multiple `dc:creator` nodes; instead separate by
2191 semicolons.
2192 + Fix URL for core-properties in `_rels/.rels` (#1046).
2194 * Plain writer: don't print `<span>` tags.
2196 * LaTeX writer:
2198 + Fix definition lists with internal links in terms (#1032).
2199 This fix puts braces around a term that contains an internal
2200 link, to avoid problems with square brackets.
2201 + Properly escape pdftitle, pdfauthor (#1059).
2202 + Use booktabs package for tables (thanks to Jose Luis Duran).
2204 * Updated beamer template. Now references should work properly
2205 (in a slide) when `--biblatex` or `--natbib` is used.
2207 * LaTeX reader:
2209 + Parse contents of curly quotes or matched `"` as quotes.
2210 + Support `\textnormal` as span with class `nodecor`.
2211 This is needed for pandoc-citeproc.
2212 + Improved citation parsing. This fixes a run-time error that occured
2213 with `\citet{}` (empty list of keys). It also ensures that empty keys
2214 don't get produced.
2216 * MediaWiki reader: Add automatic header identifiers.
2218 * HTML reader:
2220 + Use pandoc `Div` and `Span` for raw `<div>`, `<span>` when
2221 `--parse-raw`.
2222 + Recognize `svg` tags as block level content (thanks to MinRK).
2223 + Parse LaTeX math if appropriate options are set.
2225 * Markdown reader:
2227 + Yaml block must start immediately after `---`. If there's a blank
2228 line after `---`, we interpreted it as a horizontal rule.
2229 + Correctly handle empty bullet list items.
2230 + Stop parsing "list lines" when we hit a block tag.
2231 This fixes exponential slowdown in certain input, e.g.
2232 a series of lists followed by `</div>`.
2234 * Slides: Preserve `<div class="references">` in references slide.
2236 * `Text.Pandoc.Writer.Shared`:
2238 + Fixed bug in `tagWithAttrs`. A space was omitted before key-value
2239 attributes, leading to invalid HTML.
2240 + `normalizeDate`: Allow dates with year only (thanks to Shaun Attfield).
2241 + Fixed bug in `openURL` with `data:` URIs. Previously the base-64
2242 encoded bytestring was returned. We now decode it so it's a proper
2243 image!
2245 * DocBook reader: Handle numerical attributes starting with decimal.
2246 Also use `safeRead` instead of `read`.
2248 * `Text.Pandoc.Readers.TexMath`: Export `readTeXMath'`, which attends
2249 to display/inline. Deprecate `readTeXMath`, and use `readTeXMath'`
2250 in all the writers. Require `texmath >= 0.6.5.2`.
2252 * `Text.Pandoc.MIME`:
2254 + Add entry for `jfif`.
2255 + In looking up extensions, drop the encoding info.
2256 E.g. for 'image/jpg;base64' we should lookup 'image/jpg'.
2258 * Templates: Changed how array variables are resolved. Previously if
2259 `foo` is an array (which might be because multiple values were set on
2260 the command line), `$foo$` would resolve to the concatenation of the
2261 elements of foo. This is rarely useful behavior. It has been changed
2262 so that the first value is rendered. Of course, you can still iterate
2263 over the values using `$for(foo)$`. This has the result that you can
2264 override earlier settings using `-V` by putting new values later on the
2265 command line, which is useful for many purposes.
2267 * `Text.Pandoc`: Don't default to `pandocExtensions` for all writers.
2269 * Allow "epub2" as synonym for "epub", "html4" for "html".
2271 * Don't look for slidy files in data files with `--self-contained`.
2273 * Allow `https:` command line arguments to be downloaded.
2275 * Fixed `make_osx_package.sh` so data files embedded in `pandoc-citeproc`.
2277pandoc (1.12.1)
2279 * `Text.Pandoc.Definition`: Changed default JSON serialization format.
2280 Instead of `{"Str": "foo"}`, for example, we now have `{"t": "Str",
2281 "c": "foo"}`. This new format is easier to work with outside of Haskell.
2282 Incidentally, "t" stands for "tag", "c" for "contents".
2284 * MediaWiki reader: Trim contents of `<math>` tags, to avoid problems
2285 when converting to markdown (#1027).
2287 * LaTeX reader:
2289 + Ensure that preamble doesn't contribute to the text of
2290 the document.
2291 + Fixed character escaping in \url{}. Previously `\~` wasn't handled
2292 properly, among others.
2293 + Parse `{groups}` as `Span`. This is needed for accurate conversion of
2294 bibtex titles, since we need to know what was protected from
2295 titlecase conversions.
2297 * LaTeX writer:
2299 + Specially escape non-ascii characters in labels.
2300 Otherwise we can get compile errors and other bugs when
2301 compiled with pdflatex (#1007). Thanks to begemotv2718 for the fix.
2302 + Add link anchors for code blocks with identifiers (#1025).
2304 * Throughout the code, use `isURI` instead of `isAbsoluteURI`.
2305 It allows fragments identifiers.
2307 * Slide formats:
2309 + A Div element with class "notes" is treated as speaker
2310 notes. Currently beamer goes to `\note{}`, revealjs to
2311 `<aside class="notes">`, and the notes are simply suppressed in
2312 other formats (#925).
2313 + Fixed `. . .` (pause) on HTML slide formats. Closes #1029.
2314 The old version caused a pause to be inserted before the first
2315 material on a slide. This has been fixed.
2316 + Removed data files for s5, slideous, slidy.
2317 Users of s5 and slideous will have to download the needed
2318 files, as has been documented for some time in the README.
2319 By default, slidy code will be sought on the web, as before.
2321 * HTML writer: Insert command to typeset mathjax only in slideous output
2322 (#966, #1012).
2324 * RST writer: Skip spaces after display math. Otherwise we get indentation
2325 problems, and part of the next paragraph may be rendered as part of the
2326 math.
2328 * OpenDocument writer: Fix formatting of strikeout code (#995),
2329 thanks to wilx. don't use `font-face-decls` variable.
2331 * Fixed test suite so it works with cabal sandboxes.
2333pandoc (1.12.0.2)
2335 * Removed `stringable` dependency.
2337pandoc (1.12.0.1)
2339 * Allow `--metadata` to be repeated for the same key to form a list.
2340 This also has the effect that `--bibliography` can be repeated,
2341 as before.
2343 * Handle boolean values in `--metadata`. Note that anything not parseable
2344 as a YAML boolean or string is treated as a literal string.
2345 You can get a string value with "yes", or any of the strings interpretable
2346 as booleans, by quoting it:
2348 -M boolvalue=yes -M stringvalue='"yes"'
2350 * LaTeX writer: Don't print references if `--natbib` or `--biblatex`
2351 option used.
2353 * DOCX writer: Add `settings.xml` to the zip container. Fixes a bug
2354 in which docx files could not be read by some versions of Word
2355 and LibreOffice (#990).
2357 * Fixed a regression involving slide shows with bibliographies.
2358 The Div container around references messed up the procedure for carving
2359 a document into slides. So we now remove the surrounding Div in
2360 `prepSlides`.
2362 * More informative error message when a filter is not found in path.
2364 * Depend on pandoc-types 1.12.1. This provide `ToJSONFilter`
2365 instances for `Data a => a -> [a]` and `Data a => a -> IO [a]`.
2367 * Don't use unicode_collation in building OSX package:
2368 it adds something like 50MB of dependencies to the package.
2370 * Declare alex and happy as build-tools (#986).
2372pandoc (1.12)
2374 [new features]
2376 * Much more flexible metadata, including arbitrary fields and structured
2377 values. Metadata can be specified flexibly in pandoc markdown using
2378 YAML metadata blocks, which may occur anywhere in the document:
2380 ---
2381 title: Here is my title.
2382 abstract: |
2383 This is the abstract.
2385 1. It can contain
2386 2. block content
2387 and *inline markup*
2389 tags: [cat, dog, animal]
2390 ...
2392 Metadata fields automatically populate template variables.
2394 * Added `opml` (OPML) as input and output format. The `_note` attribute,
2395 used in OmniOutliner and supported by multimarkdown, is supported.
2396 We treat the contents as markdown blocks under a section header.
2398 * Added `haddock` (Haddock markup) as input format (David Lazar).
2400 * Added `revealjs` output format, for reveal.js HTML 5 slide shows.
2401 (Thanks to Jamie F. Olson for the initial patch.)
2402 Nested vertical stacks are used for hierarchical structure.
2403 Results for more than one level of nesting may be odd.
2405 * Custom writers can now be written in lua.
2407 pandoc -t data/sample.lua
2409 will load the script sample.lua and use it as a custom writer.
2410 (For a sample, do `pandoc --print-default-data-file sample.lua`.)
2411 Note that pandoc embeds a lua interpreter, so lua need not be
2412 installed separately.
2414 * New `--filter/-F` option to make it easier to run "filters"
2415 (Pandoc AST transformations that operate on JSON serializations).
2416 Filters are always passed the name of the output format, so their
2417 behavior can be tailored to it. The repository
2418 <https://github.com/jgm/pandocfilters> contains
2419 a python module for writing pandoc filters in python, with
2420 a number of examples.
2422 * Added `--metadata/-M` option.
2423 This is like `--variable/-V`, but actually adds to metadata, not
2424 just variables.
2426 * Added `--print-default-data-file` option, which allows printing
2427 of any of pandoc's data files. (For example,
2428 `pandoc --print-default-data-file reference.odt` will print
2429 `reference.odt`.)
2431 * Added syntax for "pauses" in slide shows:
2433 This gives
2435 . . .
2437 me pause.
2439 * New markdown extensions:
2441 + `ignore_line_breaks`: causes intra-paragraph line breaks to be ignored,
2442 rather than being treated as hard line breaks or spaces. This is useful
2443 for some East Asian languages, where spaces aren't used between words,
2444 but text is separated into lines for readability.
2445 + `yaml_metadata_block`: Parse YAML metadata blocks. (Default.)
2446 + `ascii_identifiers`: This will force `auto_identifiers` to use ASCII
2447 only. (Default for `markdown_github`.) (#807)
2448 + `lists_without_preceding_blankline`: Allow lists to start without
2449 preceding blank space. (Default for `markdown_github`.) (#972)
2451 [behavior changes]
2453 * `--toc-level` no longer implies `--toc`.
2454 Reason: EPUB users who don't want a visible TOC may still want
2455 to set the TOC level for in the book navigation.
2457 * `--help` now prints in and out formats in alphabetical order, and
2458 says something about PDF output (#720).
2460 * `--self-contained` now returns less verbose output (telling you
2461 which URLs it is fetching, but not giving the full header). In
2462 addition, there are better error messages when fetching a URL fails.
2464 * Citation support is no longer baked in to core pandoc. Users who
2465 need citations will need to install and use a separate filter
2466 (`--filter pandoc-citeproc`). This filter will take `bibliography`,
2467 `csl`, and `citation-abbreviations` from the metadata, though it
2468 may still be specified on the command line as before.
2470 * A `Cite` element is now created in parsing markdown whether or not
2471 there is a matching reference.
2473 * The `pandoc-citeproc` script will put the bibliography at the
2474 end of the document, as before. However, it will be put inside a `Div`
2475 element with class "references", allowing users some control
2476 over the styling of references. A final header, if any, will
2477 be included in the `Div`.
2479 * The markdown writer will not print a bibliography if the
2480 `citations` extension is enabled. (If the citations are formatted
2481 as markdown citations, it is redundant to have a bibliography,
2482 since one will be generated automatically.)
2484 * Previously we used to store the directory of the first input file,
2485 even if it was local, and used this as a base directory for finding
2486 images in ODT, EPUB, Docx, and PDF. This has been confusing to many
2487 users. So we now look for images relative to the current
2488 working directory, even if the first file argument is in another
2489 directory. Note that this change may break some existing workflows.
2490 If you have been assuming that relative links will be interpreted
2491 relative to the directory of the first file argument, you'll need
2492 to make that the current directory before running pandoc. (#942)
2494 * Better error reporting in some readers, due to changes in `readWith`:
2495 the line in which the error occured is printed, with a caret pointing
2496 to the column.
2498 * All slide formats now support incremental slide view for definition lists.
2500 * Parse `\(..\)` and `\[..\]` as math in MediaWiki reader.
2501 Parse `:<math>...</math>` as display math. These notations are used with
2502 the MathJax MediaWiki extension.
2504 * All writers: template variables are set automatically from metadata
2505 fields. However, variables specified on the command line with
2506 `--variable` will completely shadow metadata fields.
2508 * If `--variable` is used to set many variables with the same name,
2509 a list is created.
2511 * Man writer: The `title`, `section`, `header`, and `footer` can now
2512 all be set individually in metadata. The `description` variable has been
2513 removed. Quotes have been added so that spaces are allowed in the
2514 title. If you have a title that begins
2516 COMMAND(1) footer here | header here
2518 pandoc will still parse it into a title, section, header, and
2519 footer. But you can also specify these elements explicitly (#885).
2521 * Markdown reader
2523 + Added support for YAML metadata blocks, which can come anywhere
2524 in the document (not just at the beginning). A document can contain
2525 multiple YAML metadata blocks.
2526 + HTML span and div tags are parsed as pandoc Span and Div elements.
2528 * Markdown writer
2530 + Allow simple tables to be printed as grid tables,
2531 if other table options are disabled. This means you can do
2532 `pandoc -t markdown-pipe_tables-simple_tables-multiline_tables`
2533 and all tables will render as grid tables.
2534 + Support YAML title block (render fields in alphabetical order
2535 to make output predictable).
2537 [API changes]
2539 * `Meta` in `Text.Pandoc.Definition` has been changed to allow
2540 structured metadata. (Note: existing code that pattern-matches
2541 on `Meta` will have to be revised.) Metadata can now contain
2542 indefinitely many fields, with content that can be a string,
2543 a Boolean, a list of `Inline` elements, a list of `Block`
2544 elements, or a map or list of these.
2546 * A new generic block container (`Div`) has been added to `Block`,
2547 and a generic inline container (`Span`) has been added to `Inline`.
2548 These can take attributes. They will render in HTML, Textile,
2549 MediaWiki, Org, RST and and Markdown (with `markdown_in_html`
2550 extension) as HTML `<div>` and `<span>` elements; in other formats
2551 they will simply pass through their contents. But they can be
2552 targeted by scripts.
2554 * `Format` is now a newtype, not an alias for String.
2555 Equality comparisons are case-insensitive.
2557 * Added `Text.Pandoc.Walk`, which exports hand-written tree-walking
2558 functions that are much faster than the SYB functions from
2559 `Text.Pandoc.Generic`. These functions are now used where possible
2560 in pandoc's code. (`Tests.Walk` verifies that `walk` and `query`
2561 match the generic traversals `bottomUp` and `queryWith`.)
2563 * Added `Text.Pandoc.JSON`, which provides `ToJSON` and `FromJSON`
2564 instances for the basic pandoc types. They use GHC generics and
2565 should be faster than the old JSON serialization using
2566 `Data.Aeson.Generic`.
2568 * Added `Text.Pandoc.Process`, exporting `pipeProcess`.
2569 This is a souped-up version of `readProcessWithErrorcode` that
2570 uses lazy bytestrings instead of strings and allows setting
2571 environment variables. (Used in `Text.Pandoc.PDF`.)
2573 * New module `Text.Pandoc.Readers.OPML`.
2575 * New module `Text.Pandoc.Writers.OPML`.
2577 * New module `Text.Pandoc.Readers.Haddock` (David Lazar).
2578 This is based on Haddock's own lexer/parser.
2580 * New module `Text.Pandoc.Writers.Custom`.
2582 * In `Text.Pandoc.Shared`, `openURL` and `fetchItem` now return an
2583 Either, for better error handling.
2585 * Made `stringify` polymorphic in `Text.Pandoc.Shared`.
2587 * Removed `stripTags` from `Text.Pandoc.XML`.
2589 * `Text.Pandoc.Templates`:
2591 + Simplified `Template` type to a newtype.
2592 + Removed `Empty`.
2593 + Changed type of `renderTemplate`: it now takes a JSON context
2594 and a compiled template.
2595 + Export `compileTemplate`.
2596 + Export `renderTemplate'` that takes a string instead of a compiled
2597 template.
2598 + Export `varListToJSON`.
2600 * `Text.Pandoc.PDF` exports `makePDF` instead of `tex2pdf`.
2602 * `Text.Pandoc`:
2604 + Made `toJsonFilter` an alias for `toJSONFilter` from `Text.Pandoc.JSON`.
2605 + Removed `ToJsonFilter` typeclass. `ToJSONFilter` from
2606 `Text.Pandoc.JSON` should be used instead. (Compiling against
2607 pandoc-types instead of pandoc will also produce smaller executables.)
2608 * Removed the deprecated `jsonFilter` function.
2609 + Added `readJSON`, `writeJSON` to the API (#817).
2611 * `Text.Pandoc.Options`:
2613 + Added `Ext_lists_without_preceding_blankline`,
2614 `Ext_ascii_identifiers`, `Ext_ignore_line_breaks`,
2615 `Ext_yaml_metadataBlock` to `Extension`.
2616 + Changed `writerSourceDirectory` to `writerSourceURL` and changed the
2617 type to a `Maybe`. `writerSourceURL` is set to 'Just url' when the
2618 first command-line argument is an absolute URL. (So, relative links
2619 will be resolved in relation to the first page.) Otherwise, 'Nothing'.
2620 + All bibliography-related fields have been removed from
2621 `ReaderOptions` and `WriterOptions`: `writerBiblioFiles`,
2622 `readerReferences`, `readerCitationStyle`.
2624 * The `Text.Pandoc.Biblio` module has been removed. Users of the
2625 pandoc library who want citation support will need to use
2626 `Text.CSL.Pandoc` from `pandoc-citeproc`.
2629 [bug fixes]
2631 * In markdown, don't autolink a bare URI that is followed by `</a>`
2632 (#937).
2634 * `Text.Pandoc.Shared`
2636 + `openURL` now follows redirects (#701), properly handles `data:`
2637 URIs, and prints diagnostic output to stderr rather than stdout.
2638 + `readDefaultDataFile`: normalize the paths. This fixes bugs in
2639 `--self-contained` on pandoc compiled with `embed_data_files` (#833).
2640 + Fixed `readDefaultDataFile` so it works on Windows.
2641 + Better error messages for `readDefaultDataFile`. Instead of
2642 listing the last path tried, which can confuse people who are
2643 using `--self-contained`, so now we just list the data file name.
2644 + URL-escape pipe characters. Even though these are legal, `Network.URI`
2645 doesn't regard them as legal in URLs. So we escape them first (#535).
2647 * Mathjax in HTML slide shows: include explicit "Typeset" call.
2648 This seems to be needed for some formats (e.g. slideous) and won't
2649 hurt in others (#966).
2651 * `Text.Pandoc.PDF`
2653 + On Windows, create temdir in working directory, since the system
2654 temp directory path may contain tildes, which can cause
2655 problems in LaTeX (#777).
2656 + Put temporary output directory in `TEXINPUTS` (see #917).
2657 + `makePDF` tries to download images that are not found locally,
2658 if the first argument is a URL (#917).
2659 + If compiling with `pdflatex` yields an encoding error, offer
2660 the suggestion to use `--latex-engine=xelatex`.
2662 * Produce automatic header identifiers in parsing textile, RST,
2663 and LaTeX, unless `auto_identifiers` extension is disabled (#967).
2665 * `Text.Pandoc.SelfContained`: Strip off fragment, query of relative URL
2666 before treating as a filename. This fixes `--self-contained` when used
2667 with CSS files that include web fonts using the method described here:
2668 <http://paulirish.com/2009/bulletproof-font-face-implementation-syntax/>
2669 (#739). Handle `src` in `embed`, `audio`, `source`, `input` tags.
2671 * `Text.Pandoc.Parsing`: `uri` parser no longer treats punctuation before
2672 percent-encoding, or a `+` character, as final punctuation.
2674 * `Text.Pandoc.ImageSize`: Handle EPS (#903). This change will make
2675 EPS images properly sized on conversion to Word.
2677 * Slidy: Use slidy.js rather than slidy.js.gz.
2678 Reason: some browsers have trouble with the gzipped js file,
2679 at least on the local file system (#795).
2681 * Markdown reader
2683 + Properly handle blank line at beginning of input (#882).
2684 + Fixed bug in unmatched reference links. The input
2685 `[*infile*] [*outfile*]` was getting improperly parsed:
2686 "infile" was emphasized, but "*outfile*" was literal (#883).
2687 + Allow internal `+` in citation identifiers (#856).
2688 + Allow `.` or `)` after `#` in ATX headers if no `fancy_lists`.
2689 + Do not generate blank title, author, or date metadata elements.
2690 Leave these out entirely if they aren't present.
2691 + Allow backtick code blocks not to be preceded by blank line (#975).
2693 * Textile reader:
2695 + Correctly handle entities.
2696 + Improved handling of `<pre>` blocks (#927). Remove internal HTML tags
2697 in code blocks, rather than printing them verbatim. Parse attributes
2698 on `<pre>` tag for code blocks.
2700 * HTML reader: Handle non-simple tables (#893). Column widths are read from
2701 `col` tags if present, otherwise divided equally.
2703 * LaTeX reader
2705 + Support alltt environment (#892).
2706 + Support `\textasciitilde`, `\textasciicircum` (#810).
2707 + Treat `\textsl` as emphasized text reader (#850).
2708 + Skip positional options after `\begin{figure}`.
2709 + Support `\v{}` for hacek (#926).
2710 + Don't add spurious ", " to citation suffixes.
2711 This is added when needed in pandoc-citeproc.
2712 + Allow spaces in alignment spec in tables, e.g. `{ l r c }`.
2713 + Improved support for accented characters (thanks to Scott Morrison).
2714 + Parse label after section command and set id (#951).
2716 * RST reader:
2718 + Don't insert paragraphs where docutils doesn't.
2719 `rst2html` doesn't add `<p>` tags to list items (even when they are
2720 separated by blank lines) unless there are multiple paragraphs in the
2721 list. This commit changes the RST reader to conform more closely to
2722 what docutils does (#880).
2723 + Improved metadata. Treat initial field list as metadata when
2724 standalone specified. Previously ALL fields "title", "author",
2725 "date" in field lists were treated as metadata, even if not at
2726 the beginning. Use `subtitle` metadata field for subtitle.
2727 + Fixed 'authors' metadata parsing in reST. Semicolons separate
2728 different authors.
2730 * MediaWiki reader
2732 + Allow space before table rows.
2733 + Fixed regression for `<ref>URL</ref>`.
2734 `<` is no longer allowed in URLs, according to the uri parser
2735 in `Text.Pandoc.Parsing`. Added a test case.
2736 + Correctly handle indented preformatted text without preceding
2737 or following blank line.
2738 + Fixed `|` links inside table cells. Improved attribute parsing.
2739 + Skip attributes on table rows. Previously we just crashed if
2740 rows had attributes, now we ignore them.
2741 + Ignore attributes on headers.
2742 + Allow `Image:` for images (#971).
2743 + Parse an image with caption in a paragraph by itself as a figure.
2745 * LaTeX writer
2747 + Don't use ligatures in escaping inline code.
2748 + Fixed footnote numbers in LaTeX/PDF tables. This fixes a bug
2749 wherein notes were numbered incorrectly in tables (#827).
2750 + Always create labels for sections. Previously the labels were only
2751 created when there were links to the section in the document (#871).
2752 + Stop escaping `|` in LaTeX math.
2753 This caused problems with array environments (#891).
2754 + Change `\` to `/` in paths. `/` works even on Windows in LaTeX.
2755 `\` will cause major problems if unescaped.
2756 + Write id for code block to label attribute in LaTeX when listings
2757 is used (thanks to Florian Eitel).
2758 + Scale LaTeX tables so they don't exceed columnwidth.
2759 + Avoid problem with footnotes in unnumbered headers (#940).
2761 * Beamer writer: when creating beamer slides, add `allowframebreaks` option
2762 to the slide if it is one of the header classes. It is recommended
2763 that your bibliography slide have this attribute:
2765 # References {.allowframebreaks}
2767 This causes multiple slides to be created if necessary, depending
2768 on the length of the bibliography.
2770 * ConTeXt writer: Properly handle tables without captions. The old output
2771 only worked in MkII. This should work in MkIV as well (#837).
2773 * MediaWiki writer: Use native mediawiki tables instead of HTML (#720).
2775 * HTML writer:
2777 + Fixed `--no-highlight` (Alexander Kondratskiy).
2778 + Don't convert to lowercase in email obfuscation (#839).
2779 + Ensure proper escaping in `<title>` and `<meta>` fields.
2781 * AsciiDoc writer:
2783 + Support `--atx-headers` (Max Rydahl Andersen).
2784 + Don't print empty identifier blocks `([[]])` on headers (Max
2785 Rydahl Andersen).
2787 * ODT writer:
2789 + Fixing wrong numbered-list indentation in open document format
2790 (Alexander Kondratskiy) (#369).
2791 + `reference.odt`: Added pandoc as "generator" in `meta.xml`.
2792 + Minor changes for ODF 1.2 conformance (#939). We leave the
2793 nonconforming `contextual-spacing` attribute, which is provided by
2794 LibreOffice itself and seems well supported.
2796 * Docx writer:
2798 + Fixed rendering of display math in lists.
2799 In 1.11 and 1.11.1, display math in lists rendered as a new list
2800 item. Now it always appears centered, just as outside of lists,
2801 and in proper display math style, no matter how far indented the
2802 containing list item is (#784).
2803 + Use `w:br` with `w:type` `textWrapping` for linebreaks.
2804 Previously we used `w:cr` (#873).
2805 + Use Compact style for Plain block elements, to
2806 differentiate between tight and loose lists (#775).
2807 + Ignore most components of `reference.docx`.
2808 We take the `word/styles.xml`, `docProps/app.xml`,
2809 `word/theme/theme1.xml`, and `word/fontTable.xml` from
2810 `reference.docx`, ignoring everything else. This should help
2811 with the corruption problems caused when different versions of
2812 Word resave the reference.docx and reorganize things.
2813 + Made `--no-highlight` work properly.
2815 * EPUB writer
2817 + Don't add `dc:creator` tags if present in EPUB metadata.
2818 + Add `id="toc-title"` to `h1` in `nav.xhtml` (#799).
2819 + Don't put blank title page in reading sequence.
2820 Set `linear="no"` if no title block. Addresses #797.
2821 + Download webtex images and include as data URLs.
2822 This allows you to use `--webtex` in creating EPUBs.
2823 Math with `--webtex` is automatically made self-contained.
2824 + In `data/epub.css`, removed highlighting styles (which
2825 are no longer needed, since styles are added by the HTML
2826 writer according to `--highlighting-style`). Simplified
2827 margin fields.
2828 + If resource not found, skip it, as in Docx writer (#916).
2830 * RTF writer:
2832 + Properly handle characters above the 0000-FFFF range.
2833 Uses surrogate pairs. Thanks to Hiromi Ishii for the patch.
2834 + Fixed regression with RTF table of contents.
2835 + Only autolink absolute URIs. This fixes a regression, #830.
2837 * Markdown writer:
2839 + Only autolink absolute URIs. This fixes a regression, #830.
2840 + Don't wrap attributes in fenced code blocks.
2841 + Write full metadata in MMD style title blocks.
2842 + Put multiple authors on separate lines in pandoc titleblock.
2843 Also, don't wrap long author entries, as new lines get treated
2844 as new authors.
2846 * `Text.Pandoc.Templates`:
2848 + Fixed bug retrieving default template for markdown variants.
2849 + Templates can now contain "record lookups" in variables;
2850 for example, `author.institution` will retrieve the `institution`
2851 field of the `author` variable.
2852 + More consistent behavior of `$for$`. When `foo` is not a list,
2853 `$for(foo)$...$endfor$` should behave like $if(foo)$...$endif$.
2854 So if `foo` resolves to "", no output should be produced.
2855 See pandoc-templates#39.
2857 * Citation processing improvements (now part of pandoc-citeproc):
2859 + Fixed `endWithPunct` The new version correctly sees a sentence
2860 ending in '.)' as ending with punctuation. This fixes a bug which
2861 led such sentences to receive an extra period at the end: '.).'.
2862 Thanks to Steve Petersen for reporting.
2863 + Don't interfere with Notes that aren't citation notes.
2864 This fixes a bug in which notes not generated from citations were
2865 being altered (e.g. first letter capitalized) (#898).
2866 + Only capitalize footnote citations when they have a prefix.
2867 + Changes in suffix parsing. A suffix beginning with a digit gets 'p'
2868 inserted before it before passing to citeproc-hs, so that bare numbers
2869 are treated as page numbers by default. A suffix not beginning with
2870 punctuation has a space added at the beginning (rather than a comma and
2871 space, as was done before for not-author-in-text citations).
2872 The result is that `\citep[23]{item1}` in LaTeX will be interpreted
2873 properly, with '23' treated as a locator of type 'page'.
2874 + Many improvements to citation rendering, due to fixes in citeproc-hs
2875 (thanks to Andrea Rossato).
2876 + Warnings are issued for undefined citations, which are rendered
2877 as `???`.
2878 + Fixed hanging behavior when locale files cannot be found.
2880 [template changes]
2882 * DocBook: Use DocBook 4.5 doctype.
2884 * Org: '#+TITLE:' is inserted before the title.
2885 Previously the writer did this.
2887 * LaTeX: Changes to make mathfont work with xelatex.
2888 We need the mathspec library, not just fontspec, for this.
2889 We also need to set options for setmathfont (#734).
2891 * LaTeX: Use `tex-ansi` mapping for `monofont`.
2892 This ensures that straight quotes appear as straight, rather than
2893 being treated as curly. See #889.
2895 * Made `\includegraphics` more flexible in LaTeX template.
2896 Now it can be used with options, if needed. Thanks to Bernhard Weichel.
2898 * LaTeX/Beamer: Added `classoption` variable.
2899 This is intended for class options like `oneside`; it may
2900 be repeated with different options. (Thanks to Oliver Matthews.)
2902 * Beamer: Added `fonttheme` variable. (Thanks to Luis Osa.)
2904 * LaTeX: Added `biblio-style` variable (#920).
2906 * DZSlides: title attribute on title section.
2908 * HTML5: add meta tag to allow scaling by user (Erik Evenson)
2910 [under-the-hood improvements]
2912 * Markdown reader:Improved strong/emph parsing, using the strategy of
2913 <https://github.com/jgm/Markdown>. The new parsing algorithm requires
2914 no backtracking, and no keeping track of nesting levels. It will give
2915 different results in some edge cases, but these should not affect normal
2916 uses.
2918 * Added `Text.Pandoc.Compat.Monoid`.
2919 This allows pandoc to compile with `base` < 4.5, where `Data.Monoid`
2920 doesn't export `<>`. Thanks to Dirk Ullirch for the patch.
2922 * Added `Text.Pandoc.Compat.TagSoupEntity`.
2923 This allows pandoc to compile with `tagsoup` 0.13.x.
2924 Thanks to Dirk Ullrich for the patch.
2926 * Most of `Text.Pandoc.Readers.TeXMath` has been moved to the
2927 `texmath` module (0.6.4). (This allows `pandoc-citeproc` to
2928 handle simple math in bibliography fields.)
2930 * Added `Text.Pandoc.Writers.Shared` for shared functions used
2931 only in writers. `metaToJSON` is used in writers to create a
2932 JSON object for use in the templates from the pandoc metadata
2933 and variables. `getField`, `setField`, and `defField` are
2934 for working with JSON template contexts.
2936 * Added `Text.Pandoc.Asciify` utility module.
2937 This exports functions to create ASCII-only versions of identifiers.
2939 * `Text.Pandoc.Parsing`
2941 + Generalized state type on `readWith` (API change).
2942 + Specialize readWith to `String` input. (API change).
2943 + In `ParserState`, replace `stateTitle`, `stateAuthors`, `stateDate`
2944 with `stateMeta` and `stateMeta'`.
2946 * `Text.Pandoc.UTF8`: use strict bytestrings in reading. The use of lazy
2947 bytestrings seemed to cause problems using pandoc on 64-bit Windows
2948 7/8 (#874).
2950 * Factored out `registerHeader` from markdown reader, added to
2951 `Text.Pandoc.Parsing`.
2953 * Removed `blaze_html_0_5` flag, require `blaze-html` >= 0.5.
2954 Reason: < 0.5 does not provide a monoid instance for Attribute,
2955 which is now needed by the HTML writer (#803).
2957 * Added `http-conduit` flag, which allows fetching https resources.
2958 It also brings in a large number of dependencies (`http-conduit`
2959 and its dependencies), which is why for now it is an optional flag
2960 (#820).
2962 * Added CONTRIBUTING.md.
2964 * Improved INSTALL instructions.
2966 * `make-windows-installer.bat`: Removed explicit paths for executables.
2968 * `aeson` is now used instead of `json` for JSON.
2970 * Set default stack size to 16M. This is needed for some large
2971 conversions, esp. if pandoc is compiled with 64-bit ghc.
2973 * Various small documentation improvements.
2974 Thanks to achalddave and drothlis for patches.
2976 * Removed comment that chokes recent versions of CPP (#933).
2978 * Removed support for GHC version < 7.2, since pandoc-types now
2979 requires at least GHC 7.2 for GHC generics.
2982pandoc (1.11.1)
2984 * Markdown reader:
2986 + Fixed regression in which parentheses were lost in link URLs.
2987 Added tests. Closes #786.
2988 + Better handling of unmatched double quotes in `--smart` mode.
2989 These occur frequently in fiction, since it is customary not to
2990 close quotes in dialogue if the speaker does not change between
2991 paragraphs. The unmatched quotes now get turned into literal
2992 left double quotes. (No `Quoted` inline is generated, however.)
2993 Closes #99 (again).
2995 * HTML writer: Fixed numbering mismatch between TOC and sections.
2996 `--number-offset` now affects TOC numbering as well
2997 as section numbering, as it should have all along. Closes #789.
2999 * Markdown writer: Reverted 1.11 change that caused citations to be rendered
3000 as markdown citations, even if `--bibliography` was specified, unless
3001 `citation` extension is disabled. Now, formatted citations are always
3002 printed if `--bibliography` was specified. If you want to reformat
3003 markdown keeping pandoc markdown citations intact, don't use
3004 `--bibliography`. Note that citations parsed from LaTeX documents will
3005 be rendered as pandoc markdown citations when `--bibliography` is not
3006 specified.
3008 * ODT writer: Fixed regression leading to corrupt ODTs.
3009 This was due to a change in the `Show` instance for
3010 `Text.Pandoc.Pretty.Doc`. Closes #780.
3012 * Fixed spacing bugs involving code block attributes in
3013 RST reader and Markdown writer. Closes #763.
3015 * Windows package: Various improvements due to Fyodor Sheremetyev.
3017 + Automatically set installation path (Program Files or Local App Data).
3018 + Set system PATH environment variable when installing for all users.
3019 + Pandoc can installed for all users using the following command.
3020 `msiexec /i pandoc-1.11.msi ALLUSERS=1`.
3022 * Bumped QuickCheck version bound.
3024pandoc (1.11)
3026 * Added `--number-offset` option. (See README for description.)
3028 * Added `--default-image-extension` option. (See README for description.)
3030 * `--number-sections` behavior change: headers with class `unnumbered`
3031 will not be numbered.
3033 * `--version` now reports the default data directory.
3035 * `Text.Pandoc.Parsing` is no longer exposed. (API change.)
3037 * `Text.Pandoc.Highlighting` is no longer exposed. (API change.)
3039 * `Text.Pandoc.Shared`: Changed type of `Element`. `Sec` now includes
3040 a field for `Attr` rather than just `String`. (API change.)
3042 * Added `markdown_github` as input format. This was an accidental
3043 omission in 1.10.
3045 * Added `readerDefaultImageExtension` field to `ReaderOptions`. (API
3046 change.)
3048 * Added `writerNumberOffset` field in `WriterOptions`. (API change.)
3050 * Beamer template:
3052 + Fixed captions with longtable. Thanks to Joost Kremers.
3053 + Provide `\Oldincludegraphics` as in LaTeX template (Benjamin Bannier).
3055 * LaTeX template:
3057 + Load microtype after fonts. Microtype needs to know
3058 what fonts are being used. Thanks to dfc for the patch.
3059 + Set `secnumdepth` to 5 if `--number-sections` specified.
3060 This yields behavior equivalent to the other writers, numbering
3061 level 4 and 5 headers too. Closes #753.
3063 * HTML reader:
3065 + Handle `<colgroup>` tag.
3066 + Preserve all header attributes.
3068 * LaTeX reader:
3070 + Parse `\hrule` as `HorizontalRule`. Closes #746.
3071 + Parse starred variants of `\section` etc. as headers with
3072 attribute `unnumbered`.
3073 + Read optional attributes in `lstlisting` and `Verbatim` environments.
3074 We convert these to pandoc standard names, e.g. `numberLines`
3075 for `numbers=left`, `startFrom=100` from `firstnumber=100`.
3076 + Handle language attribute for lstlistings.
3077 + Better support for Verbatim and minted environments. Closes #763.
3079 * Markdown reader:
3081 + `-` in an attribute context = `.unnumbered`. The point of this
3082 is to provide a way to specify unnumbered headers in non-English
3083 documents.
3084 + Fixed bug parsing key/value attributes. Parsing failed if you
3085 had an unquoted attribute immediately before the final '}'.
3086 + Make backslash escape work in attributes.
3087 + Fix title block parsing. Now if `mmd_title_blocks` is specified,
3088 pandoc will parse a MMD title block if it sees one, even if
3089 `pandoc_title_blocks` is enabled.
3090 + Refactoring: `litChar` now includes entities, so we don't need
3091 to use `fromEntities` e.g. on titles.
3092 + Allow spaces around borders in pipe tables. Closes #772.
3093 + Allow all punctuation in angle-bracket autolinks. Previously
3094 things like `----` were disallowed, because the uri parser
3095 treated them as trailing punctuation. Closes #768.
3096 + Make `implicit_header_references` work properly when
3097 headers are given explicit identifiers.
3098 + Check for tables before line blocks. Otherwise some pipe
3099 tables get treated as line blocks.
3100 + Allow `&` in emails (for entities).
3101 + Properly handle entities in titles and links. A markdown link
3102 `<http://g&ouml;ogle.com>` should be a link to `http://göogle.com`.
3103 Closes #723.
3105 * Textile reader:
3107 + Handle attributes on headers.
3109 * LaTeX reader:
3111 + Add `fig:` as title for images with captions.
3112 This is needed for them to be rendered as figures. Closes #766.
3113 + Never emit an empty paragraph. See #761.
3114 + Handle `\caption` for images in figures. Closes #766.
3115 + Parse `\section*`, etc. as unnumbered sections.
3117 * HTML writer:
3119 + Support header attributes. The attributes go on
3120 the enclosing `section` or `div` tag if `--section-divs` is specified.
3121 + Fixed a regression (only now noticed) in html+lhs output.
3122 Previously the bird tracks were being omitted.
3124 * LaTeX writer:
3126 + Omit lists with no items to avoid LaTeX errors.
3127 + Support line numbering with `--listings`.
3128 If `numberLines` class is present, we add `numbers=left`;
3129 if `startFrom` is present, we add `firstnumber=`. (#763)
3131 * ConTeXt writer:
3133 + Removed `\placecontent`. This produced a duplicate toc,
3134 in conjunction with `\placelist`.
3135 + Use `\title`, `\subject` etc. for headers with
3136 `unnumbered` class.
3138 * Textile writer:
3140 + Support header attributes.
3142 * Markdown writer:
3144 + Use grid tables when needed, and if enabled. Closes #740.
3145 + Render citations as pandoc-markdown citations.
3146 Previously citations were rendered as citeproc-formatted citations
3147 by default. Now we render them as pandoc citations, e.g. `[@item1]`,
3148 unless the `citations` extension is disabled.
3149 If you still want formatted citations in your markdown output,
3150 use `pandoc -t markdown-citations`.
3152 * RST writer:
3154 + Support `:number-lines:` in code blocks.
3156 * Docx writer:
3158 + Better treatment of display math. Display math inside a
3159 paragraph is now put in a separate paragraph, so it will render
3160 properly (centered and without extra blank lines around it).
3161 Partially addresses #742.
3162 + Content types and document rels xml files are now created from
3163 scratch, rather than being taken over from `reference.docx`.
3164 This fixes problems that arise when you edit the `reference.docx`
3165 with Word.
3166 + We also now encode mime types for each individual image rather
3167 than using defaults. This should allow us to handle a wider
3168 range of image types (including PDF). Closes #414.
3169 + Changed style names in `reference docx`.
3170 `FootnoteReference` -> `FootnoteRef`, `Hyperlink` -> `Link`.
3171 The old names got changed by Word when the `reference.docx` was
3172 edited. Closes #414.
3174 * EPUB writer:
3176 + Fix section numbering. Previously the numbering restarted from 1
3177 in each chapter (with `--number-sections`), though the numbers in
3178 the table of contents were correct.
3179 + Headers with "unnumbered" attribute are not numbered. (Nor do they
3180 cause an increment in running numbering.) Section numbers now work
3181 properly, even when there is material before the first numbered section.
3182 + Include HTML TOC, even in epub2. The TOC is included in `<spine>`,
3183 but `linear` is set to `no` unless the `--toc` option is specified.
3184 Include `<guide>` element in OPF. This should allow the TOC to
3185 be useable in Kindles when converted with kindlegen. Closes #773.
3187 * `Text.Pandoc.Parsing`: Optimized `oneOfStringsCI`.
3188 This dramatically reduces the speed penalty that comes from enabling the
3189 `autolink_bare_uris` extension. The penalty is still substantial (in one
3190 test, from 0.33s to 0.44s), but nowhere near what it used to be.
3191 The RST reader is also much faster now, as it autodetects URIs.
3193 * `Text.Pandoc.Shared`: `hierarchicalize` will not number section
3194 with class "unnumbered". Unnumbered sections get `[]` for their
3195 section number.
3197 * `Text.Pandoc.Pretty`:
3199 + Fixed `chomp` so it works inside `Prefixed` elements.
3200 + Changed `Show` instance so it is better for debugging.
3202 * `Text.Pandoc.ImageSize`: Added `Pdf` to `ImageType`.
3204 * `Text.Pandoc.UTF8`: Strip off BOM if present. Closes #743.
3206 * Windows installer improvements:
3208 + The installer is now signed with a certificate (thanks to
3209 Fyodor Sheremetyev).
3210 + WiX is used instead of InnoSetup. The installer is now a
3211 standard msi file.
3212 + The version number is now auto-detected, and need not be
3213 updated separately.
3215 * OSX installer improvements:
3217 + The package and pandoc executable are now signed with a
3218 certificate (thanks to Fyodor Sheremetyev).
3219 + RTF version of license is used.
3220 + Use full path for sysctl in `InstallationCheck` script (jonahbull).
3221 Closes #580.
3223 * Converted COPYING to markdown.
3225 * pandoc.cabal: Require latest versions of highlighting-kate,
3226 texmath, citeproc-hs, zip-archive.
3228pandoc (1.10.1)
3230 * Markdown reader: various optimizations, leading to a
3231 significant performance boost.
3233 * RST reader: Allow anonymous form of inline links:
3234 `` `hello <url>`__ `` Closes #724.
3236 * Mediawiki reader: Don't require newlines after tables.
3237 Thanks to jrunningen for the patch. Closes #733.
3239 * Fixed LaTeX macro parsing. Now LaTeX macro definitions are preserved
3240 when output is LaTeX, and applied when it is another format.
3241 Partially addresses #730.
3243 * Markdown and RST readers: Added parser to `block` that skips blank
3244 lines. This fixes a subtle regression involving grid tables with
3245 empty cells. Also added test for grid table with empty cells.
3246 Closes #732.
3248 * RST writer: Use `.. code:: language` for code blocks with language.
3249 Closes #721.
3251 * DocBook writer: Fixed output for hard line breaks, adding a newline
3252 between `<literallayout>` tags.
3254 * Markdown writer: Use an autolink when link text matches url.
3255 Previously we also checked for a null title, but this
3256 test fails for links produced by citeproc-hs in bibliographies.
3257 So, if the link has a title, it will be lost on conversion
3258 to an autolink, but that seems okay.
3260 * Markdown writer: Set title, author, date variables as before.
3261 These are no longer used in the default template, since we use
3262 titleblock, but we set them anyway for those who use custom templates.
3264 * LaTeX writer: Avoid extra space at start/end of table cell.
3265 Thanks to Nick Bart for the suggestion of using @{}.
3267 * `Text.Pandoc.Parsing`:
3269 + More efficient version of `anyLine`.
3270 + Type of `macro` has changed; the parser now returns `Blocks`
3271 instead of `Block`.
3273 * Relaxed old-time version bound, allowing 1.0.*.
3275 * Removed obsolete `hsmarkdown` script. Those who need `hsmarkdown`
3276 should create a symlink as described in the README.
3278pandoc (1.10.0.5)
3280 * Markdown reader: Try `lhsCodeBlock` before `rawTeXBlock`. Otherwise
3281 `\begin{code}...\end{code}` isn't handled properly in markdown+lhs.
3282 Thanks to Daniel Miot for noticing the bug and suggesting the fix.
3284 * Markdown reader: Fixed bug with headerless grid tables.
3285 The 1.10 code assumed that each table header cell contains exactly one
3286 block. That failed for headerless tables (0) and also for tables with
3287 multiple blocks in a header cell. The code is fixed and tests provided.
3288 Thanks to Andrew Lee for pointing out the bug.
3290 * Markdown reader: Fixed regressions in fenced code blocks. Closes #722.
3292 + Tilde code fences can again take a bare language string
3293 (`~~~ haskell`), not just curly-bracketed attributes
3294 (`~~~ {.haskell}`).
3295 + Backtick code blocks can take the curly-bracketed attributes.
3296 + Backtick code blocks don't *require* a language.
3297 + Consolidated code for the two kinds of fenced code blocks.
3299 * LaTeX template: Use `\urlstyle{same}` to avoid monospace URLs.
3301 * Markdown writer: Use proportional font for email autolinks with
3302 obfuscation. Closes #714.
3304 * Corrected name of `blank_before_blockquote` in README. Closes #718.
3306 * `Text.Pandoc.Shared`: Fixed bug in `uri` parser.
3307 The bug prevented an autolink at the end of a string (e.g.
3308 at the end of a line block line) from counting as a link. Closes #711.
3310 * Use the `hsb2hs` preprocessor instead of TH for embed_data_files.
3311 This should work on Windows, unlike the TH solution with
3312 file-embed.
3314 * Eliminated use of TH in test suite.
3316 * Added `Text.Pandoc.Data` (non-exported) to hold the association
3317 list of embedded data files, if the `embed_data_files` flag is selected.
3318 This isolates the code that needs special treatment with file-embed or
3319 `hsb2hs`.
3321 * Changes to `make-windows-installer.bat`.
3323 + Exit batch file if any of the cabal-dev installs fail.
3324 + There's no longer any need to reinstall `highlighting-kate`.
3325 + Don't start with a `cabal update`; leave that to the user.
3326 + Force reinstall of pandoc.
3328 * Fixed EPUB writer so it builds with blaze-html 0.4.x. Thanks to
3329 Jens Petersen.
3331pandoc (1.10.0.4)
3333 * Fixed bug with escaped % in LaTeX reader. Closes #710.
3335pandoc (1.10.0.3)
3337 * Added further missing fb2 tests to cabal file.
3339pandoc (1.10.0.2)
3341 * Added fb2 tests to cabal file's extra-source-files.
3343pandoc (1.10.0.1)
3345 * Bump version bounds on test-framework packages.
3347pandoc (1.10)
3349 [new features]
3351 * New input formats: `mediawiki` (MediaWiki markup).
3353 * New output formats: `epub3` (EPUB v3 with MathML),
3354 `fb2` (FictionBook2 ebooks).
3356 * New `--toc-depth` option, specifying how many levels of
3357 headers to include in a table of contents.
3359 * New `--epub-chapter-level` option, specifying the header
3360 level at which to divide EPUBs into separate files.
3361 Note that this normally affects only performance, not the
3362 visual presentation of the EPUB in a reader.
3364 * Removed the `--strict` option. Instead of using `--strict`,
3365 one can now use the format name `markdown_strict` for either input
3366 or output. This gives more fine-grained control that `--strict`
3367 did, allowing one to convert from pandoc's markdown to strict
3368 markdown or vice versa.
3370 * It is now possible to enable or disable specific syntax
3371 extensions by appending them (with `+` or `-`) to the writer
3372 or reader name. For example,
3374 pandoc -f markdown-footnotes+hard_line_breaks
3376 disables footnotes and enables treating newlines as hard
3377 line breaks. The literate Haskell extensions are now implemented
3378 this way as well, using either `+lhs` or `+literate_haskell`.
3379 For a list of extension names, see the README under
3380 "Pandoc's Markdown."
3382 * The following aliases have been introduced for specific
3383 combinations of markdown extensions: `markdown_phpextra`,
3384 `markdown_github`, `markdown_mmd`, `markdown_strict`. These aliases
3385 work just like regular reader and writer names, and can be modified
3386 with extension modifiers as described above. (Note that conversion
3387 from one markdown dialect to another does not work perfectly,
3388 because there are differences in markdown parsers besides
3389 just the extensions, and because pandoc's internal document model is
3390 not rich enough to capture all of the extensions.)
3392 * New `--html-q-tags` option. The previous default was to use `<q>`
3393 tags for smart quotes in HTML5. But `<q>` tags are also valid HTML4.
3394 Moreover, they are not a robust way of typesetting quotes, since
3395 some user agents don't support them, and some CSS resets (e.g.
3396 bootstrap) prevent pandoc's quotes CSS from working properly.
3397 We now just insert literal quote characters by default in both
3398 `html` and `html5` output, but this option is provided for
3399 those who still want `<q>` tags.
3401 * The markdown reader now prints warnings (to stderr) about
3402 duplicate link and note references. Closes #375.
3404 * Markdown syntax extensions:
3406 + Added pipe tables. Thanks to François Gannaz for the initial patch.
3407 These conform to PHP Markdown Extra's pipe table syntax. A subset
3408 of org-mode table syntax is also supported, which means that you can
3409 use org-mode's nice table editor to create tables.
3411 + Added support for RST-style line blocks. These are
3412 useful for verse and addresses.
3414 + Attributes can now be specified for headers, using the same
3415 syntax as in code blocks. (However, currently only the
3416 identifier has any effect in most writers.) For example,
3418 # My header {#foo}
3420 See [the header above](#foo).
3422 + Pandoc will now act as if link references have been defined
3423 for all headers without explicit identifiers.
3424 So, you can do this:
3426 # My header
3428 Link to [My header].
3429 Another link to [it][My header].
3431 Closes #691.
3433 * LaTeX reader:
3435 + Command macros now work everywhere, including non-math.
3436 Environment macros still not supported.
3437 + `\input` now works, as well as `\include`. TEXINPUTS is used.
3438 Pandoc looks recursively into included files for more included files.
3440 [behavior changes]
3442 * The Markdown reader no longer puts the text of autolinks in a
3443 `Code` inline. This means that autolinks will no longer appear
3444 in a monospace font.
3446 * The character `/` can now appear in markdown citation keys.
3448 * HTML blocks in strict_markdown are no longer required to begin
3449 at the left margin. Technically this is required, according to
3450 the markdown syntax document, but `Markdown.pl` and other markdown
3451 processors are more liberal.
3453 * The `-V` option has been changed so that if there are duplicate
3454 variables, those specified later on the command line take precedence.
3456 * Tight lists now work in LaTeX and ConTeXt output.
3458 * The LaTeX writer no longer relien on the `enumerate` package.
3459 Instead, it uses standard LaTeX commands to change the list numbering
3460 style.
3462 * The LaTeX writer now uses `longtable` instead of `ctable`. This allows
3463 tables to be split over page boundaries.
3465 * The RST writer now uses a line block to render paragraphs containing
3466 linebreaks (which previously weren't supported at all).
3468 * The markdown writer now applies the `--id-prefix` to footnote IDs.
3469 Closes #614.
3471 * The plain writer no longer uses backslash-escaped line breaks
3472 (which are not very "plain").
3474 * `Text.Pandoc.UTF8`: Better error message for invalid UTF8.
3475 Read bytestring and use `Text`'s decodeUtf8 instead of using
3476 `System.IO.hGetContents`. This way you get a message saying
3477 "invalid UTF-8 stream" instead of "invalid byte sequence."
3478 You are also told which byte caused the problem.
3480 * Docx, ODT, and EPUB writers now download images specified by a URL
3481 instead of skipping them or raising an error.
3483 * EPUB writer:
3485 + The default CSS now left-aligns headers by default, instead of
3486 centering. This is more consistent with the rest of the writers.
3487 + A proper multi-level table of contents is now used in `toc.ncx`.
3488 There is no longer a subsidiary table of contents at the beginning
3489 of each chapter.
3490 + Code highlighting now works by default.
3491 + Section divs are used by default for better semantic markup.
3492 + The title is used instead of "Title Page" in the table of contents.
3493 Otherwise we have a hard-coded English string, which looks
3494 strange in ebooks written in other languages. Closes #572.
3496 * HTML writer:
3498 + Put mathjax in span with class "math". Closes #562.
3499 + Put citations in a span with class "citation." In HTML5, also include
3500 a `data-cite` attribute with a space-separated list of citation
3501 keys.
3503 * `Text.Pandoc.UTF8`: use universalNewlineMode in reading.
3504 This treats both `\r\n` and `\n` as `\n` on input, no matter
3505 what platform we're running on.
3507 * Citation processing is now done in the Markdown and LaTeX
3508 readers, not in `pandoc.hs`. This makes it easier for library users
3509 to use citations.
3511 [template changes]
3513 * HTML: Added css to template to preserve spaces in `<code>` tags.
3514 Thanks to Dirk Laurie.
3516 * Beamer: Remove English-centric strings in section pages.
3517 Section pages used to have "Section" and a number as well as the
3518 section title. Now they just have the title. Similarly for part
3519 and subsection. Closes #566.
3521 * LaTeX, ConTeXt: Added papersize variable.
3523 * LaTeX, Beamer templates: Use longtable instead of ctable.
3525 * LaTeX, Beamer templates: Don't require 'float' package for tables.
3526 We don't actually seem to use the '[H]' option.
3528 * LaTeX: Use `upquote` package if it is available. This fixes
3529 straight quotes in verbatim environments.
3531 * Markdown, plain: Fixed titleblock so it is just a single string.
3532 Previously separate title, author, and date variables were used,
3533 but this didn't allow different kinds of title blocks.
3535 * EPUB:
3537 + Rationalized templates. Previously there were three different
3538 templates involved in epub production. There is now just one
3539 template, `default.epub` or `default.epub3`. It can now be
3540 overridden using `--template`, just like other templates.
3541 The titlepage is now folded into the default template.
3542 A `titlepage` variable selects it.
3543 + UTF-8, lang tag, meta tags, title element.
3545 * Added scale-to-width feature to beamer template
3547 [API changes]
3549 * `Text.Pandoc.Definition`: Added `Attr` field to `Header`.
3550 Previously header identifers were autogenerated by the writers.
3551 Now they are added in the readers (either automatically or explicitly).
3553 * `Text.Pandoc.Builder`:
3555 + `Inlines` and `Blocks` are now synonyms for `Many Inline` and
3556 `Many Block`. `Many` is a newtype wrapper around `Seq`, with
3557 custom Monoid instances for `Many Inline` and `Many Block. This
3558 allows `Many` to be made an instance of `Foldable` and `Traversable`.
3559 + The old `Listable` class has been removed.
3560 + The module now exports `isNull`, `toList`, `fromList`.
3561 + The old `Read` and `Show` instances have been removed; derived
3562 instances are now used.
3563 + Added `headerWith`.
3565 * The readers now take a `ReaderOptions` rather than a `ParserState`
3566 as a parameter. Indeed, not all parsers use the `ParserState` type;
3567 some have a custom state. The motivation for this change was to separate
3568 user-specifiable options from the accounting functions of parser state.
3570 * New module `Text.Pandoc.Options`. This includes the `WriterOptions`
3571 formerly in `Text.Pandoc.Shared`, and its associated
3572 data types. It also includes a new type `ReaderOptions`, which
3573 contains many options formerly in `ParserState`, and its associated
3574 data types:
3576 + `ParserState.stateParseRaw` -> `ReaderOptions.readerParseRaw`.
3577 + `ParserState.stateColumns` -> `ReaderOptions.readerColumns`.
3578 + `ParserState.stateTabStop` -> `ReaderOptions.readerTabStop`.
3579 + `ParserState.stateOldDashes` -> `ReaderOptions.readerOldDashes`.
3580 + `ParserState.stateLiterateHaskell` -> `ReaderOptions.readerLiterateHaskell`.
3581 + `ParserState.stateCitations` -> `ReaderOptions.readerReferences`.
3582 + `ParserState.stateApplyMacros` -> `ReaderOptions.readerApplyMacros`.
3583 + `ParserState.stateIndentedCodeClasses` ->
3584 `ReaderOptions.readerIndentedCodeClasses`.
3585 + Added `ReaderOptions.readerCitationStyle`.
3587 * `WriterOptions` now includes `writerEpubVersion`, `writerEpubChapterLevel`,
3588 `writerEpubStylesheet`, `writerEpubFonts`, `writerReferenceODT`,
3589 `writerReferenceDocx`, and `writerTOCDepth`. `writerEPUBMetadata` has
3590 been renamed `writerEpubMetadata` for consistency.
3592 * Changed signatures of `writeODT`, `writeDocx`, `writeEPUB`, since they no
3593 longer stylesheet, fonts, reference files as separate parameters.
3595 * Removed `writerLiterateHaskell` from `WriterOptions`, and
3596 `readerLiterateHaskell` from `ReaderOptions`. LHS is now handled
3597 by an extension (`Ext_literate_haskell`).
3599 * Removed deprecated `writerXeTeX`.
3601 * Removed `writerStrict` from `WriterOptions`. Added `writerExtensions`.
3602 Strict is now handled through extensions.
3604 * `Text.Pandoc.Options` exports `pandocExtensions`, `strictExtensions`,
3605 `phpMarkdownExtraExtensions`, `githubMarkdownExtensions`,
3606 and `multimarkdownExtensions`, as well as the `Extensions` type.
3608 * New `Text.Pandoc.Readers.MediaWiki` module, exporting
3609 `readMediaWiki`.
3611 * New `Text.Pandoc.Writers.FB2` module, exporting `writeFB2`
3612 (thanks to Sergey Astanin).
3614 * `Text.Pandoc`:
3616 + Added `getReader`, `getWriter` to `Text.Pandoc`.
3617 + `writers` is now an association list `(String, Writer)`.
3618 A `Writer` can be a `PureStringWriter`, an `IOStringWriter`, or
3619 an `IOByteStringWriter`. ALL writers are now in the 'writers'
3620 list, including the binary writers and FB2 writer. This allows
3621 code in `pandoc.hs` to be simplified.
3622 + Changed type of `readers`, so all readers are in IO.
3623 Users who want pure readers can still get them form the reader
3624 modules; this just affects the function `getReader` that looks up
3625 a reader based on the format name. The point of this change is to
3626 make it possible to print warnings from the parser.
3628 * `Text.Pandoc.Parsing`:
3630 + `Text.Parsec` now exports all Parsec functions used in pandoc code.
3631 No other module directly imports Parsec. This will make it easier
3632 to change the parsing backend in the future, if we want to.
3633 + `Text.Parsec` is used instead of `Text.ParserCombinators.Parsec`.
3634 + Export the type synonym `Parser`.
3635 + Export `widthsFromIndices`, `NoteTable'`, `KeyTable'`, `Key'`, `toKey'`,
3636 `withQuoteContext`, `singleQuoteStart`, `singleQuoteEnd`,
3637 `doubleQuoteStart`, `doubleQuoteEnd`, `ellipses`, `apostrophe`,
3638 `dash`, `nested`, `F(..)`, `askF`, `asksF`, `runF`, `lineBlockLines`.
3639 + `ParserState` is no longer an instance of `Show`.
3640 + Added `stateSubstitutions` and `stateWarnings` to `ParserState`.
3641 + Generalized type of `withQuoteContext`.
3642 + Added `guardEnabled`, `guardDisabled`, `getOption`.
3643 + Removed `failIfStrict`.
3644 + `lookupKeySrc` and `fromKey` are no longer exported.
3646 * `Data.Default` instances are now provided for `ReaderOptions`,
3647 `WriterOptions`, and `ParserState`. `Text.Pandoc` re-exports `def`.
3648 Now you can use `def` (which is re-exported by `Text.Pandoc`) instead
3649 of `defaultWriterOptions` (which is still defined). Closes #546.
3651 * `Text.Pandoc.Shared`:
3653 + Added `safeRead`.
3654 + Renamed `removedLeadingTrailingSpace` to `trim`,
3655 `removeLeadingSpace` to `triml`, and `removeTrailingSpace` to `trimr`.
3656 + Count `\r` as space in `trim` functions.
3657 + Moved `renderTags'` from HTML reader and `Text.Pandoc.SelfContained`
3658 to `Shared`.
3659 + Removed `failUnlessLHS`.
3660 + Export `compactify'`, formerly in Markdown reader.
3661 + Export `isTightList`.
3662 + Do not export `findDataFile`.
3663 + `readDataFile` now returns a strict ByteString.
3664 + Export `readDataFileUTF8` which returns a String, like the
3665 old `readDataFile`.
3666 + Export `fetchItem` and `openURL`.
3668 * `Text.Pandoc.ImageSize`: Use strict, not lazy bytestrings.
3669 Removed `readImageSize`.
3671 * `Text.Pandoc.UTF8`: Export `encodePath`, `decodePath`,
3672 `decodeArg`, `toString`, `fromString`, `toStringLazy`,
3673 `fromStringLazy`.
3675 * `Text.Pandoc.UTF8` is now an exposed module.
3677 * `Text.Pandoc.Biblio`:
3679 + csl parameter now a `String` rather than a `FilePath`.
3680 + Changed type of `processBiblio`. It is no longer in the IO monad.
3681 It now takes a `Maybe Style` argument rather than parameters for CSL
3682 and abbrev filenames. (`pandoc.hs` now calls the functions to parse
3683 the style file and add abbreviations.)
3685 * Markdown reader now exports `readMarkdownWithWarnings`.
3687 * `Text.Pandoc.RTF` now exports `writeRTFWithEmbeddedImages` instead of
3688 `rtfEmbedImage`.
3690 [bug fixes]
3692 * Make `--ascii` work properly with `--self-contained`. Closes #568.
3694 * Markdown reader:
3696 + Fixed link parser to avoid exponential slowdowns. Closes #620.
3697 Previously the parser would hang on input like this:
3699 [[[[[[[[[[[[[[[[[[hi
3701 We fixed this by making the link parser parser characters
3702 between balanced brackets (skipping brackets in inline code spans),
3703 then parsing the result as an inline list. One change is that
3705 [hi *there]* bud](/url)
3707 is now no longer parsed as a link. But in this respect pandoc behaved
3708 differently from most other implementations anyway, so that seems okay.
3710 + Look for raw html/latex blocks before tables.
3711 Otherwise the following gets parsed as a table:
3713 \begin{code}
3714 --------------
3715 -- My comment.
3716 \end{code}
3718 Closes #578.
3720 * RST reader:
3722 + Added support for `:target:` on `.. image::` blocks
3723 and substitutions.
3724 + Field list fixes:
3726 - Fixed field lists items with body beginning after a new line
3727 (Denis Laxalde).
3728 - Allow any char but ':' in names of field lists in RST reader
3729 (Denis Laxalde).
3730 - Don't allow line breaks in field names.
3731 - Require whitespace after field list field names.
3732 - Don't create empty definition list for metadata field lists.
3733 Previously a field list consisting only of metadata fields (author,
3734 title, date) would be parsed as an empty DefinitionList, which is
3735 not legal in LaTeX and not needed in any format.
3737 + Don't recognize inline-markup starts inside words.
3738 For example, `2*2 = 4*1` should not contain an emphasized
3739 section. Added test case for "Literal symbols". Closes #569.
3740 + Allow dashes as separator in simple tables. Closes #555.
3741 + Added support for `container`, `compound`, `epigraph`,
3742 `rubric`, `highlights`, `pull-quote`.
3743 + Added support for `.. code::`.
3744 + Made directive labels case-insensitive.
3745 + Removed requirement that directives begin at left margin.
3746 This was (correctly) not in earlier releases; docutils doesn't
3747 make the requirement.
3748 + Added support for `replace::` and `unicode::` substitutions.
3749 + Ignore unknown interpreted roles.
3750 + Renamed image parser to `subst`, since it now handles all
3751 substitution references.
3753 * Textile reader:
3755 + Allow newlines before pipes in table. Closes #654.
3756 + Fixed bug with list items containing line breaks.
3757 Now pandoc correctly handles hard line breaks inside list items.
3758 Previously they broke list parsing.
3759 + Implemented comment blocks.
3760 + Fixed bug affected words ending in hyphen.
3761 + Properly handle links with surrounding brackets.
3762 Square brackets need to be used when the link isn't surrounded by
3763 spaces or punctuation, or when the URL ending may be ambiguous.
3764 Closes #564.
3765 + Removed nullBlock. Better to know about parsing problems than
3766 to skip stuff when we get stuck.
3767 + Allow ID attributes on headers.
3768 + Textile reader: Avoid parsing dashes as strikeout.
3769 Previously the input
3771 text--
3772 text--
3773 text--
3774 text--
3776 would be parsed with strikeouts rather than dashes. This fixes
3777 the problem by requiring that a strikeout delimiting - not be
3778 followed by a -. Closes #631.
3779 + Expanded list of `stringBreakers`.
3780 This fixes a bug on input like "(_hello_)" which should
3781 be a parenthesized emphasized "hello".
3782 The new list is taken from the PHP source of textile 2.4.
3783 + Fixed autolinks. Previously the textile reader and writer
3784 incorrectly implented RST-style autolinks for URLs and email
3785 addresses. This has been fixed. Now an autolink is done this way:
3786 `"$":http://myurl.com`.
3787 + Fixed footnotes bug in textile. This affected notes occuring
3788 before punctuation, e.g. `foo[1].`. Closes #518.
3790 * LaTeX reader:
3792 + Better handling of citation commands.
3793 + Better handling of `\noindent`.
3794 + Added a 'try' in rawLaTeXBlock, so we can handle `\begin` without `{`.
3795 Closes #622.
3796 + Made `rawLaTeXInline` try to parse block commands as well. This
3797 is usually what we want, given how `rawLaTeXInline` is used in
3798 the markdown and textile readers. If a block-level LaTeX command
3799 is used in the middle of a paragraph (e.g. `\subtitle` inside a title),
3800 we can treat it as raw inline LaTeX.
3801 + Handle \slash command. Closes #605.
3802 + Basic `\enquote` support.
3803 + Fixed parsing of paragraphs beginning with a group. Closes #606.
3804 + Use curly quotes for bare straight quotes.
3805 + Support obeylines environment. Closes #604.
3806 + Guard against "begin", "end" in inlineCommand and
3807 blockCommand.
3808 + Better error messages for environments. Now it should tell you that
3809 it was looking for \end{env}, instead of giving "unknown parse error."
3811 * HTML reader:
3813 + Added HTML 5 tags to list of block-level tags.
3814 + HTML reader: Fixed bug in `htmlBalanced`, which
3815 caused hangs in parsing certain markdown input using
3816 strict mode.
3817 + Parse `<q>` as `Quoted DoubleQuote`.
3818 + Handle nested `<q>` tags properly.
3819 + Modified `htmlTag` for fewer false positives.
3820 A tag must start with `<` followed by `!`,`?`, `/`, or a letter.
3821 This makes it more useful in the wikimedia and markdown parsers.
3823 * DocBook reader: Support title in "figure" element. Closes #650.
3825 * MediaWiki writer:
3827 + Remove newline after `<br/>` in translation of `LineBreak`
3828 There's no particular need for a newline (other than making the
3829 generated MediaWiki source look nice to a human), and in fact
3830 sometimes it is incorrect: in particular, inside an enumeration, list
3831 items cannot have embedded newline characters. (Brent Yorgey)
3832 + Use `<code>` not `<tt>` for Code.
3834 * Man writer: Escape `-` as `\-`.
3835 Unescaped `-`'s become hyphens, while `\-`'s are left as ascii minus
3836 signs. That is preferable for use with command-line options. See
3837 <http://lintian.debian.org/tags/hyphen-used-as-minus-sign.html>. Thanks
3838 to Andrea Bolognani for bringing the issue to our attention.
3840 * RST writer:
3842 + Improved line block output. Use nonbreaking spaces for
3843 initial indent (otherwise lost in HTML and LaTeX).
3844 Allow multiple paragraphs in a single line block.
3845 Allow soft breaks w continuations in line blocks.
3846 + Properly handle images with no alt text. Closes #678.
3847 + Fixed bug with links with duplicate text. We now (a) use anonymous
3848 links for links with inline URLs, and (b) use an inline link instead
3849 of a reference link if the reference link would require a label that
3850 has already been used for a different link. Closes #511.
3851 + Fixed hyperlinked images. Closes #611. Use `:target:`
3852 field when you have a simple linked image.
3853 + Don't add `:align: center` to figures.
3855 * Texinfo writer: Fixed internal cross-references.
3856 Now we insert anchors after each header, and use `@ref` instead of `@uref`
3857 for links. Commas are now escaped as `@comma{}` only when needed;
3858 previously all commas were escaped. (This change is needed, in part,
3859 because `@ref` commands must be followed by a real comma or period.) Also
3860 insert a blank line in from of `@verbatim` environments.
3862 * DocBook writer:
3864 + Made --id-prefix work in DocBook as well as HTML.
3865 Closes #607.
3866 + Don't include empty captions in figures. Closes #581.
3868 * LaTeX writer:
3870 + Use `\hspace*` for nonbreaking space after line break,
3871 since `~` spaces after a line break are just ignored.
3872 Closes #687.
3873 + Don't escape `_` in URLs or hyperref identifiers.
3874 + Properly escape strings inside \url{}. Closes #576.
3875 + Use `[fragile]` only for slides containing code rendered
3876 using listings. Closes #649.
3877 + Escape `|` as `\vert` in LaTeX math. This avoids a clash with
3878 highlighting-kate's macros, which redefine `|` as a short verbatim
3879 delimiter. Thanks to Björn Peemöller for raising this issue.
3880 + Use minipage rather than parbox for block containers in tables.
3881 This allows verbatim code to be included in grid tables.
3882 Closes #663.
3883 + Prevent paragraphs containing only linebreaks or spaces.
3885 * HTML writer:
3887 + Included `highlighting-css` for code spans, too.
3888 Previously it was only included if used in a code block. Closes #653.
3889 + Improved line breaks with `<dd>` tags. We now put a newline between
3890 `</dd>` and `<dd>` when there are multiple definitions.
3891 + Changed mathjax cdn url so it doesn't use https. (This caused
3892 problems when used with `--self-contained`.) See #609.
3894 * EPUB writer:
3896 + `--number-sections` now works properly.
3897 + Don't strip meta and link elements in epub metadata.
3898 Patch from aberrancy. Closes #589.
3899 + Fixed a couple validation bugs.
3900 + Use ch001, ch002, etc. for chapter filenames. This improves sorting
3901 of chapters in some readers, which apparently sort ch2 after ch10.
3902 Closes #610.
3904 * ODT writer: properly set title property (Arlo O'Keeffe).
3906 * Docx writer:
3908 + Fixed bug with nested lists. Previously a list like
3910 1. one
3911 - a
3912 - b
3913 2. two
3915 would come out with a bullet instead of "2."
3916 Thanks to Russell Allen for reporting the bug.
3917 + Use `w:cr` in `w:r` instead of `w:br` for linebreaks.
3918 This seems to fix a problem viewing pandoc-generated
3919 docx files in LibreOffice.
3920 + Use integer ids for bookmarks. Closes #626.
3921 + Added nsid to abstractNum elements. This helps when merging
3922 word documents with numbered or bulleted lists. Closes #627.
3923 + Use separate footnotes.xml for notes.
3924 This seems to help LibreOffice convert the file, even though
3925 it was valid docx before. Closes #637.
3926 + Use rIdNN identifiers for r:embed in images.
3927 + Avoid reading image files again when we've already processed them.
3928 + Fixed typo in `referenc.docx` that prevented image captions from
3929 working. Thanks to Huashan Chen.
3931 * `Text.Pandoc.Parsing`:
3933 + Fixed bug in `withRaw`, which didn't correctly handle the case
3934 where nothing is parsed.
3935 + Made `emailAddress` parser more correct. Now it is based on RFC 822,
3936 though it still doesn't implement quoted strings in email addresses.
3937 + Revised URI parser. It now allows many more schemes, allows
3938 uppercase URIs, and better handles trailing punctuation and
3939 trailing slashes in bare URIs. Added many tests.
3940 + Simplified and improved singleQuoteStart. This makes `'s'`, `'l'`,
3941 etc. parse properly. Formerly we had some English-centric heuristics,
3942 but they are no longer needed. Closes #698.
3944 * `Text.Pandoc.Pretty`: Added wide punctuation range to `charWidth`.
3945 This fixes bug with Chinese commas in markdown and reST tables, and
3946 a bug that caused combining characters to be dropped.
3948 * `Text.Pandoc.MIME`: Added MIME types for .wof and .eot. Closes #640.
3950 * `Text.Pandoc.Biblio`:
3952 + Run `mvPunc` and `deNote` on metadata too.
3953 This fixed a bug with notes on titles using footnote styles.
3954 + Fixed bug in fetching CSL files from CSL data directory.
3956 * `pandoc.hs`: Give correct value to `writerSourceDirectory` when a URL
3957 is provided. It should be the URL up to the path.
3959 * Fixed/simplified diff output for tests.
3960 Biblio: Make sure mvPunc and deNote run on metadata too.
3961 This fixed a bug with notes on titles using footnote styles.
3963 [under the hood improvements]
3965 * We no longer depend on `utf8-string`. Instead we use functions
3966 defined in `Text.Pandoc.UTF8` that use `Data.Text`'s conversions.
3968 * Use `safeRead` instead of using `reads` directly (various modules).
3970 * "Implicit figures" (images alone in a paragraph) are now handled
3971 differently. The markdown reader gives their titles the prefix `fig:`; the
3972 writers look for this before treating the image as a figure. Though this
3973 is a bit of a hack, it has two advantages: (i) implicit figures can be
3974 limited to the markdown reader, and (ii) they can be deactivated by turning
3975 off the `implicit_figures` extension.
3977 * `catch` from `Control.Exception` is now used instead of the
3978 old Preface `catch`.
3980 * `Text.Pandoc.Shared`: Improved algorithm for `normalizeSpaces`
3981 and `oneOfStrings` (which is now non-backtracking).
3983 * `Text.Pandoc.Biblio`: Remove workaround for `toCapital`.
3984 Now citeproc-hs is fixed upstream, so this is no longer needed.
3985 Closes #531.
3987 * Textile reader: Improved speed of `hyphenedWords`.
3988 This speeds up the textile reader by about a factor of 4.
3990 * Use `Text.Pandoc.Builder` in RST reader, for more flexibility,
3991 better performance, and automatic normalization.
3993 * Major rewrite of markdown reader:
3995 + Use `Text.Pandoc.Builder` instead of lists. This also
3996 means that everything is normalized automatically.
3997 + Move to a one-pass parsing strategy, returning values in the reader
3998 monad, which are then run (at the end of parsing) against the final
3999 parser state.
4001 * In HTML writer, we now use `toHtml` instead of pre-escaping.
4002 We work around the problem that blaze-html unnecessarily escapes `'`
4003 by pre-escaping just the `'` characters, instead of the whole string.
4004 If blaze-html later stops escaping `'` characters, we can simplify
4005 `strToHtml` to `toHtml`. Closes #629.
4007 * Moved code for embedding images in RTFs from `pandoc.hs` to the
4008 RTF writer (which now exports `writeRTFWithEmbeddedImages`).
4010 * Moved citation processing from `pandoc.hs` into the readers.
4011 This makes things more convenient for library users.
4013 * The man pages are now built by an executable `make-pandoc-man-pages`,
4014 which has its own stanza in the cabal file so that dependencies can be
4015 handled by Cabal. Special treatment in `Setup.hs` ensures that this
4016 executable never gets installed; it is only used to create the man pages.
4018 * The cabal file has been modified so that the pandoc library is used
4019 in building the pandoc executable. (This required moving `pandoc.hs`
4020 from `src` to `.`.) This cuts compile time in half.
4022 * `-O2` is no longer used in building pandoc. The performance improvement
4023 it yields is so slight that it is not worth it. (Measured with
4024 benchmarks on ghc 7.4.)
4026 * The `executable` and `library` flags have been removed.
4028 * `-threaded` has been removed from ghc-options.
4030 * Version bounds of dependencies have been raised, and the
4031 `blaze_html_0_5` flag now defaults to True. Pandoc now compiles on
4032 GHC 7.6.
4034 * We now require base >= 4.2.
4036 * Integrated the benchmark program into cabal. One can now do:
4038 cabal configure --enable-benchmarks && cabal build
4039 cabal bench --benchmark-option='markdown' --benchmark-option='-s 20'
4041 The benchmark now uses README + testsuite, so benchmark results
4042 from older versions aren't comparable.
4044 * Integrated test suite with cabal.
4045 To run tests, configure with `--enable-tests`, then `cabal test`.
4046 You can specify particular tests using `--test-options='-t markdown'`.
4047 No output is shown unless tests fail. The Haskell test modules
4048 have been moved from `src/` to `tests/`.
4050 * Moved all data files and templates to the `data/` subdirectory.
4052 * Added an `embed_data_files` cabal flag. This causes all
4053 data files to be embedded in the binary, so that the binary
4054 is self-sufficient and can be relocated anywhere, copied on
4055 a USB key, etc. The Windows installer now uses this.
4056 (Since we no longer have the option to build the executable
4057 without the library, this is the only way to get a relocatable
4058 binary on Windows.)
4060 * Removed pcre3.dll from windows package.
4061 It isn't needed unless highlighting-kate is compilled with the
4062 `pcre-light` flag. By default, regex-prce-builtin is used.
4065pandoc (1.9.4.2)
4067 * Don't encode/decode file paths if base >= 4.4.
4068 Prior to base 4.4, filepaths and command line arguments were treated
4069 as unencoded lists of bytes, not unicode strings, so we had to work
4070 around that by encoding and decoding them. This commit adds CPP
4071 checks for the base version that intelligibly enable encoding/decoding
4072 when needed. Fixes a bug with multilingual filenames when pandoc was
4073 compiled with ghc 7.4 (#540).
4075 * Don't generate an empty H1 after hrule slide breaks.
4076 We now use a slide-level header with contents `[Str "\0"]` to mark
4077 an hrule break. This avoids creation of an empty H1 in these
4078 contexts. Closes #484.
4080 * Docbook reader: Added support for "bold" emphasis. Thanks to mb21.
4082 * In make_osx_package.sh, ensure citeproc-hs is built with the
4083 embed_data_files flag.
4085 * MediaWiki writer: Avoid extra blank lines after sublists (Gavin Beatty).
4087 * ConTeXt writer: Don't escape `&`, `^`, `<`, `>`, `_`,
4088 simplified escapes for `}` and `{` to `\{` and `\}` (Aditya Mahajan).
4090 * Fixed handling of absolute URLs in CSS imports with `--self-contained`.
4091 Closes #535.
4093 * Added webm to mime types. Closes #543.
4095 * Added some missing exports and tests to the cabal file
4096 (Alexander V Vershilov).
4098 * Compile with `-rtsopts` and `-threaded` by default.
4100pandoc (1.9.4.1)
4102 * Markdown reader: Added `cf.` and `cp.` to list of likely abbreviations.
4104 * LaTeX template: Added `linkcolor`, `urlcolor` and `links-as-notes`
4105 variables. Make TOC links black.
4107 * LaTeX template improvements.
4109 + Don't print date unless one is given explicitly in the document.
4110 + Simplified templates.
4111 + Use fontenc [T1] by default, and lmodern.
4112 + Use microtype if available.
4114 * Biblio:
4116 + Add comma to beginning of bare suffix, e.g. `@item1 [50]`.
4117 Motivation: `@item1 [50]` should be as close as possible to
4118 `[@item1, 50]`.
4119 + Added workaround for a bug in citeproc-hs 0.3.4 that causes footnotes
4120 beginning with a citation to be empty. Closes #531.
4122 * Fixed documentation on mixed lists. Closes #533.
4124pandoc (1.9.4)
4126 * Simplified `Text.Pandoc.Biblio` and fixed bugs with citations inside
4127 footnotes and captions. We now handle note citations by inserting
4128 footnotes during initial citation processing, and doing a separate
4129 pass later to remove notes inside notes.
4131 * Added 'zenburn' highlight style from highlighting-kate.
4133 * Added Slideous writer. Slideous is an HTML + javascript slide show
4134 format, similar to Slidy, but works with IE 7. (Jonas Smedegaard)
4136 * LaTeX writer:
4138 + Ensure we don't have extra blank lines at ends of cells.
4139 This can cause LaTeX errors, as they are interpreted as new paragraphs.
4140 + More consistent interblock spacing.
4141 + Require highlighting-kate >= 0.5.1, for proper highlighted inline
4142 code in LaTeX. Closes #527.
4143 + Ensure that a Verbatim at the end of a footnote is followed by
4144 a newline. (Fixes a regression in the previous version.)
4145 + In default template, use black for internal links and TOC.
4146 Added commented-out code to use footnotes for links, as would
4147 be suitable in print output.
4149 * Beamer writer: When `--incremental` is used, lists inside
4150 a block quote should appear all at once. (This makes Beamer
4151 output consistent with the HTML slide show formats.)
4153 * ConTeXt writer:
4155 + Escape `%` as `\letterpercent{}` not `\letterpercent `,
4156 to avoid gobbling spaces after the `%` sign.
4157 + Ensure space after `\stopformula`.
4159 * Markdown writer:
4161 + Use `:` form instead of `~` in definition lists, for better
4162 compatibility with other markdown implementations.
4163 + Don't wrap the term, because it breaks definition lists.
4164 + Use a nonzero space to prevent false recognition
4165 of list marker in ordered lists. Closes #516.
4167 * Org writer: Add space before language name. Closes #523.
4169 * Docx writer: Simplified bullet characters so they work properly
4170 with Word 2007. Closes #520.
4172 * LaTeX reader: Support `\centerline`.
4174 * RST reader: handle figures. Closes #522.
4176 * Textile reader: fix for `<notextile>` and `==`. Closes #517.
4177 (Paul Rivier)
4179pandoc (1.9.3)
4181 * Fixed bug in `fromEntities`. The previous version would turn
4182 `hi & low you know;` into `hi &`.
4184 * HTML reader:
4186 + Don't skip nonbreaking spaces.
4187 Previously a paragraph containing just `&nbsp;` would be rendered
4188 as an empty paragraph. Thanks to Paul Vorbach for pointing out the bug.
4189 + Support `<col>` and `<caption>` in tables. Closes #486.
4191 * Markdown reader:
4193 + Don't recognize references inside delimited code blocks.
4194 + Allow list items to begin with lists.
4196 * Added basic docbook reader (John MacFarlane and Mauro Bieg).
4198 * LaTeX reader:
4200 + Handle `\bgroup`, `\egroup`, `\begingroup`, `\endgroup`.
4201 + Control sequences can't be followed by a letter.
4202 This fixes a bug where `\begingroup` was parsed as `\begin`
4203 followed by `group`.
4204 + Parse 'dimension' arguments to unknown commands. e.g. `\parindent0pt`
4205 + Make `\label` and `\ref` sensitive to `--parse-raw`.
4206 If `--parse-raw` is selected, these will be parsed as raw latex
4207 inlines, rather than bracketed text.
4208 + Don't crash on unknown block commands (like `\vspace{10pt}`)
4209 inside `\author`; just skip them. Closes #505.
4211 * Textile reader:
4213 + Implemented literal escapes with `==` and `<notextile>`. Closes #473.
4214 + Added support for LaTeX blocks and inlines (Paul Rivier).
4215 + Better conformance to RedCloth inline parsing (Paul Rivier).
4216 + Parse '+text+' as emphasized (should be underlined, but this
4217 is better than leaving literal plus characters in the output.
4219 * Docx writer: Fixed multi-paragraph list items. Previously they each
4220 got a list marker. Closes #457.
4222 * LaTeX writer:
4224 + Added `--no-tex-ligatures` option to avoid replacing
4225 quotation marks and dashes with TeX ligatures.
4226 + Use `fixltx2e` package to provide '\textsubscript'.
4227 + Improve spacing around LaTeX block environments:
4228 quote, verbatim, itemize, description, enumerate.
4229 Closes #502.
4230 + Use blue instead of pink for URL links in latex/pdf output.
4232 * ConTeXt writer: Fixed escaping of `%`.
4233 In text, `%` needs to be escaped as `\letterpercent`, not `\%`
4234 Inside URLs, `%` needs to be escaped as `\%`
4235 Thanks to jmarca and adityam for the fix. Closes #492.
4237 * Texinfo writer: Escape special characters in node titles.
4238 This fixes a problem pointed out by Joost Kremers. Pandoc used
4239 to escape an '@' in a chapter title, but not in the corresponding
4240 node title, leading to invalid texinfo.
4242 * Fixed document encoding in texinfo template.
4243 Resolves Debian Bug #667816.
4245 * Markdown writer:
4247 + Don't force delimited code blocks to be flush left.
4248 Fixes bug with delimited code blocks inside lists etc.
4249 + Escape `<` and `$`.
4251 * LaTeX writer: Use `\hyperref[ident]{text}` for internal links.
4252 Previously we used `\href{\#ident}{text}`, which didn't work on
4253 all systems. Thanks to Dirk Laurie.
4255 * RST writer: Don't wrap link references. Closes #487.
4257 * Updated to use latest versions of blaze-html, mtl.
4260pandoc (1.9.2)
4262 * LaTeX reader:
4264 + Made `lstlisting` work as a proper verbatim environment.
4265 + Fixed bug parsing LaTeX tables with one column.
4267 * LaTeX writer:
4269 + Use `{}` around `ctable` caption, so that formatting can be used.
4270 + Don't require eurosym package unless document has a €.
4272 * LaTeX template: Added variables for `geometry`, `romanfont`,
4273 `sansfont`, `mathfont`, `mainfont` so users can more easily
4274 customize fonts.
4276 * PDF writer:
4278 + Run latex engine at least two times, to ensure
4279 that PDFs will have hyperlinked bookmarks.
4280 + Added PDF metadata (title,author) in LaTeX standalone + PDF output.
4282 * Texinfo writer: retain directories in image paths. (Peter Wang)
4284 * RST writer: Better handling of inline formatting, in accord
4285 with docutils' "inline markup recognition rules" (though we don't
4286 implement the unicode rules fully). Now `hi*there*hi` gets
4287 rendered properly as `hi\ *there*\ hi`, and unnecessary
4288 `\ ` are avoided around `:math:`, `:sub:`, `:sup:`.
4290 * RST reader:
4292 + Parse `\ ` as null, not escaped space.
4293 + Allow `` :math:`...` `` even when not followed by blank
4294 or `\`. This does not implement the complex rule docutils follows,
4295 but it should be good enough for most purposes.
4296 + Add support for the rST default-role directive. (Greg Maslov)
4298 * Text.Pandoc.Parsing: Added `stateRstDefaultRole` field to `ParserState`.
4299 (Greg Maslov)
4301 * Markdown reader: Properly handle citations nested in other inline
4302 elements.
4304 * Markdown writer: don't replace empty alt in image with "image".
4306 * DZSlides: Updated template.html and styles in default template.
4307 Removed bizarre CSS for `q` in dzslides template.
4309 * Avoid repeated `id` attribute in section and header in HTML slides.
4311 * README improvements: new instructions on internal links,
4312 removed misleading note on reST math.
4314 * Build system:
4316 + Fixed Windows installer so that dzslides works.
4317 + Removed stripansi.sh.
4318 + Added .travis.yml for Travis continuous integration support..
4319 + Fixed upper bound for zlib (Sergei Trofimovich).
4320 + Fixed upper bound for test-framework.
4321 + Updated haddocks for haddock-2.10 (Sergei Trofimovich).
4323pandoc (1.9.1.2)
4325 * Added `beamer+lhs` as output format.
4327 * Don't escape `<` in `<style>` tags with `--self-contained`.
4328 This fixes a bug which prevented highlighting from working
4329 when using `--self-contained`.
4331 * PDF: run latex engine three times if `--toc` specified.
4332 This fixes page numbers in the table of contents.
4334 * Docx writer: Added TableNormal style to tables.
4336 * LaTeX math environment fixes. `aligned` is now used instead of
4337 the nonexistent `aligned*`. `multline` instead of the nonexistent
4338 `multiline`.
4340 * LaTeX writer: Use `\textasciitilde` for literal `~`.
4342 * HTML writer: Don't escape contents of EQ tags with --gladtex.
4343 This fixes a regression from 1.8.
4345 * Use `<q>` tags for Quoted items for HTML5 output.
4346 The quote style can be changed by modifying the template
4347 or including a css file. A default quote style is included.
4349 * LaTeX reader: Fixed accents (\~{a}, `\c{c}`).
4350 Correctly handle \^{}. Support "minted" as a LaTeX verbatim block.
4352 * Updated LaTeX template for better language support.
4353 Use `polyglossia` instead of `babel` with xetex.
4354 Set `lang` as documentclass option.
4355 `\setmainlanguage` will use the last of a comma-separated
4356 list of languages. Thanks to François Gannaz.
4358 * Fixed default LaTeX template so `\euro` and `€` work. The
4359 `eurosym` package is needed if you are using pdflatex.
4361 * Fixed escaping of period in man writer (thanks to Michael Thompson).
4363 * Fixed list label positions in beamer.
4365 * Set `mainlang` variable in context writer.
4366 This parallels behavior of latex writer. `mainlang` is the last
4367 of a comma-separated list of languages in lang.
4369 * EPUB language metadat: convert e.g. `en_US` from locale to `en-US`.
4371 * Changed `-V` so that you can specify a key without a value.
4372 Such keys get the value `true`.
4374 * Fixed permissions on installed man pages - thanks Magnus Therning.
4376 * Windows installer: require XP or higher. The installer is
4377 now compiled on a Windows 7 machine, which fixes a problem
4378 using citation functions on Windows 7.
4380 * OSX package: Check for 64-bit Intel CPU before installing.
4382pandoc (1.9.1.1)
4384 * Better handling of raw latex environments in markdown. Now
4386 \begin{equation}
4387 a_1
4388 \end{equation}
4390 turns into a raw latex block as expected.
4392 * Improvements to LaTeX reader:
4394 + Skip options after block commands.
4395 + Correctly handle `{\\}` in braced.
4396 + Added a needed 'try'.
4397 + Citations: add `, ` to suffix if it doesn't start with space or
4398 punctuation. Otherwise we get no space between the year and the
4399 suffix in author-date styles.
4401 * Added two needed data files for S5. This fixes a problem with
4402 `pandoc -t s5 --self-contained`. Also removed `slides.min.js`,
4403 which was no longer being used.
4405 * Fixed some minor problems in `reference.docx`:
4406 name on "Date" style, `xCs` instead of `xIs`.
4408 * Fixed a problem creating docx files using a reference docx
4409 modified using Word. The problem seems to be that Word
4410 modifies `_rels/.rels`, changing the Type of the Relationship to
4411 `docProps/core.xml`. Pandoc now changes this back to the correct
4412 value if it has been altered, fixing the problem.
4414 * Fixed html5 template so it works properly with highlighting.
4416pandoc (1.9.1)
4418 * LaTeX reader:
4420 + Fixed regression in 1.9; properly handle escaped $ in latex math.
4421 + Put LaTeX verse environments in blockquotes.
4423 * Markdown reader:
4425 + Limit nesting of strong/emph. This avoids exponential lookahead
4426 in parasitic cases, like `a**a*a**a*a**a*a**a*a**a*a**a*a**a*a**`.
4427 + Improved attributes syntax (inn code blocks/spans):
4428 (1) Attributes can contain line breaks. (2) Values in key-value
4429 attributes can be surrounded by either double or single quotes, or
4430 left unquoted if they contain no spaces.
4432 * Don't wrap headers in markdown or RST writers.
4434 * Added `stateMaxNestingLevel` to `ParserState`.
4435 We set this to 6, so you can still have `Emph` inside `Emph`,
4436 just not indefinitely.
4438 * More efficient implementation of `nowrap` in `Text.Pandoc.Pretty`.
4440 * `Text.Pandoc.PDF`: Only run latex twice if `\tableofcontents`
4441 is present.
4443 * Require highlighting-kate >= 0.5.0.2, texmath >= 0.6.0.2.
4445pandoc (1.9.0.5)
4447 * Changed cabal file so that build-depends for the test program
4448 are not required unless the tests flag is used.
4450 * LaTeX writer: insert `{}` between adjacent hyphens so they don't
4451 form ligatures (dashes) in code spans.
4453pandoc (1.9.0.4)
4455 * Raised version bound on test-framework to avoid problems
4456 compiling tests on GHC 7.4.1.
4458 * LaTeX reader: Use raw LaTeX as fallback inline text for Cites,
4459 so citations don't just disappear unless you process with
4460 citeproc. Ignore `\bibliographystyle`, `\nocite`.
4462 * Simplified tex2pdf; it will always run latex twice to
4463 resolve table of contents and hyperrefs.
4465pandoc (1.9.0.3)
4467 * Require Cabal >= 1.10.
4468 * Tweaked cabal file to meet Cabal 1.10 requirements.
4470pandoc (1.9.0.2)
4472 * Allow build with json 0.4 or 0.5. Otherwise we can't build with
4473 ghc 6.12.
4475pandoc (1.9)
4477 [new features]
4479 * Added a Microsoft Word `docx` writer. The writer includes support
4480 for highlighted code and for math (which is converted from TeX to OMML,
4481 Office's native math markup language, using texmath's new OMML module).
4482 A new option `--reference-docx` allows the user to customize the
4483 styles.
4485 * Added an `asciidoc` writer (<http://www.methods.co.nz/asciidoc/>).
4487 * Better support for slide shows:
4489 + Added a `dzslides` writer. DZSlides is a lightweight HTML5/javascript
4490 slide show format due to Paul Rouget (<http://paulrouget.com/dzslides/>).
4492 + Added a LaTeX `beamer` writer. Beamer is a LaTeX package for creating
4493 slide presentations.
4495 + New, flexible rules for dividing documents into sections and slides
4496 (see the "Structuring the slide show" in the User's Guide). These
4497 are backward-compatible with the old rules, but they allow slide
4498 shows to be organized into sections and subsections containing
4499 multiple slides.
4501 + A new `--slide-level` option allows users to override defaults
4502 and select a slide level below the first header level with content.
4504 * A new `--self-contained` option produces HTML output that does not
4505 depend on an internet connection or the presence of any external
4506 files. Linked images, CSS, and javascript is downloaded (or fetched
4507 locally) and encoded in `data:` URIs. This is useful for making portable
4508 `HTML slide shows. The --offline` option has been deprecated and is now
4509 `treated as a synonym or --self-contained`.
4511 * Support for PDF output:
4513 + Removed the old `markdown2pdf`.
4514 + `pandoc` can now create PDFs (assuming you have latex and a set of
4515 appropriate packages installed): just specify an output file with the
4516 `.pdf` extension.
4517 + A new option `--latex-engine` allows you to specify `pdflatex`,
4518 `xelatex`, or `lualatex` as the processor.
4520 * Highlighting changes:
4522 + Syntax highlighting is now a standard feature; the `highlighting`
4523 flag is no longer needed when compiling.
4524 + A new `--no-highlight` option allows highlighting to be disabled.
4525 + Highlighting now works in `docx`, `latex`, and `epub`, as well as
4526 `html`, `html5`, `dzslides`, `s5`, and `slidy`.
4527 + A new `--highlight-style` option selects between various highlighting
4528 color themes.
4530 * Internal links to sections now work in ConTeXt and LaTeX as well as HTML.
4532 * LaTeX `\include` and `\usepackage` commands are now processed,
4533 provided the files are in the working directory.
4535 * EPUB improvements:
4537 + Internal and external links now work in EPUB.
4538 + Raw HTML is allowed.
4539 + New `--epub-embed-font` option.
4540 + Customizable templates for EPUB pages offer more control over
4541 formatting: `epub-page.html`, `epub-coverimage.html`,
4542 `epub-titlepage.html`.
4544 * `--mathml` now works with DocBook.
4546 * Added support for math in RST reader and writer. Inline math uses the
4547 `` :math:`...` `` construct. Display math uses
4549 .. math:: ...
4551 or if the math is multiline,
4553 .. math::
4555 ...
4557 These constructions are now supported now by `rst2latex.py`.
4559 * GitHub syntax for fenced code blocks is supported in pandoc's
4560 markdown. You can now write
4562 ```ruby
4563 x = 2
4564 ```
4566 instead of
4568 ~~~ {.ruby}
4569 x = 2
4570 ~~~~
4572 * Easier scripting: a new `toJsonFilter` function makes it easier to
4573 write Haskell scripts to manipulate the Pandoc AST.
4575 [behavior changes]
4577 * Fixed parsing of consecutive lists in markdown.
4578 Pandoc previously behaved like Markdown.pl for consecutive
4579 lists of different styles. Thus, the following would be parsed
4580 as a single ordered list, rather than an ordered list followed
4581 by an unordered list:
4583 1. one
4584 2. two
4586 - one
4587 - two
4589 This change makes pandoc behave more sensibly, parsing this as
4590 two lists. Any change in list type (ordered/unordered) or in
4591 list number style will trigger a new list. Thus, the following
4592 will also be parsed as two lists:
4594 1. one
4595 2. two
4597 a. one
4598 b. two
4600 Since we regard this as a bug in Markdown.pl, and not something
4601 anyone would ever rely on, we do not preserve the old behavior
4602 even when `--strict` is selected.
4604 * Dashes work differently with `--smart`: `---` is always em-dash,
4605 and `--` is always en-dash. Pandoc no longer tries to guess when
4606 `-` should be en-dash. *Note:* This may change how existing documents
4607 look when processed with pandoc. A new option, `--old-dashes`,
4608 is provided for legacy documents.
4610 * The markdown writer now uses setext headers for levels 1-2.
4611 The old behavior (ATX headers for all levels) can be restored
4612 using the new `--atx-headers` option.
4614 * Links are now allowed in markdown image captions. They are also
4615 allowed in links, but will appear there as regular text. So,
4617 [link with [link](/url)](/url)
4619 will turn into
4621 <p><a href="/url">link with link</a></p>
4623 * Improved handling of citations using `citeproc-hs-0.3.4`.
4624 Added `--citation-abbreviations` option.
4626 * Citation keys can no longer end with a punctuation character.
4627 This means that `@item1.` will be parsed as a citation with key
4628 'item1', followed by a period, instead of a citation with key
4629 'item1.', as was the case previously.
4631 * In HTML output, citations are now put in a span with class `citation`.
4633 * The markdown reader now recognizes DocBook block and inline tags.
4634 It was always possible to include raw DocBook tags in a markdown
4635 document, but now pandoc will be able to distinguish block from
4636 inline tags and behave accordingly. Thus, for example,
4638 <sidebar>
4639 hello
4640 </sidebar>
4642 will not be wrapped in `<para>` tags.
4644 * The LaTeX parser has been completely rewritten; it is now much more
4645 accurate, robust, and extensible. However, there are two important
4646 changes in how it treats unknown LaTeX. (1) Previously, unknown
4647 environments became BlockQuote elements; now, they are treated
4648 as "transparent", so `\begin{unknown}xyz\end{unknown}` is the
4649 same as `xyz`. (2) Previously, arguments of unknown commands
4650 were passed through with their braces; now the braces are stripped
4651 off.
4653 * `--smart` is no longer selected automatically with `man` output.
4655 * The deprecated `--xetex` option has been removed.
4657 * The `--html5`/`-5` option has been deprecated. Use `-t html5`
4658 instead. `html5` and `html5+lhs` are now separate output formats.
4660 * Single quotes are no longer escaped in HTML output. They do not
4661 need to be escaped outside of attributes.
4663 * Pandoc will no longer transform leading newlines in code
4664 blocks to `<br/>` tags.
4666 * The ODT writer now sizes images appropriately, using the image
4667 size and DPI information embedded in the image.
4669 * `--standalone` is once again implicitly for a non-text output format
4670 (ODT, EPUB). You can again do `pandoc test.txt -o test.odt`
4671 and get a standalone ODT file.
4673 * The Docbook writer now uses `<sect1>`, `<sect2>`, etc. instead of
4674 `<section>`.
4676 * The HTML writer now uses `<del>` for strikeout.
4678 * In HTML output with `--section-divs`, the classes `section` and
4679 `level[1,2,..6]` are put on the `div` tags so they can be styled.
4680 In HTML 5 output with `--section-divs`, the classes
4681 `level[1,2,...6]` are put on `section` tags.
4683 * EPUB writer changes:
4685 + The `lang` variable now sets the language
4686 in the metadata (if it is not set, we default to the locale).
4687 + EPUB: UTF-8 is used rather than decimal entities.
4689 * Added `titleslide` class to title slide in S5 template.
4691 * In HTML, EPUB, and docx metadata, the date is normalized into
4692 YYYY-MM-DD format if possible. (This is required for validation.)
4694 * Attributes in highlighted code blocks are now preserved in HTML.
4695 The container element will have the classes, id, and key-value attributes
4696 you specified in the delimited code block. Previously these were stripped
4697 off.
4699 * The reference backlink in the HTML writer no longer has a special
4700 `footnoteBacklink` class.
4702 * The HTML template has been split into `html` and `html5` templates.
4704 * Author and date are treated more consistently in HTML templates.
4705 Authors are now `<h2>`, date `<h3>`.
4707 * URLs are hyphenated in the ConTeXt writer (B. Scott Michel).
4709 * In `Text.Pandoc.Builder`, `+++` has been replaced by `<>`.
4711 [bug fixes]
4713 * Better support for combining characters and East Asian wide characters
4714 in markdown and reST.
4716 * Better handling of single quotes with `--smart`.
4717 Previously `D'oh l'*aide*` would be parsed with left and right single
4718 quotes instead of apostrophes. This kind of error is now fixed.
4720 * Highlighting: Use `reads` instead of `read` for better error handling.
4721 Fixes crash on `startNum="abc"`.
4723 * Added blank comment after directives in rst template.
4725 * Unescape entities in citation `refId`. The `refId`s coming
4726 from citeproc contain XML numeric entities, and these don't match with the
4727 citation keys parsed by pandoc. Solution is to unescape them.
4729 * HTML reader: Fixed bug parsing tables with both thead and tbody.
4731 * Markdown reader:
4733 + Better handling of escapes in link URLs and titles.
4734 + Fixed backslash escapes in reference links.
4735 + Fixed bug in table/hrule parsing, by checking that the top
4736 line of a table is not followed by a blank line. This bug caused
4737 slowdowns on some files with hrules and tables, as pandoc tried to
4738 interpret the hrules as the tops of multiline tables.
4739 + Fixed bug in code block attribute parser. Previously the ID attribute
4740 got lost if it didn't come first. Now attributes can come in any order.
4742 * RST reader: allow footnotes followed by newline without space characters.
4744 * LaTeX reader:
4746 + Ignore empty groups {}, { }.
4747 + LaTeX reader: Handle \@.
4748 + LaTeX reader: Don't crash on commands like `\itemsep`.
4749 + LaTeX reader: Better handling of letter environments.
4751 * RST writer: Fixed bug involving empty table cells. isSimple was being
4752 calculated in a way that assumed there were no non-empty cells.
4754 * ConTeXt writer:
4756 + Made `--toc` work even without `--number-sections`.
4757 + Escape # in link URLs.
4758 + Use buffering for footnotes containing code blocks.
4759 + Changed 'descr' to 'description', fixed alignment.
4761 * LaTeX writer:
4763 + Escape euro character.
4764 + Don't escape ~ inside href{...}.
4765 + Escape # in href URLs.
4766 + Improved detection of book classes. We now check the
4767 `documentclass` variable, and if that is not set, we look through
4768 the template itself. Also, we have added the KOMA classes scrreprt
4769 and scrbook. You can now make a book using
4770 `pandoc -V documentclass:book mybook.txt -o mybook.pdf`
4771 + LHS files now set the "listings" variable, so that the definition
4772 of the `code` environment will be included in the template.
4773 + Links are colored blue by default (this can be changed by
4774 modifying `hyperref` settings in the template).
4775 + Added `lang` variable to LaTeX template.
4777 * HTML writer:
4779 + Fixed bug in HTML template with html5 and mathml.
4780 + Don't use self-closing img, br, hr tags for HTML5.
4781 + Use `<section>` for footnotes if HTML5.
4782 + Update HTML templates to use Content-Style-Type meta tag.
4783 + Use separate variables for meta-date, meta-author.
4784 This makes footnotes work in author and date fields.
4785 + Use 'vertical-align:middle' in WebTeX math for better alignment.
4787 * S5/slidy writer: Make footnotes appear on separate slide at end.
4789 * MIME: Added 'layout-cache' to getMimeType. This ensures that the
4790 META-INF/manifest.xml for ODT files will have everything it needs, so
4791 that ODT files modified by LibreOffice can be used as `--reference-odt`.
4793 * `Text.Pandoc.Templates`: Return empty string for json template.
4795 * `Text.Pandoc.Biblio`:
4797 + Expand citations recursively inside nested inlines.
4798 + Treat `\160` as space when parsing locator and suffix.
4799 This fixes a bug with "p. 33" when `--smart` is used. Previously
4800 the whole "p. 33" would be included in the suffix, with no locator.
4801 + Put whole author-in-text citation in a Cite. Previously just the
4802 date and other info went in the Cite.
4803 + Don't add comma+space to prefix if it ends in punctuation.
4805 * Updated chicago-author-date.csl. The old version did not work
4806 properly for edited volumes with no author.
4808 * EPUB writer:
4810 + Add date to EPUB titlepage and metadata.
4811 + Added TOC identifier in EPUB page template.
4812 + Don't generate superfluous file `cover-image.jpg`.
4814 [under the hood improvements]
4816 * Modified `make_osx_package.sh` to use cabal-dev.
4817 Items are no longer installed as root.
4818 Man pages are zipped and given proper permissions.
4820 * Modified windows installer generater to use cabal-dev.
4822 * Setup: Making man pages now works with cabal-dev (at least on OSX). In
4823 Setup.hs we now invoke 'runghc' in a way that points it to the correct
4824 package databases, instead of always falling back to the default user
4825 package db.
4827 * Updated to work with GHC 7.4.1.
4829 * Removed dependency on old-time.
4831 * Removed dependency on dlist.
4833 * New slidy directory for "self-contained."
4835 * TeXMath writer: Use unicode thin spaces for thin spaces.
4837 * Markdown citations: don't strip off initial space in locator.
4839 [API changes]
4841 * Removed `Apostrophe`, `EmDash`, `EnDash`, and `Ellipses`
4842 from the native `Inline` type in pandoc-types. Now we use `Str`
4843 elements with unicode.
4845 * Improvements to `Text.Pandoc.Builder`:
4847 + `Inlines` and `Blocks` are now newtypes (not synonyms for
4848 sequences).
4849 + Instances are defined for `IsString`, `Show`, `Read`, `Monoid`,
4850 and a new `Listable` class, which allows these to be manipulated
4851 to some extent like lists. Monoid append includes automatic
4852 normalization.
4853 + `+++` has been replaced by `<>` (mappend).
4855 * Use blaze-html instead of xhtml for HTML generation.
4856 This changes the type of `writeHtml`.
4858 * `Text.Pandoc.Shared`:
4860 + Added `warn` and `err`.
4861 + Removed `unescapeURI`, modified `escapeURI`.
4862 (See under [behavior changes], above.)
4864 * Changes in URI escaping: Previously the readers escaped URIs by
4865 converting unicode characters to octets and then percent encoding.
4866 Now unicode characters are left as they are, and `escapeURI` only
4867 percent-encodes space characters. This gives more readable
4868 URIs, and works well with modern user agents. URIs are no longer unescaped
4869 at all on conversion to `markdown`, `asciidoc`, `rst`, `org`.
4871 * New module `Text.Pandoc.SelfContained`.
4873 * New module `Text.Pandoc.Docx`.
4875 * New module `Text.Pandoc.PDF`.
4877 * Added `writerBeamer` to `WriterOptions`.
4879 * Added `normalizeDate` to `Text.Pandoc.Shared`.
4881 * Added `splitStringWithIndices` in `Text.Pandoc.Shared`.
4882 This is like `splitWithIndices`, but it is sensitive to distinctions
4883 between wide, combining, and regular characters.
4885 * `Text.Pandoc.Pretty`:
4887 + Added `chomp` combinator.
4888 + Added `beforeNonBreak` combinator. This allows you to include
4889 something conditionally on it being before a nonblank.
4890 Used for RST inline math.
4891 + Added `charWidth` function. All characters marked W or F in the unicode
4892 spec EastAsianWidth.txt get width 2.
4893 + Added `realLength`, based on `charWidth`. `realLength` is now
4894 used in calculating offsets.
4896 * New module `Text.Pandoc.Slides`, for common functions for breaking
4897 a document into slides.
4899 * Removed `Text.Pandoc.S5`, which is no longer needed.
4901 * Removed `Text.Pandoc.CharacterReferences`. Moved
4902 `characterReference` to `Text.Pandoc.Parsing`.
4903 `decodeCharacterReferences` is replaced by `fromEntities`
4904 in `Text.Pandoc.XML`.
4906 * Added `Text.Pandoc.ImageSize`. This is intened for use
4907 in `docx` and `odt` writers, so the size and dpi of images
4908 can be calculated.
4910 * Removed `writerAscii` in `WriterOptions`.
4912 * Added `writerHighlight` to `WriterOptions`.
4914 * Added `DZSlides` to `HTMLSlideVariant`.
4916 * `writeEPUB` has a new argument for font files to embed.
4918 * Added `stateLastStrPos` to `ParserState`. This lets us keep track
4919 of whether we're parsing the position immediately after a regular
4920 (non-space, non-symbol) string, which is useful for distinguishing
4921 apostrophes from single quote starts.
4923 * `Text.Pandoc.Parsing`:
4925 + `escaped` now returns a `Char`.
4926 + Removed `charsInBalanced'`, added a character parser as
4927 a parameter of `charsInBalanced`. This is needed for
4928 proper handling of escapes, etc.
4929 + Added `withRaw`.
4931 * Added `toEntities` to `Text.Pandoc.XML`.
4933 * `Text.Pandoc.Readers.LaTeX`:
4935 + Export `handleIncludes`.
4936 + Export `rawLaTeXBlock` instead of `rawLaTeXEnvironment'`.
4938 * Added `ToJsonFilter` class and `toJsonFilter` function to
4939 `Text.Pandoc`, deprecating the old `jsonFilter` function.
4941 * `Text.Pandoc.Highlighting`:
4943 + Removed `highlightHtml`, `defaultHighlightingCss`.
4944 + Export `formatLaTeXInline`, `formatLaTeXBlock`, and `highlight`, plus
4945 key functions from highlighting-kate.
4946 + Changed types of highlighting function. `highlight` returns a
4947 `Maybe`, not an `Either`.
4949pandoc (1.8.2.1)
4951 * Relaxed cabal consntraints for test-framework (S. Trofimovich).
4953 * Relaxed cabal constraints for pandoc-types.
4955 * Adjusted Arbitrary instance to help avoid timeouts in tests.
4957 * Added `Tests.Writers.Markdown` to cabal file.
4959pandoc (1.8.2)
4961 * Added script to produce OS X package.
4963 * Made `templates` directory a git submodule. This should make it
4964 easier for people to revise their custom templates when the default
4965 templates change.
4967 * Changed template naming scheme: `FORMAT.template` -> `default.FORMAT`.
4968 **Note:** If you have existing templates in `~/.pandoc/templates`, you
4969 must rename them to conform to the new scheme!
4971 * Fixed smart quotes bug, now handling `'...hi'` properly.
4973 * RST reader:
4975 + Partial support for labeled footnotes.
4976 + Improved accuracy of `simpleReferenceName` parser.
4978 * HTML reader:
4980 + Substitute correct unicode characters for
4981 characters in the 128..159 range, which are often found even in
4982 HTML that purports to be UTF-8.
4984 * LaTeX reader: Handle `\subtitle` command (a subtitle is added
4985 to the title, after a colon and linebreak). Closes #280.
4987 * Leaner `reference.odt`.
4989 * Added unexported module `Text.Pandoc.MIME` for use in
4990 the ODT writer.
4992 * ODT writer: Construct `manifest.xml` based on archive contents.
4993 This fixes a bug in ODTs containing images. Recent versions of
4994 LibreOffice would reject these as corrupt, because `manifest.xml`
4995 did not contain a reference to the image files.
4997 * LaTeX writer:
4999 + Make verbatim environments flush to avoid spurious
5000 blank lines. Closes #277.
5001 + Use `\texttt` and escapes insntead of `\verb!...!`, which
5002 is too fragile (doesn't work in command arguments).
5003 + Use `\enquote{}` for quotes if the template includes
5004 the `csquotes` package. This provides better support for
5005 local quoting styles. (Thanks to Andreas Wagner for the idea.)
5007 * ConTeXt writer: Make `\starttyping`/`\stoptyping` flush with
5008 margin, preventing spurious blank lines.
5010 * Slidy writer:
5012 + Use non-minimized version of `slidy.css` with `--offline`
5013 option, so users can more easily edit it.
5014 + Also fixed a bug in the CSS that prevented proper centering
5015 of title (now reported and fixed upstream).
5017 * S5 writer:
5019 + Replaced `s5/default/slides.js.{comment,packed}` with
5020 new compressed `s5/default/slides.min.js`.
5021 + Use `data:` protocol to embed S5 CSS in `<link>` tags,
5022 when `--offline` is specified. Using inline CSS didn't
5023 work with Chrome or Safari. This fixes offline
5024 S5 on those browsers.
5026 * HTML writer: Removed English title on footnote backlinks.
5027 This is incongrous in non-English documents.
5029 * Docbook writer:
5031 + Use CALS tables. (Some older docbook software does not work
5032 well with XHTML tables.) Closes #77.
5033 + Use `programlisting` tags (instead of `screen`) for code blocks.
5035 * `markdown2pdf`:
5037 + Calls latex with `-halt-on-error -interaction nonstopmode` instead
5038 of `-interaction=batchmode`, which essentially just ignored errors,
5039 leading to bad results. Better to know when something is wrong.
5040 + Fixed issues with non-UTF-8 output of `pdflatex`.
5041 + Better error reporting.
5043 * `--mathjax` now takes an optional URL argument. If it is not
5044 provided, pandoc links directly to the (secure) mathjax CDN,
5045 as now recommended (thanks to dsanson).
5047 * Deprecated `--xetex` option in `pandoc`. It is no longer needed,
5048 since the LaTeX writer now produces a file that can be processed by
5049 `latex`, `pdflatex`, `lualatex`, or `xelatex`.
5051 * Introduced `--luatex` option to `markdown2pdf`. This causes `lualatex`
5052 to be used to create the PDF.
5054 * If a template specified with `--template` is not found, look for it
5055 in `datadir`. Also, if no extension is provided, supply one based
5056 on the writer. So now you can put your `special.latex` template in
5057 `~/.pandoc/templates`, and use it from any directory via
5058 `pandoc -t latex --template special`.
5060 * Default template improvements:
5062 + HTML: Display author and date after title.
5063 + HTML: Made table of contents more customizable. The container
5064 for the TOC is now in the template, so users can insert a header
5065 or other styling. (Thanks to Bruce D'Arcus for the suggestion.)
5066 + HTML, Slidy, S5: Enclose scripts in CDATA tags.
5067 + Slidy, S5: Added `s5-url` and `slidy-url` variables, instead of
5068 hard-coding. If you want to put your slidy files in the slidy
5069 subdirectory, for example, you can do
5070 `pandoc -t slidy -V slidy-url=slidy -s`.
5071 + LaTeX: Use `\and` to separate authors in LaTeX documents (reader
5072 & writer). Closes #279.
5073 + LaTeX: Use different `hyperref` options for `xetex`, fixing
5074 problems with unicode bookmarks (thanks to CircleCode).
5075 + LaTeX: Removed `ucs` package, use `utf8` rather than `utf8x`
5076 with `inputenc`. This covers fewer characters but is more
5077 robust with other packages, and `ucs` is unmaintained. Users
5078 who need better unicode support should use xelatex or lualatex.
5080pandoc (1.8.1.2)
5082 * Added `--epub-cover-image` option.
5084 * Documented `--biblatex` and `--natbib` options.
5086 * Allow `--section-divs` with slidy output. Resolves Issue #296.
5088 * Disallow notes within notes in reST and markdown.
5089 These previously caused infinite looping and stack overflows.
5090 For example:
5092 [^1]
5094 [^1]: See [^1]
5096 Note references are allowed in reST notes, so this isn't a full
5097 implementation of reST. That can come later. For now we need to
5098 prevent the stack overflows. Partially resolves Issue #297.
5100 * EPUB writer: Allow non-plain math methods.
5102 * Forbid ()s in citation item keys. Resolves Issue #304: problems with
5103 `(@item1; @item2)` because the final paren was being parsed as part of
5104 the item key.
5106 * Changed URI parser so it doesn't include trailing punctuation.
5107 So, in RST, `http://google.com.` should be parsed as a link followed by a
5108 period. The parser is smart enough to recognize balanced parentheses, as
5109 often occur in wikipedia links: `http://foo.bar/baz_(bam)`.
5111 * Markdown+lhs reader: Require space after inverse bird tracks, so that
5112 HTML tags can be used freely at the left margin of a markdown+lhs document.
5113 Thanks to Conal Elliot for the suggestion.
5115 * Markdown reader:
5117 + Improved emph/strong parsing; fixes bug found by Perry Wagle.
5118 + Fixed bug in footnote order (reported by CircleCode).
5120 * RST reader:
5121 + Fixed bug in in field lists with multi-line items at the
5122 end of the list.
5123 + Added parentheses to RST `specialChars`, so
5124 `(http://google.com)` will be parsed as a link in parens.
5125 Resolves Issue #291.
5126 + Allow `|` followed by newline in RST line block.
5128 * LaTeX reader:
5129 + Support `\dots`.
5130 + Gobble option & space after linebreak `\\[10pt]`.
5132 * Textile reader:
5133 + Make it possible to have colons after links. (qerub)
5134 + Make it possible to have colons after links. (Christoffer Sawicki)
5136 * HTML reader:
5137 + Skip spaces after `<b>`, `<emph>`, etc.
5138 + Handle tbody, thead in simple tables. Closes #274.
5139 + Implicit `Para`s instead of `Plains` in some contexts.
5141 * OpenDocument writer: Use special `First paragraph` style for
5142 first paragraph after most non-paragraph blocks. This allows users to
5143 specify e.g. that only paragraphs after the first paragraph of a block are
5144 to be indented. Thanks to Andrea Rossato for the patch. Closes #20.
5146 * LaTeX writer: use `deVerb` on table and picture captions.
5147 Otherwise LaTeX complains about `\verb` inside command argument.
5148 Thanks to bbanier for reporting the bug.
5150 * Markdown writer: Insert HTML comment btw list and indented code block.
5151 This prevents the code block from being interpreted as part of the list.
5153 * EPUB writer: Add a meta element specify the cover.
5154 Some EPUB e-readers, such as the Nook, require a meta element inside the
5155 OPF metadata block to ensure the cover image is properly displayed.
5156 (Kelsey Hightower)
5158 * HTML writer: Use embed tag for images with non-image extensions.
5159 (e.g. PDFs). Closes #264.
5161 * LaTeX writer: Improved tables.
5163 + More space between lines, top-align cells.
5164 + Use ctable package, which allows footnotes and
5165 provides additional options.
5166 + Made cell alignments work in multiline tables.
5167 + Closes #271, #272.
5169 * Un-URI-escape image filenames in LaTeX, ConTeXt, RTF, Texinfo.
5170 Also do this when copying image files into EPUBs and ODTs.
5171 Closes #263.
5173 * Changed to github issue tracker.
5175 * Added failing emph/strong markdown test case due to Perry Wagle.
5177 * Slidy improvements:
5178 + Updated to use Slidy2.
5179 + Fixed bug, unclosed div tag.
5180 + Added `duration` variable in template.
5181 Setting this activates the timer.
5182 + Use 'titlepage' instead of 'cover' for title div.
5184pandoc (1.8.1.1)
5186 * `markdown2pdf`: Removed some debugging lines accidentally included
5187 in the 1.8.1 release. With those lines, the temp directory is created
5188 in the working directory, and it is not deleted. This fix restores
5189 the original behavior.
5191pandoc (1.8.1)
5193 * Added `--ascii` option. Currently supported only in HTML writer,
5194 which it causes to use numerical entities instead of UTF-8.
5196 * EPUB writer: `--toc` now works to provide a table of contents
5197 at the beginning of each chapter.
5199 * LaTeX writer: Change figure defaults to `htbp`.
5200 This prevents "too many unprocessed floats." Resolves
5201 Issue #285.
5203 * `Text.Pandoc.UTF8`: Encode filenames even when using recent
5204 base.
5206 * `markdown2pdf`: Fixed filename encoding issues. With help from Paulo
5207 Tanimoto. Resolves Issue #286.
5209 * HTML writer: Put line breaks in section divs.
5211 * `Text.Pandoc.Shared`: Make `writerSectionDivs` default to False.
5213pandoc (1.8.0.3)
5215 * Fixed Source-repository stanza in cabal file.
5217pandoc (1.8.0.2)
5219 * HTML writer:
5221 + Stringify alt text instead of converting to HTML.
5222 + Break lines after block elements, not inside tags.
5223 HTML output now closely resembles that of tidy. Resolves Issue #134.
5225 * Markdown reader: Fixed bug in footnote block parser (pointed out
5226 by Jesse Rosenthal). The problem arose when the blank line
5227 at the end of a footnote block contained indenting spaces.
5229 * Shared: Improved 'normalize' function so it normalizes Spaces too.
5230 In normal form, Space elements only occur to separate two non-Space
5231 elements. So, we never have [Space], or [, ..., Space].
5233 * Tests:
5235 + Improved Arbitrary instance.
5236 + Added timeout for test instances.
5238 * README:
5240 + Added section on four-space rule for lists. Resolves Issue #283.
5241 + Clarified optional arguments on math options.
5243 * markdown2pdf: Fixed bug with output file extensions.
5244 Previously `markdown2pdf test.txt -o test.en.pdf` would produce
5245 `test.pdf`, not `test.en.pdf`. Thanks to Paolo Tanimoto for the fix.
5247pandoc (1.8.0.1)
5249 * Revised Interact.hs so that it works with the CPP macros
5250 in the UTF8 module.
5252 * Revised Setup.hs so that we don't call MakeManPage.hs unless
5253 the man pages are out of date.
5255pandoc (1.8)
5257 [new features]
5259 * Support for citations using Andrea Rossato's `citeproc-hs` 0.3.
5260 You can now write, for example,
5262 Water is wet [see @doe99, pp. 33-35; also @smith04, ch. 1].
5264 and, when you process your document using `pandoc`, specifying
5265 a citation style using `--csl` and a bibliography using `--bibliography`,
5266 the citation will be replaced by an appropriately formatted
5267 citation, and a list of works cited will be added to the end
5268 of the document.
5270 This means that you can switch effortlessly between different citation
5271 and bibliography styles, including footnote, numerical, and author-date
5272 formats. The bibliography can be in any of the following formats: MODS,
5273 BibTeX, BibLaTeX, RIS, EndNote, EndNote XML, ISI, MEDLINE, Copac, or JSON.
5274 See the README for further details.
5276 Citations are supported in the markdown reader, using a special
5277 syntax, and in the LaTeX reader, using natbib or biblatex syntax.
5278 (Thanks to Nathan Gass for the natbib and biblatex support.)
5280 * New `textile` reader and writer. Thanks to Paul Rivier for contributing
5281 the `textile` reader, an almost complete implementation of the textile
5282 syntax used by the ruby [RedCloth library](http://redcloth.org/textile).
5283 Resolves Issue #51.
5285 * New `org` writer, for Emacs Org-mode, contributed by Puneeth Chaganti.
5287 * New `json` reader and writer, for reading and writing a JSON
5288 representation of the native Pandoc AST. These are much faster
5289 than the `native` reader and writer, and should be used for
5290 serializing Pandoc to text. To convert between the JSON representation
5291 and native Pandoc, use `encodeJSON` and `decodeJSON` from
5292 `Text.JSON.Generic`.
5294 * A new `jsonFilter` function in `Text.Pandoc` makes it easy
5295 to write scripts that transform a JSON-encoded pandoc document.
5296 For example:
5298 -- removelinks.hs - removes links from document
5299 import Text.Pandoc
5300 main = interact $ jsonFilter $ bottomUp removeLink
5301 where removeLink (Link xs _) = Emph xs
5302 removeLink x = x
5304 To use this to remove links while translating markdown to LaTeX:
5306 pandoc -t json | runghc removelinks.hs | pandoc -f json -t latex
5308 * Attributes are now allowed in inline `Code` elements, for example:
5310 In this code, `ulist ! [theclass "special"] << elts`{.haskell} is...
5312 The attribute syntax is the same as for delimited code blocks.
5313 `Code` inline has an extra argument place for attributes, just like
5314 `CodeBlock`. Inline code will be highlighted in HTML output, if pandoc
5315 is compiled with highlighting support. Resolves Issue #119.
5317 * New `RawBlock` and `RawInline` elements (replacing `RawHtml`,
5318 `HtmlInline`, and `TeX`) provide lots of flexibility in writing
5319 scripts to transform Pandoc documents. Scripts can now change
5320 how each element is rendered in each output format.
5322 * You can now define LaTeX macros in markdown documents, and pandoc
5323 will apply them to TeX math. For example,
5325 \newcommand{\plus}[2]{#1 + #2}
5326 $\plus{3}{4}$
5328 yields `3+4`. Since the macros are applied in the reader, they
5329 will work in every output format, not just LaTeX.
5331 * LaTeX macros can also be used in LaTeX documents (both in math
5332 and in non-math contexts).
5334 * A new `--mathjax` option has been added for displaying
5335 math in HTML using MathJax. Resolves issue #259.
5337 * Footnotes are now supported in the RST reader. (Note, however,
5338 that unlike docutils, pandoc ignores the numeral or symbol used in
5339 the note; footnotes are put in an auto-numbered ordered list.)
5340 Resolves Issue #258.
5342 * A new `--normalize` option causes pandoc to normalize the AST
5343 before writing the document. This means that, for example,
5344 `*hi**there*` will be rendered as `<em>hithere</em>`
5345 instead of `<em>hi</em><em>there</em>`. This is not the default,
5346 because there is a significant performance penalty.
5348 * A new `--chapters` command-line option causes headers
5349 in DocBook, LaTeX, and ConTeXt to start with "chapter" (level one).
5350 Resolves Issue #265.
5352 * In DocBook output, `<chapter>` is now used for top-level
5353 headers if the template contains `<book>`. Resolves Issue #265.
5355 * A new `--listings` option in `pandoc` and `markdown2pdf` causes
5356 the LaTeX writer to use the listings package for code blocks.
5357 (Thanks to Josef Svennigsson for the pandoc patch, and Etienne
5358 Millon for the markdown2pdf patch.)
5360 * `markdown2pdf` now supports `--data-dir`.
5362 * URLs in autolinks now have class "url" so they can be styled.
5364 * Improved prettyprinting in most formats. Lines will be wrapped
5365 more evenly and duplicate blank lines avoided.
5367 * New `--columns` command-line option sets the column width for
5368 line wrapping and relative width calculations for tables.
5370 * Made `--smart` work in HTML, RST, and Textile readers, as well
5371 as markdown.
5373 * Added `--html5` option for HTML5 output.
5375 * Added support for listings package in LaTeX reader
5376 (Puneeth Chaganti).
5378 * Added support for simple tables in the LaTeX reader.
5380 * Added support for simple tables in the HTML reader.
5382 * Significant performance improvements in many readers and writers.
5384 [API and program changes]
5386 * Moved `Text.Pandoc.Definition` from the `pandoc` package to a new
5387 auxiliary package, `pandoc-types`. This will make it possible for other
5388 programs to supply output in Pandoc format, without depending on the whole
5389 pandoc package.
5391 * Added `Attr` field to `Code`.
5393 * Removed `RawHtml`, `HtmlInline`, and `TeX` elements; added generic
5394 `RawBlock` and `RawInline`.
5396 * Moved generic functions to `Text.Pandoc.Generic`. Deprecated
5397 `processWith`, replacing it with two functions, `bottomUp` and `topDown`.
5398 Removed previously deprecated functions `processPandoc` and `queryPandoc`.
5400 * Added `Text.Pandoc.Builder`, for building `Pandoc` structures.
5402 * `Text.Pandoc` now exports association lists `readers` and `writers`.
5404 * Added `Text.Pandoc.Readers.Native`, which exports `readNative`.
5405 `readNative` can now read full pandoc documents, block lists, blocks,
5406 inline lists, or inlines. It will interpret `Str "hi"`
5407 as if it were `Pandoc (Meta [] [] []) [Plain [Str "hi"]]`.
5408 This should make testing easier.
5410 * Removed deprecated `-C/--custom-header` option.
5411 Use `--template` instead.
5413 * `--biblio-file` has been replaced by `--bibliography`.
5414 `--biblio-format` has been removed; pandoc now guesses the format
5415 from the file extension (see README).
5417 * pandoc will treat an argument as a URI only if it has an
5418 `http(s)` scheme. Previously pandoc would treat some
5419 Windows pathnames beginning with `C:/` as URIs.
5421 * The `--sanitize-html` option and the `stateSanitize` field in
5422 `ParserState` have been removed. Sanitization is better done in the
5423 resulting HTML using `xss-sanitize`, which is based on pandoc's
5424 sanitization, but improved.
5426 * pandoc now adds a newline to the end of its output in fragment
5427 mode (= not `--standalone`).
5429 * Added support for `lang` in `html` tag in the HTML template,
5430 so you can do `pandoc -s -V lang=es`, for example.
5432 * `highlightHtml` in `Text.Pandoc.Highlighting` now takes
5433 a boolean argument that selects between "inline" and
5434 "block" HTML.
5436 * `Text.Pandoc.Writers.RTF` now exports `rtfEmbedImage`.
5437 Images are embedded in RTF output when possible (png, jpeg).
5438 Resolves Issue #275.
5440 * Added `Text.Pandoc.Pretty`. This is better suited for pandoc than the
5441 `pretty` package. Changed all writers that used
5442 `Text.PrettyPrint.HughesPJ` to use `Text.Pandoc.Pretty` instead.
5444 * Rewrote `writeNative` using the new prettyprinting module. It is
5445 now much faster. The output has been made more consistent and compressed.
5446 `writeNative` is also now sensitive to writerStandalone`, and will simply
5447 `print a block list if writerStandalone` is False.
5449 * Removed `Text.Pandoc.Blocks`. `Text.Pandoc.Pretty` allows you to define
5450 blocks and concatenate them, so a separate module is no longer needed.
5452 * `Text.Pandoc.Shared`:
5454 + Added `writerColumns`, `writerChapters`, and `writerHtml5` to
5455 `WriterOptions`.
5456 + Added `normalize`.
5457 + Removed unneeded prettyprinting functions:
5458 `wrapped`, `wrapIfNeeded`, `wrappedTeX`, `wrapTeXIfNeeded`, `hang'`,
5459 `BlockWrapper`, `wrappedBlocksToDoc`.
5460 + Made `splitBy` take a test instead of an element.
5461 + Added `findDataFile`, refactored `readDataFile`.
5462 + Added `stringify`. Rewrote `inlineListToIdentifier` using `stringify`.
5463 + Fixed `inlineListToIdentifier` to treat '\160' as ' '.
5465 * `Text.Pandoc.Readers.HTML`:
5467 + Removed `rawHtmlBlock`, `anyHtmlBlockTag`, `anyHtmlInlineTag`,
5468 `anyHtmlTag`, `anyHtmlEndTag`, `htmlEndTag`, `extractTagType`,
5469 `htmlBlockElement`, `htmlComment`
5470 + Added `htmlTag`, `htmlInBalanced`, `isInlineTag`, `isBlockTag`,
5471 `isTextTag`
5473 * Moved `smartPunctuation` from `Text.Pandoc.Readers.Markdown`
5474 to `Text.Pandoc.Readers.Parsing`, and parameterized it with
5475 an inline parser.
5477 * Added `nonspaceChar` to `Text.Pandoc.Parsing`.
5479 * Ellipses are no longer allowed to contain spaces.
5480 Previously we allowed '. . .', ' . . . ', etc. This caused
5481 too many complications, and removed author's flexibility in
5482 combining ellipses with spaces and periods.
5484 * Allow linebreaks in URLs (treat as spaces). Also, a string of
5485 consecutive spaces or tabs is now parsed as a single space. If you have
5486 multiple spaces in your URL, use `%20%20`.
5488 * `Text.Pandoc.Parsing`:
5490 + Removed `refsMatch`.
5491 + Hid `Key` constructor.
5492 + Removed custom `Ord` and `Eq` instances for `Key`.
5493 + Added `toKey` and `fromKey` to convert between `Key` and `[Inline]`.
5494 + Generalized type on `readWith`.
5496 * Small change in calculation of relative widths of table columns.
5497 If the size of the header > the specified column width, use
5498 the header size as 100% for purposes of calculating
5499 relative widths of columns.
5501 * Markdown writer now uses some pandoc-specific features when `--strict`
5502 is not specified: `\` newline is used for a hard linebreak instead of
5503 two spaces then a newline. And delimited code blocks are used when
5504 there are attributes.
5506 * HTML writer: improved gladTeX output by setting ENV appropriately
5507 for display or inline math (Jonathan Daugherty).
5509 * LaTeX writer: Use `\paragraph`, `\subparagraph` for level 4,5 headers.
5511 * LaTeX reader:
5513 + `\label{foo}` and `\ref{foo}` now become `{foo}` instead of `(foo)`.
5514 + `\index{}` commands are skipped.
5516 * Added `fontsize` variable to default LaTeX template.
5517 This makes it easy to set the font size using `markdown2pdf`:
5518 `markdown2pdf -V fontsize=12pt input.txt`.
5520 * Fixed problem with strikeout in LaTeX headers when using
5521 hyperref, by adding a command to the default LaTeX template
5522 that disables `\sout` inside pdf strings. Thanks to Joost Kremers
5523 for the fix.
5525 * The `COLUMNS` environment variable no longer has any effect.
5527 [under-the-hood improvements]
5529 * Pandoc now compiles with GHC 7. (This alone leads to a
5530 significant performance improvement, 15-20%.)
5532 * Completely rewrote HTML reader using tagsoup as a lexer. The
5533 new reader is faster and more accurate. Unlike the
5534 old reader, it does not get bogged down on some input
5535 (Issues #277, 255). And it handles namespaces in tags
5536 (Issue #274).
5538 * Replaced `escapeStringAsXML` with a faster version.
5540 * Rewrote `spaceChar` and some other parsers in Text.Pandoc.Parsing
5541 for a significant performance boost.
5543 * Improved performance of all readers by rewriting parsers.
5545 * Simplified Text.Pandoc.CharacterReferences by using
5546 entity lookup functions from TagSoup.
5548 * `Text.Pandoc.UTF8` now uses the unicode-aware IO functions
5549 from `System.IO` if base >= 4.2. This gives support for
5550 windows line endings on windows.
5552 * Remove duplications in documentation by generating the
5553 pandoc man page from README, using `MakeManPage.hs`.
5555 * README now includes a full description of markdown syntax,
5556 including non-pandoc-specific parts. A new `pandoc_markdown`
5557 man page is extracted from this, so you can look up markdown
5558 syntax by doing `man pandoc_markdown`.
5560 * Completely revised test framework (with help from Nathan Gass).
5561 The new test framework is built when the `tests` Cabal flag is set. It
5562 includes the old integration tests, but also some new unit and quickcheck
5563 tests. Test output has been much improved, and you can now specify a glob
5564 pattern after `cabal test` to indicate which tests should be run;
5565 for example `cabal test citations` will run all the citation tests.
5567 * Added a shell script, `stripansi.sh`, for filtering ANSI control
5568 sequences from test output: `cabal test | ./stripansi.sh > test.log`.
5570 * Added `Interact.hs` to make it easier to use ghci while developing.
5571 `Interact.hs` loads `ghci` from the `src` directory, specifying
5572 all the options needed to load pandoc modules (including
5573 specific package dependencies, which it gets by parsing
5574 dist/setup-config).
5576 * Added `Benchmark.hs`, testing all readers + writers using criterion.
5578 * Added `stats.sh`, to make it easier to collect and archive
5579 benchmark and lines-of-code stats.
5581 * Added upper bounds to all cabal dependencies.
5583 * Include man pages in extra-source-files. This allows users to
5584 install pandoc from the tarball without needing to build the man
5585 pages.
5587 [bug fixes]
5589 * Filenames are encoded as UTF8. Resolves Issue #252.
5591 * Handle curly quotes better in `--smart` mode. Previously, curly quotes
5592 were just parsed literally, leading to problems in some output formats.
5593 Now they are parsed as `Quoted` inlines, if `--smart` is specified.
5594 Resolves Issue #270.
5596 * Text.Pandoc.Parsing: Fixed bug in grid table parser.
5597 Spaces at end of line were not being stripped properly,
5598 resulting in unintended LineBreaks.
5600 * Markdown reader:
5602 + Allow HTML comments as inline elements in markdown.
5603 So, `aaa <!-- comment --> bbb` can be a single paragraph.
5604 + Fixed superscripts with links: `^[link](/foo)^` gets
5605 recognized as a superscripted link, not an inline note followed by
5606 garbage.
5607 + Fixed regression, making markdown reference keys case-insensitive again.
5608 Resolves Issue #272.
5609 + Properly handle abbreviations (like `Mr.`) at the end of a line.
5610 + Better handling of intraword underscores, avoiding exponential
5611 slowdowns in some cases. Resolves Issue #182.
5612 + Fixed bug in alignments in tables with blank rows in the header.
5614 * RST reader:
5616 + Field lists now allow spaces in field names, and
5617 block content in field values. (Thanks to Lachlan Musicman
5618 for pointing out the bug.)
5619 + Definition list items are now always `Para` instead of
5620 `Plain`, matching behavior of `rst2xml.py`.
5621 + In image blocks, the description is parsed properly and
5622 used for the alt attribute, not also the title.
5623 + Skip blank lines at beginning of file. Resolves
5624 Debian #611328.
5626 * LaTeX reader:
5628 + Improved parsing of preamble.
5629 Previously you'd get unexpected behavior on a document that
5630 contained `\begin{document}` in, say, a verbatim block.
5631 + Allow spaces between `\begin` or `\end` and `{`.
5632 + Support `\L` and `\l`.
5633 + Skip comments inside paragraphs.
5635 * LaTeX writer:
5637 + Escape strings in `\href{..}`.
5638 + In nonsimple tables, put cells in `\parbox`.
5640 * OpenDocument writer: don't print raw TeX.
5642 * Markdown writer:
5644 + Fixed bug in `Image`. URI was getting unescaped twice!
5645 + Avoid printing extra blank lines at the end if there are
5646 no notes or references.
5648 * LaTeX and ConTeXt: Escape `[` and `]` as `{[}` and `{]}`.
5649 This avoids unwanted interpretation as an optional argument.
5651 * ConTeXt writer: Fixed problem with inline code. Previously
5652 `}` would be rendered `\type{}}`. Now we check the string for '}' and '{'.
5653 If it contains neither, use `\type{}`; otherwise use `\mono{}`
5654 with an escaped version of the string.
5656 * `:` now allowed in HTML tags. Resolves Issue #274.
5658pandoc (1.6)
5660 [ John MacFarlane ]
5662 * New EPUB and HTML Slidy writers. (Issue #122)
5664 - EPUB is a standard ebook format, used in Apple's iBooks for
5665 the iPad and iPhone, Barnes and Noble's nook reader, the Sony
5666 reader, and many other devices.
5667 - Slidy, like S5, is a system for producing HTML+javascript slide
5668 shows.
5670 * All input is assumed to be UTF-8, no matter what the locale and ghc
5671 version, and all output is UTF-8. This reverts to pre-1.5 behavior.
5672 Also, a BOM, if present, is stripped from the input.
5674 * Markdown now supports grid tables, whose cells can contain
5675 arbitrary block elements. (Issue #43)
5677 * Sequentially numbered example lists in markdown with `@` marker.
5679 * Markdown table captions can begin with a bare colon and no longer need
5680 to include the English word "table." Also, a caption can now occur
5681 either before or after the table. (Issue #227)
5683 * New command-line options:
5685 - `--epub-stylesheet` allows you to specify a CSS file that will
5686 be used to style your ebook.
5687 - `--epub-metadata` allows you to specify metadata for the ebook.
5688 - `--offline` causes the generated HTML slideshow to include all
5689 needed scripts and stylesheets.
5690 - `--webtex` causes TeX math to be converted to images using the
5691 Google Charts API (unless a different URL is specified).
5692 - `--section-divs` causes div tags to be added around each section
5693 in an HTML document. (Issue #230, 239)
5695 * Default behavior of S5 writer in standalone mode has changed:
5696 previously, it would include all needed scripts and stylesheets
5697 in the generated HTML; now, only links are included unless
5698 the `--offline` option is used.
5700 * Default behavior of HTML writer has changed. Between 1.2 and 1.5,
5701 pandoc would enclose sections in div tags with identifiers on the
5702 div tags, so that the sections can be manipulated in javascript.
5703 This caused undesirable interactions with raw HTML div tags. So,
5704 starting with 1.6, the default is to put the identifiers directly
5705 on the header tags, and not to include the divs. The `--section-divs`
5706 option selects the 1.2-1.5 behavior.
5708 * API changes:
5710 - `HTMLMathMethod`: Added `WebTeX`, removed `MimeTeX`.
5711 - `WriterOptions`: Added `writerUserDataDir`, `writerSourceDirectory`,
5712 `writerEPUBMetadata` fields. Removed `writerIncludeBefore`,
5713 `writerIncludeAfter`.
5714 - Added `headerShift` to `Text.Pandoc.Shared`.
5715 - Moved parsing code and `ParserState` from `Text.Pandoc.Shared`
5716 to a new module, `Text.Pandoc.Parsing`.
5717 - Added `stateHasChapters` to `ParserState`.
5718 - Added `HTMLSlideVariant`.
5719 - Made `KeyTable` a map instead of an association list.
5720 - Added accessors for `Meta` fields (`docTitle`, `docAuthors`,
5721 `docDate`).
5722 - `Pandoc`, `Meta`, `Inline`, and `Block` have been given `Ord`
5723 instances.
5724 - Reference keys now have a type of their own (`Key`), with its
5725 own `Ord` instance for case-insensitive comparison.
5726 - Added `Text.Pandoc.Writers.EPUB`.
5727 - Added `Text.Pandoc.UUID`.
5728 - Removed `Text.Pandoc.ODT`, added `Text.Pandoc.Writers.ODT`.
5729 Removed `saveOpenDocumentAsODT`, added `writeODT`.
5730 - Added `Text.Pandoc.Writers.Native` and `writeNative`.
5731 Removed `prettyPandoc`.
5732 - Added `Text.Pandoc.UTF8` for portable UTF8 string IO.
5733 - Removed `Text.Pandoc.Writers.S5` and the `writeS5` function.
5734 Moved `s5Includes` to a new module, `Text.Pandoc.S5`.
5735 To write S5, you now use `writeHtml` with `writerSlideVariant`
5736 set to `S5Slides` or `SlidySlides`.
5738 * Template changes. If you use custom templates, please update them,
5739 particularly if you use syntax highlighting with pandoc. The old HTML
5740 templates hardcoded highlighting CSS that will no longer work with
5741 the most recent version of highlighting-kate.
5743 - HTML template: avoid empty meta tag if no date.
5744 - HTML template: Use default highlighting CSS from highlighting-kate
5745 instead of hard-coding the CSS into the template.
5746 - HTML template: insert-before text goes before the title, and
5747 immediately after the <body> tag, as documented. (Issue #241)
5748 - Added slidy and s5 templates.
5749 - Added amssymb to preamble of latex template. (github Issue 1)
5751 * Removed excess newlines at the end of output. Note: because output
5752 will not contain an extra newline, you may need to make adjustments
5753 if you are inserting pandoc's output into a template.
5755 * In S5 and slidy, horizontal rules now cause a new slide, so you
5756 are no longer limited to one slide per section.
5758 * Improved handling of code in man writer. Inline code is now monospace,
5759 not bold, and code blocks now use .nf (no fill) and .IP (indented para).
5761 * HTML reader parses `<tt>` as Code. (Issue #247)
5763 * html+lhs output now contains bird tracks, even when compiled without
5764 highlighting support. (Issue #242)
5766 * Colons are now no longer allowed in autogenerated XML/HTML identifiers,
5767 since they have a special meaning in XML.
5769 * Code improvements in ODT writer. Remote images are now replaced with
5770 their alt text rather than a broken link.
5772 * LaTeX reader improvements:
5774 - Made latex `\section`, `\chapter` parsers more forgiving of
5775 whitespace.
5776 - Parse `\chapter{}` in latex.
5777 - Changed `rawLaTeXInline` to accept `\section`, `\begin`, etc.
5778 - Use new `rawLaTeXInline'` in LaTeX reader, and export `rawLaTeXInline`
5779 for use in markdown reader.
5780 - Fixes bug wherein `\section{foo}` was not recognized as raw TeX
5781 in markdown document.
5783 * LaTeX writer: images are automatically shrunk if they would extend
5784 beyond the page margin.
5786 * Plain, markdown, RST writers now use unicode for smart punctuation.
5788 * Man writer converts math to unicode when possible, as in other writers.
5790 * `markdown2pdf` can now recognize citeproc options.
5792 * Command-line arguments are converted to UTF-8. (Issue #234)
5794 * `Text.Pandoc.TeXMath` has been rewritten to use texmath's parser.
5795 This allows it to handle a wider range of formulas. Also, if a formula
5796 cannot be converted, it is left in raw TeX; formulas are no longer
5797 partially converted.
5799 * Unicode curly quotes are left alone when parsing smart quotes. (Issue
5800 #143)
5802 * Cabal file changes:
5804 - Removed parsec < 3 restriction.
5805 - Added 'threaded' flag for architectures where GHC lacks a threaded
5806 runtime.
5807 - Use 'threaded' only for markdown2pdf; it is not needed for pandoc.
5808 - Require highlighting-kate 0.2.7.
5810 * Use explicit imports from `Data.Generics`. Otherwise we have a
5811 conflict with the 'empty' symbol, introduced in syb >= 0.2. (Issue #237)
5813 * New data files: slidy/slidy.min.js, slidy/slidy.min.css, epub.css.
5815pandoc (1.5.1.1)
5817 [ John MacFarlane ]
5819 * Fixed uniqueIdent in Shared so that header identifiers work as
5820 advertized in the README and are are valid XHTML names.
5822pandoc (1.5.1)
5824 [ John MacFarlane ]
5826 * Fixed treatment of unicode characters in URIs.
5827 + Shared now exports escapeURI and unescapeURI. These handle
5828 UTF8 encoding and decoding as well as URI escaping/unescaping.
5829 + Shared: uri and emailAddress now return a pair of the original
5830 parsed text and the escaped URI (in the latter case, with
5831 the mailto: prefix).
5832 + HTML reader: unsanitaryURI has been modified to allow unicode
5833 high characters in a URI.
5834 + Readers: All link and image URIs are now escaped using
5835 escapeURI.
5836 + Markdown and RST writers: unescapeURI is used so that URIs
5837 in these formats are human-readable.
5839 * Setup.hs: Don't assume that the build directory is "dist".
5840 Instead, get it from localBuildInfo.
5842 * OpenDocument writer: Use a Map for stTextStyleAttr.
5843 This avoids duplicates (and invalid xml). Resolves Issue #222.
5845pandoc (1.5.0.1)
5847 [ John MacFarlane ]
5849 * HTML writer: Fixed error in math writer (with MathML option)
5850 that caused an infinite loop for unparsable MathML.
5852pandoc (1.5)
5854 [ John MacFarlane ]
5856 * Added --mathml option. When this is selected, pandoc will convert
5857 TeX math into MathML.
5858 + Added data/MathMLinHTML.js, which is included when no URL is
5859 provided for --mathml. This allows MathML to be displayed (in
5860 better browsers) as text/html.
5861 + Removed Text.Pandoc.LaTeXMathML. The module was no longer
5862 necessary; it was replaced by two lines in pandoc.hs.
5863 + Replaced LaTeXMathML.js.commend and LaTeXMathML.js.packed with a
5864 single combined file, LaTeXMathML.js.
5866 * Added --data-dir option.
5867 This specifies a user data directory. If not specified, will default
5868 to ~/.pandoc on unix or Application Data\pandoc on Windows.
5869 Files placed in the user data directory will override system default
5870 data files.
5872 * Added Maybe datadir parameter to readDataFile, saveOpenDocumentAsODT,
5873 latexMathMLScript, s5HeaderIncludes, and getDefaultTemplate. If
5874 Nothing, no user directory is searched for an override.
5876 * Added 'plain' output format. This is similar to markdown, but
5877 removes links, pictures, inline formatting, and most anything that
5878 looks even vaguely markupish. The function writePlain is exported by
5879 Text.Pandoc.Writers.Markdown, with which it shares most of its code.
5881 * Allow multi-line titles and authors in meta block.
5882 Titles may span multiple lines, provided continuation lines
5883 begin with a space character. Separate authors may be put on
5884 multiple lines, provided each line after the first begins with
5885 a space character. Each author must fit on one line. Multiple
5886 authors on a single line may still be separated by a semicolon.
5887 Based on a patch by Justin Bogner.
5889 * When given an absolute URI as parameter, pandoc will try to fetch
5890 the content via HTTP. So you can do:
5891 'pandoc -r html -w markdown http://www.fsf.org'
5892 Adds dependency on HTTP.
5894 * Made HTML reader much more forgiving.
5895 + Incorporated idea (from HXT) that an element can be closed
5896 by an open tag for another element.
5897 + Javascript is partially parsed to make sure that a <script>
5898 section is not closed by a </script> in a comment or string.
5899 + More lenient non-quoted attribute values.
5900 Now we accept anything but a space character, quote, or <>.
5901 This helps in parsing e.g. www.google.com!
5902 + Bare & signs are now parsed as a string. This is a common
5903 HTML mistake.
5904 + Skip a bare < in malformed HTML.
5906 * Removed html2markdown and hsmarkdown.
5907 + html2markdown is no longer needed, since you can now pass URI
5908 arguments to pandoc and directly convert web pages. (Note,
5909 however, that pandoc assumes the pages are UTF8. html2markdown
5910 made an attempt to guess the encoding and convert them.)
5911 + hsmarkdown is pointless -- a large executable that could be
5912 replaced by 'pandoc --strict'.
5914 * In most writers, an image in a paragraph by itself is now rendered
5915 as a figure, with the alt text as the caption. (Texinfo, HTML, RST,
5916 MediaWiki, Docbook, LaTeX, ConTeXt, HTML.) Other images are
5917 rendered inline.
5919 * Depend on extensible-exceptions. This allows pandoc to be compiled
5920 on GHC 6.8.
5922 * Added --base-header-level option. For example, --base-header-level=2
5923 will change level 1 headers to level 2, level 2 to level 3, etc.
5924 Closes Debian #563416.
5926 * Incomplete support for RST tables (simple and grid).
5927 Thanks to Eric Kow. Colspans and rowspans not yet supported.
5929 * Added accessors (docTitle, docAuthors, docDate) to Meta type.
5931 * MediaWiki writer: format links with relative URLs as wikilinks.
5932 The new rule: If the link target is an absolute URL, an external
5933 link is created. Otherwise, a wikilink is created.
5935 * Text.Pandoc.Shared: Export uniqueIdent, and don't allow tilde in
5936 identifier. Note: This may break links to sections that involve
5937 tildes.
5939 * Markdown(+lhs) reader: handle "inverse bird tracks."
5940 Inverse bird tracks (<) are used for haskell example code that is not
5941 part of the literate Haskell program. Resolves Issue #211.
5943 * LaTeX reader:
5944 + Recognize '\ ' (interword space).
5945 + Recognize nonbreaking space '~'.
5946 + Ignore \section, \pdfannot, \pdfstringdef. Ignore alt title in
5947 section headers. Don't treat \section as inline LaTeX.
5948 Resolves Issue #202.
5949 + LaTeX reader: allow any special character to be escaped.
5950 Resolves Issue #221.
5951 + LaTeX reader: treat \paragraph and \subparagraph as level 4, 5
5952 headers. Resolves Issue #207.
5954 * Use template variables for include-before/after.
5955 + These options now imply -s; previously they worked also in fragment
5956 mode.
5957 + Users can now adjust position of include-before and include-after
5958 text in the templates.
5959 + Default position of include-before moved back (as it was before 1.4)
5960 before table of contents.
5961 + Resolves Issue #217.
5963 * Don't print an empty table header: (all writers).
5964 Resolves Issue #210.
5966 * HTML, Docbook writer: Use tbody, thead, and cols in tables.
5968 * HTML writer: Don't include TOC div if table of contents is empty.
5970 * Markdown writer: Fixed citations.
5971 Previously the markdown writer printed raw citation codes, e.g.
5972 [geach1970], rather than the expanded citations provided by
5973 citeproc, e.g. (Geach 1970). Now it prints the expanded citations.
5974 This means that the document produced can be processed as a markdown
5975 document without citeproc. Thanks to dsanson for reporting, and
5976 Andrea Rossato for the patch.
5978 * Improved and simplified title block in context template.
5979 Previously it caused an error if there was no title.
5980 This method should also be easier for users to customize.
5982 * Markdown reader:
5983 + Treat p., pp., sec., ch., as abbreviations in smart mode.
5984 + Disallow blank lines in inline code span.
5985 + Allow footnotes to be indented < 4 spaces.
5986 This fixes a regression. A test case has been added.
5987 + Escape spaces in URLs as %20. Previously they were incorrectly
5988 escaped as +, which is appropriate only for the query part of
5989 a URL. Resolves Issue #220.
5990 + Require two spaces after capital letter + period for list item.
5991 Otherwise "E. coli" starts a list. This might change the semantics
5992 of some existing documents, since previously the two-space
5993 requirement was only enforced when the second word started
5994 with a capital letter. But it is consistent with the existing
5995 documentation and follows the principle of least surprise.
5996 Resolves Issue #212.
5998 * LaTeX template: redefine labelwidth when using enumerate package.
5999 Otherwise the list labels (numbers) often extend past the left
6000 margin, which looks bad.
6002 * Mediawiki writer: Don't print a "== Notes ==" header before
6003 references. This is too English-centric. Writers can provide their
6004 own header at the end of the document.
6006 * Promoted mediawiki headers. '= head =' is now level 1, '== head =='
6007 level 2, etc. This seems to be correct; it's only by convention
6008 that wikipedia articles have level 2 headers at most.
6009 Patch due to Eric Kow.
6011 * RunTests.hs: Set LANG to a UTF-8 locale. Use 'pandoc --data-dir=' so
6012 data files don't need to have been installed. This removes the need to
6013 set HOME.
6015 * HTML reader:
6016 + Handle spaces before <html>. Resolves Issue #216.
6017 + Be forgiving in parsing a bare list within a list.
6018 The following is not valid xhtml, but the intent is clear:
6019 <ol>
6020 <li>one</li>
6021 <ol><li>sub</li></ol>
6022 <li>two</li>
6023 </ol>
6024 We'll treat the <ol> as if it's in a <li>. Resolves Issue #215.
6026 * Updated INSTALL instructions. cabal method is now promoted.
6028 * Updated markdown2pdf man page. It no longer says all pandoc options
6029 are accepted.
6031 * README/man pages: Removed advice to pipe through tidy before HTML
6032 reader. This is obsolete, now that we have a forgiving HTML parser.
6034 * LaTeX writer: set numbersections template variable, so
6035 the section numbering options work again.
6037 * Removed obsolete Makefile.
6039 * Website: renamed index.txt.in -> index.txt.
6041 * New batch file to make-windows-installer.
6042 + Removed old Makefile.windows
6043 + Added make-windows-installer.bat
6044 + Modified default installer name in pandoc-setup.iss
6046 * Removed freebsd and macports directories.
6047 They are no longer up to date.
6049 * Setup.hs:
6050 + Made man page building sensitive to build verbosity.
6051 + Improved detection of highlighting support in test hook.
6052 + Install wrapper scripts into cabal bin directory.
6053 + Also simplified installManpages.
6054 + Setup.hs: install manpages to mandir. Code borrowed from darcs.
6056 * Changed default of writerXeTeX to False.
6058 * HTML writer: don't include empty UL if --toc but no sections.
6059 Resolves Issue #199.
6061 * LaTeX writer:
6063 + If book, report, or memoir documentclass, use \chapter{}
6064 for first-level headers. Otherwise use \section{}.
6065 + Removed stLink, link template variable. Reason: we now always
6066 include hyperref in the template.
6068 * LaTeX template:
6070 + Only show \author if there are some.
6071 + Always include hyperref package. It is used not just for links but
6072 for toc, section heading bookmarks, footnotes, etc. Also added
6073 unicode=true on hyperref options.
6075 * markdown2pdf: always do at least two runs. hyperref bookmarks
6076 require this.
6078 * cabal file: Removed unneeded dependency on template-haskell.
6080 * Windows installer - fixed bug in data file locations.
6081 Resolves Issue #197.
6083 * Deprecated --custom-header in documentation.
6084 Removed old "Custom Headers" section in README.
6086pandoc (1.4)
6088 [ John MacFarlane ]
6090 * Pandoc will now compile with either GHC 6.10 or 6.12.
6091 + Don't use System.IO.UTF8 when compiling with 6.12
6092 + Use -fno-warn-unused-do-bind option when compiling with 6.12
6094 * Replaced old headers with templates. Now users have much more
6095 control over the way documents appear in --standalone mode,
6096 and writer code is simplified. Resolves Issues #59, 147.
6097 Every effort has been made to retain backwards compatibilty.
6098 So, the --custom-header option should still work as before.
6100 + Added Text.Pandoc.Templates. This provides functions for
6101 retrieving default templates and for rendering templates.
6102 + System templates (in the pandoc data directory) can be
6103 overridden by user templates in $HOME/.pandoc/templates.
6104 + Removed Text.Pandoc.DefaultHeaders.
6105 + Removed data/headers directory.
6106 + Added templates directory.
6107 + Added writerTemplate and writerVariables fields to WriterOptions.
6108 + Removed writerTitlePrefix, writerHeader fields from WriterOptions.
6109 + Changed --print-default-header to --print-default-template.
6110 + Added --template option.
6111 + Added -V/--variable option to set custom template variables.
6113 * Pandoc no longer requires Template Haskell. Resolves Issue #186.
6115 + Removed need for TH in ODT module. Instead get reference.odt from
6116 data file at run time.
6117 + Removed TH dependency from S5 module. S5 module now exports
6118 s5HeaderIncludes, which pandoc.hs includes if writer is s5 and
6119 standalone.
6120 + Refactored LaTeXMathML not to use TH.
6122 * Meta is now Meta [Inline] [[Inline]] [Inline] rather than
6123 Meta [Inline] [String] String. Authors and date in Meta are now lists
6124 of Inline elements rather than raw strings. This means that they can
6125 be formatted and can include footnotes. NOTE: This may be a breaking
6126 change for those using pandoc as a library.
6128 * Added readDataFile to Text.Pandoc.Shared. This retrieves
6129 a data file from the user pandoc data directory (~/.pandoc
6130 on unix), or, if not found there, from the system data
6131 directory ($CABALDIR/shared/pandoc-VERSION/). All data
6132 files, including templates, LaTeXMathML.js, s5 styles,
6133 and reference.odt, can be overridden by the user.
6135 * s5 files moved from data/ui/default to s5/default.
6137 * Use unicode instead of entities in HTML and XML output. Resolves
6138 Issue #163.
6140 * Prettier HTML footnote references: put anchor inside sup,
6141 instead of other way. Resolves Issue #191. Thanks to
6142 infinity0x.
6144 * Added --xetex option to pandoc and markdown2pdf.
6145 If --xetex is specified, pandoc produces latex suitable for
6146 processing by xelatex, and markdown2pdf uses xelatex to create
6147 the PDF. Resolves Issue #185.
6149 * RTF writer: multiple authors now occupy multiple paragraphs rather
6150 than using a line break.
6152 * Man writer: now the "--after-body" will come after the "AUTHORS"
6153 section, whereas before it would come before it. This is a
6154 slight break from backwards compatibility.
6156 * Added --reference-odt option, so users may customize the styles
6157 used in pandoc-generated ODT files. Users may also place a
6158 default reference.odt in the ~\.pandoc directory.
6160 * ODT writer:
6161 + Indented and line-broke styles.xml so it can be modified more easily.
6162 + Omitted some unnecessary style declarations.
6163 + Don't wrap text in OpenDocument writer. The tags are too long, making
6164 wrapping ugly and pointless.
6166 * LaTeX reader: use \\ to separate multiple authors.
6168 * Markdown reader: use ; as separator between authors.
6169 This allows you to use ',' within author names: e.g. "John Jones, Jr."
6171 * S5 writer: use linebreak to separate authors in title page.
6173 * RST reader: Allow :: before lhs code block. The RST spec requires the
6174 :: before verbatim blocks. This :: should not be treated as literal
6175 colons. Resolves Issue #189.
6177 * Documented pandoc 1.3's new definition list syntax in README.
6178 (An oversight in the last release.)
6180 * markdown2pdf.hs:
6181 + interpret ! in a log as an error line.
6182 + --toc now works properly.
6184 * Changes in RunTests.hs:
6185 + Use the Diff library rather than a local copy of Diff.hs.
6186 (This vastly increases performance.) This change means that 'cabal
6187 test' presupposes that the Diff library is installed.
6188 + Removed tests/Diff.hs from cabal file.
6189 + Changed RunTests to use local environment. We need at least HOME, so
6190 pandoc can find its data directory.
6192 * Updated windows installer to install data files in the app directory.
6194 * Windows installer now installs portable wrappers hsmarkdown and
6195 markdown2pdf.
6197pandoc (1.3)
6199 [ John MacFarlane ]
6201 * Added --id-prefix option (Issue #41). This adds a prefix to all
6202 automatically generated HTML identifiers, which helps prevent
6203 duplicate identifiers when you're generating a fragment (say a blog
6204 post).
6206 * Added --indented-code-classes option. This specifies classes
6207 to use for indented code blocks. (Patch due to buttock; Issue #87.)
6209 * --number-sections now affects HTML output as well as ConTeXt and LaTeX
6210 (Issue #150).
6212 * Improved syntax for markdown definition lists (Issue #24).
6213 Definition lists are now more compatible with PHP Markdown Extra.
6214 + You can have multiple definitions for a term (but still not
6215 multiple terms).
6216 + Multi-block definitions no longer need a column before each block
6217 (indeed, this will now cause multiple definitions).
6218 + The marker no longer needs to be flush with the left margin,
6219 but can be indented at or two spaces. Also, ~ as well as :
6220 can be used as the marker (this suggestion due to David
6221 Wheeler.)
6222 + There can now be a blank line between the term and the
6223 definitions.
6225 * Better looking simple tables. Resolves Issue #180.
6226 + Markdown reader: simple tables are now given column widths of 0.
6227 + Column width of 0 is interpreted as meaning: use default column width.
6228 + Writers now include explicit column width information only
6229 for multiline tables. (Exception: RTF writer, which requires
6230 column widths. In this case, columns are given equal widths,
6231 adding up to the text width.)
6232 + Simple tables should now look better in most output formats.
6234 * Allow markdown tables without headers (Issue #50).
6235 The new syntax is described in README. Also allow optional line of
6236 dashes at bottom of simple tables.
6238 * Compensate for width of final table column (Issue #144).
6240 * Treat a backslash followed by a newline as a hard line break
6241 in markdown. Resolves Issue #154. This is a nice alternative
6242 to markdown's "invisible" way of indicating hardline breaks
6243 using lines that end with two spaces.
6245 * Improved performance of markdown reader by ~10% by eliminating the
6246 need for a separate parsing pass for notes. Raw notes are now stored
6247 on the first pass (which parses references), then parsed when the
6248 note is inserted into the AST. The stateNotes field in ParserState
6249 is now a list of [(String, String)] pairs instead of [(String,
6250 [Block])].
6252 * In markdown reader, treat 4 or more * or _ in a row as literal
6253 text. (Trying to parse long strings of * or _ as strong or emph
6254 leads to exponential performance problems.)
6256 * Markdown reader: Use + rather than %20 for spaces in URLs.
6258 * Fixed htmlComment parser, adding a needed 'try'.
6260 * Don't print raw HTML in man output.
6262 * Allow . _ and ~ in header identifiers.
6264 * Specially mark code blocks that were "literate" in the input.
6265 They can then be treated differently in the writers. This allows
6266 authors to distinguish bits of the literate program they are writing
6267 from source code examples, even if the examples are marked as
6268 Haskell for highlighting. (Issue #174.)
6270 * Modified html+lhs output to use "haskell" highlighter instead
6271 of "literateHaskell". The highlighting module now adds bird tracks
6272 after highlighting (for HTML output), if the code block has the
6273 "literate" class. This gives better results, because kate's
6274 haskell highlighter is much better than the literateHaskell
6275 highlighter.
6277 * Fixed handling of footnotes in titles (HTML) and headers (LaTeX).
6278 (Issue #137.)
6280 * Support for "..code-block" directive in RST reader. Not core
6281 RST, but used in Sphinx for code blocks annotated with syntax
6282 information. Thanks to Luke Plant for the patch.
6284 * Added "head" to list of block-level HTML tags. Resolves
6285 Issue #108.
6287 * Added stripTags to Text.Pandoc.XML. This is used in the HTML writer.
6289 * Set utf-8 encoding in texinfo headers.
6291 * Docbook writer: add ids to sections. Use link for internal links.
6292 (Issue #60.)
6294 * Blank lines after lists in MediaWiki writer.
6296 * Properly handle commented-out list items in markdown.
6297 Resolves Issue #142. Example:
6299 - a
6300 <!--
6301 - b
6302 -->
6303 - c
6305 * Changed heuristic in compactify. compactify has to decide whether a
6306 Para that ends a list is a Para intentionally, or just because of
6307 the blank lines at the end of every list. In the latter case the
6308 Para is turned to a Plain. The old heuristic was: change final Para
6309 to Plain iff the other items all end in Plain. This produces bad
6310 results when, for example, an item contains just a Plain and an HTML
6311 comment, as it does in the list above. The new heuristic: change
6312 final Para to Plain iff the other items don't contain a Para.
6314 * Added % as an rst underline character. Resolves Issue #173.
6316 * Fix inline math parser so that \$ is allowed in math.
6317 Resolves Issue #169.
6319 * Translate \int (integral) into unicode when using unicode math
6320 method. Resolves Issue #177.
6322 * markdown2pdf.hs improvements:
6323 + Use System.IO.UTF8.
6324 + Print error messages on last attempt.
6325 + Do not create a backup when overwriting a PDF (Issue #166).
6326 + Accept --longopt=val options.
6327 + Added man/man1/markdown2pdf.1 to extra-tmp-files in cabal, so that
6328 it is properly cleaned.
6330 * Added haddock comments warning that readers assume \n line endings.
6332 * Updated COPYRIGHT file.
6334 * Makefile: Changed EXECSBASE so it doesn't pull in hsmarkdown &
6335 markdown2pdf. Otherwise strip tries to strip shell scripts when you
6336 install using 'make'.
6338 * Changed Makefile so it doesn't build Haskell wrappers.
6340 * Fixed Makefile so it doesn't try to build man pages in build-doc.
6342 * Install pcre3.dll in Windows install script; this allows us to
6343 package a version of pandoc with highlighting support.
6345pandoc (1.2.1)
6347 [ John MacFarlane ]
6349 * Fixed regression with --preserveTabs. Brought back optPreserveTabs.
6350 The trick of setting tabStop to 0 to mean "preserve tabs" had a bad
6351 side effect: strings of 0 spaces were interpreted as indentation.
6352 So, with --preserve-tabs, unindented paragraphs were treated as
6353 code. Resolves Issue #138.
6355 * HTML writer: wrap sections in divs. Resolves Issue #70.
6357 + hierarchicalize has been rationalized; it builds a hierarchical
6358 representation of the document from the headers, and simultaneously
6359 gives each section a unique identifier based on the heading title.
6360 + Identifiers are now attached to the divs rather than
6361 to the headers themselves.
6362 + Table of content backlinks go to the beginning of the table, rather
6363 than to the section reference that was clicked.
6364 + Code for constructing identifiers has been moved to Text.Pandoc.Shared
6365 from the HTML writer, since it is now consumed only by
6366 hierarchicalize.
6367 + In --strict mode, pandoc just prints bare headings, as before
6368 (unless --toc has been specified).
6369 + In s5 output, it does not wrap sections in divs, as that seems to
6370 confuse the s5 javascript.
6372 * Man writer: break lines at end of each sentence. groff expects this
6373 and treats '.' and '?' differently when followed by line ending as
6374 opposed to ordinary space. Also, don't escape periods. Instead, use
6375 zero-width character \& to avoid unwanted interpretation of periods
6376 at start of line. Resolves Issue #148.
6378 * Markdown writer: Added '#' and '>' to list of characters to be
6379 escaped in markdown output. Removed '<', as it is not an officially
6380 escapable character. This partially resolves Issue #96.
6382 * Make --smart the default for man output format. Otherwise we have
6383 trouble dividing lists of endlines into sentences.
6385 * DocBook writer: Use language attribute to indicate source language
6386 in code blocks.
6388 * RST reader:
6390 + Allow # to continue list, even if the list was started with an
6391 explicit marker. For example:
6393 A. my list
6394 #. continued
6396 Resolves Issue #140.
6397 + Allow continuation lines in line blocks. Also added test cases for
6398 line blocks for RST reader. Resolves Issue #149.
6399 + Allow explicit links with spaces in URL: `link <to this>`_
6401 * Improved LaTeX reader's coverage of math modes. Remove displaymath*
6402 (which is not in LaTeX) and recognize all the amsmath environments
6403 that are alternatives to eqnarray, namely equation, equation*,
6404 gather, gather*, gathered, multline, multline*, align, align*,
6405 alignat, alignat*, aligned, alignedat, split. Resolves Issue #103.
6406 Thanks to shreevatsa.public for the patch.
6408 * Markdown reader:
6410 + Allow -, _, :, . in markdown attribute names. These are legal in
6411 XML attribute names.
6412 + Use non-breaking spaces in abbreviations.
6413 + Markdown reader: improved efficiency of abbreviation parsing.
6414 Instead of a separate abbrev parser, we just check for
6415 abbreviations each time we parse a string. This gives a huge
6416 performance boost with -S. Resolves Issue #141.
6418 * Improved efficiency of shared parsers: hexNum, htmlComment,
6419 whitespace, indentSpaces.
6421 * Export HTMLMathMethod in Text.Pandoc.
6423 * Export languagesByExtension in Text.Pandoc.Highlighting.
6425 * Added new Haskell version of markdown2pdf, due to
6426 Paulo Tanimoto. This should be more portable than the old
6427 shell script.
6429 * Made 'pandoc -v' more explicit about compiler options.
6430 Resolves Issue #139.
6432 * pandoc.hs: Made --strict compatible with --standalone, --toc.
6434 * Use Paths_pandoc to get version number, instead of hard-coding it
6435 into Text/Pandoc.hs.
6437pandoc (1.2)
6439 [ John MacFarlane ]
6441 * Added support for literate Haskell. lhs support is triggered by
6442 '+lhs' suffixes in formats. For example, 'latex+lhs' is literate
6443 Haskell LaTeX. '.lhs' files are treated by default as literate
6444 markdown.
6446 + Added stateLiterateHaskell to parser state.
6447 + Added parser for lhsCodeBlock to Markdown, RST, LaTeX readers.
6448 + Added parser for |inline lhs| to LaTeX reader.
6449 + Added writerLiterateHaskell to WriterOptions.
6450 + Added lhs support to Markdown, RST, LaTeX, HTML writers.
6451 + Added definition of code environment to LaTeX header.
6452 + Added tests (run only if highlighting support compiled in).
6453 + Documented lhs features in man page and README.
6455 * In Text.Pandoc.Definition, added processWith, processWithM,
6456 and queryWith, and deprecated processPandoc and queryPandoc
6457 for these more general functions.
6459 * Fixed bug in mediawiki writer: improper closing tags in tables.
6460 Thanks to Benct Philip Jonsson for reporting the bug.
6462 * Added --email-obfuscation option.
6464 + Added writer option for email obfuscation.
6465 + Implemented email obfuscation options in HTML writer.
6466 + Added option to option parser.
6467 + Documented in README and pandoc man page.
6468 + Resolves Issue #97.
6470 * LaTeX writer: fixed bug with empty table cells.
6471 Resolves Issue #107. Thanks to rodja.trappe for the patch.
6473 * Fixed bug with header spacing in Markdown and RST writers.
6474 A null header (Meta [] [] []) should not cause a blank line
6475 at the beginning of output. But a blank line is needed between
6476 a non-null header and the main text.
6478 * Markdown reader: Relax spacing rules for $$ in display math. Now
6479 space and newlines are allowed after the opening $$ and before the
6480 closing $$. However, the display math cannot contain an entirely
6481 blank line. Resolves Issue #105.
6483 * Markdown reader: Gobble space after Plain blocks containing only
6484 raw html inline. Otherwise following header blocks are not parsed
6485 correctly, since the parser sees blank space before them. Resolves
6486 Issue #124.
6488 * Markdown reader: Allow " as well as '' to end a latex double-quote.
6490 * Conditionally depend on syb and base >= 4 if ghc >= 6.10.
6491 Resolves Issue #109.
6493 * Fixed problems in RST and markdown output due to bug in pretty-1.0.1.0
6495 + Added hang' function to Text.Pandoc.Shared; this will be used instead
6496 of hang, which doesn't work properly in pretty-1.0.1.0. When pretty
6497 is upgraded, we can go back to hang.
6498 See http://article.gmane.org/gmane.comp.lang.haskell.general/16687
6499 + Use hang' (and some different techniques) in RST and markdown writers.
6500 Some output is now a bit different.
6502 * Brought citeproc support up to date for citeproc-hs-0.2.
6503 (Patch by Andrea Rossato.)
6505 * Moved all haskell source to src subdirectory. Renamed Main.hs to
6506 pandoc.hs.
6508 * Rewrote hsmarkdown in Haskell for portability (src/hsmarkdown.hs).
6509 For now, keeping the old shell script too.
6511 * Added TemplateHaskell to Extensions for executable, removed
6512 -threaded for library. Thanks to duncan.coutts for the bug report.
6513 Resolves Issue #121.
6515 * Moved some Extra-Source-Files to Data-Files.
6517 * Moved tabFilter to Shared.
6519 * In pandoc.hs, removed optPreserveTabs; instead, tabstop of 0 means
6520 preserve tabs.
6522 * Minor code cleanup based on hlint suggestions.
6524pandoc (1.1)
6526 [ John MacFarlane ]
6528 * Main.hs:
6530 + Changed date on copyright message in Main.hs.
6531 + Have the '-v' option print syntax highlighting languages
6532 separated by commas, and wrapped in lines, instead of in five
6533 columns as before.
6535 * Added --jsmath option. Resolves Issue #68.
6537 + Added --jsmath option to Main.hs
6538 + Added JsMath to HTMLMathMethod in Text.Pandoc.Shared.
6539 + Handle math appropriately in HTML writer when JsMath selected.
6540 + Documented the option in README and man page.
6542 * Text.Pandoc.Shared: Changed compactify to use a better heuristic
6543 for tight and loose lists. Final Para is changed to Plain if all
6544 other list items *end* with a Plain block. Addresses Issue #99.
6546 * HTML reader:
6548 + Added colons to protocols in unsanitaryURI. Closes Issue #88.
6549 + HTML reader: Don't interpret contents of <pre> blocks as markdown.
6550 Added rawVerbatimBlock parser. Resolves Issue #94.
6552 * Markdown reader:
6554 + Allow URLs with spaces in them in links and references, but escape
6555 them as "%20".
6556 + Allow blank space at the end of horizontal rules.
6558 * RST reader: Modified 'unknownDirective' parser to handle comment
6559 blocks correctly, and added tests for comment blocks. Resolves Issue
6560 #86. Closes Debian Bug #500662.
6562 * HTML writer:
6564 + Include classes on tr elements in HTML output:
6565 "header", "odd", "even". This allows tables to be styled with
6566 lines in alternating colors. Resolves Issue #91.
6567 + Enclose all LaTeXMathML bits in <span class="LaTeX">.
6568 This prevents parts of the document that are not math from being
6569 interpreted as math by LaTeXMathML.js.
6571 * OpenDocument and ODT writers: Added support for HorizontalRule elements,
6572 which were formerly ignored. Resolves Issue #95.
6574 * Text.Pandoc.Shared: Modified wrappedTeX to eliminate the line break
6575 between a footnote and immediately following nonspace characters in
6576 LaTeX and ConTeXt output. (This gets interpreted as a space, which
6577 is not desired in cases like "text^[note]---".) Resolves Issue #93.
6579 * Windows installer: Don't require admin privileges to run
6580 installer. Modified pandoc-setup.iss, and changed modpath.iss to
6581 modify HKCU path if user lacks admin privileges. Also fixed case
6582 where oldpath is empty (previously this led to the new path
6583 beginning with a semicolon).
6585 * Updated INSTALL instructions for Arch packages and OS X install using
6586 cabal-install.
6588 * Removed the (now unneeded) debian directory.
6589 Removed empty Codec and System directories.
6591 * Moved odt-styles/ to data/. Removed unneeded variable in Makefile.
6593 * Modified Setup.hs so that the "test" target returns an error status
6594 when tests fail, and "build" returns a success status if
6595 the build succeeds. Resolves Issue #100.
6597 * Added BUGS to files in tarball.
6600pandoc (1.0.0.1)
6602 [ John MacFarlane ]
6604 * Removed spurious reference to pdf output format from pandoc(1) man page.
6606pandoc (1.0)
6608 [ Andrea Rossato ]
6610 * Added new OpenDocument writer.
6612 * Added support for SmallCaps inline element.
6614 * Added support for integrating pandoc with citeproc-hs.
6616 + Added Cite element to definition and writers.
6617 + Added Text.Pandoc.Biblio module
6618 + Note: This support is included only if the 'citeproc'
6619 Cabal configuration flag is set.
6621 * Made Pandoc data structure an instance of Typeable.
6622 Added new processPandoc and queryPandoc functions, to query
6623 or transform matching elements in a Pandoc structure.
6625 [ Peter Wang ]
6627 * Added new Texinfo writer.
6629 [ John MacFarlane ]
6631 * Changes to Texinfo writer:
6633 + No space between paragraph and following @verbatim (provides more
6634 pleasing appearance in text formats)
6635 + Blank line consistently after list environments.
6636 + Removed deVerb.
6637 + Use @code instead of @verb for inline code (this solves the character
6638 escaping problem for texi2dvi and texi2pdf).
6639 + Added news of Texinfo writer to README.
6640 + Added Texinfo to list of formats in man page, and removed extra 'groff'.
6641 + Added texi & texinfo extensions to Main.hs, and fixed bug in determining
6642 default output extension.
6643 + Modified disallowedInNode in Texinfo writer to correct list of disallowed characters.
6645 * Added tests for OpenDocument writer.
6647 * Added ODT writer (using zip-archive library to package output of
6648 OpenDocument writer). Added odt-styles directory with default ODT styles.
6650 * Added new mediawiki writer and tests.
6652 * Markdown reader: Added support for delimited code blocks, with optional
6653 syntax highlighting using highlighting-kate (if the 'highlighting'
6654 configuration option is selected).
6656 + Currently highlighting is supported only in the HTML writer.
6657 + Delimited code blocks can have attributes; using the language name as
6658 class triggers highlighting.
6659 + New Attributes parameter in CodeBlock structure.
6660 + --version now indicates whether syntax highlighting support is compiled
6661 in, and prints a list of supported languages
6663 * Removed debian directory. Pandoc is no longer a native debian package.
6665 * Changes to build process: pandoc can now be built from the repository
6666 using Cabal. No unix tools are needed (so, pandoc can be built on Windows
6667 without Cygwin).
6669 + Include shell scripts themselves in repo, rather than generating from wrappers.
6670 Removed wrappers directory and wrappers Makefile target.
6671 + Text/Pandoc/ASCIIMathML.hs, Text/Pandoc/DefaultHeaders.hs,
6672 and Text/Pandoc/Writers/S5.hs are no longer built in Makefile
6673 from templates in the templates/ directory. Instead, they use template
6674 haskell to read data at compile time from the relevant files in data/.
6675 Template haskell functions go in a new module, Text.Pandoc.TH.
6676 + man pages are now generated in Setup.hs hook, not by Makefile
6677 + Makefile 'tarball' target now calls Cabal's 'sdist'
6678 + Added "Extra-Source-Files" to pandoc.cabal, so sdist contains everything needed
6679 + Added "Build-Type" field to pandoc.cabal to avoid warning.
6680 + Added to "Extra-source-files" and "Extra-tmp-files" in pandoc.cabal,
6681 so 'sdist' and 'clean' will work properly.
6682 + Setup.hs now generates man pages in a postbuild hook.
6683 + Added dependency-checking to Setup.hs, so it only rebuilds things
6684 that need rebuilding.
6685 + Added 'library' and 'executable' configuration flags.
6686 Cabal can now be told to build just the library or just the executable.
6687 + CABALOPTS may now be specified with 'make' to pass Cabal configuration flags.
6688 For example: CABALOPTS=-fhighlighting make
6690 * Rewrote test suite so it doesn't depend on perl or unix tools.
6692 + Replaced old runtests.pl with a Haskell script RunTests.hs.
6693 + Added Diff.hs module to be used by RunTests.hs instead of unix 'diff'.
6694 + Added test hook to Setup.hs, so tests may be run from cabal.
6695 + Changed Makefile's 'test' target to run tests via cabal.
6696 + Removed old generate.sh.
6697 + Since we no longer have 'sed' to filter out raw HTML sections
6698 from the docbook writer test, or raw LaTeX sections from the
6699 context writer test, we now just include these sections.
6700 They can be taken out if it is necessary to process the files.
6701 + Updated latex and context writer tests to remove extra spaces
6702 after '\\item'
6703 + Added a markdown table reader test.
6704 + Added markdown-reader-more.txt to test suite, for additional test cases
6705 for raw ConTeXt environments and more.
6707 * Compatibility fixes for CPP, Cabal, and haddock:
6709 + Use CPP in "Extensions" field in pandoc.cabal.
6710 + Removed use of backslash string continuations in source files.
6712 * Removed pandoc.cabal.ghc66. We now require Cabal >= 1.2, GHC >= 6.8,
6713 base >= 3.
6715 * Require parsec < 3.
6716 The compatibility module in parsec 3.0.0 gives far worse performance than
6717 parsec 2.1. Eventually pandoc will be upgraded to use the new bytestring
6718 version of parsec, and then we'll go to parsec 3.0.0.
6720 * Removed Text.Regex dependencies by rewriting using plain Haskell
6721 (Text.Pandoc.Writers.RTF, Text.Pandoc.Writers.HTML, Main.hs)
6723 * Moved Text.Pandoc.Writers.DefaultHeaders -> Text.Pandoc.DefaultHeaders.
6725 * Makefile:
6727 + Added 'configure' as dependency of 'uninstall-all'.
6728 (It uses the Cabal build program.)
6729 + Makefile: only use --with-hc-pkg if GHC_PKG is defined.
6730 Note that Cabal will automatically choose the ghc-pkg appropriate
6731 for the compiler selected, so normally specifying GHC by itself
6732 is sufficient.
6734 * Removed Text.Pandoc.UTF8 module; instead, depend on utf8-string and use
6735 its IO and conversion functions.
6737 * Added -Wall to ghc-options in pandoc.cabal. Cleaned up modules so that
6738 everything is -Wall clean.
6740 + Added pragma to HTML writer to avoid deprecation warning for use of "start" attribute.
6741 + Added pragma to Text/Pandoc/Shared.hs to get rid of "orphan instance" warnings.
6742 (These are caused by the Lift instance for ByteString.)
6744 * Changed the comment used to replace unsafe HTML if sanitize-html option
6745 selected.
6747 * Made -c/--css option repeatable on the command line (like -H, -A, -B).
6749 * Moved XML-formatting functions to new unexported module Text.Pandoc.XML.
6751 * Escape '\160' as "&#160;", not "&nbsp;" in XML.
6752 "nbsp" isn't a predefined XML entity.
6754 * Fixed bug in RST reader, which would choke on: "p. one\ntwo\n".
6755 Added some try's in ordered list parsers.
6757 * Man writer: don't escape " as \".
6759 * Allow newline before URL in markdown link references. Resolves Issue #81.
6760 Added tests for this issue in new "markdown-reader-more" tests.
6761 Changed RunTests.hs to run these tests.
6763 * Support for display math. Resolves Issue #47.
6765 + Added a DisplayMath/InlineMath selector to Math inlines.
6766 + Markdown parser yields DisplayMath for $$...$$.
6767 + LaTeX parser yields DisplayMath when appropriate. Removed
6768 mathBlock parsers, since the same effect is achieved by the math
6769 inline parsers, now that they handle display math.
6770 + Writers handle DisplayMath as appropriate for the format.
6771 + Modified tests accordingly; added new tests for display math.
6773 * Use LaTeXMathML instead of ASCIIMathML. LaTeXMathML is closer
6774 to LaTeX in its display of math, and supports many non-math LaTeX environments.
6776 + Changed -m option to use LaTeXMathML rather than ASCIIMathML.
6777 + Modified HTML writer to print raw TeX when LaTeXMathML is
6778 being used instead of suppressing it.
6779 + Removed ASCIIMathML files from data/ and added LaTeXMathML.
6780 + Replaced ASCIIMathML with LaTeXMathML in source files.
6781 + Modified README and pandoc man page source.
6782 + Added --latexmathml option (kept --asciimathml as a synonym
6783 for backwards compatibility)
6785 * Markdown reader: Parse setext headers before atx headers.
6786 Test case:
6787 # hi
6788 ====
6789 parsed by Markdown.pl as an H1 header with contents "# hi".
6791 * Markdown reader: Treat "mixed" lists the same way as Markdown.pl does.
6792 The marker on the first list item determines the type of the whole
6793 list. Thus, a list like
6794 1. one
6795 - two
6796 * three
6797 gets parsed as a single ordered list. (Previous versions of pandoc
6798 treated this as an ordered list with an unordered sublist.)
6800 * Markdown smart typography:
6802 + Em dashes no longer eat surrounding whitespace. Resolves Issue #69.
6803 + Use nonbreaking spaces after known abbreviations in markdown parser.
6804 Thus, for example, "Mr. Brown" comes out as "Mr.~Brown" in LaTeX, and does
6805 not produce a sentence-separating space. Resolves Issue #75.
6807 * Markdown writer: Print unicode \160 literally, rather than as &nbsp;.
6809 * Treat '\ ' in (extended) markdown as nonbreaking space.
6810 Print nonbreaking space appropriately in each writer (e.g. ~ in LaTeX).
6812 * The '--sanitize-html' option now examines URIs in markdown links
6813 and images, and in HTML href and src attributes. If the URI scheme
6814 is not on a whitelist of safe schemes, it is rejected. The main point
6815 is to prevent cross-site scripting attacks using 'javascript:' URIs.
6816 See http://www.mail-archive.com/markdown-discuss@six.pairlist.net/msg01186.html
6817 and http://ha.ckers.org/xss.html. Resolves Issue #62.
6819 * HTML writer:
6821 + Override Text.XHtml's stringToHtml function,
6822 so that characters below 0xff are not converted to numerical entity
6823 references. Also convert '\160' to "&nbsp;". This should aid readability
6824 and editability of the HTML source. It does presuppose that the HTML
6825 will be served as UTF-8.
6826 + In code blocks, change leading newlines to <br /> tags.
6827 (Some browsers ignore them.) Resolves Issue #71.
6828 See http://six.pairlist.net/pipermail/markdown-discuss/2008-May/001297.html
6829 + Use style attributes rather than css classes for strikethrough
6830 and ordered list styles. This works better when fragments, rather than
6831 standalone documents, are generated.
6833 * HTML reader: Count anything that isn't a known block (HTML) tag as an
6834 inline tag (rather than the other way around). Added "html", "head", and
6835 "body" to list of block tags. Resolves Issue #66, allowing
6836 <lj> to count as an inline tag.
6838 * RTF writer: Fixed bug. Extra spaces were being printed after emphasized,
6839 boldface, and other inline elements. Resolves Issue #64.
6841 * LaTeX reader: improvements in raw LaTeX parsing.
6843 + "loose punctuation" (like {}) parsed as Space
6844 + Para elements must contain more than Str "" and Space elements
6845 + Added parser for "\ignore" command used in literate haskell.
6846 + Reworked unknownCommand and rawLaTeXInline: when not in "parse raw"
6847 mode, these parsers simply strip off the command part and allow
6848 the arguments to be parsed normally. So, for example,
6849 \blorg{\emph{hi}} will be parsed as Emph "hi" rather than
6850 Str "{\\emph{hi}}".
6851 + Parse lhs "code" environments as verbatim.
6852 Refactored parsers for verbatim environments.
6853 + Removed specialEnvironment parser.
6854 + parse '{}', if present, after \textless, \textgreater,
6855 \textbar, \textbackslash, \ldots.
6856 + Parse unescaped special characters verbatim rather than
6857 changing them to spaces. This way arguments of unknown
6858 commands will appear in braces.
6860 * Parse raw ConTeXt environments as TeX in markdown reader.
6861 Resolves Issue #73.
6863 * Moved BlockWrapper and wrappedBlocksToDoc from ConTeXt writer to Shared.
6865 * Made some structural changes to parsing of raw LaTeX environments.
6866 Previously there was a special block parser for LaTeX environments.
6867 It returned a Para element containing the raw TeX inline. This has
6868 been removed, and the raw LaTeX environment parser is now used in the
6869 rawLaTeXInline parser. The effect is exactly the same, except that we
6870 can now handle consecutive LaTeX and ConTeXt environments not separated
6871 by spaces. This new flexibility is required by the example in
6872 Issue #73:
6874 \placeformula \startformula
6875 L_{1} = L_{2}
6876 \stopformula
6878 API change: The LaTeX reader now exports rawLaTeXEnvironment' (which
6879 returns a string) rather than rawLaTeXEnvironment (which returns a block
6880 element). This is more likely to be useful in other applications.
6882 * Use \textsubscr instead of \textsubscript for LaTeX subscript macro.
6883 \textsubscript conflicts with a definition in the memoir class.
6884 Resolves Issue #65.
6886 * Removed unneeded space after "\\item" in LaTeX and ConTeXt output.
6888 * Added amsmath package to default LaTeX header. Resolves Issue #48.
6890 * Added \setupitemize[autointro] to ConTeXt header, to prevent orphaned
6891 list introduction lines.
6893 * Changed Float to Double in definition of Table element.
6894 (Double is more efficient in GHC.)
6896 * Fixed bug in Markdown parser: regular $s triggering math mode.
6897 For example: "shoes ($20) and socks ($5)."
6898 The fix consists in two new restrictions:
6900 + the $ that ends a math span may not be directly followed by a digit.
6901 + no blank lines may be included within a math span.
6903 Thanks to Joseph Reagle for noticing the bug.
6905 * Use Data.List's 'intercalate' instead of custom 'joinWithSep'.
6906 Removed 'joinWithSep' from Text.Pandoc.Shared.
6908 * Updated README and man pages. Acknowledge contributors in README.
6909 Added paragraph to README about producing S5 with separate CSS/javascript.
6911 * Updated INSTALL to reflect new build system (including configuration
6912 options) and document new dependencies. Added note to INSTALL that
6913 Cabal >= 1.2 is required for build. Resolves Issue #74.
6915 * Fixed some haddock documentation errors.
6917 * Small fix to markdown2pdf man page: only input needs to be piped through iconv.
6919pandoc (0.46) unstable; urgency=low
6921 [ John MacFarlane ]
6923 * Made -H, -A, and -B options cumulative: if they are specified
6924 multiple times, multiple files will be included.
6926 * Added optional HTML sanitization using a whitelist.
6927 When this option is specified (--sanitize-html on the command line),
6928 unsafe HTML tags will be replaced by HTML comments, and unsafe HTML
6929 attributes will be removed. This option should be especially useful
6930 for those who want to use pandoc libraries in web applications, where
6931 users will provide the input.
6933 + Main.hs: Added --sanitize-html option.
6935 + Text.Pandoc.Shared: Added stateSanitizeHTML to ParserState.
6937 + Text.Pandoc.Readers.HTML:
6938 - Added whitelists of sanitaryTags and sanitaryAttributes.
6939 - Added parsers to check these lists (and state) to see if a given
6940 tag or attribute should be counted unsafe.
6941 - Modified anyHtmlTag and anyHtmlEndTag to replace unsafe tags
6942 with comments.
6943 - Modified htmlAttribute to remove unsafe attributes.
6944 - Modified htmlScript and htmlStyle to remove these elements if
6945 unsafe.
6947 + Modified README and man pages to document new option.
6949 * Improved handling of email addresses in markdown and reStructuredText.
6950 Consolidated uri and email address parsers. (Resolves Issue #37.)
6952 + New emailAddress and uri parsers in Text.Pandoc.Shared.
6953 - uri parser uses parseURI from Network.URI.
6954 - emailAddress parser properly handles email addresses with periods
6955 in them.
6957 + Removed uri and emailAddress parsers from Text.Pandoc.Readers.RST
6958 and Text.Pandoc.Readers.Markdown.
6960 * Markdown reader:
6962 + Fixed emph parser so that "*hi **there***" is parsed as a Strong
6963 nested in an Emph. (A '*' is only recognized as the end of the
6964 emphasis if it's not the beginning of a strong emphasis.)
6966 + Moved blockQuote parser before list parsers for performance.
6968 + Modified 'source' parser to allow backslash-escapes in URLs.
6969 So, for example, [my](/url\(1\)) yields a link to /url(1).
6970 Resolves Issue #34.
6972 + Disallowed links within links. (Resolves Issue #35.)
6973 - Replaced inlinesInBalanced with inlinesInBalancedBrackets, which
6974 instead of hard-coding the inline parser takes an inline parser
6975 as a parameter.
6976 - Modified reference and inlineNote to use inlinesInBalancedBrackets.
6977 - Removed unneeded inlineString function.
6978 - Added inlineNonLink parser, which is now used in the definition of
6979 reference.
6980 - Added inlineParsers list and redefined inline and inlineNonLink parsers
6981 in terms of it.
6982 - Added failIfLink parser.
6984 + Better handling of parentheses in URLs and quotation marks in titles.
6985 - 'source' parser first tries to parse URL with balanced parentheses;
6986 if that doesn't work, it tries to parse everything beginning with
6987 '(' and ending with ')'.
6988 - source parser now uses an auxiliary function source'.
6989 - linkTitle parser simplified and improved, under assumption that it
6990 will be called in context of source'.
6992 + Make 'block' conditional on strictness state, instead of using
6993 failIfStrict in block parsers. Use a different ordering of parsers
6994 in strict mode (raw HTML block before paragraph) for performance.
6995 In non-strict mode use rawHtmlBlocks instead of htmlBlock.
6996 Simplified htmlBlock, since we know it's only called in strict
6997 mode.
6999 + Improved handling of raw HTML. (Resolves Issue #36.)
7000 - Tags that can be either block or inline (e.g. <ins>) should
7001 be treated as block when appropriate and as inline when
7002 appropriate. Thus, for example,
7003 <ins>hi</ins>
7004 should be treated as a paragraph with inline <ins> tags, while
7005 <ins>
7006 hi
7007 </ins>
7008 should be treated as a paragraph within <ins> tags.
7009 - Moved htmlBlock after para in list of block parsers. This ensures
7010 that tags that can be either block or inline get parsed as inline
7011 when appropriate.
7012 - Modified rawHtmlInline' so that block elements aren't treated as
7013 inline.
7014 - Modified para parser so that paragraphs containing only HTML tags and
7015 blank space are not allowed. Treat these as raw HTML blocks instead.
7017 + Fixed bug wherein HTML preceding a code block could cause it to
7018 be parsed as a paragraph. The problem is that the HTML parser
7019 used to eat all blank space after an HTML block, including the
7020 indentation of the code block. (Resolves Issue #39.)
7021 - In Text.Pandoc.Readers.HTML, removed parsing of following space
7022 from rawHtmlBlock.
7023 - In Text.Pandoc.Readers.Markdown, modified rawHtmlBlocks so that
7024 indentation is eaten *only* on the first line after the HTML
7025 block. This means that in
7026 <div>
7027 foo
7028 <div>
7029 the foo won't be treated as a code block, but in
7030 <div>
7032 foo
7034 </div>
7035 it will. This seems the right approach for least surprise.
7037 * RST reader:
7039 + Fixed bug in parsing explicit links (resolves Issue #44).
7040 The problem was that we were looking for inlines until a '<' character
7041 signaled the start of the URL; so, if you hit a reference-style link,
7042 it would keep looking til the end of the document. Fix: change
7043 inline => (notFollowedBy (char '`') >> inline). Note that this won't
7044 allow code inlines in links, but these aren't allowed in resT anyway.
7046 + Cleaned up parsing of reference names in key blocks and links.
7047 Allow nonquoted reference links to contain isolated '.', '-', '_', so
7048 so that strings like 'a_b_' count as links.
7050 + Removed unnecessary check for following link in str.
7051 This is unnecessary now that link is above str in the definition of
7052 'inline'.
7054 * HTML reader:
7056 + Modified rawHtmlBlock so it parses </html> and </body> tags.
7057 This allows these tags to be handled correctly in Markdown.
7058 HTML reader now uses rawHtmlBlock', which excludes </html> and </body>,
7059 since these are handled in parseHtml. (Resolves Issue #38.)
7061 + Fixed bug (emph parser was looking for `<IT>` tag, not `<I>`).
7063 + Don't interpret contents of style tags as markdown.
7064 (Resolves Issue #40.)
7065 - Added htmlStyle, analagous to htmlScript.
7066 - Use htmlStyle in htmlBlockElement and rawHtmlInline.
7067 - Moved "script" from the list of tags that can be either block or
7068 inline to the list of block tags.
7070 + Modified rawHtmlBlock to use anyHtmlBlockTag instead of anyHtmlTag
7071 and anyHtmlEndTag. This fixes a bug in markdown parsing, where
7072 inline tags would be included in raw HTML blocks.
7074 + Modified anyHtmlBlockTag to test for (not inline) rather than
7075 directly for block. This allows us to handle e.g. docbook in
7076 the markdown reader.
7078 * LaTeX reader: Properly recognize --parse-raw in rawLaTeXInline.
7079 Updated LaTeX reader test to use --parse-raw.
7081 * HTML writer:
7083 + Modified rules for automatic HTML header identifiers to
7084 ensure that identifiers begin with an alphabetic character.
7085 The new rules are described in README. (Resolves Issue #33.)
7087 + Changed handling of titles in HTML writer so you don't get
7088 "titleprefix - " followed by nothing.
7090 * ConTeXt writer: Use wrappers around Doc elements to ensure proper
7091 spacing. Each block element is wrapped with either Pad or Reg.
7092 Pad'ed elements are guaranteed to have a blank line in between.
7094 * RST writer:
7096 + Refactored RST writer to use a record instead of a tuple for state,
7097 and to include options in state so it doesn't need to be passed as
7098 a parameter.
7100 + Use an interpreted text role to render math in restructuredText.
7101 See http://www.american.edu/econ/itex2mml/mathhack.rst for the
7102 strategy.
7104 [ Recai Oktaş ]
7106 * Debian packaging changes:
7108 + Remove the empty 'include' directory in -dev package, which lintian
7109 complains about.
7110 + Bump Standarts-Version to 3.7.3.
7111 + Use new 'Homepage:' field to specify the upstream URL on suggestion of
7112 lintian.
7114 -- Recai Oktaş <roktas@debian.org> Tue, 08 Jan 2008 05:13:31 +0200
7116pandoc (0.45) unstable; urgency=low
7118 [ John MacFarlane ]
7120 * Simplified parsing of reference keys and notes in markdown and RST
7121 readers: The Reference data structure from Text.Pandoc.Shared is no
7122 longer needed, since referenceKey and noteBlock parses return strings
7123 (as many blank lines as were occupied by the key or note) and update
7124 state themselves. getPosition and setPosition are now used to ensure
7125 that error messages will give the correct line number. This yields
7126 cleaner (and slightly faster) code, with more accurate parsing error
7127 messages.
7129 * Added new Math inline element:
7131 + Markdown and LaTeX readers now convert TeX math into Math elements,
7132 not TeX.
7133 + This allows math to be treated differently from raw TeX in output.
7134 TeX elements are no longer printed in output formats other than
7135 Markdown, LaTeX, and ConTeXt. But Math elements are always printed.
7137 * New default handling of math in writers:
7139 + New module Text.Pandoc.Readers.TeXMath exports readTeXMath, which
7140 parses raw TeX math and outputs a string of Pandoc inlines that
7141 tries to render it as far as possible using unicode characters,
7142 lapsing into literal TeX when needed.
7143 + readTeXMath is now used for default HTML output in HTML, S5, RTF,
7144 and Docbook, if no other method for displaying math in HTML is
7145 specified. Enclosing $'s are no longer printed by default.
7146 + By default, math is put inside `<span class="math">`. This way it can be
7147 distinguished from the surrounding text, e.g. put in a different
7148 font.
7150 * New --gladtex and --mimetex options for display of math in HTML:
7152 + If --gladtex is specified, math is output between `<eq>` tags, so
7153 it can be processed by gladTeX.
7154 + If --mimetex is specified, math is put in `<img>` tags with a link
7155 to the mimetex CGI script (or any other script that takes TeX math
7156 as input and outputs an image). The URL of the script may be
7157 specified, but defaults to /cgi-bin/mimetex.cgi.
7158 + HTMLMathMethod structure in WriterOptions keeps track of how to
7159 display math in HTML output.
7160 + Updated README with a description of the four options for displaying
7161 math in HTML.
7163 * HTML reader:
7165 + Fixed bug: parser for minimized attributes should not swallow
7166 trailing spaces.
7167 + Simplified HTML attribute parsing.
7168 + Changed parsing of code blocks in HTML reader: `<code>` tag is no
7169 longer needed. `<pre>` suffices. All HTML tags in the code block
7170 (e.g. for syntax highlighting) are skipped, because they are not
7171 portable to other output formats. A `<code>...</code>` block not
7172 surrounded by `<pre>` now counts as inline HTML, not a code block.
7173 + Remove just one leading and one trailing newline from contents of
7174 `<pre>...</pre>` in codeBlock parser.
7176 * Markdown reader:
7178 + Removed support for box-style block quotes.
7179 + Require space before title in links and references.
7180 This fixes a bug in parsing URLs like http://silly/url(withparen).
7181 + Improved and simplified setextHeader parser.
7182 + Fixed logic in smart quote parsing, adding some needed 'try'
7183 statements.
7184 + Fixed smart quote parsing so that unicode characters 8216 and 8217
7185 are recognized as single quotes, and 8220 and 8221 as double quotes.
7187 * RST reader:
7189 + Fixed bug in parsing of code blocks. Previously a full tab indent
7190 was required, but RST allows code to be indented any amount.
7191 Resolves Issue #27.
7192 + Allow field lists to be indented.
7193 + Parse the contents of field lists instead of treating as a raw string.
7194 + Represent field lists as definition lists instead of blockquotes.
7195 + Fixed bug in which metadata would be overridden if the document
7196 contained multiple field lists.
7197 + Parse fields associated with '.. image::' blocks, and use 'alt'
7198 field, if given, for image alt and title attributes.
7200 * LaTeX reader:
7202 + Modified specialChar so that '"' characters are parsed.
7203 + Fixed a bug in parsing of \[ \] math blocks (thanks to Mark Kalderon).
7205 * HTML writer:
7207 + Changes in handling of math (see above).
7208 + Don't produce HTML for table of contents if there are
7209 no headers. (This would be an empty list, which is invalid XHTML.)
7211 * Markdown writer:
7213 + Don't print title attribute if title is empty. (This differs from
7214 the behavior of Markdown.pl, and agrees with PHP Markdown. But John
7215 Gruber has indicated that he prefers this behavior.) Adjusted test
7216 suite accordingly.
7217 + Fixed incorrect line wrapping in paragraphs including hard line
7218 breaks. Resolves Issue #25.
7219 + Fixed bug in markdown writer: If an ordered list item began with
7220 a marker greater than 3 characters in width, and the item took more
7221 than one line, it would appear on the line after the list marker,
7222 e.g.:
7224 (12)
7225 My list item.
7226 Multiline.
7228 Now it works as follows:
7230 (12) My list item.
7231 Multiline.
7233 * RST writer
7235 + Fixed bug in RST writer's handling of ordered lists. Previously,
7236 list items with multiple lines would not always line up with
7237 single-line list items. Now, list items are nested the length of
7238 the list marker + 1. This looks better and ensures that list items
7239 all line up. (Note that list markers are padded to the length of
7240 the longest list marker in the series.)
7241 + Use 3-space indent for unordered lists.
7242 + If label for a link reference contains a colon, surround it by `
7243 signs so it won't be interpreted as the end of the link label.
7245 * LaTeX writer:
7247 + Cleaner output for footnotes. Footnotes now always begin on a new
7248 line, and the final } is on a line by itself only when it needs to
7249 be (i.e. only when the note ends with a Verbatim environment).
7250 + Added writer options to state, so state doesn't need to be passed as
7251 a parameter.
7252 + Text wrapping now provided, using wrapTeXIfNeeded.
7254 * ConTeXt writer: many improvements for more idiomatic ConTeXt output
7255 (thanks to Idris Samawi Hamid for suggestions).
7257 + PrettyPrint module now used for output.
7258 + Writer options are now in state, so they don't have to be passed as
7259 a parameter.
7260 + Text wrapping now provided, using wrapTeXIfNeeded.
7261 + Better treatment of footnotes: footnotes are always on lines by
7262 themselves, and the final } is on a line by itself only when
7263 it needs to be (after \stoptyping).
7264 + Use \subject, \subsubject, ... or \section, \subsection, ... for headings,
7265 depending on whether --number-sections option is selected.
7266 + Extra blank line inserted after \stopitemize
7267 + Use new, "official" definition of blockquote environment. Also, use
7268 blank line after \startblockquote to balance blank line at the end.
7269 + Both itemized and enumerated lists are now generated using
7270 \start-stopitemize, with appropriate options. Removed definitions
7271 of ltxenum and ltxitem, which are no longer needed. Provided
7272 defaults for itemized lists in the preamble. State keeps track of
7273 ordered list level, so that when default numbering is specified,
7274 the appropriate scheme can be used.
7275 + Changed \useurl to \useURL.
7276 + Changed link color from red to blue.
7277 + Use \subsubsubsubsection etc., since these are supported
7278 (up to at least sub x 5).
7280 * Text.Pandoc.Shared:
7282 + Save and restore position in parseFromString, so that accurate
7283 error messages can be given.
7284 + Improved efficiency of romanNumeral parser.
7285 + Added wrappedTeX and wrapTeXIfNeeded functions. These ensure
7286 that footnotes occur on lines by themselves (to make them
7287 easier to see and move) and do not screw up line wrapping.
7289 * Text.Pandoc.UTF8: modified fromUTF8 to strip out the BOM
7290 if present. Windows Notepad and other applications insert a
7291 BOM at the beginning of a UTF8 file.
7293 * Main.hs (tabFilter): Treat '\r' at end of line as newline (in
7294 addition to "\r\n" and '\n').
7296 * Added a writer option for wrapped text and a command-line option
7297 '--no-wrap', which disables text wrapping and minimizes whitespace
7298 in HTML. (Resolves Issue #26.)
7300 + Added support for '--no-wrap' to Main.hs.
7301 + Added wrapIfNeeded function to Text.Pandoc.Shared.
7302 + Use wrapIfNeeded instead of wrapped in the RST, Man, Docbook, and
7303 Markdown writers.
7304 + Added render and renderFragment helpers to HTML writer.
7306 * Modified html2markdown to run tidy only if the HTML cannot be
7307 parsed. Previously html2markdown piped all input through tidy
7308 before passing it to pandoc. This caused problems on certain pages
7309 (e.g. http://daringfireball.com/markdown) which have well-formed
7310 XHTML that causes tidy to choke. The solution is to pipe through
7311 tidy only if pandoc cannot parse the input by itself. This means
7312 that a temp file is now always used, even when input comes from a
7313 local file or standard input.
7315 * Removed 'version' constant from Main.hs; added 'pandocVersion' to
7316 Text.Pandoc library.
7318 * pandoc.cabal:
7320 + Modified to work with GHC 6.8 and Cabal configurations. (For GHC
7321 6.8, pretty and containers must be added to Build-Depends, and it
7322 is desirable to use the -O2 compiler option.) Cabal configurations
7323 allows one to select options depending on the compiler version.
7324 For GHC 6.6, the splitBase option can be disabled.
7325 + pandoc.cabal.ghc66 is provided for users with older versions of
7326 Cabal, which do not support configurations.
7327 + Use Ghc-Prof-Options to ensure that '-auto-all' is used when
7328 '--enable-(executable|library)-profiling' is specified. Updated
7329 PROFILING instructions accordingly.
7331 * Makefile:
7333 + Makefile now checks GHC version. If GHC is 6.6, pandoc.cabal.ghc66
7334 is copied to pandoc.cabal, and the old pandoc.cabal is copied
7335 to pandoc.cabal.orig. Otherwise, pandoc.cabal is copied to
7336 pandoc.cabal.orig but otherwise unmodified. This way, the Makefile
7337 will work properly with either GHC 6.6 or 6.8.
7338 + Changed BUILDCONF to point to dist/setup-config, not .setup-config.
7339 This is where current versions of Cabal put it.
7340 + Added $(BUILDCMD) target, so setup doesn't get compiled every time.
7341 + Removed dependency of templates on ./templates, which is circular
7342 now that templates is a subdirectory of the top-level.
7344 * MacPorts Portfile:
7346 + Modified to install the pandoc library in addition to programs.
7347 + Installation must be done manually rather than using Makefile's
7348 install-all.
7349 + Note that the library must be registered in the activate phase,
7350 after the library files have been copied out of the destroot.
7351 Cabal generates a 'register.sh' script that will do this.
7353 * debian/control: Added libghc6-network-dev, libghc6-xhtml-dev, and
7354 libghc6-mtl-dev as dependencies for libghc6-pandoc-dev.
7355 Closes: #445235
7357 * debian/rules: Converted to UTF-8.
7359 * Changed pandoc home page to http://johnmacfarlane.net/pandoc/.
7361 * Updated ASCIIMathML.js to latest version.
7363 * Directory structure:
7365 + Moved everything from src into the top-level directory.
7366 + Changed references to source directory in Makefile and
7367 pandoc.cabal.*.
7368 + Moved ASCIIMathML.js, headers, and ui into templates directory.
7369 + Modified fillTemplates.pl to reflect new paths.
7371 [ Recai Oktaş ]
7373 * Makefile: Fixed the issue of having two copies of the library
7374 documentation under some usage scenarios.
7376 * Replaced 'ghc' with '$(GHC)' in Makefile, and made GHC
7377 and GHC_PKG configurable through the environment, to support
7378 unusual ghc installations. For example:
7379 GHC=/opt/ghc/bin/ghc GHC_PKG=/opt/ghc/bin/ghc-pkg make
7381 -- Recai Oktaş <roktas@debian.org> Sun, 07 Oct 2007 20:51:43 +0300
7383pandoc (0.44) unstable; urgency=low
7385 [ John MacFarlane ]
7387 * Fixed bug in HTML writer: when --toc was used, anchors were put around
7388 headers, which is invalid XHTML (block content within inline element).
7389 Now the anchors are put inside the header tags. Resolves Issue #23.
7391 * Added xmlns attribute to html element in html writer tests.
7392 This attribute is added by more recent versions of the
7393 xhtml library (>= 3000), and is required for valid XHTML.
7395 [ Recai Oktaş ]
7397 * On configure, compile 'Setup.hs' to 'setup' and use 'setup' as the build
7398 command instead of 'runhaskell', which, on some platforms (such as s390,
7399 alpha, m68k), throws the following error:
7401 runhaskell Setup.hs configure --prefix=/usr
7402 ghc-6.6.1: not built for interactive use
7404 This causes a serious FTBFS bug. Closes: #440668.
7406 -- Recai Oktaş <roktas@debian.org> Mon, 03 Sep 2007 18:24:02 +0300
7408pandoc (0.43) unstable; urgency=low
7410 [ John MacFarlane ]
7412 * The focus of this release is performance. The markdown parser
7413 is about five times faster than in 0.42, based on benchmarks
7414 with the TextMate manual.
7416 * Main.hs: Replaced CRFilter and tabFilter with single function
7417 tabFilter, which operates on the whole string rather than breaking
7418 it into lines, and handles dos-style line-endings as well as tabs.
7420 * Added separate LaTeX reader and native reader tests; removed
7421 round-trip tests.
7423 * Text.Pandoc.Shared:
7425 + Removed tabsToSpaces and tabsInLine (they were used only in Main.hs.)
7426 + General code cleanup (to elimante warnings when compiling with -Wall.)
7427 + Added 'wrapped' function, which helps wrap text into paragraphs,
7428 using the prettyprinting library.
7429 + Rewrote charsInBalanced and charsInBalanced'.
7430 - Documented restriction: open and close must be distinct characters.
7431 - Rearranged options for greater efficiency.
7432 - Bug fix: Changed inner call to charsInBalanced inside
7433 charsInBalanced' to charsInBalanced'.
7434 + anyLine now requires that the line end with a newline (not eof).
7435 This is a harmless assumption, since we always add newlines to the
7436 end of a block before parsing with anyLine, and it yields a 10% speed
7437 boost.
7438 + Removed unnecessary 'try' in anyLine.
7439 + Removed unneeded 'try' from romanNumeral parser.
7440 + Use notFollowedBy instead of notFollowedBy' in charsInBalanced.
7441 + Removed unneeded 'try' in parseFromString.
7442 + Removed unneeded 'try' from stringAnyCase. (Now it behaves
7443 like 'string'.)
7444 + Changed definition of 'enclosed' in Text.Pandoc.Shared so that
7445 'try' is not automatically applied to the 'end' parser. Added
7446 'try' in calls to 'enclosed' where needed. Slight speed increase.
7448 * Writers:
7450 + Replaced individual wrapping routines in RST, Man, and Markdown
7451 writers with 'wrapped' from Text.Pandoc.Shared.
7452 + Rewrote LaTeX writer to use the prettyprinting library,
7453 so we get word wrapping, etc.
7454 + Modified latex writer tests for new latex writer using prettyprinter.
7455 + Fixed bug in LaTeX writer: autolinks would not cause
7456 '\usepackage{url}' to be put in the document header. Also, changes
7457 to state in enumerated list items would be overwritten.
7458 + In Markdown writer, escape paragraphs that begin with ordered list
7459 markers, so they don't get interpreted as ordered lists.
7461 * Text.Pandoc.Reades.LaTeX:
7463 + Fixed bug in LaTeX reader, which wrongly assumed that the roman
7464 numeral after "enum" in "setcounter" would consist entirely of
7465 "i"s. 'enumiv' is legitimate.
7466 + LaTeX command and environment names can't contain numbers.
7467 + Rearranged order of parsers in inline for slight speed improvement.
7468 + Added '`' to special characters and 'unescapedChar'.
7470 * Text.Pandoc.Readers.RST:
7472 + Removed unneeded try's in RST reader; also minor code cleanup.
7473 + Removed tabchar.
7474 + Rearranged parsers in inline (doubled speed).
7476 * Text.Pandoc.Readers.Markdown:
7478 + Skip notes parsing if running in strict mode. (This yields a nice
7479 speed improvement in strict mode.)
7480 + Simplify autolink parsing code, using Network.URI to test for
7481 URIs. Added dependency on network library to debian/control and
7482 pandoc.cabal.
7483 + More perspicuous definition of nonindentSpaces.
7484 + Removed unneeded 'try' in 'rawLine'.
7485 + Combined linebreak and whitespace into a new whitespace parser, to
7486 avoid unnecessary reparsing of space characters.
7487 + Removed unnecessary 'try' in 'codeBlock', 'ellipses', 'noteMarker',
7488 'multilineRow', 'dashedLine', 'rawHtmlBlocks'.
7489 + Use lookAhead in parsers for setext headers and definition lists
7490 to see if the next line begins appropriately; if not, don't waste
7491 any more time parsing.
7492 + Don't require blank lines after code block. (It's sufficient to
7493 end code block with a nonindented line.)
7494 + Changed definition of 'emph': italics with '_' must not
7495 be followed by an alphanumeric character. This is to help
7496 prevent interpretation of e.g. `[LC_TYPE]: my_type` as
7497 `[LC<em>TYPE]:my</em>type`.
7498 + Improved Markdown.pl-compatibility in referenceLink: the two parts
7499 of a reference-style link may be separated by one space, but not
7500 more... [a] [link], [not] [a link].
7501 + Fixed markdown inline code parsing so it better accords with
7502 Markdown.pl: the marker for the end of the code section is a clump
7503 of the same number of `'s with which the section began, followed
7504 by a non-` character. So, for example,
7505 ` h ``` i ` -> `<code>h ``` i</code>`.
7506 + Split 'title' into 'linkTitle' and 'referenceTitle', since the
7507 rules are slightly different.
7508 + Rewrote 'para' for greater efficiency.
7509 + Rewrote link parsers for greater efficiency.
7510 + Removed redundant 'referenceLink' in definition of inline (it's
7511 already in 'link').
7512 + Refactored escapeChar so it doesn't need 'try'.
7513 + Refactored hrule for performance in Markdown reader.
7514 + More intelligent rearranging of 'inline' so that most frequently
7515 used parsers are tried first.
7516 + Removed tabchar parser, as whitespace handles tabs anyway.
7518 * Text.Pandoc.CharacterReferences:
7520 + Refactored.
7521 + Removed unnecessary 'try's for a speed improvement.
7522 + Removed unnecessary '&' and ';' from the entity table.
7524 * Build process:
7526 + Makefile: Get VERSION from cabal file, not Main.hs.
7527 + Modified MacPorts Portfile:
7528 - Depend on haddock
7529 - Build and install libraries and library documentation in
7530 addition to pandoc executable
7531 - Added template item for md5 sum in Portfile.in.
7532 - Incorporated changes from MacPorts repository (r28278).
7533 + FreeBSD port: Don't try to generate distinfo in Makefile.
7534 It can be made using 'make makesum' in FreeBSD.
7535 + Make both freebsd and macports targets depend on tarball.
7537 * Website and documentation:
7539 + Updated INSTALL instructions.
7540 + Added pandocwiki demo to website.
7541 + Removed local references to Portfile, since pandoc is now in the
7542 MacPorts repository.
7544 -- Recai Oktaş <roktas@debian.org> Sun, 02 Sep 2007 15:50:11 +0300
7546pandoc (0.42) unstable; urgency=low
7548 [ John MacFarlane ]
7550 * Main.hs: Use utf8 conversion on the extra files loaded with
7551 the -H, -C, -B, and -A options. This fixes problems with unicode
7552 characters in these files.
7554 * Exposed Text.Pandoc.ASCIIMathML, since it is imported in
7555 Text.Pandoc.Readers.HTML and without it we get a linking error when
7556 using the library.
7558 * Markdown reader:
7560 + Added new rule for enhanced markdown ordered lists: if the list
7561 marker is a capital letter followed by a period (including a
7562 single-letter capital roman numeral), then it must be followed by
7563 at least two spaces. The point of this is to avoid accidentally
7564 treating people's initials as list markers: a paragraph might begin,
7565 "B. Russell was an English philosopher," and this shouldn't be
7566 treated as a list. Documented change in README.
7567 + Blocks that start with "p. " and a digit are no longer treated
7568 as ordered lists (it's a page number).
7569 + Added a needed 'try' to listItem.
7570 + Removed check for a following setext header in endline.
7571 A full test is too inefficient (doubles benchmark time), and the
7572 substitute we had before is not 100% accurate.
7573 + Don't use Code elements for autolinks if --strict specified.
7575 * LaTeX writer: When a footnote ends with a Verbatim environment, the
7576 close } of the footnote cannot occur on the same line or an error occurs.
7577 Fixed this by adding a newline before the closing } of every footnote.
7579 * HTML writer:
7580 + Removed incorrect "{}" around style information in HTML tables.
7581 Column widths now work properly in HTML.
7582 + If --strict option is specified (and --toc is not), don't include
7583 identifiers in headers, for better Markdown compatibility.
7585 * Build process:
7587 + Separated $(web_dest) and website targets.
7588 + In website, index.txt is now constructed from template index.txt.in.
7589 + Added freebsd target to Markefile. This creates the freebsd Makefile
7590 from Makefile.in, and creates distinfo. Removed Makefile and distinfo
7591 from the repository.
7592 + Added macport target to Makefile. Portfile is built from template
7593 Portfile.in.
7594 + Removed OSX package targets. (Too many difficulties involving
7595 dependencies on dynamic libraries.)
7596 + More complete INSTALL instructions for all architectures.
7598 * Website:
7599 + Added a programming demo, pandocwiki.
7601 [ Recai Oktaş ]
7603 * Do not forget to close pandoc's ITP. Closes: #391666
7605 -- Recai Oktaş <roktas@debian.org> Sun, 26 Aug 2007 22:51:32 +0300
7607pandoc (0.41) unstable; urgency=low
7609 [ John MacFarlane ]
7611 * Fixed bugs in HTML reader:
7612 + Skip material at end *only if* `</html>` is present (previously,
7613 only part of the document would be parsed if an error was
7614 found; now a proper error message is given).
7615 + Added new constant eitherBlockOrInline with elements that may
7616 count either as block-level or as inline. Modified isInline and
7617 isBlock to take this into account.
7618 + Modified rawHtmlBlock to accept any tag (even an inline tag):
7619 this is innocuous, because rawHtmlBlock is tried only if a regular
7620 inline element can't be parsed.
7621 + Added a necessary 'try' in definition of 'para'.
7623 * Fixed bug in markdown ordered list parsing. The problem was that
7624 anyOrderedListStart did not check for a space following the
7625 ordered list marker. So in 'A.B. 2007' the parser would be
7626 expecting a list item, but would not find one, causing an error.
7627 Fixed a similar bug in the RST reader. Resolves Issue #22.
7629 * Refactored RST and Markdown readers using parseFromString.
7631 * LaTeX reader will now skip anything after \end{document}.
7633 * Fixed blockquote output in markdown writer: previously, block
7634 quotes in indented contexts would be indented only in the first
7635 line.
7637 * Added note to INSTALL about variations in versions of the xhtml
7638 library that can lead to failed tests (thanks to Leif LeBaron).
7640 -- Recai Oktaş <roktas@debian.org> Sun, 19 Aug 2007 23:26:07 +0300
7642pandoc (0.4) unstable; urgency=low
7644 [ John MacFarlane ]
7646 * Added two new output formats: groff man pages and ConTeXt. By
7647 default, output files with extensions ".ctx" and ".context" are
7648 assumed to be ConTeXt, and output files with single-digit extensions
7649 are assumed to be man pages.
7651 * Enhanced ordered lists (documented in README, under Lists):
7652 + The OrderedList block element now stores information about
7653 list number style, list number delimiter, and starting number.
7654 + The readers parse this information when possible.
7655 + The writers use this information to style ordered lists.
7656 + The enhancement can be disabled using the --strict option.
7658 * Added support for tables (with a new Table block element). Two kinds
7659 of tables are supported: a simple table with one-line rows, and a
7660 more complex variety with multiline rows. All output formats are
7661 supported, but only markdown tables are parsed at the moment. The
7662 syntax is documented in README.
7664 * Added support for definition lists (with a new DefinitionList block
7665 element). All output and input formats are supported. The syntax is
7666 documented in README.
7668 * Added support for superscripts and subscripts (with new Superscript
7669 and Subscript inline elements). All input and output
7670 formats. The syntax is documented in README.
7672 * Added support for strikeout (with a new Strikeout inline element).
7673 All input and output formats are supported. Thanks to Bradley Kuhn,
7674 who contributed a patch. The syntax is documented in README. Resolves
7675 Issue #18.
7677 * Added a --toc|--table-of-contents option. This causes an automatically
7678 generated table of contents (or an instruction that creates one) to
7679 be inserted at the beginning of the document. Not supported in S5,
7680 DocBook, or man page writers.
7682 * Modified the -m|--asciimathml option:
7684 + If an optional URL argument is provided, a link is inserted
7685 instead of the contents of the ASCIIMathML.js script.
7686 + Nothing is inserted unless the document actually contains
7687 LaTeX math.
7689 * Removed Blank block element as unnecessary.
7691 * Removed Key and Note blocks from the Pandoc data structure. All
7692 links are now stored as explicit links, and note contents are
7693 stored with the (inline) notes.
7695 + All link Targets are now explicit (URL, title) pairs; there
7696 is no longer a 'Ref' target.
7697 + Markdown and RST parsers now need to extract data from key and
7698 note blocks and insert them into the relevant inline elements.
7699 Other parsers have been simplified, since there is no longer any need
7700 to construct separate key and note blocks.
7701 + Markdown, RST, and HTML writers need to construct lists of
7702 notes; Markdown and RST writers need to construct lists of link
7703 references (when the --reference-links option is specified); and
7704 the RST writer needs to construct a list of image substitution
7705 references. All writers have been rewritten to use the State monad
7706 when state is required.
7707 + Several functions (generateReference, keyTable,
7708 replaceReferenceLinks, replaceRefLinksBlockList, and some auxiliaries
7709 used by them) have been removed from Text.Pandoc.Shared, since
7710 they are no longer needed. New functions and data structures
7711 (Reference, isNoteBlock, isKeyBlock, isLineClump) have been
7712 added. The functions inTags, selfClosingTag, inTagsSimple, and
7713 inTagsIndented have been moved to the DocBook writer, since that
7714 is now the only module that uses them. NoteTable is now exported
7715 in Text.Pandoc.Shared.
7716 + Added stateKeys and stateNotes to ParserState; removed stateKeyBlocks,
7717 stateKeysUsed, stateNoteBlocks, stateNoteIdentifiers, stateInlineLinks.
7718 + Added writerNotes and writerReferenceLinks to WriterOptions.
7720 * Added Text.Pandoc module that exports basic readers, writers,
7721 definitions, and utility functions. This should export everything
7722 needed for most uses of Pandoc libraries. The haddock documentation
7723 includes a short example program.
7725 * Text.Pandoc.ASCIIMathML is no longer an exported module.
7727 * Added Text.Pandoc.Blocks module to help in printing markdown
7728 and RST tables. This module provides functions for working with
7729 fixed-width blocks of text--e.g., placing them side by side, as
7730 in a table row.
7732 * Refactored to avoid reliance on Haskell's Text.Regex library, which
7733 (a) is slow, and (b) does not properly handle unicode. This fixed
7734 some strange bugs, e.g. in parsing S-cedilla, and improved performance.
7736 + Replaced 'gsub' with a general list function 'substitute'
7737 that does not rely on Text.Regex.
7738 + Rewrote extractTagType in HTML reader so that it doesn't use
7739 regexs.
7740 + In Markdown reader, replaced email regex test with a custom email
7741 autolink parser (autoLinkEmail). Also replaced selfClosingTag regex
7742 with a custom function isSelfClosingTag.
7743 + Modified Docbook writer so that it doesn't rely on Text.Regex for
7744 detecting 'mailto' links.
7745 + Removed escapePreservingRegex and reamped entity-handling
7746 functions in Text.Pandoc.Shared and Text.Pandoc.CharacterReferences to
7747 avoid reliance on Text.Regex (see below on character reference
7748 handling changes).
7750 * Renamed Text.Pandoc.Entities as Text.Pandoc.CharacterReferences.
7752 * Changed handling of XML entities. Entities are now parsed (and unicode
7753 characters returned) in the Markdown and HTML readers, rather than being
7754 handled in the writers. In HTML and Docbook writers, UTF-8 is now used
7755 instead of entities for characters above 128. This makes the HTML and
7756 DocBook output much more readable and more easily editable.
7758 + Removed sgmlHexEntity, sgmlDecimalEntity, sgmlNamedEntity, and
7759 sgmlCharacterEntity regexes from Text.Pandoc.Shared.
7760 + Renamed escapeSGMLChar to escapeCharForXML. Added escapeStringForXML.
7761 Moved both functions to Text.Pandoc.Writers.Docbook.
7762 + Added characterReference parser to Text.Pandoc.CharacterReferences.
7763 This parses a string and return a unicode character.
7764 + Rewrote decodeCharacterReferences to use the new parser instead of
7765 Text.Regex.
7766 + Added new charRef parser for Markdown and HTML, which replaces the
7767 old 'entity' parser. Added '&' as a special character in Markdown reader.
7768 + Modified HTML and Markdown readers to call decodeEntities on all raw
7769 strings (e.g. authors, dates, link titles), to ensure that no
7770 unprocessed entities are included in the native representation of
7771 the document. (In the HTML reader, most of this work is done by a
7772 change in extractAttributeName.)
7773 + In XML and Markdown output, escape unicode nonbreaking space as '&nbsp;',
7774 since a unicode non-breaking space is impossible to distinguish visually
7775 from a regular space. (Resolves Issue #3.)
7776 + Removed encodeEntitiesNumerical.
7777 + Use Data.Map for entityTable and (new) reverseEntityTable, for a
7778 slight performance boost over the old association list.
7779 + Removed unneeded decodeEntities from 'str' parser in HTML and
7780 Markdown readers.
7782 * Text.Pandoc.UTF8: Renamed encodeUTF8 to toUTF8, decodeUTF8 to
7783 fromUTF8, for clarity.
7785 * Replaced old haskell98 module names replaced by hierarchical module
7786 names, e.g. List by Data.List. Removed haskell98 from dependencies
7787 in pandoc.cabal, and added mtl (needed for state monad). Substituted
7788 xhtml for html.
7790 * Refactored and cleaned up character escaping in writers, using
7791 backslashEscapes and escapeStringUsing functions.
7793 * Instead of adding "\n\n" to the end of an input string in Main.hs,
7794 this is now done in the readers. This makes the libraries behave
7795 the way you'd expect from the pandoc program. Resolves Issue #10.
7797 * URLs and email addresses in autolinks are now typeset as Code.
7799 * In Main.hs, changed putStr to putStrLn -- mainly because MacOS X
7800 doesn't display the whole output unless there's a line ending.
7802 * Major code cleanup in all modules, for greater consistency, concision,
7803 and readability.
7805 * HTML reader:
7807 + Fixed several bugs (extractTagType, attribute parsing).
7808 + Remove Null blocks in lists of blocks when possible.
7809 + Allow HTML comments as raw HTML inline.
7811 * Markdown reader:
7813 + Ordered list items may no longer begin with uppercase letters, or
7814 letters greater than 'n'. (This prevents first initials and page
7815 reference, e.g. 'p. 400', from being parsed as beginning lists.)
7816 Also, numbers beginning list items may no longer end with ')',
7817 which is now allowed only after letters. Note: These changes
7818 may cause documents to be parsed differently. Users should take
7819 care in upgrading.
7820 + Changed autoLink parsing to conform better to Markdown.pl's
7821 behavior. `<google.com>` is not treated as a link, but
7822 `<http://google.com>`, `<ftp://google.com>`, and
7823 `<mailto:google@google.com>` are.
7824 + Cleaned up handling of embedded quotes in link titles. Now these are
7825 stored as a '"' character, not as '&quot;'.
7826 + Use lookAhead parser for the 'first pass' (looking for reference keys),
7827 instead of parsing normally, then using setInput to reset input. This
7828 yields a slight performance boost.
7829 + Fixed several bugs in smart quote recognition.
7830 + Fixed bug in indentSpaces (which didn't properly handle
7831 cases with mixed spaces and tabs).
7832 + Consolidated 'text', 'special', and 'inline' into 'inline'.
7833 + Fixed bug which allowed URL and title to be separated by multiple blank
7834 lines in links and reference keys. They can be on separate lines but
7835 can't have blank lines between them.
7836 + Correctly handle bracketed text inside inline footnotes and links,using
7837 new function inlinesInBalanced. Resolves Issue #14.
7838 + Fixed bug in footnotes: links in footnotes were not being
7839 processed. Solution: three-stage parse. First, get all the
7840 reference keys and add information to state. Next, get all the
7841 notes and add information to state. (Reference keys may be needed
7842 at this stage.) Finally, parse everything else.
7843 + Replaced named constants like 'emphStart' with literals.
7844 + Removed an extra occurance of escapedChar in definition of inline.
7846 * RST reader:
7848 + Allow the URI in a RST hyperlink target to start on the line
7849 after the reference key.
7850 + Added 'try' in front of 'string', where needed, or used a different
7851 parser. This fixes a bug where ````` would not be correctly parsed as
7852 a verbatim `.
7853 + Fixed slow performance in parsing inline literals in RST reader. The
7854 problem was that ``#`` was seen by 'inline' as a potential link or image.
7855 Fix: inserted 'notFollowedBy (char '`')' in link parsers.
7856 Resolves Issue #8.
7857 + Use lookAhead instead of getInput/setInput in RST reader. Removed
7858 unneeded getState call, since lookAhead automatically saves and
7859 restores the parser state.
7860 + Allow hyperlink target URIs to be split over multiple lines, and
7861 to start on the line after the reference. Resolves Issue #7.
7862 + Fixed handling of autolinks.
7864 * LaTeX reader:
7866 + Replaced 'choice [(try (string ...), ...]' idiom with 'oneOfStrings',
7867 for clarity.
7868 + Added clauses for tilde and caret. Tilde is \ensuremath{\sim}, and
7869 caret is \^{}, not \^ as before.
7870 + Added parsing for \url.
7871 + Parse \texttt{} as code, provided there's nothing fancy inside.
7873 * HTML writer:
7875 + Modified HTML writer to use the Text.XHtml library. This results
7876 in cleaner, faster code, and it makes it easier to use Pandoc in
7877 other projects, like wikis, which use Text.XHtml. Two functions are
7878 now provided, writeHtml and writeHtmlString: the former outputs an
7879 Html structure, the latter a rendered string. The S5 writer is also
7880 changed, in parallel ways (writeS5, writeS5String).
7881 + The Html header is now written programmatically, so it has been
7882 removed from the 'headers' directory. The S5 header is still
7883 needed, but the doctype and some of the meta declarations have
7884 been removed, since they are written programatically. This change
7885 introduces a new dependency on the xhtml package.
7886 + Fixed two bugs in email obfuscation involving improper escaping
7887 of '&' in the `<noscript>` section and in `--strict` mode. Resolves
7888 Issue #9.
7889 + Fixed another bug in email obfuscation: If the text to be obfuscated
7890 contains an entity, this needs to be decoded before obfuscation.
7891 Thanks to thsutton for the patch. Resolves Issue #15.
7892 + Changed the way the backlink is displayed in HTML footnotes.
7893 Instead of appearing on a line by itself, it now generally
7894 appears on the last line of the note. (Exception: when the
7895 note does not end with a Plain or Para block.) This saves space
7896 and looks better.
7897 + Added automatic unique identifiers to headers:
7898 - The identifier is derived from the header via a scheme
7899 documented in README.
7900 - WriterState now includes a list of header identifiers and a table
7901 of contents in addition to notes.
7902 - The function uniqueIdentifiers creates a list of unique identifiers
7903 from a list of inline lists (e.g. headers).
7904 - This list is part of WriterState and gets consumed by blockToHtml
7905 each time a header is encountered.
7906 + Include CSS for .strikethrough class in header only if strikethrough
7907 text appears in the document.
7908 + If the 'strict' option is specified, elements that do not appear in
7909 standard markdown (like definition lists) are passed through as
7910 raw HTML.
7911 + Simplified treatment of autolinks, using pattern matching instead of
7912 conditionals.
7914 * Markdown writer:
7916 + Links in markdown output are now printed as inline links by default,
7917 rather than reference links. A --reference-links option has been added
7918 that forces links to be printed as reference links. Resolves Issue #4.
7919 + Use autolinks when possible. Instead of `[site.com](site.com)`,
7920 use `<site.com>`.
7922 * LaTeX writer:
7924 + Rewrote to use the State monad. The preamble now includes only those
7925 packages that are actually required, given the document's content.
7926 Thus, for example, if strikeout is not used, ulem is not required.
7927 Modified LaTeXHeader accordingly.
7928 + Modified LaTeX writer to insert '\,' between consecutive quotes.
7929 + Removed unused function tableRowColumnWidths.
7930 + Simplified code for escaping special characters.
7931 + Leave extra blank line after \maketitle.
7932 + Include empty '\author{}' when no author specified to avoid LaTeX
7933 errors.
7934 + Include fancyvrb code in header only if needed -- that is, only
7935 if there is actually code in a footnote.
7936 + Use \url{} for autolinks.
7937 + Include [mathletters] option in ucs package, so that basic unicode
7938 Greek letters will work correctly.
7940 * RST writer: Force blank line before lists, so that sublists will
7941 be handled correctly.
7943 * Docbook writer: Fixed a bug: email links with text, like
7944 [foo](me@bar.baz), were being incorrectly treated as autolinks.
7946 * Removed Text.ParserCombinators.Pandoc and moved all its functions to
7947 Text.Pandoc.Shared.
7949 * Text.Pandoc.Shared:
7951 + Added defaultWriterOptions.
7952 + Added writerTableOfContents to WriterOptions.
7953 + Added writerIgnoreNotes option to WriterOptions. This is needed
7954 for processing header blocks for a table of contents, since notes on
7955 headers should not appear in the TOC.
7956 + Added prettyprinting for native Table format.
7957 + Removed some unneeded imports.
7958 + Moved escape and nullBlock parsers from
7959 Text.ParserCombinators.Pandoc, since the latter is for
7960 general-purpose parsers that don't depend on Text.Pandoc.Definition.
7961 + Moved isHeaderBlock from Text.Pandoc.Writers.HTML.
7962 + Moved Element, headerAtLeast, and hierarchicalize from Docbook
7963 writer, because HTML writer now uses these in constructing a table
7964 of contents.
7965 + Added clauses for new inline elements (Strikeout, Superscript,
7966 Subscript) to refsMatch.
7967 + Removed backslashEscape; added new functions escapeStringUsing and
7968 backslashEscapes.
7969 + Moved failIfStrict from markdown reader, since it is now used also
7970 by the HTML reader.
7971 + Added a 'try' to the definition of indentSpaces.
7972 + In definition of 'reference', added check to make sure it's not a note
7973 reference.
7974 + Added functions: camelCaseToHyphenated, toRomanNumeral,
7975 anyOrderedListMarker, orderedListmarker, orderedListMarkers,
7976 charsInBalanced', withHorizDisplacement, romanNumeral
7977 + Fixed a bug in the anyLine parser. Previously it would parse an empty
7978 string "", but it should fail on an empty string, or we get an error
7979 when it is used inside "many" combinators.
7980 + Removed followedBy' parser, replacing it with the lookAhead parser from
7981 Parsec.
7982 + Added some needed 'try's before multicharacter parsers, especially in
7983 'option' contexts.
7984 + Removed the 'try' from the 'end' parser in 'enclosed', so that
7985 'enclosed' behaves like 'option', 'manyTill', etc.
7986 + Added lineClump parser, which parses a raw line block up to and
7987 including any following blank lines.
7988 + Renamed parseFromStr to parseFromString.
7989 + Added a 'try' to the 'end' parser in 'enclosed'. This makes errors in
7990 the use of 'enclosed' less likely. Removed some now-unnecessary 'try's
7991 in calling code.
7992 + Removed unneeded 'try' in blanklines.
7993 + Removed endsWith function and rewrote calling functions to use
7994 isSuffixOf instead.
7995 + Added >>~ combinator.
7996 + Fixed bug in normalizeSpaces: Space:Str "":Space should compress to
7997 Space.
7999 * Refactored runtests.pl; added separate tests for tables.
8001 * Shell scripts:
8003 + Added -asxhtml flag to tidy in html2markdown. This will
8004 perhaps help the parser, which expects closing tags.
8005 + Modified markdown2pdf to run pdflatex a second time if --toc or
8006 --table-of-contents was specified; otherwise the table of
8007 contents won't appear.
8008 + Modified markdown2pdf to print a helpful message if the 'ulem'
8009 LaTeX package is required and not found.
8011 * Changes to build process:
8013 + Dropped support for compilation with GHC 6.4. GHC 6.6 or higher
8014 is now required.
8015 + Removed cabalize and Pandoc.cabal.in. The repository now contains
8016 pandoc.cabal itself.
8017 + Pandoc.cabal has been changed to pandoc.cabal, because HackageDB
8018 likes the cabal file to have the same name as the tarball.
8019 + Expanded and revised the package description in pandoc.cabal.
8020 Revised the package synopsis.
8021 + The tarball built by 'make tarball' now contains files built from
8022 templates (including man pages and shell scripts), so pandoc can
8023 be built directly using Cabal tools, without preprocessing.
8024 + Executable binaries are now stripped before installing.
8025 + Man pages are now generated from markdown sources, using pandoc's
8026 man page writer.
8027 + Use HTML version of README (instead of RTF) in Mac OS X installer.
8028 + Instead of testing for the existence of a pandoc symlink in build-exec,
8029 use ln -f.
8031 * Documentation:
8033 + Updated README and man pages with information on new features.
8034 + Updated INSTALL instructions with some useful clarifications and
8035 links.
8036 + Updated web content.
8038 * Added FreeBSD port.
8040 [ Recai Oktaş ]
8042 * debian/control:
8044 + Changed pandoc's Build-Depends to include libghc6-mtl-dev and
8045 libghc6-xhtml-dev. Removed libghc6-html-dev.
8046 + Suggest texlive-latex-recommended | tetex-extra instead of
8047 tetex-bin. This brings in fancyvrb and unicode support.
8049 -- Recai Oktaş <roktas@debian.org> Tue, 16 Jan 2007 00:37:21 +0200
8051pandoc (0.3) unstable; urgency=low
8053 [ John MacFarlane ]
8055 * Changes in pandoc options:
8057 + Allow options to follow or precede arguments.
8058 + Changed '--smartypants' to '--smart' and adjusted symbols accordingly.
8059 + Added '--strict' option.
8060 + Added '-o/--output' option.
8061 + Added '--dump-args' and '--ignore-args' options (for use in wrappers).
8062 + Modified '-v' and '-h' output to go to STDERR, not STDOUT, and return
8063 error conditions. This is helpful for writing wrappers.
8064 + Added copyright message to '-v' output, modeled after FSF messages.
8065 + Reformatted usage message so that it doesn't wrap illegibly.
8066 + Removed extra blanks after '-h' and '-D' output.
8068 * Added docbook writer.
8070 * Added implicit setting of default input and output format based
8071 on input and output filename extensions. These defaults are
8072 overridden if explicit input and output formats are specified using
8073 '-t', '-f', '-r', or '-w' options. Documented in pandoc(1) man page
8074 and README.
8076 * Allow ordered list items to begin with (single) letters, as well
8077 as numbers. The list item marker may now be terminated either by
8078 '.' or by ')'. This extension to standard markdown is documented
8079 in README.
8081 * Revised footnote syntax. (See README for full details.) The
8082 '[^1]' format now standard in markdown extensions is supported,
8083 as are inline footnotes with this syntax: '^[My note.]'.
8084 The earlier footnote syntax '^(1)' is no longer supported.
8086 * Improved HTML representation of footnotes. All footnotes
8087 are now auto-numbered and appear in an ordered list at the
8088 end of the HTML document. Since the default appearance is now
8089 acceptable, the old footnote styles have been removed from the
8090 HTML header.
8092 * Bug fixes:
8094 + Fixed a serious bug in the markdown, LaTeX, and RST readers.
8095 These readers ran 'runParser' on processed chunks of text to handle
8096 embedded block lists in lists and quotation blocks. But then
8097 any changes made to the parser state in these chunks was lost,
8098 as the state is local to the parser. So, for example, footnotes
8099 didn't work in quotes or list items. The fix: instead of calling
8100 runParser on some raw text, use setInput to make it the input, then
8101 parse it, then use setInput to restore the input to what it was
8102 before. This is shorter and more elegant, and it fixes the problem.
8103 + Fixed bug in notFollowedBy' combinator (adding 'try' before
8104 'parser'). Adjusted code that uses this combinator accordingly.
8105 + Fixed bug in RTF writer that caused improper indentation on
8106 footnotes occurring in indented blocks like lists.
8107 + Fixed parsing of metadata in LaTeX reader. Now the title, author,
8108 and date are parsed correctly. Everything else in the preamble
8109 is skipped.
8110 + Modified escapedChar in LaTeX reader to allow a '\' at the end of a
8111 line to count as escaped whitespace.
8112 + Modified LaTeX reader to produce inline links rather than reference
8113 links. Otherwise, links in footnotes aren't handled properly.
8114 + Fixed handling of titles in links in Markdown reader, so that
8115 embedded quotation marks are now handled properly.
8116 + Fixed Markdown reader's handling of embedded brackets in links.
8117 + Fixed Markdown reader so that it only parses bracketed material
8118 as a reference link if there is actually a corresponding key.
8119 + Revised inline code parsing in Markdown reader to conform to
8120 markdown standard. Now any number of `s can begin inline code,
8121 which will end with the same number of `s. For example, to
8122 have two backticks as code, write ``` `` ```. Modified Markdown
8123 writer accordingly.
8124 + Fixed bug in text-wrapping routine in Markdown and RST writers.
8125 Now LineBreaks no longer cause wrapping problems.
8126 + Supported hexadecimal numerical entity references as well as
8127 decimal ones.
8128 + Fixed bug in Markdown reader's handling of underscores and other
8129 inline formatting markers inside reference labels: for example,
8130 in '[A_B]: /url/a_b', the material between underscores was being
8131 parsed as emphasized inlines.
8132 + Changed Markdown reader's handling of backslash escapes so that
8133 only non-alphanumeric characters can be escaped. Strict mode
8134 follows Markdown.pl in only allowing a select group of punctuation
8135 characters to be escaped.
8136 + Modified HTML reader to skip a newline following a `<br>` tag.
8137 Otherwise the newline will be treated as a space at the beginning
8138 of the next line.
8140 * Made handling of code blocks more consistent. Previously, some
8141 readers allowed trailing newlines, while others stripped them.
8142 Now, all readers strip trailing newlines in code blocks. Writers
8143 insert a newline at the end of code blocks as needed.
8145 * Modified readers to make spacing at the end of output more consistent.
8147 * Minor improvements to LaTeX reader:
8149 + '\thanks' now treated like a footnote.
8150 + Simplified parsing of LaTeX command arguments and options.
8151 commandArgs now returns a list of arguments OR options (in
8152 whatever order they appear). The brackets are included, and
8153 a new stripFirstAndLast function is provided to strip them off
8154 when needed. This fixes a problem in dealing with \newcommand
8155 and \newenvironment.
8157 * Revised RTF writer:
8159 + Default font is now Helvetica.
8160 + An '\f0' is added to each '\pard', so that font resizing works
8161 correctly.
8163 * Moved handling of "smart typography" from the writers to the Markdown
8164 and LaTeX readers. This allows great simplification of the writers
8165 and more accurate smart quotes, dashes, and ellipses. DocBook can
8166 now use `<quote>`. The '--smart' option now toggles an option in
8167 the parser state rather than a writer option. Several new kinds
8168 of inline elements have been added: Quoted, Ellipses, Apostrophe,
8169 EmDash, EnDash.
8171 * Changes in HTML writer:
8173 + Include title block in header even when title is null.
8174 + Made javascript obfuscation of emails even more obfuscatory,
8175 by combining it with entity obfuscation.
8177 * Changed default ASCIIMathML text color to black.
8179 * Test suite:
8181 + Added --strip-trailing-cr option to diff in runtests.pl, for
8182 compatibility with Windows.
8183 + Added regression tests with footnotes in quote blocks and lists.
8185 * Makefile changes:
8187 + osx-pkg target creates a Mac OS X package (directory). New osx
8188 directory contains files needed for construction of the package.
8189 + osx-dmg target creates a compressed disk image containing the package.
8190 + win-pkg target creates Windows binary package.
8191 + tarball target creates distribution source tarball.
8192 + website target generates pandoc's website automatically, including
8193 demos. New 'web' directory containts files needed for construction
8194 of the website (which will be created as the 'pandoc' subdirectory
8195 of 'web').
8196 + Makefile checks to see if we're running Windows/Cygwin; if so,
8197 a '.exe' extension is added to each executable in EXECS.
8199 * Removed all wrappers except markdown2pdf and html2markdown.
8201 * Added new wrapper hsmarkdown, to be used as a drop-in replacement
8202 for Markdown.pl. hsmarkdown calls pandoc with the '--strict'
8203 option and disables other options.
8205 * Added code to html2markdown that tries to determine the character
8206 encoding of an HTML file, by parsing the "Content-type" meta tag.
8208 + If the encoding can't be determined, then if the content is local,
8209 the local encoding is used; if it comes from a URL, UTF-8 is used
8210 by default.
8211 + If input is from STDIN, don't try to determine character encoding.
8212 + Encoding can be specified explicitly using '-e' option.
8214 * Improved warning messages in wrappers:
8216 + Print warning if iconv not available
8217 + More user-friendly error messages in markdown2pdf, when
8218 pdflatex fails.
8220 * Code cleanup:
8222 + Renamed 'Text/Pandoc/HtmlEntities' module to
8223 'Text/Pandoc/Entities'. Also changed function names so as
8224 not to be HTML-specific.
8225 + Refactored SGML string escaping functions from HTML and Docbook
8226 writers into Text/Pandoc/Shared. (escapeSGML, stringToSGML)
8227 + Removed 'BlockQuoteContext' from ParserContext, as it isn't
8228 used anywhere.
8229 + Removed splitBySpace and replaced it with a general, polymorphic
8230 splitBy function.
8231 + Refactored LaTeX reader for clarity (added isArg function).
8232 + Converted some CR's to LF's in src/ui/default/print.css.
8233 + Added license text to top of source files.
8234 + Added module data for haddock to source files.
8235 + Reformatted code for consistency.
8237 * Rewrote documentation and man pages. Split README into INSTALL
8238 and README.
8240 * Split LICENSE into COPYING and COPYRIGHT.
8242 * Removed TODO, since we now maintain ToDo on the wiki.
8244 * Made COPYRIGHT in top level a symlink to debian/copyright, to avoid
8245 duplication.
8247 [ Recai Oktaş ]
8249 * Revamped build process to conform to debian standards and created
8250 a proper debian package. Closes: #391666.
8252 * Modified build process to support GHC 6.6.
8254 + The package can still be compiled using GHC 6.4.2, though because
8255 of dependencies the "make deb" target works only with GHC 6.6+.
8256 + The script 'cabalize' is used to create an appropriate
8257 'Pandoc.cabal' from 'Pandoc.cabal.in', depending on the GHC and
8258 Cabal versions.
8260 * Refactored template processing (fillTemplates.pl).
8262 * Modified wrapper scripts to make them more robust and portable.
8263 To avoid code duplication and ensure consistency, wrappers are
8264 generated via a templating system from templates in src/wrappers.
8266 + Wrappers now accept multiple filenames, when appropriate.
8267 + Spaces and tabs allowed in filenames.
8268 + getopts shell builtin is used for portable option parsing.
8269 + Improved html2markdown's web grabber code, making it more robust,
8270 configurable and verbose. Added '-e', '-g' options.
8272 -- Recai Oktaş <roktas@debian.org> Fri, 05 Jan 2007 09:41:19 +0200
8274pandoc (0.2) unstable; urgency=low
8276 * Fixed unicode/utf-8 translation
8278 -- John MacFarlane <jgm@berkeley.edu> Mon, 14 Aug 2006 00:00:00 -0400
8280pandoc (0.1) unstable; urgency=low
8282 * Initial creation of debian package
8284 -- John MacFarlane <jgm@berkeley.edu> Mon, 14 Aug 2006 00:00:00 -0400