git.iko.soy/typeable/pandoc
on 1.15.0.6 help sign in
typeable/pandoc/changelog
8511 lines 353 kB history raw
1pandoc (1.15.0.6)
3 * `--self-contained`: Fixed overaggressive CSS minimization (#2301, 2286).
4 Previously `--self-contained` wiped out all spaces in CSS,
5 including semantically significant spaces. This was a regression
6 from 1.14.x.
8 * Markdown reader: don't allow bare URI links or autolinks in link
9 label (#2300). Added test cases.
11 * `Text.Pandoc.Parsing`, `uri`: Improved bare autolink detection (#2299).
12 Previously we disallowed `-` at the end of an autolink,
13 and disallowed the combination `=-`. This commit liberalizes the
14 rules for allowing punctuation in a bare URI, and adds test cases.
15 One potential drawback is that you can no longer put a bare
16 URI in em dashes like this:
17 `this uri---http://example.com---is an example.`
18 But in this respect we now match github's treatment of bare URIs.
20 * HTML writer: support speaker notes in dzslides.
21 With this change `<div class="notes">` and also `<div class="notes"
22 role="note">` will be output if `-t dzslides` is used. So we can
23 have speaker notes in dzslides too. Thanks to maybegeek.
25 * Updated dzslides template.
27 * Improved documentation of options to print system default files (#2298).
28 `--print-default-data-file` and `--print-default-template`.
30 * DokuWiki writer: use `$..$` for Math instead of `<math>..</math>`
31 (Tiziano Müller). MathJax seems currently to be the only maintained
32 math rendering extension for DokuWiki.
34 * `Text.Pandoc.Shared`: Changed `hierarchicalize` so it treats references
35 div as top-level header (#2294). This fixes a bug with `--section-divs`,
36 where the final references section added by pandoc-citeproc, enclosed in
37 its own div, got nested in the div for the section previous to it.
39 * Allow vector 0.11.
41 * Require cmark > 0.4.
43pandoc (1.15.0.5)
45 * HTML writer: Fixed email javascript obfuscation with `mailto:`
46 URLs (#2280). This fixes a potential security issue. Because
47 single quotes weren't being escaped in the link portion, a
48 specially crafted email address could allow javascript code injection.
50 * Markdown/HTML readers: Avoid parsing partial URLs like
51 `<www.pandoc.org/blah#foo>` as HTML tags (#2277).
53 * RST reader: allow inline formatting in definition list field
54 names (Lars-Dominik Braun).
56 * PDF: Make sure `--latex-engine-opt` goes before the filename
57 on the command line. LaTeX needs the argument to come after
58 the options (#1779).
60 * CommonMark writer: fixed tags used for super/subscript.
62 * ConTeXt template: activate hanging indent for definition lists
63 (mb21).
65 * Make cabal require `hsb2hs` >= 0.3.1 if `embed_data_files` specified.
66 This is done by adding `hookedPrograms` in `Setup.hs`, which allows us
67 to include `hsb2hs` in Build-Tools in cabal.
69 * Improved Windows installer (thanks to nkalvi).
71 + When per-machine installation is chosen, the system path
72 is updated instead of the user's.
73 + An appropriate default is used for per-machine installation
74 directory.
75 + Admin privileges are no longer required for a per-user install
77 * Travis: unpack sdist for build to catch packaging bugs.
79 * Improved documentation on where user templates go (#2272).
81pandoc (1.15.0.4)
83 * Added pandoc.1 man page to the repository. It is no longer
84 built as part of the cabal build process. (This proved too
85 fragile.) pandoc.1 can be regenerated (`make man/pandoc.1`)
86 when `README` is changed.
88 * Copying of the man page now respects `--destdir` (#2262).
90 * Improved error messages for filters. User is now informed if
91 the filter requires an interpreter that isn't found in the path,
92 or if the filter returns an error status.
94pandoc (1.15.0.3)
96 * Ensure target directory is created when installing man page.
98pandoc (1.15.0.2)
100 * Added files needed for building man page to Extra-Source-Files.
102pandoc (1.15.0.1)
104 * Man page is now built and installed as part of the cabal build
105 process. Removed Makefile target for man page.
107pandoc (1.15)
109 * Man page changes:
111 + Removed `--man1`, `--man5` options (breaking change).
112 + Removed `Text.Pandoc.ManPages` module (breaking API change).
113 + Makefile target for `man/man1/pandoc.1`. This uses pandoc to
114 create the man page from README using a custom template and filters.
115 + Added `man/` directory with template and filters needed to build
116 man page.
117 + We no longer have two man pages: `pandoc.1` and `pandoc_markdown.5`.
118 Now there is just pandoc.1, which has all the content from README.
119 This change was needed because of the extensive cross-references
120 between parts of the README.
121 + Removed old `data/pandoc.1.template` and
122 `data/pandoc_markdown.5.template`.
124 * OpenDocument writer: Do not add a carriage return after a hard
125 line break (Michael Chladek).
127 * ConTeXt writer:
129 + use `\goto` for internal links.
130 + Added a `%` at end for `\reference` to avoid spurious space.
132 * Ignore sandbox on 'make quick'
134pandoc (1.14.1)
136 * Added `--man1` and `--man5` options to pandoc, allowing pandoc
137 to generate its own man pages. Man pages are no longer automatically
138 generated in the build process (the process for this was too complex
139 and prone to failure, #2190). The `make-pandoc-man-pages` executable
140 has been removed. The `man/` directory has been removed, and man page
141 templates have been moved to `data/`. NOTE TO PACKAGERS: You will no
142 longer find pandoc's man pages in `man/`, but you can generate them using
143 `pandoc --man1 > pandoc.1` and `pandoc --man5 > pandoc_markdown.5`.
145 * Added new unexported module: `Text.Pandoc.ManPages`.
147 * `README` now acts like a data file (even though it isn't in
148 `data/`). So, for example, `pandoc --print-default-data-file README`
149 will produce the README.) This change was required for the `--man1`
150 and `--man5` options, since the man pages are produced from the
151 README, but it may be useful for other purposes as well.
153 * Allow `reference.docx` and `reference.odt` to be used with
154 `--print-default-data-file` and to shadow defaults if placed in
155 the user data directory. Note that as of 1.14, we no longer
156 include these files as data files; instead, we include their
157 components. This change causes pandoc to behave as if it has
158 these data files; they are constructed on demand when needed
159 using `getDefaultReferenceDocx` and `getDefaultReferenceODT`.
161 * Fixed regression in CSS parsing with `--self-contained` (#2224).
162 Pandoc 1.14.0.x used css-text to parse the CSS, but its parser
163 silently drops big sections of CSS. This commit replaces the
164 use of css-text with a small but principled CSS preprocessor,
165 which removes whitespace and comments and replaces `url()` with
166 base 64 data when possible.
168 * Use `https://` instead of `//` for MathJax and KaTeX CDN URLs (#1920).
169 This will allow math to work when pages are being viewed locally.
171 * `Text.Pandoc.Options`: Export `plainExtensions`.
172 These are the extensions used in `plain` output.
174 * LaTeX reader: Don't parse `_` and `^` as sub/superscript outside of
175 math mode; treat them as regular inline text. Normally these will
176 cause an error in LaTeX, but there are contexts (e.g. `alltt`
177 environments) where they are allowed.
179 * HTML reader: allow `<body>` to close `<head>`.
181 * DocBook reader: support `mediaobject`s and `figures` (#2184, mb21).
183 * RST reader: Fix reference names with special characters
184 (Lars-Dominik Braun).
186 * Textile writer: escape `+` and `-` as entities (#2225).
188 * DokuWiki writer: Use proper `<code>` tags for code blocks (#2213).
190 * Plain writer: don't use symbols for super/subscript (#2237).
191 Simplified code by using `plainExtensions`.
193 * InDesign writer: Properly escape URLs containing more than one
194 colon character (gohai).
196 * Docx writer: Make sure we use dist version of `reference.docx`
197 (and not the user's version) for certain settings. Taking some
198 settings values from a user-supplied reference.docx can lead to
199 corruption. This fixes a regression from the last release (#2249).
201 * `Text.Pandoc.Shared`: exports `getDefaultReferenceDocx` and
202 `getDefaultReferenceODT` (API change). These functions have been
203 removed from the Docx and ODT writers.
205 * LaTeX template (Xavier Olive):
206 + Added `CJKmainfont` and `CJKoptions` variables.
207 + Allow dvipsnames (e.g. `MidnightBlue`) for colors (Xavier Olive).
209 * Epub templates: use `author.role`, not `author.type`.
211 * Bump cmark version to >= 0.3.4.
213 * Improved Windows installer (#2205, thanks to nkalvi).
214 Users can now select a per-user or systemwide install, and can set
215 the installation path. At the end of installation, the install location
216 is given. The install location is also now given in the list of
217 installed programs in Control Panel. Cleaner WiX syntax is used for
218 setting the path.
220 * Added `download_stats` target to Makefile.
222pandoc (1.14.0.4)
224 * Added missing commonmark template.
226 * Improved try pandoc (moved button, show raw command).
228pandoc (1.14.0.3)
230 * Allow compilation with syb 0.5.*.
232 * Custom writer: fixed some compiler warnings for ghc < 7.10.
234pandoc (1.14.0.2)
236 * Allow building with hslua 0.4.
238pandoc (1.14.0.1)
240 * Fixed problem with building of `reference.docx` and `reference.odt`
241 when the `embed_data_files` flag is used. Instead of having a phase
242 of the build where `reference.docx` and `reference.odt` are created
243 from their constituent data files, we now construct these archives
244 from their constituents when a `docx` or `odt` is built. The
245 constituent files have been moved from `extra-source-files` to
246 `data-files`, and `reference.docx` and `reference.odt` have been
247 removed. Users can create their own `reference.docx` or
248 `reference.odt` by using pandoc to create a simple `docx` or `odt`.
249 `make-reference-files.hs` has been removed, simplifying the build
250 process (#2187)
252 * Don't include generated man pages in extra-source-files (#2189).
254 * Bumped upper bound for aeson.
256 * ConTeXt writer: create internal link anchors for Div elements with
257 identifiers. (This is needed for linked citations to work.)
259pandoc (1.14)
261 [new features]
263 * Added `commonmark` as input and output format.
265 * Added `--verbose` flag for debugging output in PDF production (#1840,
266 #1653).
268 * Allow wildcards in `--epub-embed-font` arguments (#1939).
270 * Added `--latex-engine-opt` option (#969, #1779, Sumit Sahrawat).
272 * Added `shortcut_reference_links` extension (Konstantin Zudov, #1977).
273 This is enabled by default for those markdown flavors that
274 support reading shortcut reference links, namely: `markdown`,
275 `markdown_strict`, `markdown_github`, `markdown_php`.
276 If the extension is enabled, the reader parses shortcut reference
277 links like `[foo]`, and the writer creates such links unless doing
278 so would cause problems. Users of markdown flavors that support
279 shortcut reference links should not notice a difference in reading
280 markdown, but the markdown pandoc produces may differ.
281 If shortcut links are not desired, the extension can be disabled
282 in the normal way.
284 [behavior changes]
286 * `--toc` is now supported for `docx` output (#458, Nikolay Yakimov).
287 A "dirty" TOC is created at the beginning of document.
288 It can be regenerated after the document has been opened.
290 * An implicit `--filter pandoc-citeproc` is now triggered only when the
291 `--bibliography` option is used, and not when the `bibliography`
292 field in metadata is specified (#1849).
294 * Markdown reader:
296 + Reference links with `implicit_header_references` are no longer
297 case-sensitive (#1606).
298 + Definition lists no longer require indentation for first line (#2087).
299 Previously the body of the definition (after the `:` or `~` marker)
300 needed to be in column 4. This commit relaxes that requirement,
301 to better match the behavior of PHP Markdown Extra. So, now
302 this is a valid definition list:
304 foo
305 : bar
306 + Resolve a potentially ambiguity with table captions:
308 foo
310 : bar
312 -----
313 table
314 -----
316 Is "bar" a definition, or the caption for the table? We'll count
317 it as a caption for the table.
318 + Disallow headerless pipe tables (#1996), to conform to GFM and PHP
319 Markdown Extra. Note: If you have been using headerless pipe tables,
320 this change may cause existing tables to break.
321 + Allow pipe tables with header but no body (#2017).
322 + Allow a digit as first character of a citation key (Matthias Troffaes).
323 See https://github.com/jgm/pandoc-citeproc/issues/97
325 * LaTeX reader:
327 + Don't limit includes to `.tex` extension (#1882).
328 If the extension is not `.tex`, it must be given explicitly in
329 the `\input` or `\include`.
331 * Docx reader:
333 + Allow numbering in the style file. This allows inherited styles
334 with numbering (lists) (Jesse Rosenthal).
336 * Org reader:
338 + Support smart punctuation (Craig Bosma).
339 + Drop trees with a :noexport: tag (Albert Krewinkel). Trees having a
340 `:noexport:` tag set are not exported. This mirrors org-mode.
341 + Put header tags into empty spans (Albert Krewinkel, #2160).
342 Org mode allows headers to be tagged: `* Headline :TAG1:TAG2`.
343 Instead of being interpreted as part of the headline, the tags are now
344 put into the attributes of empty spans. Spans without textual content
345 won't be visible by default, but they are detectable by filters. They
346 can also be styled using CSS when written as HTML.
347 + Generalize code block result parsing (Albert Krewinkel).
348 Previously, only code blocks were recognized as result blocks;
349 now, any kind of block can be the result.
351 * Append newline to the LineBreak in Dokuwiki, HTML, EPUB,
352 LaTeX, MediaWiki, OpenDocument, Texinfo writers (#1924, Tim Lin).
354 * HTML writer:
356 + Add "inline" or "display" class to math spans (#1914).
357 This allows inline and display math to be styled differently.
358 + Include raw latex blocks if `--mathjax` specified (#1938).
359 + Require highlighting-kate >= 0.5.14 (#1903).
360 This ensures that all code blocks will be wrapped in a `div`
361 with class `sourceCode`. Also, the default highlighting CSS
362 now adds `div.sourceCode { x-overflow: auto; }`, which means
363 that code blocks (even with line numbers) will acquire a scroll
364 bar on screens too small to display them (e.g. mobile phones).
365 See also jgm/highlighting-kate#65.
367 * LaTeX writer:
369 + Use a declaration for tight lists (Jose Luis Duran, Joseph
370 Harriott). Previously, pandoc hard-coded some commands to make
371 tight lists in LaTeX. Now we use a custom command instead,
372 allowing the styling to be changed in a macro in the header.
373 (Note: existing templates may need to be modified to include
374 the definition of this macro. See the current template.)
375 + Beamer output: if the header introducing a slide has the
376 class `fragile`, add the `[fragile]` option to the slide (#2119).
378 * MediaWiki writer:
380 + Use `File:` instead of the deprecated `Image:` for images and
381 other media files (Greg Rundlett).
383 * DocBook writer:
385 + Render a `Div (id,_,_) [Para _]` element as a `para` element
386 with an `id` attribute. This makes links to citations work in
387 DocBook with pandoc-citeproc.
389 * RST writer:
391 + Normalize headings to sequential levels (Nikolay Yakimov).
392 This is pretty much required by docutils.
393 + Treat headings in block quotes, etc as rubrics (Nikolay Yakimov).
394 + Better handling of raw latex inline (#1961). We use
395 `` :raw-latex:`...` `` and add a definition for this role to
396 the template.
398 * EPUB writer:
400 + Remove `linear=no` from cover `itemref` (#1609).
401 + Don't use `sup` element for epub footnotes (#1995).
402 Instead, just use an a element with class `footnoteRef`.
403 This allows more styling options, and provides better results
404 in some readers (e.g. iBooks, where anything inside the a
405 tag breaks popup footnotes).
406 + Take TOC title from `toc-title` metadata field.
408 * Docx writer:
410 + Implemented `FirstParagraph` style (Jesse Rosenthal).
411 Following the ODT writer, we add the `FirstParagraph` style to the
412 first text paragraph following an image, blockquote, table, heading,
413 or beginning of document. This allows it to be styled differently.
414 The default is for it to be the same as `Normal`.
415 + Added `BodyText` style (Jesse Rosenthal).
416 We apply a `BodyText` style to all unstyled paragraphs. This is,
417 essentially, the same as `Normal`, except that since not everything
418 inherits from `BodyText` (the metadata won't, for example, or
419 the headers or footnote numbers), we can change the text in the body
420 without having to make exceptions for everything. If we do want to
421 change *everything*, we can still do it through `Normal`.
422 + Altered `Blockquote` style slightly (Jesse Rosenthal).
423 Since `BlockQuote` derives from `BodyText`, we just want to specify
424 by default that it won't indent, regardless of what `BodyText` does.
425 Note that this will not produce any visible difference in the default
426 configuration.
427 + Take TOC title from `toc-title` metadata field (Nikolay Yakimov).
428 + Added a style to figure images (Nikolay Yakimov).
429 Figures with empty captions use style `Figure`.
430 Figures with nonempty captions use style `Figure with Caption`, which
431 is based on `Figure`, and additionally has `keepNext` set.
433 * ODT writer:
435 + Added figure captions (Nikolay Yakimov). The following styles are
436 used for figures:
437 `Figure` -- for figure with empty caption),
438 `FigureWithCaption` (based on `Figure`) -- for figure with caption,
439 `FigureCaption` (based on `Caption`) -- for figure captions.
440 Also, `TableCaption` (based on `Caption`) is used for table captions.
442 [API changes]
444 * New `Text.Pandoc.Error` module with `PandocError` type
445 (Matthew Pickering).
447 * All readers now return `Either PandocError Pandoc` instead of `Pandoc`
448 (Matthew Pickering). This allows better handling of errors.
450 * Added `Text.Pandoc.Writers.CommonMark`, exporting `writeCommonMark`.
452 * Added `Text.Pandoc.Readers.CommonMark`, exporting `readCommonMark`.
454 * Derive `Data` and `Typeable` instances for `MediaBag`, `Extension`,
455 `ReaderOptions`, `EPUBVersion`, `CiteMethod`, `ObfuscationMethod`,
456 `HTMLSlideVariant`, `TrackChanges`, `WriterOptions` (Shabbaz
457 Youssefi).
459 * New `Ext_shortcut_reference_links` constructor for `Extension`
460 (Konstantin Zudov).
462 [bug fixes]
464 * Markdown reader:
466 + Allow smart `'` after inline math (#1909, Nikolay Yakimov).
467 + Check for tex macros after indented code (#1973).
468 + Rewrote `charsInBalancedBrackets` for efficiency.
469 + Make sure a closing `</div>` doesn't get included in a
470 definition list item (#2127).
471 + Don't parse bracketed text as citation if it might be a link,
472 image, or footnote (Nikolay Yakimov).
473 + Require space after key in mmd title block (#2026, Nikolay
474 Yakimov). Require space after key-value delimiter colon in mmd title
475 block.
476 + Require nonempty value in mmd title block (Nikolay Yakimov).
477 + Disable all metadata block extensions when parsing
478 metadata field values (#2026, Nikolay Yakimov). Otherwise we
479 could get a mmd title block inside YAML metadata, for example.
481 * HTML reader:
483 + Improve self-closing tag detection in `htmlInBalanced` (#2146).
484 + Handle tables with `<th>` in body rows (#1859, mb21).
485 + Fixed `htmlTag` (#1820). If the tag parses as a comment, we check
486 to see if the input starts with `<!--`. If not, it's bogus comment
487 mode and we fail `htmlTag`.
488 + Handle `base` tag; if it has an `href` value, this is added to
489 all relative URLs in links and images.
491 * DocBook reader:
493 + Look inside "info" elements for section titles (#1931).
495 * Docx reader:
497 + Parse images in deprecated vml format (Jesse Rosenthal).
498 + Allow sub/superscript verbatims (Jesse Rosenthal).
499 Verbatim usually shuts off all other run styles, but we don't want it
500 to shut off sub/superscript.
502 * LaTeX reader:
504 + Handle `tabular*` environment (#1850).
505 Note that the table width is not actually parsed or taken into
506 account, but pandoc no longer chokes on it.
507 + Ignore options in `\lstinline` rather than raising error (#1997).
508 + Add some test cases for simple tables (Mathias Schenner).
509 + Handle valign argument in tables (Mathias Schenner) (currently
510 we just ignore this).
511 + Allow non-empty colsep in tables (Mathias Schenner).
512 The `tabular` environment allows non-empty column separators
513 with the "@{...}" syntax. Previously, pandoc would fail to
514 parse tables if a non-empty colsep was present. With this
515 commit, these separators are still ignored, but the table gets
516 parsed. A test case is included.
517 + Recognize `\newpage` as a block command.
518 + Allow block content in \title{} (#2001).
519 + Check for block-level newcommand aliases in blockCommand (Nikolay
520 Yakimov).
521 + Guard against paragraph starting with inline macro (Nikolay Yakimov).
522 + Properly gobble spaces after `\\` (#2007).
524 * Textile reader:
526 + Handle newlines in table cells, and empty cells (#1919).
528 * Org reader:
530 + Allow image links with non-image targets (Hans-Peter Deifel).
531 This matches behavior of Org-Mode for links like
532 `[[http://example.com][https://www.haskell.org/static/img/logo.png]]`.
534 * Docbook writer:
536 + Don't print empty id attributes (thanks to Steve Horne).
538 * HTML writer:
540 + Fixed list-style-type for numbered example lists.
541 Should be "decimal," not "example" (#1902).
542 + Do not omit missing `alt` attribute on `img` tag (#1131,
543 Konstantin Zudov).
544 + Allow multiple colgroups in table (#2122).
545 + In revealjs, ensure that lists in speaker notes don't add "fragment"
546 classes, which can cause additional keypresses to be needed to
547 advance a slide (#1394).
549 * LaTeX writer:
551 + Don't escape `$` in URL (#1913).
552 + Don't use listings in headers (Matthew Pickering, #1963).
553 + Recognize book documentclass if set in metadata (#1971).
554 This sets `--chapters` implicitly if the documentclass in metadata
555 is a book documentclass. Previously this was done only if a book
556 documentclass was set in a variable.
557 + Add a `\label` in `\hyperdef` for Div, Span (or links don't work).
558 + Make `mainlang` work when `lang` is in metadata (#2174).
560 * Texinfo writer:
562 + Fix wrapping by using breakable spaces (Tim Lin).
564 * RST writer:
566 + Fixed toc depth in RST writer. Previously the depth was being
567 rendered as a floating point number with a decimal point.
569 * Markdown writer:
571 + Improved escaping (#2086). `<` should not be escaped as `\<`, for
572 compatibility with original Markdown. We now escape `<` and `>`
573 with entities. Also, we now backslash-escape square brackets.
574 + Avoid introducing spurious list items through wrapping (#1946).
575 + Don't emit span tags if plain or raw HTML disabled.
577 * MediaWiki writer:
579 + Convert spaces to underscores in wikilink URL (#1982), like MediaWiki.
581 * AsciiDoc writer:
583 + Insert some needed blank lines (#1860).
584 + Avoid wrapping after list marker (#1858).
586 * EPUB writer:
588 + Properly handle internal links to IDs in spans, divs (#1884).
589 + Use plain writer for metadata dc: fields (#2121).
590 This gives better results when we have, e.g. multiple paragraphs.
591 Note that tags aren't allowed in these fields.
592 + Properly handle image links without an extension (#1855).
593 + Improved chapter splitting and internal link rewriting (#1887,
594 #2162, #2163). This will ensure that internal links work and
595 that the references section produced by pandoc-citeproc is
596 in its own chapter.
597 + Fixed handling of svg images (#2183).
599 * ICML writer:
601 + Better handling of raw blocks and inlines (#1951).
602 Previously these were always escaped and printed verbatim.
603 Now they are ignored unless the format is `icml`, in which
604 case they are passed through unescaped.
605 + Fixed image URIs in ICML output (gohai).
607 * Custom writer:
609 + Raise error if loadstring returns an error status.
610 + Raise `PandocLuaException` instead of using 'error'.
611 Eventually we'll change the return type so that no exception
612 is involved, but at least this can be trapped.
613 + Use UTF-8 aware bytestring conversion.
614 + Set foreign encoding to UTF-8 (Nikolay Yakimov, #2101, #1634).
615 Also factored out ByteString, since it's only used as an intermediate
616 representation.
618 * Docx writer:
620 + Copy hyphenation settings from reference.docx (Nikolay Yakimov).
621 + Filter out illegal XML characters (#1992, Matthew Pickering).
622 + Added `noProof` to docx syntax highlighting `SourceCode` style.
623 + Added footnotes id -1 and 0 (Jesse Rosenthal).
624 Word uses, by default, footnotes with id -1 and 0 for separators. If a
625 user modifies `reference.docx`, they will end up with a `settings.xml`
626 file that references these footnotes, but no such footnotes in the
627 document. This will produce a corruption error. Here we add these to the
628 document and `settings.xml` file, so future modifications won't break
629 the file.
630 + Handle lists correctly inside table cells (Jesse Rosenthal).
631 Previously we didn't transform lists inside table cells.
632 + Set firstRow information in tables (Nikolay Yakimov).
633 + Don't replace `SourceCode` style in `reference.docx` if it is defined
634 there (Nikolay Yakimov, #1872). If `--no-highlight` specified, remove
635 any `SourceCode` and `*Tok` styles in `reference.docx`.
636 + Attempt to match international style names (#1607, Nikolay Yakimov).
637 + Set these styles as custom (Nikolay Yakimov): `Author`, `Abstract`,
638 `Compact`, `Image Caption`, `Table Caption`, `Definition Term`,
639 `Definition`, `First Paragraph`.
640 + Rename these styles to correspond with Word `Normal.dotm` (Nikolay
641 Yakimov): `Block Quote -> Block Text`, `Link -> Hyperlink`,
642 `Footnote Ref -> Footnote Reference`.
643 + Added `Caption` style (Nikolay Yakimov).
644 + Changed these styles' inheritance (Nikolay Yakimov):
645 `Image Caption <- Caption`, `Table Caption <- Caption`.
646 + Remove `SourceCode` style from `reference.docx` (#1872).
647 This is added automatically by the docx writer.
648 + Added toc heading style to `reference.docx` (Nikolay Yakimov).
650 * `Text.Pandoc.PDF`
652 + Don't suggest "Try xelatex" if xelatex already in use (mb21, #1832).
653 + More comprehensible errors on image conversion (#2067).
654 EPS can't be supported without shelling out to something like
655 ImageMagick, but at least we can avoid mysterious error messages.
657 * `Text.Pandoc.Shared`:
659 + Make safeRead safe (#1801, Matthew Pickering).
660 + Addded `mapLeft`, `hush` (Matthew Pickering).
662 * `Text.Pandoc.Pretty`:
664 + Remove partial function (Matthew Pickering).
666 * `Text.Pandoc.SelfContained`:
668 + Add `;charset=utf-8` to script mime type if missing (#1842).
669 + Improved building of data URIs (#1940). Now base64 is used except
670 for `text/*` mime types.
671 + `cssURLs` no longer tries to fetch fragment URLs (#2121).
672 + Properly handle data URIs in css urls (#2129).
673 Use a proper CSS parser (adds dependency on `text-css`).
675 * `Text.Pandoc.UTF8`:
677 + Better handling of bare CRs in input files (#2132).
678 Previously we just stripped them out; now we convert
679 other line ending styles to LF line endings.
681 * `Text.Pandoc.ImageSize`:
683 + Fixed some exif header parsing bugs (#1834).
684 + Make imageSize return an Either, not a Maybe (#1834).
685 Use `runGetOrFail` (with `binary >= 0.7`) to return `Left` on
686 parse failure (rather than `error`).
687 + Improved warnings when image size can't be determined.
688 + Removed error landmines (Matthew Pickering).
690 * Added woff2 to MIME types (Alfred Wechselberger).
692 * pandoc: When a binary input format is used, warn that file
693 arguments past the first one are being ignored (Matthew Pickering).
695 [template changes]
697 * LaTeX template:
699 + Degrade gracefully if `\paragraph` not defined.
700 + Include `grffile` together with `graphicx` (#2074).
701 This properly handles filenames containing spaces and dots.
702 + Redefine `\paragraph`, `\subparagraph`... to behave more
703 like section headers (#1658).
704 + Import hyperref before polyglossia to avoid an error with xelatex,
705 "please load package hyperref before bidi package" (Nick Bart).
706 + Added `toccolor` variable to control link color in toc (Kaixhin).
708 * LaTeX, Beamer templates:
710 + Provide `\tightlist`, which is now used by the LaTeX writer.
711 + Use polyglossia in beamer (#85).
712 + Use `bibliography` instead of `biblio-files`
713 (#1661). Also use `\addbibresource` instead of `\bibliography` for
714 biblatex.
715 + Added `setotherlanguages` in polyglossia. This uses an `otherlang`
716 variable that is derived from a comma-separated list in `lang`;
717 the last language is `mainlang` and the others are `otherlang`.
719 * EPUB templates:
721 + Use `div`, not `p`, for "rights" on title page.
722 + Added header-includes, include-before, include-after (#1987).
724 * OpenDocument template:
726 + Use `text:p` instead of `text:h` for title.
727 Using `text:h` causes problems with numbering. Closes #2059.
728 Thansk to @nkalvi for diagnosing this.
730 * reveal.js template:
732 + Link to non-minified css, js. The minified versions no longer
733 ship with the library.
734 + Correctly include style CSS (#1949).
735 + New configurable options options: `center`, `maxScale`, `slideNuber`
736 (Dmitry Smirnov, pandoc-templates#89).
737 + Moved custom CSS after theme. This allows custom CSS to modify
738 themes, instead of being replaced by them.
739 + Allow `center` to be set to false.
741 [under the hood improvements]
743 * Removed pre-built `reference.docx` and `reference.odt` (Nikolay
744 Yakimov). Instead the repository now includes the component text files,
745 and the zipped binaries are built from these using a helper
746 program, `make-reference-files`. This should make maintenance of
747 these components easier going forward.
749 * `Text.Pandoc.Parsing`:
751 + Added new `<+?>` combinator (Nikolay Yakimov).
752 + Added `stateHeaderKeys` to `ParserState`.
754 * `make_deb.sh` fixes:
756 + Detect architecture.
757 + Add Installed-Size to debian package control file (#1900).
758 + Use `fakeroot` to get permissions right.
759 + Use `mkdir` and `cp` instead of `install`.
760 + Set permissions of directories to 755.
761 + Install in `/usr` rather than `/usr/local`.
762 + Compress man pages.
763 + Combine copyright files for `pandoc`, `pandoc-citeproc`.
765 * Added `Text.Pandoc.Compat.Locale` and `old-locale` flag
766 to assist with transition to `time` 1.5.
768 * Updated CONTRIBUTING.md with information about issue tags (Matthew
769 Pickering).
771 * Updated travis installs to the new sudo-less syntax (Tim Lin).
773 * Updated dependency version bounds.
775 * EPUB tests: don't use `joinPath`, which varies across platforms.
776 Instead, use a forward-slash to join paths, regardless of the
777 platform. This matches the way `MediaBag` now works.
779 * Clarify JSON input and output in usage message (Caleb McDaniel).
781 * Improved INSTALL instructions.
783 * Always build man pages. Removed make-pandoc-man-pages flag.
785 * Makefile: removed man target, now that we generate man pages by default.
787 * README:
789 + Fixed typos (J. Lewis Muir).
790 + Added documentation on backtick_code_blocks (#2135, Nikolay Yakimov).
791 + Added note on in-field markup in biblio databases (Nick Bart).
792 + Fixed misleading example of raw HTML block.
793 + Various minor formatting and consistency fixes for the program
794 options (Andreas Lööw).
795 + Made definition lists for options all "loose" for consistency.
796 + Added YAML biblio format to table, and note on `pandoc-citeproc`'s
797 `--bib2json` and `--bib2yaml` options (Nick Bart).
798 + Removed obsolete reference to `mods2yaml` (Nick Bart).
799 + Added section on syntax highlighting.
800 + Documented `toccolor` variable.
802pandoc (1.13.2.1)
804 * Updated to build with ghc 7.10.1.
806 * Bumped package upper bounds for filepath, blaze-html,
807 blaze-markup.
809pandoc (1.13.2)
811 * TWiki Reader: add new new twiki reader (API chaneg, Alexander Sulfrian).
813 * Markdown reader:
815 + Better handling of paragraph in div (#1591).
816 Previously text that ended a div would be parsed as Plain
817 unless there was a blank line before the closing div tag.
818 + Don't treat a citation as a reference link label (#1763).
819 + Fix autolinks with following punctuation (#1811).
820 The price of this is that autolinked bare URIs can no longer
821 contain `>` characters, but this is not a big issue.
822 + Fix `Ext_lists_without_preceding_blankline` bug (#1636, Artyom).
823 + Allow `startnum` to work without `fancy_lists`. Formerly
824 `pandoc -f markdown-fancy_lists+startnum` did not work properly.
826 * RST reader (all Daniel Bergey):
828 + Parse quoted literal blocks (#65). RST quoted literal blocks are
829 the same as indented literal blocks (which pandoc already supports)
830 except that the quote character is preserved in each line.
831 + Parse RST class directives. The class directive accepts one or more
832 class names, and creates a Div value with those classes. If the
833 directive has an indented body, the body is parsed as the children of
834 the Div. If not, the first block folowing the directive is made a
835 child of the Div. This differs from the behavior of rst2xml, which
836 does not create a Div element. Instead, the specified classes are
837 applied to each child of the directive. However, most Pandoc Block
838 constructors to not take an Attr argument, so we can't duplicate this
839 behavior.
840 + Warn about skipped directives.
841 + Literal role now produces Code. Code role should have "code" class.
842 + Improved support for custom roles
844 - Added `sourceCode` to classes for `:code:` role, and anything
845 inheriting from it.
846 - Add the name of the custom role to classes if the Inline
847 constructor supports Attr.
848 - If the custom role directive does not specify a parent role,
849 inherit from the `:span:` role.
851 This differs somewhat from the `rst2xml.py` behavior. If a custom
852 role inherits from another custom role, Pandoc will attach both
853 roles' names as classes. `rst2xml.py` will only use the class of
854 the directly invoked role (though in the case of inheriting from a
855 `:code:` role with a `:language:` defined, it will also provide the
856 inherited language as a class).
857 + Warn about ignored fields in role directives.
859 * LaTeX reader:
861 + Parse label after caption into a span instead of
862 inserting an additional paragraph of bracketed text (#1747).
863 + Parse math environments as inline when possible (#1821).
864 + Better handling of `\noindent` and `\greektext` (#1783).
865 + Handle `\texorpdfstring` more gracefully.
866 + Handle `\cref` and `\sep` (Wikiwide).
867 + Support `\smartcite` and `\Smartcite` from biblatex.
869 * HTML reader:
871 + Retain display type of MathML output (#1719, Matthew Pickering).
872 + Recognise `<br>` tags inside `<pre>` blocks (#1620, Matthew Pickering).
873 + Make `embed` tag either block or inline (#1756).
875 * DocBook reader:
877 + Handle `keycombo`, `keycap` (#1815).
878 + Get string content in inner tags for literal elements (#1816).
879 + Handle `menuchoice` elements better, with a `>` between (#1817).
880 + Include `id` on section headers (#1818).
881 + Document/test "type" as implemented (Brian O'Sullivan).
882 + Add support for calloutlist and callout (Brian O'Sullivan).
883 We treat a calloutlist as a bulleted list. This works well in practice.
884 + Add support for `classname` (Bryan O'Sullivan).
886 * Docx reader:
888 + Fix window path for image lookup (Jesse Rosenthal).
889 Don't use os-sensitive "combine", since we always want the paths in our
890 zip-archive to use forward-slashes.
891 + Single-item headers in ordered lists are headers (Jesse Rosenthal).
892 When users number their headers, Word understands that as a single item
893 enumerated list. We make the assumption that such a list is, in fact,
894 a header.
895 + Rewrite rewriteLink to work with new headers (Jesse Rosenthal).
896 There could be new top-level headers after making lists, so we have to
897 rewrite links after that.
898 + Use polyglot header list (Jesse Rosenthal).
899 We're just keeping a list of header formats that different languages
900 use as their default styles. At the moment, we have English, German,
901 Danish, and French. We can continue to add to this.
902 This is simpler than parsing the styles file, and perhaps less
903 error-prone, since there seems to be some variations, even within a
904 language, of how a style file will define headers.
905 + Remove header class properly in other langs (Jesse Rosenthal).
906 When we encounter one of the polyglot header styles, we want to remove
907 that from the par styles after we convert to a header. To do that, we
908 have to keep track of the style name, and remove it appropriately.
909 + Account for external link URLs with anchors. Previously, if a URL
910 had an anchor, the reader would incorrectly identify it as an
911 internal link and return only the anchor as URL. (Caleb McDaniel)
912 + Fix for Issue #1692 (i18n styles) (Nikolay Yakimov).
914 * Org reader:
916 + Added state changing blanklines (Jesse Rosenthal).
917 This allows us to emphasize at the beginning of a new paragraph (or, in
918 general, after blank lines).
919 + Fixed bug with bulleted lists:
921 - a
922 - b
923 * c
925 was being parsed as a list, even though an unindented `*`
926 should make a heading. See
927 <http://orgmode.org/manual/Plain-lists.html#fn-1>.
928 + Org reader: absolute, relative paths in link (#1741, Albert
929 Krewinkel). The org reader was too restrictive when parsing links;
930 some relative links and links to files given as absolute paths
931 were not recognized correctly.
932 + Org reader: allow empty links (jgm/gitit#471, Albert Krewinkel).
933 This is important for use in gitit, which uses empty links
934 for wikilinks.
935 + Respect indent when parsing Org bullet lists (#1650, Timothy
936 Humphries). Fixes issue with top-level bullet list parsing.
937 + Fix indent issue for definition lists (Timothy Humphries,
938 see #1650, #1698, #1680).
939 + Parse multi-inline terms correctly in definition list (#1649,
940 Matthew Pickering).
941 + Fix rules for emphasis recognition (Albert Krewinkel).
942 Things like `/hello,/` or `/hi'/` were falsy recognized as emphasised
943 strings. This is wrong, as `,` and `'` are forbidden border chars and
944 may not occur on the inner border of emphasized text.
945 + Drop COMMENT document trees (Albert Krewinkel).
946 Document trees under a header starting with the word `COMMENT` are
947 comment trees and should not be exported. Those trees are dropped
948 silently (#1678).
949 + Properly handle links to `file:target` (Albert Krewinkel).
950 Org links like `[[file:target][title]]` were not handled correctly,
951 parsing the link target verbatim. The org reader is changed such that
952 the leading `file:` is dropped from the link target (see #756, #1812).
953 + Parse LaTeX-style MathML entities (#1657, Albert Krewinkel).
954 Org supports special symbols which can be included using LaTeX syntax,
955 but are actually MathML entities. Examples for this are
956 `\nbsp` (non-breaking space), `\Aacute` (the letter A with accent acute)
957 or `\copy` (the copyright sign ©)
959 * EPUB reader:
961 + URI handling improvements. Now we outsource most of the work to
962 `fetchItem'`. Also, do not include queries in file extensions (#1671).
964 * LaTeX writer:
966 + Use `\texorpdfstring` for section captions when needed (Vaclav Zeman).
967 + Handle consecutive linebreaks (#1733).
968 + Protect graphics in headers (Jesse Rosenthal).
969 Graphics in `\section`/`\subsection` etc titles need to be `\protect`ed.
970 + Put `~` before header in list item text (Jesse Rosenthal).
971 Because of the built-in line skip, LaTeX can't handle a section header
972 as the first element in a list item.
973 + Avoid using reserved characters as `\lstinline` delimiters (#1595).
974 + Better handling of display math in simple tables (#1754).
975 We convert display math to inline math in simple tables,
976 since LaTeX can't deal with display math in simple tables.
977 + Escape spaces in code (#1694, Bjorn Buckwalter).
979 * MediaWiki writer:
981 + Fixed links with URL = text. Previously these were rendered as bare
982 words, even if the URL was not an absolute URL (#1825).
984 * ICML writer:
986 + Don't force all citations into footnotes.
988 * RTF writer:
990 + Add blankline at end of output (#1732, Matthew Pickering).
992 * RST writer:
994 + Ensure blank line after figure.
995 + Avoid exces whitespace after last list item (#1777).
996 + Wrap line blocks with spaces before continuations (#1656).
997 + Fixed double-rendering of footnotes in RST tables (#1769).
999 * DokuWiki writer:
1001 + Better handling of block quotes. This change ensures that
1002 multiple paragraph blockquotes are rendered using native `>`
1003 rather than as HTML (#1738).
1004 + Fix external images (#1739). Preface relative links with ":",
1005 absolute URIs without. (Timothy Humphries)
1007 * HTML writer:
1009 + Use protocol-relative URL for mathjax.
1010 + Put newline btw img and caption paragraph.
1011 + MathML now outputted with tex annotation (#1635, Matthew Pickering).
1012 + Add support for KaTeX HTML math (#1626, Matthew Pickering).
1013 This adds `KaTeX` to `HTMLMathMethod` (API change).
1014 + Don't double render when `email-obfuscation=none` (#1625, Matthew
1015 Pickering).
1016 + Make header attributes work outside top level (#1711).
1017 Previously they only appeared on top level header elements.
1018 Now they work e.g. in blockquotes.
1020 * ODT writer:
1022 + Correctly handle images without extensions (#1729).
1023 + Strip querystring in ODT write (#1682, Todd Sifleet).
1025 * FB2 writer:
1027 + Add newline to output.
1029 * EPUB writer:
1031 + Don't add `sourceURL` to absolute URIs (#1669).
1032 + Don't use unsupported `opf:title-type` for epub2.
1033 + Include "landmarks" section in nav document for epub3 (#1757).
1034 + Removed playOrder from navpoint elements in ncx file (#1760).
1035 These aren't required, and they make manual modification of epubs
1036 difficult.
1037 + Extract title even from structured title.
1038 + Don't include nav node in spine unless `--toc` was requested.
1039 Previously we included it in the spine with `linear="no"`, leading
1040 to odd results in some readers (#1593).
1041 + Fixed absolute URI detection (#1672).
1042 + Correctly resolve relative URIs (#1671).
1043 + Use regular page template for `nav.xhtml`, including doctype (#1759).
1045 * Docx writer:
1047 + Put docx table captions above tables (#1641, Nikolay Yakimov).
1048 + Get the page width from the reference docx file, and use
1049 it to scale images that are too large to fit (Grégory Bataille).
1050 + Partial fix for #1607 (Nikolay Yakimov). International heading styles
1051 are inferred based on `<w:name val="heading #">` fallback, if there
1052 are no en-US "Heading#" styles
1053 + Look in user data dir for archive `reference.docx`.
1054 + Renumber header and footer relationships to avoid collisions (Jesse
1055 Rosenthal). We previously took the old relationship names of the
1056 headers and footer in secptr. That led to collisions. We now make
1057 a map of availabl names in the relationships file, and then rename
1058 in secptr.
1060 * ConTeXt writer:
1062 + Add function toLabel (Mark Szepieniec).
1063 This function can be used to sanitize reference labels so that
1064 they do not contain any of the illegal characters \#[]",{}%()|= .
1065 Currently only Links have their labels sanitized, because they
1066 are the only Elements that use passed labels.
1068 * `Text.Pandoc.Shared`:
1070 + Moved import of `toChunks` outside of CPP conditional (#1590).
1071 + Fix `inDirectory` to reset to the original directory in case
1072 an exception occurs (Freiric Barral).
1074 * Templates:
1076 + LaTeX template: load polyglossia before bibtex (jgm/pandoc-templates#70).
1077 Thanks to bluebirch.
1078 + LaTeX template: Added `\VerbatimFootnotes` if there is verbatim in notes
1079 (#1616).
1080 + LaTeX template: Add shorthands=off to babel options (#1648).
1081 + EPUB, EPUB3 templates: Added `id="cover"` to body of cover page.
1082 This aids styling, making it possible for example to set 0 margins
1083 on the title page (#1758).
1084 + EPUB, EPUB3 templates: Handle structured metadata on titlepage.
1085 Previously we just expected 'title', 'subtitle', 'author', 'date'.
1086 Now we still support those, but also support the format recommended
1087 for epub metadata in the pandoc README:
1089 ---
1090 title:
1091 - type: main
1092 text: My Book
1093 - type: subtitle
1094 text: An investigation of metadata
1095 creator:
1096 - role: author
1097 text: John Smith
1098 - role: editor
1099 text: Sarah Jones
1100 identifier:
1101 - scheme: DOI
1102 text: doi:10.234234.234/33
1103 publisher: My Press
1104 rights: (c) 2007 John Smith, CC BY-NC
1105 ...
1107 * `Text.Pandoc.Templates.getDefaultTemplate`:
1108 don't fail when called with "fb2" (#1660).
1110 * `Text.Pandoc.Parsing`:
1112 + Fixed `inlineMath` so it handles `\text{..}` containing `$`.
1113 For example: `$x = \text{the $n$th root of $y$}` (#1677).
1114 + Change `parseFromString` to fail if not all input is consumed.
1115 (Matthew Pickering)
1116 + Moved `addWarning` from Markdown reader to `Parsing`, so it can be
1117 used by more readers (API change, Daniel Bergey).
1119 * `Text.Pandoc.Pretty`:
1121 + Improve performance of `realLength` (Matthew Pickering).
1122 + Make CR + BLANKLINE = BLANKLINE. This fixes an extra blank line we
1123 were getting at the end of markdown fragments (as well as rst, org,
1124 etc.) (#1705).
1126 * `Text.Pandoc.MIME`:
1128 + Add mime type for WebVTT (Jason Ronallo).
1129 + Changed mime type for `otf` to `application/vnd.ms-opentype` (#1761).
1130 This is needed for epub3 validation.
1132 * `Text.Pandoc.MediaBag`:
1134 + Fix Windows specific path problems (#1597).
1136 * `Text.Pandoc.Shared`:
1138 + Make `collapseFilePath` OS-agnostic (Matthew Pickering).
1140 * Link the test suite using `-threaded`.
1141 This allows the test suite to be run using `+RTS -N`.
1143 * Added `network` dependency under `network-uri` flag in test section.
1145 * Give better error messages when someone tries to convert from
1146 pdf, doc, odt (#1683).
1148 * Added `track` to list of tags treated by `--self-contained` (#1664).
1150pandoc (1.13.1)
1152 * Fixed `--self-contained` with Windows paths (#1558).
1153 Previously `C:\foo.js` was being wrongly interpreted as a URI.
1155 * HTML reader: improved handling of tags that can be block or inline.
1156 Previously a section like this would be enclosed in a paragraph,
1157 with RawInline for the video tags (since video is a tag that can
1158 be either block or inline):
1160 <video controls="controls">
1161 <source src="../videos/test.mp4" type="video/mp4" />
1162 <source src="../videos/test.webm" type="video/webm" />
1163 <p>
1164 The videos can not be played back on your system.<br/>
1165 Try viewing on Youtube (requires Internet connection):
1166 <a href="http://youtu.be/etE5urBps_w">Relative Velocity on
1167 Youtube</a>.
1168 </p>
1169 </video>
1171 This change will cause the video and source tags to be parsed
1172 as RawBlock instead, giving better output.
1173 The general change is this: when we're parsing a "plain" sequence
1174 of inlines, we don't parse anything that COULD be a block-level tag.
1176 * Docx reader:
1178 + Be sensitive to user styles. Note that "Hyperlink" is
1179 "blacklisted," as we don't want the default underline styling to be
1180 inherited by all links by default (Jesse Rosenthal).
1181 + Read single paragraph in table cell as `Plain` (Jesse Rosenthal).
1182 This makes to docx reader's native output fit with the way the markdown
1183 reader understands its markdown output.
1185 * Textile writer: Extended the range of cases where native textile
1186 tables will be used (as opposed to raw HTML): we now handle any
1187 alignment type, but only for simple tables with no captions.
1189 * Txt2Tags reader:
1191 + Header is now parsed only if standalone flag is set (Matthew Pickering).
1192 + The header is now parsed as meta information. The first line is the
1193 `title`, the second is the `author` and third line is the `date`
1194 (Matthew Pickering).
1195 + Corrected formatting of `%%mtime` macro (Matthew Pickering).
1196 + Fixed crash when reading from stdin.
1198 * EPUB writer: Don't use page-progression-direction in EPUB2, which
1199 doesn't support it. Also, if page-progression-direction not specified
1200 in metadata, don't include the attribute even in EPUB3; not including it
1201 is the same as including it with the value "default", as we did before.
1202 (#1550)
1204 * Org writer: Accept example lines with indentation at the beginning
1205 (Calvin Beck).
1207 * DokuWiki writer:
1209 + Refactor to use Reader monad (Matthew Pickering).
1210 + Avoid using raw HTML in table cells; instead, use `\\`
1211 instead of newlines (Jesse Rosenthal).
1212 + Properly handle HTML table cell alignments, and use spacing
1213 to make the tables look prettier (#1566).
1215 * Docx writer:
1217 + Bibliography entries get `Bibliography` style (#1559).
1218 + Implement change tracking (Jesse Rosenthal).
1220 * LaTeX writer:
1222 + Fixed a bug that caused a table caption to repeat across all pages
1223 (Jose Luis Duran).
1224 + Improved vertical spacing in tables and made it customizable using
1225 standard lengths set by booktab. See
1226 <https://groups.google.com/forum/#!msg/pandoc-discuss/qMu6_5lYy0o/ZAU7lzAIKw0J>
1227 (Jose Luis Duran).
1228 + Added `\strut` to fix spacing in multiline tables (Jose Luis Duran).
1229 + Use `\tabularnewline` instead of `\\` in table cells (Jose Luis Duran).
1230 + Made horizontal rules more flexible (Jose Luis Duran).
1232 * Text.Pandoc.MIME:
1234 + Added `MimeType` (type synonym for `String`) and `getMimeTypeDef`.
1235 Code cleanups (Artyom Kazak).
1237 * Templates:
1239 + LaTeX template: disable microtype protrusion for typewriter font (#1549,
1240 thanks lemzwerg).
1242 * Improved OSX build procedure.
1244 * Added `network-uri` flag, to deal with split of `network-uri` from
1245 `network`.
1247 * Fix build dependencies for the `trypandoc` flag, so that they are
1248 ignored if `trypandoc` flag is set to False (Gabor Pali).
1250 * Updated README to remove outdated claim that `--self-contained`
1251 looks in the user data directory for missing files.
1253pandoc (1.13.0.1)
1255 * Docx writer:
1257 + Fixed regression which bungled list numbering (#1544), causing
1258 all lists to appear as basic ordered lists.
1259 + Include row width in table rows (Christoffer Ackelman, Viktor Kronvall).
1260 Added a property to all table rows where the sum of column widths
1261 is specified in pct (fraction of 5000). This helps persuade Word
1262 to lay out the table with the widths we specify.
1264 * Fixed a bug in Windows 8 which caused pandoc not to find the
1265 `pandoc-citeproc` filter (#1542).
1267 * Docx reader: miscellaneous under-the-hood improvements (Jesse Rosenthal).
1268 Most significantly, the reader now uses Builder, leading to some
1269 performance improvements.
1271 * HTML reader: Parse appropriately styled span as SmallCaps.
1273 * Markdown writer: don't escape `$`, `^`, `~` when `tex_math_dollars`,
1274 `superscript`, and `subscript` extensions, respectively, are
1275 deactivated (#1127).
1277 * Added `trypandoc` flag to build CGI executable used in the online
1278 demo.
1280 * Makefile: Added 'quick', 'osxpkg' targets.
1282 * Updated README in templates to indicate templates license.
1283 The templates are dual-licensed, BSD3 and GPL2+.
1285pandoc (1.13)
1287 [new features]
1289 * Added `docx` as an input format (Jesse Rosenthal). The docx
1290 reader includes conversion of native Word equations to pandoc
1291 LaTeX `Math` elements. Metadata is taken from paragraphs at the
1292 beginning of the document with styles `Author`, `Title`, `Subtitle`,
1293 `Date`, and `Abstract`.
1295 * Added `epub` as an input format (Matthew Pickering). The epub
1296 reader includes conversion of MathML to pandoc LaTeX `Math`
1297 elements.
1299 * Added `t2t` (Txt2Tags) as an input format (Matthew Pickering).
1300 Txt2tags is a lightweight markup format described at
1301 <http://txt2tags.org/>.
1303 * Added `dokuwiki` as an output format (Clare Macrae).
1305 * Added `haddock` as an output format.
1307 * Added `--extract-media` option to extract media contained in a zip
1308 container (docx or epub) while adjusting image paths to point to the
1309 extracted images.
1311 * Added a new markdown extension, `compact_definition_lists`, that
1312 restores the syntax for definition lists of pandoc 1.12.x, allowing
1313 tight definition lists with no blank space between items, and
1314 disallowing lazy wrapping. (See below under behavior changes.)
1316 * Added an extension `epub_html_exts` for parsing HTML in EPUBs.
1318 * Added extensions `native_spans` and `native_divs` to activate
1319 parsing of material in HTML span or div tags as Pandoc Span
1320 inlines or Div blocks.
1322 * `--trace` now works with the Markdown, HTML, Haddock, EPUB,
1323 Textile, and MediaWiki readers. This is an option intended
1324 for debugging parsing problems; ordinary users should not need
1325 to use it.
1327 [behavior changes]
1329 * Changed behavior of the `markdown_attribute` extension, to bring
1330 it in line with PHP markdown extra and multimarkdown. Setting
1331 `markdown="1"` on an outer tag affects all contained tags,
1332 recursively, until it is reversed with `markdown="0"` (#1378).
1334 * Revised markdown definition list syntax (#1429). Both the reader
1335 and writer are affected. This change brings pandoc's definition list
1336 syntax into alignment with that used in PHP markdown extra and
1337 multimarkdown (with the exception that pandoc is more flexible about
1338 the definition markers, allowing tildes as well as colons). Lazily
1339 wrapped definitions are now allowed. Blank space is required
1340 between list items. The space before a definition is used to determine
1341 whether it is a paragraph or a "plain" element. **WARNING: This change
1342 may break existing documents!** Either check your documents for
1343 definition lists without blank space between items, or use
1344 `markdown+compact_definition_lists` for the old behavior.
1346 * `.numberLines` now works in fenced code blocks even if no language
1347 is given (#1287, jgm/highlighting-kate#40).
1349 * Improvements to `--filter`:
1351 + Don't search PATH for a filter with an explicit path.
1352 This fixed a bug wherein `--filter ./caps.py` would run `caps.py` from
1353 the system path, even if there was a `caps.py` in the working directory.
1354 + Respect shebang if filter is executable (#1389).
1355 + Don't print misleading error message.
1356 Previously pandoc would say that a filter was not found,
1357 even in a case where the filter had a syntax error.
1359 * HTML reader:
1361 + Parse `div` and `span` elements even without `--parse-raw`,
1362 provided `native_divs` and `native_spans` extensions are set.
1363 Motivation: these now generate native pandoc Div and Span
1364 elements, not raw HTML.
1365 + Parse EPUB-specific elements if the `epub_html_exts`
1366 extension is enabled. These include `switch`, `footnote`,
1367 `rearnote`, `noteref`.
1369 * Org reader:
1371 + Support for inline LaTeX. Inline LaTeX is now accepted and parsed by the
1372 org-mode reader. Both math symbols (like `\tau`) and LaTeX commands (like
1373 `\cite{Coffee}`), can be used without any further escaping (Albert
1374 Krewinkel).
1376 * Textile reader and writer:
1378 + The `raw_tex` extension is no longer set by default. You can
1379 enable it with `textile+raw_tex`.
1381 * DocBook reader:
1383 + Support `equation`, `informalequation`, `inlineequation` elements with
1384 `mml:math` content. This is converted into LaTeX and put into a Pandoc
1385 Math inline.
1387 * Revised `plain` output, largely following the style of Project
1388 Gutenberg:
1390 + Emphasis is rendered with `_underscores_`, strong emphasis
1391 with ALL CAPS.
1392 + Headings are rendered differently, with space to set them off,
1393 not with setext style underlines. Level 1 headers are ALL CAPS.
1394 + Math is rendered using unicode when possible, but without the
1395 distracting emphasis markers around variables.
1396 + Footnotes use a regular `[n]` style.
1398 * Markdown writer:
1400 + Horizontal rules are now a line across the whole page.
1401 + Prettier pipe tables. Columns are now aligned (#1323).
1402 + Respect the `raw_html` extension. `pandoc -t markdown-raw_html`
1403 no longer emits any raw HTML, including span and div tags
1404 generated by Span and Div elements.
1405 + Use span with style for `SmallCaps` (#1360).
1407 * HTML writer:
1409 + Autolinks now have class `uri`, and email autolinks have class
1410 `email`, so they can be styled.
1412 * Docx writer:
1414 + Document formatting is carried over from `reference.docx`.
1415 This includes margins, page size, page orientation, header,
1416 and footer, including images in headers and footers.
1417 + Include abstract (if present) with `Abstract` style (#1451).
1418 + Include subtitle (if present) with `Subtitle` style, rather
1419 than tacking it on to the title (#1451).
1421 * Org writer:
1423 + Write empty span elements with an id attribute as org anchors.
1424 For example `Span ("uid",[],[]) []` becomes `<<uid>>`.
1426 * LaTeX writer:
1428 + Put table captions above tables, to match the conventional
1429 standard. (Previously they appeared below tables.)
1430 + Use `\(..\)` instead of `$..$` for inline math (#1464).
1431 + Use `\nolinkurl` in email autolinks. This allows them to be styled
1432 using `\urlstyle{tt}`. Thanks to Ulrike Fischer for the solution.
1433 + Use `\textquotesingle` for `'` in inline code. Otherwise we get
1434 curly quotes in the PDF output (#1364).
1435 + Use `\footnote<.>{..}` for notes in beamer, so that footnotes
1436 do not appear before the overlays in which their markers appear
1437 (#1525).
1438 + Don't produce a `\label{..}` for a Div or Span element. Do produce
1439 a `\hyperdef{..}` (#1519).
1441 * EPUB writer:
1443 + If the metadata includes `page-progression-direction` (which can be
1444 `ltr` or `rtl`, the `page-progression-direction` attribute will
1445 be set in the EPUB spine (#1455).
1447 * Custom lua writers:
1449 + Custom writers now work with `--template`.
1450 + Removed HTML header scaffolding from `sample.lua`.
1451 + Made citation information available in lua writers.
1453 * `--normalize` and `Text.Pandoc.Shared.normalize` now consolidate
1454 adjacent `RawBlock`s when possible.
1456 [API changes]
1458 * Added `Text.Pandoc.Readers.Docx`, exporting `readDocx` (Jesse Rosenthal).
1460 * Added `Text.Pandoc.Readers.EPUB`, exporting `readEPUB` (Matthew
1461 Pickering).
1463 * Added `Text.Pandoc.Readers.Txt2Tags`, exporting `readTxt2Tags` (Matthew
1464 Pickering).
1466 * Added `Text.Pandoc.Writers.DokuWiki`, exporting `writeDokuWiki`
1467 (Clare Macrae).
1469 * Added `Text.Pandoc.Writers.Haddock`, exporting `writeHaddock`.
1471 * Added `Text.Pandoc.MediaBag`, exporting `MediaBag`, `lookupMedia`,
1472 `insertMedia`, `mediaDirectory`, `extractMediaBag`. The docx and epub
1473 readers return a pair of a `Pandoc` document and a `MediaBag` with
1474 the media resources they contain. This can be extracted using
1475 `--extract-media`. Writers that incorporate media (PDF, Docx,
1476 ODT, EPUB, RTF, or HTML formats with `--self-contained`) will look
1477 for resources in the `MediaBag` generated by the reader, in addition to
1478 the file system or web.
1480 * `Text.Pandoc.Readers.TexMath`: Removed deprecated `readTeXMath`.
1481 Renamed `readTeXMath'` to `texMathToInlines`.
1483 * `Text.Pandoc`: Added `Reader` data type (Matthew Pickering).
1484 `readers` now associates names of readers with `Reader`
1485 structures. This allows inclusion of readers, like the docx
1486 reader, that take binary rather than textual input.
1488 * `Text.Pandoc.Shared`:
1490 + Added `capitalize` (Artyom Kazak), and replaced uses of
1491 `map toUpper` (which give bad results for many languages).
1492 + Added `collapseFilePath`, which removes intermediate `.` and
1493 `..` from a path (Matthew Pickering).
1494 + Added `fetchItem'`, which works like `fetchItem` but searches
1495 a `MediaBag` before looking on the net or file system.
1496 + Added `withTempDir`.
1497 + Added `removeFormatting`.
1498 + Added `extractSpaces` (from HTML reader) and generalized its type
1499 so that it can be used by the docx reader (Matthew Pickering).
1500 + Added `ordNub`.
1501 + Added `normalizeInlines`, `normalizeBlocks`.
1502 + `normalize` is now `Pandoc -> Pandoc` instead of
1503 `Data a :: a -> a`. Some users may need to change their uses of
1504 `normalize` to the newly exported `normalizeInlines` or
1505 `normalizeBlocks`.
1507 * `Text.Pandoc.Options`:
1509 + Added `writerMediaBag` to `WriterOptions`.
1510 + Removed deprecated and no longer used `readerStrict` in
1511 `ReaderOptions`. This is handled by `readerExtensions` now.
1512 + Added `Ext_compact_definition_lists`.
1513 + Added `Ext_epub_html_exts`.
1514 + Added `Ext_native_divs` and `Ext_native_spans`.
1515 This allows users to turn off the default pandoc behavior of
1516 parsing contents of div and span tags in markdown and HTML
1517 as native pandoc Div blocks and Span inlines.
1519 * `Text.Pandoc.Parsing`:
1521 + Generalized `readWith` to `readWithM` (Matthew Pickering).
1522 + Export `runParserT` and `Stream` (Matthew Pickering).
1523 + Added `HasQuoteContext` type class (Matthew Pickering).
1524 + Generalized types of `mathInline`, `smartPunctuation`, `quoted`,
1525 `singleQuoted`, `doubleQuoted`, `failIfInQuoteContext`,
1526 `applyMacros` (Matthew Pickering).
1527 + Added custom `token` (Matthew Pickering).
1528 + Added `stateInHtmlBlock` to `ParserState`. This is used to keep
1529 track of the ending tag we're waiting for when we're parsing inside
1530 HTML block tags.
1531 + Added `stateMarkdownAttribute` to `ParserState`. This is used
1532 to keep track of whether the markdown attribute has been set in
1533 an enclosing tag.
1534 + Generalized type of `registerHeader`, using new type classes
1535 `HasReaderOptions`, `HasIdentifierList`, `HasHeaderMap` (Matthew
1536 Pickering). These allow certain common functions to be reused
1537 even in parsers that use custom state (instead of `ParserState`),
1538 such as the MediaWiki reader.
1539 + Moved `inlineMath`, `displayMath` from Markdown reader to Parsing,
1540 and generalized their types (Matthew Pickering).
1542 * `Text.Pandoc.Pretty`:
1544 + Added `nestle`.
1545 + Added `blanklines`, which guarantees a certain number of blank lines
1546 (and no more).
1548 [bug fixes]
1550 * Markdown reader:
1552 + Fixed parsing of indented code in list items. Indented code
1553 at the beginning of a list item must be indented eight spaces
1554 from the margin (or edge of the container), or four spaces
1555 from the list marker, whichever is greater.
1556 + Fixed small bug in HTML parsing with `markdown_attribute`, which
1557 caused incorrect tag nesting for input like
1558 `<aside markdown="1">*hi*</aside>`.
1559 + Fixed regression with intraword underscores (#1121).
1560 + Improved parsing of inline links containing quote characters (#1534).
1561 + Slight rewrite of `enclosure`/`emphOrStrong` code.
1562 + Revamped raw HTML block parsing in markdown (#1330).
1563 We no longer include trailing spaces and newlines in the
1564 raw blocks. We look for closing tags for elements (but without
1565 backtracking). Each block-level tag is its own `RawBlock`;
1566 we no longer try to consolidate them (though `--normalize` will do so).
1567 + Combine consecutive latex environments. This helps when you have
1568 two minipages which can't have blank lines between them (#690, #1196).
1569 + Support smallcaps through span.
1570 `<span style="font-variant:small-caps;">foo</span>` will be
1571 parsed as a `SmallCaps` inline, and will work in all output
1572 formats that support small caps (#1360).
1573 + Prevent spurious line breaks after list items (#1137). When the
1574 `hard_line_breaks` option was specified, pandoc would formerly
1575 produce a spurious line break after a tight list item.
1576 + Fixed table parsing bug (#1333).
1577 + Handle `c++` and `objective-c` as language identifiers in
1578 github-style fenced blocks (#1318).
1579 + Inline math must have nonspace before final `$` (#1313).
1581 * LaTeX reader:
1583 + Handle comments at the end of tables. This resolves the issue
1584 illustrated in <http://stackoverflow.com/questions/24009489>.
1585 + Correctly handle table rows with too few cells. LaTeX seems to
1586 treat them as if they have empty cells at the end (#241).
1587 + Handle leading/trailing spaces in `\emph` better.
1588 `\emph{ hi }` gets parsed as `[Space, Emph [Str "hi"], Space]`
1589 so that we don't get things like `* hi *` in markdown output.
1590 Also applies to `\textbf` and some other constructions (#1146).
1591 + Don't assume preamble doesn't contain environments (#1338).
1592 + Allow (and discard) optional argument for `\caption` (James Aspnes).
1594 * HTML reader:
1596 + Fixed major parsing problem with HTML tables. Table cells were
1597 being combined into one cell (#1341).
1598 + Fixed performance issue with malformed HTML tables.
1599 We let a `</table>` tag close an open `<tr>` or `<td>` (#1167).
1600 + Allow space between `<col>` and `</col>`.
1601 + Added `audio` and `source` in `eitherBlockOrInline`.
1602 + Moved `video`, `svg`, `progress`, `script`, `noscript`, `svg` from
1603 `blockTags` to `eitherBlockOrInline`.
1604 + `map` and `object` were mistakenly in both lists; they have been removed
1605 from `blockTags`.
1606 + Ignore `DOCTYPE` and `xml` declarations.
1608 * MediaWiki reader:
1610 + Don't parse backslash escapes inside `<source>` (#1445).
1611 + Tightened up template parsing.
1612 The opening `{{` must be followed by an alphanumeric or `:`.
1613 This prevents the exponential slowdown in #1033.
1614 + Support "Bild" for images.
1616 * DocBook reader:
1618 + Better handle elements inside code environments. Pandoc's document
1619 model does not allow structure inside code blocks, but at least this way
1620 we preserve the text (#1449).
1621 + Support `<?asciidoc-br?>` (#1236).
1623 * Textile reader:
1625 + Fixed list parsing. Lists can now start without an intervening
1626 blank line (#1513).
1627 + HTML block-level tags that do not start a line are parsed as
1628 inline HTML and do not interrupt paragraphs (as in RedCloth).
1630 * Org reader:
1632 + Make tildes create inline code (#1345). Also relabeled `code` and
1633 `verbatim` parsers to accord with the org-mode manual.
1634 + Respect `:exports` header argument in code blocks (Craig Bosma).
1635 + Fixed tight lists with sublists (#1437).
1637 * EPUB writer:
1639 + Avoid excess whitespace in `nav.xhtml`. This should improve
1640 TOC view in iBooks (#1392).
1641 + Fixed regression on cover image.
1642 In 1.12.4 and 1.12.4.2, the cover image would not appear properly,
1643 because the metadata id was not correct. Now we derive the id from the
1644 actual cover image filename, which we preserve rather than using
1645 "cover-image."
1646 + Keep newlines between block elements. This allows
1647 easier diff-ability (#1424).
1648 + Use `stringify` instead of custom `plainify`.
1649 + Use `renderTags'` for all tag rendering. This properly handles tags
1650 that should be self-closing. Previously `<hr/>` would appear in EPUB
1651 output as `<hr></hr>` (#1420).
1652 + Better handle HTML media tags.
1653 + Handle multiple dates with OPF `event` attributes. Note: in EPUB3 we
1654 can have only one dc:date, so only the first one is used.
1656 * LaTeX writer:
1658 + Correctly handle figures in notes. Notes can't contain figures in
1659 LaTeX, so we fake it to avoid an error (#1053).
1660 + Fixed strikeout + highlighted code (#1294).
1661 Previously strikeout highlighted code caused an error.
1663 * ConTeXt writer:
1665 + Improved detection of autolinks with URLs containing escapes.
1667 * RTF writer:
1669 + Improved image embedding: `fetchItem'` is now used to get the
1670 images, and calculated image sizes are indicated in the RTF.
1671 + Avoid extra paragraph tags in metadata (#1421).
1673 * HTML writer:
1675 + Deactivate "incremental" inside slide speaker notes (#1394).
1676 + Don't include empty items in the table of contents for
1677 slide shows. (These would result from creating a slide
1678 using a horizontal rule.)
1680 * MediaWiki writer:
1682 + Minor renaming of `st` prefixed names.
1684 * AsciiDoc writer:
1686 + Double up emphasis and strong emphasis markers in intraword
1687 contexts, as required by asciidoc (#1441).
1689 * Markdown writer:
1691 + Avoid wrapping that might start a list, blockquote, or header (#1013).
1692 + Use Span instead of (hackish) `SmallCaps` in `plainify`.
1693 + Don't use braced attributes for fenced code (#1416).
1694 If `Ext_fenced_code_attributes` is not set, the first class
1695 attribute will be printed after the opening fence as a bare word.
1696 + Separate adjacent lists of the same kind with an HTML comment (#1458).
1698 * PDF writer:
1700 + Fixed treatment of data uris for images (#1062).
1702 * Docx writer:
1704 + Use Compact style for empty table cells (#1353).
1705 Otherwise we get overly tall lines when there are empty
1706 table cells and the other cells are compact.
1707 + Create overrides per-image for `media/` in reference docx.
1708 This should be somewhat more robust and cover more types of images.
1709 + Improved `entryFromArchive` to avoid an unneeded parse.
1710 + Section numbering carries over from reference.docx (#1305).
1711 + Simplified `abstractNumId` numbering. Instead of sequential numbering,
1712 we assign numbers based on the list marker styles.
1714 * `Text.Pandoc.Options`:
1716 + Removed `Ext_fenced_code_attributes` from `markdown_github`
1717 extensions.
1719 * `Text.Pandoc.ImageSize`:
1721 + Use default instead of failing if image size not found
1722 in exif header (#1358).
1723 + ignore unknown exif header tag rather than crashing.
1724 Some images seem to have tag type of 256, which was causing
1725 a runtime error.
1727 * `Text.Pandoc.Shared`:
1729 + `fetchItem`: unescape URI encoding before reading local file (#1427).
1730 + `fetchItem`: strip a fragment like `?#iefix` from the extension before
1731 doing mime lookup, to improve mime type guessing.
1732 + Improved logic of `fetchItem`: absolute URIs are fetched from the net;
1733 other things are treated as relative URIs if `sourceURL` is `Just _`,
1734 otherwise as file paths on the local file system.
1735 + `fetchItem` now properly handles links without a protocol (#1477).
1736 + `fetchItem` now escapes characters not allowed in URIs before trying
1737 to parse the URIs.
1738 + Fixed runtime error with `compactify'DL` on certain lists (#1452).
1740 * `pandoc.hs`: Don't strip path off of `writerSourceURL`: the path is
1741 needed to resolve relative URLs when we fetch resources (#750).
1743 * `Text.Pandoc.Parsing`
1745 + Simplified `dash` and `ellipsis` (#1419).
1746 + Removed `(>>~)` in favor of the equivalent `(<*)` (Matthew Pickering).
1747 + Generalized functions to use `ParsecT` (Matthew Pickering).
1748 + Added `isbn` and `pmid` to list of recognized schemes (Matthew
1749 Pickering).
1751 [template changes]
1753 * Added haddock template.
1754 * EPUB3: Added `type` attribute to `link` tags. They are supposed to
1755 be "advisory" in HTML5, but kindlegen seems to require them.
1756 * EPUB3: Put title page in section with `epub:type="titlepage"`.
1757 * LaTeX: Made `\subtitle` work properly (#1327).
1758 * LaTeX/Beamer: remove conditional around date (#1321).
1759 * LaTeX: Added `lot` and `lof` variables, which can be set to
1760 get `\listoftables` and `\listoffigures` (#1407). Note that
1761 these variables can be set at the command line with `-Vlot -Vlof`
1762 or in YAML metadata.
1764 [under the hood improvements]
1766 * Rewrote normalize for efficiency (#1385).
1768 * Rewrote Haddock reader to use `haddock-library` (#1346).
1770 + This brings pandoc's rendering of haddock markup in line
1771 with the new haddock.
1772 + Fixed line breaks in `@` code blocks.
1773 + alex and happy are no longer build-depends.
1775 * Added `Text.Pandoc.Compat.Directory` to allow building against
1776 different versions of the `directory` library.
1778 + Added `Text.Pandoc.Compat.Except` to allow building against
1779 different verions of `mtl`.
1781 * Code cleanup in some writers, using Reader monad to avoid
1782 passing options parameter around (Matej Kollar).
1784 * Improved readability in `pandoc.hs`.
1786 * Miscellaneous code cleanups (Artyom Kazak).
1788 * Avoid `import Prelude hiding (catch)` (#1309, thanks to Michael
1789 Thompson).
1791 * Changed `http-conduit` flag to `https`. Depend on `http-client`
1792 and `http-client-tls` instead of `http-conduit`. (Note: pandoc still
1793 depends on `conduit` via `yaml`.)
1795 * Require `highlighting-kate >= 0.5.8.5` (#1271, #1317, Debian #753299).
1796 This change to highlighting-kate means that PHP fragments no longer need
1797 to start with `<?php`. It also fixes a serious bug causing failures with
1798 ocaml and fsharp.
1800 * Require latest `texmath`. This fixes `\tilde{E}` and allows
1801 `\left` to be used with `]`, `)` etc. (#1319), among many other
1802 improvements.
1804 * Require latest `zip-archive`. This has fixes for unicode path names.
1806 * Added tests for plain writer.
1808 * `Text.Pandoc.Templates`:
1810 + Fail informatively on template syntax errors.
1811 With the move from parsec to attoparsec, we lost good error
1812 reporting. In fact, since we weren't testing for end of input,
1813 malformed templates would fail silently. Here we revert back to
1814 Parsec for better error messages.
1815 + Use `ordNub` (#1022).
1817 * Benchmarks:
1819 + Made benchmarks compile again (Artyom Kazak).
1820 + Fixed so that the failure of one benchmark does not prevent others
1821 from running (Artyom Kazak).
1822 + Use `nfIO` instead of the `getLength` trick to force full evaluation.
1823 + Changed benchmark to use only the test suite, so that benchmarks
1824 run more quickly.
1826 * Windows build script:
1828 + Add `-windows` to file name.
1829 + Use one install command for pandoc, pandoc-citeproc.
1830 + Force install of pandoc-citeproc.
1832 * `make_osx_package`: Call zip file `pandoc-VERSION-osx.zip`.
1833 The zip should not be named `SOMETHING.pkg.zip`, or OSX finder
1834 will extract it into a folder named `SOMETHING.pkg`, which it
1835 will interpret as a defective package (#1308).
1837 * `README`:
1839 + Made headers for all extensions so they have IDs and can be
1840 linked to (Beni Cherniavsky-Paskin).
1841 + Fixed typos (Phillip Alday).
1842 + Fixed documentation of attributes (#1315).
1843 + Clarified documentation on small caps (#1360).
1844 + Better documentation for `fenced_code_attributes` extension
1845 (Caleb McDaniel).
1846 + Documented fact that you can put YAML metadata in a separate file
1847 (#1412).
1850pandoc (1.12.4.2)
1852 * Require highlighting-kate >= 0.5.8. Fixes a performance regression.
1854 * Shared: `addMetaValue` now behaves slightly differently:
1855 if both the new and old values are lists, it concatenates their
1856 contents to form a new list.
1858 * LaTeX reader:
1860 + Set `bibliography` in metadata from `\bibliography` or
1861 `\addbibresource` command.
1862 + Don't error on `%foo` with no trailing newline.
1864 * Org reader:
1866 + Support code block headers (`#+BEGIN_SRC ...`) (Albert Krewinkel).
1867 + Fix parsing of blank lines within blocks (Albert Krewinkel).
1868 + Support pandoc citation extension (Albert Krewinkel). This can
1869 be turned off by specifying `org-citations` as the input format.
1871 * Markdown reader:
1873 + `citeKey` moved to `Text.Pandoc.Parsing` so it can be used by
1874 other readers (Albert Krewinkel).
1876 * `Text.Pandoc.Parsing`:
1878 + Added `citeKey` (see above).
1879 + Added `HasLastStrPosition` type class and `updateLastStrPos`
1880 and `notAfterString` functions.
1882 * Updated copyright notices (Albert Krewinkel).
1884 * Added default.icml to data files so it installs with the package.
1886 * OSX package:
1888 + The binary is now built with options to ensure that it can be
1889 used with OSX 10.6+.
1890 + Moved OSX package materials to osx directory.
1891 + Added OSX package uninstall script, included in the zip container
1892 (thanks to Daniel T. Staal).
1894pandoc (1.12.4)
1896 * Made it possible to run filters that aren't executable (#1096).
1897 Pandoc first tries to find the executable (searching the path
1898 if path isn't given). If it fails, but the file exists and has
1899 a `.py`, `.pl`, `.rb`, `.hs`, or `.php` extension, pandoc runs the filter
1900 using the appropriate interpreter. This should make it easier to
1901 use filters on Windows, and make it more convenient for everyone.
1903 * Added Emacs org-mode reader (Albert Krewinkel).
1905 * Added InDesign ICML Writer (mb21).
1907 * MediaWiki reader:
1909 + Accept image links in more languages (Jaime Marquínez Ferrándiz).
1910 + Fixed bug in certain nested lists (#1213). If a level 2 list was
1911 followed by a level 1 list, the first item of the level 1 list
1912 would be lost.
1913 + Handle table rows containing just an HTML comment (#1230).
1915 * LaTeX reader:
1917 + Give better location information on errors, pointing to line
1918 numbers within included files (#1274).
1919 + LaTeX reader: Better handling of `table` environment (#1204).
1920 Positioning options no longer rendered verbatim.
1921 + Better handling of figure and table with caption (#1204).
1922 + Handle `@{}` and `p{length}` in tabular. The length is not actually
1923 recorded, but at least we get a table (#1180).
1924 + Properly handle `\nocite`. It now adds a `nocite` metadata
1925 field. Citations there will appear in the bibliography but not
1926 in the text (unless you explicitly put a `$nocite$` variable
1927 in your template).
1929 * Markdown reader:
1931 + Ensure that whole numbers in YAML metadata are rendered without
1932 decimal points. (This became necessary with changes to aeson
1933 and yaml libraries. aeson >= 0.7 and yaml >= 0.8.8.2 are now required.)
1934 + Fixed regression on line breaks in strict mode (#1203).
1935 + Small efficiency improvements.
1936 + Improved parsing of nested `div`s. Formerly a closing `div` tag
1937 would be missed if it came right after other block-level tags.
1938 + Avoid backtracking when closing `</div>` not found.
1939 + Fixed bug in reference link parsing in `markdown_mmd`.
1940 + Fixed a bug in list parsing (#1154). When reading a raw list
1941 item, we now strip off up to 4 spaces.
1942 + Fixed parsing of empty reference link definitions (#1186).
1943 + Made one-column pipe tables work (#1218).
1945 * Textile reader:
1947 + Better support for attributes. Instead of being ignored, attributes
1948 are now parsed and included in Span inlines. The output will be a bit
1949 different from stock textile: e.g. for `*(foo)hi*`, we'll get
1950 `<em><span class="foo">hi</span></em>` instead of
1951 `<em class="foo">hi</em>`. But at least the data is not lost.
1952 + Improved treatment of HTML spans (%) (#1115).
1953 + Improved link parsing. In particular we now pick up on attributes.
1954 Since pandoc links can't have attributes, we enclose the whole link in
1955 a span if there are attributes (#1008).
1956 + Implemented correct parsing rules for inline markup (#1175, Matthew
1957 Pickering).
1958 + Use Builder (Matthew Pickering).
1959 + Fixed list parsing bug (#1500).
1960 + Don't allow inline formatting to extend over newlines.
1961 This matches the behavior of RedCarpet, avoids some ugly bugs,
1962 and improves performance.
1964 * DocBook reader:
1966 + Better treatment of `formalpara`. We now emit the title (if present)
1967 as a separate paragraph with boldface text (#1215).
1968 + Set metadata `author` not `authors`.
1969 + Added recognition of `authorgroup` and `releaseinfo` elements (#1214,
1970 Matthew Pickering).
1971 + Converted current meta information parsing in DocBook to a more
1972 extensible version which is aware of the more recent meta
1973 representation (Matthew Pickering).
1975 * HTML reader:
1977 + Require tagsoup 0.13.1, to fix a bug with parsing of script tags
1978 (#1248).
1979 + Treat processing instructions & declarations as block. Previously
1980 these were treated as inline, and included in paragraph tags in HTML
1981 or DocBook output, which is generally not what is wanted (#1233).
1982 + Updated `closes` with rules from HTML5 spec.
1983 + Use Builder (Matthew Pickering, #1162).
1985 * RST reader:
1987 + Remove duplicate `http` in PEP links (Albert Krewinkel).
1988 + Make rst figures true figures (#1168, CasperVector)
1989 + Enhanced Pandoc's support for rST roles (Merijn Verstaaten).
1990 rST parser now supports: all built-in rST roles, new role definition,
1991 role inheritance, though with some limitations.
1992 + Use `author` rather than `authors` in metadata.
1993 + Better handling of directives. We now correctly handle field
1994 lists that are indented more than three spaces. We treat an
1995 `aafig` directive as a code block with attributes, so it can be
1996 processed in a filter (#1212).
1998 * LaTeX writer:
2000 + Mark span contents with label if span has an ID (Albert Krewinkel).
2001 + Made `--toc-depth` work well with books in latex/pdf output (#1210).
2002 + Handle line breaks in simple table cells (#1217).
2003 + Workaround for level 4-5 headers in quotes. These previously produced
2004 invalid LaTeX: `\paragraph` or `\subparagraph` in a `quote` environment.
2005 This adds an `mbox{}` in these contexts to work around the problem.
2006 See <http://tex.stackexchange.com/a/169833/22451> (#1221).
2007 + Use `\/` to avoid en-dash ligature instead of `-{}-` (Vaclav Zeman).
2008 This is to fix LuaLaTeX output. The `-{}-` sequence does not avoid the
2009 ligature with LuaLaTeX but `\/` does.
2010 + Fixed string escaping in `hyperref` and `hyperdef` (#1130).
2012 * ConTeXt writer: Improved autolinks (#1270).
2014 * DocBook writer:
2016 + Improve handling of hard line breaks in Docbook writer
2017 (Neil Mayhew). Use a `<literallayout>` for the entire paragraph, not
2018 just for the newline character.
2019 + Don't let line breaks inside footnotes influence the enclosing
2020 paragraph (Neil Mayhew).
2021 + Distinguish tight and loose lists in DocBook output, using
2022 `spacing="compact"` (Neil Mayhew, #1250).
2024 * Docx writer: When needed files are not present in the user's
2025 `reference.docx`, fall back on the versions in the `reference.docx`
2026 in pandoc's data files. This fixes a bug that occurs when a
2027 `reference.docx` saved by LibreOffice is used. (#1185)
2029 * EPUB writer:
2031 + Include extension in epub ids. This fixes a problem with duplicate
2032 extensions for fonts and images with the same base name but different
2033 extensions (#1254).
2034 + Handle files linked in raw `img` tags (#1170).
2035 + Handle media in `audio` source tags (#1170).
2036 Note that we now use a `media` directory rather than `images`.
2037 + Incorporate files linked in `video` tags (#1170). `src` and `poster`
2038 will both be incorporated into `content.opf` and the epub container.
2040 * HTML writer:
2042 + Add colgroup around col tags (#877). Also affects EPUB writer.
2043 + Fixed bug with unnumbered section headings. Unnumbered section
2044 headings (with class `unnumbered`) were getting numbers.
2045 + Improved detection of image links. Previously image links with
2046 queries were not recognized, causing `<embed>` to be used instead
2047 of `<img>`.
2049 * Man writer: Ensure that terms in definition lists aren't line wrapped
2050 (#1195).
2052 * Markdown writer:
2054 + Use proper escapes to avoid unwanted lists (#980). Previously we used
2055 0-width spaces, an ugly hack.
2056 + Use longer backtick fences if needed (#1206). If the content contains a
2057 backtick fence and there are attributes, make sure longer fences are
2058 used to delimit the code. Note: This works well in pandoc, but github
2059 markdown is more limited, and will interpret the first string of three
2060 or more backticks as ending the code block.
2062 * RST writer: Avoid stack overflow with certain tables (#1197).
2064 * RTF writer: Fixed table cells containing paragraphs.
2066 * Custom writer:
2068 + Correctly handle UTF-8 in custom lua scripts (#1189).
2069 + Fix bugs with lua scripts with mixed-case filenames and
2070 paths containing `+` or `-` (#1267). Note that `getWriter`
2071 in `Text.Pandoc` no longer returns a custom writer on input
2072 `foo.lua`.
2074 * AsciiDoc writer: Handle multiblock and empty table cells
2075 (#1245, #1246). Added tests.
2077 * `Text.Pandoc.Options`: Added `readerTrace` to `ReaderOptions`
2079 * `Text.Pandoc.Shared`:
2081 + Added `compactify'DL` (formerly in markdown reader) (Albert Krewinkel).
2082 + Fixed bug in `toRomanNumeral`: numbers ending with '9' would
2083 be rendered as Roman numerals ending with 'IXIV' (#1249). Thanks to
2084 Jesse Rosenthal.
2085 + `openURL`: set proxy with value of http_proxy env variable (#1211).
2086 Note: proxies with non-root paths are not supported, due to
2087 limitations in `http-conduit`.
2089 * `Text.Pandoc.PDF`:
2091 + Ensure that temp directories deleted on Windows (#1192). The PDF is
2092 now read as a strict bytestring, ensuring that process ownership will
2093 be terminated, so the temp directory can be deleted.
2094 + Use `/` as path separators in a few places, even on Windows.
2095 This seems to be necessary for texlive (#1151, thanks to Tim Lin).
2096 + Use `;` for `TEXINPUTS` separator on Windows (#1151).
2097 + Changes to error reporting, to handle non-UTF8 error output.
2099 * `Text.Pandoc.Templates`:
2101 + Removed unneeded datatype context (Merijn Verstraaten).
2103 + YAML objects resolve to "true" in conditionals (#1133).
2104 Note: If `address` is a YAML object and you just have `$address$`
2105 in your template, the word `true` will appear, which may be
2106 unexpected. (Previously nothing would appear.)
2108 * `Text.Pandoc.SelfContained`:
2110 + `mkSelfContained` now takes just two arguments, `WriterOptions` and
2111 the string.
2112 * It no longer looks in data files. This only made sense when we
2113 had copies of slidy and S5 code there.
2114 * `fetchItem'` is used instead of the nearly duplicate `getItem`.
2115 + Handle `poster` attribute in `video` tags (#1188).
2117 * `Text.Pandoc.Parsing`:
2119 + Made `F` an instance of Applicative (#1138).
2120 + Added `stateCaption`.
2121 + Added `HasMacros`, simplified other typeclasses.
2122 Removed `updateHeaderMap`, `setHeaderMap`, `getHeaderMap`,
2123 `updateIdentifierList`, `setIdentifierList`, `getIdentifierList`.
2124 + Changed the smart punctuation parser to return `Inlines`
2125 rather than `Inline` (Matthew Pickering).
2126 + Changed `HasReaderOptions`, `HasHeaderMap`, `HasIdentifierList`
2127 from typeclasses of monads to typeclasses of states. This simplifies
2128 the instance definitions and provides more flexibility. Generalized
2129 type of `getOption` and added a default definition. Removed
2130 `askReaderOption`. Added `extractReaderOption`. Added
2131 `extractHeaderMap` and `updateHeaderMap` in `HasHeaderMap`.
2132 Gave default definitions for `getHeaderMap`, `putHeaderMap`,
2133 `modifyHeaderMap`. Added `extractIdentifierList` and
2134 `updateIdentifierList` in `HasIdentifierList`. Gave defaults
2135 for `getIdentifierList`, `putIdentifierList`, and
2136 `modifyIdentifierList`. The ultimate goal here is to allow different
2137 parsers to use their own, tailored parser states (instead of
2138 `ParserState`) while still using shared functions.
2140 * Template changes:
2142 + LaTeX template: Use `fontenc` package only with `pdflatex` (#1164).
2143 + LaTeX template: Add `linestretch` and `fontfamily` variables.
2144 + LaTeX template: Conditionalize author and date commands.
2145 + Beamer template: Consistent styles for figure and table captions
2146 (aaronwolen).
2147 + LaTeX and beamer template: Adjust widths correctly for oversized
2148 images. Use `\setkeys{Gin}{}` to set appropriate defaults for
2149 `\includegraphics` (Yihui Xie, Garrick Aden-Buie). Load
2150 `upquote` only after `fontenc` (Yihui Xie).
2151 + Beamer template: Added caption package (#1200).
2152 + Beamer template: changes for better unicode handling (KarolS).
2153 + DocBook template: use `authorgroup` if there are authors.
2154 + revealjs template: Move `include-after` to end (certainlyakey).
2155 + revealjs template: Fixed PDF print function (#1220, kevinkenan).
2157 * Bumped version bounds of dependencies.
2159 * Added a `--trace` command line option, for debugging backtracking
2160 bugs. So far this only works with the markdown reader.
2162 * MathMLinHTML: Fixed deprecation warning (#362, gwern, Albert Krewinkel).
2164 * Updated travis script to test with multiple GHC versions.
2166 * Force failure of a Travis build if GHC produces warnings (Albert
2167 Krewinkel).
2169 * Add `.editorconfig` (Albert Krewinkel).
2170 See <http://editorconfig.org/> for details.
2172 * Give more useful error message if '-t pdf' is specified (#1155).
2174 * Added `Cite`, `SmallCaps` to `Arbitrary` instance (#1269).
2176 * Allow `html4` as a synonym of `html` as a reader (it already works
2177 as a writer).
2179 * README:
2181 + Added an explanation of how to use YAML metadata to
2182 force items to appear in the bibliography without citations in
2183 the text (like LaTeX `\nocite`).
2184 + Added note to `--bibtex/--natbib`: not for use in making PDF
2185 (#1194, thanks to nahoj).
2186 + Added explanatory notes about `--natbib` and `--biblatex`.
2187 + Added specification of legal syntax for citation keys.
2188 + Fixed variable defaults documentation (Albert Krewinkel).
2190 * Removed copyright statements for files that have been removed
2191 (Albert Krewinkel).
2193 * Moved some doc files from `data-files` to `extra-source-files` (#1123).
2194 They aren't needed at runtime. We keep README and COPYRIGHT in data
2195 to ensure that they'll be available on all systems on which pandoc
2196 is installed.
2198 * Use cabal sandboxes in Windows build script.
2200pandoc (1.12.3.3)
2202 * To changes to source; recompiled tarball with latest alex and
2203 happy, so they will work with GHC 7.8.
2205pandoc (1.12.3.2)
2207 * Bumped version bounds for blaze-html, blaze-markup.
2209 * ImageSize: Avoid use of lookAhead, which is not in binary >= 0.6
2210 (#1124).
2212 * Fixed mediawiki ordered list parsing (#1122).
2214 * HTML reader: Fixed bug reading inline math with `$$` (#225).
2216 * Added support for LaTeX style literate Haskell code blocks in rST
2217 (Merijn Verstraaten).
2219pandoc (1.12.3.1)
2221 * Relaxed version constraint on binary, allowing the use of binary 0.5.
2223pandoc (1.12.3)
2225 * The `--bibliography` option now sets the `biblio-files` variable.
2226 So, if you're using `--natbib` or `--biblatex`, you can just use
2227 `--bibliography=foo.bib` instead of `-V bibliofiles=foo`.
2229 * Don't run pandoc-citeproc filter if `--bibliography` is
2230 used together with `--natbib` or `--biblatex` (Florian Eitel).
2232 * Template changes:
2234 + Updated beamer template to include booktabs.
2235 + Added `abstract` variable to LaTeX template.
2236 + Put `header-includes` after `title` in LaTeX template (#908).
2237 + Allow use of `\includegraphics[size]` in beamer.
2238 This just required porting a macro definition from the default
2239 LaTeX template to the default beamer template.
2241 * `reference.docx`: Include `FootnoteText` style.
2242 Otherwise Word ignores the style, even when specified in the `pPr`.
2243 (#901)
2245 * `reference.odt`: Tidied `styles.xml`.
2247 * Relaxed version bounds for dependencies.
2249 * Added `withSocketsDo` around http conduit code in `openURL`,
2250 so it works on Windows (#1080).
2252 * Added `Cite` function to `sample.lua`.
2254 * Markdown reader:
2256 + Fixed regression in title blocks (#1089).
2257 If author field was empty, date was being ignored.
2258 + Allow backslash-newline hard line breaks in grid and
2259 multiline table cells.
2260 + Citation keys may now start with underscores, and may contain
2261 underscores adjacent to internal punctuation.
2263 * LaTeX reader:
2265 + Add support for `Verb` macro (jrnold) (#1090).
2266 + Support babel-style quoting: `` "`..."' ``.
2268 * Properly handle script blocks in strict mode. (That is,
2269 `markdown-markdown_in_html_blocks`.) Previously a spurious
2270 `<p>` tag was being added (#1093).
2272 * Docbook reader: Avoid failure if `tbody` contains no `tr` or `row`
2273 elements.
2275 * LaTeX writer:
2277 + Factored out function for table cell creation.
2278 + Better treatment of footnotes in tables.
2279 Notes now appear in the regular sequence, rather than in the
2280 table cell. (This was a regression in 1.10.)
2282 * HTML reader: Parse name/content pairs from meta tags as metadata.
2283 Closes #1106.
2285 * Moved `fixDisplayMath` from Docx writer to `Writer.Shared`.
2287 * OpenDocument writer: Fixed `RawInline`, `RawBlock` so they don't escape.
2289 * ODT writer: Use mathml for proper rendering of formulas.
2290 Note: LibreOffice's support for this seems a bit buggy. But
2291 it should be better than what we had before.
2293 * RST writer: Ensure no blank line after def in definition list (#992).
2295 * Markdown writer: Don't use tilde code blocks with braced attributes in
2296 `markdown_github` output. A consequence of this change is that the
2297 backtick form will be preferred in general if both are enabled. That
2298 is good, as it is much more widespread than the tilde form. (#1084)
2300 * Docx writer: Fixed problem with some modified reference docx files.
2301 Include `word/_rels/settings.xml.rels` if it exists, as well as other
2302 `rels` files besides the ones pandoc generates explicitly.
2304 * HTML writer:
2306 + With `--toc`, headers no longer link to themselves (#1081).
2307 + Omit footnotes from TOC entries. Otherwise we get doubled
2308 footnotes when headers have notes!
2310 * EPUB writer:
2312 + Avoid duplicate notes when headings contain notes.
2313 This arose because the headings are copied into the metadata
2314 "title" field, and the note gets rendered twice. We strip the
2315 note now before putting the heading in "title".
2316 + Strip out footnotes from toc entries.
2317 + Fixed bug with `--epub-stylesheet`. Now the contents of
2318 `writerEpubStylesheet` (set by `--epub-stylesheet`)
2319 should again work, and take precedence over a stylesheet specified
2320 in the metadata.
2322 * `Text.Pandoc.MIME`: Added `wmf`, `emf`.
2324 * `Text.Pandoc.Shared`: `fetchItem` now handles image URLs beginning
2325 with `//`.
2327 * `Text.Pandoc.ImageSize`: Parse EXIF format JPEGs. Previously
2328 we could only get size information for JFIF format, which led
2329 to squished images in Word documents. Closes #976.
2331 * Removed old `MarkdownTest_1.0.3` directory (#1104).
2333pandoc (1.12.2.1)
2335 * Markdown reader: Fixed regression in list parser, involving
2336 continuation lines containing raw HTML (or even verbatim raw HTML).
2338pandoc (1.12.2)
2340 * Metadata may now be included in YAML blocks in a markdown document.
2341 For example,
2343 ---
2344 title:
2345 - type: main
2346 text: My Book
2347 - type: subtitle
2348 text: An investigation of metadata
2349 creator:
2350 - role: author
2351 text: John Smith
2352 - role: editor
2353 text: Sarah Jones
2354 identifier:
2355 - scheme: DOI
2356 text: doi:10.234234.234/33
2357 publisher: My Press
2358 rights: (c) 2007 John Smith, CC BY-NC
2359 cover-image: img/mypic.jpg
2360 ...
2362 Metadata may still be provided using `--epub-metadata`; it will
2363 be merged with the metadata in YAML blocks.
2365 * EPUB writer:
2367 + `meta` tags are now used instead of `opf` attributes for EPUB3.
2368 + Insert "svg" property as needed in opf (EPUB 3).
2369 + Simplify `imageTypeOf` using `getMimeType`.
2370 + Add properties attribute to `cover-image` item for EPUB 3.
2371 + Don't include node for `cover.xhtml` if no cover!
2372 + Ensure that same identifier is used throughout (#1044).
2373 If an identifier is given in metadata, we use that; otherwise
2374 we generate a random uuid.
2375 + Add cover reference to guide element (EPUB 2) (Shaun Attfield).
2376 Fixes an issue with Calibre putting the cover at the end of the book
2377 if the spine has `linear="no"`. Apparently this is best practice
2378 for other converters as well:
2379 <http://www.idpf.org/epub/20/spec/OPF_2.0.1_draft.htm#Section2.6>.
2380 + Allow `stylesheet` in metadata. The value is a path to the stylesheet.
2381 + Allow partial dates: `YYYY`, `YYYY-MM`.
2383 * Markdown writer: Fix rendering of tight sublists (#1050).
2384 Previously a spurious blank line was included after a tight sublist.
2386 * ODT writer: Add `draw:name` attribute to `draw:frame` elements (#1069).
2387 This is reported to be necessary to avoid an error from recent
2388 versions of Libre Office when files contain more than one image
2389 Thanks to wmanley for reporting and diagnosing the problem.
2391 * ConTeXt writer: Don't hardcode figure/table placement and numbering.
2392 Instead, let this be set in the template, using `\setupfloat`.
2393 Thanks to on4aa and Aditya Mahajan for the suggestion (#1067).
2395 * Implemented CSL flipflopping spans in DOCX, LaTeX, and HTML writers.
2397 * Fixed bug with markdown intraword emphasis. Closes #1066.
2399 * Docbook writer: Hierarchicalize block content in metadata.
2400 Previously headers just disappeared from block-level metadata
2401 when it was used in templates. Now we apply the 'hierarchicalize'
2402 transformation. Note that a block headed by a level-2 header will
2403 turn into a `<sect1>` element.
2405 * OpenDocument writer: Skip raw HTML (#1035).
2406 Previously it was erroneously included as verbatim text.
2408 * HTML/EPUB writer, footnotes: Put `<sup>` tag inside `<a>` tags.
2409 This allows better control of formatting, since the `<a>`
2410 tags have a distinguishing class (#1049).
2412 * Docx writer:
2414 + Use mime type info returned by fetchItem.
2415 + Fixed core metadata (#1046).
2416 Don't create empty date nodes if no date given.
2417 Don't create multiple `dc:creator` nodes; instead separate by
2418 semicolons.
2419 + Fix URL for core-properties in `_rels/.rels` (#1046).
2421 * Plain writer: don't print `<span>` tags.
2423 * LaTeX writer:
2425 + Fix definition lists with internal links in terms (#1032).
2426 This fix puts braces around a term that contains an internal
2427 link, to avoid problems with square brackets.
2428 + Properly escape pdftitle, pdfauthor (#1059).
2429 + Use booktabs package for tables (thanks to Jose Luis Duran).
2431 * Updated beamer template. Now references should work properly
2432 (in a slide) when `--biblatex` or `--natbib` is used.
2434 * LaTeX reader:
2436 + Parse contents of curly quotes or matched `"` as quotes.
2437 + Support `\textnormal` as span with class `nodecor`.
2438 This is needed for pandoc-citeproc.
2439 + Improved citation parsing. This fixes a run-time error that occured
2440 with `\citet{}` (empty list of keys). It also ensures that empty keys
2441 don't get produced.
2443 * MediaWiki reader: Add automatic header identifiers.
2445 * HTML reader:
2447 + Use pandoc `Div` and `Span` for raw `<div>`, `<span>` when
2448 `--parse-raw`.
2449 + Recognize `svg` tags as block level content (thanks to MinRK).
2450 + Parse LaTeX math if appropriate options are set.
2452 * Markdown reader:
2454 + Yaml block must start immediately after `---`. If there's a blank
2455 line after `---`, we interpreted it as a horizontal rule.
2456 + Correctly handle empty bullet list items.
2457 + Stop parsing "list lines" when we hit a block tag.
2458 This fixes exponential slowdown in certain input, e.g.
2459 a series of lists followed by `</div>`.
2461 * Slides: Preserve `<div class="references">` in references slide.
2463 * `Text.Pandoc.Writer.Shared`:
2465 + Fixed bug in `tagWithAttrs`. A space was omitted before key-value
2466 attributes, leading to invalid HTML.
2467 + `normalizeDate`: Allow dates with year only (thanks to Shaun Attfield).
2468 + Fixed bug in `openURL` with `data:` URIs. Previously the base-64
2469 encoded bytestring was returned. We now decode it so it's a proper
2470 image!
2472 * DocBook reader: Handle numerical attributes starting with decimal.
2473 Also use `safeRead` instead of `read`.
2475 * `Text.Pandoc.Readers.TexMath`: Export `readTeXMath'`, which attends
2476 to display/inline. Deprecate `readTeXMath`, and use `readTeXMath'`
2477 in all the writers. Require `texmath >= 0.6.5.2`.
2479 * `Text.Pandoc.MIME`:
2481 + Add entry for `jfif`.
2482 + In looking up extensions, drop the encoding info.
2483 E.g. for 'image/jpg;base64' we should lookup 'image/jpg'.
2485 * Templates: Changed how array variables are resolved. Previously if
2486 `foo` is an array (which might be because multiple values were set on
2487 the command line), `$foo$` would resolve to the concatenation of the
2488 elements of foo. This is rarely useful behavior. It has been changed
2489 so that the first value is rendered. Of course, you can still iterate
2490 over the values using `$for(foo)$`. This has the result that you can
2491 override earlier settings using `-V` by putting new values later on the
2492 command line, which is useful for many purposes.
2494 * `Text.Pandoc`: Don't default to `pandocExtensions` for all writers.
2496 * Allow "epub2" as synonym for "epub", "html4" for "html".
2498 * Don't look for slidy files in data files with `--self-contained`.
2500 * Allow `https:` command line arguments to be downloaded.
2502 * Fixed `make_osx_package.sh` so data files embedded in `pandoc-citeproc`.
2504pandoc (1.12.1)
2506 * `Text.Pandoc.Definition`: Changed default JSON serialization format.
2507 Instead of `{"Str": "foo"}`, for example, we now have `{"t": "Str",
2508 "c": "foo"}`. This new format is easier to work with outside of Haskell.
2509 Incidentally, "t" stands for "tag", "c" for "contents".
2511 * MediaWiki reader: Trim contents of `<math>` tags, to avoid problems
2512 when converting to markdown (#1027).
2514 * LaTeX reader:
2516 + Ensure that preamble doesn't contribute to the text of
2517 the document.
2518 + Fixed character escaping in \url{}. Previously `\~` wasn't handled
2519 properly, among others.
2520 + Parse `{groups}` as `Span`. This is needed for accurate conversion of
2521 bibtex titles, since we need to know what was protected from
2522 titlecase conversions.
2524 * LaTeX writer:
2526 + Specially escape non-ascii characters in labels.
2527 Otherwise we can get compile errors and other bugs when
2528 compiled with pdflatex (#1007). Thanks to begemotv2718 for the fix.
2529 + Add link anchors for code blocks with identifiers (#1025).
2531 * Throughout the code, use `isURI` instead of `isAbsoluteURI`.
2532 It allows fragments identifiers.
2534 * Slide formats:
2536 + A Div element with class "notes" is treated as speaker
2537 notes. Currently beamer goes to `\note{}`, revealjs to
2538 `<aside class="notes">`, and the notes are simply suppressed in
2539 other formats (#925).
2540 + Fixed `. . .` (pause) on HTML slide formats. Closes #1029.
2541 The old version caused a pause to be inserted before the first
2542 material on a slide. This has been fixed.
2543 + Removed data files for s5, slideous, slidy.
2544 Users of s5 and slideous will have to download the needed
2545 files, as has been documented for some time in the README.
2546 By default, slidy code will be sought on the web, as before.
2548 * HTML writer: Insert command to typeset mathjax only in slideous output
2549 (#966, #1012).
2551 * RST writer: Skip spaces after display math. Otherwise we get indentation
2552 problems, and part of the next paragraph may be rendered as part of the
2553 math.
2555 * OpenDocument writer: Fix formatting of strikeout code (#995),
2556 thanks to wilx. don't use `font-face-decls` variable.
2558 * Fixed test suite so it works with cabal sandboxes.
2560pandoc (1.12.0.2)
2562 * Removed `stringable` dependency.
2564pandoc (1.12.0.1)
2566 * Allow `--metadata` to be repeated for the same key to form a list.
2567 This also has the effect that `--bibliography` can be repeated,
2568 as before.
2570 * Handle boolean values in `--metadata`. Note that anything not parseable
2571 as a YAML boolean or string is treated as a literal string.
2572 You can get a string value with "yes", or any of the strings interpretable
2573 as booleans, by quoting it:
2575 -M boolvalue=yes -M stringvalue='"yes"'
2577 * LaTeX writer: Don't print references if `--natbib` or `--biblatex`
2578 option used.
2580 * DOCX writer: Add `settings.xml` to the zip container. Fixes a bug
2581 in which docx files could not be read by some versions of Word
2582 and LibreOffice (#990).
2584 * Fixed a regression involving slide shows with bibliographies.
2585 The Div container around references messed up the procedure for carving
2586 a document into slides. So we now remove the surrounding Div in
2587 `prepSlides`.
2589 * More informative error message when a filter is not found in path.
2591 * Depend on pandoc-types 1.12.1. This provide `ToJSONFilter`
2592 instances for `Data a => a -> [a]` and `Data a => a -> IO [a]`.
2594 * Don't use unicode_collation in building OSX package:
2595 it adds something like 50MB of dependencies to the package.
2597 * Declare alex and happy as build-tools (#986).
2599pandoc (1.12)
2601 [new features]
2603 * Much more flexible metadata, including arbitrary fields and structured
2604 values. Metadata can be specified flexibly in pandoc markdown using
2605 YAML metadata blocks, which may occur anywhere in the document:
2607 ---
2608 title: Here is my title.
2609 abstract: |
2610 This is the abstract.
2612 1. It can contain
2613 2. block content
2614 and *inline markup*
2616 tags: [cat, dog, animal]
2617 ...
2619 Metadata fields automatically populate template variables.
2621 * Added `opml` (OPML) as input and output format. The `_note` attribute,
2622 used in OmniOutliner and supported by multimarkdown, is supported.
2623 We treat the contents as markdown blocks under a section header.
2625 * Added `haddock` (Haddock markup) as input format (David Lazar).
2627 * Added `revealjs` output format, for reveal.js HTML 5 slide shows.
2628 (Thanks to Jamie F. Olson for the initial patch.)
2629 Nested vertical stacks are used for hierarchical structure.
2630 Results for more than one level of nesting may be odd.
2632 * Custom writers can now be written in lua.
2634 pandoc -t data/sample.lua
2636 will load the script sample.lua and use it as a custom writer.
2637 (For a sample, do `pandoc --print-default-data-file sample.lua`.)
2638 Note that pandoc embeds a lua interpreter, so lua need not be
2639 installed separately.
2641 * New `--filter/-F` option to make it easier to run "filters"
2642 (Pandoc AST transformations that operate on JSON serializations).
2643 Filters are always passed the name of the output format, so their
2644 behavior can be tailored to it. The repository
2645 <https://github.com/jgm/pandocfilters> contains
2646 a python module for writing pandoc filters in python, with
2647 a number of examples.
2649 * Added `--metadata/-M` option.
2650 This is like `--variable/-V`, but actually adds to metadata, not
2651 just variables.
2653 * Added `--print-default-data-file` option, which allows printing
2654 of any of pandoc's data files. (For example,
2655 `pandoc --print-default-data-file reference.odt` will print
2656 `reference.odt`.)
2658 * Added syntax for "pauses" in slide shows:
2660 This gives
2662 . . .
2664 me pause.
2666 * New markdown extensions:
2668 + `ignore_line_breaks`: causes intra-paragraph line breaks to be ignored,
2669 rather than being treated as hard line breaks or spaces. This is useful
2670 for some East Asian languages, where spaces aren't used between words,
2671 but text is separated into lines for readability.
2672 + `yaml_metadata_block`: Parse YAML metadata blocks. (Default.)
2673 + `ascii_identifiers`: This will force `auto_identifiers` to use ASCII
2674 only. (Default for `markdown_github`.) (#807)
2675 + `lists_without_preceding_blankline`: Allow lists to start without
2676 preceding blank space. (Default for `markdown_github`.) (#972)
2678 [behavior changes]
2680 * `--toc-level` no longer implies `--toc`.
2681 Reason: EPUB users who don't want a visible TOC may still want
2682 to set the TOC level for in the book navigation.
2684 * `--help` now prints in and out formats in alphabetical order, and
2685 says something about PDF output (#720).
2687 * `--self-contained` now returns less verbose output (telling you
2688 which URLs it is fetching, but not giving the full header). In
2689 addition, there are better error messages when fetching a URL fails.
2691 * Citation support is no longer baked in to core pandoc. Users who
2692 need citations will need to install and use a separate filter
2693 (`--filter pandoc-citeproc`). This filter will take `bibliography`,
2694 `csl`, and `citation-abbreviations` from the metadata, though it
2695 may still be specified on the command line as before.
2697 * A `Cite` element is now created in parsing markdown whether or not
2698 there is a matching reference.
2700 * The `pandoc-citeproc` script will put the bibliography at the
2701 end of the document, as before. However, it will be put inside a `Div`
2702 element with class "references", allowing users some control
2703 over the styling of references. A final header, if any, will
2704 be included in the `Div`.
2706 * The markdown writer will not print a bibliography if the
2707 `citations` extension is enabled. (If the citations are formatted
2708 as markdown citations, it is redundant to have a bibliography,
2709 since one will be generated automatically.)
2711 * Previously we used to store the directory of the first input file,
2712 even if it was local, and used this as a base directory for finding
2713 images in ODT, EPUB, Docx, and PDF. This has been confusing to many
2714 users. So we now look for images relative to the current
2715 working directory, even if the first file argument is in another
2716 directory. Note that this change may break some existing workflows.
2717 If you have been assuming that relative links will be interpreted
2718 relative to the directory of the first file argument, you'll need
2719 to make that the current directory before running pandoc. (#942)
2721 * Better error reporting in some readers, due to changes in `readWith`:
2722 the line in which the error occured is printed, with a caret pointing
2723 to the column.
2725 * All slide formats now support incremental slide view for definition lists.
2727 * Parse `\(..\)` and `\[..\]` as math in MediaWiki reader.
2728 Parse `:<math>...</math>` as display math. These notations are used with
2729 the MathJax MediaWiki extension.
2731 * All writers: template variables are set automatically from metadata
2732 fields. However, variables specified on the command line with
2733 `--variable` will completely shadow metadata fields.
2735 * If `--variable` is used to set many variables with the same name,
2736 a list is created.
2738 * Man writer: The `title`, `section`, `header`, and `footer` can now
2739 all be set individually in metadata. The `description` variable has been
2740 removed. Quotes have been added so that spaces are allowed in the
2741 title. If you have a title that begins
2743 COMMAND(1) footer here | header here
2745 pandoc will still parse it into a title, section, header, and
2746 footer. But you can also specify these elements explicitly (#885).
2748 * Markdown reader
2750 + Added support for YAML metadata blocks, which can come anywhere
2751 in the document (not just at the beginning). A document can contain
2752 multiple YAML metadata blocks.
2753 + HTML span and div tags are parsed as pandoc Span and Div elements.
2755 * Markdown writer
2757 + Allow simple tables to be printed as grid tables,
2758 if other table options are disabled. This means you can do
2759 `pandoc -t markdown-pipe_tables-simple_tables-multiline_tables`
2760 and all tables will render as grid tables.
2761 + Support YAML title block (render fields in alphabetical order
2762 to make output predictable).
2764 [API changes]
2766 * `Meta` in `Text.Pandoc.Definition` has been changed to allow
2767 structured metadata. (Note: existing code that pattern-matches
2768 on `Meta` will have to be revised.) Metadata can now contain
2769 indefinitely many fields, with content that can be a string,
2770 a Boolean, a list of `Inline` elements, a list of `Block`
2771 elements, or a map or list of these.
2773 * A new generic block container (`Div`) has been added to `Block`,
2774 and a generic inline container (`Span`) has been added to `Inline`.
2775 These can take attributes. They will render in HTML, Textile,
2776 MediaWiki, Org, RST and and Markdown (with `markdown_in_html`
2777 extension) as HTML `<div>` and `<span>` elements; in other formats
2778 they will simply pass through their contents. But they can be
2779 targeted by scripts.
2781 * `Format` is now a newtype, not an alias for String.
2782 Equality comparisons are case-insensitive.
2784 * Added `Text.Pandoc.Walk`, which exports hand-written tree-walking
2785 functions that are much faster than the SYB functions from
2786 `Text.Pandoc.Generic`. These functions are now used where possible
2787 in pandoc's code. (`Tests.Walk` verifies that `walk` and `query`
2788 match the generic traversals `bottomUp` and `queryWith`.)
2790 * Added `Text.Pandoc.JSON`, which provides `ToJSON` and `FromJSON`
2791 instances for the basic pandoc types. They use GHC generics and
2792 should be faster than the old JSON serialization using
2793 `Data.Aeson.Generic`.
2795 * Added `Text.Pandoc.Process`, exporting `pipeProcess`.
2796 This is a souped-up version of `readProcessWithErrorcode` that
2797 uses lazy bytestrings instead of strings and allows setting
2798 environment variables. (Used in `Text.Pandoc.PDF`.)
2800 * New module `Text.Pandoc.Readers.OPML`.
2802 * New module `Text.Pandoc.Writers.OPML`.
2804 * New module `Text.Pandoc.Readers.Haddock` (David Lazar).
2805 This is based on Haddock's own lexer/parser.
2807 * New module `Text.Pandoc.Writers.Custom`.
2809 * In `Text.Pandoc.Shared`, `openURL` and `fetchItem` now return an
2810 Either, for better error handling.
2812 * Made `stringify` polymorphic in `Text.Pandoc.Shared`.
2814 * Removed `stripTags` from `Text.Pandoc.XML`.
2816 * `Text.Pandoc.Templates`:
2818 + Simplified `Template` type to a newtype.
2819 + Removed `Empty`.
2820 + Changed type of `renderTemplate`: it now takes a JSON context
2821 and a compiled template.
2822 + Export `compileTemplate`.
2823 + Export `renderTemplate'` that takes a string instead of a compiled
2824 template.
2825 + Export `varListToJSON`.
2827 * `Text.Pandoc.PDF` exports `makePDF` instead of `tex2pdf`.
2829 * `Text.Pandoc`:
2831 + Made `toJsonFilter` an alias for `toJSONFilter` from `Text.Pandoc.JSON`.
2832 + Removed `ToJsonFilter` typeclass. `ToJSONFilter` from
2833 `Text.Pandoc.JSON` should be used instead. (Compiling against
2834 pandoc-types instead of pandoc will also produce smaller executables.)
2835 * Removed the deprecated `jsonFilter` function.
2836 + Added `readJSON`, `writeJSON` to the API (#817).
2838 * `Text.Pandoc.Options`:
2840 + Added `Ext_lists_without_preceding_blankline`,
2841 `Ext_ascii_identifiers`, `Ext_ignore_line_breaks`,
2842 `Ext_yaml_metadataBlock` to `Extension`.
2843 + Changed `writerSourceDirectory` to `writerSourceURL` and changed the
2844 type to a `Maybe`. `writerSourceURL` is set to 'Just url' when the
2845 first command-line argument is an absolute URL. (So, relative links
2846 will be resolved in relation to the first page.) Otherwise, 'Nothing'.
2847 + All bibliography-related fields have been removed from
2848 `ReaderOptions` and `WriterOptions`: `writerBiblioFiles`,
2849 `readerReferences`, `readerCitationStyle`.
2851 * The `Text.Pandoc.Biblio` module has been removed. Users of the
2852 pandoc library who want citation support will need to use
2853 `Text.CSL.Pandoc` from `pandoc-citeproc`.
2856 [bug fixes]
2858 * In markdown, don't autolink a bare URI that is followed by `</a>`
2859 (#937).
2861 * `Text.Pandoc.Shared`
2863 + `openURL` now follows redirects (#701), properly handles `data:`
2864 URIs, and prints diagnostic output to stderr rather than stdout.
2865 + `readDefaultDataFile`: normalize the paths. This fixes bugs in
2866 `--self-contained` on pandoc compiled with `embed_data_files` (#833).
2867 + Fixed `readDefaultDataFile` so it works on Windows.
2868 + Better error messages for `readDefaultDataFile`. Instead of
2869 listing the last path tried, which can confuse people who are
2870 using `--self-contained`, so now we just list the data file name.
2871 + URL-escape pipe characters. Even though these are legal, `Network.URI`
2872 doesn't regard them as legal in URLs. So we escape them first (#535).
2874 * Mathjax in HTML slide shows: include explicit "Typeset" call.
2875 This seems to be needed for some formats (e.g. slideous) and won't
2876 hurt in others (#966).
2878 * `Text.Pandoc.PDF`
2880 + On Windows, create temdir in working directory, since the system
2881 temp directory path may contain tildes, which can cause
2882 problems in LaTeX (#777).
2883 + Put temporary output directory in `TEXINPUTS` (see #917).
2884 + `makePDF` tries to download images that are not found locally,
2885 if the first argument is a URL (#917).
2886 + If compiling with `pdflatex` yields an encoding error, offer
2887 the suggestion to use `--latex-engine=xelatex`.
2889 * Produce automatic header identifiers in parsing textile, RST,
2890 and LaTeX, unless `auto_identifiers` extension is disabled (#967).
2892 * `Text.Pandoc.SelfContained`: Strip off fragment, query of relative URL
2893 before treating as a filename. This fixes `--self-contained` when used
2894 with CSS files that include web fonts using the method described here:
2895 <http://paulirish.com/2009/bulletproof-font-face-implementation-syntax/>
2896 (#739). Handle `src` in `embed`, `audio`, `source`, `input` tags.
2898 * `Text.Pandoc.Parsing`: `uri` parser no longer treats punctuation before
2899 percent-encoding, or a `+` character, as final punctuation.
2901 * `Text.Pandoc.ImageSize`: Handle EPS (#903). This change will make
2902 EPS images properly sized on conversion to Word.
2904 * Slidy: Use slidy.js rather than slidy.js.gz.
2905 Reason: some browsers have trouble with the gzipped js file,
2906 at least on the local file system (#795).
2908 * Markdown reader
2910 + Properly handle blank line at beginning of input (#882).
2911 + Fixed bug in unmatched reference links. The input
2912 `[*infile*] [*outfile*]` was getting improperly parsed:
2913 "infile" was emphasized, but "*outfile*" was literal (#883).
2914 + Allow internal `+` in citation identifiers (#856).
2915 + Allow `.` or `)` after `#` in ATX headers if no `fancy_lists`.
2916 + Do not generate blank title, author, or date metadata elements.
2917 Leave these out entirely if they aren't present.
2918 + Allow backtick code blocks not to be preceded by blank line (#975).
2920 * Textile reader:
2922 + Correctly handle entities.
2923 + Improved handling of `<pre>` blocks (#927). Remove internal HTML tags
2924 in code blocks, rather than printing them verbatim. Parse attributes
2925 on `<pre>` tag for code blocks.
2927 * HTML reader: Handle non-simple tables (#893). Column widths are read from
2928 `col` tags if present, otherwise divided equally.
2930 * LaTeX reader
2932 + Support alltt environment (#892).
2933 + Support `\textasciitilde`, `\textasciicircum` (#810).
2934 + Treat `\textsl` as emphasized text reader (#850).
2935 + Skip positional options after `\begin{figure}`.
2936 + Support `\v{}` for hacek (#926).
2937 + Don't add spurious ", " to citation suffixes.
2938 This is added when needed in pandoc-citeproc.
2939 + Allow spaces in alignment spec in tables, e.g. `{ l r c }`.
2940 + Improved support for accented characters (thanks to Scott Morrison).
2941 + Parse label after section command and set id (#951).
2943 * RST reader:
2945 + Don't insert paragraphs where docutils doesn't.
2946 `rst2html` doesn't add `<p>` tags to list items (even when they are
2947 separated by blank lines) unless there are multiple paragraphs in the
2948 list. This commit changes the RST reader to conform more closely to
2949 what docutils does (#880).
2950 + Improved metadata. Treat initial field list as metadata when
2951 standalone specified. Previously ALL fields "title", "author",
2952 "date" in field lists were treated as metadata, even if not at
2953 the beginning. Use `subtitle` metadata field for subtitle.
2954 + Fixed 'authors' metadata parsing in reST. Semicolons separate
2955 different authors.
2957 * MediaWiki reader
2959 + Allow space before table rows.
2960 + Fixed regression for `<ref>URL</ref>`.
2961 `<` is no longer allowed in URLs, according to the uri parser
2962 in `Text.Pandoc.Parsing`. Added a test case.
2963 + Correctly handle indented preformatted text without preceding
2964 or following blank line.
2965 + Fixed `|` links inside table cells. Improved attribute parsing.
2966 + Skip attributes on table rows. Previously we just crashed if
2967 rows had attributes, now we ignore them.
2968 + Ignore attributes on headers.
2969 + Allow `Image:` for images (#971).
2970 + Parse an image with caption in a paragraph by itself as a figure.
2972 * LaTeX writer
2974 + Don't use ligatures in escaping inline code.
2975 + Fixed footnote numbers in LaTeX/PDF tables. This fixes a bug
2976 wherein notes were numbered incorrectly in tables (#827).
2977 + Always create labels for sections. Previously the labels were only
2978 created when there were links to the section in the document (#871).
2979 + Stop escaping `|` in LaTeX math.
2980 This caused problems with array environments (#891).
2981 + Change `\` to `/` in paths. `/` works even on Windows in LaTeX.
2982 `\` will cause major problems if unescaped.
2983 + Write id for code block to label attribute in LaTeX when listings
2984 is used (thanks to Florian Eitel).
2985 + Scale LaTeX tables so they don't exceed columnwidth.
2986 + Avoid problem with footnotes in unnumbered headers (#940).
2988 * Beamer writer: when creating beamer slides, add `allowframebreaks` option
2989 to the slide if it is one of the header classes. It is recommended
2990 that your bibliography slide have this attribute:
2992 # References {.allowframebreaks}
2994 This causes multiple slides to be created if necessary, depending
2995 on the length of the bibliography.
2997 * ConTeXt writer: Properly handle tables without captions. The old output
2998 only worked in MkII. This should work in MkIV as well (#837).
3000 * MediaWiki writer: Use native mediawiki tables instead of HTML (#720).
3002 * HTML writer:
3004 + Fixed `--no-highlight` (Alexander Kondratskiy).
3005 + Don't convert to lowercase in email obfuscation (#839).
3006 + Ensure proper escaping in `<title>` and `<meta>` fields.
3008 * AsciiDoc writer:
3010 + Support `--atx-headers` (Max Rydahl Andersen).
3011 + Don't print empty identifier blocks `([[]])` on headers (Max
3012 Rydahl Andersen).
3014 * ODT writer:
3016 + Fixing wrong numbered-list indentation in open document format
3017 (Alexander Kondratskiy) (#369).
3018 + `reference.odt`: Added pandoc as "generator" in `meta.xml`.
3019 + Minor changes for ODF 1.2 conformance (#939). We leave the
3020 nonconforming `contextual-spacing` attribute, which is provided by
3021 LibreOffice itself and seems well supported.
3023 * Docx writer:
3025 + Fixed rendering of display math in lists.
3026 In 1.11 and 1.11.1, display math in lists rendered as a new list
3027 item. Now it always appears centered, just as outside of lists,
3028 and in proper display math style, no matter how far indented the
3029 containing list item is (#784).
3030 + Use `w:br` with `w:type` `textWrapping` for linebreaks.
3031 Previously we used `w:cr` (#873).
3032 + Use Compact style for Plain block elements, to
3033 differentiate between tight and loose lists (#775).
3034 + Ignore most components of `reference.docx`.
3035 We take the `word/styles.xml`, `docProps/app.xml`,
3036 `word/theme/theme1.xml`, and `word/fontTable.xml` from
3037 `reference.docx`, ignoring everything else. This should help
3038 with the corruption problems caused when different versions of
3039 Word resave the reference.docx and reorganize things.
3040 + Made `--no-highlight` work properly.
3042 * EPUB writer
3044 + Don't add `dc:creator` tags if present in EPUB metadata.
3045 + Add `id="toc-title"` to `h1` in `nav.xhtml` (#799).
3046 + Don't put blank title page in reading sequence.
3047 Set `linear="no"` if no title block. Addresses #797.
3048 + Download webtex images and include as data URLs.
3049 This allows you to use `--webtex` in creating EPUBs.
3050 Math with `--webtex` is automatically made self-contained.
3051 + In `data/epub.css`, removed highlighting styles (which
3052 are no longer needed, since styles are added by the HTML
3053 writer according to `--highlighting-style`). Simplified
3054 margin fields.
3055 + If resource not found, skip it, as in Docx writer (#916).
3057 * RTF writer:
3059 + Properly handle characters above the 0000-FFFF range.
3060 Uses surrogate pairs. Thanks to Hiromi Ishii for the patch.
3061 + Fixed regression with RTF table of contents.
3062 + Only autolink absolute URIs. This fixes a regression, #830.
3064 * Markdown writer:
3066 + Only autolink absolute URIs. This fixes a regression, #830.
3067 + Don't wrap attributes in fenced code blocks.
3068 + Write full metadata in MMD style title blocks.
3069 + Put multiple authors on separate lines in pandoc titleblock.
3070 Also, don't wrap long author entries, as new lines get treated
3071 as new authors.
3073 * `Text.Pandoc.Templates`:
3075 + Fixed bug retrieving default template for markdown variants.
3076 + Templates can now contain "record lookups" in variables;
3077 for example, `author.institution` will retrieve the `institution`
3078 field of the `author` variable.
3079 + More consistent behavior of `$for$`. When `foo` is not a list,
3080 `$for(foo)$...$endfor$` should behave like $if(foo)$...$endif$.
3081 So if `foo` resolves to "", no output should be produced.
3082 See pandoc-templates#39.
3084 * Citation processing improvements (now part of pandoc-citeproc):
3086 + Fixed `endWithPunct` The new version correctly sees a sentence
3087 ending in '.)' as ending with punctuation. This fixes a bug which
3088 led such sentences to receive an extra period at the end: '.).'.
3089 Thanks to Steve Petersen for reporting.
3090 + Don't interfere with Notes that aren't citation notes.
3091 This fixes a bug in which notes not generated from citations were
3092 being altered (e.g. first letter capitalized) (#898).
3093 + Only capitalize footnote citations when they have a prefix.
3094 + Changes in suffix parsing. A suffix beginning with a digit gets 'p'
3095 inserted before it before passing to citeproc-hs, so that bare numbers
3096 are treated as page numbers by default. A suffix not beginning with
3097 punctuation has a space added at the beginning (rather than a comma and
3098 space, as was done before for not-author-in-text citations).
3099 The result is that `\citep[23]{item1}` in LaTeX will be interpreted
3100 properly, with '23' treated as a locator of type 'page'.
3101 + Many improvements to citation rendering, due to fixes in citeproc-hs
3102 (thanks to Andrea Rossato).
3103 + Warnings are issued for undefined citations, which are rendered
3104 as `???`.
3105 + Fixed hanging behavior when locale files cannot be found.
3107 [template changes]
3109 * DocBook: Use DocBook 4.5 doctype.
3111 * Org: '#+TITLE:' is inserted before the title.
3112 Previously the writer did this.
3114 * LaTeX: Changes to make mathfont work with xelatex.
3115 We need the mathspec library, not just fontspec, for this.
3116 We also need to set options for setmathfont (#734).
3118 * LaTeX: Use `tex-ansi` mapping for `monofont`.
3119 This ensures that straight quotes appear as straight, rather than
3120 being treated as curly. See #889.
3122 * Made `\includegraphics` more flexible in LaTeX template.
3123 Now it can be used with options, if needed. Thanks to Bernhard Weichel.
3125 * LaTeX/Beamer: Added `classoption` variable.
3126 This is intended for class options like `oneside`; it may
3127 be repeated with different options. (Thanks to Oliver Matthews.)
3129 * Beamer: Added `fonttheme` variable. (Thanks to Luis Osa.)
3131 * LaTeX: Added `biblio-style` variable (#920).
3133 * DZSlides: title attribute on title section.
3135 * HTML5: add meta tag to allow scaling by user (Erik Evenson)
3137 [under-the-hood improvements]
3139 * Markdown reader:Improved strong/emph parsing, using the strategy of
3140 <https://github.com/jgm/Markdown>. The new parsing algorithm requires
3141 no backtracking, and no keeping track of nesting levels. It will give
3142 different results in some edge cases, but these should not affect normal
3143 uses.
3145 * Added `Text.Pandoc.Compat.Monoid`.
3146 This allows pandoc to compile with `base` < 4.5, where `Data.Monoid`
3147 doesn't export `<>`. Thanks to Dirk Ullirch for the patch.
3149 * Added `Text.Pandoc.Compat.TagSoupEntity`.
3150 This allows pandoc to compile with `tagsoup` 0.13.x.
3151 Thanks to Dirk Ullrich for the patch.
3153 * Most of `Text.Pandoc.Readers.TeXMath` has been moved to the
3154 `texmath` module (0.6.4). (This allows `pandoc-citeproc` to
3155 handle simple math in bibliography fields.)
3157 * Added `Text.Pandoc.Writers.Shared` for shared functions used
3158 only in writers. `metaToJSON` is used in writers to create a
3159 JSON object for use in the templates from the pandoc metadata
3160 and variables. `getField`, `setField`, and `defField` are
3161 for working with JSON template contexts.
3163 * Added `Text.Pandoc.Asciify` utility module.
3164 This exports functions to create ASCII-only versions of identifiers.
3166 * `Text.Pandoc.Parsing`
3168 + Generalized state type on `readWith` (API change).
3169 + Specialize readWith to `String` input. (API change).
3170 + In `ParserState`, replace `stateTitle`, `stateAuthors`, `stateDate`
3171 with `stateMeta` and `stateMeta'`.
3173 * `Text.Pandoc.UTF8`: use strict bytestrings in reading. The use of lazy
3174 bytestrings seemed to cause problems using pandoc on 64-bit Windows
3175 7/8 (#874).
3177 * Factored out `registerHeader` from markdown reader, added to
3178 `Text.Pandoc.Parsing`.
3180 * Removed `blaze_html_0_5` flag, require `blaze-html` >= 0.5.
3181 Reason: < 0.5 does not provide a monoid instance for Attribute,
3182 which is now needed by the HTML writer (#803).
3184 * Added `http-conduit` flag, which allows fetching https resources.
3185 It also brings in a large number of dependencies (`http-conduit`
3186 and its dependencies), which is why for now it is an optional flag
3187 (#820).
3189 * Added CONTRIBUTING.md.
3191 * Improved INSTALL instructions.
3193 * `make-windows-installer.bat`: Removed explicit paths for executables.
3195 * `aeson` is now used instead of `json` for JSON.
3197 * Set default stack size to 16M. This is needed for some large
3198 conversions, esp. if pandoc is compiled with 64-bit ghc.
3200 * Various small documentation improvements.
3201 Thanks to achalddave and drothlis for patches.
3203 * Removed comment that chokes recent versions of CPP (#933).
3205 * Removed support for GHC version < 7.2, since pandoc-types now
3206 requires at least GHC 7.2 for GHC generics.
3209pandoc (1.11.1)
3211 * Markdown reader:
3213 + Fixed regression in which parentheses were lost in link URLs.
3214 Added tests. Closes #786.
3215 + Better handling of unmatched double quotes in `--smart` mode.
3216 These occur frequently in fiction, since it is customary not to
3217 close quotes in dialogue if the speaker does not change between
3218 paragraphs. The unmatched quotes now get turned into literal
3219 left double quotes. (No `Quoted` inline is generated, however.)
3220 Closes #99 (again).
3222 * HTML writer: Fixed numbering mismatch between TOC and sections.
3223 `--number-offset` now affects TOC numbering as well
3224 as section numbering, as it should have all along. Closes #789.
3226 * Markdown writer: Reverted 1.11 change that caused citations to be rendered
3227 as markdown citations, even if `--bibliography` was specified, unless
3228 `citation` extension is disabled. Now, formatted citations are always
3229 printed if `--bibliography` was specified. If you want to reformat
3230 markdown keeping pandoc markdown citations intact, don't use
3231 `--bibliography`. Note that citations parsed from LaTeX documents will
3232 be rendered as pandoc markdown citations when `--bibliography` is not
3233 specified.
3235 * ODT writer: Fixed regression leading to corrupt ODTs.
3236 This was due to a change in the `Show` instance for
3237 `Text.Pandoc.Pretty.Doc`. Closes #780.
3239 * Fixed spacing bugs involving code block attributes in
3240 RST reader and Markdown writer. Closes #763.
3242 * Windows package: Various improvements due to Fyodor Sheremetyev.
3244 + Automatically set installation path (Program Files or Local App Data).
3245 + Set system PATH environment variable when installing for all users.
3246 + Pandoc can installed for all users using the following command.
3247 `msiexec /i pandoc-1.11.msi ALLUSERS=1`.
3249 * Bumped QuickCheck version bound.
3251pandoc (1.11)
3253 * Added `--number-offset` option. (See README for description.)
3255 * Added `--default-image-extension` option. (See README for description.)
3257 * `--number-sections` behavior change: headers with class `unnumbered`
3258 will not be numbered.
3260 * `--version` now reports the default data directory.
3262 * `Text.Pandoc.Parsing` is no longer exposed. (API change.)
3264 * `Text.Pandoc.Highlighting` is no longer exposed. (API change.)
3266 * `Text.Pandoc.Shared`: Changed type of `Element`. `Sec` now includes
3267 a field for `Attr` rather than just `String`. (API change.)
3269 * Added `markdown_github` as input format. This was an accidental
3270 omission in 1.10.
3272 * Added `readerDefaultImageExtension` field to `ReaderOptions`. (API
3273 change.)
3275 * Added `writerNumberOffset` field in `WriterOptions`. (API change.)
3277 * Beamer template:
3279 + Fixed captions with longtable. Thanks to Joost Kremers.
3280 + Provide `\Oldincludegraphics` as in LaTeX template (Benjamin Bannier).
3282 * LaTeX template:
3284 + Load microtype after fonts. Microtype needs to know
3285 what fonts are being used. Thanks to dfc for the patch.
3286 + Set `secnumdepth` to 5 if `--number-sections` specified.
3287 This yields behavior equivalent to the other writers, numbering
3288 level 4 and 5 headers too. Closes #753.
3290 * HTML reader:
3292 + Handle `<colgroup>` tag.
3293 + Preserve all header attributes.
3295 * LaTeX reader:
3297 + Parse `\hrule` as `HorizontalRule`. Closes #746.
3298 + Parse starred variants of `\section` etc. as headers with
3299 attribute `unnumbered`.
3300 + Read optional attributes in `lstlisting` and `Verbatim` environments.
3301 We convert these to pandoc standard names, e.g. `numberLines`
3302 for `numbers=left`, `startFrom=100` from `firstnumber=100`.
3303 + Handle language attribute for lstlistings.
3304 + Better support for Verbatim and minted environments. Closes #763.
3306 * Markdown reader:
3308 + `-` in an attribute context = `.unnumbered`. The point of this
3309 is to provide a way to specify unnumbered headers in non-English
3310 documents.
3311 + Fixed bug parsing key/value attributes. Parsing failed if you
3312 had an unquoted attribute immediately before the final '}'.
3313 + Make backslash escape work in attributes.
3314 + Fix title block parsing. Now if `mmd_title_blocks` is specified,
3315 pandoc will parse a MMD title block if it sees one, even if
3316 `pandoc_title_blocks` is enabled.
3317 + Refactoring: `litChar` now includes entities, so we don't need
3318 to use `fromEntities` e.g. on titles.
3319 + Allow spaces around borders in pipe tables. Closes #772.
3320 + Allow all punctuation in angle-bracket autolinks. Previously
3321 things like `----` were disallowed, because the uri parser
3322 treated them as trailing punctuation. Closes #768.
3323 + Make `implicit_header_references` work properly when
3324 headers are given explicit identifiers.
3325 + Check for tables before line blocks. Otherwise some pipe
3326 tables get treated as line blocks.
3327 + Allow `&` in emails (for entities).
3328 + Properly handle entities in titles and links. A markdown link
3329 `<http://g&ouml;ogle.com>` should be a link to `http://göogle.com`.
3330 Closes #723.
3332 * Textile reader:
3334 + Handle attributes on headers.
3336 * LaTeX reader:
3338 + Add `fig:` as title for images with captions.
3339 This is needed for them to be rendered as figures. Closes #766.
3340 + Never emit an empty paragraph. See #761.
3341 + Handle `\caption` for images in figures. Closes #766.
3342 + Parse `\section*`, etc. as unnumbered sections.
3344 * HTML writer:
3346 + Support header attributes. The attributes go on
3347 the enclosing `section` or `div` tag if `--section-divs` is specified.
3348 + Fixed a regression (only now noticed) in html+lhs output.
3349 Previously the bird tracks were being omitted.
3351 * LaTeX writer:
3353 + Omit lists with no items to avoid LaTeX errors.
3354 + Support line numbering with `--listings`.
3355 If `numberLines` class is present, we add `numbers=left`;
3356 if `startFrom` is present, we add `firstnumber=`. (#763)
3358 * ConTeXt writer:
3360 + Removed `\placecontent`. This produced a duplicate toc,
3361 in conjunction with `\placelist`.
3362 + Use `\title`, `\subject` etc. for headers with
3363 `unnumbered` class.
3365 * Textile writer:
3367 + Support header attributes.
3369 * Markdown writer:
3371 + Use grid tables when needed, and if enabled. Closes #740.
3372 + Render citations as pandoc-markdown citations.
3373 Previously citations were rendered as citeproc-formatted citations
3374 by default. Now we render them as pandoc citations, e.g. `[@item1]`,
3375 unless the `citations` extension is disabled.
3376 If you still want formatted citations in your markdown output,
3377 use `pandoc -t markdown-citations`.
3379 * RST writer:
3381 + Support `:number-lines:` in code blocks.
3383 * Docx writer:
3385 + Better treatment of display math. Display math inside a
3386 paragraph is now put in a separate paragraph, so it will render
3387 properly (centered and without extra blank lines around it).
3388 Partially addresses #742.
3389 + Content types and document rels xml files are now created from
3390 scratch, rather than being taken over from `reference.docx`.
3391 This fixes problems that arise when you edit the `reference.docx`
3392 with Word.
3393 + We also now encode mime types for each individual image rather
3394 than using defaults. This should allow us to handle a wider
3395 range of image types (including PDF). Closes #414.
3396 + Changed style names in `reference docx`.
3397 `FootnoteReference` -> `FootnoteRef`, `Hyperlink` -> `Link`.
3398 The old names got changed by Word when the `reference.docx` was
3399 edited. Closes #414.
3401 * EPUB writer:
3403 + Fix section numbering. Previously the numbering restarted from 1
3404 in each chapter (with `--number-sections`), though the numbers in
3405 the table of contents were correct.
3406 + Headers with "unnumbered" attribute are not numbered. (Nor do they
3407 cause an increment in running numbering.) Section numbers now work
3408 properly, even when there is material before the first numbered section.
3409 + Include HTML TOC, even in epub2. The TOC is included in `<spine>`,
3410 but `linear` is set to `no` unless the `--toc` option is specified.
3411 Include `<guide>` element in OPF. This should allow the TOC to
3412 be useable in Kindles when converted with kindlegen. Closes #773.
3414 * `Text.Pandoc.Parsing`: Optimized `oneOfStringsCI`.
3415 This dramatically reduces the speed penalty that comes from enabling the
3416 `autolink_bare_uris` extension. The penalty is still substantial (in one
3417 test, from 0.33s to 0.44s), but nowhere near what it used to be.
3418 The RST reader is also much faster now, as it autodetects URIs.
3420 * `Text.Pandoc.Shared`: `hierarchicalize` will not number section
3421 with class "unnumbered". Unnumbered sections get `[]` for their
3422 section number.
3424 * `Text.Pandoc.Pretty`:
3426 + Fixed `chomp` so it works inside `Prefixed` elements.
3427 + Changed `Show` instance so it is better for debugging.
3429 * `Text.Pandoc.ImageSize`: Added `Pdf` to `ImageType`.
3431 * `Text.Pandoc.UTF8`: Strip off BOM if present. Closes #743.
3433 * Windows installer improvements:
3435 + The installer is now signed with a certificate (thanks to
3436 Fyodor Sheremetyev).
3437 + WiX is used instead of InnoSetup. The installer is now a
3438 standard msi file.
3439 + The version number is now auto-detected, and need not be
3440 updated separately.
3442 * OSX installer improvements:
3444 + The package and pandoc executable are now signed with a
3445 certificate (thanks to Fyodor Sheremetyev).
3446 + RTF version of license is used.
3447 + Use full path for sysctl in `InstallationCheck` script (jonahbull).
3448 Closes #580.
3450 * Converted COPYING to markdown.
3452 * pandoc.cabal: Require latest versions of highlighting-kate,
3453 texmath, citeproc-hs, zip-archive.
3455pandoc (1.10.1)
3457 * Markdown reader: various optimizations, leading to a
3458 significant performance boost.
3460 * RST reader: Allow anonymous form of inline links:
3461 `` `hello <url>`__ `` Closes #724.
3463 * Mediawiki reader: Don't require newlines after tables.
3464 Thanks to jrunningen for the patch. Closes #733.
3466 * Fixed LaTeX macro parsing. Now LaTeX macro definitions are preserved
3467 when output is LaTeX, and applied when it is another format.
3468 Partially addresses #730.
3470 * Markdown and RST readers: Added parser to `block` that skips blank
3471 lines. This fixes a subtle regression involving grid tables with
3472 empty cells. Also added test for grid table with empty cells.
3473 Closes #732.
3475 * RST writer: Use `.. code:: language` for code blocks with language.
3476 Closes #721.
3478 * DocBook writer: Fixed output for hard line breaks, adding a newline
3479 between `<literallayout>` tags.
3481 * Markdown writer: Use an autolink when link text matches url.
3482 Previously we also checked for a null title, but this
3483 test fails for links produced by citeproc-hs in bibliographies.
3484 So, if the link has a title, it will be lost on conversion
3485 to an autolink, but that seems okay.
3487 * Markdown writer: Set title, author, date variables as before.
3488 These are no longer used in the default template, since we use
3489 titleblock, but we set them anyway for those who use custom templates.
3491 * LaTeX writer: Avoid extra space at start/end of table cell.
3492 Thanks to Nick Bart for the suggestion of using @{}.
3494 * `Text.Pandoc.Parsing`:
3496 + More efficient version of `anyLine`.
3497 + Type of `macro` has changed; the parser now returns `Blocks`
3498 instead of `Block`.
3500 * Relaxed old-time version bound, allowing 1.0.*.
3502 * Removed obsolete `hsmarkdown` script. Those who need `hsmarkdown`
3503 should create a symlink as described in the README.
3505pandoc (1.10.0.5)
3507 * Markdown reader: Try `lhsCodeBlock` before `rawTeXBlock`. Otherwise
3508 `\begin{code}...\end{code}` isn't handled properly in markdown+lhs.
3509 Thanks to Daniel Miot for noticing the bug and suggesting the fix.
3511 * Markdown reader: Fixed bug with headerless grid tables.
3512 The 1.10 code assumed that each table header cell contains exactly one
3513 block. That failed for headerless tables (0) and also for tables with
3514 multiple blocks in a header cell. The code is fixed and tests provided.
3515 Thanks to Andrew Lee for pointing out the bug.
3517 * Markdown reader: Fixed regressions in fenced code blocks. Closes #722.
3519 + Tilde code fences can again take a bare language string
3520 (`~~~ haskell`), not just curly-bracketed attributes
3521 (`~~~ {.haskell}`).
3522 + Backtick code blocks can take the curly-bracketed attributes.
3523 + Backtick code blocks don't *require* a language.
3524 + Consolidated code for the two kinds of fenced code blocks.
3526 * LaTeX template: Use `\urlstyle{same}` to avoid monospace URLs.
3528 * Markdown writer: Use proportional font for email autolinks with
3529 obfuscation. Closes #714.
3531 * Corrected name of `blank_before_blockquote` in README. Closes #718.
3533 * `Text.Pandoc.Shared`: Fixed bug in `uri` parser.
3534 The bug prevented an autolink at the end of a string (e.g.
3535 at the end of a line block line) from counting as a link. Closes #711.
3537 * Use the `hsb2hs` preprocessor instead of TH for embed_data_files.
3538 This should work on Windows, unlike the TH solution with
3539 file-embed.
3541 * Eliminated use of TH in test suite.
3543 * Added `Text.Pandoc.Data` (non-exported) to hold the association
3544 list of embedded data files, if the `embed_data_files` flag is selected.
3545 This isolates the code that needs special treatment with file-embed or
3546 `hsb2hs`.
3548 * Changes to `make-windows-installer.bat`.
3550 + Exit batch file if any of the cabal-dev installs fail.
3551 + There's no longer any need to reinstall `highlighting-kate`.
3552 + Don't start with a `cabal update`; leave that to the user.
3553 + Force reinstall of pandoc.
3555 * Fixed EPUB writer so it builds with blaze-html 0.4.x. Thanks to
3556 Jens Petersen.
3558pandoc (1.10.0.4)
3560 * Fixed bug with escaped % in LaTeX reader. Closes #710.
3562pandoc (1.10.0.3)
3564 * Added further missing fb2 tests to cabal file.
3566pandoc (1.10.0.2)
3568 * Added fb2 tests to cabal file's extra-source-files.
3570pandoc (1.10.0.1)
3572 * Bump version bounds on test-framework packages.
3574pandoc (1.10)
3576 [new features]
3578 * New input formats: `mediawiki` (MediaWiki markup).
3580 * New output formats: `epub3` (EPUB v3 with MathML),
3581 `fb2` (FictionBook2 ebooks).
3583 * New `--toc-depth` option, specifying how many levels of
3584 headers to include in a table of contents.
3586 * New `--epub-chapter-level` option, specifying the header
3587 level at which to divide EPUBs into separate files.
3588 Note that this normally affects only performance, not the
3589 visual presentation of the EPUB in a reader.
3591 * Removed the `--strict` option. Instead of using `--strict`,
3592 one can now use the format name `markdown_strict` for either input
3593 or output. This gives more fine-grained control that `--strict`
3594 did, allowing one to convert from pandoc's markdown to strict
3595 markdown or vice versa.
3597 * It is now possible to enable or disable specific syntax
3598 extensions by appending them (with `+` or `-`) to the writer
3599 or reader name. For example,
3601 pandoc -f markdown-footnotes+hard_line_breaks
3603 disables footnotes and enables treating newlines as hard
3604 line breaks. The literate Haskell extensions are now implemented
3605 this way as well, using either `+lhs` or `+literate_haskell`.
3606 For a list of extension names, see the README under
3607 "Pandoc's Markdown."
3609 * The following aliases have been introduced for specific
3610 combinations of markdown extensions: `markdown_phpextra`,
3611 `markdown_github`, `markdown_mmd`, `markdown_strict`. These aliases
3612 work just like regular reader and writer names, and can be modified
3613 with extension modifiers as described above. (Note that conversion
3614 from one markdown dialect to another does not work perfectly,
3615 because there are differences in markdown parsers besides
3616 just the extensions, and because pandoc's internal document model is
3617 not rich enough to capture all of the extensions.)
3619 * New `--html-q-tags` option. The previous default was to use `<q>`
3620 tags for smart quotes in HTML5. But `<q>` tags are also valid HTML4.
3621 Moreover, they are not a robust way of typesetting quotes, since
3622 some user agents don't support them, and some CSS resets (e.g.
3623 bootstrap) prevent pandoc's quotes CSS from working properly.
3624 We now just insert literal quote characters by default in both
3625 `html` and `html5` output, but this option is provided for
3626 those who still want `<q>` tags.
3628 * The markdown reader now prints warnings (to stderr) about
3629 duplicate link and note references. Closes #375.
3631 * Markdown syntax extensions:
3633 + Added pipe tables. Thanks to François Gannaz for the initial patch.
3634 These conform to PHP Markdown Extra's pipe table syntax. A subset
3635 of org-mode table syntax is also supported, which means that you can
3636 use org-mode's nice table editor to create tables.
3638 + Added support for RST-style line blocks. These are
3639 useful for verse and addresses.
3641 + Attributes can now be specified for headers, using the same
3642 syntax as in code blocks. (However, currently only the
3643 identifier has any effect in most writers.) For example,
3645 # My header {#foo}
3647 See [the header above](#foo).
3649 + Pandoc will now act as if link references have been defined
3650 for all headers without explicit identifiers.
3651 So, you can do this:
3653 # My header
3655 Link to [My header].
3656 Another link to [it][My header].
3658 Closes #691.
3660 * LaTeX reader:
3662 + Command macros now work everywhere, including non-math.
3663 Environment macros still not supported.
3664 + `\input` now works, as well as `\include`. TEXINPUTS is used.
3665 Pandoc looks recursively into included files for more included files.
3667 [behavior changes]
3669 * The Markdown reader no longer puts the text of autolinks in a
3670 `Code` inline. This means that autolinks will no longer appear
3671 in a monospace font.
3673 * The character `/` can now appear in markdown citation keys.
3675 * HTML blocks in strict_markdown are no longer required to begin
3676 at the left margin. Technically this is required, according to
3677 the markdown syntax document, but `Markdown.pl` and other markdown
3678 processors are more liberal.
3680 * The `-V` option has been changed so that if there are duplicate
3681 variables, those specified later on the command line take precedence.
3683 * Tight lists now work in LaTeX and ConTeXt output.
3685 * The LaTeX writer no longer relien on the `enumerate` package.
3686 Instead, it uses standard LaTeX commands to change the list numbering
3687 style.
3689 * The LaTeX writer now uses `longtable` instead of `ctable`. This allows
3690 tables to be split over page boundaries.
3692 * The RST writer now uses a line block to render paragraphs containing
3693 linebreaks (which previously weren't supported at all).
3695 * The markdown writer now applies the `--id-prefix` to footnote IDs.
3696 Closes #614.
3698 * The plain writer no longer uses backslash-escaped line breaks
3699 (which are not very "plain").
3701 * `Text.Pandoc.UTF8`: Better error message for invalid UTF8.
3702 Read bytestring and use `Text`'s decodeUtf8 instead of using
3703 `System.IO.hGetContents`. This way you get a message saying
3704 "invalid UTF-8 stream" instead of "invalid byte sequence."
3705 You are also told which byte caused the problem.
3707 * Docx, ODT, and EPUB writers now download images specified by a URL
3708 instead of skipping them or raising an error.
3710 * EPUB writer:
3712 + The default CSS now left-aligns headers by default, instead of
3713 centering. This is more consistent with the rest of the writers.
3714 + A proper multi-level table of contents is now used in `toc.ncx`.
3715 There is no longer a subsidiary table of contents at the beginning
3716 of each chapter.
3717 + Code highlighting now works by default.
3718 + Section divs are used by default for better semantic markup.
3719 + The title is used instead of "Title Page" in the table of contents.
3720 Otherwise we have a hard-coded English string, which looks
3721 strange in ebooks written in other languages. Closes #572.
3723 * HTML writer:
3725 + Put mathjax in span with class "math". Closes #562.
3726 + Put citations in a span with class "citation." In HTML5, also include
3727 a `data-cite` attribute with a space-separated list of citation
3728 keys.
3730 * `Text.Pandoc.UTF8`: use universalNewlineMode in reading.
3731 This treats both `\r\n` and `\n` as `\n` on input, no matter
3732 what platform we're running on.
3734 * Citation processing is now done in the Markdown and LaTeX
3735 readers, not in `pandoc.hs`. This makes it easier for library users
3736 to use citations.
3738 [template changes]
3740 * HTML: Added css to template to preserve spaces in `<code>` tags.
3741 Thanks to Dirk Laurie.
3743 * Beamer: Remove English-centric strings in section pages.
3744 Section pages used to have "Section" and a number as well as the
3745 section title. Now they just have the title. Similarly for part
3746 and subsection. Closes #566.
3748 * LaTeX, ConTeXt: Added papersize variable.
3750 * LaTeX, Beamer templates: Use longtable instead of ctable.
3752 * LaTeX, Beamer templates: Don't require 'float' package for tables.
3753 We don't actually seem to use the '[H]' option.
3755 * LaTeX: Use `upquote` package if it is available. This fixes
3756 straight quotes in verbatim environments.
3758 * Markdown, plain: Fixed titleblock so it is just a single string.
3759 Previously separate title, author, and date variables were used,
3760 but this didn't allow different kinds of title blocks.
3762 * EPUB:
3764 + Rationalized templates. Previously there were three different
3765 templates involved in epub production. There is now just one
3766 template, `default.epub` or `default.epub3`. It can now be
3767 overridden using `--template`, just like other templates.
3768 The titlepage is now folded into the default template.
3769 A `titlepage` variable selects it.
3770 + UTF-8, lang tag, meta tags, title element.
3772 * Added scale-to-width feature to beamer template
3774 [API changes]
3776 * `Text.Pandoc.Definition`: Added `Attr` field to `Header`.
3777 Previously header identifers were autogenerated by the writers.
3778 Now they are added in the readers (either automatically or explicitly).
3780 * `Text.Pandoc.Builder`:
3782 + `Inlines` and `Blocks` are now synonyms for `Many Inline` and
3783 `Many Block`. `Many` is a newtype wrapper around `Seq`, with
3784 custom Monoid instances for `Many Inline` and `Many Block. This
3785 allows `Many` to be made an instance of `Foldable` and `Traversable`.
3786 + The old `Listable` class has been removed.
3787 + The module now exports `isNull`, `toList`, `fromList`.
3788 + The old `Read` and `Show` instances have been removed; derived
3789 instances are now used.
3790 + Added `headerWith`.
3792 * The readers now take a `ReaderOptions` rather than a `ParserState`
3793 as a parameter. Indeed, not all parsers use the `ParserState` type;
3794 some have a custom state. The motivation for this change was to separate
3795 user-specifiable options from the accounting functions of parser state.
3797 * New module `Text.Pandoc.Options`. This includes the `WriterOptions`
3798 formerly in `Text.Pandoc.Shared`, and its associated
3799 data types. It also includes a new type `ReaderOptions`, which
3800 contains many options formerly in `ParserState`, and its associated
3801 data types:
3803 + `ParserState.stateParseRaw` -> `ReaderOptions.readerParseRaw`.
3804 + `ParserState.stateColumns` -> `ReaderOptions.readerColumns`.
3805 + `ParserState.stateTabStop` -> `ReaderOptions.readerTabStop`.
3806 + `ParserState.stateOldDashes` -> `ReaderOptions.readerOldDashes`.
3807 + `ParserState.stateLiterateHaskell` -> `ReaderOptions.readerLiterateHaskell`.
3808 + `ParserState.stateCitations` -> `ReaderOptions.readerReferences`.
3809 + `ParserState.stateApplyMacros` -> `ReaderOptions.readerApplyMacros`.
3810 + `ParserState.stateIndentedCodeClasses` ->
3811 `ReaderOptions.readerIndentedCodeClasses`.
3812 + Added `ReaderOptions.readerCitationStyle`.
3814 * `WriterOptions` now includes `writerEpubVersion`, `writerEpubChapterLevel`,
3815 `writerEpubStylesheet`, `writerEpubFonts`, `writerReferenceODT`,
3816 `writerReferenceDocx`, and `writerTOCDepth`. `writerEPUBMetadata` has
3817 been renamed `writerEpubMetadata` for consistency.
3819 * Changed signatures of `writeODT`, `writeDocx`, `writeEPUB`, since they no
3820 longer stylesheet, fonts, reference files as separate parameters.
3822 * Removed `writerLiterateHaskell` from `WriterOptions`, and
3823 `readerLiterateHaskell` from `ReaderOptions`. LHS is now handled
3824 by an extension (`Ext_literate_haskell`).
3826 * Removed deprecated `writerXeTeX`.
3828 * Removed `writerStrict` from `WriterOptions`. Added `writerExtensions`.
3829 Strict is now handled through extensions.
3831 * `Text.Pandoc.Options` exports `pandocExtensions`, `strictExtensions`,
3832 `phpMarkdownExtraExtensions`, `githubMarkdownExtensions`,
3833 and `multimarkdownExtensions`, as well as the `Extensions` type.
3835 * New `Text.Pandoc.Readers.MediaWiki` module, exporting
3836 `readMediaWiki`.
3838 * New `Text.Pandoc.Writers.FB2` module, exporting `writeFB2`
3839 (thanks to Sergey Astanin).
3841 * `Text.Pandoc`:
3843 + Added `getReader`, `getWriter` to `Text.Pandoc`.
3844 + `writers` is now an association list `(String, Writer)`.
3845 A `Writer` can be a `PureStringWriter`, an `IOStringWriter`, or
3846 an `IOByteStringWriter`. ALL writers are now in the 'writers'
3847 list, including the binary writers and FB2 writer. This allows
3848 code in `pandoc.hs` to be simplified.
3849 + Changed type of `readers`, so all readers are in IO.
3850 Users who want pure readers can still get them form the reader
3851 modules; this just affects the function `getReader` that looks up
3852 a reader based on the format name. The point of this change is to
3853 make it possible to print warnings from the parser.
3855 * `Text.Pandoc.Parsing`:
3857 + `Text.Parsec` now exports all Parsec functions used in pandoc code.
3858 No other module directly imports Parsec. This will make it easier
3859 to change the parsing backend in the future, if we want to.
3860 + `Text.Parsec` is used instead of `Text.ParserCombinators.Parsec`.
3861 + Export the type synonym `Parser`.
3862 + Export `widthsFromIndices`, `NoteTable'`, `KeyTable'`, `Key'`, `toKey'`,
3863 `withQuoteContext`, `singleQuoteStart`, `singleQuoteEnd`,
3864 `doubleQuoteStart`, `doubleQuoteEnd`, `ellipses`, `apostrophe`,
3865 `dash`, `nested`, `F(..)`, `askF`, `asksF`, `runF`, `lineBlockLines`.
3866 + `ParserState` is no longer an instance of `Show`.
3867 + Added `stateSubstitutions` and `stateWarnings` to `ParserState`.
3868 + Generalized type of `withQuoteContext`.
3869 + Added `guardEnabled`, `guardDisabled`, `getOption`.
3870 + Removed `failIfStrict`.
3871 + `lookupKeySrc` and `fromKey` are no longer exported.
3873 * `Data.Default` instances are now provided for `ReaderOptions`,
3874 `WriterOptions`, and `ParserState`. `Text.Pandoc` re-exports `def`.
3875 Now you can use `def` (which is re-exported by `Text.Pandoc`) instead
3876 of `defaultWriterOptions` (which is still defined). Closes #546.
3878 * `Text.Pandoc.Shared`:
3880 + Added `safeRead`.
3881 + Renamed `removedLeadingTrailingSpace` to `trim`,
3882 `removeLeadingSpace` to `triml`, and `removeTrailingSpace` to `trimr`.
3883 + Count `\r` as space in `trim` functions.
3884 + Moved `renderTags'` from HTML reader and `Text.Pandoc.SelfContained`
3885 to `Shared`.
3886 + Removed `failUnlessLHS`.
3887 + Export `compactify'`, formerly in Markdown reader.
3888 + Export `isTightList`.
3889 + Do not export `findDataFile`.
3890 + `readDataFile` now returns a strict ByteString.
3891 + Export `readDataFileUTF8` which returns a String, like the
3892 old `readDataFile`.
3893 + Export `fetchItem` and `openURL`.
3895 * `Text.Pandoc.ImageSize`: Use strict, not lazy bytestrings.
3896 Removed `readImageSize`.
3898 * `Text.Pandoc.UTF8`: Export `encodePath`, `decodePath`,
3899 `decodeArg`, `toString`, `fromString`, `toStringLazy`,
3900 `fromStringLazy`.
3902 * `Text.Pandoc.UTF8` is now an exposed module.
3904 * `Text.Pandoc.Biblio`:
3906 + csl parameter now a `String` rather than a `FilePath`.
3907 + Changed type of `processBiblio`. It is no longer in the IO monad.
3908 It now takes a `Maybe Style` argument rather than parameters for CSL
3909 and abbrev filenames. (`pandoc.hs` now calls the functions to parse
3910 the style file and add abbreviations.)
3912 * Markdown reader now exports `readMarkdownWithWarnings`.
3914 * `Text.Pandoc.RTF` now exports `writeRTFWithEmbeddedImages` instead of
3915 `rtfEmbedImage`.
3917 [bug fixes]
3919 * Make `--ascii` work properly with `--self-contained`. Closes #568.
3921 * Markdown reader:
3923 + Fixed link parser to avoid exponential slowdowns. Closes #620.
3924 Previously the parser would hang on input like this:
3926 [[[[[[[[[[[[[[[[[[hi
3928 We fixed this by making the link parser parser characters
3929 between balanced brackets (skipping brackets in inline code spans),
3930 then parsing the result as an inline list. One change is that
3932 [hi *there]* bud](/url)
3934 is now no longer parsed as a link. But in this respect pandoc behaved
3935 differently from most other implementations anyway, so that seems okay.
3937 + Look for raw html/latex blocks before tables.
3938 Otherwise the following gets parsed as a table:
3940 \begin{code}
3941 --------------
3942 -- My comment.
3943 \end{code}
3945 Closes #578.
3947 * RST reader:
3949 + Added support for `:target:` on `.. image::` blocks
3950 and substitutions.
3951 + Field list fixes:
3953 - Fixed field lists items with body beginning after a new line
3954 (Denis Laxalde).
3955 - Allow any char but ':' in names of field lists in RST reader
3956 (Denis Laxalde).
3957 - Don't allow line breaks in field names.
3958 - Require whitespace after field list field names.
3959 - Don't create empty definition list for metadata field lists.
3960 Previously a field list consisting only of metadata fields (author,
3961 title, date) would be parsed as an empty DefinitionList, which is
3962 not legal in LaTeX and not needed in any format.
3964 + Don't recognize inline-markup starts inside words.
3965 For example, `2*2 = 4*1` should not contain an emphasized
3966 section. Added test case for "Literal symbols". Closes #569.
3967 + Allow dashes as separator in simple tables. Closes #555.
3968 + Added support for `container`, `compound`, `epigraph`,
3969 `rubric`, `highlights`, `pull-quote`.
3970 + Added support for `.. code::`.
3971 + Made directive labels case-insensitive.
3972 + Removed requirement that directives begin at left margin.
3973 This was (correctly) not in earlier releases; docutils doesn't
3974 make the requirement.
3975 + Added support for `replace::` and `unicode::` substitutions.
3976 + Ignore unknown interpreted roles.
3977 + Renamed image parser to `subst`, since it now handles all
3978 substitution references.
3980 * Textile reader:
3982 + Allow newlines before pipes in table. Closes #654.
3983 + Fixed bug with list items containing line breaks.
3984 Now pandoc correctly handles hard line breaks inside list items.
3985 Previously they broke list parsing.
3986 + Implemented comment blocks.
3987 + Fixed bug affected words ending in hyphen.
3988 + Properly handle links with surrounding brackets.
3989 Square brackets need to be used when the link isn't surrounded by
3990 spaces or punctuation, or when the URL ending may be ambiguous.
3991 Closes #564.
3992 + Removed nullBlock. Better to know about parsing problems than
3993 to skip stuff when we get stuck.
3994 + Allow ID attributes on headers.
3995 + Textile reader: Avoid parsing dashes as strikeout.
3996 Previously the input
3998 text--
3999 text--
4000 text--
4001 text--
4003 would be parsed with strikeouts rather than dashes. This fixes
4004 the problem by requiring that a strikeout delimiting - not be
4005 followed by a -. Closes #631.
4006 + Expanded list of `stringBreakers`.
4007 This fixes a bug on input like "(_hello_)" which should
4008 be a parenthesized emphasized "hello".
4009 The new list is taken from the PHP source of textile 2.4.
4010 + Fixed autolinks. Previously the textile reader and writer
4011 incorrectly implented RST-style autolinks for URLs and email
4012 addresses. This has been fixed. Now an autolink is done this way:
4013 `"$":http://myurl.com`.
4014 + Fixed footnotes bug in textile. This affected notes occuring
4015 before punctuation, e.g. `foo[1].`. Closes #518.
4017 * LaTeX reader:
4019 + Better handling of citation commands.
4020 + Better handling of `\noindent`.
4021 + Added a 'try' in rawLaTeXBlock, so we can handle `\begin` without `{`.
4022 Closes #622.
4023 + Made `rawLaTeXInline` try to parse block commands as well. This
4024 is usually what we want, given how `rawLaTeXInline` is used in
4025 the markdown and textile readers. If a block-level LaTeX command
4026 is used in the middle of a paragraph (e.g. `\subtitle` inside a title),
4027 we can treat it as raw inline LaTeX.
4028 + Handle \slash command. Closes #605.
4029 + Basic `\enquote` support.
4030 + Fixed parsing of paragraphs beginning with a group. Closes #606.
4031 + Use curly quotes for bare straight quotes.
4032 + Support obeylines environment. Closes #604.
4033 + Guard against "begin", "end" in inlineCommand and
4034 blockCommand.
4035 + Better error messages for environments. Now it should tell you that
4036 it was looking for \end{env}, instead of giving "unknown parse error."
4038 * HTML reader:
4040 + Added HTML 5 tags to list of block-level tags.
4041 + HTML reader: Fixed bug in `htmlBalanced`, which
4042 caused hangs in parsing certain markdown input using
4043 strict mode.
4044 + Parse `<q>` as `Quoted DoubleQuote`.
4045 + Handle nested `<q>` tags properly.
4046 + Modified `htmlTag` for fewer false positives.
4047 A tag must start with `<` followed by `!`,`?`, `/`, or a letter.
4048 This makes it more useful in the wikimedia and markdown parsers.
4050 * DocBook reader: Support title in "figure" element. Closes #650.
4052 * MediaWiki writer:
4054 + Remove newline after `<br/>` in translation of `LineBreak`
4055 There's no particular need for a newline (other than making the
4056 generated MediaWiki source look nice to a human), and in fact
4057 sometimes it is incorrect: in particular, inside an enumeration, list
4058 items cannot have embedded newline characters. (Brent Yorgey)
4059 + Use `<code>` not `<tt>` for Code.
4061 * Man writer: Escape `-` as `\-`.
4062 Unescaped `-`'s become hyphens, while `\-`'s are left as ascii minus
4063 signs. That is preferable for use with command-line options. See
4064 <http://lintian.debian.org/tags/hyphen-used-as-minus-sign.html>. Thanks
4065 to Andrea Bolognani for bringing the issue to our attention.
4067 * RST writer:
4069 + Improved line block output. Use nonbreaking spaces for
4070 initial indent (otherwise lost in HTML and LaTeX).
4071 Allow multiple paragraphs in a single line block.
4072 Allow soft breaks w continuations in line blocks.
4073 + Properly handle images with no alt text. Closes #678.
4074 + Fixed bug with links with duplicate text. We now (a) use anonymous
4075 links for links with inline URLs, and (b) use an inline link instead
4076 of a reference link if the reference link would require a label that
4077 has already been used for a different link. Closes #511.
4078 + Fixed hyperlinked images. Closes #611. Use `:target:`
4079 field when you have a simple linked image.
4080 + Don't add `:align: center` to figures.
4082 * Texinfo writer: Fixed internal cross-references.
4083 Now we insert anchors after each header, and use `@ref` instead of `@uref`
4084 for links. Commas are now escaped as `@comma{}` only when needed;
4085 previously all commas were escaped. (This change is needed, in part,
4086 because `@ref` commands must be followed by a real comma or period.) Also
4087 insert a blank line in from of `@verbatim` environments.
4089 * DocBook writer:
4091 + Made --id-prefix work in DocBook as well as HTML.
4092 Closes #607.
4093 + Don't include empty captions in figures. Closes #581.
4095 * LaTeX writer:
4097 + Use `\hspace*` for nonbreaking space after line break,
4098 since `~` spaces after a line break are just ignored.
4099 Closes #687.
4100 + Don't escape `_` in URLs or hyperref identifiers.
4101 + Properly escape strings inside \url{}. Closes #576.
4102 + Use `[fragile]` only for slides containing code rendered
4103 using listings. Closes #649.
4104 + Escape `|` as `\vert` in LaTeX math. This avoids a clash with
4105 highlighting-kate's macros, which redefine `|` as a short verbatim
4106 delimiter. Thanks to Björn Peemöller for raising this issue.
4107 + Use minipage rather than parbox for block containers in tables.
4108 This allows verbatim code to be included in grid tables.
4109 Closes #663.
4110 + Prevent paragraphs containing only linebreaks or spaces.
4112 * HTML writer:
4114 + Included `highlighting-css` for code spans, too.
4115 Previously it was only included if used in a code block. Closes #653.
4116 + Improved line breaks with `<dd>` tags. We now put a newline between
4117 `</dd>` and `<dd>` when there are multiple definitions.
4118 + Changed mathjax cdn url so it doesn't use https. (This caused
4119 problems when used with `--self-contained`.) See #609.
4121 * EPUB writer:
4123 + `--number-sections` now works properly.
4124 + Don't strip meta and link elements in epub metadata.
4125 Patch from aberrancy. Closes #589.
4126 + Fixed a couple validation bugs.
4127 + Use ch001, ch002, etc. for chapter filenames. This improves sorting
4128 of chapters in some readers, which apparently sort ch2 after ch10.
4129 Closes #610.
4131 * ODT writer: properly set title property (Arlo O'Keeffe).
4133 * Docx writer:
4135 + Fixed bug with nested lists. Previously a list like
4137 1. one
4138 - a
4139 - b
4140 2. two
4142 would come out with a bullet instead of "2."
4143 Thanks to Russell Allen for reporting the bug.
4144 + Use `w:cr` in `w:r` instead of `w:br` for linebreaks.
4145 This seems to fix a problem viewing pandoc-generated
4146 docx files in LibreOffice.
4147 + Use integer ids for bookmarks. Closes #626.
4148 + Added nsid to abstractNum elements. This helps when merging
4149 word documents with numbered or bulleted lists. Closes #627.
4150 + Use separate footnotes.xml for notes.
4151 This seems to help LibreOffice convert the file, even though
4152 it was valid docx before. Closes #637.
4153 + Use rIdNN identifiers for r:embed in images.
4154 + Avoid reading image files again when we've already processed them.
4155 + Fixed typo in `referenc.docx` that prevented image captions from
4156 working. Thanks to Huashan Chen.
4158 * `Text.Pandoc.Parsing`:
4160 + Fixed bug in `withRaw`, which didn't correctly handle the case
4161 where nothing is parsed.
4162 + Made `emailAddress` parser more correct. Now it is based on RFC 822,
4163 though it still doesn't implement quoted strings in email addresses.
4164 + Revised URI parser. It now allows many more schemes, allows
4165 uppercase URIs, and better handles trailing punctuation and
4166 trailing slashes in bare URIs. Added many tests.
4167 + Simplified and improved singleQuoteStart. This makes `'s'`, `'l'`,
4168 etc. parse properly. Formerly we had some English-centric heuristics,
4169 but they are no longer needed. Closes #698.
4171 * `Text.Pandoc.Pretty`: Added wide punctuation range to `charWidth`.
4172 This fixes bug with Chinese commas in markdown and reST tables, and
4173 a bug that caused combining characters to be dropped.
4175 * `Text.Pandoc.MIME`: Added MIME types for .wof and .eot. Closes #640.
4177 * `Text.Pandoc.Biblio`:
4179 + Run `mvPunc` and `deNote` on metadata too.
4180 This fixed a bug with notes on titles using footnote styles.
4181 + Fixed bug in fetching CSL files from CSL data directory.
4183 * `pandoc.hs`: Give correct value to `writerSourceDirectory` when a URL
4184 is provided. It should be the URL up to the path.
4186 * Fixed/simplified diff output for tests.
4187 Biblio: Make sure mvPunc and deNote run on metadata too.
4188 This fixed a bug with notes on titles using footnote styles.
4190 [under the hood improvements]
4192 * We no longer depend on `utf8-string`. Instead we use functions
4193 defined in `Text.Pandoc.UTF8` that use `Data.Text`'s conversions.
4195 * Use `safeRead` instead of using `reads` directly (various modules).
4197 * "Implicit figures" (images alone in a paragraph) are now handled
4198 differently. The markdown reader gives their titles the prefix `fig:`; the
4199 writers look for this before treating the image as a figure. Though this
4200 is a bit of a hack, it has two advantages: (i) implicit figures can be
4201 limited to the markdown reader, and (ii) they can be deactivated by turning
4202 off the `implicit_figures` extension.
4204 * `catch` from `Control.Exception` is now used instead of the
4205 old Preface `catch`.
4207 * `Text.Pandoc.Shared`: Improved algorithm for `normalizeSpaces`
4208 and `oneOfStrings` (which is now non-backtracking).
4210 * `Text.Pandoc.Biblio`: Remove workaround for `toCapital`.
4211 Now citeproc-hs is fixed upstream, so this is no longer needed.
4212 Closes #531.
4214 * Textile reader: Improved speed of `hyphenedWords`.
4215 This speeds up the textile reader by about a factor of 4.
4217 * Use `Text.Pandoc.Builder` in RST reader, for more flexibility,
4218 better performance, and automatic normalization.
4220 * Major rewrite of markdown reader:
4222 + Use `Text.Pandoc.Builder` instead of lists. This also
4223 means that everything is normalized automatically.
4224 + Move to a one-pass parsing strategy, returning values in the reader
4225 monad, which are then run (at the end of parsing) against the final
4226 parser state.
4228 * In HTML writer, we now use `toHtml` instead of pre-escaping.
4229 We work around the problem that blaze-html unnecessarily escapes `'`
4230 by pre-escaping just the `'` characters, instead of the whole string.
4231 If blaze-html later stops escaping `'` characters, we can simplify
4232 `strToHtml` to `toHtml`. Closes #629.
4234 * Moved code for embedding images in RTFs from `pandoc.hs` to the
4235 RTF writer (which now exports `writeRTFWithEmbeddedImages`).
4237 * Moved citation processing from `pandoc.hs` into the readers.
4238 This makes things more convenient for library users.
4240 * The man pages are now built by an executable `make-pandoc-man-pages`,
4241 which has its own stanza in the cabal file so that dependencies can be
4242 handled by Cabal. Special treatment in `Setup.hs` ensures that this
4243 executable never gets installed; it is only used to create the man pages.
4245 * The cabal file has been modified so that the pandoc library is used
4246 in building the pandoc executable. (This required moving `pandoc.hs`
4247 from `src` to `.`.) This cuts compile time in half.
4249 * `-O2` is no longer used in building pandoc. The performance improvement
4250 it yields is so slight that it is not worth it. (Measured with
4251 benchmarks on ghc 7.4.)
4253 * The `executable` and `library` flags have been removed.
4255 * `-threaded` has been removed from ghc-options.
4257 * Version bounds of dependencies have been raised, and the
4258 `blaze_html_0_5` flag now defaults to True. Pandoc now compiles on
4259 GHC 7.6.
4261 * We now require base >= 4.2.
4263 * Integrated the benchmark program into cabal. One can now do:
4265 cabal configure --enable-benchmarks && cabal build
4266 cabal bench --benchmark-option='markdown' --benchmark-option='-s 20'
4268 The benchmark now uses README + testsuite, so benchmark results
4269 from older versions aren't comparable.
4271 * Integrated test suite with cabal.
4272 To run tests, configure with `--enable-tests`, then `cabal test`.
4273 You can specify particular tests using `--test-options='-t markdown'`.
4274 No output is shown unless tests fail. The Haskell test modules
4275 have been moved from `src/` to `tests/`.
4277 * Moved all data files and templates to the `data/` subdirectory.
4279 * Added an `embed_data_files` cabal flag. This causes all
4280 data files to be embedded in the binary, so that the binary
4281 is self-sufficient and can be relocated anywhere, copied on
4282 a USB key, etc. The Windows installer now uses this.
4283 (Since we no longer have the option to build the executable
4284 without the library, this is the only way to get a relocatable
4285 binary on Windows.)
4287 * Removed pcre3.dll from windows package.
4288 It isn't needed unless highlighting-kate is compilled with the
4289 `pcre-light` flag. By default, regex-prce-builtin is used.
4292pandoc (1.9.4.2)
4294 * Don't encode/decode file paths if base >= 4.4.
4295 Prior to base 4.4, filepaths and command line arguments were treated
4296 as unencoded lists of bytes, not unicode strings, so we had to work
4297 around that by encoding and decoding them. This commit adds CPP
4298 checks for the base version that intelligibly enable encoding/decoding
4299 when needed. Fixes a bug with multilingual filenames when pandoc was
4300 compiled with ghc 7.4 (#540).
4302 * Don't generate an empty H1 after hrule slide breaks.
4303 We now use a slide-level header with contents `[Str "\0"]` to mark
4304 an hrule break. This avoids creation of an empty H1 in these
4305 contexts. Closes #484.
4307 * Docbook reader: Added support for "bold" emphasis. Thanks to mb21.
4309 * In make_osx_package.sh, ensure citeproc-hs is built with the
4310 embed_data_files flag.
4312 * MediaWiki writer: Avoid extra blank lines after sublists (Gavin Beatty).
4314 * ConTeXt writer: Don't escape `&`, `^`, `<`, `>`, `_`,
4315 simplified escapes for `}` and `{` to `\{` and `\}` (Aditya Mahajan).
4317 * Fixed handling of absolute URLs in CSS imports with `--self-contained`.
4318 Closes #535.
4320 * Added webm to mime types. Closes #543.
4322 * Added some missing exports and tests to the cabal file
4323 (Alexander V Vershilov).
4325 * Compile with `-rtsopts` and `-threaded` by default.
4327pandoc (1.9.4.1)
4329 * Markdown reader: Added `cf.` and `cp.` to list of likely abbreviations.
4331 * LaTeX template: Added `linkcolor`, `urlcolor` and `links-as-notes`
4332 variables. Make TOC links black.
4334 * LaTeX template improvements.
4336 + Don't print date unless one is given explicitly in the document.
4337 + Simplified templates.
4338 + Use fontenc [T1] by default, and lmodern.
4339 + Use microtype if available.
4341 * Biblio:
4343 + Add comma to beginning of bare suffix, e.g. `@item1 [50]`.
4344 Motivation: `@item1 [50]` should be as close as possible to
4345 `[@item1, 50]`.
4346 + Added workaround for a bug in citeproc-hs 0.3.4 that causes footnotes
4347 beginning with a citation to be empty. Closes #531.
4349 * Fixed documentation on mixed lists. Closes #533.
4351pandoc (1.9.4)
4353 * Simplified `Text.Pandoc.Biblio` and fixed bugs with citations inside
4354 footnotes and captions. We now handle note citations by inserting
4355 footnotes during initial citation processing, and doing a separate
4356 pass later to remove notes inside notes.
4358 * Added 'zenburn' highlight style from highlighting-kate.
4360 * Added Slideous writer. Slideous is an HTML + javascript slide show
4361 format, similar to Slidy, but works with IE 7. (Jonas Smedegaard)
4363 * LaTeX writer:
4365 + Ensure we don't have extra blank lines at ends of cells.
4366 This can cause LaTeX errors, as they are interpreted as new paragraphs.
4367 + More consistent interblock spacing.
4368 + Require highlighting-kate >= 0.5.1, for proper highlighted inline
4369 code in LaTeX. Closes #527.
4370 + Ensure that a Verbatim at the end of a footnote is followed by
4371 a newline. (Fixes a regression in the previous version.)
4372 + In default template, use black for internal links and TOC.
4373 Added commented-out code to use footnotes for links, as would
4374 be suitable in print output.
4376 * Beamer writer: When `--incremental` is used, lists inside
4377 a block quote should appear all at once. (This makes Beamer
4378 output consistent with the HTML slide show formats.)
4380 * ConTeXt writer:
4382 + Escape `%` as `\letterpercent{}` not `\letterpercent `,
4383 to avoid gobbling spaces after the `%` sign.
4384 + Ensure space after `\stopformula`.
4386 * Markdown writer:
4388 + Use `:` form instead of `~` in definition lists, for better
4389 compatibility with other markdown implementations.
4390 + Don't wrap the term, because it breaks definition lists.
4391 + Use a nonzero space to prevent false recognition
4392 of list marker in ordered lists. Closes #516.
4394 * Org writer: Add space before language name. Closes #523.
4396 * Docx writer: Simplified bullet characters so they work properly
4397 with Word 2007. Closes #520.
4399 * LaTeX reader: Support `\centerline`.
4401 * RST reader: handle figures. Closes #522.
4403 * Textile reader: fix for `<notextile>` and `==`. Closes #517.
4404 (Paul Rivier)
4406pandoc (1.9.3)
4408 * Fixed bug in `fromEntities`. The previous version would turn
4409 `hi & low you know;` into `hi &`.
4411 * HTML reader:
4413 + Don't skip nonbreaking spaces.
4414 Previously a paragraph containing just `&nbsp;` would be rendered
4415 as an empty paragraph. Thanks to Paul Vorbach for pointing out the bug.
4416 + Support `<col>` and `<caption>` in tables. Closes #486.
4418 * Markdown reader:
4420 + Don't recognize references inside delimited code blocks.
4421 + Allow list items to begin with lists.
4423 * Added basic docbook reader (John MacFarlane and Mauro Bieg).
4425 * LaTeX reader:
4427 + Handle `\bgroup`, `\egroup`, `\begingroup`, `\endgroup`.
4428 + Control sequences can't be followed by a letter.
4429 This fixes a bug where `\begingroup` was parsed as `\begin`
4430 followed by `group`.
4431 + Parse 'dimension' arguments to unknown commands. e.g. `\parindent0pt`
4432 + Make `\label` and `\ref` sensitive to `--parse-raw`.
4433 If `--parse-raw` is selected, these will be parsed as raw latex
4434 inlines, rather than bracketed text.
4435 + Don't crash on unknown block commands (like `\vspace{10pt}`)
4436 inside `\author`; just skip them. Closes #505.
4438 * Textile reader:
4440 + Implemented literal escapes with `==` and `<notextile>`. Closes #473.
4441 + Added support for LaTeX blocks and inlines (Paul Rivier).
4442 + Better conformance to RedCloth inline parsing (Paul Rivier).
4443 + Parse '+text+' as emphasized (should be underlined, but this
4444 is better than leaving literal plus characters in the output.
4446 * Docx writer: Fixed multi-paragraph list items. Previously they each
4447 got a list marker. Closes #457.
4449 * LaTeX writer:
4451 + Added `--no-tex-ligatures` option to avoid replacing
4452 quotation marks and dashes with TeX ligatures.
4453 + Use `fixltx2e` package to provide '\textsubscript'.
4454 + Improve spacing around LaTeX block environments:
4455 quote, verbatim, itemize, description, enumerate.
4456 Closes #502.
4457 + Use blue instead of pink for URL links in latex/pdf output.
4459 * ConTeXt writer: Fixed escaping of `%`.
4460 In text, `%` needs to be escaped as `\letterpercent`, not `\%`
4461 Inside URLs, `%` needs to be escaped as `\%`
4462 Thanks to jmarca and adityam for the fix. Closes #492.
4464 * Texinfo writer: Escape special characters in node titles.
4465 This fixes a problem pointed out by Joost Kremers. Pandoc used
4466 to escape an '@' in a chapter title, but not in the corresponding
4467 node title, leading to invalid texinfo.
4469 * Fixed document encoding in texinfo template.
4470 Resolves Debian Bug #667816.
4472 * Markdown writer:
4474 + Don't force delimited code blocks to be flush left.
4475 Fixes bug with delimited code blocks inside lists etc.
4476 + Escape `<` and `$`.
4478 * LaTeX writer: Use `\hyperref[ident]{text}` for internal links.
4479 Previously we used `\href{\#ident}{text}`, which didn't work on
4480 all systems. Thanks to Dirk Laurie.
4482 * RST writer: Don't wrap link references. Closes #487.
4484 * Updated to use latest versions of blaze-html, mtl.
4487pandoc (1.9.2)
4489 * LaTeX reader:
4491 + Made `lstlisting` work as a proper verbatim environment.
4492 + Fixed bug parsing LaTeX tables with one column.
4494 * LaTeX writer:
4496 + Use `{}` around `ctable` caption, so that formatting can be used.
4497 + Don't require eurosym package unless document has a €.
4499 * LaTeX template: Added variables for `geometry`, `romanfont`,
4500 `sansfont`, `mathfont`, `mainfont` so users can more easily
4501 customize fonts.
4503 * PDF writer:
4505 + Run latex engine at least two times, to ensure
4506 that PDFs will have hyperlinked bookmarks.
4507 + Added PDF metadata (title,author) in LaTeX standalone + PDF output.
4509 * Texinfo writer: retain directories in image paths. (Peter Wang)
4511 * RST writer: Better handling of inline formatting, in accord
4512 with docutils' "inline markup recognition rules" (though we don't
4513 implement the unicode rules fully). Now `hi*there*hi` gets
4514 rendered properly as `hi\ *there*\ hi`, and unnecessary
4515 `\ ` are avoided around `:math:`, `:sub:`, `:sup:`.
4517 * RST reader:
4519 + Parse `\ ` as null, not escaped space.
4520 + Allow `` :math:`...` `` even when not followed by blank
4521 or `\`. This does not implement the complex rule docutils follows,
4522 but it should be good enough for most purposes.
4523 + Add support for the rST default-role directive. (Greg Maslov)
4525 * Text.Pandoc.Parsing: Added `stateRstDefaultRole` field to `ParserState`.
4526 (Greg Maslov)
4528 * Markdown reader: Properly handle citations nested in other inline
4529 elements.
4531 * Markdown writer: don't replace empty alt in image with "image".
4533 * DZSlides: Updated template.html and styles in default template.
4534 Removed bizarre CSS for `q` in dzslides template.
4536 * Avoid repeated `id` attribute in section and header in HTML slides.
4538 * README improvements: new instructions on internal links,
4539 removed misleading note on reST math.
4541 * Build system:
4543 + Fixed Windows installer so that dzslides works.
4544 + Removed stripansi.sh.
4545 + Added .travis.yml for Travis continuous integration support..
4546 + Fixed upper bound for zlib (Sergei Trofimovich).
4547 + Fixed upper bound for test-framework.
4548 + Updated haddocks for haddock-2.10 (Sergei Trofimovich).
4550pandoc (1.9.1.2)
4552 * Added `beamer+lhs` as output format.
4554 * Don't escape `<` in `<style>` tags with `--self-contained`.
4555 This fixes a bug which prevented highlighting from working
4556 when using `--self-contained`.
4558 * PDF: run latex engine three times if `--toc` specified.
4559 This fixes page numbers in the table of contents.
4561 * Docx writer: Added TableNormal style to tables.
4563 * LaTeX math environment fixes. `aligned` is now used instead of
4564 the nonexistent `aligned*`. `multline` instead of the nonexistent
4565 `multiline`.
4567 * LaTeX writer: Use `\textasciitilde` for literal `~`.
4569 * HTML writer: Don't escape contents of EQ tags with --gladtex.
4570 This fixes a regression from 1.8.
4572 * Use `<q>` tags for Quoted items for HTML5 output.
4573 The quote style can be changed by modifying the template
4574 or including a css file. A default quote style is included.
4576 * LaTeX reader: Fixed accents (\~{a}, `\c{c}`).
4577 Correctly handle \^{}. Support "minted" as a LaTeX verbatim block.
4579 * Updated LaTeX template for better language support.
4580 Use `polyglossia` instead of `babel` with xetex.
4581 Set `lang` as documentclass option.
4582 `\setmainlanguage` will use the last of a comma-separated
4583 list of languages. Thanks to François Gannaz.
4585 * Fixed default LaTeX template so `\euro` and `€` work. The
4586 `eurosym` package is needed if you are using pdflatex.
4588 * Fixed escaping of period in man writer (thanks to Michael Thompson).
4590 * Fixed list label positions in beamer.
4592 * Set `mainlang` variable in context writer.
4593 This parallels behavior of latex writer. `mainlang` is the last
4594 of a comma-separated list of languages in lang.
4596 * EPUB language metadat: convert e.g. `en_US` from locale to `en-US`.
4598 * Changed `-V` so that you can specify a key without a value.
4599 Such keys get the value `true`.
4601 * Fixed permissions on installed man pages - thanks Magnus Therning.
4603 * Windows installer: require XP or higher. The installer is
4604 now compiled on a Windows 7 machine, which fixes a problem
4605 using citation functions on Windows 7.
4607 * OSX package: Check for 64-bit Intel CPU before installing.
4609pandoc (1.9.1.1)
4611 * Better handling of raw latex environments in markdown. Now
4613 \begin{equation}
4614 a_1
4615 \end{equation}
4617 turns into a raw latex block as expected.
4619 * Improvements to LaTeX reader:
4621 + Skip options after block commands.
4622 + Correctly handle `{\\}` in braced.
4623 + Added a needed 'try'.
4624 + Citations: add `, ` to suffix if it doesn't start with space or
4625 punctuation. Otherwise we get no space between the year and the
4626 suffix in author-date styles.
4628 * Added two needed data files for S5. This fixes a problem with
4629 `pandoc -t s5 --self-contained`. Also removed `slides.min.js`,
4630 which was no longer being used.
4632 * Fixed some minor problems in `reference.docx`:
4633 name on "Date" style, `xCs` instead of `xIs`.
4635 * Fixed a problem creating docx files using a reference docx
4636 modified using Word. The problem seems to be that Word
4637 modifies `_rels/.rels`, changing the Type of the Relationship to
4638 `docProps/core.xml`. Pandoc now changes this back to the correct
4639 value if it has been altered, fixing the problem.
4641 * Fixed html5 template so it works properly with highlighting.
4643pandoc (1.9.1)
4645 * LaTeX reader:
4647 + Fixed regression in 1.9; properly handle escaped $ in latex math.
4648 + Put LaTeX verse environments in blockquotes.
4650 * Markdown reader:
4652 + Limit nesting of strong/emph. This avoids exponential lookahead
4653 in parasitic cases, like `a**a*a**a*a**a*a**a*a**a*a**a*a**a*a**`.
4654 + Improved attributes syntax (inn code blocks/spans):
4655 (1) Attributes can contain line breaks. (2) Values in key-value
4656 attributes can be surrounded by either double or single quotes, or
4657 left unquoted if they contain no spaces.
4659 * Don't wrap headers in markdown or RST writers.
4661 * Added `stateMaxNestingLevel` to `ParserState`.
4662 We set this to 6, so you can still have `Emph` inside `Emph`,
4663 just not indefinitely.
4665 * More efficient implementation of `nowrap` in `Text.Pandoc.Pretty`.
4667 * `Text.Pandoc.PDF`: Only run latex twice if `\tableofcontents`
4668 is present.
4670 * Require highlighting-kate >= 0.5.0.2, texmath >= 0.6.0.2.
4672pandoc (1.9.0.5)
4674 * Changed cabal file so that build-depends for the test program
4675 are not required unless the tests flag is used.
4677 * LaTeX writer: insert `{}` between adjacent hyphens so they don't
4678 form ligatures (dashes) in code spans.
4680pandoc (1.9.0.4)
4682 * Raised version bound on test-framework to avoid problems
4683 compiling tests on GHC 7.4.1.
4685 * LaTeX reader: Use raw LaTeX as fallback inline text for Cites,
4686 so citations don't just disappear unless you process with
4687 citeproc. Ignore `\bibliographystyle`, `\nocite`.
4689 * Simplified tex2pdf; it will always run latex twice to
4690 resolve table of contents and hyperrefs.
4692pandoc (1.9.0.3)
4694 * Require Cabal >= 1.10.
4695 * Tweaked cabal file to meet Cabal 1.10 requirements.
4697pandoc (1.9.0.2)
4699 * Allow build with json 0.4 or 0.5. Otherwise we can't build with
4700 ghc 6.12.
4702pandoc (1.9)
4704 [new features]
4706 * Added a Microsoft Word `docx` writer. The writer includes support
4707 for highlighted code and for math (which is converted from TeX to OMML,
4708 Office's native math markup language, using texmath's new OMML module).
4709 A new option `--reference-docx` allows the user to customize the
4710 styles.
4712 * Added an `asciidoc` writer (<http://www.methods.co.nz/asciidoc/>).
4714 * Better support for slide shows:
4716 + Added a `dzslides` writer. DZSlides is a lightweight HTML5/javascript
4717 slide show format due to Paul Rouget (<http://paulrouget.com/dzslides/>).
4719 + Added a LaTeX `beamer` writer. Beamer is a LaTeX package for creating
4720 slide presentations.
4722 + New, flexible rules for dividing documents into sections and slides
4723 (see the "Structuring the slide show" in the User's Guide). These
4724 are backward-compatible with the old rules, but they allow slide
4725 shows to be organized into sections and subsections containing
4726 multiple slides.
4728 + A new `--slide-level` option allows users to override defaults
4729 and select a slide level below the first header level with content.
4731 * A new `--self-contained` option produces HTML output that does not
4732 depend on an internet connection or the presence of any external
4733 files. Linked images, CSS, and javascript is downloaded (or fetched
4734 locally) and encoded in `data:` URIs. This is useful for making portable
4735 `HTML slide shows. The --offline` option has been deprecated and is now
4736 `treated as a synonym or --self-contained`.
4738 * Support for PDF output:
4740 + Removed the old `markdown2pdf`.
4741 + `pandoc` can now create PDFs (assuming you have latex and a set of
4742 appropriate packages installed): just specify an output file with the
4743 `.pdf` extension.
4744 + A new option `--latex-engine` allows you to specify `pdflatex`,
4745 `xelatex`, or `lualatex` as the processor.
4747 * Highlighting changes:
4749 + Syntax highlighting is now a standard feature; the `highlighting`
4750 flag is no longer needed when compiling.
4751 + A new `--no-highlight` option allows highlighting to be disabled.
4752 + Highlighting now works in `docx`, `latex`, and `epub`, as well as
4753 `html`, `html5`, `dzslides`, `s5`, and `slidy`.
4754 + A new `--highlight-style` option selects between various highlighting
4755 color themes.
4757 * Internal links to sections now work in ConTeXt and LaTeX as well as HTML.
4759 * LaTeX `\include` and `\usepackage` commands are now processed,
4760 provided the files are in the working directory.
4762 * EPUB improvements:
4764 + Internal and external links now work in EPUB.
4765 + Raw HTML is allowed.
4766 + New `--epub-embed-font` option.
4767 + Customizable templates for EPUB pages offer more control over
4768 formatting: `epub-page.html`, `epub-coverimage.html`,
4769 `epub-titlepage.html`.
4771 * `--mathml` now works with DocBook.
4773 * Added support for math in RST reader and writer. Inline math uses the
4774 `` :math:`...` `` construct. Display math uses
4776 .. math:: ...
4778 or if the math is multiline,
4780 .. math::
4782 ...
4784 These constructions are now supported now by `rst2latex.py`.
4786 * GitHub syntax for fenced code blocks is supported in pandoc's
4787 markdown. You can now write
4789 ```ruby
4790 x = 2
4791 ```
4793 instead of
4795 ~~~ {.ruby}
4796 x = 2
4797 ~~~~
4799 * Easier scripting: a new `toJsonFilter` function makes it easier to
4800 write Haskell scripts to manipulate the Pandoc AST.
4802 [behavior changes]
4804 * Fixed parsing of consecutive lists in markdown.
4805 Pandoc previously behaved like Markdown.pl for consecutive
4806 lists of different styles. Thus, the following would be parsed
4807 as a single ordered list, rather than an ordered list followed
4808 by an unordered list:
4810 1. one
4811 2. two
4813 - one
4814 - two
4816 This change makes pandoc behave more sensibly, parsing this as
4817 two lists. Any change in list type (ordered/unordered) or in
4818 list number style will trigger a new list. Thus, the following
4819 will also be parsed as two lists:
4821 1. one
4822 2. two
4824 a. one
4825 b. two
4827 Since we regard this as a bug in Markdown.pl, and not something
4828 anyone would ever rely on, we do not preserve the old behavior
4829 even when `--strict` is selected.
4831 * Dashes work differently with `--smart`: `---` is always em-dash,
4832 and `--` is always en-dash. Pandoc no longer tries to guess when
4833 `-` should be en-dash. *Note:* This may change how existing documents
4834 look when processed with pandoc. A new option, `--old-dashes`,
4835 is provided for legacy documents.
4837 * The markdown writer now uses setext headers for levels 1-2.
4838 The old behavior (ATX headers for all levels) can be restored
4839 using the new `--atx-headers` option.
4841 * Links are now allowed in markdown image captions. They are also
4842 allowed in links, but will appear there as regular text. So,
4844 [link with [link](/url)](/url)
4846 will turn into
4848 <p><a href="/url">link with link</a></p>
4850 * Improved handling of citations using `citeproc-hs-0.3.4`.
4851 Added `--citation-abbreviations` option.
4853 * Citation keys can no longer end with a punctuation character.
4854 This means that `@item1.` will be parsed as a citation with key
4855 'item1', followed by a period, instead of a citation with key
4856 'item1.', as was the case previously.
4858 * In HTML output, citations are now put in a span with class `citation`.
4860 * The markdown reader now recognizes DocBook block and inline tags.
4861 It was always possible to include raw DocBook tags in a markdown
4862 document, but now pandoc will be able to distinguish block from
4863 inline tags and behave accordingly. Thus, for example,
4865 <sidebar>
4866 hello
4867 </sidebar>
4869 will not be wrapped in `<para>` tags.
4871 * The LaTeX parser has been completely rewritten; it is now much more
4872 accurate, robust, and extensible. However, there are two important
4873 changes in how it treats unknown LaTeX. (1) Previously, unknown
4874 environments became BlockQuote elements; now, they are treated
4875 as "transparent", so `\begin{unknown}xyz\end{unknown}` is the
4876 same as `xyz`. (2) Previously, arguments of unknown commands
4877 were passed through with their braces; now the braces are stripped
4878 off.
4880 * `--smart` is no longer selected automatically with `man` output.
4882 * The deprecated `--xetex` option has been removed.
4884 * The `--html5`/`-5` option has been deprecated. Use `-t html5`
4885 instead. `html5` and `html5+lhs` are now separate output formats.
4887 * Single quotes are no longer escaped in HTML output. They do not
4888 need to be escaped outside of attributes.
4890 * Pandoc will no longer transform leading newlines in code
4891 blocks to `<br/>` tags.
4893 * The ODT writer now sizes images appropriately, using the image
4894 size and DPI information embedded in the image.
4896 * `--standalone` is once again implicitly for a non-text output format
4897 (ODT, EPUB). You can again do `pandoc test.txt -o test.odt`
4898 and get a standalone ODT file.
4900 * The Docbook writer now uses `<sect1>`, `<sect2>`, etc. instead of
4901 `<section>`.
4903 * The HTML writer now uses `<del>` for strikeout.
4905 * In HTML output with `--section-divs`, the classes `section` and
4906 `level[1,2,..6]` are put on the `div` tags so they can be styled.
4907 In HTML 5 output with `--section-divs`, the classes
4908 `level[1,2,...6]` are put on `section` tags.
4910 * EPUB writer changes:
4912 + The `lang` variable now sets the language
4913 in the metadata (if it is not set, we default to the locale).
4914 + EPUB: UTF-8 is used rather than decimal entities.
4916 * Added `titleslide` class to title slide in S5 template.
4918 * In HTML, EPUB, and docx metadata, the date is normalized into
4919 YYYY-MM-DD format if possible. (This is required for validation.)
4921 * Attributes in highlighted code blocks are now preserved in HTML.
4922 The container element will have the classes, id, and key-value attributes
4923 you specified in the delimited code block. Previously these were stripped
4924 off.
4926 * The reference backlink in the HTML writer no longer has a special
4927 `footnoteBacklink` class.
4929 * The HTML template has been split into `html` and `html5` templates.
4931 * Author and date are treated more consistently in HTML templates.
4932 Authors are now `<h2>`, date `<h3>`.
4934 * URLs are hyphenated in the ConTeXt writer (B. Scott Michel).
4936 * In `Text.Pandoc.Builder`, `+++` has been replaced by `<>`.
4938 [bug fixes]
4940 * Better support for combining characters and East Asian wide characters
4941 in markdown and reST.
4943 * Better handling of single quotes with `--smart`.
4944 Previously `D'oh l'*aide*` would be parsed with left and right single
4945 quotes instead of apostrophes. This kind of error is now fixed.
4947 * Highlighting: Use `reads` instead of `read` for better error handling.
4948 Fixes crash on `startNum="abc"`.
4950 * Added blank comment after directives in rst template.
4952 * Unescape entities in citation `refId`. The `refId`s coming
4953 from citeproc contain XML numeric entities, and these don't match with the
4954 citation keys parsed by pandoc. Solution is to unescape them.
4956 * HTML reader: Fixed bug parsing tables with both thead and tbody.
4958 * Markdown reader:
4960 + Better handling of escapes in link URLs and titles.
4961 + Fixed backslash escapes in reference links.
4962 + Fixed bug in table/hrule parsing, by checking that the top
4963 line of a table is not followed by a blank line. This bug caused
4964 slowdowns on some files with hrules and tables, as pandoc tried to
4965 interpret the hrules as the tops of multiline tables.
4966 + Fixed bug in code block attribute parser. Previously the ID attribute
4967 got lost if it didn't come first. Now attributes can come in any order.
4969 * RST reader: allow footnotes followed by newline without space characters.
4971 * LaTeX reader:
4973 + Ignore empty groups {}, { }.
4974 + LaTeX reader: Handle \@.
4975 + LaTeX reader: Don't crash on commands like `\itemsep`.
4976 + LaTeX reader: Better handling of letter environments.
4978 * RST writer: Fixed bug involving empty table cells. isSimple was being
4979 calculated in a way that assumed there were no non-empty cells.
4981 * ConTeXt writer:
4983 + Made `--toc` work even without `--number-sections`.
4984 + Escape # in link URLs.
4985 + Use buffering for footnotes containing code blocks.
4986 + Changed 'descr' to 'description', fixed alignment.
4988 * LaTeX writer:
4990 + Escape euro character.
4991 + Don't escape ~ inside href{...}.
4992 + Escape # in href URLs.
4993 + Improved detection of book classes. We now check the
4994 `documentclass` variable, and if that is not set, we look through
4995 the template itself. Also, we have added the KOMA classes scrreprt
4996 and scrbook. You can now make a book using
4997 `pandoc -V documentclass:book mybook.txt -o mybook.pdf`
4998 + LHS files now set the "listings" variable, so that the definition
4999 of the `code` environment will be included in the template.
5000 + Links are colored blue by default (this can be changed by
5001 modifying `hyperref` settings in the template).
5002 + Added `lang` variable to LaTeX template.
5004 * HTML writer:
5006 + Fixed bug in HTML template with html5 and mathml.
5007 + Don't use self-closing img, br, hr tags for HTML5.
5008 + Use `<section>` for footnotes if HTML5.
5009 + Update HTML templates to use Content-Style-Type meta tag.
5010 + Use separate variables for meta-date, meta-author.
5011 This makes footnotes work in author and date fields.
5012 + Use 'vertical-align:middle' in WebTeX math for better alignment.
5014 * S5/slidy writer: Make footnotes appear on separate slide at end.
5016 * MIME: Added 'layout-cache' to getMimeType. This ensures that the
5017 META-INF/manifest.xml for ODT files will have everything it needs, so
5018 that ODT files modified by LibreOffice can be used as `--reference-odt`.
5020 * `Text.Pandoc.Templates`: Return empty string for json template.
5022 * `Text.Pandoc.Biblio`:
5024 + Expand citations recursively inside nested inlines.
5025 + Treat `\160` as space when parsing locator and suffix.
5026 This fixes a bug with "p. 33" when `--smart` is used. Previously
5027 the whole "p. 33" would be included in the suffix, with no locator.
5028 + Put whole author-in-text citation in a Cite. Previously just the
5029 date and other info went in the Cite.
5030 + Don't add comma+space to prefix if it ends in punctuation.
5032 * Updated chicago-author-date.csl. The old version did not work
5033 properly for edited volumes with no author.
5035 * EPUB writer:
5037 + Add date to EPUB titlepage and metadata.
5038 + Added TOC identifier in EPUB page template.
5039 + Don't generate superfluous file `cover-image.jpg`.
5041 [under the hood improvements]
5043 * Modified `make_osx_package.sh` to use cabal-dev.
5044 Items are no longer installed as root.
5045 Man pages are zipped and given proper permissions.
5047 * Modified windows installer generater to use cabal-dev.
5049 * Setup: Making man pages now works with cabal-dev (at least on OSX). In
5050 Setup.hs we now invoke 'runghc' in a way that points it to the correct
5051 package databases, instead of always falling back to the default user
5052 package db.
5054 * Updated to work with GHC 7.4.1.
5056 * Removed dependency on old-time.
5058 * Removed dependency on dlist.
5060 * New slidy directory for "self-contained."
5062 * TeXMath writer: Use unicode thin spaces for thin spaces.
5064 * Markdown citations: don't strip off initial space in locator.
5066 [API changes]
5068 * Removed `Apostrophe`, `EmDash`, `EnDash`, and `Ellipses`
5069 from the native `Inline` type in pandoc-types. Now we use `Str`
5070 elements with unicode.
5072 * Improvements to `Text.Pandoc.Builder`:
5074 + `Inlines` and `Blocks` are now newtypes (not synonyms for
5075 sequences).
5076 + Instances are defined for `IsString`, `Show`, `Read`, `Monoid`,
5077 and a new `Listable` class, which allows these to be manipulated
5078 to some extent like lists. Monoid append includes automatic
5079 normalization.
5080 + `+++` has been replaced by `<>` (mappend).
5082 * Use blaze-html instead of xhtml for HTML generation.
5083 This changes the type of `writeHtml`.
5085 * `Text.Pandoc.Shared`:
5087 + Added `warn` and `err`.
5088 + Removed `unescapeURI`, modified `escapeURI`.
5089 (See under [behavior changes], above.)
5091 * Changes in URI escaping: Previously the readers escaped URIs by
5092 converting unicode characters to octets and then percent encoding.
5093 Now unicode characters are left as they are, and `escapeURI` only
5094 percent-encodes space characters. This gives more readable
5095 URIs, and works well with modern user agents. URIs are no longer unescaped
5096 at all on conversion to `markdown`, `asciidoc`, `rst`, `org`.
5098 * New module `Text.Pandoc.SelfContained`.
5100 * New module `Text.Pandoc.Docx`.
5102 * New module `Text.Pandoc.PDF`.
5104 * Added `writerBeamer` to `WriterOptions`.
5106 * Added `normalizeDate` to `Text.Pandoc.Shared`.
5108 * Added `splitStringWithIndices` in `Text.Pandoc.Shared`.
5109 This is like `splitWithIndices`, but it is sensitive to distinctions
5110 between wide, combining, and regular characters.
5112 * `Text.Pandoc.Pretty`:
5114 + Added `chomp` combinator.
5115 + Added `beforeNonBreak` combinator. This allows you to include
5116 something conditionally on it being before a nonblank.
5117 Used for RST inline math.
5118 + Added `charWidth` function. All characters marked W or F in the unicode
5119 spec EastAsianWidth.txt get width 2.
5120 + Added `realLength`, based on `charWidth`. `realLength` is now
5121 used in calculating offsets.
5123 * New module `Text.Pandoc.Slides`, for common functions for breaking
5124 a document into slides.
5126 * Removed `Text.Pandoc.S5`, which is no longer needed.
5128 * Removed `Text.Pandoc.CharacterReferences`. Moved
5129 `characterReference` to `Text.Pandoc.Parsing`.
5130 `decodeCharacterReferences` is replaced by `fromEntities`
5131 in `Text.Pandoc.XML`.
5133 * Added `Text.Pandoc.ImageSize`. This is intened for use
5134 in `docx` and `odt` writers, so the size and dpi of images
5135 can be calculated.
5137 * Removed `writerAscii` in `WriterOptions`.
5139 * Added `writerHighlight` to `WriterOptions`.
5141 * Added `DZSlides` to `HTMLSlideVariant`.
5143 * `writeEPUB` has a new argument for font files to embed.
5145 * Added `stateLastStrPos` to `ParserState`. This lets us keep track
5146 of whether we're parsing the position immediately after a regular
5147 (non-space, non-symbol) string, which is useful for distinguishing
5148 apostrophes from single quote starts.
5150 * `Text.Pandoc.Parsing`:
5152 + `escaped` now returns a `Char`.
5153 + Removed `charsInBalanced'`, added a character parser as
5154 a parameter of `charsInBalanced`. This is needed for
5155 proper handling of escapes, etc.
5156 + Added `withRaw`.
5158 * Added `toEntities` to `Text.Pandoc.XML`.
5160 * `Text.Pandoc.Readers.LaTeX`:
5162 + Export `handleIncludes`.
5163 + Export `rawLaTeXBlock` instead of `rawLaTeXEnvironment'`.
5165 * Added `ToJsonFilter` class and `toJsonFilter` function to
5166 `Text.Pandoc`, deprecating the old `jsonFilter` function.
5168 * `Text.Pandoc.Highlighting`:
5170 + Removed `highlightHtml`, `defaultHighlightingCss`.
5171 + Export `formatLaTeXInline`, `formatLaTeXBlock`, and `highlight`, plus
5172 key functions from highlighting-kate.
5173 + Changed types of highlighting function. `highlight` returns a
5174 `Maybe`, not an `Either`.
5176pandoc (1.8.2.1)
5178 * Relaxed cabal consntraints for test-framework (S. Trofimovich).
5180 * Relaxed cabal constraints for pandoc-types.
5182 * Adjusted Arbitrary instance to help avoid timeouts in tests.
5184 * Added `Tests.Writers.Markdown` to cabal file.
5186pandoc (1.8.2)
5188 * Added script to produce OS X package.
5190 * Made `templates` directory a git submodule. This should make it
5191 easier for people to revise their custom templates when the default
5192 templates change.
5194 * Changed template naming scheme: `FORMAT.template` -> `default.FORMAT`.
5195 **Note:** If you have existing templates in `~/.pandoc/templates`, you
5196 must rename them to conform to the new scheme!
5198 * Fixed smart quotes bug, now handling `'...hi'` properly.
5200 * RST reader:
5202 + Partial support for labeled footnotes.
5203 + Improved accuracy of `simpleReferenceName` parser.
5205 * HTML reader:
5207 + Substitute correct unicode characters for
5208 characters in the 128..159 range, which are often found even in
5209 HTML that purports to be UTF-8.
5211 * LaTeX reader: Handle `\subtitle` command (a subtitle is added
5212 to the title, after a colon and linebreak). Closes #280.
5214 * Leaner `reference.odt`.
5216 * Added unexported module `Text.Pandoc.MIME` for use in
5217 the ODT writer.
5219 * ODT writer: Construct `manifest.xml` based on archive contents.
5220 This fixes a bug in ODTs containing images. Recent versions of
5221 LibreOffice would reject these as corrupt, because `manifest.xml`
5222 did not contain a reference to the image files.
5224 * LaTeX writer:
5226 + Make verbatim environments flush to avoid spurious
5227 blank lines. Closes #277.
5228 + Use `\texttt` and escapes insntead of `\verb!...!`, which
5229 is too fragile (doesn't work in command arguments).
5230 + Use `\enquote{}` for quotes if the template includes
5231 the `csquotes` package. This provides better support for
5232 local quoting styles. (Thanks to Andreas Wagner for the idea.)
5234 * ConTeXt writer: Make `\starttyping`/`\stoptyping` flush with
5235 margin, preventing spurious blank lines.
5237 * Slidy writer:
5239 + Use non-minimized version of `slidy.css` with `--offline`
5240 option, so users can more easily edit it.
5241 + Also fixed a bug in the CSS that prevented proper centering
5242 of title (now reported and fixed upstream).
5244 * S5 writer:
5246 + Replaced `s5/default/slides.js.{comment,packed}` with
5247 new compressed `s5/default/slides.min.js`.
5248 + Use `data:` protocol to embed S5 CSS in `<link>` tags,
5249 when `--offline` is specified. Using inline CSS didn't
5250 work with Chrome or Safari. This fixes offline
5251 S5 on those browsers.
5253 * HTML writer: Removed English title on footnote backlinks.
5254 This is incongrous in non-English documents.
5256 * Docbook writer:
5258 + Use CALS tables. (Some older docbook software does not work
5259 well with XHTML tables.) Closes #77.
5260 + Use `programlisting` tags (instead of `screen`) for code blocks.
5262 * `markdown2pdf`:
5264 + Calls latex with `-halt-on-error -interaction nonstopmode` instead
5265 of `-interaction=batchmode`, which essentially just ignored errors,
5266 leading to bad results. Better to know when something is wrong.
5267 + Fixed issues with non-UTF-8 output of `pdflatex`.
5268 + Better error reporting.
5270 * `--mathjax` now takes an optional URL argument. If it is not
5271 provided, pandoc links directly to the (secure) mathjax CDN,
5272 as now recommended (thanks to dsanson).
5274 * Deprecated `--xetex` option in `pandoc`. It is no longer needed,
5275 since the LaTeX writer now produces a file that can be processed by
5276 `latex`, `pdflatex`, `lualatex`, or `xelatex`.
5278 * Introduced `--luatex` option to `markdown2pdf`. This causes `lualatex`
5279 to be used to create the PDF.
5281 * If a template specified with `--template` is not found, look for it
5282 in `datadir`. Also, if no extension is provided, supply one based
5283 on the writer. So now you can put your `special.latex` template in
5284 `~/.pandoc/templates`, and use it from any directory via
5285 `pandoc -t latex --template special`.
5287 * Default template improvements:
5289 + HTML: Display author and date after title.
5290 + HTML: Made table of contents more customizable. The container
5291 for the TOC is now in the template, so users can insert a header
5292 or other styling. (Thanks to Bruce D'Arcus for the suggestion.)
5293 + HTML, Slidy, S5: Enclose scripts in CDATA tags.
5294 + Slidy, S5: Added `s5-url` and `slidy-url` variables, instead of
5295 hard-coding. If you want to put your slidy files in the slidy
5296 subdirectory, for example, you can do
5297 `pandoc -t slidy -V slidy-url=slidy -s`.
5298 + LaTeX: Use `\and` to separate authors in LaTeX documents (reader
5299 & writer). Closes #279.
5300 + LaTeX: Use different `hyperref` options for `xetex`, fixing
5301 problems with unicode bookmarks (thanks to CircleCode).
5302 + LaTeX: Removed `ucs` package, use `utf8` rather than `utf8x`
5303 with `inputenc`. This covers fewer characters but is more
5304 robust with other packages, and `ucs` is unmaintained. Users
5305 who need better unicode support should use xelatex or lualatex.
5307pandoc (1.8.1.2)
5309 * Added `--epub-cover-image` option.
5311 * Documented `--biblatex` and `--natbib` options.
5313 * Allow `--section-divs` with slidy output. Resolves Issue #296.
5315 * Disallow notes within notes in reST and markdown.
5316 These previously caused infinite looping and stack overflows.
5317 For example:
5319 [^1]
5321 [^1]: See [^1]
5323 Note references are allowed in reST notes, so this isn't a full
5324 implementation of reST. That can come later. For now we need to
5325 prevent the stack overflows. Partially resolves Issue #297.
5327 * EPUB writer: Allow non-plain math methods.
5329 * Forbid ()s in citation item keys. Resolves Issue #304: problems with
5330 `(@item1; @item2)` because the final paren was being parsed as part of
5331 the item key.
5333 * Changed URI parser so it doesn't include trailing punctuation.
5334 So, in RST, `http://google.com.` should be parsed as a link followed by a
5335 period. The parser is smart enough to recognize balanced parentheses, as
5336 often occur in wikipedia links: `http://foo.bar/baz_(bam)`.
5338 * Markdown+lhs reader: Require space after inverse bird tracks, so that
5339 HTML tags can be used freely at the left margin of a markdown+lhs document.
5340 Thanks to Conal Elliot for the suggestion.
5342 * Markdown reader:
5344 + Improved emph/strong parsing; fixes bug found by Perry Wagle.
5345 + Fixed bug in footnote order (reported by CircleCode).
5347 * RST reader:
5348 + Fixed bug in in field lists with multi-line items at the
5349 end of the list.
5350 + Added parentheses to RST `specialChars`, so
5351 `(http://google.com)` will be parsed as a link in parens.
5352 Resolves Issue #291.
5353 + Allow `|` followed by newline in RST line block.
5355 * LaTeX reader:
5356 + Support `\dots`.
5357 + Gobble option & space after linebreak `\\[10pt]`.
5359 * Textile reader:
5360 + Make it possible to have colons after links. (qerub)
5361 + Make it possible to have colons after links. (Christoffer Sawicki)
5363 * HTML reader:
5364 + Skip spaces after `<b>`, `<emph>`, etc.
5365 + Handle tbody, thead in simple tables. Closes #274.
5366 + Implicit `Para`s instead of `Plains` in some contexts.
5368 * OpenDocument writer: Use special `First paragraph` style for
5369 first paragraph after most non-paragraph blocks. This allows users to
5370 specify e.g. that only paragraphs after the first paragraph of a block are
5371 to be indented. Thanks to Andrea Rossato for the patch. Closes #20.
5373 * LaTeX writer: use `deVerb` on table and picture captions.
5374 Otherwise LaTeX complains about `\verb` inside command argument.
5375 Thanks to bbanier for reporting the bug.
5377 * Markdown writer: Insert HTML comment btw list and indented code block.
5378 This prevents the code block from being interpreted as part of the list.
5380 * EPUB writer: Add a meta element specify the cover.
5381 Some EPUB e-readers, such as the Nook, require a meta element inside the
5382 OPF metadata block to ensure the cover image is properly displayed.
5383 (Kelsey Hightower)
5385 * HTML writer: Use embed tag for images with non-image extensions.
5386 (e.g. PDFs). Closes #264.
5388 * LaTeX writer: Improved tables.
5390 + More space between lines, top-align cells.
5391 + Use ctable package, which allows footnotes and
5392 provides additional options.
5393 + Made cell alignments work in multiline tables.
5394 + Closes #271, #272.
5396 * Un-URI-escape image filenames in LaTeX, ConTeXt, RTF, Texinfo.
5397 Also do this when copying image files into EPUBs and ODTs.
5398 Closes #263.
5400 * Changed to github issue tracker.
5402 * Added failing emph/strong markdown test case due to Perry Wagle.
5404 * Slidy improvements:
5405 + Updated to use Slidy2.
5406 + Fixed bug, unclosed div tag.
5407 + Added `duration` variable in template.
5408 Setting this activates the timer.
5409 + Use 'titlepage' instead of 'cover' for title div.
5411pandoc (1.8.1.1)
5413 * `markdown2pdf`: Removed some debugging lines accidentally included
5414 in the 1.8.1 release. With those lines, the temp directory is created
5415 in the working directory, and it is not deleted. This fix restores
5416 the original behavior.
5418pandoc (1.8.1)
5420 * Added `--ascii` option. Currently supported only in HTML writer,
5421 which it causes to use numerical entities instead of UTF-8.
5423 * EPUB writer: `--toc` now works to provide a table of contents
5424 at the beginning of each chapter.
5426 * LaTeX writer: Change figure defaults to `htbp`.
5427 This prevents "too many unprocessed floats." Resolves
5428 Issue #285.
5430 * `Text.Pandoc.UTF8`: Encode filenames even when using recent
5431 base.
5433 * `markdown2pdf`: Fixed filename encoding issues. With help from Paulo
5434 Tanimoto. Resolves Issue #286.
5436 * HTML writer: Put line breaks in section divs.
5438 * `Text.Pandoc.Shared`: Make `writerSectionDivs` default to False.
5440pandoc (1.8.0.3)
5442 * Fixed Source-repository stanza in cabal file.
5444pandoc (1.8.0.2)
5446 * HTML writer:
5448 + Stringify alt text instead of converting to HTML.
5449 + Break lines after block elements, not inside tags.
5450 HTML output now closely resembles that of tidy. Resolves Issue #134.
5452 * Markdown reader: Fixed bug in footnote block parser (pointed out
5453 by Jesse Rosenthal). The problem arose when the blank line
5454 at the end of a footnote block contained indenting spaces.
5456 * Shared: Improved 'normalize' function so it normalizes Spaces too.
5457 In normal form, Space elements only occur to separate two non-Space
5458 elements. So, we never have [Space], or [, ..., Space].
5460 * Tests:
5462 + Improved Arbitrary instance.
5463 + Added timeout for test instances.
5465 * README:
5467 + Added section on four-space rule for lists. Resolves Issue #283.
5468 + Clarified optional arguments on math options.
5470 * markdown2pdf: Fixed bug with output file extensions.
5471 Previously `markdown2pdf test.txt -o test.en.pdf` would produce
5472 `test.pdf`, not `test.en.pdf`. Thanks to Paolo Tanimoto for the fix.
5474pandoc (1.8.0.1)
5476 * Revised Interact.hs so that it works with the CPP macros
5477 in the UTF8 module.
5479 * Revised Setup.hs so that we don't call MakeManPage.hs unless
5480 the man pages are out of date.
5482pandoc (1.8)
5484 [new features]
5486 * Support for citations using Andrea Rossato's `citeproc-hs` 0.3.
5487 You can now write, for example,
5489 Water is wet [see @doe99, pp. 33-35; also @smith04, ch. 1].
5491 and, when you process your document using `pandoc`, specifying
5492 a citation style using `--csl` and a bibliography using `--bibliography`,
5493 the citation will be replaced by an appropriately formatted
5494 citation, and a list of works cited will be added to the end
5495 of the document.
5497 This means that you can switch effortlessly between different citation
5498 and bibliography styles, including footnote, numerical, and author-date
5499 formats. The bibliography can be in any of the following formats: MODS,
5500 BibTeX, BibLaTeX, RIS, EndNote, EndNote XML, ISI, MEDLINE, Copac, or JSON.
5501 See the README for further details.
5503 Citations are supported in the markdown reader, using a special
5504 syntax, and in the LaTeX reader, using natbib or biblatex syntax.
5505 (Thanks to Nathan Gass for the natbib and biblatex support.)
5507 * New `textile` reader and writer. Thanks to Paul Rivier for contributing
5508 the `textile` reader, an almost complete implementation of the textile
5509 syntax used by the ruby [RedCloth library](http://redcloth.org/textile).
5510 Resolves Issue #51.
5512 * New `org` writer, for Emacs Org-mode, contributed by Puneeth Chaganti.
5514 * New `json` reader and writer, for reading and writing a JSON
5515 representation of the native Pandoc AST. These are much faster
5516 than the `native` reader and writer, and should be used for
5517 serializing Pandoc to text. To convert between the JSON representation
5518 and native Pandoc, use `encodeJSON` and `decodeJSON` from
5519 `Text.JSON.Generic`.
5521 * A new `jsonFilter` function in `Text.Pandoc` makes it easy
5522 to write scripts that transform a JSON-encoded pandoc document.
5523 For example:
5525 -- removelinks.hs - removes links from document
5526 import Text.Pandoc
5527 main = interact $ jsonFilter $ bottomUp removeLink
5528 where removeLink (Link xs _) = Emph xs
5529 removeLink x = x
5531 To use this to remove links while translating markdown to LaTeX:
5533 pandoc -t json | runghc removelinks.hs | pandoc -f json -t latex
5535 * Attributes are now allowed in inline `Code` elements, for example:
5537 In this code, `ulist ! [theclass "special"] << elts`{.haskell} is...
5539 The attribute syntax is the same as for delimited code blocks.
5540 `Code` inline has an extra argument place for attributes, just like
5541 `CodeBlock`. Inline code will be highlighted in HTML output, if pandoc
5542 is compiled with highlighting support. Resolves Issue #119.
5544 * New `RawBlock` and `RawInline` elements (replacing `RawHtml`,
5545 `HtmlInline`, and `TeX`) provide lots of flexibility in writing
5546 scripts to transform Pandoc documents. Scripts can now change
5547 how each element is rendered in each output format.
5549 * You can now define LaTeX macros in markdown documents, and pandoc
5550 will apply them to TeX math. For example,
5552 \newcommand{\plus}[2]{#1 + #2}
5553 $\plus{3}{4}$
5555 yields `3+4`. Since the macros are applied in the reader, they
5556 will work in every output format, not just LaTeX.
5558 * LaTeX macros can also be used in LaTeX documents (both in math
5559 and in non-math contexts).
5561 * A new `--mathjax` option has been added for displaying
5562 math in HTML using MathJax. Resolves issue #259.
5564 * Footnotes are now supported in the RST reader. (Note, however,
5565 that unlike docutils, pandoc ignores the numeral or symbol used in
5566 the note; footnotes are put in an auto-numbered ordered list.)
5567 Resolves Issue #258.
5569 * A new `--normalize` option causes pandoc to normalize the AST
5570 before writing the document. This means that, for example,
5571 `*hi**there*` will be rendered as `<em>hithere</em>`
5572 instead of `<em>hi</em><em>there</em>`. This is not the default,
5573 because there is a significant performance penalty.
5575 * A new `--chapters` command-line option causes headers
5576 in DocBook, LaTeX, and ConTeXt to start with "chapter" (level one).
5577 Resolves Issue #265.
5579 * In DocBook output, `<chapter>` is now used for top-level
5580 headers if the template contains `<book>`. Resolves Issue #265.
5582 * A new `--listings` option in `pandoc` and `markdown2pdf` causes
5583 the LaTeX writer to use the listings package for code blocks.
5584 (Thanks to Josef Svennigsson for the pandoc patch, and Etienne
5585 Millon for the markdown2pdf patch.)
5587 * `markdown2pdf` now supports `--data-dir`.
5589 * URLs in autolinks now have class "url" so they can be styled.
5591 * Improved prettyprinting in most formats. Lines will be wrapped
5592 more evenly and duplicate blank lines avoided.
5594 * New `--columns` command-line option sets the column width for
5595 line wrapping and relative width calculations for tables.
5597 * Made `--smart` work in HTML, RST, and Textile readers, as well
5598 as markdown.
5600 * Added `--html5` option for HTML5 output.
5602 * Added support for listings package in LaTeX reader
5603 (Puneeth Chaganti).
5605 * Added support for simple tables in the LaTeX reader.
5607 * Added support for simple tables in the HTML reader.
5609 * Significant performance improvements in many readers and writers.
5611 [API and program changes]
5613 * Moved `Text.Pandoc.Definition` from the `pandoc` package to a new
5614 auxiliary package, `pandoc-types`. This will make it possible for other
5615 programs to supply output in Pandoc format, without depending on the whole
5616 pandoc package.
5618 * Added `Attr` field to `Code`.
5620 * Removed `RawHtml`, `HtmlInline`, and `TeX` elements; added generic
5621 `RawBlock` and `RawInline`.
5623 * Moved generic functions to `Text.Pandoc.Generic`. Deprecated
5624 `processWith`, replacing it with two functions, `bottomUp` and `topDown`.
5625 Removed previously deprecated functions `processPandoc` and `queryPandoc`.
5627 * Added `Text.Pandoc.Builder`, for building `Pandoc` structures.
5629 * `Text.Pandoc` now exports association lists `readers` and `writers`.
5631 * Added `Text.Pandoc.Readers.Native`, which exports `readNative`.
5632 `readNative` can now read full pandoc documents, block lists, blocks,
5633 inline lists, or inlines. It will interpret `Str "hi"`
5634 as if it were `Pandoc (Meta [] [] []) [Plain [Str "hi"]]`.
5635 This should make testing easier.
5637 * Removed deprecated `-C/--custom-header` option.
5638 Use `--template` instead.
5640 * `--biblio-file` has been replaced by `--bibliography`.
5641 `--biblio-format` has been removed; pandoc now guesses the format
5642 from the file extension (see README).
5644 * pandoc will treat an argument as a URI only if it has an
5645 `http(s)` scheme. Previously pandoc would treat some
5646 Windows pathnames beginning with `C:/` as URIs.
5648 * The `--sanitize-html` option and the `stateSanitize` field in
5649 `ParserState` have been removed. Sanitization is better done in the
5650 resulting HTML using `xss-sanitize`, which is based on pandoc's
5651 sanitization, but improved.
5653 * pandoc now adds a newline to the end of its output in fragment
5654 mode (= not `--standalone`).
5656 * Added support for `lang` in `html` tag in the HTML template,
5657 so you can do `pandoc -s -V lang=es`, for example.
5659 * `highlightHtml` in `Text.Pandoc.Highlighting` now takes
5660 a boolean argument that selects between "inline" and
5661 "block" HTML.
5663 * `Text.Pandoc.Writers.RTF` now exports `rtfEmbedImage`.
5664 Images are embedded in RTF output when possible (png, jpeg).
5665 Resolves Issue #275.
5667 * Added `Text.Pandoc.Pretty`. This is better suited for pandoc than the
5668 `pretty` package. Changed all writers that used
5669 `Text.PrettyPrint.HughesPJ` to use `Text.Pandoc.Pretty` instead.
5671 * Rewrote `writeNative` using the new prettyprinting module. It is
5672 now much faster. The output has been made more consistent and compressed.
5673 `writeNative` is also now sensitive to writerStandalone`, and will simply
5674 `print a block list if writerStandalone` is False.
5676 * Removed `Text.Pandoc.Blocks`. `Text.Pandoc.Pretty` allows you to define
5677 blocks and concatenate them, so a separate module is no longer needed.
5679 * `Text.Pandoc.Shared`:
5681 + Added `writerColumns`, `writerChapters`, and `writerHtml5` to
5682 `WriterOptions`.
5683 + Added `normalize`.
5684 + Removed unneeded prettyprinting functions:
5685 `wrapped`, `wrapIfNeeded`, `wrappedTeX`, `wrapTeXIfNeeded`, `hang'`,
5686 `BlockWrapper`, `wrappedBlocksToDoc`.
5687 + Made `splitBy` take a test instead of an element.
5688 + Added `findDataFile`, refactored `readDataFile`.
5689 + Added `stringify`. Rewrote `inlineListToIdentifier` using `stringify`.
5690 + Fixed `inlineListToIdentifier` to treat '\160' as ' '.
5692 * `Text.Pandoc.Readers.HTML`:
5694 + Removed `rawHtmlBlock`, `anyHtmlBlockTag`, `anyHtmlInlineTag`,
5695 `anyHtmlTag`, `anyHtmlEndTag`, `htmlEndTag`, `extractTagType`,
5696 `htmlBlockElement`, `htmlComment`
5697 + Added `htmlTag`, `htmlInBalanced`, `isInlineTag`, `isBlockTag`,
5698 `isTextTag`
5700 * Moved `smartPunctuation` from `Text.Pandoc.Readers.Markdown`
5701 to `Text.Pandoc.Readers.Parsing`, and parameterized it with
5702 an inline parser.
5704 * Added `nonspaceChar` to `Text.Pandoc.Parsing`.
5706 * Ellipses are no longer allowed to contain spaces.
5707 Previously we allowed '. . .', ' . . . ', etc. This caused
5708 too many complications, and removed author's flexibility in
5709 combining ellipses with spaces and periods.
5711 * Allow linebreaks in URLs (treat as spaces). Also, a string of
5712 consecutive spaces or tabs is now parsed as a single space. If you have
5713 multiple spaces in your URL, use `%20%20`.
5715 * `Text.Pandoc.Parsing`:
5717 + Removed `refsMatch`.
5718 + Hid `Key` constructor.
5719 + Removed custom `Ord` and `Eq` instances for `Key`.
5720 + Added `toKey` and `fromKey` to convert between `Key` and `[Inline]`.
5721 + Generalized type on `readWith`.
5723 * Small change in calculation of relative widths of table columns.
5724 If the size of the header > the specified column width, use
5725 the header size as 100% for purposes of calculating
5726 relative widths of columns.
5728 * Markdown writer now uses some pandoc-specific features when `--strict`
5729 is not specified: `\` newline is used for a hard linebreak instead of
5730 two spaces then a newline. And delimited code blocks are used when
5731 there are attributes.
5733 * HTML writer: improved gladTeX output by setting ENV appropriately
5734 for display or inline math (Jonathan Daugherty).
5736 * LaTeX writer: Use `\paragraph`, `\subparagraph` for level 4,5 headers.
5738 * LaTeX reader:
5740 + `\label{foo}` and `\ref{foo}` now become `{foo}` instead of `(foo)`.
5741 + `\index{}` commands are skipped.
5743 * Added `fontsize` variable to default LaTeX template.
5744 This makes it easy to set the font size using `markdown2pdf`:
5745 `markdown2pdf -V fontsize=12pt input.txt`.
5747 * Fixed problem with strikeout in LaTeX headers when using
5748 hyperref, by adding a command to the default LaTeX template
5749 that disables `\sout` inside pdf strings. Thanks to Joost Kremers
5750 for the fix.
5752 * The `COLUMNS` environment variable no longer has any effect.
5754 [under-the-hood improvements]
5756 * Pandoc now compiles with GHC 7. (This alone leads to a
5757 significant performance improvement, 15-20%.)
5759 * Completely rewrote HTML reader using tagsoup as a lexer. The
5760 new reader is faster and more accurate. Unlike the
5761 old reader, it does not get bogged down on some input
5762 (Issues #277, 255). And it handles namespaces in tags
5763 (Issue #274).
5765 * Replaced `escapeStringAsXML` with a faster version.
5767 * Rewrote `spaceChar` and some other parsers in Text.Pandoc.Parsing
5768 for a significant performance boost.
5770 * Improved performance of all readers by rewriting parsers.
5772 * Simplified Text.Pandoc.CharacterReferences by using
5773 entity lookup functions from TagSoup.
5775 * `Text.Pandoc.UTF8` now uses the unicode-aware IO functions
5776 from `System.IO` if base >= 4.2. This gives support for
5777 windows line endings on windows.
5779 * Remove duplications in documentation by generating the
5780 pandoc man page from README, using `MakeManPage.hs`.
5782 * README now includes a full description of markdown syntax,
5783 including non-pandoc-specific parts. A new `pandoc_markdown`
5784 man page is extracted from this, so you can look up markdown
5785 syntax by doing `man pandoc_markdown`.
5787 * Completely revised test framework (with help from Nathan Gass).
5788 The new test framework is built when the `tests` Cabal flag is set. It
5789 includes the old integration tests, but also some new unit and quickcheck
5790 tests. Test output has been much improved, and you can now specify a glob
5791 pattern after `cabal test` to indicate which tests should be run;
5792 for example `cabal test citations` will run all the citation tests.
5794 * Added a shell script, `stripansi.sh`, for filtering ANSI control
5795 sequences from test output: `cabal test | ./stripansi.sh > test.log`.
5797 * Added `Interact.hs` to make it easier to use ghci while developing.
5798 `Interact.hs` loads `ghci` from the `src` directory, specifying
5799 all the options needed to load pandoc modules (including
5800 specific package dependencies, which it gets by parsing
5801 dist/setup-config).
5803 * Added `Benchmark.hs`, testing all readers + writers using criterion.
5805 * Added `stats.sh`, to make it easier to collect and archive
5806 benchmark and lines-of-code stats.
5808 * Added upper bounds to all cabal dependencies.
5810 * Include man pages in extra-source-files. This allows users to
5811 install pandoc from the tarball without needing to build the man
5812 pages.
5814 [bug fixes]
5816 * Filenames are encoded as UTF8. Resolves Issue #252.
5818 * Handle curly quotes better in `--smart` mode. Previously, curly quotes
5819 were just parsed literally, leading to problems in some output formats.
5820 Now they are parsed as `Quoted` inlines, if `--smart` is specified.
5821 Resolves Issue #270.
5823 * Text.Pandoc.Parsing: Fixed bug in grid table parser.
5824 Spaces at end of line were not being stripped properly,
5825 resulting in unintended LineBreaks.
5827 * Markdown reader:
5829 + Allow HTML comments as inline elements in markdown.
5830 So, `aaa <!-- comment --> bbb` can be a single paragraph.
5831 + Fixed superscripts with links: `^[link](/foo)^` gets
5832 recognized as a superscripted link, not an inline note followed by
5833 garbage.
5834 + Fixed regression, making markdown reference keys case-insensitive again.
5835 Resolves Issue #272.
5836 + Properly handle abbreviations (like `Mr.`) at the end of a line.
5837 + Better handling of intraword underscores, avoiding exponential
5838 slowdowns in some cases. Resolves Issue #182.
5839 + Fixed bug in alignments in tables with blank rows in the header.
5841 * RST reader:
5843 + Field lists now allow spaces in field names, and
5844 block content in field values. (Thanks to Lachlan Musicman
5845 for pointing out the bug.)
5846 + Definition list items are now always `Para` instead of
5847 `Plain`, matching behavior of `rst2xml.py`.
5848 + In image blocks, the description is parsed properly and
5849 used for the alt attribute, not also the title.
5850 + Skip blank lines at beginning of file. Resolves
5851 Debian #611328.
5853 * LaTeX reader:
5855 + Improved parsing of preamble.
5856 Previously you'd get unexpected behavior on a document that
5857 contained `\begin{document}` in, say, a verbatim block.
5858 + Allow spaces between `\begin` or `\end` and `{`.
5859 + Support `\L` and `\l`.
5860 + Skip comments inside paragraphs.
5862 * LaTeX writer:
5864 + Escape strings in `\href{..}`.
5865 + In nonsimple tables, put cells in `\parbox`.
5867 * OpenDocument writer: don't print raw TeX.
5869 * Markdown writer:
5871 + Fixed bug in `Image`. URI was getting unescaped twice!
5872 + Avoid printing extra blank lines at the end if there are
5873 no notes or references.
5875 * LaTeX and ConTeXt: Escape `[` and `]` as `{[}` and `{]}`.
5876 This avoids unwanted interpretation as an optional argument.
5878 * ConTeXt writer: Fixed problem with inline code. Previously
5879 `}` would be rendered `\type{}}`. Now we check the string for '}' and '{'.
5880 If it contains neither, use `\type{}`; otherwise use `\mono{}`
5881 with an escaped version of the string.
5883 * `:` now allowed in HTML tags. Resolves Issue #274.
5885pandoc (1.6)
5887 [ John MacFarlane ]
5889 * New EPUB and HTML Slidy writers. (Issue #122)
5891 - EPUB is a standard ebook format, used in Apple's iBooks for
5892 the iPad and iPhone, Barnes and Noble's nook reader, the Sony
5893 reader, and many other devices.
5894 - Slidy, like S5, is a system for producing HTML+javascript slide
5895 shows.
5897 * All input is assumed to be UTF-8, no matter what the locale and ghc
5898 version, and all output is UTF-8. This reverts to pre-1.5 behavior.
5899 Also, a BOM, if present, is stripped from the input.
5901 * Markdown now supports grid tables, whose cells can contain
5902 arbitrary block elements. (Issue #43)
5904 * Sequentially numbered example lists in markdown with `@` marker.
5906 * Markdown table captions can begin with a bare colon and no longer need
5907 to include the English word "table." Also, a caption can now occur
5908 either before or after the table. (Issue #227)
5910 * New command-line options:
5912 - `--epub-stylesheet` allows you to specify a CSS file that will
5913 be used to style your ebook.
5914 - `--epub-metadata` allows you to specify metadata for the ebook.
5915 - `--offline` causes the generated HTML slideshow to include all
5916 needed scripts and stylesheets.
5917 - `--webtex` causes TeX math to be converted to images using the
5918 Google Charts API (unless a different URL is specified).
5919 - `--section-divs` causes div tags to be added around each section
5920 in an HTML document. (Issue #230, 239)
5922 * Default behavior of S5 writer in standalone mode has changed:
5923 previously, it would include all needed scripts and stylesheets
5924 in the generated HTML; now, only links are included unless
5925 the `--offline` option is used.
5927 * Default behavior of HTML writer has changed. Between 1.2 and 1.5,
5928 pandoc would enclose sections in div tags with identifiers on the
5929 div tags, so that the sections can be manipulated in javascript.
5930 This caused undesirable interactions with raw HTML div tags. So,
5931 starting with 1.6, the default is to put the identifiers directly
5932 on the header tags, and not to include the divs. The `--section-divs`
5933 option selects the 1.2-1.5 behavior.
5935 * API changes:
5937 - `HTMLMathMethod`: Added `WebTeX`, removed `MimeTeX`.
5938 - `WriterOptions`: Added `writerUserDataDir`, `writerSourceDirectory`,
5939 `writerEPUBMetadata` fields. Removed `writerIncludeBefore`,
5940 `writerIncludeAfter`.
5941 - Added `headerShift` to `Text.Pandoc.Shared`.
5942 - Moved parsing code and `ParserState` from `Text.Pandoc.Shared`
5943 to a new module, `Text.Pandoc.Parsing`.
5944 - Added `stateHasChapters` to `ParserState`.
5945 - Added `HTMLSlideVariant`.
5946 - Made `KeyTable` a map instead of an association list.
5947 - Added accessors for `Meta` fields (`docTitle`, `docAuthors`,
5948 `docDate`).
5949 - `Pandoc`, `Meta`, `Inline`, and `Block` have been given `Ord`
5950 instances.
5951 - Reference keys now have a type of their own (`Key`), with its
5952 own `Ord` instance for case-insensitive comparison.
5953 - Added `Text.Pandoc.Writers.EPUB`.
5954 - Added `Text.Pandoc.UUID`.
5955 - Removed `Text.Pandoc.ODT`, added `Text.Pandoc.Writers.ODT`.
5956 Removed `saveOpenDocumentAsODT`, added `writeODT`.
5957 - Added `Text.Pandoc.Writers.Native` and `writeNative`.
5958 Removed `prettyPandoc`.
5959 - Added `Text.Pandoc.UTF8` for portable UTF8 string IO.
5960 - Removed `Text.Pandoc.Writers.S5` and the `writeS5` function.
5961 Moved `s5Includes` to a new module, `Text.Pandoc.S5`.
5962 To write S5, you now use `writeHtml` with `writerSlideVariant`
5963 set to `S5Slides` or `SlidySlides`.
5965 * Template changes. If you use custom templates, please update them,
5966 particularly if you use syntax highlighting with pandoc. The old HTML
5967 templates hardcoded highlighting CSS that will no longer work with
5968 the most recent version of highlighting-kate.
5970 - HTML template: avoid empty meta tag if no date.
5971 - HTML template: Use default highlighting CSS from highlighting-kate
5972 instead of hard-coding the CSS into the template.
5973 - HTML template: insert-before text goes before the title, and
5974 immediately after the <body> tag, as documented. (Issue #241)
5975 - Added slidy and s5 templates.
5976 - Added amssymb to preamble of latex template. (github Issue 1)
5978 * Removed excess newlines at the end of output. Note: because output
5979 will not contain an extra newline, you may need to make adjustments
5980 if you are inserting pandoc's output into a template.
5982 * In S5 and slidy, horizontal rules now cause a new slide, so you
5983 are no longer limited to one slide per section.
5985 * Improved handling of code in man writer. Inline code is now monospace,
5986 not bold, and code blocks now use .nf (no fill) and .IP (indented para).
5988 * HTML reader parses `<tt>` as Code. (Issue #247)
5990 * html+lhs output now contains bird tracks, even when compiled without
5991 highlighting support. (Issue #242)
5993 * Colons are now no longer allowed in autogenerated XML/HTML identifiers,
5994 since they have a special meaning in XML.
5996 * Code improvements in ODT writer. Remote images are now replaced with
5997 their alt text rather than a broken link.
5999 * LaTeX reader improvements:
6001 - Made latex `\section`, `\chapter` parsers more forgiving of
6002 whitespace.
6003 - Parse `\chapter{}` in latex.
6004 - Changed `rawLaTeXInline` to accept `\section`, `\begin`, etc.
6005 - Use new `rawLaTeXInline'` in LaTeX reader, and export `rawLaTeXInline`
6006 for use in markdown reader.
6007 - Fixes bug wherein `\section{foo}` was not recognized as raw TeX
6008 in markdown document.
6010 * LaTeX writer: images are automatically shrunk if they would extend
6011 beyond the page margin.
6013 * Plain, markdown, RST writers now use unicode for smart punctuation.
6015 * Man writer converts math to unicode when possible, as in other writers.
6017 * `markdown2pdf` can now recognize citeproc options.
6019 * Command-line arguments are converted to UTF-8. (Issue #234)
6021 * `Text.Pandoc.TeXMath` has been rewritten to use texmath's parser.
6022 This allows it to handle a wider range of formulas. Also, if a formula
6023 cannot be converted, it is left in raw TeX; formulas are no longer
6024 partially converted.
6026 * Unicode curly quotes are left alone when parsing smart quotes. (Issue
6027 #143)
6029 * Cabal file changes:
6031 - Removed parsec < 3 restriction.
6032 - Added 'threaded' flag for architectures where GHC lacks a threaded
6033 runtime.
6034 - Use 'threaded' only for markdown2pdf; it is not needed for pandoc.
6035 - Require highlighting-kate 0.2.7.
6037 * Use explicit imports from `Data.Generics`. Otherwise we have a
6038 conflict with the 'empty' symbol, introduced in syb >= 0.2. (Issue #237)
6040 * New data files: slidy/slidy.min.js, slidy/slidy.min.css, epub.css.
6042pandoc (1.5.1.1)
6044 [ John MacFarlane ]
6046 * Fixed uniqueIdent in Shared so that header identifiers work as
6047 advertized in the README and are are valid XHTML names.
6049pandoc (1.5.1)
6051 [ John MacFarlane ]
6053 * Fixed treatment of unicode characters in URIs.
6054 + Shared now exports escapeURI and unescapeURI. These handle
6055 UTF8 encoding and decoding as well as URI escaping/unescaping.
6056 + Shared: uri and emailAddress now return a pair of the original
6057 parsed text and the escaped URI (in the latter case, with
6058 the mailto: prefix).
6059 + HTML reader: unsanitaryURI has been modified to allow unicode
6060 high characters in a URI.
6061 + Readers: All link and image URIs are now escaped using
6062 escapeURI.
6063 + Markdown and RST writers: unescapeURI is used so that URIs
6064 in these formats are human-readable.
6066 * Setup.hs: Don't assume that the build directory is "dist".
6067 Instead, get it from localBuildInfo.
6069 * OpenDocument writer: Use a Map for stTextStyleAttr.
6070 This avoids duplicates (and invalid xml). Resolves Issue #222.
6072pandoc (1.5.0.1)
6074 [ John MacFarlane ]
6076 * HTML writer: Fixed error in math writer (with MathML option)
6077 that caused an infinite loop for unparsable MathML.
6079pandoc (1.5)
6081 [ John MacFarlane ]
6083 * Added --mathml option. When this is selected, pandoc will convert
6084 TeX math into MathML.
6085 + Added data/MathMLinHTML.js, which is included when no URL is
6086 provided for --mathml. This allows MathML to be displayed (in
6087 better browsers) as text/html.
6088 + Removed Text.Pandoc.LaTeXMathML. The module was no longer
6089 necessary; it was replaced by two lines in pandoc.hs.
6090 + Replaced LaTeXMathML.js.commend and LaTeXMathML.js.packed with a
6091 single combined file, LaTeXMathML.js.
6093 * Added --data-dir option.
6094 This specifies a user data directory. If not specified, will default
6095 to ~/.pandoc on unix or Application Data\pandoc on Windows.
6096 Files placed in the user data directory will override system default
6097 data files.
6099 * Added Maybe datadir parameter to readDataFile, saveOpenDocumentAsODT,
6100 latexMathMLScript, s5HeaderIncludes, and getDefaultTemplate. If
6101 Nothing, no user directory is searched for an override.
6103 * Added 'plain' output format. This is similar to markdown, but
6104 removes links, pictures, inline formatting, and most anything that
6105 looks even vaguely markupish. The function writePlain is exported by
6106 Text.Pandoc.Writers.Markdown, with which it shares most of its code.
6108 * Allow multi-line titles and authors in meta block.
6109 Titles may span multiple lines, provided continuation lines
6110 begin with a space character. Separate authors may be put on
6111 multiple lines, provided each line after the first begins with
6112 a space character. Each author must fit on one line. Multiple
6113 authors on a single line may still be separated by a semicolon.
6114 Based on a patch by Justin Bogner.
6116 * When given an absolute URI as parameter, pandoc will try to fetch
6117 the content via HTTP. So you can do:
6118 'pandoc -r html -w markdown http://www.fsf.org'
6119 Adds dependency on HTTP.
6121 * Made HTML reader much more forgiving.
6122 + Incorporated idea (from HXT) that an element can be closed
6123 by an open tag for another element.
6124 + Javascript is partially parsed to make sure that a <script>
6125 section is not closed by a </script> in a comment or string.
6126 + More lenient non-quoted attribute values.
6127 Now we accept anything but a space character, quote, or <>.
6128 This helps in parsing e.g. www.google.com!
6129 + Bare & signs are now parsed as a string. This is a common
6130 HTML mistake.
6131 + Skip a bare < in malformed HTML.
6133 * Removed html2markdown and hsmarkdown.
6134 + html2markdown is no longer needed, since you can now pass URI
6135 arguments to pandoc and directly convert web pages. (Note,
6136 however, that pandoc assumes the pages are UTF8. html2markdown
6137 made an attempt to guess the encoding and convert them.)
6138 + hsmarkdown is pointless -- a large executable that could be
6139 replaced by 'pandoc --strict'.
6141 * In most writers, an image in a paragraph by itself is now rendered
6142 as a figure, with the alt text as the caption. (Texinfo, HTML, RST,
6143 MediaWiki, Docbook, LaTeX, ConTeXt, HTML.) Other images are
6144 rendered inline.
6146 * Depend on extensible-exceptions. This allows pandoc to be compiled
6147 on GHC 6.8.
6149 * Added --base-header-level option. For example, --base-header-level=2
6150 will change level 1 headers to level 2, level 2 to level 3, etc.
6151 Closes Debian #563416.
6153 * Incomplete support for RST tables (simple and grid).
6154 Thanks to Eric Kow. Colspans and rowspans not yet supported.
6156 * Added accessors (docTitle, docAuthors, docDate) to Meta type.
6158 * MediaWiki writer: format links with relative URLs as wikilinks.
6159 The new rule: If the link target is an absolute URL, an external
6160 link is created. Otherwise, a wikilink is created.
6162 * Text.Pandoc.Shared: Export uniqueIdent, and don't allow tilde in
6163 identifier. Note: This may break links to sections that involve
6164 tildes.
6166 * Markdown(+lhs) reader: handle "inverse bird tracks."
6167 Inverse bird tracks (<) are used for haskell example code that is not
6168 part of the literate Haskell program. Resolves Issue #211.
6170 * LaTeX reader:
6171 + Recognize '\ ' (interword space).
6172 + Recognize nonbreaking space '~'.
6173 + Ignore \section, \pdfannot, \pdfstringdef. Ignore alt title in
6174 section headers. Don't treat \section as inline LaTeX.
6175 Resolves Issue #202.
6176 + LaTeX reader: allow any special character to be escaped.
6177 Resolves Issue #221.
6178 + LaTeX reader: treat \paragraph and \subparagraph as level 4, 5
6179 headers. Resolves Issue #207.
6181 * Use template variables for include-before/after.
6182 + These options now imply -s; previously they worked also in fragment
6183 mode.
6184 + Users can now adjust position of include-before and include-after
6185 text in the templates.
6186 + Default position of include-before moved back (as it was before 1.4)
6187 before table of contents.
6188 + Resolves Issue #217.
6190 * Don't print an empty table header: (all writers).
6191 Resolves Issue #210.
6193 * HTML, Docbook writer: Use tbody, thead, and cols in tables.
6195 * HTML writer: Don't include TOC div if table of contents is empty.
6197 * Markdown writer: Fixed citations.
6198 Previously the markdown writer printed raw citation codes, e.g.
6199 [geach1970], rather than the expanded citations provided by
6200 citeproc, e.g. (Geach 1970). Now it prints the expanded citations.
6201 This means that the document produced can be processed as a markdown
6202 document without citeproc. Thanks to dsanson for reporting, and
6203 Andrea Rossato for the patch.
6205 * Improved and simplified title block in context template.
6206 Previously it caused an error if there was no title.
6207 This method should also be easier for users to customize.
6209 * Markdown reader:
6210 + Treat p., pp., sec., ch., as abbreviations in smart mode.
6211 + Disallow blank lines in inline code span.
6212 + Allow footnotes to be indented < 4 spaces.
6213 This fixes a regression. A test case has been added.
6214 + Escape spaces in URLs as %20. Previously they were incorrectly
6215 escaped as +, which is appropriate only for the query part of
6216 a URL. Resolves Issue #220.
6217 + Require two spaces after capital letter + period for list item.
6218 Otherwise "E. coli" starts a list. This might change the semantics
6219 of some existing documents, since previously the two-space
6220 requirement was only enforced when the second word started
6221 with a capital letter. But it is consistent with the existing
6222 documentation and follows the principle of least surprise.
6223 Resolves Issue #212.
6225 * LaTeX template: redefine labelwidth when using enumerate package.
6226 Otherwise the list labels (numbers) often extend past the left
6227 margin, which looks bad.
6229 * Mediawiki writer: Don't print a "== Notes ==" header before
6230 references. This is too English-centric. Writers can provide their
6231 own header at the end of the document.
6233 * Promoted mediawiki headers. '= head =' is now level 1, '== head =='
6234 level 2, etc. This seems to be correct; it's only by convention
6235 that wikipedia articles have level 2 headers at most.
6236 Patch due to Eric Kow.
6238 * RunTests.hs: Set LANG to a UTF-8 locale. Use 'pandoc --data-dir=' so
6239 data files don't need to have been installed. This removes the need to
6240 set HOME.
6242 * HTML reader:
6243 + Handle spaces before <html>. Resolves Issue #216.
6244 + Be forgiving in parsing a bare list within a list.
6245 The following is not valid xhtml, but the intent is clear:
6246 <ol>
6247 <li>one</li>
6248 <ol><li>sub</li></ol>
6249 <li>two</li>
6250 </ol>
6251 We'll treat the <ol> as if it's in a <li>. Resolves Issue #215.
6253 * Updated INSTALL instructions. cabal method is now promoted.
6255 * Updated markdown2pdf man page. It no longer says all pandoc options
6256 are accepted.
6258 * README/man pages: Removed advice to pipe through tidy before HTML
6259 reader. This is obsolete, now that we have a forgiving HTML parser.
6261 * LaTeX writer: set numbersections template variable, so
6262 the section numbering options work again.
6264 * Removed obsolete Makefile.
6266 * Website: renamed index.txt.in -> index.txt.
6268 * New batch file to make-windows-installer.
6269 + Removed old Makefile.windows
6270 + Added make-windows-installer.bat
6271 + Modified default installer name in pandoc-setup.iss
6273 * Removed freebsd and macports directories.
6274 They are no longer up to date.
6276 * Setup.hs:
6277 + Made man page building sensitive to build verbosity.
6278 + Improved detection of highlighting support in test hook.
6279 + Install wrapper scripts into cabal bin directory.
6280 + Also simplified installManpages.
6281 + Setup.hs: install manpages to mandir. Code borrowed from darcs.
6283 * Changed default of writerXeTeX to False.
6285 * HTML writer: don't include empty UL if --toc but no sections.
6286 Resolves Issue #199.
6288 * LaTeX writer:
6290 + If book, report, or memoir documentclass, use \chapter{}
6291 for first-level headers. Otherwise use \section{}.
6292 + Removed stLink, link template variable. Reason: we now always
6293 include hyperref in the template.
6295 * LaTeX template:
6297 + Only show \author if there are some.
6298 + Always include hyperref package. It is used not just for links but
6299 for toc, section heading bookmarks, footnotes, etc. Also added
6300 unicode=true on hyperref options.
6302 * markdown2pdf: always do at least two runs. hyperref bookmarks
6303 require this.
6305 * cabal file: Removed unneeded dependency on template-haskell.
6307 * Windows installer - fixed bug in data file locations.
6308 Resolves Issue #197.
6310 * Deprecated --custom-header in documentation.
6311 Removed old "Custom Headers" section in README.
6313pandoc (1.4)
6315 [ John MacFarlane ]
6317 * Pandoc will now compile with either GHC 6.10 or 6.12.
6318 + Don't use System.IO.UTF8 when compiling with 6.12
6319 + Use -fno-warn-unused-do-bind option when compiling with 6.12
6321 * Replaced old headers with templates. Now users have much more
6322 control over the way documents appear in --standalone mode,
6323 and writer code is simplified. Resolves Issues #59, 147.
6324 Every effort has been made to retain backwards compatibilty.
6325 So, the --custom-header option should still work as before.
6327 + Added Text.Pandoc.Templates. This provides functions for
6328 retrieving default templates and for rendering templates.
6329 + System templates (in the pandoc data directory) can be
6330 overridden by user templates in $HOME/.pandoc/templates.
6331 + Removed Text.Pandoc.DefaultHeaders.
6332 + Removed data/headers directory.
6333 + Added templates directory.
6334 + Added writerTemplate and writerVariables fields to WriterOptions.
6335 + Removed writerTitlePrefix, writerHeader fields from WriterOptions.
6336 + Changed --print-default-header to --print-default-template.
6337 + Added --template option.
6338 + Added -V/--variable option to set custom template variables.
6340 * Pandoc no longer requires Template Haskell. Resolves Issue #186.
6342 + Removed need for TH in ODT module. Instead get reference.odt from
6343 data file at run time.
6344 + Removed TH dependency from S5 module. S5 module now exports
6345 s5HeaderIncludes, which pandoc.hs includes if writer is s5 and
6346 standalone.
6347 + Refactored LaTeXMathML not to use TH.
6349 * Meta is now Meta [Inline] [[Inline]] [Inline] rather than
6350 Meta [Inline] [String] String. Authors and date in Meta are now lists
6351 of Inline elements rather than raw strings. This means that they can
6352 be formatted and can include footnotes. NOTE: This may be a breaking
6353 change for those using pandoc as a library.
6355 * Added readDataFile to Text.Pandoc.Shared. This retrieves
6356 a data file from the user pandoc data directory (~/.pandoc
6357 on unix), or, if not found there, from the system data
6358 directory ($CABALDIR/shared/pandoc-VERSION/). All data
6359 files, including templates, LaTeXMathML.js, s5 styles,
6360 and reference.odt, can be overridden by the user.
6362 * s5 files moved from data/ui/default to s5/default.
6364 * Use unicode instead of entities in HTML and XML output. Resolves
6365 Issue #163.
6367 * Prettier HTML footnote references: put anchor inside sup,
6368 instead of other way. Resolves Issue #191. Thanks to
6369 infinity0x.
6371 * Added --xetex option to pandoc and markdown2pdf.
6372 If --xetex is specified, pandoc produces latex suitable for
6373 processing by xelatex, and markdown2pdf uses xelatex to create
6374 the PDF. Resolves Issue #185.
6376 * RTF writer: multiple authors now occupy multiple paragraphs rather
6377 than using a line break.
6379 * Man writer: now the "--after-body" will come after the "AUTHORS"
6380 section, whereas before it would come before it. This is a
6381 slight break from backwards compatibility.
6383 * Added --reference-odt option, so users may customize the styles
6384 used in pandoc-generated ODT files. Users may also place a
6385 default reference.odt in the ~\.pandoc directory.
6387 * ODT writer:
6388 + Indented and line-broke styles.xml so it can be modified more easily.
6389 + Omitted some unnecessary style declarations.
6390 + Don't wrap text in OpenDocument writer. The tags are too long, making
6391 wrapping ugly and pointless.
6393 * LaTeX reader: use \\ to separate multiple authors.
6395 * Markdown reader: use ; as separator between authors.
6396 This allows you to use ',' within author names: e.g. "John Jones, Jr."
6398 * S5 writer: use linebreak to separate authors in title page.
6400 * RST reader: Allow :: before lhs code block. The RST spec requires the
6401 :: before verbatim blocks. This :: should not be treated as literal
6402 colons. Resolves Issue #189.
6404 * Documented pandoc 1.3's new definition list syntax in README.
6405 (An oversight in the last release.)
6407 * markdown2pdf.hs:
6408 + interpret ! in a log as an error line.
6409 + --toc now works properly.
6411 * Changes in RunTests.hs:
6412 + Use the Diff library rather than a local copy of Diff.hs.
6413 (This vastly increases performance.) This change means that 'cabal
6414 test' presupposes that the Diff library is installed.
6415 + Removed tests/Diff.hs from cabal file.
6416 + Changed RunTests to use local environment. We need at least HOME, so
6417 pandoc can find its data directory.
6419 * Updated windows installer to install data files in the app directory.
6421 * Windows installer now installs portable wrappers hsmarkdown and
6422 markdown2pdf.
6424pandoc (1.3)
6426 [ John MacFarlane ]
6428 * Added --id-prefix option (Issue #41). This adds a prefix to all
6429 automatically generated HTML identifiers, which helps prevent
6430 duplicate identifiers when you're generating a fragment (say a blog
6431 post).
6433 * Added --indented-code-classes option. This specifies classes
6434 to use for indented code blocks. (Patch due to buttock; Issue #87.)
6436 * --number-sections now affects HTML output as well as ConTeXt and LaTeX
6437 (Issue #150).
6439 * Improved syntax for markdown definition lists (Issue #24).
6440 Definition lists are now more compatible with PHP Markdown Extra.
6441 + You can have multiple definitions for a term (but still not
6442 multiple terms).
6443 + Multi-block definitions no longer need a column before each block
6444 (indeed, this will now cause multiple definitions).
6445 + The marker no longer needs to be flush with the left margin,
6446 but can be indented at or two spaces. Also, ~ as well as :
6447 can be used as the marker (this suggestion due to David
6448 Wheeler.)
6449 + There can now be a blank line between the term and the
6450 definitions.
6452 * Better looking simple tables. Resolves Issue #180.
6453 + Markdown reader: simple tables are now given column widths of 0.
6454 + Column width of 0 is interpreted as meaning: use default column width.
6455 + Writers now include explicit column width information only
6456 for multiline tables. (Exception: RTF writer, which requires
6457 column widths. In this case, columns are given equal widths,
6458 adding up to the text width.)
6459 + Simple tables should now look better in most output formats.
6461 * Allow markdown tables without headers (Issue #50).
6462 The new syntax is described in README. Also allow optional line of
6463 dashes at bottom of simple tables.
6465 * Compensate for width of final table column (Issue #144).
6467 * Treat a backslash followed by a newline as a hard line break
6468 in markdown. Resolves Issue #154. This is a nice alternative
6469 to markdown's "invisible" way of indicating hardline breaks
6470 using lines that end with two spaces.
6472 * Improved performance of markdown reader by ~10% by eliminating the
6473 need for a separate parsing pass for notes. Raw notes are now stored
6474 on the first pass (which parses references), then parsed when the
6475 note is inserted into the AST. The stateNotes field in ParserState
6476 is now a list of [(String, String)] pairs instead of [(String,
6477 [Block])].
6479 * In markdown reader, treat 4 or more * or _ in a row as literal
6480 text. (Trying to parse long strings of * or _ as strong or emph
6481 leads to exponential performance problems.)
6483 * Markdown reader: Use + rather than %20 for spaces in URLs.
6485 * Fixed htmlComment parser, adding a needed 'try'.
6487 * Don't print raw HTML in man output.
6489 * Allow . _ and ~ in header identifiers.
6491 * Specially mark code blocks that were "literate" in the input.
6492 They can then be treated differently in the writers. This allows
6493 authors to distinguish bits of the literate program they are writing
6494 from source code examples, even if the examples are marked as
6495 Haskell for highlighting. (Issue #174.)
6497 * Modified html+lhs output to use "haskell" highlighter instead
6498 of "literateHaskell". The highlighting module now adds bird tracks
6499 after highlighting (for HTML output), if the code block has the
6500 "literate" class. This gives better results, because kate's
6501 haskell highlighter is much better than the literateHaskell
6502 highlighter.
6504 * Fixed handling of footnotes in titles (HTML) and headers (LaTeX).
6505 (Issue #137.)
6507 * Support for "..code-block" directive in RST reader. Not core
6508 RST, but used in Sphinx for code blocks annotated with syntax
6509 information. Thanks to Luke Plant for the patch.
6511 * Added "head" to list of block-level HTML tags. Resolves
6512 Issue #108.
6514 * Added stripTags to Text.Pandoc.XML. This is used in the HTML writer.
6516 * Set utf-8 encoding in texinfo headers.
6518 * Docbook writer: add ids to sections. Use link for internal links.
6519 (Issue #60.)
6521 * Blank lines after lists in MediaWiki writer.
6523 * Properly handle commented-out list items in markdown.
6524 Resolves Issue #142. Example:
6526 - a
6527 <!--
6528 - b
6529 -->
6530 - c
6532 * Changed heuristic in compactify. compactify has to decide whether a
6533 Para that ends a list is a Para intentionally, or just because of
6534 the blank lines at the end of every list. In the latter case the
6535 Para is turned to a Plain. The old heuristic was: change final Para
6536 to Plain iff the other items all end in Plain. This produces bad
6537 results when, for example, an item contains just a Plain and an HTML
6538 comment, as it does in the list above. The new heuristic: change
6539 final Para to Plain iff the other items don't contain a Para.
6541 * Added % as an rst underline character. Resolves Issue #173.
6543 * Fix inline math parser so that \$ is allowed in math.
6544 Resolves Issue #169.
6546 * Translate \int (integral) into unicode when using unicode math
6547 method. Resolves Issue #177.
6549 * markdown2pdf.hs improvements:
6550 + Use System.IO.UTF8.
6551 + Print error messages on last attempt.
6552 + Do not create a backup when overwriting a PDF (Issue #166).
6553 + Accept --longopt=val options.
6554 + Added man/man1/markdown2pdf.1 to extra-tmp-files in cabal, so that
6555 it is properly cleaned.
6557 * Added haddock comments warning that readers assume \n line endings.
6559 * Updated COPYRIGHT file.
6561 * Makefile: Changed EXECSBASE so it doesn't pull in hsmarkdown &
6562 markdown2pdf. Otherwise strip tries to strip shell scripts when you
6563 install using 'make'.
6565 * Changed Makefile so it doesn't build Haskell wrappers.
6567 * Fixed Makefile so it doesn't try to build man pages in build-doc.
6569 * Install pcre3.dll in Windows install script; this allows us to
6570 package a version of pandoc with highlighting support.
6572pandoc (1.2.1)
6574 [ John MacFarlane ]
6576 * Fixed regression with --preserveTabs. Brought back optPreserveTabs.
6577 The trick of setting tabStop to 0 to mean "preserve tabs" had a bad
6578 side effect: strings of 0 spaces were interpreted as indentation.
6579 So, with --preserve-tabs, unindented paragraphs were treated as
6580 code. Resolves Issue #138.
6582 * HTML writer: wrap sections in divs. Resolves Issue #70.
6584 + hierarchicalize has been rationalized; it builds a hierarchical
6585 representation of the document from the headers, and simultaneously
6586 gives each section a unique identifier based on the heading title.
6587 + Identifiers are now attached to the divs rather than
6588 to the headers themselves.
6589 + Table of content backlinks go to the beginning of the table, rather
6590 than to the section reference that was clicked.
6591 + Code for constructing identifiers has been moved to Text.Pandoc.Shared
6592 from the HTML writer, since it is now consumed only by
6593 hierarchicalize.
6594 + In --strict mode, pandoc just prints bare headings, as before
6595 (unless --toc has been specified).
6596 + In s5 output, it does not wrap sections in divs, as that seems to
6597 confuse the s5 javascript.
6599 * Man writer: break lines at end of each sentence. groff expects this
6600 and treats '.' and '?' differently when followed by line ending as
6601 opposed to ordinary space. Also, don't escape periods. Instead, use
6602 zero-width character \& to avoid unwanted interpretation of periods
6603 at start of line. Resolves Issue #148.
6605 * Markdown writer: Added '#' and '>' to list of characters to be
6606 escaped in markdown output. Removed '<', as it is not an officially
6607 escapable character. This partially resolves Issue #96.
6609 * Make --smart the default for man output format. Otherwise we have
6610 trouble dividing lists of endlines into sentences.
6612 * DocBook writer: Use language attribute to indicate source language
6613 in code blocks.
6615 * RST reader:
6617 + Allow # to continue list, even if the list was started with an
6618 explicit marker. For example:
6620 A. my list
6621 #. continued
6623 Resolves Issue #140.
6624 + Allow continuation lines in line blocks. Also added test cases for
6625 line blocks for RST reader. Resolves Issue #149.
6626 + Allow explicit links with spaces in URL: `link <to this>`_
6628 * Improved LaTeX reader's coverage of math modes. Remove displaymath*
6629 (which is not in LaTeX) and recognize all the amsmath environments
6630 that are alternatives to eqnarray, namely equation, equation*,
6631 gather, gather*, gathered, multline, multline*, align, align*,
6632 alignat, alignat*, aligned, alignedat, split. Resolves Issue #103.
6633 Thanks to shreevatsa.public for the patch.
6635 * Markdown reader:
6637 + Allow -, _, :, . in markdown attribute names. These are legal in
6638 XML attribute names.
6639 + Use non-breaking spaces in abbreviations.
6640 + Markdown reader: improved efficiency of abbreviation parsing.
6641 Instead of a separate abbrev parser, we just check for
6642 abbreviations each time we parse a string. This gives a huge
6643 performance boost with -S. Resolves Issue #141.
6645 * Improved efficiency of shared parsers: hexNum, htmlComment,
6646 whitespace, indentSpaces.
6648 * Export HTMLMathMethod in Text.Pandoc.
6650 * Export languagesByExtension in Text.Pandoc.Highlighting.
6652 * Added new Haskell version of markdown2pdf, due to
6653 Paulo Tanimoto. This should be more portable than the old
6654 shell script.
6656 * Made 'pandoc -v' more explicit about compiler options.
6657 Resolves Issue #139.
6659 * pandoc.hs: Made --strict compatible with --standalone, --toc.
6661 * Use Paths_pandoc to get version number, instead of hard-coding it
6662 into Text/Pandoc.hs.
6664pandoc (1.2)
6666 [ John MacFarlane ]
6668 * Added support for literate Haskell. lhs support is triggered by
6669 '+lhs' suffixes in formats. For example, 'latex+lhs' is literate
6670 Haskell LaTeX. '.lhs' files are treated by default as literate
6671 markdown.
6673 + Added stateLiterateHaskell to parser state.
6674 + Added parser for lhsCodeBlock to Markdown, RST, LaTeX readers.
6675 + Added parser for |inline lhs| to LaTeX reader.
6676 + Added writerLiterateHaskell to WriterOptions.
6677 + Added lhs support to Markdown, RST, LaTeX, HTML writers.
6678 + Added definition of code environment to LaTeX header.
6679 + Added tests (run only if highlighting support compiled in).
6680 + Documented lhs features in man page and README.
6682 * In Text.Pandoc.Definition, added processWith, processWithM,
6683 and queryWith, and deprecated processPandoc and queryPandoc
6684 for these more general functions.
6686 * Fixed bug in mediawiki writer: improper closing tags in tables.
6687 Thanks to Benct Philip Jonsson for reporting the bug.
6689 * Added --email-obfuscation option.
6691 + Added writer option for email obfuscation.
6692 + Implemented email obfuscation options in HTML writer.
6693 + Added option to option parser.
6694 + Documented in README and pandoc man page.
6695 + Resolves Issue #97.
6697 * LaTeX writer: fixed bug with empty table cells.
6698 Resolves Issue #107. Thanks to rodja.trappe for the patch.
6700 * Fixed bug with header spacing in Markdown and RST writers.
6701 A null header (Meta [] [] []) should not cause a blank line
6702 at the beginning of output. But a blank line is needed between
6703 a non-null header and the main text.
6705 * Markdown reader: Relax spacing rules for $$ in display math. Now
6706 space and newlines are allowed after the opening $$ and before the
6707 closing $$. However, the display math cannot contain an entirely
6708 blank line. Resolves Issue #105.
6710 * Markdown reader: Gobble space after Plain blocks containing only
6711 raw html inline. Otherwise following header blocks are not parsed
6712 correctly, since the parser sees blank space before them. Resolves
6713 Issue #124.
6715 * Markdown reader: Allow " as well as '' to end a latex double-quote.
6717 * Conditionally depend on syb and base >= 4 if ghc >= 6.10.
6718 Resolves Issue #109.
6720 * Fixed problems in RST and markdown output due to bug in pretty-1.0.1.0
6722 + Added hang' function to Text.Pandoc.Shared; this will be used instead
6723 of hang, which doesn't work properly in pretty-1.0.1.0. When pretty
6724 is upgraded, we can go back to hang.
6725 See http://article.gmane.org/gmane.comp.lang.haskell.general/16687
6726 + Use hang' (and some different techniques) in RST and markdown writers.
6727 Some output is now a bit different.
6729 * Brought citeproc support up to date for citeproc-hs-0.2.
6730 (Patch by Andrea Rossato.)
6732 * Moved all haskell source to src subdirectory. Renamed Main.hs to
6733 pandoc.hs.
6735 * Rewrote hsmarkdown in Haskell for portability (src/hsmarkdown.hs).
6736 For now, keeping the old shell script too.
6738 * Added TemplateHaskell to Extensions for executable, removed
6739 -threaded for library. Thanks to duncan.coutts for the bug report.
6740 Resolves Issue #121.
6742 * Moved some Extra-Source-Files to Data-Files.
6744 * Moved tabFilter to Shared.
6746 * In pandoc.hs, removed optPreserveTabs; instead, tabstop of 0 means
6747 preserve tabs.
6749 * Minor code cleanup based on hlint suggestions.
6751pandoc (1.1)
6753 [ John MacFarlane ]
6755 * Main.hs:
6757 + Changed date on copyright message in Main.hs.
6758 + Have the '-v' option print syntax highlighting languages
6759 separated by commas, and wrapped in lines, instead of in five
6760 columns as before.
6762 * Added --jsmath option. Resolves Issue #68.
6764 + Added --jsmath option to Main.hs
6765 + Added JsMath to HTMLMathMethod in Text.Pandoc.Shared.
6766 + Handle math appropriately in HTML writer when JsMath selected.
6767 + Documented the option in README and man page.
6769 * Text.Pandoc.Shared: Changed compactify to use a better heuristic
6770 for tight and loose lists. Final Para is changed to Plain if all
6771 other list items *end* with a Plain block. Addresses Issue #99.
6773 * HTML reader:
6775 + Added colons to protocols in unsanitaryURI. Closes Issue #88.
6776 + HTML reader: Don't interpret contents of <pre> blocks as markdown.
6777 Added rawVerbatimBlock parser. Resolves Issue #94.
6779 * Markdown reader:
6781 + Allow URLs with spaces in them in links and references, but escape
6782 them as "%20".
6783 + Allow blank space at the end of horizontal rules.
6785 * RST reader: Modified 'unknownDirective' parser to handle comment
6786 blocks correctly, and added tests for comment blocks. Resolves Issue
6787 #86. Closes Debian Bug #500662.
6789 * HTML writer:
6791 + Include classes on tr elements in HTML output:
6792 "header", "odd", "even". This allows tables to be styled with
6793 lines in alternating colors. Resolves Issue #91.
6794 + Enclose all LaTeXMathML bits in <span class="LaTeX">.
6795 This prevents parts of the document that are not math from being
6796 interpreted as math by LaTeXMathML.js.
6798 * OpenDocument and ODT writers: Added support for HorizontalRule elements,
6799 which were formerly ignored. Resolves Issue #95.
6801 * Text.Pandoc.Shared: Modified wrappedTeX to eliminate the line break
6802 between a footnote and immediately following nonspace characters in
6803 LaTeX and ConTeXt output. (This gets interpreted as a space, which
6804 is not desired in cases like "text^[note]---".) Resolves Issue #93.
6806 * Windows installer: Don't require admin privileges to run
6807 installer. Modified pandoc-setup.iss, and changed modpath.iss to
6808 modify HKCU path if user lacks admin privileges. Also fixed case
6809 where oldpath is empty (previously this led to the new path
6810 beginning with a semicolon).
6812 * Updated INSTALL instructions for Arch packages and OS X install using
6813 cabal-install.
6815 * Removed the (now unneeded) debian directory.
6816 Removed empty Codec and System directories.
6818 * Moved odt-styles/ to data/. Removed unneeded variable in Makefile.
6820 * Modified Setup.hs so that the "test" target returns an error status
6821 when tests fail, and "build" returns a success status if
6822 the build succeeds. Resolves Issue #100.
6824 * Added BUGS to files in tarball.
6827pandoc (1.0.0.1)
6829 [ John MacFarlane ]
6831 * Removed spurious reference to pdf output format from pandoc(1) man page.
6833pandoc (1.0)
6835 [ Andrea Rossato ]
6837 * Added new OpenDocument writer.
6839 * Added support for SmallCaps inline element.
6841 * Added support for integrating pandoc with citeproc-hs.
6843 + Added Cite element to definition and writers.
6844 + Added Text.Pandoc.Biblio module
6845 + Note: This support is included only if the 'citeproc'
6846 Cabal configuration flag is set.
6848 * Made Pandoc data structure an instance of Typeable.
6849 Added new processPandoc and queryPandoc functions, to query
6850 or transform matching elements in a Pandoc structure.
6852 [ Peter Wang ]
6854 * Added new Texinfo writer.
6856 [ John MacFarlane ]
6858 * Changes to Texinfo writer:
6860 + No space between paragraph and following @verbatim (provides more
6861 pleasing appearance in text formats)
6862 + Blank line consistently after list environments.
6863 + Removed deVerb.
6864 + Use @code instead of @verb for inline code (this solves the character
6865 escaping problem for texi2dvi and texi2pdf).
6866 + Added news of Texinfo writer to README.
6867 + Added Texinfo to list of formats in man page, and removed extra 'groff'.
6868 + Added texi & texinfo extensions to Main.hs, and fixed bug in determining
6869 default output extension.
6870 + Modified disallowedInNode in Texinfo writer to correct list of disallowed characters.
6872 * Added tests for OpenDocument writer.
6874 * Added ODT writer (using zip-archive library to package output of
6875 OpenDocument writer). Added odt-styles directory with default ODT styles.
6877 * Added new mediawiki writer and tests.
6879 * Markdown reader: Added support for delimited code blocks, with optional
6880 syntax highlighting using highlighting-kate (if the 'highlighting'
6881 configuration option is selected).
6883 + Currently highlighting is supported only in the HTML writer.
6884 + Delimited code blocks can have attributes; using the language name as
6885 class triggers highlighting.
6886 + New Attributes parameter in CodeBlock structure.
6887 + --version now indicates whether syntax highlighting support is compiled
6888 in, and prints a list of supported languages
6890 * Removed debian directory. Pandoc is no longer a native debian package.
6892 * Changes to build process: pandoc can now be built from the repository
6893 using Cabal. No unix tools are needed (so, pandoc can be built on Windows
6894 without Cygwin).
6896 + Include shell scripts themselves in repo, rather than generating from wrappers.
6897 Removed wrappers directory and wrappers Makefile target.
6898 + Text/Pandoc/ASCIIMathML.hs, Text/Pandoc/DefaultHeaders.hs,
6899 and Text/Pandoc/Writers/S5.hs are no longer built in Makefile
6900 from templates in the templates/ directory. Instead, they use template
6901 haskell to read data at compile time from the relevant files in data/.
6902 Template haskell functions go in a new module, Text.Pandoc.TH.
6903 + man pages are now generated in Setup.hs hook, not by Makefile
6904 + Makefile 'tarball' target now calls Cabal's 'sdist'
6905 + Added "Extra-Source-Files" to pandoc.cabal, so sdist contains everything needed
6906 + Added "Build-Type" field to pandoc.cabal to avoid warning.
6907 + Added to "Extra-source-files" and "Extra-tmp-files" in pandoc.cabal,
6908 so 'sdist' and 'clean' will work properly.
6909 + Setup.hs now generates man pages in a postbuild hook.
6910 + Added dependency-checking to Setup.hs, so it only rebuilds things
6911 that need rebuilding.
6912 + Added 'library' and 'executable' configuration flags.
6913 Cabal can now be told to build just the library or just the executable.
6914 + CABALOPTS may now be specified with 'make' to pass Cabal configuration flags.
6915 For example: CABALOPTS=-fhighlighting make
6917 * Rewrote test suite so it doesn't depend on perl or unix tools.
6919 + Replaced old runtests.pl with a Haskell script RunTests.hs.
6920 + Added Diff.hs module to be used by RunTests.hs instead of unix 'diff'.
6921 + Added test hook to Setup.hs, so tests may be run from cabal.
6922 + Changed Makefile's 'test' target to run tests via cabal.
6923 + Removed old generate.sh.
6924 + Since we no longer have 'sed' to filter out raw HTML sections
6925 from the docbook writer test, or raw LaTeX sections from the
6926 context writer test, we now just include these sections.
6927 They can be taken out if it is necessary to process the files.
6928 + Updated latex and context writer tests to remove extra spaces
6929 after '\\item'
6930 + Added a markdown table reader test.
6931 + Added markdown-reader-more.txt to test suite, for additional test cases
6932 for raw ConTeXt environments and more.
6934 * Compatibility fixes for CPP, Cabal, and haddock:
6936 + Use CPP in "Extensions" field in pandoc.cabal.
6937 + Removed use of backslash string continuations in source files.
6939 * Removed pandoc.cabal.ghc66. We now require Cabal >= 1.2, GHC >= 6.8,
6940 base >= 3.
6942 * Require parsec < 3.
6943 The compatibility module in parsec 3.0.0 gives far worse performance than
6944 parsec 2.1. Eventually pandoc will be upgraded to use the new bytestring
6945 version of parsec, and then we'll go to parsec 3.0.0.
6947 * Removed Text.Regex dependencies by rewriting using plain Haskell
6948 (Text.Pandoc.Writers.RTF, Text.Pandoc.Writers.HTML, Main.hs)
6950 * Moved Text.Pandoc.Writers.DefaultHeaders -> Text.Pandoc.DefaultHeaders.
6952 * Makefile:
6954 + Added 'configure' as dependency of 'uninstall-all'.
6955 (It uses the Cabal build program.)
6956 + Makefile: only use --with-hc-pkg if GHC_PKG is defined.
6957 Note that Cabal will automatically choose the ghc-pkg appropriate
6958 for the compiler selected, so normally specifying GHC by itself
6959 is sufficient.
6961 * Removed Text.Pandoc.UTF8 module; instead, depend on utf8-string and use
6962 its IO and conversion functions.
6964 * Added -Wall to ghc-options in pandoc.cabal. Cleaned up modules so that
6965 everything is -Wall clean.
6967 + Added pragma to HTML writer to avoid deprecation warning for use of "start" attribute.
6968 + Added pragma to Text/Pandoc/Shared.hs to get rid of "orphan instance" warnings.
6969 (These are caused by the Lift instance for ByteString.)
6971 * Changed the comment used to replace unsafe HTML if sanitize-html option
6972 selected.
6974 * Made -c/--css option repeatable on the command line (like -H, -A, -B).
6976 * Moved XML-formatting functions to new unexported module Text.Pandoc.XML.
6978 * Escape '\160' as "&#160;", not "&nbsp;" in XML.
6979 "nbsp" isn't a predefined XML entity.
6981 * Fixed bug in RST reader, which would choke on: "p. one\ntwo\n".
6982 Added some try's in ordered list parsers.
6984 * Man writer: don't escape " as \".
6986 * Allow newline before URL in markdown link references. Resolves Issue #81.
6987 Added tests for this issue in new "markdown-reader-more" tests.
6988 Changed RunTests.hs to run these tests.
6990 * Support for display math. Resolves Issue #47.
6992 + Added a DisplayMath/InlineMath selector to Math inlines.
6993 + Markdown parser yields DisplayMath for $$...$$.
6994 + LaTeX parser yields DisplayMath when appropriate. Removed
6995 mathBlock parsers, since the same effect is achieved by the math
6996 inline parsers, now that they handle display math.
6997 + Writers handle DisplayMath as appropriate for the format.
6998 + Modified tests accordingly; added new tests for display math.
7000 * Use LaTeXMathML instead of ASCIIMathML. LaTeXMathML is closer
7001 to LaTeX in its display of math, and supports many non-math LaTeX environments.
7003 + Changed -m option to use LaTeXMathML rather than ASCIIMathML.
7004 + Modified HTML writer to print raw TeX when LaTeXMathML is
7005 being used instead of suppressing it.
7006 + Removed ASCIIMathML files from data/ and added LaTeXMathML.
7007 + Replaced ASCIIMathML with LaTeXMathML in source files.
7008 + Modified README and pandoc man page source.
7009 + Added --latexmathml option (kept --asciimathml as a synonym
7010 for backwards compatibility)
7012 * Markdown reader: Parse setext headers before atx headers.
7013 Test case:
7014 # hi
7015 ====
7016 parsed by Markdown.pl as an H1 header with contents "# hi".
7018 * Markdown reader: Treat "mixed" lists the same way as Markdown.pl does.
7019 The marker on the first list item determines the type of the whole
7020 list. Thus, a list like
7021 1. one
7022 - two
7023 * three
7024 gets parsed as a single ordered list. (Previous versions of pandoc
7025 treated this as an ordered list with an unordered sublist.)
7027 * Markdown smart typography:
7029 + Em dashes no longer eat surrounding whitespace. Resolves Issue #69.
7030 + Use nonbreaking spaces after known abbreviations in markdown parser.
7031 Thus, for example, "Mr. Brown" comes out as "Mr.~Brown" in LaTeX, and does
7032 not produce a sentence-separating space. Resolves Issue #75.
7034 * Markdown writer: Print unicode \160 literally, rather than as &nbsp;.
7036 * Treat '\ ' in (extended) markdown as nonbreaking space.
7037 Print nonbreaking space appropriately in each writer (e.g. ~ in LaTeX).
7039 * The '--sanitize-html' option now examines URIs in markdown links
7040 and images, and in HTML href and src attributes. If the URI scheme
7041 is not on a whitelist of safe schemes, it is rejected. The main point
7042 is to prevent cross-site scripting attacks using 'javascript:' URIs.
7043 See http://www.mail-archive.com/markdown-discuss@six.pairlist.net/msg01186.html
7044 and http://ha.ckers.org/xss.html. Resolves Issue #62.
7046 * HTML writer:
7048 + Override Text.XHtml's stringToHtml function,
7049 so that characters below 0xff are not converted to numerical entity
7050 references. Also convert '\160' to "&nbsp;". This should aid readability
7051 and editability of the HTML source. It does presuppose that the HTML
7052 will be served as UTF-8.
7053 + In code blocks, change leading newlines to <br /> tags.
7054 (Some browsers ignore them.) Resolves Issue #71.
7055 See http://six.pairlist.net/pipermail/markdown-discuss/2008-May/001297.html
7056 + Use style attributes rather than css classes for strikethrough
7057 and ordered list styles. This works better when fragments, rather than
7058 standalone documents, are generated.
7060 * HTML reader: Count anything that isn't a known block (HTML) tag as an
7061 inline tag (rather than the other way around). Added "html", "head", and
7062 "body" to list of block tags. Resolves Issue #66, allowing
7063 <lj> to count as an inline tag.
7065 * RTF writer: Fixed bug. Extra spaces were being printed after emphasized,
7066 boldface, and other inline elements. Resolves Issue #64.
7068 * LaTeX reader: improvements in raw LaTeX parsing.
7070 + "loose punctuation" (like {}) parsed as Space
7071 + Para elements must contain more than Str "" and Space elements
7072 + Added parser for "\ignore" command used in literate haskell.
7073 + Reworked unknownCommand and rawLaTeXInline: when not in "parse raw"
7074 mode, these parsers simply strip off the command part and allow
7075 the arguments to be parsed normally. So, for example,
7076 \blorg{\emph{hi}} will be parsed as Emph "hi" rather than
7077 Str "{\\emph{hi}}".
7078 + Parse lhs "code" environments as verbatim.
7079 Refactored parsers for verbatim environments.
7080 + Removed specialEnvironment parser.
7081 + parse '{}', if present, after \textless, \textgreater,
7082 \textbar, \textbackslash, \ldots.
7083 + Parse unescaped special characters verbatim rather than
7084 changing them to spaces. This way arguments of unknown
7085 commands will appear in braces.
7087 * Parse raw ConTeXt environments as TeX in markdown reader.
7088 Resolves Issue #73.
7090 * Moved BlockWrapper and wrappedBlocksToDoc from ConTeXt writer to Shared.
7092 * Made some structural changes to parsing of raw LaTeX environments.
7093 Previously there was a special block parser for LaTeX environments.
7094 It returned a Para element containing the raw TeX inline. This has
7095 been removed, and the raw LaTeX environment parser is now used in the
7096 rawLaTeXInline parser. The effect is exactly the same, except that we
7097 can now handle consecutive LaTeX and ConTeXt environments not separated
7098 by spaces. This new flexibility is required by the example in
7099 Issue #73:
7101 \placeformula \startformula
7102 L_{1} = L_{2}
7103 \stopformula
7105 API change: The LaTeX reader now exports rawLaTeXEnvironment' (which
7106 returns a string) rather than rawLaTeXEnvironment (which returns a block
7107 element). This is more likely to be useful in other applications.
7109 * Use \textsubscr instead of \textsubscript for LaTeX subscript macro.
7110 \textsubscript conflicts with a definition in the memoir class.
7111 Resolves Issue #65.
7113 * Removed unneeded space after "\\item" in LaTeX and ConTeXt output.
7115 * Added amsmath package to default LaTeX header. Resolves Issue #48.
7117 * Added \setupitemize[autointro] to ConTeXt header, to prevent orphaned
7118 list introduction lines.
7120 * Changed Float to Double in definition of Table element.
7121 (Double is more efficient in GHC.)
7123 * Fixed bug in Markdown parser: regular $s triggering math mode.
7124 For example: "shoes ($20) and socks ($5)."
7125 The fix consists in two new restrictions:
7127 + the $ that ends a math span may not be directly followed by a digit.
7128 + no blank lines may be included within a math span.
7130 Thanks to Joseph Reagle for noticing the bug.
7132 * Use Data.List's 'intercalate' instead of custom 'joinWithSep'.
7133 Removed 'joinWithSep' from Text.Pandoc.Shared.
7135 * Updated README and man pages. Acknowledge contributors in README.
7136 Added paragraph to README about producing S5 with separate CSS/javascript.
7138 * Updated INSTALL to reflect new build system (including configuration
7139 options) and document new dependencies. Added note to INSTALL that
7140 Cabal >= 1.2 is required for build. Resolves Issue #74.
7142 * Fixed some haddock documentation errors.
7144 * Small fix to markdown2pdf man page: only input needs to be piped through iconv.
7146pandoc (0.46) unstable; urgency=low
7148 [ John MacFarlane ]
7150 * Made -H, -A, and -B options cumulative: if they are specified
7151 multiple times, multiple files will be included.
7153 * Added optional HTML sanitization using a whitelist.
7154 When this option is specified (--sanitize-html on the command line),
7155 unsafe HTML tags will be replaced by HTML comments, and unsafe HTML
7156 attributes will be removed. This option should be especially useful
7157 for those who want to use pandoc libraries in web applications, where
7158 users will provide the input.
7160 + Main.hs: Added --sanitize-html option.
7162 + Text.Pandoc.Shared: Added stateSanitizeHTML to ParserState.
7164 + Text.Pandoc.Readers.HTML:
7165 - Added whitelists of sanitaryTags and sanitaryAttributes.
7166 - Added parsers to check these lists (and state) to see if a given
7167 tag or attribute should be counted unsafe.
7168 - Modified anyHtmlTag and anyHtmlEndTag to replace unsafe tags
7169 with comments.
7170 - Modified htmlAttribute to remove unsafe attributes.
7171 - Modified htmlScript and htmlStyle to remove these elements if
7172 unsafe.
7174 + Modified README and man pages to document new option.
7176 * Improved handling of email addresses in markdown and reStructuredText.
7177 Consolidated uri and email address parsers. (Resolves Issue #37.)
7179 + New emailAddress and uri parsers in Text.Pandoc.Shared.
7180 - uri parser uses parseURI from Network.URI.
7181 - emailAddress parser properly handles email addresses with periods
7182 in them.
7184 + Removed uri and emailAddress parsers from Text.Pandoc.Readers.RST
7185 and Text.Pandoc.Readers.Markdown.
7187 * Markdown reader:
7189 + Fixed emph parser so that "*hi **there***" is parsed as a Strong
7190 nested in an Emph. (A '*' is only recognized as the end of the
7191 emphasis if it's not the beginning of a strong emphasis.)
7193 + Moved blockQuote parser before list parsers for performance.
7195 + Modified 'source' parser to allow backslash-escapes in URLs.
7196 So, for example, [my](/url\(1\)) yields a link to /url(1).
7197 Resolves Issue #34.
7199 + Disallowed links within links. (Resolves Issue #35.)
7200 - Replaced inlinesInBalanced with inlinesInBalancedBrackets, which
7201 instead of hard-coding the inline parser takes an inline parser
7202 as a parameter.
7203 - Modified reference and inlineNote to use inlinesInBalancedBrackets.
7204 - Removed unneeded inlineString function.
7205 - Added inlineNonLink parser, which is now used in the definition of
7206 reference.
7207 - Added inlineParsers list and redefined inline and inlineNonLink parsers
7208 in terms of it.
7209 - Added failIfLink parser.
7211 + Better handling of parentheses in URLs and quotation marks in titles.
7212 - 'source' parser first tries to parse URL with balanced parentheses;
7213 if that doesn't work, it tries to parse everything beginning with
7214 '(' and ending with ')'.
7215 - source parser now uses an auxiliary function source'.
7216 - linkTitle parser simplified and improved, under assumption that it
7217 will be called in context of source'.
7219 + Make 'block' conditional on strictness state, instead of using
7220 failIfStrict in block parsers. Use a different ordering of parsers
7221 in strict mode (raw HTML block before paragraph) for performance.
7222 In non-strict mode use rawHtmlBlocks instead of htmlBlock.
7223 Simplified htmlBlock, since we know it's only called in strict
7224 mode.
7226 + Improved handling of raw HTML. (Resolves Issue #36.)
7227 - Tags that can be either block or inline (e.g. <ins>) should
7228 be treated as block when appropriate and as inline when
7229 appropriate. Thus, for example,
7230 <ins>hi</ins>
7231 should be treated as a paragraph with inline <ins> tags, while
7232 <ins>
7233 hi
7234 </ins>
7235 should be treated as a paragraph within <ins> tags.
7236 - Moved htmlBlock after para in list of block parsers. This ensures
7237 that tags that can be either block or inline get parsed as inline
7238 when appropriate.
7239 - Modified rawHtmlInline' so that block elements aren't treated as
7240 inline.
7241 - Modified para parser so that paragraphs containing only HTML tags and
7242 blank space are not allowed. Treat these as raw HTML blocks instead.
7244 + Fixed bug wherein HTML preceding a code block could cause it to
7245 be parsed as a paragraph. The problem is that the HTML parser
7246 used to eat all blank space after an HTML block, including the
7247 indentation of the code block. (Resolves Issue #39.)
7248 - In Text.Pandoc.Readers.HTML, removed parsing of following space
7249 from rawHtmlBlock.
7250 - In Text.Pandoc.Readers.Markdown, modified rawHtmlBlocks so that
7251 indentation is eaten *only* on the first line after the HTML
7252 block. This means that in
7253 <div>
7254 foo
7255 <div>
7256 the foo won't be treated as a code block, but in
7257 <div>
7259 foo
7261 </div>
7262 it will. This seems the right approach for least surprise.
7264 * RST reader:
7266 + Fixed bug in parsing explicit links (resolves Issue #44).
7267 The problem was that we were looking for inlines until a '<' character
7268 signaled the start of the URL; so, if you hit a reference-style link,
7269 it would keep looking til the end of the document. Fix: change
7270 inline => (notFollowedBy (char '`') >> inline). Note that this won't
7271 allow code inlines in links, but these aren't allowed in resT anyway.
7273 + Cleaned up parsing of reference names in key blocks and links.
7274 Allow nonquoted reference links to contain isolated '.', '-', '_', so
7275 so that strings like 'a_b_' count as links.
7277 + Removed unnecessary check for following link in str.
7278 This is unnecessary now that link is above str in the definition of
7279 'inline'.
7281 * HTML reader:
7283 + Modified rawHtmlBlock so it parses </html> and </body> tags.
7284 This allows these tags to be handled correctly in Markdown.
7285 HTML reader now uses rawHtmlBlock', which excludes </html> and </body>,
7286 since these are handled in parseHtml. (Resolves Issue #38.)
7288 + Fixed bug (emph parser was looking for `<IT>` tag, not `<I>`).
7290 + Don't interpret contents of style tags as markdown.
7291 (Resolves Issue #40.)
7292 - Added htmlStyle, analagous to htmlScript.
7293 - Use htmlStyle in htmlBlockElement and rawHtmlInline.
7294 - Moved "script" from the list of tags that can be either block or
7295 inline to the list of block tags.
7297 + Modified rawHtmlBlock to use anyHtmlBlockTag instead of anyHtmlTag
7298 and anyHtmlEndTag. This fixes a bug in markdown parsing, where
7299 inline tags would be included in raw HTML blocks.
7301 + Modified anyHtmlBlockTag to test for (not inline) rather than
7302 directly for block. This allows us to handle e.g. docbook in
7303 the markdown reader.
7305 * LaTeX reader: Properly recognize --parse-raw in rawLaTeXInline.
7306 Updated LaTeX reader test to use --parse-raw.
7308 * HTML writer:
7310 + Modified rules for automatic HTML header identifiers to
7311 ensure that identifiers begin with an alphabetic character.
7312 The new rules are described in README. (Resolves Issue #33.)
7314 + Changed handling of titles in HTML writer so you don't get
7315 "titleprefix - " followed by nothing.
7317 * ConTeXt writer: Use wrappers around Doc elements to ensure proper
7318 spacing. Each block element is wrapped with either Pad or Reg.
7319 Pad'ed elements are guaranteed to have a blank line in between.
7321 * RST writer:
7323 + Refactored RST writer to use a record instead of a tuple for state,
7324 and to include options in state so it doesn't need to be passed as
7325 a parameter.
7327 + Use an interpreted text role to render math in restructuredText.
7328 See http://www.american.edu/econ/itex2mml/mathhack.rst for the
7329 strategy.
7331 [ Recai Oktaş ]
7333 * Debian packaging changes:
7335 + Remove the empty 'include' directory in -dev package, which lintian
7336 complains about.
7337 + Bump Standarts-Version to 3.7.3.
7338 + Use new 'Homepage:' field to specify the upstream URL on suggestion of
7339 lintian.
7341 -- Recai Oktaş <roktas@debian.org> Tue, 08 Jan 2008 05:13:31 +0200
7343pandoc (0.45) unstable; urgency=low
7345 [ John MacFarlane ]
7347 * Simplified parsing of reference keys and notes in markdown and RST
7348 readers: The Reference data structure from Text.Pandoc.Shared is no
7349 longer needed, since referenceKey and noteBlock parses return strings
7350 (as many blank lines as were occupied by the key or note) and update
7351 state themselves. getPosition and setPosition are now used to ensure
7352 that error messages will give the correct line number. This yields
7353 cleaner (and slightly faster) code, with more accurate parsing error
7354 messages.
7356 * Added new Math inline element:
7358 + Markdown and LaTeX readers now convert TeX math into Math elements,
7359 not TeX.
7360 + This allows math to be treated differently from raw TeX in output.
7361 TeX elements are no longer printed in output formats other than
7362 Markdown, LaTeX, and ConTeXt. But Math elements are always printed.
7364 * New default handling of math in writers:
7366 + New module Text.Pandoc.Readers.TeXMath exports readTeXMath, which
7367 parses raw TeX math and outputs a string of Pandoc inlines that
7368 tries to render it as far as possible using unicode characters,
7369 lapsing into literal TeX when needed.
7370 + readTeXMath is now used for default HTML output in HTML, S5, RTF,
7371 and Docbook, if no other method for displaying math in HTML is
7372 specified. Enclosing $'s are no longer printed by default.
7373 + By default, math is put inside `<span class="math">`. This way it can be
7374 distinguished from the surrounding text, e.g. put in a different
7375 font.
7377 * New --gladtex and --mimetex options for display of math in HTML:
7379 + If --gladtex is specified, math is output between `<eq>` tags, so
7380 it can be processed by gladTeX.
7381 + If --mimetex is specified, math is put in `<img>` tags with a link
7382 to the mimetex CGI script (or any other script that takes TeX math
7383 as input and outputs an image). The URL of the script may be
7384 specified, but defaults to /cgi-bin/mimetex.cgi.
7385 + HTMLMathMethod structure in WriterOptions keeps track of how to
7386 display math in HTML output.
7387 + Updated README with a description of the four options for displaying
7388 math in HTML.
7390 * HTML reader:
7392 + Fixed bug: parser for minimized attributes should not swallow
7393 trailing spaces.
7394 + Simplified HTML attribute parsing.
7395 + Changed parsing of code blocks in HTML reader: `<code>` tag is no
7396 longer needed. `<pre>` suffices. All HTML tags in the code block
7397 (e.g. for syntax highlighting) are skipped, because they are not
7398 portable to other output formats. A `<code>...</code>` block not
7399 surrounded by `<pre>` now counts as inline HTML, not a code block.
7400 + Remove just one leading and one trailing newline from contents of
7401 `<pre>...</pre>` in codeBlock parser.
7403 * Markdown reader:
7405 + Removed support for box-style block quotes.
7406 + Require space before title in links and references.
7407 This fixes a bug in parsing URLs like http://silly/url(withparen).
7408 + Improved and simplified setextHeader parser.
7409 + Fixed logic in smart quote parsing, adding some needed 'try'
7410 statements.
7411 + Fixed smart quote parsing so that unicode characters 8216 and 8217
7412 are recognized as single quotes, and 8220 and 8221 as double quotes.
7414 * RST reader:
7416 + Fixed bug in parsing of code blocks. Previously a full tab indent
7417 was required, but RST allows code to be indented any amount.
7418 Resolves Issue #27.
7419 + Allow field lists to be indented.
7420 + Parse the contents of field lists instead of treating as a raw string.
7421 + Represent field lists as definition lists instead of blockquotes.
7422 + Fixed bug in which metadata would be overridden if the document
7423 contained multiple field lists.
7424 + Parse fields associated with '.. image::' blocks, and use 'alt'
7425 field, if given, for image alt and title attributes.
7427 * LaTeX reader:
7429 + Modified specialChar so that '"' characters are parsed.
7430 + Fixed a bug in parsing of \[ \] math blocks (thanks to Mark Kalderon).
7432 * HTML writer:
7434 + Changes in handling of math (see above).
7435 + Don't produce HTML for table of contents if there are
7436 no headers. (This would be an empty list, which is invalid XHTML.)
7438 * Markdown writer:
7440 + Don't print title attribute if title is empty. (This differs from
7441 the behavior of Markdown.pl, and agrees with PHP Markdown. But John
7442 Gruber has indicated that he prefers this behavior.) Adjusted test
7443 suite accordingly.
7444 + Fixed incorrect line wrapping in paragraphs including hard line
7445 breaks. Resolves Issue #25.
7446 + Fixed bug in markdown writer: If an ordered list item began with
7447 a marker greater than 3 characters in width, and the item took more
7448 than one line, it would appear on the line after the list marker,
7449 e.g.:
7451 (12)
7452 My list item.
7453 Multiline.
7455 Now it works as follows:
7457 (12) My list item.
7458 Multiline.
7460 * RST writer
7462 + Fixed bug in RST writer's handling of ordered lists. Previously,
7463 list items with multiple lines would not always line up with
7464 single-line list items. Now, list items are nested the length of
7465 the list marker + 1. This looks better and ensures that list items
7466 all line up. (Note that list markers are padded to the length of
7467 the longest list marker in the series.)
7468 + Use 3-space indent for unordered lists.
7469 + If label for a link reference contains a colon, surround it by `
7470 signs so it won't be interpreted as the end of the link label.
7472 * LaTeX writer:
7474 + Cleaner output for footnotes. Footnotes now always begin on a new
7475 line, and the final } is on a line by itself only when it needs to
7476 be (i.e. only when the note ends with a Verbatim environment).
7477 + Added writer options to state, so state doesn't need to be passed as
7478 a parameter.
7479 + Text wrapping now provided, using wrapTeXIfNeeded.
7481 * ConTeXt writer: many improvements for more idiomatic ConTeXt output
7482 (thanks to Idris Samawi Hamid for suggestions).
7484 + PrettyPrint module now used for output.
7485 + Writer options are now in state, so they don't have to be passed as
7486 a parameter.
7487 + Text wrapping now provided, using wrapTeXIfNeeded.
7488 + Better treatment of footnotes: footnotes are always on lines by
7489 themselves, and the final } is on a line by itself only when
7490 it needs to be (after \stoptyping).
7491 + Use \subject, \subsubject, ... or \section, \subsection, ... for headings,
7492 depending on whether --number-sections option is selected.
7493 + Extra blank line inserted after \stopitemize
7494 + Use new, "official" definition of blockquote environment. Also, use
7495 blank line after \startblockquote to balance blank line at the end.
7496 + Both itemized and enumerated lists are now generated using
7497 \start-stopitemize, with appropriate options. Removed definitions
7498 of ltxenum and ltxitem, which are no longer needed. Provided
7499 defaults for itemized lists in the preamble. State keeps track of
7500 ordered list level, so that when default numbering is specified,
7501 the appropriate scheme can be used.
7502 + Changed \useurl to \useURL.
7503 + Changed link color from red to blue.
7504 + Use \subsubsubsubsection etc., since these are supported
7505 (up to at least sub x 5).
7507 * Text.Pandoc.Shared:
7509 + Save and restore position in parseFromString, so that accurate
7510 error messages can be given.
7511 + Improved efficiency of romanNumeral parser.
7512 + Added wrappedTeX and wrapTeXIfNeeded functions. These ensure
7513 that footnotes occur on lines by themselves (to make them
7514 easier to see and move) and do not screw up line wrapping.
7516 * Text.Pandoc.UTF8: modified fromUTF8 to strip out the BOM
7517 if present. Windows Notepad and other applications insert a
7518 BOM at the beginning of a UTF8 file.
7520 * Main.hs (tabFilter): Treat '\r' at end of line as newline (in
7521 addition to "\r\n" and '\n').
7523 * Added a writer option for wrapped text and a command-line option
7524 '--no-wrap', which disables text wrapping and minimizes whitespace
7525 in HTML. (Resolves Issue #26.)
7527 + Added support for '--no-wrap' to Main.hs.
7528 + Added wrapIfNeeded function to Text.Pandoc.Shared.
7529 + Use wrapIfNeeded instead of wrapped in the RST, Man, Docbook, and
7530 Markdown writers.
7531 + Added render and renderFragment helpers to HTML writer.
7533 * Modified html2markdown to run tidy only if the HTML cannot be
7534 parsed. Previously html2markdown piped all input through tidy
7535 before passing it to pandoc. This caused problems on certain pages
7536 (e.g. http://daringfireball.com/markdown) which have well-formed
7537 XHTML that causes tidy to choke. The solution is to pipe through
7538 tidy only if pandoc cannot parse the input by itself. This means
7539 that a temp file is now always used, even when input comes from a
7540 local file or standard input.
7542 * Removed 'version' constant from Main.hs; added 'pandocVersion' to
7543 Text.Pandoc library.
7545 * pandoc.cabal:
7547 + Modified to work with GHC 6.8 and Cabal configurations. (For GHC
7548 6.8, pretty and containers must be added to Build-Depends, and it
7549 is desirable to use the -O2 compiler option.) Cabal configurations
7550 allows one to select options depending on the compiler version.
7551 For GHC 6.6, the splitBase option can be disabled.
7552 + pandoc.cabal.ghc66 is provided for users with older versions of
7553 Cabal, which do not support configurations.
7554 + Use Ghc-Prof-Options to ensure that '-auto-all' is used when
7555 '--enable-(executable|library)-profiling' is specified. Updated
7556 PROFILING instructions accordingly.
7558 * Makefile:
7560 + Makefile now checks GHC version. If GHC is 6.6, pandoc.cabal.ghc66
7561 is copied to pandoc.cabal, and the old pandoc.cabal is copied
7562 to pandoc.cabal.orig. Otherwise, pandoc.cabal is copied to
7563 pandoc.cabal.orig but otherwise unmodified. This way, the Makefile
7564 will work properly with either GHC 6.6 or 6.8.
7565 + Changed BUILDCONF to point to dist/setup-config, not .setup-config.
7566 This is where current versions of Cabal put it.
7567 + Added $(BUILDCMD) target, so setup doesn't get compiled every time.
7568 + Removed dependency of templates on ./templates, which is circular
7569 now that templates is a subdirectory of the top-level.
7571 * MacPorts Portfile:
7573 + Modified to install the pandoc library in addition to programs.
7574 + Installation must be done manually rather than using Makefile's
7575 install-all.
7576 + Note that the library must be registered in the activate phase,
7577 after the library files have been copied out of the destroot.
7578 Cabal generates a 'register.sh' script that will do this.
7580 * debian/control: Added libghc6-network-dev, libghc6-xhtml-dev, and
7581 libghc6-mtl-dev as dependencies for libghc6-pandoc-dev.
7582 Closes: #445235
7584 * debian/rules: Converted to UTF-8.
7586 * Changed pandoc home page to http://johnmacfarlane.net/pandoc/.
7588 * Updated ASCIIMathML.js to latest version.
7590 * Directory structure:
7592 + Moved everything from src into the top-level directory.
7593 + Changed references to source directory in Makefile and
7594 pandoc.cabal.*.
7595 + Moved ASCIIMathML.js, headers, and ui into templates directory.
7596 + Modified fillTemplates.pl to reflect new paths.
7598 [ Recai Oktaş ]
7600 * Makefile: Fixed the issue of having two copies of the library
7601 documentation under some usage scenarios.
7603 * Replaced 'ghc' with '$(GHC)' in Makefile, and made GHC
7604 and GHC_PKG configurable through the environment, to support
7605 unusual ghc installations. For example:
7606 GHC=/opt/ghc/bin/ghc GHC_PKG=/opt/ghc/bin/ghc-pkg make
7608 -- Recai Oktaş <roktas@debian.org> Sun, 07 Oct 2007 20:51:43 +0300
7610pandoc (0.44) unstable; urgency=low
7612 [ John MacFarlane ]
7614 * Fixed bug in HTML writer: when --toc was used, anchors were put around
7615 headers, which is invalid XHTML (block content within inline element).
7616 Now the anchors are put inside the header tags. Resolves Issue #23.
7618 * Added xmlns attribute to html element in html writer tests.
7619 This attribute is added by more recent versions of the
7620 xhtml library (>= 3000), and is required for valid XHTML.
7622 [ Recai Oktaş ]
7624 * On configure, compile 'Setup.hs' to 'setup' and use 'setup' as the build
7625 command instead of 'runhaskell', which, on some platforms (such as s390,
7626 alpha, m68k), throws the following error:
7628 runhaskell Setup.hs configure --prefix=/usr
7629 ghc-6.6.1: not built for interactive use
7631 This causes a serious FTBFS bug. Closes: #440668.
7633 -- Recai Oktaş <roktas@debian.org> Mon, 03 Sep 2007 18:24:02 +0300
7635pandoc (0.43) unstable; urgency=low
7637 [ John MacFarlane ]
7639 * The focus of this release is performance. The markdown parser
7640 is about five times faster than in 0.42, based on benchmarks
7641 with the TextMate manual.
7643 * Main.hs: Replaced CRFilter and tabFilter with single function
7644 tabFilter, which operates on the whole string rather than breaking
7645 it into lines, and handles dos-style line-endings as well as tabs.
7647 * Added separate LaTeX reader and native reader tests; removed
7648 round-trip tests.
7650 * Text.Pandoc.Shared:
7652 + Removed tabsToSpaces and tabsInLine (they were used only in Main.hs.)
7653 + General code cleanup (to elimante warnings when compiling with -Wall.)
7654 + Added 'wrapped' function, which helps wrap text into paragraphs,
7655 using the prettyprinting library.
7656 + Rewrote charsInBalanced and charsInBalanced'.
7657 - Documented restriction: open and close must be distinct characters.
7658 - Rearranged options for greater efficiency.
7659 - Bug fix: Changed inner call to charsInBalanced inside
7660 charsInBalanced' to charsInBalanced'.
7661 + anyLine now requires that the line end with a newline (not eof).
7662 This is a harmless assumption, since we always add newlines to the
7663 end of a block before parsing with anyLine, and it yields a 10% speed
7664 boost.
7665 + Removed unnecessary 'try' in anyLine.
7666 + Removed unneeded 'try' from romanNumeral parser.
7667 + Use notFollowedBy instead of notFollowedBy' in charsInBalanced.
7668 + Removed unneeded 'try' in parseFromString.
7669 + Removed unneeded 'try' from stringAnyCase. (Now it behaves
7670 like 'string'.)
7671 + Changed definition of 'enclosed' in Text.Pandoc.Shared so that
7672 'try' is not automatically applied to the 'end' parser. Added
7673 'try' in calls to 'enclosed' where needed. Slight speed increase.
7675 * Writers:
7677 + Replaced individual wrapping routines in RST, Man, and Markdown
7678 writers with 'wrapped' from Text.Pandoc.Shared.
7679 + Rewrote LaTeX writer to use the prettyprinting library,
7680 so we get word wrapping, etc.
7681 + Modified latex writer tests for new latex writer using prettyprinter.
7682 + Fixed bug in LaTeX writer: autolinks would not cause
7683 '\usepackage{url}' to be put in the document header. Also, changes
7684 to state in enumerated list items would be overwritten.
7685 + In Markdown writer, escape paragraphs that begin with ordered list
7686 markers, so they don't get interpreted as ordered lists.
7688 * Text.Pandoc.Reades.LaTeX:
7690 + Fixed bug in LaTeX reader, which wrongly assumed that the roman
7691 numeral after "enum" in "setcounter" would consist entirely of
7692 "i"s. 'enumiv' is legitimate.
7693 + LaTeX command and environment names can't contain numbers.
7694 + Rearranged order of parsers in inline for slight speed improvement.
7695 + Added '`' to special characters and 'unescapedChar'.
7697 * Text.Pandoc.Readers.RST:
7699 + Removed unneeded try's in RST reader; also minor code cleanup.
7700 + Removed tabchar.
7701 + Rearranged parsers in inline (doubled speed).
7703 * Text.Pandoc.Readers.Markdown:
7705 + Skip notes parsing if running in strict mode. (This yields a nice
7706 speed improvement in strict mode.)
7707 + Simplify autolink parsing code, using Network.URI to test for
7708 URIs. Added dependency on network library to debian/control and
7709 pandoc.cabal.
7710 + More perspicuous definition of nonindentSpaces.
7711 + Removed unneeded 'try' in 'rawLine'.
7712 + Combined linebreak and whitespace into a new whitespace parser, to
7713 avoid unnecessary reparsing of space characters.
7714 + Removed unnecessary 'try' in 'codeBlock', 'ellipses', 'noteMarker',
7715 'multilineRow', 'dashedLine', 'rawHtmlBlocks'.
7716 + Use lookAhead in parsers for setext headers and definition lists
7717 to see if the next line begins appropriately; if not, don't waste
7718 any more time parsing.
7719 + Don't require blank lines after code block. (It's sufficient to
7720 end code block with a nonindented line.)
7721 + Changed definition of 'emph': italics with '_' must not
7722 be followed by an alphanumeric character. This is to help
7723 prevent interpretation of e.g. `[LC_TYPE]: my_type` as
7724 `[LC<em>TYPE]:my</em>type`.
7725 + Improved Markdown.pl-compatibility in referenceLink: the two parts
7726 of a reference-style link may be separated by one space, but not
7727 more... [a] [link], [not] [a link].
7728 + Fixed markdown inline code parsing so it better accords with
7729 Markdown.pl: the marker for the end of the code section is a clump
7730 of the same number of `'s with which the section began, followed
7731 by a non-` character. So, for example,
7732 ` h ``` i ` -> `<code>h ``` i</code>`.
7733 + Split 'title' into 'linkTitle' and 'referenceTitle', since the
7734 rules are slightly different.
7735 + Rewrote 'para' for greater efficiency.
7736 + Rewrote link parsers for greater efficiency.
7737 + Removed redundant 'referenceLink' in definition of inline (it's
7738 already in 'link').
7739 + Refactored escapeChar so it doesn't need 'try'.
7740 + Refactored hrule for performance in Markdown reader.
7741 + More intelligent rearranging of 'inline' so that most frequently
7742 used parsers are tried first.
7743 + Removed tabchar parser, as whitespace handles tabs anyway.
7745 * Text.Pandoc.CharacterReferences:
7747 + Refactored.
7748 + Removed unnecessary 'try's for a speed improvement.
7749 + Removed unnecessary '&' and ';' from the entity table.
7751 * Build process:
7753 + Makefile: Get VERSION from cabal file, not Main.hs.
7754 + Modified MacPorts Portfile:
7755 - Depend on haddock
7756 - Build and install libraries and library documentation in
7757 addition to pandoc executable
7758 - Added template item for md5 sum in Portfile.in.
7759 - Incorporated changes from MacPorts repository (r28278).
7760 + FreeBSD port: Don't try to generate distinfo in Makefile.
7761 It can be made using 'make makesum' in FreeBSD.
7762 + Make both freebsd and macports targets depend on tarball.
7764 * Website and documentation:
7766 + Updated INSTALL instructions.
7767 + Added pandocwiki demo to website.
7768 + Removed local references to Portfile, since pandoc is now in the
7769 MacPorts repository.
7771 -- Recai Oktaş <roktas@debian.org> Sun, 02 Sep 2007 15:50:11 +0300
7773pandoc (0.42) unstable; urgency=low
7775 [ John MacFarlane ]
7777 * Main.hs: Use utf8 conversion on the extra files loaded with
7778 the -H, -C, -B, and -A options. This fixes problems with unicode
7779 characters in these files.
7781 * Exposed Text.Pandoc.ASCIIMathML, since it is imported in
7782 Text.Pandoc.Readers.HTML and without it we get a linking error when
7783 using the library.
7785 * Markdown reader:
7787 + Added new rule for enhanced markdown ordered lists: if the list
7788 marker is a capital letter followed by a period (including a
7789 single-letter capital roman numeral), then it must be followed by
7790 at least two spaces. The point of this is to avoid accidentally
7791 treating people's initials as list markers: a paragraph might begin,
7792 "B. Russell was an English philosopher," and this shouldn't be
7793 treated as a list. Documented change in README.
7794 + Blocks that start with "p. " and a digit are no longer treated
7795 as ordered lists (it's a page number).
7796 + Added a needed 'try' to listItem.
7797 + Removed check for a following setext header in endline.
7798 A full test is too inefficient (doubles benchmark time), and the
7799 substitute we had before is not 100% accurate.
7800 + Don't use Code elements for autolinks if --strict specified.
7802 * LaTeX writer: When a footnote ends with a Verbatim environment, the
7803 close } of the footnote cannot occur on the same line or an error occurs.
7804 Fixed this by adding a newline before the closing } of every footnote.
7806 * HTML writer:
7807 + Removed incorrect "{}" around style information in HTML tables.
7808 Column widths now work properly in HTML.
7809 + If --strict option is specified (and --toc is not), don't include
7810 identifiers in headers, for better Markdown compatibility.
7812 * Build process:
7814 + Separated $(web_dest) and website targets.
7815 + In website, index.txt is now constructed from template index.txt.in.
7816 + Added freebsd target to Markefile. This creates the freebsd Makefile
7817 from Makefile.in, and creates distinfo. Removed Makefile and distinfo
7818 from the repository.
7819 + Added macport target to Makefile. Portfile is built from template
7820 Portfile.in.
7821 + Removed OSX package targets. (Too many difficulties involving
7822 dependencies on dynamic libraries.)
7823 + More complete INSTALL instructions for all architectures.
7825 * Website:
7826 + Added a programming demo, pandocwiki.
7828 [ Recai Oktaş ]
7830 * Do not forget to close pandoc's ITP. Closes: #391666
7832 -- Recai Oktaş <roktas@debian.org> Sun, 26 Aug 2007 22:51:32 +0300
7834pandoc (0.41) unstable; urgency=low
7836 [ John MacFarlane ]
7838 * Fixed bugs in HTML reader:
7839 + Skip material at end *only if* `</html>` is present (previously,
7840 only part of the document would be parsed if an error was
7841 found; now a proper error message is given).
7842 + Added new constant eitherBlockOrInline with elements that may
7843 count either as block-level or as inline. Modified isInline and
7844 isBlock to take this into account.
7845 + Modified rawHtmlBlock to accept any tag (even an inline tag):
7846 this is innocuous, because rawHtmlBlock is tried only if a regular
7847 inline element can't be parsed.
7848 + Added a necessary 'try' in definition of 'para'.
7850 * Fixed bug in markdown ordered list parsing. The problem was that
7851 anyOrderedListStart did not check for a space following the
7852 ordered list marker. So in 'A.B. 2007' the parser would be
7853 expecting a list item, but would not find one, causing an error.
7854 Fixed a similar bug in the RST reader. Resolves Issue #22.
7856 * Refactored RST and Markdown readers using parseFromString.
7858 * LaTeX reader will now skip anything after \end{document}.
7860 * Fixed blockquote output in markdown writer: previously, block
7861 quotes in indented contexts would be indented only in the first
7862 line.
7864 * Added note to INSTALL about variations in versions of the xhtml
7865 library that can lead to failed tests (thanks to Leif LeBaron).
7867 -- Recai Oktaş <roktas@debian.org> Sun, 19 Aug 2007 23:26:07 +0300
7869pandoc (0.4) unstable; urgency=low
7871 [ John MacFarlane ]
7873 * Added two new output formats: groff man pages and ConTeXt. By
7874 default, output files with extensions ".ctx" and ".context" are
7875 assumed to be ConTeXt, and output files with single-digit extensions
7876 are assumed to be man pages.
7878 * Enhanced ordered lists (documented in README, under Lists):
7879 + The OrderedList block element now stores information about
7880 list number style, list number delimiter, and starting number.
7881 + The readers parse this information when possible.
7882 + The writers use this information to style ordered lists.
7883 + The enhancement can be disabled using the --strict option.
7885 * Added support for tables (with a new Table block element). Two kinds
7886 of tables are supported: a simple table with one-line rows, and a
7887 more complex variety with multiline rows. All output formats are
7888 supported, but only markdown tables are parsed at the moment. The
7889 syntax is documented in README.
7891 * Added support for definition lists (with a new DefinitionList block
7892 element). All output and input formats are supported. The syntax is
7893 documented in README.
7895 * Added support for superscripts and subscripts (with new Superscript
7896 and Subscript inline elements). All input and output
7897 formats. The syntax is documented in README.
7899 * Added support for strikeout (with a new Strikeout inline element).
7900 All input and output formats are supported. Thanks to Bradley Kuhn,
7901 who contributed a patch. The syntax is documented in README. Resolves
7902 Issue #18.
7904 * Added a --toc|--table-of-contents option. This causes an automatically
7905 generated table of contents (or an instruction that creates one) to
7906 be inserted at the beginning of the document. Not supported in S5,
7907 DocBook, or man page writers.
7909 * Modified the -m|--asciimathml option:
7911 + If an optional URL argument is provided, a link is inserted
7912 instead of the contents of the ASCIIMathML.js script.
7913 + Nothing is inserted unless the document actually contains
7914 LaTeX math.
7916 * Removed Blank block element as unnecessary.
7918 * Removed Key and Note blocks from the Pandoc data structure. All
7919 links are now stored as explicit links, and note contents are
7920 stored with the (inline) notes.
7922 + All link Targets are now explicit (URL, title) pairs; there
7923 is no longer a 'Ref' target.
7924 + Markdown and RST parsers now need to extract data from key and
7925 note blocks and insert them into the relevant inline elements.
7926 Other parsers have been simplified, since there is no longer any need
7927 to construct separate key and note blocks.
7928 + Markdown, RST, and HTML writers need to construct lists of
7929 notes; Markdown and RST writers need to construct lists of link
7930 references (when the --reference-links option is specified); and
7931 the RST writer needs to construct a list of image substitution
7932 references. All writers have been rewritten to use the State monad
7933 when state is required.
7934 + Several functions (generateReference, keyTable,
7935 replaceReferenceLinks, replaceRefLinksBlockList, and some auxiliaries
7936 used by them) have been removed from Text.Pandoc.Shared, since
7937 they are no longer needed. New functions and data structures
7938 (Reference, isNoteBlock, isKeyBlock, isLineClump) have been
7939 added. The functions inTags, selfClosingTag, inTagsSimple, and
7940 inTagsIndented have been moved to the DocBook writer, since that
7941 is now the only module that uses them. NoteTable is now exported
7942 in Text.Pandoc.Shared.
7943 + Added stateKeys and stateNotes to ParserState; removed stateKeyBlocks,
7944 stateKeysUsed, stateNoteBlocks, stateNoteIdentifiers, stateInlineLinks.
7945 + Added writerNotes and writerReferenceLinks to WriterOptions.
7947 * Added Text.Pandoc module that exports basic readers, writers,
7948 definitions, and utility functions. This should export everything
7949 needed for most uses of Pandoc libraries. The haddock documentation
7950 includes a short example program.
7952 * Text.Pandoc.ASCIIMathML is no longer an exported module.
7954 * Added Text.Pandoc.Blocks module to help in printing markdown
7955 and RST tables. This module provides functions for working with
7956 fixed-width blocks of text--e.g., placing them side by side, as
7957 in a table row.
7959 * Refactored to avoid reliance on Haskell's Text.Regex library, which
7960 (a) is slow, and (b) does not properly handle unicode. This fixed
7961 some strange bugs, e.g. in parsing S-cedilla, and improved performance.
7963 + Replaced 'gsub' with a general list function 'substitute'
7964 that does not rely on Text.Regex.
7965 + Rewrote extractTagType in HTML reader so that it doesn't use
7966 regexs.
7967 + In Markdown reader, replaced email regex test with a custom email
7968 autolink parser (autoLinkEmail). Also replaced selfClosingTag regex
7969 with a custom function isSelfClosingTag.
7970 + Modified Docbook writer so that it doesn't rely on Text.Regex for
7971 detecting 'mailto' links.
7972 + Removed escapePreservingRegex and reamped entity-handling
7973 functions in Text.Pandoc.Shared and Text.Pandoc.CharacterReferences to
7974 avoid reliance on Text.Regex (see below on character reference
7975 handling changes).
7977 * Renamed Text.Pandoc.Entities as Text.Pandoc.CharacterReferences.
7979 * Changed handling of XML entities. Entities are now parsed (and unicode
7980 characters returned) in the Markdown and HTML readers, rather than being
7981 handled in the writers. In HTML and Docbook writers, UTF-8 is now used
7982 instead of entities for characters above 128. This makes the HTML and
7983 DocBook output much more readable and more easily editable.
7985 + Removed sgmlHexEntity, sgmlDecimalEntity, sgmlNamedEntity, and
7986 sgmlCharacterEntity regexes from Text.Pandoc.Shared.
7987 + Renamed escapeSGMLChar to escapeCharForXML. Added escapeStringForXML.
7988 Moved both functions to Text.Pandoc.Writers.Docbook.
7989 + Added characterReference parser to Text.Pandoc.CharacterReferences.
7990 This parses a string and return a unicode character.
7991 + Rewrote decodeCharacterReferences to use the new parser instead of
7992 Text.Regex.
7993 + Added new charRef parser for Markdown and HTML, which replaces the
7994 old 'entity' parser. Added '&' as a special character in Markdown reader.
7995 + Modified HTML and Markdown readers to call decodeEntities on all raw
7996 strings (e.g. authors, dates, link titles), to ensure that no
7997 unprocessed entities are included in the native representation of
7998 the document. (In the HTML reader, most of this work is done by a
7999 change in extractAttributeName.)
8000 + In XML and Markdown output, escape unicode nonbreaking space as '&nbsp;',
8001 since a unicode non-breaking space is impossible to distinguish visually
8002 from a regular space. (Resolves Issue #3.)
8003 + Removed encodeEntitiesNumerical.
8004 + Use Data.Map for entityTable and (new) reverseEntityTable, for a
8005 slight performance boost over the old association list.
8006 + Removed unneeded decodeEntities from 'str' parser in HTML and
8007 Markdown readers.
8009 * Text.Pandoc.UTF8: Renamed encodeUTF8 to toUTF8, decodeUTF8 to
8010 fromUTF8, for clarity.
8012 * Replaced old haskell98 module names replaced by hierarchical module
8013 names, e.g. List by Data.List. Removed haskell98 from dependencies
8014 in pandoc.cabal, and added mtl (needed for state monad). Substituted
8015 xhtml for html.
8017 * Refactored and cleaned up character escaping in writers, using
8018 backslashEscapes and escapeStringUsing functions.
8020 * Instead of adding "\n\n" to the end of an input string in Main.hs,
8021 this is now done in the readers. This makes the libraries behave
8022 the way you'd expect from the pandoc program. Resolves Issue #10.
8024 * URLs and email addresses in autolinks are now typeset as Code.
8026 * In Main.hs, changed putStr to putStrLn -- mainly because MacOS X
8027 doesn't display the whole output unless there's a line ending.
8029 * Major code cleanup in all modules, for greater consistency, concision,
8030 and readability.
8032 * HTML reader:
8034 + Fixed several bugs (extractTagType, attribute parsing).
8035 + Remove Null blocks in lists of blocks when possible.
8036 + Allow HTML comments as raw HTML inline.
8038 * Markdown reader:
8040 + Ordered list items may no longer begin with uppercase letters, or
8041 letters greater than 'n'. (This prevents first initials and page
8042 reference, e.g. 'p. 400', from being parsed as beginning lists.)
8043 Also, numbers beginning list items may no longer end with ')',
8044 which is now allowed only after letters. Note: These changes
8045 may cause documents to be parsed differently. Users should take
8046 care in upgrading.
8047 + Changed autoLink parsing to conform better to Markdown.pl's
8048 behavior. `<google.com>` is not treated as a link, but
8049 `<http://google.com>`, `<ftp://google.com>`, and
8050 `<mailto:google@google.com>` are.
8051 + Cleaned up handling of embedded quotes in link titles. Now these are
8052 stored as a '"' character, not as '&quot;'.
8053 + Use lookAhead parser for the 'first pass' (looking for reference keys),
8054 instead of parsing normally, then using setInput to reset input. This
8055 yields a slight performance boost.
8056 + Fixed several bugs in smart quote recognition.
8057 + Fixed bug in indentSpaces (which didn't properly handle
8058 cases with mixed spaces and tabs).
8059 + Consolidated 'text', 'special', and 'inline' into 'inline'.
8060 + Fixed bug which allowed URL and title to be separated by multiple blank
8061 lines in links and reference keys. They can be on separate lines but
8062 can't have blank lines between them.
8063 + Correctly handle bracketed text inside inline footnotes and links,using
8064 new function inlinesInBalanced. Resolves Issue #14.
8065 + Fixed bug in footnotes: links in footnotes were not being
8066 processed. Solution: three-stage parse. First, get all the
8067 reference keys and add information to state. Next, get all the
8068 notes and add information to state. (Reference keys may be needed
8069 at this stage.) Finally, parse everything else.
8070 + Replaced named constants like 'emphStart' with literals.
8071 + Removed an extra occurance of escapedChar in definition of inline.
8073 * RST reader:
8075 + Allow the URI in a RST hyperlink target to start on the line
8076 after the reference key.
8077 + Added 'try' in front of 'string', where needed, or used a different
8078 parser. This fixes a bug where ````` would not be correctly parsed as
8079 a verbatim `.
8080 + Fixed slow performance in parsing inline literals in RST reader. The
8081 problem was that ``#`` was seen by 'inline' as a potential link or image.
8082 Fix: inserted 'notFollowedBy (char '`')' in link parsers.
8083 Resolves Issue #8.
8084 + Use lookAhead instead of getInput/setInput in RST reader. Removed
8085 unneeded getState call, since lookAhead automatically saves and
8086 restores the parser state.
8087 + Allow hyperlink target URIs to be split over multiple lines, and
8088 to start on the line after the reference. Resolves Issue #7.
8089 + Fixed handling of autolinks.
8091 * LaTeX reader:
8093 + Replaced 'choice [(try (string ...), ...]' idiom with 'oneOfStrings',
8094 for clarity.
8095 + Added clauses for tilde and caret. Tilde is \ensuremath{\sim}, and
8096 caret is \^{}, not \^ as before.
8097 + Added parsing for \url.
8098 + Parse \texttt{} as code, provided there's nothing fancy inside.
8100 * HTML writer:
8102 + Modified HTML writer to use the Text.XHtml library. This results
8103 in cleaner, faster code, and it makes it easier to use Pandoc in
8104 other projects, like wikis, which use Text.XHtml. Two functions are
8105 now provided, writeHtml and writeHtmlString: the former outputs an
8106 Html structure, the latter a rendered string. The S5 writer is also
8107 changed, in parallel ways (writeS5, writeS5String).
8108 + The Html header is now written programmatically, so it has been
8109 removed from the 'headers' directory. The S5 header is still
8110 needed, but the doctype and some of the meta declarations have
8111 been removed, since they are written programatically. This change
8112 introduces a new dependency on the xhtml package.
8113 + Fixed two bugs in email obfuscation involving improper escaping
8114 of '&' in the `<noscript>` section and in `--strict` mode. Resolves
8115 Issue #9.
8116 + Fixed another bug in email obfuscation: If the text to be obfuscated
8117 contains an entity, this needs to be decoded before obfuscation.
8118 Thanks to thsutton for the patch. Resolves Issue #15.
8119 + Changed the way the backlink is displayed in HTML footnotes.
8120 Instead of appearing on a line by itself, it now generally
8121 appears on the last line of the note. (Exception: when the
8122 note does not end with a Plain or Para block.) This saves space
8123 and looks better.
8124 + Added automatic unique identifiers to headers:
8125 - The identifier is derived from the header via a scheme
8126 documented in README.
8127 - WriterState now includes a list of header identifiers and a table
8128 of contents in addition to notes.
8129 - The function uniqueIdentifiers creates a list of unique identifiers
8130 from a list of inline lists (e.g. headers).
8131 - This list is part of WriterState and gets consumed by blockToHtml
8132 each time a header is encountered.
8133 + Include CSS for .strikethrough class in header only if strikethrough
8134 text appears in the document.
8135 + If the 'strict' option is specified, elements that do not appear in
8136 standard markdown (like definition lists) are passed through as
8137 raw HTML.
8138 + Simplified treatment of autolinks, using pattern matching instead of
8139 conditionals.
8141 * Markdown writer:
8143 + Links in markdown output are now printed as inline links by default,
8144 rather than reference links. A --reference-links option has been added
8145 that forces links to be printed as reference links. Resolves Issue #4.
8146 + Use autolinks when possible. Instead of `[site.com](site.com)`,
8147 use `<site.com>`.
8149 * LaTeX writer:
8151 + Rewrote to use the State monad. The preamble now includes only those
8152 packages that are actually required, given the document's content.
8153 Thus, for example, if strikeout is not used, ulem is not required.
8154 Modified LaTeXHeader accordingly.
8155 + Modified LaTeX writer to insert '\,' between consecutive quotes.
8156 + Removed unused function tableRowColumnWidths.
8157 + Simplified code for escaping special characters.
8158 + Leave extra blank line after \maketitle.
8159 + Include empty '\author{}' when no author specified to avoid LaTeX
8160 errors.
8161 + Include fancyvrb code in header only if needed -- that is, only
8162 if there is actually code in a footnote.
8163 + Use \url{} for autolinks.
8164 + Include [mathletters] option in ucs package, so that basic unicode
8165 Greek letters will work correctly.
8167 * RST writer: Force blank line before lists, so that sublists will
8168 be handled correctly.
8170 * Docbook writer: Fixed a bug: email links with text, like
8171 [foo](me@bar.baz), were being incorrectly treated as autolinks.
8173 * Removed Text.ParserCombinators.Pandoc and moved all its functions to
8174 Text.Pandoc.Shared.
8176 * Text.Pandoc.Shared:
8178 + Added defaultWriterOptions.
8179 + Added writerTableOfContents to WriterOptions.
8180 + Added writerIgnoreNotes option to WriterOptions. This is needed
8181 for processing header blocks for a table of contents, since notes on
8182 headers should not appear in the TOC.
8183 + Added prettyprinting for native Table format.
8184 + Removed some unneeded imports.
8185 + Moved escape and nullBlock parsers from
8186 Text.ParserCombinators.Pandoc, since the latter is for
8187 general-purpose parsers that don't depend on Text.Pandoc.Definition.
8188 + Moved isHeaderBlock from Text.Pandoc.Writers.HTML.
8189 + Moved Element, headerAtLeast, and hierarchicalize from Docbook
8190 writer, because HTML writer now uses these in constructing a table
8191 of contents.
8192 + Added clauses for new inline elements (Strikeout, Superscript,
8193 Subscript) to refsMatch.
8194 + Removed backslashEscape; added new functions escapeStringUsing and
8195 backslashEscapes.
8196 + Moved failIfStrict from markdown reader, since it is now used also
8197 by the HTML reader.
8198 + Added a 'try' to the definition of indentSpaces.
8199 + In definition of 'reference', added check to make sure it's not a note
8200 reference.
8201 + Added functions: camelCaseToHyphenated, toRomanNumeral,
8202 anyOrderedListMarker, orderedListmarker, orderedListMarkers,
8203 charsInBalanced', withHorizDisplacement, romanNumeral
8204 + Fixed a bug in the anyLine parser. Previously it would parse an empty
8205 string "", but it should fail on an empty string, or we get an error
8206 when it is used inside "many" combinators.
8207 + Removed followedBy' parser, replacing it with the lookAhead parser from
8208 Parsec.
8209 + Added some needed 'try's before multicharacter parsers, especially in
8210 'option' contexts.
8211 + Removed the 'try' from the 'end' parser in 'enclosed', so that
8212 'enclosed' behaves like 'option', 'manyTill', etc.
8213 + Added lineClump parser, which parses a raw line block up to and
8214 including any following blank lines.
8215 + Renamed parseFromStr to parseFromString.
8216 + Added a 'try' to the 'end' parser in 'enclosed'. This makes errors in
8217 the use of 'enclosed' less likely. Removed some now-unnecessary 'try's
8218 in calling code.
8219 + Removed unneeded 'try' in blanklines.
8220 + Removed endsWith function and rewrote calling functions to use
8221 isSuffixOf instead.
8222 + Added >>~ combinator.
8223 + Fixed bug in normalizeSpaces: Space:Str "":Space should compress to
8224 Space.
8226 * Refactored runtests.pl; added separate tests for tables.
8228 * Shell scripts:
8230 + Added -asxhtml flag to tidy in html2markdown. This will
8231 perhaps help the parser, which expects closing tags.
8232 + Modified markdown2pdf to run pdflatex a second time if --toc or
8233 --table-of-contents was specified; otherwise the table of
8234 contents won't appear.
8235 + Modified markdown2pdf to print a helpful message if the 'ulem'
8236 LaTeX package is required and not found.
8238 * Changes to build process:
8240 + Dropped support for compilation with GHC 6.4. GHC 6.6 or higher
8241 is now required.
8242 + Removed cabalize and Pandoc.cabal.in. The repository now contains
8243 pandoc.cabal itself.
8244 + Pandoc.cabal has been changed to pandoc.cabal, because HackageDB
8245 likes the cabal file to have the same name as the tarball.
8246 + Expanded and revised the package description in pandoc.cabal.
8247 Revised the package synopsis.
8248 + The tarball built by 'make tarball' now contains files built from
8249 templates (including man pages and shell scripts), so pandoc can
8250 be built directly using Cabal tools, without preprocessing.
8251 + Executable binaries are now stripped before installing.
8252 + Man pages are now generated from markdown sources, using pandoc's
8253 man page writer.
8254 + Use HTML version of README (instead of RTF) in Mac OS X installer.
8255 + Instead of testing for the existence of a pandoc symlink in build-exec,
8256 use ln -f.
8258 * Documentation:
8260 + Updated README and man pages with information on new features.
8261 + Updated INSTALL instructions with some useful clarifications and
8262 links.
8263 + Updated web content.
8265 * Added FreeBSD port.
8267 [ Recai Oktaş ]
8269 * debian/control:
8271 + Changed pandoc's Build-Depends to include libghc6-mtl-dev and
8272 libghc6-xhtml-dev. Removed libghc6-html-dev.
8273 + Suggest texlive-latex-recommended | tetex-extra instead of
8274 tetex-bin. This brings in fancyvrb and unicode support.
8276 -- Recai Oktaş <roktas@debian.org> Tue, 16 Jan 2007 00:37:21 +0200
8278pandoc (0.3) unstable; urgency=low
8280 [ John MacFarlane ]
8282 * Changes in pandoc options:
8284 + Allow options to follow or precede arguments.
8285 + Changed '--smartypants' to '--smart' and adjusted symbols accordingly.
8286 + Added '--strict' option.
8287 + Added '-o/--output' option.
8288 + Added '--dump-args' and '--ignore-args' options (for use in wrappers).
8289 + Modified '-v' and '-h' output to go to STDERR, not STDOUT, and return
8290 error conditions. This is helpful for writing wrappers.
8291 + Added copyright message to '-v' output, modeled after FSF messages.
8292 + Reformatted usage message so that it doesn't wrap illegibly.
8293 + Removed extra blanks after '-h' and '-D' output.
8295 * Added docbook writer.
8297 * Added implicit setting of default input and output format based
8298 on input and output filename extensions. These defaults are
8299 overridden if explicit input and output formats are specified using
8300 '-t', '-f', '-r', or '-w' options. Documented in pandoc(1) man page
8301 and README.
8303 * Allow ordered list items to begin with (single) letters, as well
8304 as numbers. The list item marker may now be terminated either by
8305 '.' or by ')'. This extension to standard markdown is documented
8306 in README.
8308 * Revised footnote syntax. (See README for full details.) The
8309 '[^1]' format now standard in markdown extensions is supported,
8310 as are inline footnotes with this syntax: '^[My note.]'.
8311 The earlier footnote syntax '^(1)' is no longer supported.
8313 * Improved HTML representation of footnotes. All footnotes
8314 are now auto-numbered and appear in an ordered list at the
8315 end of the HTML document. Since the default appearance is now
8316 acceptable, the old footnote styles have been removed from the
8317 HTML header.
8319 * Bug fixes:
8321 + Fixed a serious bug in the markdown, LaTeX, and RST readers.
8322 These readers ran 'runParser' on processed chunks of text to handle
8323 embedded block lists in lists and quotation blocks. But then
8324 any changes made to the parser state in these chunks was lost,
8325 as the state is local to the parser. So, for example, footnotes
8326 didn't work in quotes or list items. The fix: instead of calling
8327 runParser on some raw text, use setInput to make it the input, then
8328 parse it, then use setInput to restore the input to what it was
8329 before. This is shorter and more elegant, and it fixes the problem.
8330 + Fixed bug in notFollowedBy' combinator (adding 'try' before
8331 'parser'). Adjusted code that uses this combinator accordingly.
8332 + Fixed bug in RTF writer that caused improper indentation on
8333 footnotes occurring in indented blocks like lists.
8334 + Fixed parsing of metadata in LaTeX reader. Now the title, author,
8335 and date are parsed correctly. Everything else in the preamble
8336 is skipped.
8337 + Modified escapedChar in LaTeX reader to allow a '\' at the end of a
8338 line to count as escaped whitespace.
8339 + Modified LaTeX reader to produce inline links rather than reference
8340 links. Otherwise, links in footnotes aren't handled properly.
8341 + Fixed handling of titles in links in Markdown reader, so that
8342 embedded quotation marks are now handled properly.
8343 + Fixed Markdown reader's handling of embedded brackets in links.
8344 + Fixed Markdown reader so that it only parses bracketed material
8345 as a reference link if there is actually a corresponding key.
8346 + Revised inline code parsing in Markdown reader to conform to
8347 markdown standard. Now any number of `s can begin inline code,
8348 which will end with the same number of `s. For example, to
8349 have two backticks as code, write ``` `` ```. Modified Markdown
8350 writer accordingly.
8351 + Fixed bug in text-wrapping routine in Markdown and RST writers.
8352 Now LineBreaks no longer cause wrapping problems.
8353 + Supported hexadecimal numerical entity references as well as
8354 decimal ones.
8355 + Fixed bug in Markdown reader's handling of underscores and other
8356 inline formatting markers inside reference labels: for example,
8357 in '[A_B]: /url/a_b', the material between underscores was being
8358 parsed as emphasized inlines.
8359 + Changed Markdown reader's handling of backslash escapes so that
8360 only non-alphanumeric characters can be escaped. Strict mode
8361 follows Markdown.pl in only allowing a select group of punctuation
8362 characters to be escaped.
8363 + Modified HTML reader to skip a newline following a `<br>` tag.
8364 Otherwise the newline will be treated as a space at the beginning
8365 of the next line.
8367 * Made handling of code blocks more consistent. Previously, some
8368 readers allowed trailing newlines, while others stripped them.
8369 Now, all readers strip trailing newlines in code blocks. Writers
8370 insert a newline at the end of code blocks as needed.
8372 * Modified readers to make spacing at the end of output more consistent.
8374 * Minor improvements to LaTeX reader:
8376 + '\thanks' now treated like a footnote.
8377 + Simplified parsing of LaTeX command arguments and options.
8378 commandArgs now returns a list of arguments OR options (in
8379 whatever order they appear). The brackets are included, and
8380 a new stripFirstAndLast function is provided to strip them off
8381 when needed. This fixes a problem in dealing with \newcommand
8382 and \newenvironment.
8384 * Revised RTF writer:
8386 + Default font is now Helvetica.
8387 + An '\f0' is added to each '\pard', so that font resizing works
8388 correctly.
8390 * Moved handling of "smart typography" from the writers to the Markdown
8391 and LaTeX readers. This allows great simplification of the writers
8392 and more accurate smart quotes, dashes, and ellipses. DocBook can
8393 now use `<quote>`. The '--smart' option now toggles an option in
8394 the parser state rather than a writer option. Several new kinds
8395 of inline elements have been added: Quoted, Ellipses, Apostrophe,
8396 EmDash, EnDash.
8398 * Changes in HTML writer:
8400 + Include title block in header even when title is null.
8401 + Made javascript obfuscation of emails even more obfuscatory,
8402 by combining it with entity obfuscation.
8404 * Changed default ASCIIMathML text color to black.
8406 * Test suite:
8408 + Added --strip-trailing-cr option to diff in runtests.pl, for
8409 compatibility with Windows.
8410 + Added regression tests with footnotes in quote blocks and lists.
8412 * Makefile changes:
8414 + osx-pkg target creates a Mac OS X package (directory). New osx
8415 directory contains files needed for construction of the package.
8416 + osx-dmg target creates a compressed disk image containing the package.
8417 + win-pkg target creates Windows binary package.
8418 + tarball target creates distribution source tarball.
8419 + website target generates pandoc's website automatically, including
8420 demos. New 'web' directory containts files needed for construction
8421 of the website (which will be created as the 'pandoc' subdirectory
8422 of 'web').
8423 + Makefile checks to see if we're running Windows/Cygwin; if so,
8424 a '.exe' extension is added to each executable in EXECS.
8426 * Removed all wrappers except markdown2pdf and html2markdown.
8428 * Added new wrapper hsmarkdown, to be used as a drop-in replacement
8429 for Markdown.pl. hsmarkdown calls pandoc with the '--strict'
8430 option and disables other options.
8432 * Added code to html2markdown that tries to determine the character
8433 encoding of an HTML file, by parsing the "Content-type" meta tag.
8435 + If the encoding can't be determined, then if the content is local,
8436 the local encoding is used; if it comes from a URL, UTF-8 is used
8437 by default.
8438 + If input is from STDIN, don't try to determine character encoding.
8439 + Encoding can be specified explicitly using '-e' option.
8441 * Improved warning messages in wrappers:
8443 + Print warning if iconv not available
8444 + More user-friendly error messages in markdown2pdf, when
8445 pdflatex fails.
8447 * Code cleanup:
8449 + Renamed 'Text/Pandoc/HtmlEntities' module to
8450 'Text/Pandoc/Entities'. Also changed function names so as
8451 not to be HTML-specific.
8452 + Refactored SGML string escaping functions from HTML and Docbook
8453 writers into Text/Pandoc/Shared. (escapeSGML, stringToSGML)
8454 + Removed 'BlockQuoteContext' from ParserContext, as it isn't
8455 used anywhere.
8456 + Removed splitBySpace and replaced it with a general, polymorphic
8457 splitBy function.
8458 + Refactored LaTeX reader for clarity (added isArg function).
8459 + Converted some CR's to LF's in src/ui/default/print.css.
8460 + Added license text to top of source files.
8461 + Added module data for haddock to source files.
8462 + Reformatted code for consistency.
8464 * Rewrote documentation and man pages. Split README into INSTALL
8465 and README.
8467 * Split LICENSE into COPYING and COPYRIGHT.
8469 * Removed TODO, since we now maintain ToDo on the wiki.
8471 * Made COPYRIGHT in top level a symlink to debian/copyright, to avoid
8472 duplication.
8474 [ Recai Oktaş ]
8476 * Revamped build process to conform to debian standards and created
8477 a proper debian package. Closes: #391666.
8479 * Modified build process to support GHC 6.6.
8481 + The package can still be compiled using GHC 6.4.2, though because
8482 of dependencies the "make deb" target works only with GHC 6.6+.
8483 + The script 'cabalize' is used to create an appropriate
8484 'Pandoc.cabal' from 'Pandoc.cabal.in', depending on the GHC and
8485 Cabal versions.
8487 * Refactored template processing (fillTemplates.pl).
8489 * Modified wrapper scripts to make them more robust and portable.
8490 To avoid code duplication and ensure consistency, wrappers are
8491 generated via a templating system from templates in src/wrappers.
8493 + Wrappers now accept multiple filenames, when appropriate.
8494 + Spaces and tabs allowed in filenames.
8495 + getopts shell builtin is used for portable option parsing.
8496 + Improved html2markdown's web grabber code, making it more robust,
8497 configurable and verbose. Added '-e', '-g' options.
8499 -- Recai Oktaş <roktas@debian.org> Fri, 05 Jan 2007 09:41:19 +0200
8501pandoc (0.2) unstable; urgency=low
8503 * Fixed unicode/utf-8 translation
8505 -- John MacFarlane <jgm@berkeley.edu> Mon, 14 Aug 2006 00:00:00 -0400
8507pandoc (0.1) unstable; urgency=low
8509 * Initial creation of debian package
8511 -- John MacFarlane <jgm@berkeley.edu> Mon, 14 Aug 2006 00:00:00 -0400