3 * Fixed `--self-contained` with Windows paths (#1558).
4 Previously `C:\foo.js` was being wrongly interpreted as a URI.
6 * HTML reader: improved handling of tags that can be block or inline.
7 Previously a section like this would be enclosed in a paragraph,
8 with RawInline for the video tags (since video is a tag that can
9 be either block or inline):
11 <video controls="controls">
12 <source src="../videos/test.mp4" type="video/mp4" />
13 <source src="../videos/test.webm" type="video/webm" />
15 The videos can not be played back on your system.<br/>
16 Try viewing on Youtube (requires Internet connection):
17 <a href="http://youtu.be/etE5urBps_w">Relative Velocity on
22 This change will cause the video and source tags to be parsed
23 as RawBlock instead, giving better output.
24 The general change is this: when we're parsing a "plain" sequence
25 of inlines, we don't parse anything that COULD be a block-level tag.
29 + Be sensitive to user styles. Note that "Hyperlink" is
30 "blacklisted," as we don't want the default underline styling to be
31 inherited by all links by default (Jesse Rosenthal).
32 + Read single paragraph in table cell as `Plain` (Jesse Rosenthal).
33 This makes to docx reader's native output fit with the way the markdown
34 reader understands its markdown output.
36 * Textile writer: Extended the range of cases where native textile
37 tables will be used (as opposed to raw HTML): we now handle any
38 alignment type, but only for simple tables with no captions.
42 + Header is now parsed only if standalone flag is set (Matthew Pickering).
43 + The header is now parsed as meta information. The first line is the
44 `title`, the second is the `author` and third line is the `date`
46 + Corrected formatting of `%%mtime` macro (Matthew Pickering).
47 + Fixed crash when reading from stdin.
49 * EPUB writer: Don't use page-progression-direction in EPUB2, which
50 doesn't support it. Also, if page-progression-direction not specified
51 in metadata, don't include the attribute even in EPUB3; not including it
52 is the same as including it with the value "default", as we did before.
55 * Org writer: Accept example lines with indentation at the beginning
60 + Refactor to use Reader monad (Matthew Pickering).
61 + Avoid using raw HTML in table cells; instead, use `\\`
62 instead of newlines (Jesse Rosenthal).
63 + Properly handle HTML table cell alignments, and use spacing
64 to make the tables look prettier (#1566).
68 + Bibliography entries get `Bibliography` style (#1559).
69 + Implement change tracking (Jesse Rosenthal).
73 + Fixed a bug that caused a table caption to repeat across all pages
75 + Improved vertical spacing in tables and made it customizable using
76 standard lengths set by booktab. See
77 <https://groups.google.com/forum/#!msg/pandoc-discuss/qMu6_5lYy0o/ZAU7lzAIKw0J>
79 + Added `\strut` to fix spacing in multiline tables (Jose Luis Duran).
80 + Use `\tabularnewline` instead of `\\` in table cells (Jose Luis Duran).
81 + Made horizontal rules more flexible (Jose Luis Duran).
85 + Added `MimeType` (type synonym for `String`) and `getMimeTypeDef`.
86 Code cleanups (Artyom Kazak).
90 + LaTeX template: disable microtype protrusion for typewriter font (#1549,
93 * Improved OSX build procedure.
95 * Added `network-uri` flag, to deal with split of `network-uri` from
98 * Fix build dependencies for the `trypandoc` flag, so that they are
99 ignored if `trypandoc` flag is set to False (Gabor Pali).
101 * Updated README to remove outdated claim that `--self-contained`
102 looks in the user data directory for missing files.
108 + Fixed regression which bungled list numbering (#1544), causing
109 all lists to appear as basic ordered lists.
110 + Include row width in table rows (Christoffer Ackelman, Viktor Kronvall).
111 Added a property to all table rows where the sum of column widths
112 is specified in pct (fraction of 5000). This helps persuade Word
113 to lay out the table with the widths we specify.
115 * Fixed a bug in Windows 8 which caused pandoc not to find the
116 `pandoc-citeproc` filter (#1542).
118 * Docx reader: miscellaneous under-the-hood improvements (Jesse Rosenthal).
119 Most significantly, the reader now uses Builder, leading to some
120 performance improvements.
122 * HTML reader: Parse appropriately styled span as SmallCaps.
124 * Markdown writer: don't escape `$`, `^`, `~` when `tex_math_dollars`,
125 `superscript`, and `subscript` extensions, respectively, are
128 * Added `trypandoc` flag to build CGI executable used in the online
131 * Makefile: Added 'quick', 'osxpkg' targets.
133 * Updated README in templates to indicate templates license.
134 The templates are dual-licensed, BSD3 and GPL2+.
140 * Added `docx` as an input format (Jesse Rosenthal). The docx
141 reader includes conversion of native Word equations to pandoc
142 LaTeX `Math` elements. Metadata is taken from paragraphs at the
143 beginning of the document with styles `Author`, `Title`, `Subtitle`,
144 `Date`, and `Abstract`.
146 * Added `epub` as an input format (Matthew Pickering). The epub
147 reader includes conversion of MathML to pandoc LaTeX `Math`
150 * Added `t2t` (Txt2Tags) as an input format (Matthew Pickering).
151 Txt2tags is a lightweight markup format described at
152 <http://txt2tags.org/>.
154 * Added `dokuwiki` as an output format (Clare Macrae).
156 * Added `haddock` as an output format.
158 * Added `--extract-media` option to extract media contained in a zip
159 container (docx or epub) while adjusting image paths to point to the
162 * Added a new markdown extension, `compact_definition_lists`, that
163 restores the syntax for definition lists of pandoc 1.12.x, allowing
164 tight definition lists with no blank space between items, and
165 disallowing lazy wrapping. (See below under behavior changes.)
167 * Added an extension `epub_html_exts` for parsing HTML in EPUBs.
169 * Added extensions `native_spans` and `native_divs` to activate
170 parsing of material in HTML span or div tags as Pandoc Span
171 inlines or Div blocks.
173 * `--trace` now works with the Markdown, HTML, Haddock, EPUB,
174 Textile, and MediaWiki readers. This is an option intended
175 for debugging parsing problems; ordinary users should not need
180 * Changed behavior of the `markdown_attribute` extension, to bring
181 it in line with PHP markdown extra and multimarkdown. Setting
182 `markdown="1"` on an outer tag affects all contained tags,
183 recursively, until it is reversed with `markdown="0"` (#1378).
185 * Revised markdown definition list syntax (#1429). Both the reader
186 and writer are affected. This change brings pandoc's definition list
187 syntax into alignment with that used in PHP markdown extra and
188 multimarkdown (with the exception that pandoc is more flexible about
189 the definition markers, allowing tildes as well as colons). Lazily
190 wrapped definitions are now allowed. Blank space is required
191 between list items. The space before a definition is used to determine
192 whether it is a paragraph or a "plain" element. **WARNING: This change
193 may break existing documents!** Either check your documents for
194 definition lists without blank space between items, or use
195 `markdown+compact_definition_lists` for the old behavior.
197 * `.numberLines` now works in fenced code blocks even if no language
198 is given (#1287, jgm/highlighting-kate#40).
200 * Improvements to `--filter`:
202 + Don't search PATH for a filter with an explicit path.
203 This fixed a bug wherein `--filter ./caps.py` would run `caps.py` from
204 the system path, even if there was a `caps.py` in the working directory.
205 + Respect shebang if filter is executable (#1389).
206 + Don't print misleading error message.
207 Previously pandoc would say that a filter was not found,
208 even in a case where the filter had a syntax error.
212 + Parse `div` and `span` elements even without `--parse-raw`,
213 provided `native_divs` and `native_spans` extensions are set.
214 Motivation: these now generate native pandoc Div and Span
215 elements, not raw HTML.
216 + Parse EPUB-specific elements if the `epub_html_exts`
217 extension is enabled. These include `switch`, `footnote`,
218 `rearnote`, `noteref`.
222 + Support for inline LaTeX. Inline LaTeX is now accepted and parsed by the
223 org-mode reader. Both math symbols (like `\tau`) and LaTeX commands (like
224 `\cite{Coffee}`), can be used without any further escaping (Albert
227 * Textile reader and writer:
229 + The `raw_tex` extension is no longer set by default. You can
230 enable it with `textile+raw_tex`.
234 + Support `equation`, `informalequation`, `inlineequation` elements with
235 `mml:math` content. This is converted into LaTeX and put into a Pandoc
238 * Revised `plain` output, largely following the style of Project
241 + Emphasis is rendered with `_underscores_`, strong emphasis
243 + Headings are rendered differently, with space to set them off,
244 not with setext style underlines. Level 1 headers are ALL CAPS.
245 + Math is rendered using unicode when possible, but without the
246 distracting emphasis markers around variables.
247 + Footnotes use a regular `[n]` style.
251 + Horizontal rules are now a line across the whole page.
252 + Prettier pipe tables. Columns are now aligned (#1323).
253 + Respect the `raw_html` extension. `pandoc -t markdown-raw_html`
254 no longer emits any raw HTML, including span and div tags
255 generated by Span and Div elements.
256 + Use span with style for `SmallCaps` (#1360).
260 + Autolinks now have class `uri`, and email autolinks have class
261 `email`, so they can be styled.
265 + Document formatting is carried over from `reference.docx`.
266 This includes margins, page size, page orientation, header,
267 and footer, including images in headers and footers.
268 + Include abstract (if present) with `Abstract` style (#1451).
269 + Include subtitle (if present) with `Subtitle` style, rather
270 than tacking it on to the title (#1451).
274 + Write empty span elements with an id attribute as org anchors.
275 For example `Span ("uid",[],[]) []` becomes `<<uid>>`.
279 + Put table captions above tables, to match the conventional
280 standard. (Previously they appeared below tables.)
281 + Use `\(..\)` instead of `$..$` for inline math (#1464).
282 + Use `\nolinkurl` in email autolinks. This allows them to be styled
283 using `\urlstyle{tt}`. Thanks to Ulrike Fischer for the solution.
284 + Use `\textquotesingle` for `'` in inline code. Otherwise we get
285 curly quotes in the PDF output (#1364).
286 + Use `\footnote<.>{..}` for notes in beamer, so that footnotes
287 do not appear before the overlays in which their markers appear
289 + Don't produce a `\label{..}` for a Div or Span element. Do produce
290 a `\hyperdef{..}` (#1519).
294 + If the metadata includes `page-progression-direction` (which can be
295 `ltr` or `rtl`, the `page-progression-direction` attribute will
296 be set in the EPUB spine (#1455).
298 * Custom lua writers:
300 + Custom writers now work with `--template`.
301 + Removed HTML header scaffolding from `sample.lua`.
302 + Made citation information available in lua writers.
304 * `--normalize` and `Text.Pandoc.Shared.normalize` now consolidate
305 adjacent `RawBlock`s when possible.
309 * Added `Text.Pandoc.Readers.Docx`, exporting `readDocx` (Jesse Rosenthal).
311 * Added `Text.Pandoc.Readers.EPUB`, exporting `readEPUB` (Matthew
314 * Added `Text.Pandoc.Readers.Txt2Tags`, exporting `readTxt2Tags` (Matthew
317 * Added `Text.Pandoc.Writers.DokuWiki`, exporting `writeDokuWiki`
320 * Added `Text.Pandoc.Writers.Haddock`, exporting `writeHaddock`.
322 * Added `Text.Pandoc.MediaBag`, exporting `MediaBag`, `lookupMedia`,
323 `insertMedia`, `mediaDirectory`, `extractMediaBag`. The docx and epub
324 readers return a pair of a `Pandoc` document and a `MediaBag` with
325 the media resources they contain. This can be extracted using
326 `--extract-media`. Writers that incorporate media (PDF, Docx,
327 ODT, EPUB, RTF, or HTML formats with `--self-contained`) will look
328 for resources in the `MediaBag` generated by the reader, in addition to
329 the file system or web.
331 * `Text.Pandoc.Readers.TexMath`: Removed deprecated `readTeXMath`.
332 Renamed `readTeXMath'` to `texMathToInlines`.
334 * `Text.Pandoc`: Added `Reader` data type (Matthew Pickering).
335 `readers` now associates names of readers with `Reader`
336 structures. This allows inclusion of readers, like the docx
337 reader, that take binary rather than textual input.
339 * `Text.Pandoc.Shared`:
341 + Added `capitalize` (Artyom Kazak), and replaced uses of
342 `map toUpper` (which give bad results for many languages).
343 + Added `collapseFilePath`, which removes intermediate `.` and
344 `..` from a path (Matthew Pickering).
345 + Added `fetchItem'`, which works like `fetchItem` but searches
346 a `MediaBag` before looking on the net or file system.
347 + Added `withTempDir`.
348 + Added `removeFormatting`.
349 + Added `extractSpaces` (from HTML reader) and generalized its type
350 so that it can be used by the docx reader (Matthew Pickering).
352 + Added `normalizeInlines`, `normalizeBlocks`.
353 + `normalize` is now `Pandoc -> Pandoc` instead of
354 `Data a :: a -> a`. Some users may need to change their uses of
355 `normalize` to the newly exported `normalizeInlines` or
358 * `Text.Pandoc.Options`:
360 + Added `writerMediaBag` to `WriterOptions`.
361 + Removed deprecated and no longer used `readerStrict` in
362 `ReaderOptions`. This is handled by `readerExtensions` now.
363 + Added `Ext_compact_definition_lists`.
364 + Added `Ext_epub_html_exts`.
365 + Added `Ext_native_divs` and `Ext_native_spans`.
366 This allows users to turn off the default pandoc behavior of
367 parsing contents of div and span tags in markdown and HTML
368 as native pandoc Div blocks and Span inlines.
370 * `Text.Pandoc.Parsing`:
372 + Generalized `readWith` to `readWithM` (Matthew Pickering).
373 + Export `runParserT` and `Stream` (Matthew Pickering).
374 + Added `HasQuoteContext` type class (Matthew Pickering).
375 + Generalized types of `mathInline`, `smartPunctuation`, `quoted`,
376 `singleQuoted`, `doubleQuoted`, `failIfInQuoteContext`,
377 `applyMacros` (Matthew Pickering).
378 + Added custom `token` (Matthew Pickering).
379 + Added `stateInHtmlBlock` to `ParserState`. This is used to keep
380 track of the ending tag we're waiting for when we're parsing inside
382 + Added `stateMarkdownAttribute` to `ParserState`. This is used
383 to keep track of whether the markdown attribute has been set in
385 + Generalized type of `registerHeader`, using new type classes
386 `HasReaderOptions`, `HasIdentifierList`, `HasHeaderMap` (Matthew
387 Pickering). These allow certain common functions to be reused
388 even in parsers that use custom state (instead of `ParserState`),
389 such as the MediaWiki reader.
390 + Moved `inlineMath`, `displayMath` from Markdown reader to Parsing,
391 and generalized their types (Matthew Pickering).
393 * `Text.Pandoc.Pretty`:
396 + Added `blanklines`, which guarantees a certain number of blank lines
403 + Fixed parsing of indented code in list items. Indented code
404 at the beginning of a list item must be indented eight spaces
405 from the margin (or edge of the container), or four spaces
406 from the list marker, whichever is greater.
407 + Fixed small bug in HTML parsing with `markdown_attribute`, which
408 caused incorrect tag nesting for input like
409 `<aside markdown="1">*hi*</aside>`.
410 + Fixed regression with intraword underscores (#1121).
411 + Improved parsing of inline links containing quote characters (#1534).
412 + Slight rewrite of `enclosure`/`emphOrStrong` code.
413 + Revamped raw HTML block parsing in markdown (#1330).
414 We no longer include trailing spaces and newlines in the
415 raw blocks. We look for closing tags for elements (but without
416 backtracking). Each block-level tag is its own `RawBlock`;
417 we no longer try to consolidate them (though `--normalize` will do so).
418 + Combine consecutive latex environments. This helps when you have
419 two minipages which can't have blank lines between them (#690, #1196).
420 + Support smallcaps through span.
421 `<span style="font-variant:small-caps;">foo</span>` will be
422 parsed as a `SmallCaps` inline, and will work in all output
423 formats that support small caps (#1360).
424 + Prevent spurious line breaks after list items (#1137). When the
425 `hard_line_breaks` option was specified, pandoc would formerly
426 produce a spurious line break after a tight list item.
427 + Fixed table parsing bug (#1333).
428 + Handle `c++` and `objective-c` as language identifiers in
429 github-style fenced blocks (#1318).
430 + Inline math must have nonspace before final `$` (#1313).
434 + Handle comments at the end of tables. This resolves the issue
435 illustrated in <http://stackoverflow.com/questions/24009489>.
436 + Correctly handle table rows with too few cells. LaTeX seems to
437 treat them as if they have empty cells at the end (#241).
438 + Handle leading/trailing spaces in `\emph` better.
439 `\emph{ hi }` gets parsed as `[Space, Emph [Str "hi"], Space]`
440 so that we don't get things like `* hi *` in markdown output.
441 Also applies to `\textbf` and some other constructions (#1146).
442 + Don't assume preamble doesn't contain environments (#1338).
443 + Allow (and discard) optional argument for `\caption` (James Aspnes).
447 + Fixed major parsing problem with HTML tables. Table cells were
448 being combined into one cell (#1341).
449 + Fixed performance issue with malformed HTML tables.
450 We let a `</table>` tag close an open `<tr>` or `<td>` (#1167).
451 + Allow space between `<col>` and `</col>`.
452 + Added `audio` and `source` in `eitherBlockOrInline`.
453 + Moved `video`, `svg`, `progress`, `script`, `noscript`, `svg` from
454 `blockTags` to `eitherBlockOrInline`.
455 + `map` and `object` were mistakenly in both lists; they have been removed
457 + Ignore `DOCTYPE` and `xml` declarations.
461 + Don't parse backslash escapes inside `<source>` (#1445).
462 + Tightened up template parsing.
463 The opening `{{` must be followed by an alphanumeric or `:`.
464 This prevents the exponential slowdown in #1033.
465 + Support "Bild" for images.
469 + Better handle elements inside code environments. Pandoc's document
470 model does not allow structure inside code blocks, but at least this way
471 we preserve the text (#1449).
472 + Support `<?asciidoc-br?>` (#1236).
476 + Fixed list parsing. Lists can now start without an intervening
478 + HTML block-level tags that do not start a line are parsed as
479 inline HTML and do not interrupt paragraphs (as in RedCloth).
483 + Make tildes create inline code (#1345). Also relabeled `code` and
484 `verbatim` parsers to accord with the org-mode manual.
485 + Respect `:exports` header argument in code blocks (Craig Bosma).
486 + Fixed tight lists with sublists (#1437).
490 + Avoid excess whitespace in `nav.xhtml`. This should improve
491 TOC view in iBooks (#1392).
492 + Fixed regression on cover image.
493 In 1.12.4 and 1.12.4.2, the cover image would not appear properly,
494 because the metadata id was not correct. Now we derive the id from the
495 actual cover image filename, which we preserve rather than using
497 + Keep newlines between block elements. This allows
498 easier diff-ability (#1424).
499 + Use `stringify` instead of custom `plainify`.
500 + Use `renderTags'` for all tag rendering. This properly handles tags
501 that should be self-closing. Previously `<hr/>` would appear in EPUB
502 output as `<hr></hr>` (#1420).
503 + Better handle HTML media tags.
504 + Handle multiple dates with OPF `event` attributes. Note: in EPUB3 we
505 can have only one dc:date, so only the first one is used.
509 + Correctly handle figures in notes. Notes can't contain figures in
510 LaTeX, so we fake it to avoid an error (#1053).
511 + Fixed strikeout + highlighted code (#1294).
512 Previously strikeout highlighted code caused an error.
516 + Improved detection of autolinks with URLs containing escapes.
520 + Improved image embedding: `fetchItem'` is now used to get the
521 images, and calculated image sizes are indicated in the RTF.
522 + Avoid extra paragraph tags in metadata (#1421).
526 + Deactivate "incremental" inside slide speaker notes (#1394).
527 + Don't include empty items in the table of contents for
528 slide shows. (These would result from creating a slide
529 using a horizontal rule.)
533 + Minor renaming of `st` prefixed names.
537 + Double up emphasis and strong emphasis markers in intraword
538 contexts, as required by asciidoc (#1441).
542 + Avoid wrapping that might start a list, blockquote, or header (#1013).
543 + Use Span instead of (hackish) `SmallCaps` in `plainify`.
544 + Don't use braced attributes for fenced code (#1416).
545 If `Ext_fenced_code_attributes` is not set, the first class
546 attribute will be printed after the opening fence as a bare word.
547 + Separate adjacent lists of the same kind with an HTML comment (#1458).
551 + Fixed treatment of data uris for images (#1062).
555 + Use Compact style for empty table cells (#1353).
556 Otherwise we get overly tall lines when there are empty
557 table cells and the other cells are compact.
558 + Create overrides per-image for `media/` in reference docx.
559 This should be somewhat more robust and cover more types of images.
560 + Improved `entryFromArchive` to avoid an unneeded parse.
561 + Section numbering carries over from reference.docx (#1305).
562 + Simplified `abstractNumId` numbering. Instead of sequential numbering,
563 we assign numbers based on the list marker styles.
565 * `Text.Pandoc.Options`:
567 + Removed `Ext_fenced_code_attributes` from `markdown_github`
570 * `Text.Pandoc.ImageSize`:
572 + Use default instead of failing if image size not found
573 in exif header (#1358).
574 + ignore unknown exif header tag rather than crashing.
575 Some images seem to have tag type of 256, which was causing
578 * `Text.Pandoc.Shared`:
580 + `fetchItem`: unescape URI encoding before reading local file (#1427).
581 + `fetchItem`: strip a fragment like `?#iefix` from the extension before
582 doing mime lookup, to improve mime type guessing.
583 + Improved logic of `fetchItem`: absolute URIs are fetched from the net;
584 other things are treated as relative URIs if `sourceURL` is `Just _`,
585 otherwise as file paths on the local file system.
586 + `fetchItem` now properly handles links without a protocol (#1477).
587 + `fetchItem` now escapes characters not allowed in URIs before trying
589 + Fixed runtime error with `compactify'DL` on certain lists (#1452).
591 * `pandoc.hs`: Don't strip path off of `writerSourceURL`: the path is
592 needed to resolve relative URLs when we fetch resources (#750).
594 * `Text.Pandoc.Parsing`
596 + Simplified `dash` and `ellipsis` (#1419).
597 + Removed `(>>~)` in favor of the equivalent `(<*)` (Matthew Pickering).
598 + Generalized functions to use `ParsecT` (Matthew Pickering).
599 + Added `isbn` and `pmid` to list of recognized schemes (Matthew
604 * Added haddock template.
605 * EPUB3: Added `type` attribute to `link` tags. They are supposed to
606 be "advisory" in HTML5, but kindlegen seems to require them.
607 * EPUB3: Put title page in section with `epub:type="titlepage"`.
608 * LaTeX: Made `\subtitle` work properly (#1327).
609 * LaTeX/Beamer: remove conditional around date (#1321).
610 * LaTeX: Added `lot` and `lof` variables, which can be set to
611 get `\listoftables` and `\listoffigures` (#1407). Note that
612 these variables can be set at the command line with `-Vlot -Vlof`
615 [under the hood improvements]
617 * Rewrote normalize for efficiency (#1385).
619 * Rewrote Haddock reader to use `haddock-library` (#1346).
621 + This brings pandoc's rendering of haddock markup in line
622 with the new haddock.
623 + Fixed line breaks in `@` code blocks.
624 + alex and happy are no longer build-depends.
626 * Added `Text.Pandoc.Compat.Directory` to allow building against
627 different versions of the `directory` library.
629 + Added `Text.Pandoc.Compat.Except` to allow building against
630 different verions of `mtl`.
632 * Code cleanup in some writers, using Reader monad to avoid
633 passing options parameter around (Matej Kollar).
635 * Improved readability in `pandoc.hs`.
637 * Miscellaneous code cleanups (Artyom Kazak).
639 * Avoid `import Prelude hiding (catch)` (#1309, thanks to Michael
642 * Changed `http-conduit` flag to `https`. Depend on `http-client`
643 and `http-client-tls` instead of `http-conduit`. (Note: pandoc still
644 depends on `conduit` via `yaml`.)
646 * Require `highlighting-kate >= 0.5.8.5` (#1271, #1317, Debian #753299).
647 This change to highlighting-kate means that PHP fragments no longer need
648 to start with `<?php`. It also fixes a serious bug causing failures with
651 * Require latest `texmath`. This fixes `\tilde{E}` and allows
652 `\left` to be used with `]`, `)` etc. (#1319), among many other
655 * Require latest `zip-archive`. This has fixes for unicode path names.
657 * Added tests for plain writer.
659 * `Text.Pandoc.Templates`:
661 + Fail informatively on template syntax errors.
662 With the move from parsec to attoparsec, we lost good error
663 reporting. In fact, since we weren't testing for end of input,
664 malformed templates would fail silently. Here we revert back to
665 Parsec for better error messages.
666 + Use `ordNub` (#1022).
670 + Made benchmarks compile again (Artyom Kazak).
671 + Fixed so that the failure of one benchmark does not prevent others
672 from running (Artyom Kazak).
673 + Use `nfIO` instead of the `getLength` trick to force full evaluation.
674 + Changed benchmark to use only the test suite, so that benchmarks
677 * Windows build script:
679 + Add `-windows` to file name.
680 + Use one install command for pandoc, pandoc-citeproc.
681 + Force install of pandoc-citeproc.
683 * `make_osx_package`: Call zip file `pandoc-VERSION-osx.zip`.
684 The zip should not be named `SOMETHING.pkg.zip`, or OSX finder
685 will extract it into a folder named `SOMETHING.pkg`, which it
686 will interpret as a defective package (#1308).
690 + Made headers for all extensions so they have IDs and can be
691 linked to (Beni Cherniavsky-Paskin).
692 + Fixed typos (Phillip Alday).
693 + Fixed documentation of attributes (#1315).
694 + Clarified documentation on small caps (#1360).
695 + Better documentation for `fenced_code_attributes` extension
697 + Documented fact that you can put YAML metadata in a separate file
703 * Require highlighting-kate >= 0.5.8. Fixes a performance regression.
705 * Shared: `addMetaValue` now behaves slightly differently:
706 if both the new and old values are lists, it concatenates their
707 contents to form a new list.
711 + Set `bibliography` in metadata from `\bibliography` or
712 `\addbibresource` command.
713 + Don't error on `%foo` with no trailing newline.
717 + Support code block headers (`#+BEGIN_SRC ...`) (Albert Krewinkel).
718 + Fix parsing of blank lines within blocks (Albert Krewinkel).
719 + Support pandoc citation extension (Albert Krewinkel). This can
720 be turned off by specifying `org-citations` as the input format.
724 + `citeKey` moved to `Text.Pandoc.Parsing` so it can be used by
725 other readers (Albert Krewinkel).
727 * `Text.Pandoc.Parsing`:
729 + Added `citeKey` (see above).
730 + Added `HasLastStrPosition` type class and `updateLastStrPos`
731 and `notAfterString` functions.
733 * Updated copyright notices (Albert Krewinkel).
735 * Added default.icml to data files so it installs with the package.
739 + The binary is now built with options to ensure that it can be
741 + Moved OSX package materials to osx directory.
742 + Added OSX package uninstall script, included in the zip container
743 (thanks to Daniel T. Staal).
747 * Made it possible to run filters that aren't executable (#1096).
748 Pandoc first tries to find the executable (searching the path
749 if path isn't given). If it fails, but the file exists and has
750 a `.py`, `.pl`, `.rb`, `.hs`, or `.php` extension, pandoc runs the filter
751 using the appropriate interpreter. This should make it easier to
752 use filters on Windows, and make it more convenient for everyone.
754 * Added Emacs org-mode reader (Albert Krewinkel).
756 * Added InDesign ICML Writer (mb21).
760 + Accept image links in more languages (Jaime Marquínez Ferrándiz).
761 + Fixed bug in certain nested lists (#1213). If a level 2 list was
762 followed by a level 1 list, the first item of the level 1 list
764 + Handle table rows containing just an HTML comment (#1230).
768 + Give better location information on errors, pointing to line
769 numbers within included files (#1274).
770 + LaTeX reader: Better handling of `table` environment (#1204).
771 Positioning options no longer rendered verbatim.
772 + Better handling of figure and table with caption (#1204).
773 + Handle `@{}` and `p{length}` in tabular. The length is not actually
774 recorded, but at least we get a table (#1180).
775 + Properly handle `\nocite`. It now adds a `nocite` metadata
776 field. Citations there will appear in the bibliography but not
777 in the text (unless you explicitly put a `$nocite$` variable
782 + Ensure that whole numbers in YAML metadata are rendered without
783 decimal points. (This became necessary with changes to aeson
784 and yaml libraries. aeson >= 0.7 and yaml >= 0.8.8.2 are now required.)
785 + Fixed regression on line breaks in strict mode (#1203).
786 + Small efficiency improvements.
787 + Improved parsing of nested `div`s. Formerly a closing `div` tag
788 would be missed if it came right after other block-level tags.
789 + Avoid backtracking when closing `</div>` not found.
790 + Fixed bug in reference link parsing in `markdown_mmd`.
791 + Fixed a bug in list parsing (#1154). When reading a raw list
792 item, we now strip off up to 4 spaces.
793 + Fixed parsing of empty reference link definitions (#1186).
794 + Made one-column pipe tables work (#1218).
798 + Better support for attributes. Instead of being ignored, attributes
799 are now parsed and included in Span inlines. The output will be a bit
800 different from stock textile: e.g. for `*(foo)hi*`, we'll get
801 `<em><span class="foo">hi</span></em>` instead of
802 `<em class="foo">hi</em>`. But at least the data is not lost.
803 + Improved treatment of HTML spans (%) (#1115).
804 + Improved link parsing. In particular we now pick up on attributes.
805 Since pandoc links can't have attributes, we enclose the whole link in
806 a span if there are attributes (#1008).
807 + Implemented correct parsing rules for inline markup (#1175, Matthew
809 + Use Builder (Matthew Pickering).
810 + Fixed list parsing bug (#1500).
811 + Don't allow inline formatting to extend over newlines.
812 This matches the behavior of RedCarpet, avoids some ugly bugs,
813 and improves performance.
817 + Better treatment of `formalpara`. We now emit the title (if present)
818 as a separate paragraph with boldface text (#1215).
819 + Set metadata `author` not `authors`.
820 + Added recognition of `authorgroup` and `releaseinfo` elements (#1214,
822 + Converted current meta information parsing in DocBook to a more
823 extensible version which is aware of the more recent meta
824 representation (Matthew Pickering).
828 + Require tagsoup 0.13.1, to fix a bug with parsing of script tags
830 + Treat processing instructions & declarations as block. Previously
831 these were treated as inline, and included in paragraph tags in HTML
832 or DocBook output, which is generally not what is wanted (#1233).
833 + Updated `closes` with rules from HTML5 spec.
834 + Use Builder (Matthew Pickering, #1162).
838 + Remove duplicate `http` in PEP links (Albert Krewinkel).
839 + Make rst figures true figures (#1168, CasperVector)
840 + Enhanced Pandoc's support for rST roles (Merijn Verstaaten).
841 rST parser now supports: all built-in rST roles, new role definition,
842 role inheritance, though with some limitations.
843 + Use `author` rather than `authors` in metadata.
844 + Better handling of directives. We now correctly handle field
845 lists that are indented more than three spaces. We treat an
846 `aafig` directive as a code block with attributes, so it can be
847 processed in a filter (#1212).
851 + Mark span contents with label if span has an ID (Albert Krewinkel).
852 + Made `--toc-depth` work well with books in latex/pdf output (#1210).
853 + Handle line breaks in simple table cells (#1217).
854 + Workaround for level 4-5 headers in quotes. These previously produced
855 invalid LaTeX: `\paragraph` or `\subparagraph` in a `quote` environment.
856 This adds an `mbox{}` in these contexts to work around the problem.
857 See <http://tex.stackexchange.com/a/169833/22451> (#1221).
858 + Use `\/` to avoid en-dash ligature instead of `-{}-` (Vaclav Zeman).
859 This is to fix LuaLaTeX output. The `-{}-` sequence does not avoid the
860 ligature with LuaLaTeX but `\/` does.
861 + Fixed string escaping in `hyperref` and `hyperdef` (#1130).
863 * ConTeXt writer: Improved autolinks (#1270).
867 + Improve handling of hard line breaks in Docbook writer
868 (Neil Mayhew). Use a `<literallayout>` for the entire paragraph, not
869 just for the newline character.
870 + Don't let line breaks inside footnotes influence the enclosing
871 paragraph (Neil Mayhew).
872 + Distinguish tight and loose lists in DocBook output, using
873 `spacing="compact"` (Neil Mayhew, #1250).
875 * Docx writer: When needed files are not present in the user's
876 `reference.docx`, fall back on the versions in the `reference.docx`
877 in pandoc's data files. This fixes a bug that occurs when a
878 `reference.docx` saved by LibreOffice is used. (#1185)
882 + Include extension in epub ids. This fixes a problem with duplicate
883 extensions for fonts and images with the same base name but different
885 + Handle files linked in raw `img` tags (#1170).
886 + Handle media in `audio` source tags (#1170).
887 Note that we now use a `media` directory rather than `images`.
888 + Incorporate files linked in `video` tags (#1170). `src` and `poster`
889 will both be incorporated into `content.opf` and the epub container.
893 + Add colgroup around col tags (#877). Also affects EPUB writer.
894 + Fixed bug with unnumbered section headings. Unnumbered section
895 headings (with class `unnumbered`) were getting numbers.
896 + Improved detection of image links. Previously image links with
897 queries were not recognized, causing `<embed>` to be used instead
900 * Man writer: Ensure that terms in definition lists aren't line wrapped
905 + Use proper escapes to avoid unwanted lists (#980). Previously we used
906 0-width spaces, an ugly hack.
907 + Use longer backtick fences if needed (#1206). If the content contains a
908 backtick fence and there are attributes, make sure longer fences are
909 used to delimit the code. Note: This works well in pandoc, but github
910 markdown is more limited, and will interpret the first string of three
911 or more backticks as ending the code block.
913 * RST writer: Avoid stack overflow with certain tables (#1197).
915 * RTF writer: Fixed table cells containing paragraphs.
919 + Correctly handle UTF-8 in custom lua scripts (#1189).
920 + Fix bugs with lua scripts with mixed-case filenames and
921 paths containing `+` or `-` (#1267). Note that `getWriter`
922 in `Text.Pandoc` no longer returns a custom writer on input
925 * AsciiDoc writer: Handle multiblock and empty table cells
926 (#1245, #1246). Added tests.
928 * `Text.Pandoc.Options`: Added `readerTrace` to `ReaderOptions`
930 * `Text.Pandoc.Shared`:
932 + Added `compactify'DL` (formerly in markdown reader) (Albert Krewinkel).
933 + Fixed bug in `toRomanNumeral`: numbers ending with '9' would
934 be rendered as Roman numerals ending with 'IXIV' (#1249). Thanks to
936 + `openURL`: set proxy with value of http_proxy env variable (#1211).
937 Note: proxies with non-root paths are not supported, due to
938 limitations in `http-conduit`.
942 + Ensure that temp directories deleted on Windows (#1192). The PDF is
943 now read as a strict bytestring, ensuring that process ownership will
944 be terminated, so the temp directory can be deleted.
945 + Use `/` as path separators in a few places, even on Windows.
946 This seems to be necessary for texlive (#1151, thanks to Tim Lin).
947 + Use `;` for `TEXINPUTS` separator on Windows (#1151).
948 + Changes to error reporting, to handle non-UTF8 error output.
950 * `Text.Pandoc.Templates`:
952 + Removed unneeded datatype context (Merijn Verstraaten).
954 + YAML objects resolve to "true" in conditionals (#1133).
955 Note: If `address` is a YAML object and you just have `$address$`
956 in your template, the word `true` will appear, which may be
957 unexpected. (Previously nothing would appear.)
959 * `Text.Pandoc.SelfContained`:
961 + `mkSelfContained` now takes just two arguments, `WriterOptions` and
963 * It no longer looks in data files. This only made sense when we
964 had copies of slidy and S5 code there.
965 * `fetchItem'` is used instead of the nearly duplicate `getItem`.
966 + Handle `poster` attribute in `video` tags (#1188).
968 * `Text.Pandoc.Parsing`:
970 + Made `F` an instance of Applicative (#1138).
971 + Added `stateCaption`.
972 + Added `HasMacros`, simplified other typeclasses.
973 Removed `updateHeaderMap`, `setHeaderMap`, `getHeaderMap`,
974 `updateIdentifierList`, `setIdentifierList`, `getIdentifierList`.
975 + Changed the smart punctuation parser to return `Inlines`
976 rather than `Inline` (Matthew Pickering).
977 + Changed `HasReaderOptions`, `HasHeaderMap`, `HasIdentifierList`
978 from typeclasses of monads to typeclasses of states. This simplifies
979 the instance definitions and provides more flexibility. Generalized
980 type of `getOption` and added a default definition. Removed
981 `askReaderOption`. Added `extractReaderOption`. Added
982 `extractHeaderMap` and `updateHeaderMap` in `HasHeaderMap`.
983 Gave default definitions for `getHeaderMap`, `putHeaderMap`,
984 `modifyHeaderMap`. Added `extractIdentifierList` and
985 `updateIdentifierList` in `HasIdentifierList`. Gave defaults
986 for `getIdentifierList`, `putIdentifierList`, and
987 `modifyIdentifierList`. The ultimate goal here is to allow different
988 parsers to use their own, tailored parser states (instead of
989 `ParserState`) while still using shared functions.
993 + LaTeX template: Use `fontenc` package only with `pdflatex` (#1164).
994 + LaTeX template: Add `linestretch` and `fontfamily` variables.
995 + LaTeX template: Conditionalize author and date commands.
996 + Beamer template: Consistent styles for figure and table captions
998 + LaTeX and beamer template: Adjust widths correctly for oversized
999 images. Use `\setkeys{Gin}{}` to set appropriate defaults for
1000 `\includegraphics` (Yihui Xie, Garrick Aden-Buie). Load
1001 `upquote` only after `fontenc` (Yihui Xie).
1002 + Beamer template: Added caption package (#1200).
1003 + Beamer template: changes for better unicode handling (KarolS).
1004 + DocBook template: use `authorgroup` if there are authors.
1005 + revealjs template: Move `include-after` to end (certainlyakey).
1006 + revealjs template: Fixed PDF print function (#1220, kevinkenan).
1008 * Bumped version bounds of dependencies.
1010 * Added a `--trace` command line option, for debugging backtracking
1011 bugs. So far this only works with the markdown reader.
1013 * MathMLinHTML: Fixed deprecation warning (#362, gwern, Albert Krewinkel).
1015 * Updated travis script to test with multiple GHC versions.
1017 * Force failure of a Travis build if GHC produces warnings (Albert
1020 * Add `.editorconfig` (Albert Krewinkel).
1021 See <http://editorconfig.org/> for details.
1023 * Give more useful error message if '-t pdf' is specified (#1155).
1025 * Added `Cite`, `SmallCaps` to `Arbitrary` instance (#1269).
1027 * Allow `html4` as a synonym of `html` as a reader (it already works
1032 + Added an explanation of how to use YAML metadata to
1033 force items to appear in the bibliography without citations in
1034 the text (like LaTeX `\nocite`).
1035 + Added note to `--bibtex/--natbib`: not for use in making PDF
1036 (#1194, thanks to nahoj).
1037 + Added explanatory notes about `--natbib` and `--biblatex`.
1038 + Added specification of legal syntax for citation keys.
1039 + Fixed variable defaults documentation (Albert Krewinkel).
1041 * Removed copyright statements for files that have been removed
1044 * Moved some doc files from `data-files` to `extra-source-files` (#1123).
1045 They aren't needed at runtime. We keep README and COPYRIGHT in data
1046 to ensure that they'll be available on all systems on which pandoc
1049 * Use cabal sandboxes in Windows build script.
1053 * To changes to source; recompiled tarball with latest alex and
1054 happy, so they will work with GHC 7.8.
1058 * Bumped version bounds for blaze-html, blaze-markup.
1060 * ImageSize: Avoid use of lookAhead, which is not in binary >= 0.6
1063 * Fixed mediawiki ordered list parsing (#1122).
1065 * HTML reader: Fixed bug reading inline math with `$$` (#225).
1067 * Added support for LaTeX style literate Haskell code blocks in rST
1068 (Merijn Verstraaten).
1072 * Relaxed version constraint on binary, allowing the use of binary 0.5.
1076 * The `--bibliography` option now sets the `biblio-files` variable.
1077 So, if you're using `--natbib` or `--biblatex`, you can just use
1078 `--bibliography=foo.bib` instead of `-V bibliofiles=foo`.
1080 * Don't run pandoc-citeproc filter if `--bibliography` is
1081 used together with `--natbib` or `--biblatex` (Florian Eitel).
1085 + Updated beamer template to include booktabs.
1086 + Added `abstract` variable to LaTeX template.
1087 + Put `header-includes` after `title` in LaTeX template (#908).
1088 + Allow use of `\includegraphics[size]` in beamer.
1089 This just required porting a macro definition from the default
1090 LaTeX template to the default beamer template.
1092 * `reference.docx`: Include `FootnoteText` style.
1093 Otherwise Word ignores the style, even when specified in the `pPr`.
1096 * `reference.odt`: Tidied `styles.xml`.
1098 * Relaxed version bounds for dependencies.
1100 * Added `withSocketsDo` around http conduit code in `openURL`,
1101 so it works on Windows (#1080).
1103 * Added `Cite` function to `sample.lua`.
1107 + Fixed regression in title blocks (#1089).
1108 If author field was empty, date was being ignored.
1109 + Allow backslash-newline hard line breaks in grid and
1110 multiline table cells.
1111 + Citation keys may now start with underscores, and may contain
1112 underscores adjacent to internal punctuation.
1116 + Add support for `Verb` macro (jrnold) (#1090).
1117 + Support babel-style quoting: `` "`..."' ``.
1119 * Properly handle script blocks in strict mode. (That is,
1120 `markdown-markdown_in_html_blocks`.) Previously a spurious
1121 `<p>` tag was being added (#1093).
1123 * Docbook reader: Avoid failure if `tbody` contains no `tr` or `row`
1128 + Factored out function for table cell creation.
1129 + Better treatment of footnotes in tables.
1130 Notes now appear in the regular sequence, rather than in the
1131 table cell. (This was a regression in 1.10.)
1133 * HTML reader: Parse name/content pairs from meta tags as metadata.
1136 * Moved `fixDisplayMath` from Docx writer to `Writer.Shared`.
1138 * OpenDocument writer: Fixed `RawInline`, `RawBlock` so they don't escape.
1140 * ODT writer: Use mathml for proper rendering of formulas.
1141 Note: LibreOffice's support for this seems a bit buggy. But
1142 it should be better than what we had before.
1144 * RST writer: Ensure no blank line after def in definition list (#992).
1146 * Markdown writer: Don't use tilde code blocks with braced attributes in
1147 `markdown_github` output. A consequence of this change is that the
1148 backtick form will be preferred in general if both are enabled. That
1149 is good, as it is much more widespread than the tilde form. (#1084)
1151 * Docx writer: Fixed problem with some modified reference docx files.
1152 Include `word/_rels/settings.xml.rels` if it exists, as well as other
1153 `rels` files besides the ones pandoc generates explicitly.
1157 + With `--toc`, headers no longer link to themselves (#1081).
1158 + Omit footnotes from TOC entries. Otherwise we get doubled
1159 footnotes when headers have notes!
1163 + Avoid duplicate notes when headings contain notes.
1164 This arose because the headings are copied into the metadata
1165 "title" field, and the note gets rendered twice. We strip the
1166 note now before putting the heading in "title".
1167 + Strip out footnotes from toc entries.
1168 + Fixed bug with `--epub-stylesheet`. Now the contents of
1169 `writerEpubStylesheet` (set by `--epub-stylesheet`)
1170 should again work, and take precedence over a stylesheet specified
1173 * `Text.Pandoc.MIME`: Added `wmf`, `emf`.
1175 * `Text.Pandoc.Shared`: `fetchItem` now handles image URLs beginning
1178 * `Text.Pandoc.ImageSize`: Parse EXIF format JPEGs. Previously
1179 we could only get size information for JFIF format, which led
1180 to squished images in Word documents. Closes #976.
1182 * Removed old `MarkdownTest_1.0.3` directory (#1104).
1186 * Markdown reader: Fixed regression in list parser, involving
1187 continuation lines containing raw HTML (or even verbatim raw HTML).
1191 * Metadata may now be included in YAML blocks in a markdown document.
1199 text: An investigation of metadata
1207 text: doi:10.234234.234/33
1209 rights: (c) 2007 John Smith, CC BY-NC
1210 cover-image: img/mypic.jpg
1213 Metadata may still be provided using `--epub-metadata`; it will
1214 be merged with the metadata in YAML blocks.
1218 + `meta` tags are now used instead of `opf` attributes for EPUB3.
1219 + Insert "svg" property as needed in opf (EPUB 3).
1220 + Simplify `imageTypeOf` using `getMimeType`.
1221 + Add properties attribute to `cover-image` item for EPUB 3.
1222 + Don't include node for `cover.xhtml` if no cover!
1223 + Ensure that same identifier is used throughout (#1044).
1224 If an identifier is given in metadata, we use that; otherwise
1225 we generate a random uuid.
1226 + Add cover reference to guide element (EPUB 2) (Shaun Attfield).
1227 Fixes an issue with Calibre putting the cover at the end of the book
1228 if the spine has `linear="no"`. Apparently this is best practice
1229 for other converters as well:
1230 <http://www.idpf.org/epub/20/spec/OPF_2.0.1_draft.htm#Section2.6>.
1231 + Allow `stylesheet` in metadata. The value is a path to the stylesheet.
1232 + Allow partial dates: `YYYY`, `YYYY-MM`.
1234 * Markdown writer: Fix rendering of tight sublists (#1050).
1235 Previously a spurious blank line was included after a tight sublist.
1237 * ODT writer: Add `draw:name` attribute to `draw:frame` elements (#1069).
1238 This is reported to be necessary to avoid an error from recent
1239 versions of Libre Office when files contain more than one image
1240 Thanks to wmanley for reporting and diagnosing the problem.
1242 * ConTeXt writer: Don't hardcode figure/table placement and numbering.
1243 Instead, let this be set in the template, using `\setupfloat`.
1244 Thanks to on4aa and Aditya Mahajan for the suggestion (#1067).
1246 * Implemented CSL flipflopping spans in DOCX, LaTeX, and HTML writers.
1248 * Fixed bug with markdown intraword emphasis. Closes #1066.
1250 * Docbook writer: Hierarchicalize block content in metadata.
1251 Previously headers just disappeared from block-level metadata
1252 when it was used in templates. Now we apply the 'hierarchicalize'
1253 transformation. Note that a block headed by a level-2 header will
1254 turn into a `<sect1>` element.
1256 * OpenDocument writer: Skip raw HTML (#1035).
1257 Previously it was erroneously included as verbatim text.
1259 * HTML/EPUB writer, footnotes: Put `<sup>` tag inside `<a>` tags.
1260 This allows better control of formatting, since the `<a>`
1261 tags have a distinguishing class (#1049).
1265 + Use mime type info returned by fetchItem.
1266 + Fixed core metadata (#1046).
1267 Don't create empty date nodes if no date given.
1268 Don't create multiple `dc:creator` nodes; instead separate by
1270 + Fix URL for core-properties in `_rels/.rels` (#1046).
1272 * Plain writer: don't print `<span>` tags.
1276 + Fix definition lists with internal links in terms (#1032).
1277 This fix puts braces around a term that contains an internal
1278 link, to avoid problems with square brackets.
1279 + Properly escape pdftitle, pdfauthor (#1059).
1280 + Use booktabs package for tables (thanks to Jose Luis Duran).
1282 * Updated beamer template. Now references should work properly
1283 (in a slide) when `--biblatex` or `--natbib` is used.
1287 + Parse contents of curly quotes or matched `"` as quotes.
1288 + Support `\textnormal` as span with class `nodecor`.
1289 This is needed for pandoc-citeproc.
1290 + Improved citation parsing. This fixes a run-time error that occured
1291 with `\citet{}` (empty list of keys). It also ensures that empty keys
1294 * MediaWiki reader: Add automatic header identifiers.
1298 + Use pandoc `Div` and `Span` for raw `<div>`, `<span>` when
1300 + Recognize `svg` tags as block level content (thanks to MinRK).
1301 + Parse LaTeX math if appropriate options are set.
1305 + Yaml block must start immediately after `---`. If there's a blank
1306 line after `---`, we interpreted it as a horizontal rule.
1307 + Correctly handle empty bullet list items.
1308 + Stop parsing "list lines" when we hit a block tag.
1309 This fixes exponential slowdown in certain input, e.g.
1310 a series of lists followed by `</div>`.
1312 * Slides: Preserve `<div class="references">` in references slide.
1314 * `Text.Pandoc.Writer.Shared`:
1316 + Fixed bug in `tagWithAttrs`. A space was omitted before key-value
1317 attributes, leading to invalid HTML.
1318 + `normalizeDate`: Allow dates with year only (thanks to Shaun Attfield).
1319 + Fixed bug in `openURL` with `data:` URIs. Previously the base-64
1320 encoded bytestring was returned. We now decode it so it's a proper
1323 * DocBook reader: Handle numerical attributes starting with decimal.
1324 Also use `safeRead` instead of `read`.
1326 * `Text.Pandoc.Readers.TexMath`: Export `readTeXMath'`, which attends
1327 to display/inline. Deprecate `readTeXMath`, and use `readTeXMath'`
1328 in all the writers. Require `texmath >= 0.6.5.2`.
1330 * `Text.Pandoc.MIME`:
1332 + Add entry for `jfif`.
1333 + In looking up extensions, drop the encoding info.
1334 E.g. for 'image/jpg;base64' we should lookup 'image/jpg'.
1336 * Templates: Changed how array variables are resolved. Previously if
1337 `foo` is an array (which might be because multiple values were set on
1338 the command line), `$foo$` would resolve to the concatenation of the
1339 elements of foo. This is rarely useful behavior. It has been changed
1340 so that the first value is rendered. Of course, you can still iterate
1341 over the values using `$for(foo)$`. This has the result that you can
1342 override earlier settings using `-V` by putting new values later on the
1343 command line, which is useful for many purposes.
1345 * `Text.Pandoc`: Don't default to `pandocExtensions` for all writers.
1347 * Allow "epub2" as synonym for "epub", "html4" for "html".
1349 * Don't look for slidy files in data files with `--self-contained`.
1351 * Allow `https:` command line arguments to be downloaded.
1353 * Fixed `make_osx_package.sh` so data files embedded in `pandoc-citeproc`.
1357 * `Text.Pandoc.Definition`: Changed default JSON serialization format.
1358 Instead of `{"Str": "foo"}`, for example, we now have `{"t": "Str",
1359 "c": "foo"}`. This new format is easier to work with outside of Haskell.
1360 Incidentally, "t" stands for "tag", "c" for "contents".
1362 * MediaWiki reader: Trim contents of `<math>` tags, to avoid problems
1363 when converting to markdown (#1027).
1367 + Ensure that preamble doesn't contribute to the text of
1369 + Fixed character escaping in \url{}. Previously `\~` wasn't handled
1370 properly, among others.
1371 + Parse `{groups}` as `Span`. This is needed for accurate conversion of
1372 bibtex titles, since we need to know what was protected from
1373 titlecase conversions.
1377 + Specially escape non-ascii characters in labels.
1378 Otherwise we can get compile errors and other bugs when
1379 compiled with pdflatex (#1007). Thanks to begemotv2718 for the fix.
1380 + Add link anchors for code blocks with identifiers (#1025).
1382 * Throughout the code, use `isURI` instead of `isAbsoluteURI`.
1383 It allows fragments identifiers.
1387 + A Div element with class "notes" is treated as speaker
1388 notes. Currently beamer goes to `\note{}`, revealjs to
1389 `<aside class="notes">`, and the notes are simply suppressed in
1390 other formats (#925).
1391 + Fixed `. . .` (pause) on HTML slide formats. Closes #1029.
1392 The old version caused a pause to be inserted before the first
1393 material on a slide. This has been fixed.
1394 + Removed data files for s5, slideous, slidy.
1395 Users of s5 and slideous will have to download the needed
1396 files, as has been documented for some time in the README.
1397 By default, slidy code will be sought on the web, as before.
1399 * HTML writer: Insert command to typeset mathjax only in slideous output
1402 * RST writer: Skip spaces after display math. Otherwise we get indentation
1403 problems, and part of the next paragraph may be rendered as part of the
1406 * OpenDocument writer: Fix formatting of strikeout code (#995),
1407 thanks to wilx. don't use `font-face-decls` variable.
1409 * Fixed test suite so it works with cabal sandboxes.
1413 * Removed `stringable` dependency.
1417 * Allow `--metadata` to be repeated for the same key to form a list.
1418 This also has the effect that `--bibliography` can be repeated,
1421 * Handle boolean values in `--metadata`. Note that anything not parseable
1422 as a YAML boolean or string is treated as a literal string.
1423 You can get a string value with "yes", or any of the strings interpretable
1424 as booleans, by quoting it:
1426 -M boolvalue=yes -M stringvalue='"yes"'
1428 * LaTeX writer: Don't print references if `--natbib` or `--biblatex`
1431 * DOCX writer: Add `settings.xml` to the zip container. Fixes a bug
1432 in which docx files could not be read by some versions of Word
1433 and LibreOffice (#990).
1435 * Fixed a regression involving slide shows with bibliographies.
1436 The Div container around references messed up the procedure for carving
1437 a document into slides. So we now remove the surrounding Div in
1440 * More informative error message when a filter is not found in path.
1442 * Depend on pandoc-types 1.12.1. This provide `ToJSONFilter`
1443 instances for `Data a => a -> [a]` and `Data a => a -> IO [a]`.
1445 * Don't use unicode_collation in building OSX package:
1446 it adds something like 50MB of dependencies to the package.
1448 * Declare alex and happy as build-tools (#986).
1454 * Much more flexible metadata, including arbitrary fields and structured
1455 values. Metadata can be specified flexibly in pandoc markdown using
1456 YAML metadata blocks, which may occur anywhere in the document:
1459 title: Here is my title.
1461 This is the abstract.
1467 tags: [cat, dog, animal]
1470 Metadata fields automatically populate template variables.
1472 * Added `opml` (OPML) as input and output format. The `_note` attribute,
1473 used in OmniOutliner and supported by multimarkdown, is supported.
1474 We treat the contents as markdown blocks under a section header.
1476 * Added `haddock` (Haddock markup) as input format (David Lazar).
1478 * Added `revealjs` output format, for reveal.js HTML 5 slide shows.
1479 (Thanks to Jamie F. Olson for the initial patch.)
1480 Nested vertical stacks are used for hierarchical structure.
1481 Results for more than one level of nesting may be odd.
1483 * Custom writers can now be written in lua.
1485 pandoc -t data/sample.lua
1487 will load the script sample.lua and use it as a custom writer.
1488 (For a sample, do `pandoc --print-default-data-file sample.lua`.)
1489 Note that pandoc embeds a lua interpreter, so lua need not be
1490 installed separately.
1492 * New `--filter/-F` option to make it easier to run "filters"
1493 (Pandoc AST transformations that operate on JSON serializations).
1494 Filters are always passed the name of the output format, so their
1495 behavior can be tailored to it. The repository
1496 <https://github.com/jgm/pandocfilters> contains
1497 a python module for writing pandoc filters in python, with
1498 a number of examples.
1500 * Added `--metadata/-M` option.
1501 This is like `--variable/-V`, but actually adds to metadata, not
1504 * Added `--print-default-data-file` option, which allows printing
1505 of any of pandoc's data files. (For example,
1506 `pandoc --print-default-data-file reference.odt` will print
1509 * Added syntax for "pauses" in slide shows:
1517 * New markdown extensions:
1519 + `ignore_line_breaks`: causes intra-paragraph line breaks to be ignored,
1520 rather than being treated as hard line breaks or spaces. This is useful
1521 for some East Asian languages, where spaces aren't used between words,
1522 but text is separated into lines for readability.
1523 + `yaml_metadata_block`: Parse YAML metadata blocks. (Default.)
1524 + `ascii_identifiers`: This will force `auto_identifiers` to use ASCII
1525 only. (Default for `markdown_github`.) (#807)
1526 + `lists_without_preceding_blankline`: Allow lists to start without
1527 preceding blank space. (Default for `markdown_github`.) (#972)
1531 * `--toc-level` no longer implies `--toc`.
1532 Reason: EPUB users who don't want a visible TOC may still want
1533 to set the TOC level for in the book navigation.
1535 * `--help` now prints in and out formats in alphabetical order, and
1536 says something about PDF output (#720).
1538 * `--self-contained` now returns less verbose output (telling you
1539 which URLs it is fetching, but not giving the full header). In
1540 addition, there are better error messages when fetching a URL fails.
1542 * Citation support is no longer baked in to core pandoc. Users who
1543 need citations will need to install and use a separate filter
1544 (`--filter pandoc-citeproc`). This filter will take `bibliography`,
1545 `csl`, and `citation-abbreviations` from the metadata, though it
1546 may still be specified on the command line as before.
1548 * A `Cite` element is now created in parsing markdown whether or not
1549 there is a matching reference.
1551 * The `pandoc-citeproc` script will put the bibliography at the
1552 end of the document, as before. However, it will be put inside a `Div`
1553 element with class "references", allowing users some control
1554 over the styling of references. A final header, if any, will
1555 be included in the `Div`.
1557 * The markdown writer will not print a bibliography if the
1558 `citations` extension is enabled. (If the citations are formatted
1559 as markdown citations, it is redundant to have a bibliography,
1560 since one will be generated automatically.)
1562 * Previously we used to store the directory of the first input file,
1563 even if it was local, and used this as a base directory for finding
1564 images in ODT, EPUB, Docx, and PDF. This has been confusing to many
1565 users. So we now look for images relative to the current
1566 working directory, even if the first file argument is in another
1567 directory. Note that this change may break some existing workflows.
1568 If you have been assuming that relative links will be interpreted
1569 relative to the directory of the first file argument, you'll need
1570 to make that the current directory before running pandoc. (#942)
1572 * Better error reporting in some readers, due to changes in `readWith`:
1573 the line in which the error occured is printed, with a caret pointing
1576 * All slide formats now support incremental slide view for definition lists.
1578 * Parse `\(..\)` and `\[..\]` as math in MediaWiki reader.
1579 Parse `:<math>...</math>` as display math. These notations are used with
1580 the MathJax MediaWiki extension.
1582 * All writers: template variables are set automatically from metadata
1583 fields. However, variables specified on the command line with
1584 `--variable` will completely shadow metadata fields.
1586 * If `--variable` is used to set many variables with the same name,
1589 * Man writer: The `title`, `section`, `header`, and `footer` can now
1590 all be set individually in metadata. The `description` variable has been
1591 removed. Quotes have been added so that spaces are allowed in the
1592 title. If you have a title that begins
1594 COMMAND(1) footer here | header here
1596 pandoc will still parse it into a title, section, header, and
1597 footer. But you can also specify these elements explicitly (#885).
1601 + Added support for YAML metadata blocks, which can come anywhere
1602 in the document (not just at the beginning). A document can contain
1603 multiple YAML metadata blocks.
1604 + HTML span and div tags are parsed as pandoc Span and Div elements.
1608 + Allow simple tables to be printed as grid tables,
1609 if other table options are disabled. This means you can do
1610 `pandoc -t markdown-pipe_tables-simple_tables-multiline_tables`
1611 and all tables will render as grid tables.
1612 + Support YAML title block (render fields in alphabetical order
1613 to make output predictable).
1617 * `Meta` in `Text.Pandoc.Definition` has been changed to allow
1618 structured metadata. (Note: existing code that pattern-matches
1619 on `Meta` will have to be revised.) Metadata can now contain
1620 indefinitely many fields, with content that can be a string,
1621 a Boolean, a list of `Inline` elements, a list of `Block`
1622 elements, or a map or list of these.
1624 * A new generic block container (`Div`) has been added to `Block`,
1625 and a generic inline container (`Span`) has been added to `Inline`.
1626 These can take attributes. They will render in HTML, Textile,
1627 MediaWiki, Org, RST and and Markdown (with `markdown_in_html`
1628 extension) as HTML `<div>` and `<span>` elements; in other formats
1629 they will simply pass through their contents. But they can be
1630 targeted by scripts.
1632 * `Format` is now a newtype, not an alias for String.
1633 Equality comparisons are case-insensitive.
1635 * Added `Text.Pandoc.Walk`, which exports hand-written tree-walking
1636 functions that are much faster than the SYB functions from
1637 `Text.Pandoc.Generic`. These functions are now used where possible
1638 in pandoc's code. (`Tests.Walk` verifies that `walk` and `query`
1639 match the generic traversals `bottomUp` and `queryWith`.)
1641 * Added `Text.Pandoc.JSON`, which provides `ToJSON` and `FromJSON`
1642 instances for the basic pandoc types. They use GHC generics and
1643 should be faster than the old JSON serialization using
1644 `Data.Aeson.Generic`.
1646 * Added `Text.Pandoc.Process`, exporting `pipeProcess`.
1647 This is a souped-up version of `readProcessWithErrorcode` that
1648 uses lazy bytestrings instead of strings and allows setting
1649 environment variables. (Used in `Text.Pandoc.PDF`.)
1651 * New module `Text.Pandoc.Readers.OPML`.
1653 * New module `Text.Pandoc.Writers.OPML`.
1655 * New module `Text.Pandoc.Readers.Haddock` (David Lazar).
1656 This is based on Haddock's own lexer/parser.
1658 * New module `Text.Pandoc.Writers.Custom`.
1660 * In `Text.Pandoc.Shared`, `openURL` and `fetchItem` now return an
1661 Either, for better error handling.
1663 * Made `stringify` polymorphic in `Text.Pandoc.Shared`.
1665 * Removed `stripTags` from `Text.Pandoc.XML`.
1667 * `Text.Pandoc.Templates`:
1669 + Simplified `Template` type to a newtype.
1671 + Changed type of `renderTemplate`: it now takes a JSON context
1672 and a compiled template.
1673 + Export `compileTemplate`.
1674 + Export `renderTemplate'` that takes a string instead of a compiled
1676 + Export `varListToJSON`.
1678 * `Text.Pandoc.PDF` exports `makePDF` instead of `tex2pdf`.
1682 + Made `toJsonFilter` an alias for `toJSONFilter` from `Text.Pandoc.JSON`.
1683 + Removed `ToJsonFilter` typeclass. `ToJSONFilter` from
1684 `Text.Pandoc.JSON` should be used instead. (Compiling against
1685 pandoc-types instead of pandoc will also produce smaller executables.)
1686 * Removed the deprecated `jsonFilter` function.
1687 + Added `readJSON`, `writeJSON` to the API (#817).
1689 * `Text.Pandoc.Options`:
1691 + Added `Ext_lists_without_preceding_blankline`,
1692 `Ext_ascii_identifiers`, `Ext_ignore_line_breaks`,
1693 `Ext_yaml_metadataBlock` to `Extension`.
1694 + Changed `writerSourceDirectory` to `writerSourceURL` and changed the
1695 type to a `Maybe`. `writerSourceURL` is set to 'Just url' when the
1696 first command-line argument is an absolute URL. (So, relative links
1697 will be resolved in relation to the first page.) Otherwise, 'Nothing'.
1698 + All bibliography-related fields have been removed from
1699 `ReaderOptions` and `WriterOptions`: `writerBiblioFiles`,
1700 `readerReferences`, `readerCitationStyle`.
1702 * The `Text.Pandoc.Biblio` module has been removed. Users of the
1703 pandoc library who want citation support will need to use
1704 `Text.CSL.Pandoc` from `pandoc-citeproc`.
1709 * In markdown, don't autolink a bare URI that is followed by `</a>`
1712 * `Text.Pandoc.Shared`
1714 + `openURL` now follows redirects (#701), properly handles `data:`
1715 URIs, and prints diagnostic output to stderr rather than stdout.
1716 + `readDefaultDataFile`: normalize the paths. This fixes bugs in
1717 `--self-contained` on pandoc compiled with `embed_data_files` (#833).
1718 + Fixed `readDefaultDataFile` so it works on Windows.
1719 + Better error messages for `readDefaultDataFile`. Instead of
1720 listing the last path tried, which can confuse people who are
1721 using `--self-contained`, so now we just list the data file name.
1722 + URL-escape pipe characters. Even though these are legal, `Network.URI`
1723 doesn't regard them as legal in URLs. So we escape them first (#535).
1725 * Mathjax in HTML slide shows: include explicit "Typeset" call.
1726 This seems to be needed for some formats (e.g. slideous) and won't
1727 hurt in others (#966).
1731 + On Windows, create temdir in working directory, since the system
1732 temp directory path may contain tildes, which can cause
1733 problems in LaTeX (#777).
1734 + Put temporary output directory in `TEXINPUTS` (see #917).
1735 + `makePDF` tries to download images that are not found locally,
1736 if the first argument is a URL (#917).
1737 + If compiling with `pdflatex` yields an encoding error, offer
1738 the suggestion to use `--latex-engine=xelatex`.
1740 * Produce automatic header identifiers in parsing textile, RST,
1741 and LaTeX, unless `auto_identifiers` extension is disabled (#967).
1743 * `Text.Pandoc.SelfContained`: Strip off fragment, query of relative URL
1744 before treating as a filename. This fixes `--self-contained` when used
1745 with CSS files that include web fonts using the method described here:
1746 <http://paulirish.com/2009/bulletproof-font-face-implementation-syntax/>
1747 (#739). Handle `src` in `embed`, `audio`, `source`, `input` tags.
1749 * `Text.Pandoc.Parsing`: `uri` parser no longer treats punctuation before
1750 percent-encoding, or a `+` character, as final punctuation.
1752 * `Text.Pandoc.ImageSize`: Handle EPS (#903). This change will make
1753 EPS images properly sized on conversion to Word.
1755 * Slidy: Use slidy.js rather than slidy.js.gz.
1756 Reason: some browsers have trouble with the gzipped js file,
1757 at least on the local file system (#795).
1761 + Properly handle blank line at beginning of input (#882).
1762 + Fixed bug in unmatched reference links. The input
1763 `[*infile*] [*outfile*]` was getting improperly parsed:
1764 "infile" was emphasized, but "*outfile*" was literal (#883).
1765 + Allow internal `+` in citation identifiers (#856).
1766 + Allow `.` or `)` after `#` in ATX headers if no `fancy_lists`.
1767 + Do not generate blank title, author, or date metadata elements.
1768 Leave these out entirely if they aren't present.
1769 + Allow backtick code blocks not to be preceded by blank line (#975).
1773 + Correctly handle entities.
1774 + Improved handling of `<pre>` blocks (#927). Remove internal HTML tags
1775 in code blocks, rather than printing them verbatim. Parse attributes
1776 on `<pre>` tag for code blocks.
1778 * HTML reader: Handle non-simple tables (#893). Column widths are read from
1779 `col` tags if present, otherwise divided equally.
1783 + Support alltt environment (#892).
1784 + Support `\textasciitilde`, `\textasciicircum` (#810).
1785 + Treat `\textsl` as emphasized text reader (#850).
1786 + Skip positional options after `\begin{figure}`.
1787 + Support `\v{}` for hacek (#926).
1788 + Don't add spurious ", " to citation suffixes.
1789 This is added when needed in pandoc-citeproc.
1790 + Allow spaces in alignment spec in tables, e.g. `{ l r c }`.
1791 + Improved support for accented characters (thanks to Scott Morrison).
1792 + Parse label after section command and set id (#951).
1796 + Don't insert paragraphs where docutils doesn't.
1797 `rst2html` doesn't add `<p>` tags to list items (even when they are
1798 separated by blank lines) unless there are multiple paragraphs in the
1799 list. This commit changes the RST reader to conform more closely to
1800 what docutils does (#880).
1801 + Improved metadata. Treat initial field list as metadata when
1802 standalone specified. Previously ALL fields "title", "author",
1803 "date" in field lists were treated as metadata, even if not at
1804 the beginning. Use `subtitle` metadata field for subtitle.
1805 + Fixed 'authors' metadata parsing in reST. Semicolons separate
1810 + Allow space before table rows.
1811 + Fixed regression for `<ref>URL</ref>`.
1812 `<` is no longer allowed in URLs, according to the uri parser
1813 in `Text.Pandoc.Parsing`. Added a test case.
1814 + Correctly handle indented preformatted text without preceding
1815 or following blank line.
1816 + Fixed `|` links inside table cells. Improved attribute parsing.
1817 + Skip attributes on table rows. Previously we just crashed if
1818 rows had attributes, now we ignore them.
1819 + Ignore attributes on headers.
1820 + Allow `Image:` for images (#971).
1821 + Parse an image with caption in a paragraph by itself as a figure.
1825 + Don't use ligatures in escaping inline code.
1826 + Fixed footnote numbers in LaTeX/PDF tables. This fixes a bug
1827 wherein notes were numbered incorrectly in tables (#827).
1828 + Always create labels for sections. Previously the labels were only
1829 created when there were links to the section in the document (#871).
1830 + Stop escaping `|` in LaTeX math.
1831 This caused problems with array environments (#891).
1832 + Change `\` to `/` in paths. `/` works even on Windows in LaTeX.
1833 `\` will cause major problems if unescaped.
1834 + Write id for code block to label attribute in LaTeX when listings
1835 is used (thanks to Florian Eitel).
1836 + Scale LaTeX tables so they don't exceed columnwidth.
1837 + Avoid problem with footnotes in unnumbered headers (#940).
1839 * Beamer writer: when creating beamer slides, add `allowframebreaks` option
1840 to the slide if it is one of the header classes. It is recommended
1841 that your bibliography slide have this attribute:
1843 # References {.allowframebreaks}
1845 This causes multiple slides to be created if necessary, depending
1846 on the length of the bibliography.
1848 * ConTeXt writer: Properly handle tables without captions. The old output
1849 only worked in MkII. This should work in MkIV as well (#837).
1851 * MediaWiki writer: Use native mediawiki tables instead of HTML (#720).
1855 + Fixed `--no-highlight` (Alexander Kondratskiy).
1856 + Don't convert to lowercase in email obfuscation (#839).
1857 + Ensure proper escaping in `<title>` and `<meta>` fields.
1861 + Support `--atx-headers` (Max Rydahl Andersen).
1862 + Don't print empty identifier blocks `([[]])` on headers (Max
1867 + Fixing wrong numbered-list indentation in open document format
1868 (Alexander Kondratskiy) (#369).
1869 + `reference.odt`: Added pandoc as "generator" in `meta.xml`.
1870 + Minor changes for ODF 1.2 conformance (#939). We leave the
1871 nonconforming `contextual-spacing` attribute, which is provided by
1872 LibreOffice itself and seems well supported.
1876 + Fixed rendering of display math in lists.
1877 In 1.11 and 1.11.1, display math in lists rendered as a new list
1878 item. Now it always appears centered, just as outside of lists,
1879 and in proper display math style, no matter how far indented the
1880 containing list item is (#784).
1881 + Use `w:br` with `w:type` `textWrapping` for linebreaks.
1882 Previously we used `w:cr` (#873).
1883 + Use Compact style for Plain block elements, to
1884 differentiate between tight and loose lists (#775).
1885 + Ignore most components of `reference.docx`.
1886 We take the `word/styles.xml`, `docProps/app.xml`,
1887 `word/theme/theme1.xml`, and `word/fontTable.xml` from
1888 `reference.docx`, ignoring everything else. This should help
1889 with the corruption problems caused when different versions of
1890 Word resave the reference.docx and reorganize things.
1891 + Made `--no-highlight` work properly.
1895 + Don't add `dc:creator` tags if present in EPUB metadata.
1896 + Add `id="toc-title"` to `h1` in `nav.xhtml` (#799).
1897 + Don't put blank title page in reading sequence.
1898 Set `linear="no"` if no title block. Addresses #797.
1899 + Download webtex images and include as data URLs.
1900 This allows you to use `--webtex` in creating EPUBs.
1901 Math with `--webtex` is automatically made self-contained.
1902 + In `data/epub.css`, removed highlighting styles (which
1903 are no longer needed, since styles are added by the HTML
1904 writer according to `--highlighting-style`). Simplified
1906 + If resource not found, skip it, as in Docx writer (#916).
1910 + Properly handle characters above the 0000-FFFF range.
1911 Uses surrogate pairs. Thanks to Hiromi Ishii for the patch.
1912 + Fixed regression with RTF table of contents.
1913 + Only autolink absolute URIs. This fixes a regression, #830.
1917 + Only autolink absolute URIs. This fixes a regression, #830.
1918 + Don't wrap attributes in fenced code blocks.
1919 + Write full metadata in MMD style title blocks.
1920 + Put multiple authors on separate lines in pandoc titleblock.
1921 Also, don't wrap long author entries, as new lines get treated
1924 * `Text.Pandoc.Templates`:
1926 + Fixed bug retrieving default template for markdown variants.
1927 + Templates can now contain "record lookups" in variables;
1928 for example, `author.institution` will retrieve the `institution`
1929 field of the `author` variable.
1930 + More consistent behavior of `$for$`. When `foo` is not a list,
1931 `$for(foo)$...$endfor$` should behave like $if(foo)$...$endif$.
1932 So if `foo` resolves to "", no output should be produced.
1933 See pandoc-templates#39.
1935 * Citation processing improvements (now part of pandoc-citeproc):
1937 + Fixed `endWithPunct` The new version correctly sees a sentence
1938 ending in '.)' as ending with punctuation. This fixes a bug which
1939 led such sentences to receive an extra period at the end: '.).'.
1940 Thanks to Steve Petersen for reporting.
1941 + Don't interfere with Notes that aren't citation notes.
1942 This fixes a bug in which notes not generated from citations were
1943 being altered (e.g. first letter capitalized) (#898).
1944 + Only capitalize footnote citations when they have a prefix.
1945 + Changes in suffix parsing. A suffix beginning with a digit gets 'p'
1946 inserted before it before passing to citeproc-hs, so that bare numbers
1947 are treated as page numbers by default. A suffix not beginning with
1948 punctuation has a space added at the beginning (rather than a comma and
1949 space, as was done before for not-author-in-text citations).
1950 The result is that `\citep[23]{item1}` in LaTeX will be interpreted
1951 properly, with '23' treated as a locator of type 'page'.
1952 + Many improvements to citation rendering, due to fixes in citeproc-hs
1953 (thanks to Andrea Rossato).
1954 + Warnings are issued for undefined citations, which are rendered
1956 + Fixed hanging behavior when locale files cannot be found.
1960 * DocBook: Use DocBook 4.5 doctype.
1962 * Org: '#+TITLE:' is inserted before the title.
1963 Previously the writer did this.
1965 * LaTeX: Changes to make mathfont work with xelatex.
1966 We need the mathspec library, not just fontspec, for this.
1967 We also need to set options for setmathfont (#734).
1969 * LaTeX: Use `tex-ansi` mapping for `monofont`.
1970 This ensures that straight quotes appear as straight, rather than
1971 being treated as curly. See #889.
1973 * Made `\includegraphics` more flexible in LaTeX template.
1974 Now it can be used with options, if needed. Thanks to Bernhard Weichel.
1976 * LaTeX/Beamer: Added `classoption` variable.
1977 This is intended for class options like `oneside`; it may
1978 be repeated with different options. (Thanks to Oliver Matthews.)
1980 * Beamer: Added `fonttheme` variable. (Thanks to Luis Osa.)
1982 * LaTeX: Added `biblio-style` variable (#920).
1984 * DZSlides: title attribute on title section.
1986 * HTML5: add meta tag to allow scaling by user (Erik Evenson)
1988 [under-the-hood improvements]
1990 * Markdown reader:Improved strong/emph parsing, using the strategy of
1991 <https://github.com/jgm/Markdown>. The new parsing algorithm requires
1992 no backtracking, and no keeping track of nesting levels. It will give
1993 different results in some edge cases, but these should not affect normal
1996 * Added `Text.Pandoc.Compat.Monoid`.
1997 This allows pandoc to compile with `base` < 4.5, where `Data.Monoid`
1998 doesn't export `<>`. Thanks to Dirk Ullirch for the patch.
2000 * Added `Text.Pandoc.Compat.TagSoupEntity`.
2001 This allows pandoc to compile with `tagsoup` 0.13.x.
2002 Thanks to Dirk Ullrich for the patch.
2004 * Most of `Text.Pandoc.Readers.TeXMath` has been moved to the
2005 `texmath` module (0.6.4). (This allows `pandoc-citeproc` to
2006 handle simple math in bibliography fields.)
2008 * Added `Text.Pandoc.Writers.Shared` for shared functions used
2009 only in writers. `metaToJSON` is used in writers to create a
2010 JSON object for use in the templates from the pandoc metadata
2011 and variables. `getField`, `setField`, and `defField` are
2012 for working with JSON template contexts.
2014 * Added `Text.Pandoc.Asciify` utility module.
2015 This exports functions to create ASCII-only versions of identifiers.
2017 * `Text.Pandoc.Parsing`
2019 + Generalized state type on `readWith` (API change).
2020 + Specialize readWith to `String` input. (API change).
2021 + In `ParserState`, replace `stateTitle`, `stateAuthors`, `stateDate`
2022 with `stateMeta` and `stateMeta'`.
2024 * `Text.Pandoc.UTF8`: use strict bytestrings in reading. The use of lazy
2025 bytestrings seemed to cause problems using pandoc on 64-bit Windows
2028 * Factored out `registerHeader` from markdown reader, added to
2029 `Text.Pandoc.Parsing`.
2031 * Removed `blaze_html_0_5` flag, require `blaze-html` >= 0.5.
2032 Reason: < 0.5 does not provide a monoid instance for Attribute,
2033 which is now needed by the HTML writer (#803).
2035 * Added `http-conduit` flag, which allows fetching https resources.
2036 It also brings in a large number of dependencies (`http-conduit`
2037 and its dependencies), which is why for now it is an optional flag
2040 * Added CONTRIBUTING.md.
2042 * Improved INSTALL instructions.
2044 * `make-windows-installer.bat`: Removed explicit paths for executables.
2046 * `aeson` is now used instead of `json` for JSON.
2048 * Set default stack size to 16M. This is needed for some large
2049 conversions, esp. if pandoc is compiled with 64-bit ghc.
2051 * Various small documentation improvements.
2052 Thanks to achalddave and drothlis for patches.
2054 * Removed comment that chokes recent versions of CPP (#933).
2056 * Removed support for GHC version < 7.2, since pandoc-types now
2057 requires at least GHC 7.2 for GHC generics.
2064 + Fixed regression in which parentheses were lost in link URLs.
2065 Added tests. Closes #786.
2066 + Better handling of unmatched double quotes in `--smart` mode.
2067 These occur frequently in fiction, since it is customary not to
2068 close quotes in dialogue if the speaker does not change between
2069 paragraphs. The unmatched quotes now get turned into literal
2070 left double quotes. (No `Quoted` inline is generated, however.)
2073 * HTML writer: Fixed numbering mismatch between TOC and sections.
2074 `--number-offset` now affects TOC numbering as well
2075 as section numbering, as it should have all along. Closes #789.
2077 * Markdown writer: Reverted 1.11 change that caused citations to be rendered
2078 as markdown citations, even if `--bibliography` was specified, unless
2079 `citation` extension is disabled. Now, formatted citations are always
2080 printed if `--bibliography` was specified. If you want to reformat
2081 markdown keeping pandoc markdown citations intact, don't use
2082 `--bibliography`. Note that citations parsed from LaTeX documents will
2083 be rendered as pandoc markdown citations when `--bibliography` is not
2086 * ODT writer: Fixed regression leading to corrupt ODTs.
2087 This was due to a change in the `Show` instance for
2088 `Text.Pandoc.Pretty.Doc`. Closes #780.
2090 * Fixed spacing bugs involving code block attributes in
2091 RST reader and Markdown writer. Closes #763.
2093 * Windows package: Various improvements due to Fyodor Sheremetyev.
2095 + Automatically set installation path (Program Files or Local App Data).
2096 + Set system PATH environment variable when installing for all users.
2097 + Pandoc can installed for all users using the following command.
2098 `msiexec /i pandoc-1.11.msi ALLUSERS=1`.
2100 * Bumped QuickCheck version bound.
2104 * Added `--number-offset` option. (See README for description.)
2106 * Added `--default-image-extension` option. (See README for description.)
2108 * `--number-sections` behavior change: headers with class `unnumbered`
2109 will not be numbered.
2111 * `--version` now reports the default data directory.
2113 * `Text.Pandoc.Parsing` is no longer exposed. (API change.)
2115 * `Text.Pandoc.Highlighting` is no longer exposed. (API change.)
2117 * `Text.Pandoc.Shared`: Changed type of `Element`. `Sec` now includes
2118 a field for `Attr` rather than just `String`. (API change.)
2120 * Added `markdown_github` as input format. This was an accidental
2123 * Added `readerDefaultImageExtension` field to `ReaderOptions`. (API
2126 * Added `writerNumberOffset` field in `WriterOptions`. (API change.)
2130 + Fixed captions with longtable. Thanks to Joost Kremers.
2131 + Provide `\Oldincludegraphics` as in LaTeX template (Benjamin Bannier).
2135 + Load microtype after fonts. Microtype needs to know
2136 what fonts are being used. Thanks to dfc for the patch.
2137 + Set `secnumdepth` to 5 if `--number-sections` specified.
2138 This yields behavior equivalent to the other writers, numbering
2139 level 4 and 5 headers too. Closes #753.
2143 + Handle `<colgroup>` tag.
2144 + Preserve all header attributes.
2148 + Parse `\hrule` as `HorizontalRule`. Closes #746.
2149 + Parse starred variants of `\section` etc. as headers with
2150 attribute `unnumbered`.
2151 + Read optional attributes in `lstlisting` and `Verbatim` environments.
2152 We convert these to pandoc standard names, e.g. `numberLines`
2153 for `numbers=left`, `startFrom=100` from `firstnumber=100`.
2154 + Handle language attribute for lstlistings.
2155 + Better support for Verbatim and minted environments. Closes #763.
2159 + `-` in an attribute context = `.unnumbered`. The point of this
2160 is to provide a way to specify unnumbered headers in non-English
2162 + Fixed bug parsing key/value attributes. Parsing failed if you
2163 had an unquoted attribute immediately before the final '}'.
2164 + Make backslash escape work in attributes.
2165 + Fix title block parsing. Now if `mmd_title_blocks` is specified,
2166 pandoc will parse a MMD title block if it sees one, even if
2167 `pandoc_title_blocks` is enabled.
2168 + Refactoring: `litChar` now includes entities, so we don't need
2169 to use `fromEntities` e.g. on titles.
2170 + Allow spaces around borders in pipe tables. Closes #772.
2171 + Allow all punctuation in angle-bracket autolinks. Previously
2172 things like `----` were disallowed, because the uri parser
2173 treated them as trailing punctuation. Closes #768.
2174 + Make `implicit_header_references` work properly when
2175 headers are given explicit identifiers.
2176 + Check for tables before line blocks. Otherwise some pipe
2177 tables get treated as line blocks.
2178 + Allow `&` in emails (for entities).
2179 + Properly handle entities in titles and links. A markdown link
2180 `<http://göogle.com>` should be a link to `http://göogle.com`.
2185 + Handle attributes on headers.
2189 + Add `fig:` as title for images with captions.
2190 This is needed for them to be rendered as figures. Closes #766.
2191 + Never emit an empty paragraph. See #761.
2192 + Handle `\caption` for images in figures. Closes #766.
2193 + Parse `\section*`, etc. as unnumbered sections.
2197 + Support header attributes. The attributes go on
2198 the enclosing `section` or `div` tag if `--section-divs` is specified.
2199 + Fixed a regression (only now noticed) in html+lhs output.
2200 Previously the bird tracks were being omitted.
2204 + Omit lists with no items to avoid LaTeX errors.
2205 + Support line numbering with `--listings`.
2206 If `numberLines` class is present, we add `numbers=left`;
2207 if `startFrom` is present, we add `firstnumber=`. (#763)
2211 + Removed `\placecontent`. This produced a duplicate toc,
2212 in conjunction with `\placelist`.
2213 + Use `\title`, `\subject` etc. for headers with
2218 + Support header attributes.
2222 + Use grid tables when needed, and if enabled. Closes #740.
2223 + Render citations as pandoc-markdown citations.
2224 Previously citations were rendered as citeproc-formatted citations
2225 by default. Now we render them as pandoc citations, e.g. `[@item1]`,
2226 unless the `citations` extension is disabled.
2227 If you still want formatted citations in your markdown output,
2228 use `pandoc -t markdown-citations`.
2232 + Support `:number-lines:` in code blocks.
2236 + Better treatment of display math. Display math inside a
2237 paragraph is now put in a separate paragraph, so it will render
2238 properly (centered and without extra blank lines around it).
2239 Partially addresses #742.
2240 + Content types and document rels xml files are now created from
2241 scratch, rather than being taken over from `reference.docx`.
2242 This fixes problems that arise when you edit the `reference.docx`
2244 + We also now encode mime types for each individual image rather
2245 than using defaults. This should allow us to handle a wider
2246 range of image types (including PDF). Closes #414.
2247 + Changed style names in `reference docx`.
2248 `FootnoteReference` -> `FootnoteRef`, `Hyperlink` -> `Link`.
2249 The old names got changed by Word when the `reference.docx` was
2250 edited. Closes #414.
2254 + Fix section numbering. Previously the numbering restarted from 1
2255 in each chapter (with `--number-sections`), though the numbers in
2256 the table of contents were correct.
2257 + Headers with "unnumbered" attribute are not numbered. (Nor do they
2258 cause an increment in running numbering.) Section numbers now work
2259 properly, even when there is material before the first numbered section.
2260 + Include HTML TOC, even in epub2. The TOC is included in `<spine>`,
2261 but `linear` is set to `no` unless the `--toc` option is specified.
2262 Include `<guide>` element in OPF. This should allow the TOC to
2263 be useable in Kindles when converted with kindlegen. Closes #773.
2265 * `Text.Pandoc.Parsing`: Optimized `oneOfStringsCI`.
2266 This dramatically reduces the speed penalty that comes from enabling the
2267 `autolink_bare_uris` extension. The penalty is still substantial (in one
2268 test, from 0.33s to 0.44s), but nowhere near what it used to be.
2269 The RST reader is also much faster now, as it autodetects URIs.
2271 * `Text.Pandoc.Shared`: `hierarchicalize` will not number section
2272 with class "unnumbered". Unnumbered sections get `[]` for their
2275 * `Text.Pandoc.Pretty`:
2277 + Fixed `chomp` so it works inside `Prefixed` elements.
2278 + Changed `Show` instance so it is better for debugging.
2280 * `Text.Pandoc.ImageSize`: Added `Pdf` to `ImageType`.
2282 * `Text.Pandoc.UTF8`: Strip off BOM if present. Closes #743.
2284 * Windows installer improvements:
2286 + The installer is now signed with a certificate (thanks to
2287 Fyodor Sheremetyev).
2288 + WiX is used instead of InnoSetup. The installer is now a
2290 + The version number is now auto-detected, and need not be
2293 * OSX installer improvements:
2295 + The package and pandoc executable are now signed with a
2296 certificate (thanks to Fyodor Sheremetyev).
2297 + RTF version of license is used.
2298 + Use full path for sysctl in `InstallationCheck` script (jonahbull).
2301 * Converted COPYING to markdown.
2303 * pandoc.cabal: Require latest versions of highlighting-kate,
2304 texmath, citeproc-hs, zip-archive.
2308 * Markdown reader: various optimizations, leading to a
2309 significant performance boost.
2311 * RST reader: Allow anonymous form of inline links:
2312 `` `hello <url>`__ `` Closes #724.
2314 * Mediawiki reader: Don't require newlines after tables.
2315 Thanks to jrunningen for the patch. Closes #733.
2317 * Fixed LaTeX macro parsing. Now LaTeX macro definitions are preserved
2318 when output is LaTeX, and applied when it is another format.
2319 Partially addresses #730.
2321 * Markdown and RST readers: Added parser to `block` that skips blank
2322 lines. This fixes a subtle regression involving grid tables with
2323 empty cells. Also added test for grid table with empty cells.
2326 * RST writer: Use `.. code:: language` for code blocks with language.
2329 * DocBook writer: Fixed output for hard line breaks, adding a newline
2330 between `<literallayout>` tags.
2332 * Markdown writer: Use an autolink when link text matches url.
2333 Previously we also checked for a null title, but this
2334 test fails for links produced by citeproc-hs in bibliographies.
2335 So, if the link has a title, it will be lost on conversion
2336 to an autolink, but that seems okay.
2338 * Markdown writer: Set title, author, date variables as before.
2339 These are no longer used in the default template, since we use
2340 titleblock, but we set them anyway for those who use custom templates.
2342 * LaTeX writer: Avoid extra space at start/end of table cell.
2343 Thanks to Nick Bart for the suggestion of using @{}.
2345 * `Text.Pandoc.Parsing`:
2347 + More efficient version of `anyLine`.
2348 + Type of `macro` has changed; the parser now returns `Blocks`
2351 * Relaxed old-time version bound, allowing 1.0.*.
2353 * Removed obsolete `hsmarkdown` script. Those who need `hsmarkdown`
2354 should create a symlink as described in the README.
2358 * Markdown reader: Try `lhsCodeBlock` before `rawTeXBlock`. Otherwise
2359 `\begin{code}...\end{code}` isn't handled properly in markdown+lhs.
2360 Thanks to Daniel Miot for noticing the bug and suggesting the fix.
2362 * Markdown reader: Fixed bug with headerless grid tables.
2363 The 1.10 code assumed that each table header cell contains exactly one
2364 block. That failed for headerless tables (0) and also for tables with
2365 multiple blocks in a header cell. The code is fixed and tests provided.
2366 Thanks to Andrew Lee for pointing out the bug.
2368 * Markdown reader: Fixed regressions in fenced code blocks. Closes #722.
2370 + Tilde code fences can again take a bare language string
2371 (`~~~ haskell`), not just curly-bracketed attributes
2373 + Backtick code blocks can take the curly-bracketed attributes.
2374 + Backtick code blocks don't *require* a language.
2375 + Consolidated code for the two kinds of fenced code blocks.
2377 * LaTeX template: Use `\urlstyle{same}` to avoid monospace URLs.
2379 * Markdown writer: Use proportional font for email autolinks with
2380 obfuscation. Closes #714.
2382 * Corrected name of `blank_before_blockquote` in README. Closes #718.
2384 * `Text.Pandoc.Shared`: Fixed bug in `uri` parser.
2385 The bug prevented an autolink at the end of a string (e.g.
2386 at the end of a line block line) from counting as a link. Closes #711.
2388 * Use the `hsb2hs` preprocessor instead of TH for embed_data_files.
2389 This should work on Windows, unlike the TH solution with
2392 * Eliminated use of TH in test suite.
2394 * Added `Text.Pandoc.Data` (non-exported) to hold the association
2395 list of embedded data files, if the `embed_data_files` flag is selected.
2396 This isolates the code that needs special treatment with file-embed or
2399 * Changes to `make-windows-installer.bat`.
2401 + Exit batch file if any of the cabal-dev installs fail.
2402 + There's no longer any need to reinstall `highlighting-kate`.
2403 + Don't start with a `cabal update`; leave that to the user.
2404 + Force reinstall of pandoc.
2406 * Fixed EPUB writer so it builds with blaze-html 0.4.x. Thanks to
2411 * Fixed bug with escaped % in LaTeX reader. Closes #710.
2415 * Added further missing fb2 tests to cabal file.
2419 * Added fb2 tests to cabal file's extra-source-files.
2423 * Bump version bounds on test-framework packages.
2429 * New input formats: `mediawiki` (MediaWiki markup).
2431 * New output formats: `epub3` (EPUB v3 with MathML),
2432 `fb2` (FictionBook2 ebooks).
2434 * New `--toc-depth` option, specifying how many levels of
2435 headers to include in a table of contents.
2437 * New `--epub-chapter-level` option, specifying the header
2438 level at which to divide EPUBs into separate files.
2439 Note that this normally affects only performance, not the
2440 visual presentation of the EPUB in a reader.
2442 * Removed the `--strict` option. Instead of using `--strict`,
2443 one can now use the format name `markdown_strict` for either input
2444 or output. This gives more fine-grained control that `--strict`
2445 did, allowing one to convert from pandoc's markdown to strict
2446 markdown or vice versa.
2448 * It is now possible to enable or disable specific syntax
2449 extensions by appending them (with `+` or `-`) to the writer
2450 or reader name. For example,
2452 pandoc -f markdown-footnotes+hard_line_breaks
2454 disables footnotes and enables treating newlines as hard
2455 line breaks. The literate Haskell extensions are now implemented
2456 this way as well, using either `+lhs` or `+literate_haskell`.
2457 For a list of extension names, see the README under
2458 "Pandoc's Markdown."
2460 * The following aliases have been introduced for specific
2461 combinations of markdown extensions: `markdown_phpextra`,
2462 `markdown_github`, `markdown_mmd`, `markdown_strict`. These aliases
2463 work just like regular reader and writer names, and can be modified
2464 with extension modifiers as described above. (Note that conversion
2465 from one markdown dialect to another does not work perfectly,
2466 because there are differences in markdown parsers besides
2467 just the extensions, and because pandoc's internal document model is
2468 not rich enough to capture all of the extensions.)
2470 * New `--html-q-tags` option. The previous default was to use `<q>`
2471 tags for smart quotes in HTML5. But `<q>` tags are also valid HTML4.
2472 Moreover, they are not a robust way of typesetting quotes, since
2473 some user agents don't support them, and some CSS resets (e.g.
2474 bootstrap) prevent pandoc's quotes CSS from working properly.
2475 We now just insert literal quote characters by default in both
2476 `html` and `html5` output, but this option is provided for
2477 those who still want `<q>` tags.
2479 * The markdown reader now prints warnings (to stderr) about
2480 duplicate link and note references. Closes #375.
2482 * Markdown syntax extensions:
2484 + Added pipe tables. Thanks to François Gannaz for the initial patch.
2485 These conform to PHP Markdown Extra's pipe table syntax. A subset
2486 of org-mode table syntax is also supported, which means that you can
2487 use org-mode's nice table editor to create tables.
2489 + Added support for RST-style line blocks. These are
2490 useful for verse and addresses.
2492 + Attributes can now be specified for headers, using the same
2493 syntax as in code blocks. (However, currently only the
2494 identifier has any effect in most writers.) For example,
2498 See [the header above](#foo).
2500 + Pandoc will now act as if link references have been defined
2501 for all headers without explicit identifiers.
2502 So, you can do this:
2506 Link to [My header].
2507 Another link to [it][My header].
2513 + Command macros now work everywhere, including non-math.
2514 Environment macros still not supported.
2515 + `\input` now works, as well as `\include`. TEXINPUTS is used.
2516 Pandoc looks recursively into included files for more included files.
2520 * The Markdown reader no longer puts the text of autolinks in a
2521 `Code` inline. This means that autolinks will no longer appear
2522 in a monospace font.
2524 * The character `/` can now appear in markdown citation keys.
2526 * HTML blocks in strict_markdown are no longer required to begin
2527 at the left margin. Technically this is required, according to
2528 the markdown syntax document, but `Markdown.pl` and other markdown
2529 processors are more liberal.
2531 * The `-V` option has been changed so that if there are duplicate
2532 variables, those specified later on the command line take precedence.
2534 * Tight lists now work in LaTeX and ConTeXt output.
2536 * The LaTeX writer no longer relien on the `enumerate` package.
2537 Instead, it uses standard LaTeX commands to change the list numbering
2540 * The LaTeX writer now uses `longtable` instead of `ctable`. This allows
2541 tables to be split over page boundaries.
2543 * The RST writer now uses a line block to render paragraphs containing
2544 linebreaks (which previously weren't supported at all).
2546 * The markdown writer now applies the `--id-prefix` to footnote IDs.
2549 * The plain writer no longer uses backslash-escaped line breaks
2550 (which are not very "plain").
2552 * `Text.Pandoc.UTF8`: Better error message for invalid UTF8.
2553 Read bytestring and use `Text`'s decodeUtf8 instead of using
2554 `System.IO.hGetContents`. This way you get a message saying
2555 "invalid UTF-8 stream" instead of "invalid byte sequence."
2556 You are also told which byte caused the problem.
2558 * Docx, ODT, and EPUB writers now download images specified by a URL
2559 instead of skipping them or raising an error.
2563 + The default CSS now left-aligns headers by default, instead of
2564 centering. This is more consistent with the rest of the writers.
2565 + A proper multi-level table of contents is now used in `toc.ncx`.
2566 There is no longer a subsidiary table of contents at the beginning
2568 + Code highlighting now works by default.
2569 + Section divs are used by default for better semantic markup.
2570 + The title is used instead of "Title Page" in the table of contents.
2571 Otherwise we have a hard-coded English string, which looks
2572 strange in ebooks written in other languages. Closes #572.
2576 + Put mathjax in span with class "math". Closes #562.
2577 + Put citations in a span with class "citation." In HTML5, also include
2578 a `data-cite` attribute with a space-separated list of citation
2581 * `Text.Pandoc.UTF8`: use universalNewlineMode in reading.
2582 This treats both `\r\n` and `\n` as `\n` on input, no matter
2583 what platform we're running on.
2585 * Citation processing is now done in the Markdown and LaTeX
2586 readers, not in `pandoc.hs`. This makes it easier for library users
2591 * HTML: Added css to template to preserve spaces in `<code>` tags.
2592 Thanks to Dirk Laurie.
2594 * Beamer: Remove English-centric strings in section pages.
2595 Section pages used to have "Section" and a number as well as the
2596 section title. Now they just have the title. Similarly for part
2597 and subsection. Closes #566.
2599 * LaTeX, ConTeXt: Added papersize variable.
2601 * LaTeX, Beamer templates: Use longtable instead of ctable.
2603 * LaTeX, Beamer templates: Don't require 'float' package for tables.
2604 We don't actually seem to use the '[H]' option.
2606 * LaTeX: Use `upquote` package if it is available. This fixes
2607 straight quotes in verbatim environments.
2609 * Markdown, plain: Fixed titleblock so it is just a single string.
2610 Previously separate title, author, and date variables were used,
2611 but this didn't allow different kinds of title blocks.
2615 + Rationalized templates. Previously there were three different
2616 templates involved in epub production. There is now just one
2617 template, `default.epub` or `default.epub3`. It can now be
2618 overridden using `--template`, just like other templates.
2619 The titlepage is now folded into the default template.
2620 A `titlepage` variable selects it.
2621 + UTF-8, lang tag, meta tags, title element.
2623 * Added scale-to-width feature to beamer template
2627 * `Text.Pandoc.Definition`: Added `Attr` field to `Header`.
2628 Previously header identifers were autogenerated by the writers.
2629 Now they are added in the readers (either automatically or explicitly).
2631 * `Text.Pandoc.Builder`:
2633 + `Inlines` and `Blocks` are now synonyms for `Many Inline` and
2634 `Many Block`. `Many` is a newtype wrapper around `Seq`, with
2635 custom Monoid instances for `Many Inline` and `Many Block. This
2636 allows `Many` to be made an instance of `Foldable` and `Traversable`.
2637 + The old `Listable` class has been removed.
2638 + The module now exports `isNull`, `toList`, `fromList`.
2639 + The old `Read` and `Show` instances have been removed; derived
2640 instances are now used.
2641 + Added `headerWith`.
2643 * The readers now take a `ReaderOptions` rather than a `ParserState`
2644 as a parameter. Indeed, not all parsers use the `ParserState` type;
2645 some have a custom state. The motivation for this change was to separate
2646 user-specifiable options from the accounting functions of parser state.
2648 * New module `Text.Pandoc.Options`. This includes the `WriterOptions`
2649 formerly in `Text.Pandoc.Shared`, and its associated
2650 data types. It also includes a new type `ReaderOptions`, which
2651 contains many options formerly in `ParserState`, and its associated
2654 + `ParserState.stateParseRaw` -> `ReaderOptions.readerParseRaw`.
2655 + `ParserState.stateColumns` -> `ReaderOptions.readerColumns`.
2656 + `ParserState.stateTabStop` -> `ReaderOptions.readerTabStop`.
2657 + `ParserState.stateOldDashes` -> `ReaderOptions.readerOldDashes`.
2658 + `ParserState.stateLiterateHaskell` -> `ReaderOptions.readerLiterateHaskell`.
2659 + `ParserState.stateCitations` -> `ReaderOptions.readerReferences`.
2660 + `ParserState.stateApplyMacros` -> `ReaderOptions.readerApplyMacros`.
2661 + `ParserState.stateIndentedCodeClasses` ->
2662 `ReaderOptions.readerIndentedCodeClasses`.
2663 + Added `ReaderOptions.readerCitationStyle`.
2665 * `WriterOptions` now includes `writerEpubVersion`, `writerEpubChapterLevel`,
2666 `writerEpubStylesheet`, `writerEpubFonts`, `writerReferenceODT`,
2667 `writerReferenceDocx`, and `writerTOCDepth`. `writerEPUBMetadata` has
2668 been renamed `writerEpubMetadata` for consistency.
2670 * Changed signatures of `writeODT`, `writeDocx`, `writeEPUB`, since they no
2671 longer stylesheet, fonts, reference files as separate parameters.
2673 * Removed `writerLiterateHaskell` from `WriterOptions`, and
2674 `readerLiterateHaskell` from `ReaderOptions`. LHS is now handled
2675 by an extension (`Ext_literate_haskell`).
2677 * Removed deprecated `writerXeTeX`.
2679 * Removed `writerStrict` from `WriterOptions`. Added `writerExtensions`.
2680 Strict is now handled through extensions.
2682 * `Text.Pandoc.Options` exports `pandocExtensions`, `strictExtensions`,
2683 `phpMarkdownExtraExtensions`, `githubMarkdownExtensions`,
2684 and `multimarkdownExtensions`, as well as the `Extensions` type.
2686 * New `Text.Pandoc.Readers.MediaWiki` module, exporting
2689 * New `Text.Pandoc.Writers.FB2` module, exporting `writeFB2`
2690 (thanks to Sergey Astanin).
2694 + Added `getReader`, `getWriter` to `Text.Pandoc`.
2695 + `writers` is now an association list `(String, Writer)`.
2696 A `Writer` can be a `PureStringWriter`, an `IOStringWriter`, or
2697 an `IOByteStringWriter`. ALL writers are now in the 'writers'
2698 list, including the binary writers and FB2 writer. This allows
2699 code in `pandoc.hs` to be simplified.
2700 + Changed type of `readers`, so all readers are in IO.
2701 Users who want pure readers can still get them form the reader
2702 modules; this just affects the function `getReader` that looks up
2703 a reader based on the format name. The point of this change is to
2704 make it possible to print warnings from the parser.
2706 * `Text.Pandoc.Parsing`:
2708 + `Text.Parsec` now exports all Parsec functions used in pandoc code.
2709 No other module directly imports Parsec. This will make it easier
2710 to change the parsing backend in the future, if we want to.
2711 + `Text.Parsec` is used instead of `Text.ParserCombinators.Parsec`.
2712 + Export the type synonym `Parser`.
2713 + Export `widthsFromIndices`, `NoteTable'`, `KeyTable'`, `Key'`, `toKey'`,
2714 `withQuoteContext`, `singleQuoteStart`, `singleQuoteEnd`,
2715 `doubleQuoteStart`, `doubleQuoteEnd`, `ellipses`, `apostrophe`,
2716 `dash`, `nested`, `F(..)`, `askF`, `asksF`, `runF`, `lineBlockLines`.
2717 + `ParserState` is no longer an instance of `Show`.
2718 + Added `stateSubstitutions` and `stateWarnings` to `ParserState`.
2719 + Generalized type of `withQuoteContext`.
2720 + Added `guardEnabled`, `guardDisabled`, `getOption`.
2721 + Removed `failIfStrict`.
2722 + `lookupKeySrc` and `fromKey` are no longer exported.
2724 * `Data.Default` instances are now provided for `ReaderOptions`,
2725 `WriterOptions`, and `ParserState`. `Text.Pandoc` re-exports `def`.
2726 Now you can use `def` (which is re-exported by `Text.Pandoc`) instead
2727 of `defaultWriterOptions` (which is still defined). Closes #546.
2729 * `Text.Pandoc.Shared`:
2732 + Renamed `removedLeadingTrailingSpace` to `trim`,
2733 `removeLeadingSpace` to `triml`, and `removeTrailingSpace` to `trimr`.
2734 + Count `\r` as space in `trim` functions.
2735 + Moved `renderTags'` from HTML reader and `Text.Pandoc.SelfContained`
2737 + Removed `failUnlessLHS`.
2738 + Export `compactify'`, formerly in Markdown reader.
2739 + Export `isTightList`.
2740 + Do not export `findDataFile`.
2741 + `readDataFile` now returns a strict ByteString.
2742 + Export `readDataFileUTF8` which returns a String, like the
2744 + Export `fetchItem` and `openURL`.
2746 * `Text.Pandoc.ImageSize`: Use strict, not lazy bytestrings.
2747 Removed `readImageSize`.
2749 * `Text.Pandoc.UTF8`: Export `encodePath`, `decodePath`,
2750 `decodeArg`, `toString`, `fromString`, `toStringLazy`,
2753 * `Text.Pandoc.UTF8` is now an exposed module.
2755 * `Text.Pandoc.Biblio`:
2757 + csl parameter now a `String` rather than a `FilePath`.
2758 + Changed type of `processBiblio`. It is no longer in the IO monad.
2759 It now takes a `Maybe Style` argument rather than parameters for CSL
2760 and abbrev filenames. (`pandoc.hs` now calls the functions to parse
2761 the style file and add abbreviations.)
2763 * Markdown reader now exports `readMarkdownWithWarnings`.
2765 * `Text.Pandoc.RTF` now exports `writeRTFWithEmbeddedImages` instead of
2770 * Make `--ascii` work properly with `--self-contained`. Closes #568.
2774 + Fixed link parser to avoid exponential slowdowns. Closes #620.
2775 Previously the parser would hang on input like this:
2777 [[[[[[[[[[[[[[[[[[hi
2779 We fixed this by making the link parser parser characters
2780 between balanced brackets (skipping brackets in inline code spans),
2781 then parsing the result as an inline list. One change is that
2783 [hi *there]* bud](/url)
2785 is now no longer parsed as a link. But in this respect pandoc behaved
2786 differently from most other implementations anyway, so that seems okay.
2788 + Look for raw html/latex blocks before tables.
2789 Otherwise the following gets parsed as a table:
2800 + Added support for `:target:` on `.. image::` blocks
2804 - Fixed field lists items with body beginning after a new line
2806 - Allow any char but ':' in names of field lists in RST reader
2808 - Don't allow line breaks in field names.
2809 - Require whitespace after field list field names.
2810 - Don't create empty definition list for metadata field lists.
2811 Previously a field list consisting only of metadata fields (author,
2812 title, date) would be parsed as an empty DefinitionList, which is
2813 not legal in LaTeX and not needed in any format.
2815 + Don't recognize inline-markup starts inside words.
2816 For example, `2*2 = 4*1` should not contain an emphasized
2817 section. Added test case for "Literal symbols". Closes #569.
2818 + Allow dashes as separator in simple tables. Closes #555.
2819 + Added support for `container`, `compound`, `epigraph`,
2820 `rubric`, `highlights`, `pull-quote`.
2821 + Added support for `.. code::`.
2822 + Made directive labels case-insensitive.
2823 + Removed requirement that directives begin at left margin.
2824 This was (correctly) not in earlier releases; docutils doesn't
2825 make the requirement.
2826 + Added support for `replace::` and `unicode::` substitutions.
2827 + Ignore unknown interpreted roles.
2828 + Renamed image parser to `subst`, since it now handles all
2829 substitution references.
2833 + Allow newlines before pipes in table. Closes #654.
2834 + Fixed bug with list items containing line breaks.
2835 Now pandoc correctly handles hard line breaks inside list items.
2836 Previously they broke list parsing.
2837 + Implemented comment blocks.
2838 + Fixed bug affected words ending in hyphen.
2839 + Properly handle links with surrounding brackets.
2840 Square brackets need to be used when the link isn't surrounded by
2841 spaces or punctuation, or when the URL ending may be ambiguous.
2843 + Removed nullBlock. Better to know about parsing problems than
2844 to skip stuff when we get stuck.
2845 + Allow ID attributes on headers.
2846 + Textile reader: Avoid parsing dashes as strikeout.
2847 Previously the input
2854 would be parsed with strikeouts rather than dashes. This fixes
2855 the problem by requiring that a strikeout delimiting - not be
2856 followed by a -. Closes #631.
2857 + Expanded list of `stringBreakers`.
2858 This fixes a bug on input like "(_hello_)" which should
2859 be a parenthesized emphasized "hello".
2860 The new list is taken from the PHP source of textile 2.4.
2861 + Fixed autolinks. Previously the textile reader and writer
2862 incorrectly implented RST-style autolinks for URLs and email
2863 addresses. This has been fixed. Now an autolink is done this way:
2864 `"$":http://myurl.com`.
2865 + Fixed footnotes bug in textile. This affected notes occuring
2866 before punctuation, e.g. `foo[1].`. Closes #518.
2870 + Better handling of citation commands.
2871 + Better handling of `\noindent`.
2872 + Added a 'try' in rawLaTeXBlock, so we can handle `\begin` without `{`.
2874 + Made `rawLaTeXInline` try to parse block commands as well. This
2875 is usually what we want, given how `rawLaTeXInline` is used in
2876 the markdown and textile readers. If a block-level LaTeX command
2877 is used in the middle of a paragraph (e.g. `\subtitle` inside a title),
2878 we can treat it as raw inline LaTeX.
2879 + Handle \slash command. Closes #605.
2880 + Basic `\enquote` support.
2881 + Fixed parsing of paragraphs beginning with a group. Closes #606.
2882 + Use curly quotes for bare straight quotes.
2883 + Support obeylines environment. Closes #604.
2884 + Guard against "begin", "end" in inlineCommand and
2886 + Better error messages for environments. Now it should tell you that
2887 it was looking for \end{env}, instead of giving "unknown parse error."
2891 + Added HTML 5 tags to list of block-level tags.
2892 + HTML reader: Fixed bug in `htmlBalanced`, which
2893 caused hangs in parsing certain markdown input using
2895 + Parse `<q>` as `Quoted DoubleQuote`.
2896 + Handle nested `<q>` tags properly.
2897 + Modified `htmlTag` for fewer false positives.
2898 A tag must start with `<` followed by `!`,`?`, `/`, or a letter.
2899 This makes it more useful in the wikimedia and markdown parsers.
2901 * DocBook reader: Support title in "figure" element. Closes #650.
2905 + Remove newline after `<br/>` in translation of `LineBreak`
2906 There's no particular need for a newline (other than making the
2907 generated MediaWiki source look nice to a human), and in fact
2908 sometimes it is incorrect: in particular, inside an enumeration, list
2909 items cannot have embedded newline characters. (Brent Yorgey)
2910 + Use `<code>` not `<tt>` for Code.
2912 * Man writer: Escape `-` as `\-`.
2913 Unescaped `-`'s become hyphens, while `\-`'s are left as ascii minus
2914 signs. That is preferable for use with command-line options. See
2915 <http://lintian.debian.org/tags/hyphen-used-as-minus-sign.html>. Thanks
2916 to Andrea Bolognani for bringing the issue to our attention.
2920 + Improved line block output. Use nonbreaking spaces for
2921 initial indent (otherwise lost in HTML and LaTeX).
2922 Allow multiple paragraphs in a single line block.
2923 Allow soft breaks w continuations in line blocks.
2924 + Properly handle images with no alt text. Closes #678.
2925 + Fixed bug with links with duplicate text. We now (a) use anonymous
2926 links for links with inline URLs, and (b) use an inline link instead
2927 of a reference link if the reference link would require a label that
2928 has already been used for a different link. Closes #511.
2929 + Fixed hyperlinked images. Closes #611. Use `:target:`
2930 field when you have a simple linked image.
2931 + Don't add `:align: center` to figures.
2933 * Texinfo writer: Fixed internal cross-references.
2934 Now we insert anchors after each header, and use `@ref` instead of `@uref`
2935 for links. Commas are now escaped as `@comma{}` only when needed;
2936 previously all commas were escaped. (This change is needed, in part,
2937 because `@ref` commands must be followed by a real comma or period.) Also
2938 insert a blank line in from of `@verbatim` environments.
2942 + Made --id-prefix work in DocBook as well as HTML.
2944 + Don't include empty captions in figures. Closes #581.
2948 + Use `\hspace*` for nonbreaking space after line break,
2949 since `~` spaces after a line break are just ignored.
2951 + Don't escape `_` in URLs or hyperref identifiers.
2952 + Properly escape strings inside \url{}. Closes #576.
2953 + Use `[fragile]` only for slides containing code rendered
2954 using listings. Closes #649.
2955 + Escape `|` as `\vert` in LaTeX math. This avoids a clash with
2956 highlighting-kate's macros, which redefine `|` as a short verbatim
2957 delimiter. Thanks to Björn Peemöller for raising this issue.
2958 + Use minipage rather than parbox for block containers in tables.
2959 This allows verbatim code to be included in grid tables.
2961 + Prevent paragraphs containing only linebreaks or spaces.
2965 + Included `highlighting-css` for code spans, too.
2966 Previously it was only included if used in a code block. Closes #653.
2967 + Improved line breaks with `<dd>` tags. We now put a newline between
2968 `</dd>` and `<dd>` when there are multiple definitions.
2969 + Changed mathjax cdn url so it doesn't use https. (This caused
2970 problems when used with `--self-contained`.) See #609.
2974 + `--number-sections` now works properly.
2975 + Don't strip meta and link elements in epub metadata.
2976 Patch from aberrancy. Closes #589.
2977 + Fixed a couple validation bugs.
2978 + Use ch001, ch002, etc. for chapter filenames. This improves sorting
2979 of chapters in some readers, which apparently sort ch2 after ch10.
2982 * ODT writer: properly set title property (Arlo O'Keeffe).
2986 + Fixed bug with nested lists. Previously a list like
2993 would come out with a bullet instead of "2."
2994 Thanks to Russell Allen for reporting the bug.
2995 + Use `w:cr` in `w:r` instead of `w:br` for linebreaks.
2996 This seems to fix a problem viewing pandoc-generated
2997 docx files in LibreOffice.
2998 + Use integer ids for bookmarks. Closes #626.
2999 + Added nsid to abstractNum elements. This helps when merging
3000 word documents with numbered or bulleted lists. Closes #627.
3001 + Use separate footnotes.xml for notes.
3002 This seems to help LibreOffice convert the file, even though
3003 it was valid docx before. Closes #637.
3004 + Use rIdNN identifiers for r:embed in images.
3005 + Avoid reading image files again when we've already processed them.
3006 + Fixed typo in `referenc.docx` that prevented image captions from
3007 working. Thanks to Huashan Chen.
3009 * `Text.Pandoc.Parsing`:
3011 + Fixed bug in `withRaw`, which didn't correctly handle the case
3012 where nothing is parsed.
3013 + Made `emailAddress` parser more correct. Now it is based on RFC 822,
3014 though it still doesn't implement quoted strings in email addresses.
3015 + Revised URI parser. It now allows many more schemes, allows
3016 uppercase URIs, and better handles trailing punctuation and
3017 trailing slashes in bare URIs. Added many tests.
3018 + Simplified and improved singleQuoteStart. This makes `'s'`, `'l'`,
3019 etc. parse properly. Formerly we had some English-centric heuristics,
3020 but they are no longer needed. Closes #698.
3022 * `Text.Pandoc.Pretty`: Added wide punctuation range to `charWidth`.
3023 This fixes bug with Chinese commas in markdown and reST tables, and
3024 a bug that caused combining characters to be dropped.
3026 * `Text.Pandoc.MIME`: Added MIME types for .wof and .eot. Closes #640.
3028 * `Text.Pandoc.Biblio`:
3030 + Run `mvPunc` and `deNote` on metadata too.
3031 This fixed a bug with notes on titles using footnote styles.
3032 + Fixed bug in fetching CSL files from CSL data directory.
3034 * `pandoc.hs`: Give correct value to `writerSourceDirectory` when a URL
3035 is provided. It should be the URL up to the path.
3037 * Fixed/simplified diff output for tests.
3038 Biblio: Make sure mvPunc and deNote run on metadata too.
3039 This fixed a bug with notes on titles using footnote styles.
3041 [under the hood improvements]
3043 * We no longer depend on `utf8-string`. Instead we use functions
3044 defined in `Text.Pandoc.UTF8` that use `Data.Text`'s conversions.
3046 * Use `safeRead` instead of using `reads` directly (various modules).
3048 * "Implicit figures" (images alone in a paragraph) are now handled
3049 differently. The markdown reader gives their titles the prefix `fig:`; the
3050 writers look for this before treating the image as a figure. Though this
3051 is a bit of a hack, it has two advantages: (i) implicit figures can be
3052 limited to the markdown reader, and (ii) they can be deactivated by turning
3053 off the `implicit_figures` extension.
3055 * `catch` from `Control.Exception` is now used instead of the
3056 old Preface `catch`.
3058 * `Text.Pandoc.Shared`: Improved algorithm for `normalizeSpaces`
3059 and `oneOfStrings` (which is now non-backtracking).
3061 * `Text.Pandoc.Biblio`: Remove workaround for `toCapital`.
3062 Now citeproc-hs is fixed upstream, so this is no longer needed.
3065 * Textile reader: Improved speed of `hyphenedWords`.
3066 This speeds up the textile reader by about a factor of 4.
3068 * Use `Text.Pandoc.Builder` in RST reader, for more flexibility,
3069 better performance, and automatic normalization.
3071 * Major rewrite of markdown reader:
3073 + Use `Text.Pandoc.Builder` instead of lists. This also
3074 means that everything is normalized automatically.
3075 + Move to a one-pass parsing strategy, returning values in the reader
3076 monad, which are then run (at the end of parsing) against the final
3079 * In HTML writer, we now use `toHtml` instead of pre-escaping.
3080 We work around the problem that blaze-html unnecessarily escapes `'`
3081 by pre-escaping just the `'` characters, instead of the whole string.
3082 If blaze-html later stops escaping `'` characters, we can simplify
3083 `strToHtml` to `toHtml`. Closes #629.
3085 * Moved code for embedding images in RTFs from `pandoc.hs` to the
3086 RTF writer (which now exports `writeRTFWithEmbeddedImages`).
3088 * Moved citation processing from `pandoc.hs` into the readers.
3089 This makes things more convenient for library users.
3091 * The man pages are now built by an executable `make-pandoc-man-pages`,
3092 which has its own stanza in the cabal file so that dependencies can be
3093 handled by Cabal. Special treatment in `Setup.hs` ensures that this
3094 executable never gets installed; it is only used to create the man pages.
3096 * The cabal file has been modified so that the pandoc library is used
3097 in building the pandoc executable. (This required moving `pandoc.hs`
3098 from `src` to `.`.) This cuts compile time in half.
3100 * `-O2` is no longer used in building pandoc. The performance improvement
3101 it yields is so slight that it is not worth it. (Measured with
3102 benchmarks on ghc 7.4.)
3104 * The `executable` and `library` flags have been removed.
3106 * `-threaded` has been removed from ghc-options.
3108 * Version bounds of dependencies have been raised, and the
3109 `blaze_html_0_5` flag now defaults to True. Pandoc now compiles on
3112 * We now require base >= 4.2.
3114 * Integrated the benchmark program into cabal. One can now do:
3116 cabal configure --enable-benchmarks && cabal build
3117 cabal bench --benchmark-option='markdown' --benchmark-option='-s 20'
3119 The benchmark now uses README + testsuite, so benchmark results
3120 from older versions aren't comparable.
3122 * Integrated test suite with cabal.
3123 To run tests, configure with `--enable-tests`, then `cabal test`.
3124 You can specify particular tests using `--test-options='-t markdown'`.
3125 No output is shown unless tests fail. The Haskell test modules
3126 have been moved from `src/` to `tests/`.
3128 * Moved all data files and templates to the `data/` subdirectory.
3130 * Added an `embed_data_files` cabal flag. This causes all
3131 data files to be embedded in the binary, so that the binary
3132 is self-sufficient and can be relocated anywhere, copied on
3133 a USB key, etc. The Windows installer now uses this.
3134 (Since we no longer have the option to build the executable
3135 without the library, this is the only way to get a relocatable
3138 * Removed pcre3.dll from windows package.
3139 It isn't needed unless highlighting-kate is compilled with the
3140 `pcre-light` flag. By default, regex-prce-builtin is used.
3145 * Don't encode/decode file paths if base >= 4.4.
3146 Prior to base 4.4, filepaths and command line arguments were treated
3147 as unencoded lists of bytes, not unicode strings, so we had to work
3148 around that by encoding and decoding them. This commit adds CPP
3149 checks for the base version that intelligibly enable encoding/decoding
3150 when needed. Fixes a bug with multilingual filenames when pandoc was
3151 compiled with ghc 7.4 (#540).
3153 * Don't generate an empty H1 after hrule slide breaks.
3154 We now use a slide-level header with contents `[Str "\0"]` to mark
3155 an hrule break. This avoids creation of an empty H1 in these
3156 contexts. Closes #484.
3158 * Docbook reader: Added support for "bold" emphasis. Thanks to mb21.
3160 * In make_osx_package.sh, ensure citeproc-hs is built with the
3161 embed_data_files flag.
3163 * MediaWiki writer: Avoid extra blank lines after sublists (Gavin Beatty).
3165 * ConTeXt writer: Don't escape `&`, `^`, `<`, `>`, `_`,
3166 simplified escapes for `}` and `{` to `\{` and `\}` (Aditya Mahajan).
3168 * Fixed handling of absolute URLs in CSS imports with `--self-contained`.
3171 * Added webm to mime types. Closes #543.
3173 * Added some missing exports and tests to the cabal file
3174 (Alexander V Vershilov).
3176 * Compile with `-rtsopts` and `-threaded` by default.
3180 * Markdown reader: Added `cf.` and `cp.` to list of likely abbreviations.
3182 * LaTeX template: Added `linkcolor`, `urlcolor` and `links-as-notes`
3183 variables. Make TOC links black.
3185 * LaTeX template improvements.
3187 + Don't print date unless one is given explicitly in the document.
3188 + Simplified templates.
3189 + Use fontenc [T1] by default, and lmodern.
3190 + Use microtype if available.
3194 + Add comma to beginning of bare suffix, e.g. `@item1 [50]`.
3195 Motivation: `@item1 [50]` should be as close as possible to
3197 + Added workaround for a bug in citeproc-hs 0.3.4 that causes footnotes
3198 beginning with a citation to be empty. Closes #531.
3200 * Fixed documentation on mixed lists. Closes #533.
3204 * Simplified `Text.Pandoc.Biblio` and fixed bugs with citations inside
3205 footnotes and captions. We now handle note citations by inserting
3206 footnotes during initial citation processing, and doing a separate
3207 pass later to remove notes inside notes.
3209 * Added 'zenburn' highlight style from highlighting-kate.
3211 * Added Slideous writer. Slideous is an HTML + javascript slide show
3212 format, similar to Slidy, but works with IE 7. (Jonas Smedegaard)
3216 + Ensure we don't have extra blank lines at ends of cells.
3217 This can cause LaTeX errors, as they are interpreted as new paragraphs.
3218 + More consistent interblock spacing.
3219 + Require highlighting-kate >= 0.5.1, for proper highlighted inline
3220 code in LaTeX. Closes #527.
3221 + Ensure that a Verbatim at the end of a footnote is followed by
3222 a newline. (Fixes a regression in the previous version.)
3223 + In default template, use black for internal links and TOC.
3224 Added commented-out code to use footnotes for links, as would
3225 be suitable in print output.
3227 * Beamer writer: When `--incremental` is used, lists inside
3228 a block quote should appear all at once. (This makes Beamer
3229 output consistent with the HTML slide show formats.)
3233 + Escape `%` as `\letterpercent{}` not `\letterpercent `,
3234 to avoid gobbling spaces after the `%` sign.
3235 + Ensure space after `\stopformula`.
3239 + Use `:` form instead of `~` in definition lists, for better
3240 compatibility with other markdown implementations.
3241 + Don't wrap the term, because it breaks definition lists.
3242 + Use a nonzero space to prevent false recognition
3243 of list marker in ordered lists. Closes #516.
3245 * Org writer: Add space before language name. Closes #523.
3247 * Docx writer: Simplified bullet characters so they work properly
3248 with Word 2007. Closes #520.
3250 * LaTeX reader: Support `\centerline`.
3252 * RST reader: handle figures. Closes #522.
3254 * Textile reader: fix for `<notextile>` and `==`. Closes #517.
3259 * Fixed bug in `fromEntities`. The previous version would turn
3260 `hi & low you know;` into `hi &`.
3264 + Don't skip nonbreaking spaces.
3265 Previously a paragraph containing just ` ` would be rendered
3266 as an empty paragraph. Thanks to Paul Vorbach for pointing out the bug.
3267 + Support `<col>` and `<caption>` in tables. Closes #486.
3271 + Don't recognize references inside delimited code blocks.
3272 + Allow list items to begin with lists.
3274 * Added basic docbook reader (John MacFarlane and Mauro Bieg).
3278 + Handle `\bgroup`, `\egroup`, `\begingroup`, `\endgroup`.
3279 + Control sequences can't be followed by a letter.
3280 This fixes a bug where `\begingroup` was parsed as `\begin`
3281 followed by `group`.
3282 + Parse 'dimension' arguments to unknown commands. e.g. `\parindent0pt`
3283 + Make `\label` and `\ref` sensitive to `--parse-raw`.
3284 If `--parse-raw` is selected, these will be parsed as raw latex
3285 inlines, rather than bracketed text.
3286 + Don't crash on unknown block commands (like `\vspace{10pt}`)
3287 inside `\author`; just skip them. Closes #505.
3291 + Implemented literal escapes with `==` and `<notextile>`. Closes #473.
3292 + Added support for LaTeX blocks and inlines (Paul Rivier).
3293 + Better conformance to RedCloth inline parsing (Paul Rivier).
3294 + Parse '+text+' as emphasized (should be underlined, but this
3295 is better than leaving literal plus characters in the output.
3297 * Docx writer: Fixed multi-paragraph list items. Previously they each
3298 got a list marker. Closes #457.
3302 + Added `--no-tex-ligatures` option to avoid replacing
3303 quotation marks and dashes with TeX ligatures.
3304 + Use `fixltx2e` package to provide '\textsubscript'.
3305 + Improve spacing around LaTeX block environments:
3306 quote, verbatim, itemize, description, enumerate.
3308 + Use blue instead of pink for URL links in latex/pdf output.
3310 * ConTeXt writer: Fixed escaping of `%`.
3311 In text, `%` needs to be escaped as `\letterpercent`, not `\%`
3312 Inside URLs, `%` needs to be escaped as `\%`
3313 Thanks to jmarca and adityam for the fix. Closes #492.
3315 * Texinfo writer: Escape special characters in node titles.
3316 This fixes a problem pointed out by Joost Kremers. Pandoc used
3317 to escape an '@' in a chapter title, but not in the corresponding
3318 node title, leading to invalid texinfo.
3320 * Fixed document encoding in texinfo template.
3321 Resolves Debian Bug #667816.
3325 + Don't force delimited code blocks to be flush left.
3326 Fixes bug with delimited code blocks inside lists etc.
3327 + Escape `<` and `$`.
3329 * LaTeX writer: Use `\hyperref[ident]{text}` for internal links.
3330 Previously we used `\href{\#ident}{text}`, which didn't work on
3331 all systems. Thanks to Dirk Laurie.
3333 * RST writer: Don't wrap link references. Closes #487.
3335 * Updated to use latest versions of blaze-html, mtl.
3342 + Made `lstlisting` work as a proper verbatim environment.
3343 + Fixed bug parsing LaTeX tables with one column.
3347 + Use `{}` around `ctable` caption, so that formatting can be used.
3348 + Don't require eurosym package unless document has a €.
3350 * LaTeX template: Added variables for `geometry`, `romanfont`,
3351 `sansfont`, `mathfont`, `mainfont` so users can more easily
3356 + Run latex engine at least two times, to ensure
3357 that PDFs will have hyperlinked bookmarks.
3358 + Added PDF metadata (title,author) in LaTeX standalone + PDF output.
3360 * Texinfo writer: retain directories in image paths. (Peter Wang)
3362 * RST writer: Better handling of inline formatting, in accord
3363 with docutils' "inline markup recognition rules" (though we don't
3364 implement the unicode rules fully). Now `hi*there*hi` gets
3365 rendered properly as `hi\ *there*\ hi`, and unnecessary
3366 `\ ` are avoided around `:math:`, `:sub:`, `:sup:`.
3370 + Parse `\ ` as null, not escaped space.
3371 + Allow `` :math:`...` `` even when not followed by blank
3372 or `\`. This does not implement the complex rule docutils follows,
3373 but it should be good enough for most purposes.
3374 + Add support for the rST default-role directive. (Greg Maslov)
3376 * Text.Pandoc.Parsing: Added `stateRstDefaultRole` field to `ParserState`.
3379 * Markdown reader: Properly handle citations nested in other inline
3382 * Markdown writer: don't replace empty alt in image with "image".
3384 * DZSlides: Updated template.html and styles in default template.
3385 Removed bizarre CSS for `q` in dzslides template.
3387 * Avoid repeated `id` attribute in section and header in HTML slides.
3389 * README improvements: new instructions on internal links,
3390 removed misleading note on reST math.
3394 + Fixed Windows installer so that dzslides works.
3395 + Removed stripansi.sh.
3396 + Added .travis.yml for Travis continuous integration support..
3397 + Fixed upper bound for zlib (Sergei Trofimovich).
3398 + Fixed upper bound for test-framework.
3399 + Updated haddocks for haddock-2.10 (Sergei Trofimovich).
3403 * Added `beamer+lhs` as output format.
3405 * Don't escape `<` in `<style>` tags with `--self-contained`.
3406 This fixes a bug which prevented highlighting from working
3407 when using `--self-contained`.
3409 * PDF: run latex engine three times if `--toc` specified.
3410 This fixes page numbers in the table of contents.
3412 * Docx writer: Added TableNormal style to tables.
3414 * LaTeX math environment fixes. `aligned` is now used instead of
3415 the nonexistent `aligned*`. `multline` instead of the nonexistent
3418 * LaTeX writer: Use `\textasciitilde` for literal `~`.
3420 * HTML writer: Don't escape contents of EQ tags with --gladtex.
3421 This fixes a regression from 1.8.
3423 * Use `<q>` tags for Quoted items for HTML5 output.
3424 The quote style can be changed by modifying the template
3425 or including a css file. A default quote style is included.
3427 * LaTeX reader: Fixed accents (\~{a}, `\c{c}`).
3428 Correctly handle \^{}. Support "minted" as a LaTeX verbatim block.
3430 * Updated LaTeX template for better language support.
3431 Use `polyglossia` instead of `babel` with xetex.
3432 Set `lang` as documentclass option.
3433 `\setmainlanguage` will use the last of a comma-separated
3434 list of languages. Thanks to François Gannaz.
3436 * Fixed default LaTeX template so `\euro` and `€` work. The
3437 `eurosym` package is needed if you are using pdflatex.
3439 * Fixed escaping of period in man writer (thanks to Michael Thompson).
3441 * Fixed list label positions in beamer.
3443 * Set `mainlang` variable in context writer.
3444 This parallels behavior of latex writer. `mainlang` is the last
3445 of a comma-separated list of languages in lang.
3447 * EPUB language metadat: convert e.g. `en_US` from locale to `en-US`.
3449 * Changed `-V` so that you can specify a key without a value.
3450 Such keys get the value `true`.
3452 * Fixed permissions on installed man pages - thanks Magnus Therning.
3454 * Windows installer: require XP or higher. The installer is
3455 now compiled on a Windows 7 machine, which fixes a problem
3456 using citation functions on Windows 7.
3458 * OSX package: Check for 64-bit Intel CPU before installing.
3462 * Better handling of raw latex environments in markdown. Now
3468 turns into a raw latex block as expected.
3470 * Improvements to LaTeX reader:
3472 + Skip options after block commands.
3473 + Correctly handle `{\\}` in braced.
3474 + Added a needed 'try'.
3475 + Citations: add `, ` to suffix if it doesn't start with space or
3476 punctuation. Otherwise we get no space between the year and the
3477 suffix in author-date styles.
3479 * Added two needed data files for S5. This fixes a problem with
3480 `pandoc -t s5 --self-contained`. Also removed `slides.min.js`,
3481 which was no longer being used.
3483 * Fixed some minor problems in `reference.docx`:
3484 name on "Date" style, `xCs` instead of `xIs`.
3486 * Fixed a problem creating docx files using a reference docx
3487 modified using Word. The problem seems to be that Word
3488 modifies `_rels/.rels`, changing the Type of the Relationship to
3489 `docProps/core.xml`. Pandoc now changes this back to the correct
3490 value if it has been altered, fixing the problem.
3492 * Fixed html5 template so it works properly with highlighting.
3498 + Fixed regression in 1.9; properly handle escaped $ in latex math.
3499 + Put LaTeX verse environments in blockquotes.
3503 + Limit nesting of strong/emph. This avoids exponential lookahead
3504 in parasitic cases, like `a**a*a**a*a**a*a**a*a**a*a**a*a**a*a**`.
3505 + Improved attributes syntax (inn code blocks/spans):
3506 (1) Attributes can contain line breaks. (2) Values in key-value
3507 attributes can be surrounded by either double or single quotes, or
3508 left unquoted if they contain no spaces.
3510 * Don't wrap headers in markdown or RST writers.
3512 * Added `stateMaxNestingLevel` to `ParserState`.
3513 We set this to 6, so you can still have `Emph` inside `Emph`,
3514 just not indefinitely.
3516 * More efficient implementation of `nowrap` in `Text.Pandoc.Pretty`.
3518 * `Text.Pandoc.PDF`: Only run latex twice if `\tableofcontents`
3521 * Require highlighting-kate >= 0.5.0.2, texmath >= 0.6.0.2.
3525 * Changed cabal file so that build-depends for the test program
3526 are not required unless the tests flag is used.
3528 * LaTeX writer: insert `{}` between adjacent hyphens so they don't
3529 form ligatures (dashes) in code spans.
3533 * Raised version bound on test-framework to avoid problems
3534 compiling tests on GHC 7.4.1.
3536 * LaTeX reader: Use raw LaTeX as fallback inline text for Cites,
3537 so citations don't just disappear unless you process with
3538 citeproc. Ignore `\bibliographystyle`, `\nocite`.
3540 * Simplified tex2pdf; it will always run latex twice to
3541 resolve table of contents and hyperrefs.
3545 * Require Cabal >= 1.10.
3546 * Tweaked cabal file to meet Cabal 1.10 requirements.
3550 * Allow build with json 0.4 or 0.5. Otherwise we can't build with
3557 * Added a Microsoft Word `docx` writer. The writer includes support
3558 for highlighted code and for math (which is converted from TeX to OMML,
3559 Office's native math markup language, using texmath's new OMML module).
3560 A new option `--reference-docx` allows the user to customize the
3563 * Added an `asciidoc` writer (<http://www.methods.co.nz/asciidoc/>).
3565 * Better support for slide shows:
3567 + Added a `dzslides` writer. DZSlides is a lightweight HTML5/javascript
3568 slide show format due to Paul Rouget (<http://paulrouget.com/dzslides/>).
3570 + Added a LaTeX `beamer` writer. Beamer is a LaTeX package for creating
3571 slide presentations.
3573 + New, flexible rules for dividing documents into sections and slides
3574 (see the "Structuring the slide show" in the User's Guide). These
3575 are backward-compatible with the old rules, but they allow slide
3576 shows to be organized into sections and subsections containing
3579 + A new `--slide-level` option allows users to override defaults
3580 and select a slide level below the first header level with content.
3582 * A new `--self-contained` option produces HTML output that does not
3583 depend on an internet connection or the presence of any external
3584 files. Linked images, CSS, and javascript is downloaded (or fetched
3585 locally) and encoded in `data:` URIs. This is useful for making portable
3586 `HTML slide shows. The --offline` option has been deprecated and is now
3587 `treated as a synonym or --self-contained`.
3589 * Support for PDF output:
3591 + Removed the old `markdown2pdf`.
3592 + `pandoc` can now create PDFs (assuming you have latex and a set of
3593 appropriate packages installed): just specify an output file with the
3595 + A new option `--latex-engine` allows you to specify `pdflatex`,
3596 `xelatex`, or `lualatex` as the processor.
3598 * Highlighting changes:
3600 + Syntax highlighting is now a standard feature; the `highlighting`
3601 flag is no longer needed when compiling.
3602 + A new `--no-highlight` option allows highlighting to be disabled.
3603 + Highlighting now works in `docx`, `latex`, and `epub`, as well as
3604 `html`, `html5`, `dzslides`, `s5`, and `slidy`.
3605 + A new `--highlight-style` option selects between various highlighting
3608 * Internal links to sections now work in ConTeXt and LaTeX as well as HTML.
3610 * LaTeX `\include` and `\usepackage` commands are now processed,
3611 provided the files are in the working directory.
3613 * EPUB improvements:
3615 + Internal and external links now work in EPUB.
3616 + Raw HTML is allowed.
3617 + New `--epub-embed-font` option.
3618 + Customizable templates for EPUB pages offer more control over
3619 formatting: `epub-page.html`, `epub-coverimage.html`,
3620 `epub-titlepage.html`.
3622 * `--mathml` now works with DocBook.
3624 * Added support for math in RST reader and writer. Inline math uses the
3625 `` :math:`...` `` construct. Display math uses
3629 or if the math is multiline,
3635 These constructions are now supported now by `rst2latex.py`.
3637 * Github syntax for fenced code blocks is supported in pandoc's
3638 markdown. You can now write
3650 * Easier scripting: a new `toJsonFilter` function makes it easier to
3651 write Haskell scripts to manipulate the Pandoc AST.
3655 * Fixed parsing of consecutive lists in markdown.
3656 Pandoc previously behaved like Markdown.pl for consecutive
3657 lists of different styles. Thus, the following would be parsed
3658 as a single ordered list, rather than an ordered list followed
3659 by an unordered list:
3667 This change makes pandoc behave more sensibly, parsing this as
3668 two lists. Any change in list type (ordered/unordered) or in
3669 list number style will trigger a new list. Thus, the following
3670 will also be parsed as two lists:
3678 Since we regard this as a bug in Markdown.pl, and not something
3679 anyone would ever rely on, we do not preserve the old behavior
3680 even when `--strict` is selected.
3682 * Dashes work differently with `--smart`: `---` is always em-dash,
3683 and `--` is always en-dash. Pandoc no longer tries to guess when
3684 `-` should be en-dash. *Note:* This may change how existing documents
3685 look when processed with pandoc. A new option, `--old-dashes`,
3686 is provided for legacy documents.
3688 * The markdown writer now uses setext headers for levels 1-2.
3689 The old behavior (ATX headers for all levels) can be restored
3690 using the new `--atx-headers` option.
3692 * Links are now allowed in markdown image captions. They are also
3693 allowed in links, but will appear there as regular text. So,
3695 [link with [link](/url)](/url)
3699 <p><a href="/url">link with link</a></p>
3701 * Improved handling of citations using `citeproc-hs-0.3.4`.
3702 Added `--citation-abbreviations` option.
3704 * Citation keys can no longer end with a punctuation character.
3705 This means that `@item1.` will be parsed as a citation with key
3706 'item1', followed by a period, instead of a citation with key
3707 'item1.', as was the case previously.
3709 * In HTML output, citations are now put in a span with class `citation`.
3711 * The markdown reader now recognizes DocBook block and inline tags.
3712 It was always possible to include raw DocBook tags in a markdown
3713 document, but now pandoc will be able to distinguish block from
3714 inline tags and behave accordingly. Thus, for example,
3720 will not be wrapped in `<para>` tags.
3722 * The LaTeX parser has been completely rewritten; it is now much more
3723 accurate, robust, and extensible. However, there are two important
3724 changes in how it treats unknown LaTeX. (1) Previously, unknown
3725 environments became BlockQuote elements; now, they are treated
3726 as "transparent", so `\begin{unknown}xyz\end{unknown}` is the
3727 same as `xyz`. (2) Previously, arguments of unknown commands
3728 were passed through with their braces; now the braces are stripped
3731 * `--smart` is no longer selected automatically with `man` output.
3733 * The deprecated `--xetex` option has been removed.
3735 * The `--html5`/`-5` option has been deprecated. Use `-t html5`
3736 instead. `html5` and `html5+lhs` are now separate output formats.
3738 * Single quotes are no longer escaped in HTML output. They do not
3739 need to be escaped outside of attributes.
3741 * Pandoc will no longer transform leading newlines in code
3742 blocks to `<br/>` tags.
3744 * The ODT writer now sizes images appropriately, using the image
3745 size and DPI information embedded in the image.
3747 * `--standalone` is once again implicitly for a non-text output format
3748 (ODT, EPUB). You can again do `pandoc test.txt -o test.odt`
3749 and get a standalone ODT file.
3751 * The Docbook writer now uses `<sect1>`, `<sect2>`, etc. instead of
3754 * The HTML writer now uses `<del>` for strikeout.
3756 * In HTML output with `--section-divs`, the classes `section` and
3757 `level[1,2,..6]` are put on the `div` tags so they can be styled.
3758 In HTML 5 output with `--section-divs`, the classes
3759 `level[1,2,...6]` are put on `section` tags.
3761 * EPUB writer changes:
3763 + The `lang` variable now sets the language
3764 in the metadata (if it is not set, we default to the locale).
3765 + EPUB: UTF-8 is used rather than decimal entities.
3767 * Added `titleslide` class to title slide in S5 template.
3769 * In HTML, EPUB, and docx metadata, the date is normalized into
3770 YYYY-MM-DD format if possible. (This is required for validation.)
3772 * Attributes in highlighted code blocks are now preserved in HTML.
3773 The container element will have the classes, id, and key-value attributes
3774 you specified in the delimited code block. Previously these were stripped
3777 * The reference backlink in the HTML writer no longer has a special
3778 `footnoteBacklink` class.
3780 * The HTML template has been split into `html` and `html5` templates.
3782 * Author and date are treated more consistently in HTML templates.
3783 Authors are now `<h2>`, date `<h3>`.
3785 * URLs are hyphenated in the ConTeXt writer (B. Scott Michel).
3787 * In `Text.Pandoc.Builder`, `+++` has been replaced by `<>`.
3791 * Better support for combining characters and East Asian wide characters
3792 in markdown and reST.
3794 * Better handling of single quotes with `--smart`.
3795 Previously `D'oh l'*aide*` would be parsed with left and right single
3796 quotes instead of apostrophes. This kind of error is now fixed.
3798 * Highlighting: Use `reads` instead of `read` for better error handling.
3799 Fixes crash on `startNum="abc"`.
3801 * Added blank comment after directives in rst template.
3803 * Unescape entities in citation `refId`. The `refId`s coming
3804 from citeproc contain XML numeric entities, and these don't match with the
3805 citation keys parsed by pandoc. Solution is to unescape them.
3807 * HTML reader: Fixed bug parsing tables with both thead and tbody.
3811 + Better handling of escapes in link URLs and titles.
3812 + Fixed backslash escapes in reference links.
3813 + Fixed bug in table/hrule parsing, by checking that the top
3814 line of a table is not followed by a blank line. This bug caused
3815 slowdowns on some files with hrules and tables, as pandoc tried to
3816 interpret the hrules as the tops of multiline tables.
3817 + Fixed bug in code block attribute parser. Previously the ID attribute
3818 got lost if it didn't come first. Now attributes can come in any order.
3820 * RST reader: allow footnotes followed by newline without space characters.
3824 + Ignore empty groups {}, { }.
3825 + LaTeX reader: Handle \@.
3826 + LaTeX reader: Don't crash on commands like `\itemsep`.
3827 + LaTeX reader: Better handling of letter environments.
3829 * RST writer: Fixed bug involving empty table cells. isSimple was being
3830 calculated in a way that assumed there were no non-empty cells.
3834 + Made `--toc` work even without `--number-sections`.
3835 + Escape # in link URLs.
3836 + Use buffering for footnotes containing code blocks.
3837 + Changed 'descr' to 'description', fixed alignment.
3841 + Escape euro character.
3842 + Don't escape ~ inside href{...}.
3843 + Escape # in href URLs.
3844 + Improved detection of book classes. We now check the
3845 `documentclass` variable, and if that is not set, we look through
3846 the template itself. Also, we have added the KOMA classes scrreprt
3847 and scrbook. You can now make a book using
3848 `pandoc -V documentclass:book mybook.txt -o mybook.pdf`
3849 + LHS files now set the "listings" variable, so that the definition
3850 of the `code` environment will be included in the template.
3851 + Links are colored blue by default (this can be changed by
3852 modifying `hyperref` settings in the template).
3853 + Added `lang` variable to LaTeX template.
3857 + Fixed bug in HTML template with html5 and mathml.
3858 + Don't use self-closing img, br, hr tags for HTML5.
3859 + Use `<section>` for footnotes if HTML5.
3860 + Update HTML templates to use Content-Style-Type meta tag.
3861 + Use separate variables for meta-date, meta-author.
3862 This makes footnotes work in author and date fields.
3863 + Use 'vertical-align:middle' in WebTeX math for better alignment.
3865 * S5/slidy writer: Make footnotes appear on separate slide at end.
3867 * MIME: Added 'layout-cache' to getMimeType. This ensures that the
3868 META-INF/manifest.xml for ODT files will have everything it needs, so
3869 that ODT files modified by LibreOffice can be used as `--reference-odt`.
3871 * `Text.Pandoc.Templates`: Return empty string for json template.
3873 * `Text.Pandoc.Biblio`:
3875 + Expand citations recursively inside nested inlines.
3876 + Treat `\160` as space when parsing locator and suffix.
3877 This fixes a bug with "p. 33" when `--smart` is used. Previously
3878 the whole "p. 33" would be included in the suffix, with no locator.
3879 + Put whole author-in-text citation in a Cite. Previously just the
3880 date and other info went in the Cite.
3881 + Don't add comma+space to prefix if it ends in punctuation.
3883 * Updated chicago-author-date.csl. The old version did not work
3884 properly for edited volumes with no author.
3888 + Add date to EPUB titlepage and metadata.
3889 + Added TOC identifier in EPUB page template.
3890 + Don't generate superfluous file `cover-image.jpg`.
3892 [under the hood improvements]
3894 * Modified `make_osx_package.sh` to use cabal-dev.
3895 Items are no longer installed as root.
3896 Man pages are zipped and given proper permissions.
3898 * Modified windows installer generater to use cabal-dev.
3900 * Setup: Making man pages now works with cabal-dev (at least on OSX). In
3901 Setup.hs we now invoke 'runghc' in a way that points it to the correct
3902 package databases, instead of always falling back to the default user
3905 * Updated to work with GHC 7.4.1.
3907 * Removed dependency on old-time.
3909 * Removed dependency on dlist.
3911 * New slidy directory for "self-contained."
3913 * TeXMath writer: Use unicode thin spaces for thin spaces.
3915 * Markdown citations: don't strip off initial space in locator.
3919 * Removed `Apostrophe`, `EmDash`, `EnDash`, and `Ellipses`
3920 from the native `Inline` type in pandoc-types. Now we use `Str`
3921 elements with unicode.
3923 * Improvements to `Text.Pandoc.Builder`:
3925 + `Inlines` and `Blocks` are now newtypes (not synonyms for
3927 + Instances are defined for `IsString`, `Show`, `Read`, `Monoid`,
3928 and a new `Listable` class, which allows these to be manipulated
3929 to some extent like lists. Monoid append includes automatic
3931 + `+++` has been replaced by `<>` (mappend).
3933 * Use blaze-html instead of xhtml for HTML generation.
3934 This changes the type of `writeHtml`.
3936 * `Text.Pandoc.Shared`:
3938 + Added `warn` and `err`.
3939 + Removed `unescapeURI`, modified `escapeURI`.
3940 (See under [behavior changes], above.)
3942 * Changes in URI escaping: Previously the readers escaped URIs by
3943 converting unicode characters to octets and then percent encoding.
3944 Now unicode characters are left as they are, and `escapeURI` only
3945 percent-encodes space characters. This gives more readable
3946 URIs, and works well with modern user agents. URIs are no longer unescaped
3947 at all on conversion to `markdown`, `asciidoc`, `rst`, `org`.
3949 * New module `Text.Pandoc.SelfContained`.
3951 * New module `Text.Pandoc.Docx`.
3953 * New module `Text.Pandoc.PDF`.
3955 * Added `writerBeamer` to `WriterOptions`.
3957 * Added `normalizeDate` to `Text.Pandoc.Shared`.
3959 * Added `splitStringWithIndices` in `Text.Pandoc.Shared`.
3960 This is like `splitWithIndices`, but it is sensitive to distinctions
3961 between wide, combining, and regular characters.
3963 * `Text.Pandoc.Pretty`:
3965 + Added `chomp` combinator.
3966 + Added `beforeNonBreak` combinator. This allows you to include
3967 something conditionally on it being before a nonblank.
3968 Used for RST inline math.
3969 + Added `charWidth` function. All characters marked W or F in the unicode
3970 spec EastAsianWidth.txt get width 2.
3971 + Added `realLength`, based on `charWidth`. `realLength` is now
3972 used in calculating offsets.
3974 * New module `Text.Pandoc.Slides`, for common functions for breaking
3975 a document into slides.
3977 * Removed `Text.Pandoc.S5`, which is no longer needed.
3979 * Removed `Text.Pandoc.CharacterReferences`. Moved
3980 `characterReference` to `Text.Pandoc.Parsing`.
3981 `decodeCharacterReferences` is replaced by `fromEntities`
3982 in `Text.Pandoc.XML`.
3984 * Added `Text.Pandoc.ImageSize`. This is intened for use
3985 in `docx` and `odt` writers, so the size and dpi of images
3988 * Removed `writerAscii` in `WriterOptions`.
3990 * Added `writerHighlight` to `WriterOptions`.
3992 * Added `DZSlides` to `HTMLSlideVariant`.
3994 * `writeEPUB` has a new argument for font files to embed.
3996 * Added `stateLastStrPos` to `ParserState`. This lets us keep track
3997 of whether we're parsing the position immediately after a regular
3998 (non-space, non-symbol) string, which is useful for distinguishing
3999 apostrophes from single quote starts.
4001 * `Text.Pandoc.Parsing`:
4003 + `escaped` now returns a `Char`.
4004 + Removed `charsInBalanced'`, added a character parser as
4005 a parameter of `charsInBalanced`. This is needed for
4006 proper handling of escapes, etc.
4009 * Added `toEntities` to `Text.Pandoc.XML`.
4011 * `Text.Pandoc.Readers.LaTeX`:
4013 + Export `handleIncludes`.
4014 + Export `rawLaTeXBlock` instead of `rawLaTeXEnvironment'`.
4016 * Added `ToJsonFilter` class and `toJsonFilter` function to
4017 `Text.Pandoc`, deprecating the old `jsonFilter` function.
4019 * `Text.Pandoc.Highlighting`:
4021 + Removed `highlightHtml`, `defaultHighlightingCss`.
4022 + Export `formatLaTeXInline`, `formatLaTeXBlock`, and `highlight`, plus
4023 key functions from highlighting-kate.
4024 + Changed types of highlighting function. `highlight` returns a
4025 `Maybe`, not an `Either`.
4029 * Relaxed cabal consntraints for test-framework (S. Trofimovich).
4031 * Relaxed cabal constraints for pandoc-types.
4033 * Adjusted Arbitrary instance to help avoid timeouts in tests.
4035 * Added `Tests.Writers.Markdown` to cabal file.
4039 * Added script to produce OS X package.
4041 * Made `templates` directory a git submodule. This should make it
4042 easier for people to revise their custom templates when the default
4045 * Changed template naming scheme: `FORMAT.template` -> `default.FORMAT`.
4046 **Note:** If you have existing templates in `~/.pandoc/templates`, you
4047 must rename them to conform to the new scheme!
4049 * Fixed smart quotes bug, now handling `'...hi'` properly.
4053 + Partial support for labeled footnotes.
4054 + Improved accuracy of `simpleReferenceName` parser.
4058 + Substitute correct unicode characters for
4059 characters in the 128..159 range, which are often found even in
4060 HTML that purports to be UTF-8.
4062 * LaTeX reader: Handle `\subtitle` command (a subtitle is added
4063 to the title, after a colon and linebreak). Closes #280.
4065 * Leaner `reference.odt`.
4067 * Added unexported module `Text.Pandoc.MIME` for use in
4070 * ODT writer: Construct `manifest.xml` based on archive contents.
4071 This fixes a bug in ODTs containing images. Recent versions of
4072 LibreOffice would reject these as corrupt, because `manifest.xml`
4073 did not contain a reference to the image files.
4077 + Make verbatim environments flush to avoid spurious
4078 blank lines. Closes #277.
4079 + Use `\texttt` and escapes insntead of `\verb!...!`, which
4080 is too fragile (doesn't work in command arguments).
4081 + Use `\enquote{}` for quotes if the template includes
4082 the `csquotes` package. This provides better support for
4083 local quoting styles. (Thanks to Andreas Wagner for the idea.)
4085 * ConTeXt writer: Make `\starttyping`/`\stoptyping` flush with
4086 margin, preventing spurious blank lines.
4090 + Use non-minimized version of `slidy.css` with `--offline`
4091 option, so users can more easily edit it.
4092 + Also fixed a bug in the CSS that prevented proper centering
4093 of title (now reported and fixed upstream).
4097 + Replaced `s5/default/slides.js.{comment,packed}` with
4098 new compressed `s5/default/slides.min.js`.
4099 + Use `data:` protocol to embed S5 CSS in `<link>` tags,
4100 when `--offline` is specified. Using inline CSS didn't
4101 work with Chrome or Safari. This fixes offline
4102 S5 on those browsers.
4104 * HTML writer: Removed English title on footnote backlinks.
4105 This is incongrous in non-English documents.
4109 + Use CALS tables. (Some older docbook software does not work
4110 well with XHTML tables.) Closes #77.
4111 + Use `programlisting` tags (instead of `screen`) for code blocks.
4115 + Calls latex with `-halt-on-error -interaction nonstopmode` instead
4116 of `-interaction=batchmode`, which essentially just ignored errors,
4117 leading to bad results. Better to know when something is wrong.
4118 + Fixed issues with non-UTF-8 output of `pdflatex`.
4119 + Better error reporting.
4121 * `--mathjax` now takes an optional URL argument. If it is not
4122 provided, pandoc links directly to the (secure) mathjax CDN,
4123 as now recommended (thanks to dsanson).
4125 * Deprecated `--xetex` option in `pandoc`. It is no longer needed,
4126 since the LaTeX writer now produces a file that can be processed by
4127 `latex`, `pdflatex`, `lualatex`, or `xelatex`.
4129 * Introduced `--luatex` option to `markdown2pdf`. This causes `lualatex`
4130 to be used to create the PDF.
4132 * If a template specified with `--template` is not found, look for it
4133 in `datadir`. Also, if no extension is provided, supply one based
4134 on the writer. So now you can put your `special.latex` template in
4135 `~/.pandoc/templates`, and use it from any directory via
4136 `pandoc -t latex --template special`.
4138 * Default template improvements:
4140 + HTML: Display author and date after title.
4141 + HTML: Made table of contents more customizable. The container
4142 for the TOC is now in the template, so users can insert a header
4143 or other styling. (Thanks to Bruce D'Arcus for the suggestion.)
4144 + HTML, Slidy, S5: Enclose scripts in CDATA tags.
4145 + Slidy, S5: Added `s5-url` and `slidy-url` variables, instead of
4146 hard-coding. If you want to put your slidy files in the slidy
4147 subdirectory, for example, you can do
4148 `pandoc -t slidy -V slidy-url=slidy -s`.
4149 + LaTeX: Use `\and` to separate authors in LaTeX documents (reader
4150 & writer). Closes #279.
4151 + LaTeX: Use different `hyperref` options for `xetex`, fixing
4152 problems with unicode bookmarks (thanks to CircleCode).
4153 + LaTeX: Removed `ucs` package, use `utf8` rather than `utf8x`
4154 with `inputenc`. This covers fewer characters but is more
4155 robust with other packages, and `ucs` is unmaintained. Users
4156 who need better unicode support should use xelatex or lualatex.
4160 * Added `--epub-cover-image` option.
4162 * Documented `--biblatex` and `--natbib` options.
4164 * Allow `--section-divs` with slidy output. Resolves Issue #296.
4166 * Disallow notes within notes in reST and markdown.
4167 These previously caused infinite looping and stack overflows.
4174 Note references are allowed in reST notes, so this isn't a full
4175 implementation of reST. That can come later. For now we need to
4176 prevent the stack overflows. Partially resolves Issue #297.
4178 * EPUB writer: Allow non-plain math methods.
4180 * Forbid ()s in citation item keys. Resolves Issue #304: problems with
4181 `(@item1; @item2)` because the final paren was being parsed as part of
4184 * Changed URI parser so it doesn't include trailing punctuation.
4185 So, in RST, `http://google.com.` should be parsed as a link followed by a
4186 period. The parser is smart enough to recognize balanced parentheses, as
4187 often occur in wikipedia links: `http://foo.bar/baz_(bam)`.
4189 * Markdown+lhs reader: Require space after inverse bird tracks, so that
4190 HTML tags can be used freely at the left margin of a markdown+lhs document.
4191 Thanks to Conal Elliot for the suggestion.
4195 + Improved emph/strong parsing; fixes bug found by Perry Wagle.
4196 + Fixed bug in footnote order (reported by CircleCode).
4199 + Fixed bug in in field lists with multi-line items at the
4201 + Added parentheses to RST `specialChars`, so
4202 `(http://google.com)` will be parsed as a link in parens.
4203 Resolves Issue #291.
4204 + Allow `|` followed by newline in RST line block.
4208 + Gobble option & space after linebreak `\\[10pt]`.
4211 + Make it possible to have colons after links. (qerub)
4212 + Make it possible to have colons after links. (Christoffer Sawicki)
4215 + Skip spaces after `<b>`, `<emph>`, etc.
4216 + Handle tbody, thead in simple tables. Closes #274.
4217 + Implicit `Para`s instead of `Plains` in some contexts.
4219 * OpenDocument writer: Use special `First paragraph` style for
4220 first paragraph after most non-paragraph blocks. This allows users to
4221 specify e.g. that only paragraphs after the first paragraph of a block are
4222 to be indented. Thanks to Andrea Rossato for the patch. Closes #20.
4224 * LaTeX writer: use `deVerb` on table and picture captions.
4225 Otherwise LaTeX complains about `\verb` inside command argument.
4226 Thanks to bbanier for reporting the bug.
4228 * Markdown writer: Insert HTML comment btw list and indented code block.
4229 This prevents the code block from being interpreted as part of the list.
4231 * EPUB writer: Add a meta element specify the cover.
4232 Some EPUB e-readers, such as the Nook, require a meta element inside the
4233 OPF metadata block to ensure the cover image is properly displayed.
4236 * HTML writer: Use embed tag for images with non-image extensions.
4237 (e.g. PDFs). Closes #264.
4239 * LaTeX writer: Improved tables.
4241 + More space between lines, top-align cells.
4242 + Use ctable package, which allows footnotes and
4243 provides additional options.
4244 + Made cell alignments work in multiline tables.
4245 + Closes #271, #272.
4247 * Un-URI-escape image filenames in LaTeX, ConTeXt, RTF, Texinfo.
4248 Also do this when copying image files into EPUBs and ODTs.
4251 * Changed to github issue tracker.
4253 * Added failing emph/strong markdown test case due to Perry Wagle.
4255 * Slidy improvements:
4256 + Updated to use Slidy2.
4257 + Fixed bug, unclosed div tag.
4258 + Added `duration` variable in template.
4259 Setting this activates the timer.
4260 + Use 'titlepage' instead of 'cover' for title div.
4264 * `markdown2pdf`: Removed some debugging lines accidentally included
4265 in the 1.8.1 release. With those lines, the temp directory is created
4266 in the working directory, and it is not deleted. This fix restores
4267 the original behavior.
4271 * Added `--ascii` option. Currently supported only in HTML writer,
4272 which it causes to use numerical entities instead of UTF-8.
4274 * EPUB writer: `--toc` now works to provide a table of contents
4275 at the beginning of each chapter.
4277 * LaTeX writer: Change figure defaults to `htbp`.
4278 This prevents "too many unprocessed floats." Resolves
4281 * `Text.Pandoc.UTF8`: Encode filenames even when using recent
4284 * `markdown2pdf`: Fixed filename encoding issues. With help from Paulo
4285 Tanimoto. Resolves Issue #286.
4287 * HTML writer: Put line breaks in section divs.
4289 * `Text.Pandoc.Shared`: Make `writerSectionDivs` default to False.
4293 * Fixed Source-repository stanza in cabal file.
4299 + Stringify alt text instead of converting to HTML.
4300 + Break lines after block elements, not inside tags.
4301 HTML output now closely resembles that of tidy. Resolves Issue #134.
4303 * Markdown reader: Fixed bug in footnote block parser (pointed out
4304 by Jesse Rosenthal). The problem arose when the blank line
4305 at the end of a footnote block contained indenting spaces.
4307 * Shared: Improved 'normalize' function so it normalizes Spaces too.
4308 In normal form, Space elements only occur to separate two non-Space
4309 elements. So, we never have [Space], or [, ..., Space].
4313 + Improved Arbitrary instance.
4314 + Added timeout for test instances.
4318 + Added section on four-space rule for lists. Resolves Issue #283.
4319 + Clarified optional arguments on math options.
4321 * markdown2pdf: Fixed bug with output file extensions.
4322 Previously `markdown2pdf test.txt -o test.en.pdf` would produce
4323 `test.pdf`, not `test.en.pdf`. Thanks to Paolo Tanimoto for the fix.
4327 * Revised Interact.hs so that it works with the CPP macros
4330 * Revised Setup.hs so that we don't call MakeManPage.hs unless
4331 the man pages are out of date.
4337 * Support for citations using Andrea Rossato's `citeproc-hs` 0.3.
4338 You can now write, for example,
4340 Water is wet [see @doe99, pp. 33-35; also @smith04, ch. 1].
4342 and, when you process your document using `pandoc`, specifying
4343 a citation style using `--csl` and a bibliography using `--bibliography`,
4344 the citation will be replaced by an appropriately formatted
4345 citation, and a list of works cited will be added to the end
4348 This means that you can switch effortlessly between different citation
4349 and bibliography styles, including footnote, numerical, and author-date
4350 formats. The bibliography can be in any of the following formats: MODS,
4351 BibTeX, BibLaTeX, RIS, EndNote, EndNote XML, ISI, MEDLINE, Copac, or JSON.
4352 See the README for further details.
4354 Citations are supported in the markdown reader, using a special
4355 syntax, and in the LaTeX reader, using natbib or biblatex syntax.
4356 (Thanks to Nathan Gass for the natbib and biblatex support.)
4358 * New `textile` reader and writer. Thanks to Paul Rivier for contributing
4359 the `textile` reader, an almost complete implementation of the textile
4360 syntax used by the ruby [RedCloth library](http://redcloth.org/textile).
4363 * New `org` writer, for Emacs Org-mode, contributed by Puneeth Chaganti.
4365 * New `json` reader and writer, for reading and writing a JSON
4366 representation of the native Pandoc AST. These are much faster
4367 than the `native` reader and writer, and should be used for
4368 serializing Pandoc to text. To convert between the JSON representation
4369 and native Pandoc, use `encodeJSON` and `decodeJSON` from
4370 `Text.JSON.Generic`.
4372 * A new `jsonFilter` function in `Text.Pandoc` makes it easy
4373 to write scripts that transform a JSON-encoded pandoc document.
4376 -- removelinks.hs - removes links from document
4378 main = interact $ jsonFilter $ bottomUp removeLink
4379 where removeLink (Link xs _) = Emph xs
4382 To use this to remove links while translating markdown to LaTeX:
4384 pandoc -t json | runghc removelinks.hs | pandoc -f json -t latex
4386 * Attributes are now allowed in inline `Code` elements, for example:
4388 In this code, `ulist ! [theclass "special"] << elts`{.haskell} is...
4390 The attribute syntax is the same as for delimited code blocks.
4391 `Code` inline has an extra argument place for attributes, just like
4392 `CodeBlock`. Inline code will be highlighted in HTML output, if pandoc
4393 is compiled with highlighting support. Resolves Issue #119.
4395 * New `RawBlock` and `RawInline` elements (replacing `RawHtml`,
4396 `HtmlInline`, and `TeX`) provide lots of flexibility in writing
4397 scripts to transform Pandoc documents. Scripts can now change
4398 how each element is rendered in each output format.
4400 * You can now define LaTeX macros in markdown documents, and pandoc
4401 will apply them to TeX math. For example,
4403 \newcommand{\plus}[2]{#1 + #2}
4406 yields `3+4`. Since the macros are applied in the reader, they
4407 will work in every output format, not just LaTeX.
4409 * LaTeX macros can also be used in LaTeX documents (both in math
4410 and in non-math contexts).
4412 * A new `--mathjax` option has been added for displaying
4413 math in HTML using MathJax. Resolves issue #259.
4415 * Footnotes are now supported in the RST reader. (Note, however,
4416 that unlike docutils, pandoc ignores the numeral or symbol used in
4417 the note; footnotes are put in an auto-numbered ordered list.)
4418 Resolves Issue #258.
4420 * A new `--normalize` option causes pandoc to normalize the AST
4421 before writing the document. This means that, for example,
4422 `*hi**there*` will be rendered as `<em>hithere</em>`
4423 instead of `<em>hi</em><em>there</em>`. This is not the default,
4424 because there is a significant performance penalty.
4426 * A new `--chapters` command-line option causes headers
4427 in DocBook, LaTeX, and ConTeXt to start with "chapter" (level one).
4428 Resolves Issue #265.
4430 * In DocBook output, `<chapter>` is now used for top-level
4431 headers if the template contains `<book>`. Resolves Issue #265.
4433 * A new `--listings` option in `pandoc` and `markdown2pdf` causes
4434 the LaTeX writer to use the listings package for code blocks.
4435 (Thanks to Josef Svennigsson for the pandoc patch, and Etienne
4436 Millon for the markdown2pdf patch.)
4438 * `markdown2pdf` now supports `--data-dir`.
4440 * URLs in autolinks now have class "url" so they can be styled.
4442 * Improved prettyprinting in most formats. Lines will be wrapped
4443 more evenly and duplicate blank lines avoided.
4445 * New `--columns` command-line option sets the column width for
4446 line wrapping and relative width calculations for tables.
4448 * Made `--smart` work in HTML, RST, and Textile readers, as well
4451 * Added `--html5` option for HTML5 output.
4453 * Added support for listings package in LaTeX reader
4456 * Added support for simple tables in the LaTeX reader.
4458 * Added support for simple tables in the HTML reader.
4460 * Significant performance improvements in many readers and writers.
4462 [API and program changes]
4464 * Moved `Text.Pandoc.Definition` from the `pandoc` package to a new
4465 auxiliary package, `pandoc-types`. This will make it possible for other
4466 programs to supply output in Pandoc format, without depending on the whole
4469 * Added `Attr` field to `Code`.
4471 * Removed `RawHtml`, `HtmlInline`, and `TeX` elements; added generic
4472 `RawBlock` and `RawInline`.
4474 * Moved generic functions to `Text.Pandoc.Generic`. Deprecated
4475 `processWith`, replacing it with two functions, `bottomUp` and `topDown`.
4476 Removed previously deprecated functions `processPandoc` and `queryPandoc`.
4478 * Added `Text.Pandoc.Builder`, for building `Pandoc` structures.
4480 * `Text.Pandoc` now exports association lists `readers` and `writers`.
4482 * Added `Text.Pandoc.Readers.Native`, which exports `readNative`.
4483 `readNative` can now read full pandoc documents, block lists, blocks,
4484 inline lists, or inlines. It will interpret `Str "hi"`
4485 as if it were `Pandoc (Meta [] [] []) [Plain [Str "hi"]]`.
4486 This should make testing easier.
4488 * Removed deprecated `-C/--custom-header` option.
4489 Use `--template` instead.
4491 * `--biblio-file` has been replaced by `--bibliography`.
4492 `--biblio-format` has been removed; pandoc now guesses the format
4493 from the file extension (see README).
4495 * pandoc will treat an argument as a URI only if it has an
4496 `http(s)` scheme. Previously pandoc would treat some
4497 Windows pathnames beginning with `C:/` as URIs.
4499 * The `--sanitize-html` option and the `stateSanitize` field in
4500 `ParserState` have been removed. Sanitization is better done in the
4501 resulting HTML using `xss-sanitize`, which is based on pandoc's
4502 sanitization, but improved.
4504 * pandoc now adds a newline to the end of its output in fragment
4505 mode (= not `--standalone`).
4507 * Added support for `lang` in `html` tag in the HTML template,
4508 so you can do `pandoc -s -V lang=es`, for example.
4510 * `highlightHtml` in `Text.Pandoc.Highlighting` now takes
4511 a boolean argument that selects between "inline" and
4514 * `Text.Pandoc.Writers.RTF` now exports `rtfEmbedImage`.
4515 Images are embedded in RTF output when possible (png, jpeg).
4516 Resolves Issue #275.
4518 * Added `Text.Pandoc.Pretty`. This is better suited for pandoc than the
4519 `pretty` package. Changed all writers that used
4520 `Text.PrettyPrint.HughesPJ` to use `Text.Pandoc.Pretty` instead.
4522 * Rewrote `writeNative` using the new prettyprinting module. It is
4523 now much faster. The output has been made more consistent and compressed.
4524 `writeNative` is also now sensitive to writerStandalone`, and will simply
4525 `print a block list if writerStandalone` is False.
4527 * Removed `Text.Pandoc.Blocks`. `Text.Pandoc.Pretty` allows you to define
4528 blocks and concatenate them, so a separate module is no longer needed.
4530 * `Text.Pandoc.Shared`:
4532 + Added `writerColumns`, `writerChapters`, and `writerHtml5` to
4534 + Added `normalize`.
4535 + Removed unneeded prettyprinting functions:
4536 `wrapped`, `wrapIfNeeded`, `wrappedTeX`, `wrapTeXIfNeeded`, `hang'`,
4537 `BlockWrapper`, `wrappedBlocksToDoc`.
4538 + Made `splitBy` take a test instead of an element.
4539 + Added `findDataFile`, refactored `readDataFile`.
4540 + Added `stringify`. Rewrote `inlineListToIdentifier` using `stringify`.
4541 + Fixed `inlineListToIdentifier` to treat '\160' as ' '.
4543 * `Text.Pandoc.Readers.HTML`:
4545 + Removed `rawHtmlBlock`, `anyHtmlBlockTag`, `anyHtmlInlineTag`,
4546 `anyHtmlTag`, `anyHtmlEndTag`, `htmlEndTag`, `extractTagType`,
4547 `htmlBlockElement`, `htmlComment`
4548 + Added `htmlTag`, `htmlInBalanced`, `isInlineTag`, `isBlockTag`,
4551 * Moved `smartPunctuation` from `Text.Pandoc.Readers.Markdown`
4552 to `Text.Pandoc.Readers.Parsing`, and parameterized it with
4555 * Added `nonspaceChar` to `Text.Pandoc.Parsing`.
4557 * Ellipses are no longer allowed to contain spaces.
4558 Previously we allowed '. . .', ' . . . ', etc. This caused
4559 too many complications, and removed author's flexibility in
4560 combining ellipses with spaces and periods.
4562 * Allow linebreaks in URLs (treat as spaces). Also, a string of
4563 consecutive spaces or tabs is now parsed as a single space. If you have
4564 multiple spaces in your URL, use `%20%20`.
4566 * `Text.Pandoc.Parsing`:
4568 + Removed `refsMatch`.
4569 + Hid `Key` constructor.
4570 + Removed custom `Ord` and `Eq` instances for `Key`.
4571 + Added `toKey` and `fromKey` to convert between `Key` and `[Inline]`.
4572 + Generalized type on `readWith`.
4574 * Small change in calculation of relative widths of table columns.
4575 If the size of the header > the specified column width, use
4576 the header size as 100% for purposes of calculating
4577 relative widths of columns.
4579 * Markdown writer now uses some pandoc-specific features when `--strict`
4580 is not specified: `\` newline is used for a hard linebreak instead of
4581 two spaces then a newline. And delimited code blocks are used when
4582 there are attributes.
4584 * HTML writer: improved gladTeX output by setting ENV appropriately
4585 for display or inline math (Jonathan Daugherty).
4587 * LaTeX writer: Use `\paragraph`, `\subparagraph` for level 4,5 headers.
4591 + `\label{foo}` and `\ref{foo}` now become `{foo}` instead of `(foo)`.
4592 + `\index{}` commands are skipped.
4594 * Added `fontsize` variable to default LaTeX template.
4595 This makes it easy to set the font size using `markdown2pdf`:
4596 `markdown2pdf -V fontsize=12pt input.txt`.
4598 * Fixed problem with strikeout in LaTeX headers when using
4599 hyperref, by adding a command to the default LaTeX template
4600 that disables `\sout` inside pdf strings. Thanks to Joost Kremers
4603 * The `COLUMNS` environment variable no longer has any effect.
4605 [under-the-hood improvements]
4607 * Pandoc now compiles with GHC 7. (This alone leads to a
4608 significant performance improvement, 15-20%.)
4610 * Completely rewrote HTML reader using tagsoup as a lexer. The
4611 new reader is faster and more accurate. Unlike the
4612 old reader, it does not get bogged down on some input
4613 (Issues #277, 255). And it handles namespaces in tags
4616 * Replaced `escapeStringAsXML` with a faster version.
4618 * Rewrote `spaceChar` and some other parsers in Text.Pandoc.Parsing
4619 for a significant performance boost.
4621 * Improved performance of all readers by rewriting parsers.
4623 * Simplified Text.Pandoc.CharacterReferences by using
4624 entity lookup functions from TagSoup.
4626 * `Text.Pandoc.UTF8` now uses the unicode-aware IO functions
4627 from `System.IO` if base >= 4.2. This gives support for
4628 windows line endings on windows.
4630 * Remove duplications in documentation by generating the
4631 pandoc man page from README, using `MakeManPage.hs`.
4633 * README now includes a full description of markdown syntax,
4634 including non-pandoc-specific parts. A new `pandoc_markdown`
4635 man page is extracted from this, so you can look up markdown
4636 syntax by doing `man pandoc_markdown`.
4638 * Completely revised test framework (with help from Nathan Gass).
4639 The new test framework is built when the `tests` Cabal flag is set. It
4640 includes the old integration tests, but also some new unit and quickcheck
4641 tests. Test output has been much improved, and you can now specify a glob
4642 pattern after `cabal test` to indicate which tests should be run;
4643 for example `cabal test citations` will run all the citation tests.
4645 * Added a shell script, `stripansi.sh`, for filtering ANSI control
4646 sequences from test output: `cabal test | ./stripansi.sh > test.log`.
4648 * Added `Interact.hs` to make it easier to use ghci while developing.
4649 `Interact.hs` loads `ghci` from the `src` directory, specifying
4650 all the options needed to load pandoc modules (including
4651 specific package dependencies, which it gets by parsing
4654 * Added `Benchmark.hs`, testing all readers + writers using criterion.
4656 * Added `stats.sh`, to make it easier to collect and archive
4657 benchmark and lines-of-code stats.
4659 * Added upper bounds to all cabal dependencies.
4661 * Include man pages in extra-source-files. This allows users to
4662 install pandoc from the tarball without needing to build the man
4667 * Filenames are encoded as UTF8. Resolves Issue #252.
4669 * Handle curly quotes better in `--smart` mode. Previously, curly quotes
4670 were just parsed literally, leading to problems in some output formats.
4671 Now they are parsed as `Quoted` inlines, if `--smart` is specified.
4672 Resolves Issue #270.
4674 * Text.Pandoc.Parsing: Fixed bug in grid table parser.
4675 Spaces at end of line were not being stripped properly,
4676 resulting in unintended LineBreaks.
4680 + Allow HTML comments as inline elements in markdown.
4681 So, `aaa <!-- comment --> bbb` can be a single paragraph.
4682 + Fixed superscripts with links: `^[link](/foo)^` gets
4683 recognized as a superscripted link, not an inline note followed by
4685 + Fixed regression, making markdown reference keys case-insensitive again.
4686 Resolves Issue #272.
4687 + Properly handle abbreviations (like `Mr.`) at the end of a line.
4688 + Better handling of intraword underscores, avoiding exponential
4689 slowdowns in some cases. Resolves Issue #182.
4690 + Fixed bug in alignments in tables with blank rows in the header.
4694 + Field lists now allow spaces in field names, and
4695 block content in field values. (Thanks to Lachlan Musicman
4696 for pointing out the bug.)
4697 + Definition list items are now always `Para` instead of
4698 `Plain`, matching behavior of `rst2xml.py`.
4699 + In image blocks, the description is parsed properly and
4700 used for the alt attribute, not also the title.
4701 + Skip blank lines at beginning of file. Resolves
4706 + Improved parsing of preamble.
4707 Previously you'd get unexpected behavior on a document that
4708 contained `\begin{document}` in, say, a verbatim block.
4709 + Allow spaces between `\begin` or `\end` and `{`.
4710 + Support `\L` and `\l`.
4711 + Skip comments inside paragraphs.
4715 + Escape strings in `\href{..}`.
4716 + In nonsimple tables, put cells in `\parbox`.
4718 * OpenDocument writer: don't print raw TeX.
4722 + Fixed bug in `Image`. URI was getting unescaped twice!
4723 + Avoid printing extra blank lines at the end if there are
4724 no notes or references.
4726 * LaTeX and ConTeXt: Escape `[` and `]` as `{[}` and `{]}`.
4727 This avoids unwanted interpretation as an optional argument.
4729 * ConTeXt writer: Fixed problem with inline code. Previously
4730 `}` would be rendered `\type{}}`. Now we check the string for '}' and '{'.
4731 If it contains neither, use `\type{}`; otherwise use `\mono{}`
4732 with an escaped version of the string.
4734 * `:` now allowed in HTML tags. Resolves Issue #274.
4740 * New EPUB and HTML Slidy writers. (Issue #122)
4742 - EPUB is a standard ebook format, used in Apple's iBooks for
4743 the iPad and iPhone, Barnes and Noble's nook reader, the Sony
4744 reader, and many other devices.
4745 - Slidy, like S5, is a system for producing HTML+javascript slide
4748 * All input is assumed to be UTF-8, no matter what the locale and ghc
4749 version, and all output is UTF-8. This reverts to pre-1.5 behavior.
4750 Also, a BOM, if present, is stripped from the input.
4752 * Markdown now supports grid tables, whose cells can contain
4753 arbitrary block elements. (Issue #43)
4755 * Sequentially numbered example lists in markdown with `@` marker.
4757 * Markdown table captions can begin with a bare colon and no longer need
4758 to include the English word "table." Also, a caption can now occur
4759 either before or after the table. (Issue #227)
4761 * New command-line options:
4763 - `--epub-stylesheet` allows you to specify a CSS file that will
4764 be used to style your ebook.
4765 - `--epub-metadata` allows you to specify metadata for the ebook.
4766 - `--offline` causes the generated HTML slideshow to include all
4767 needed scripts and stylesheets.
4768 - `--webtex` causes TeX math to be converted to images using the
4769 Google Charts API (unless a different URL is specified).
4770 - `--section-divs` causes div tags to be added around each section
4771 in an HTML document. (Issue #230, 239)
4773 * Default behavior of S5 writer in standalone mode has changed:
4774 previously, it would include all needed scripts and stylesheets
4775 in the generated HTML; now, only links are included unless
4776 the `--offline` option is used.
4778 * Default behavior of HTML writer has changed. Between 1.2 and 1.5,
4779 pandoc would enclose sections in div tags with identifiers on the
4780 div tags, so that the sections can be manipulated in javascript.
4781 This caused undesirable interactions with raw HTML div tags. So,
4782 starting with 1.6, the default is to put the identifiers directly
4783 on the header tags, and not to include the divs. The `--section-divs`
4784 option selects the 1.2-1.5 behavior.
4788 - `HTMLMathMethod`: Added `WebTeX`, removed `MimeTeX`.
4789 - `WriterOptions`: Added `writerUserDataDir`, `writerSourceDirectory`,
4790 `writerEPUBMetadata` fields. Removed `writerIncludeBefore`,
4791 `writerIncludeAfter`.
4792 - Added `headerShift` to `Text.Pandoc.Shared`.
4793 - Moved parsing code and `ParserState` from `Text.Pandoc.Shared`
4794 to a new module, `Text.Pandoc.Parsing`.
4795 - Added `stateHasChapters` to `ParserState`.
4796 - Added `HTMLSlideVariant`.
4797 - Made `KeyTable` a map instead of an association list.
4798 - Added accessors for `Meta` fields (`docTitle`, `docAuthors`,
4800 - `Pandoc`, `Meta`, `Inline`, and `Block` have been given `Ord`
4802 - Reference keys now have a type of their own (`Key`), with its
4803 own `Ord` instance for case-insensitive comparison.
4804 - Added `Text.Pandoc.Writers.EPUB`.
4805 - Added `Text.Pandoc.UUID`.
4806 - Removed `Text.Pandoc.ODT`, added `Text.Pandoc.Writers.ODT`.
4807 Removed `saveOpenDocumentAsODT`, added `writeODT`.
4808 - Added `Text.Pandoc.Writers.Native` and `writeNative`.
4809 Removed `prettyPandoc`.
4810 - Added `Text.Pandoc.UTF8` for portable UTF8 string IO.
4811 - Removed `Text.Pandoc.Writers.S5` and the `writeS5` function.
4812 Moved `s5Includes` to a new module, `Text.Pandoc.S5`.
4813 To write S5, you now use `writeHtml` with `writerSlideVariant`
4814 set to `S5Slides` or `SlidySlides`.
4816 * Template changes. If you use custom templates, please update them,
4817 particularly if you use syntax highlighting with pandoc. The old HTML
4818 templates hardcoded highlighting CSS that will no longer work with
4819 the most recent version of highlighting-kate.
4821 - HTML template: avoid empty meta tag if no date.
4822 - HTML template: Use default highlighting CSS from highlighting-kate
4823 instead of hard-coding the CSS into the template.
4824 - HTML template: insert-before text goes before the title, and
4825 immediately after the <body> tag, as documented. (Issue #241)
4826 - Added slidy and s5 templates.
4827 - Added amssymb to preamble of latex template. (github Issue 1)
4829 * Removed excess newlines at the end of output. Note: because output
4830 will not contain an extra newline, you may need to make adjustments
4831 if you are inserting pandoc's output into a template.
4833 * In S5 and slidy, horizontal rules now cause a new slide, so you
4834 are no longer limited to one slide per section.
4836 * Improved handling of code in man writer. Inline code is now monospace,
4837 not bold, and code blocks now use .nf (no fill) and .IP (indented para).
4839 * HTML reader parses `<tt>` as Code. (Issue #247)
4841 * html+lhs output now contains bird tracks, even when compiled without
4842 highlighting support. (Issue #242)
4844 * Colons are now no longer allowed in autogenerated XML/HTML identifiers,
4845 since they have a special meaning in XML.
4847 * Code improvements in ODT writer. Remote images are now replaced with
4848 their alt text rather than a broken link.
4850 * LaTeX reader improvements:
4852 - Made latex `\section`, `\chapter` parsers more forgiving of
4854 - Parse `\chapter{}` in latex.
4855 - Changed `rawLaTeXInline` to accept `\section`, `\begin`, etc.
4856 - Use new `rawLaTeXInline'` in LaTeX reader, and export `rawLaTeXInline`
4857 for use in markdown reader.
4858 - Fixes bug wherein `\section{foo}` was not recognized as raw TeX
4859 in markdown document.
4861 * LaTeX writer: images are automatically shrunk if they would extend
4862 beyond the page margin.
4864 * Plain, markdown, RST writers now use unicode for smart punctuation.
4866 * Man writer converts math to unicode when possible, as in other writers.
4868 * `markdown2pdf` can now recognize citeproc options.
4870 * Command-line arguments are converted to UTF-8. (Issue #234)
4872 * `Text.Pandoc.TeXMath` has been rewritten to use texmath's parser.
4873 This allows it to handle a wider range of formulas. Also, if a formula
4874 cannot be converted, it is left in raw TeX; formulas are no longer
4875 partially converted.
4877 * Unicode curly quotes are left alone when parsing smart quotes. (Issue
4880 * Cabal file changes:
4882 - Removed parsec < 3 restriction.
4883 - Added 'threaded' flag for architectures where GHC lacks a threaded
4885 - Use 'threaded' only for markdown2pdf; it is not needed for pandoc.
4886 - Require highlighting-kate 0.2.7.
4888 * Use explicit imports from `Data.Generics`. Otherwise we have a
4889 conflict with the 'empty' symbol, introduced in syb >= 0.2. (Issue #237)
4891 * New data files: slidy/slidy.min.js, slidy/slidy.min.css, epub.css.
4897 * Fixed uniqueIdent in Shared so that header identifiers work as
4898 advertized in the README and are are valid XHTML names.
4904 * Fixed treatment of unicode characters in URIs.
4905 + Shared now exports escapeURI and unescapeURI. These handle
4906 UTF8 encoding and decoding as well as URI escaping/unescaping.
4907 + Shared: uri and emailAddress now return a pair of the original
4908 parsed text and the escaped URI (in the latter case, with
4909 the mailto: prefix).
4910 + HTML reader: unsanitaryURI has been modified to allow unicode
4911 high characters in a URI.
4912 + Readers: All link and image URIs are now escaped using
4914 + Markdown and RST writers: unescapeURI is used so that URIs
4915 in these formats are human-readable.
4917 * Setup.hs: Don't assume that the build directory is "dist".
4918 Instead, get it from localBuildInfo.
4920 * OpenDocument writer: Use a Map for stTextStyleAttr.
4921 This avoids duplicates (and invalid xml). Resolves Issue #222.
4927 * HTML writer: Fixed error in math writer (with MathML option)
4928 that caused an infinite loop for unparsable MathML.
4934 * Added --mathml option. When this is selected, pandoc will convert
4935 TeX math into MathML.
4936 + Added data/MathMLinHTML.js, which is included when no URL is
4937 provided for --mathml. This allows MathML to be displayed (in
4938 better browsers) as text/html.
4939 + Removed Text.Pandoc.LaTeXMathML. The module was no longer
4940 necessary; it was replaced by two lines in pandoc.hs.
4941 + Replaced LaTeXMathML.js.commend and LaTeXMathML.js.packed with a
4942 single combined file, LaTeXMathML.js.
4944 * Added --data-dir option.
4945 This specifies a user data directory. If not specified, will default
4946 to ~/.pandoc on unix or Application Data\pandoc on Windows.
4947 Files placed in the user data directory will override system default
4950 * Added Maybe datadir parameter to readDataFile, saveOpenDocumentAsODT,
4951 latexMathMLScript, s5HeaderIncludes, and getDefaultTemplate. If
4952 Nothing, no user directory is searched for an override.
4954 * Added 'plain' output format. This is similar to markdown, but
4955 removes links, pictures, inline formatting, and most anything that
4956 looks even vaguely markupish. The function writePlain is exported by
4957 Text.Pandoc.Writers.Markdown, with which it shares most of its code.
4959 * Allow multi-line titles and authors in meta block.
4960 Titles may span multiple lines, provided continuation lines
4961 begin with a space character. Separate authors may be put on
4962 multiple lines, provided each line after the first begins with
4963 a space character. Each author must fit on one line. Multiple
4964 authors on a single line may still be separated by a semicolon.
4965 Based on a patch by Justin Bogner.
4967 * When given an absolute URI as parameter, pandoc will try to fetch
4968 the content via HTTP. So you can do:
4969 'pandoc -r html -w markdown http://www.fsf.org'
4970 Adds dependency on HTTP.
4972 * Made HTML reader much more forgiving.
4973 + Incorporated idea (from HXT) that an element can be closed
4974 by an open tag for another element.
4975 + Javascript is partially parsed to make sure that a <script>
4976 section is not closed by a </script> in a comment or string.
4977 + More lenient non-quoted attribute values.
4978 Now we accept anything but a space character, quote, or <>.
4979 This helps in parsing e.g. www.google.com!
4980 + Bare & signs are now parsed as a string. This is a common
4982 + Skip a bare < in malformed HTML.
4984 * Removed html2markdown and hsmarkdown.
4985 + html2markdown is no longer needed, since you can now pass URI
4986 arguments to pandoc and directly convert web pages. (Note,
4987 however, that pandoc assumes the pages are UTF8. html2markdown
4988 made an attempt to guess the encoding and convert them.)
4989 + hsmarkdown is pointless -- a large executable that could be
4990 replaced by 'pandoc --strict'.
4992 * In most writers, an image in a paragraph by itself is now rendered
4993 as a figure, with the alt text as the caption. (Texinfo, HTML, RST,
4994 MediaWiki, Docbook, LaTeX, ConTeXt, HTML.) Other images are
4997 * Depend on extensible-exceptions. This allows pandoc to be compiled
5000 * Added --base-header-level option. For example, --base-header-level=2
5001 will change level 1 headers to level 2, level 2 to level 3, etc.
5002 Closes Debian #563416.
5004 * Incomplete support for RST tables (simple and grid).
5005 Thanks to Eric Kow. Colspans and rowspans not yet supported.
5007 * Added accessors (docTitle, docAuthors, docDate) to Meta type.
5009 * MediaWiki writer: format links with relative URLs as wikilinks.
5010 The new rule: If the link target is an absolute URL, an external
5011 link is created. Otherwise, a wikilink is created.
5013 * Text.Pandoc.Shared: Export uniqueIdent, and don't allow tilde in
5014 identifier. Note: This may break links to sections that involve
5017 * Markdown(+lhs) reader: handle "inverse bird tracks."
5018 Inverse bird tracks (<) are used for haskell example code that is not
5019 part of the literate Haskell program. Resolves Issue #211.
5022 + Recognize '\ ' (interword space).
5023 + Recognize nonbreaking space '~'.
5024 + Ignore \section, \pdfannot, \pdfstringdef. Ignore alt title in
5025 section headers. Don't treat \section as inline LaTeX.
5026 Resolves Issue #202.
5027 + LaTeX reader: allow any special character to be escaped.
5028 Resolves Issue #221.
5029 + LaTeX reader: treat \paragraph and \subparagraph as level 4, 5
5030 headers. Resolves Issue #207.
5032 * Use template variables for include-before/after.
5033 + These options now imply -s; previously they worked also in fragment
5035 + Users can now adjust position of include-before and include-after
5036 text in the templates.
5037 + Default position of include-before moved back (as it was before 1.4)
5038 before table of contents.
5039 + Resolves Issue #217.
5041 * Don't print an empty table header: (all writers).
5042 Resolves Issue #210.
5044 * HTML, Docbook writer: Use tbody, thead, and cols in tables.
5046 * HTML writer: Don't include TOC div if table of contents is empty.
5048 * Markdown writer: Fixed citations.
5049 Previously the markdown writer printed raw citation codes, e.g.
5050 [geach1970], rather than the expanded citations provided by
5051 citeproc, e.g. (Geach 1970). Now it prints the expanded citations.
5052 This means that the document produced can be processed as a markdown
5053 document without citeproc. Thanks to dsanson for reporting, and
5054 Andrea Rossato for the patch.
5056 * Improved and simplified title block in context template.
5057 Previously it caused an error if there was no title.
5058 This method should also be easier for users to customize.
5061 + Treat p., pp., sec., ch., as abbreviations in smart mode.
5062 + Disallow blank lines in inline code span.
5063 + Allow footnotes to be indented < 4 spaces.
5064 This fixes a regression. A test case has been added.
5065 + Escape spaces in URLs as %20. Previously they were incorrectly
5066 escaped as +, which is appropriate only for the query part of
5067 a URL. Resolves Issue #220.
5068 + Require two spaces after capital letter + period for list item.
5069 Otherwise "E. coli" starts a list. This might change the semantics
5070 of some existing documents, since previously the two-space
5071 requirement was only enforced when the second word started
5072 with a capital letter. But it is consistent with the existing
5073 documentation and follows the principle of least surprise.
5074 Resolves Issue #212.
5076 * LaTeX template: redefine labelwidth when using enumerate package.
5077 Otherwise the list labels (numbers) often extend past the left
5078 margin, which looks bad.
5080 * Mediawiki writer: Don't print a "== Notes ==" header before
5081 references. This is too English-centric. Writers can provide their
5082 own header at the end of the document.
5084 * Promoted mediawiki headers. '= head =' is now level 1, '== head =='
5085 level 2, etc. This seems to be correct; it's only by convention
5086 that wikipedia articles have level 2 headers at most.
5087 Patch due to Eric Kow.
5089 * RunTests.hs: Set LANG to a UTF-8 locale. Use 'pandoc --data-dir=' so
5090 data files don't need to have been installed. This removes the need to
5094 + Handle spaces before <html>. Resolves Issue #216.
5095 + Be forgiving in parsing a bare list within a list.
5096 The following is not valid xhtml, but the intent is clear:
5099 <ol><li>sub</li></ol>
5102 We'll treat the <ol> as if it's in a <li>. Resolves Issue #215.
5104 * Updated INSTALL instructions. cabal method is now promoted.
5106 * Updated markdown2pdf man page. It no longer says all pandoc options
5109 * README/man pages: Removed advice to pipe through tidy before HTML
5110 reader. This is obsolete, now that we have a forgiving HTML parser.
5112 * LaTeX writer: set numbersections template variable, so
5113 the section numbering options work again.
5115 * Removed obsolete Makefile.
5117 * Website: renamed index.txt.in -> index.txt.
5119 * New batch file to make-windows-installer.
5120 + Removed old Makefile.windows
5121 + Added make-windows-installer.bat
5122 + Modified default installer name in pandoc-setup.iss
5124 * Removed freebsd and macports directories.
5125 They are no longer up to date.
5128 + Made man page building sensitive to build verbosity.
5129 + Improved detection of highlighting support in test hook.
5130 + Install wrapper scripts into cabal bin directory.
5131 + Also simplified installManpages.
5132 + Setup.hs: install manpages to mandir. Code borrowed from darcs.
5134 * Changed default of writerXeTeX to False.
5136 * HTML writer: don't include empty UL if --toc but no sections.
5137 Resolves Issue #199.
5141 + If book, report, or memoir documentclass, use \chapter{}
5142 for first-level headers. Otherwise use \section{}.
5143 + Removed stLink, link template variable. Reason: we now always
5144 include hyperref in the template.
5148 + Only show \author if there are some.
5149 + Always include hyperref package. It is used not just for links but
5150 for toc, section heading bookmarks, footnotes, etc. Also added
5151 unicode=true on hyperref options.
5153 * markdown2pdf: always do at least two runs. hyperref bookmarks
5156 * cabal file: Removed unneeded dependency on template-haskell.
5158 * Windows installer - fixed bug in data file locations.
5159 Resolves Issue #197.
5161 * Deprecated --custom-header in documentation.
5162 Removed old "Custom Headers" section in README.
5168 * Pandoc will now compile with either GHC 6.10 or 6.12.
5169 + Don't use System.IO.UTF8 when compiling with 6.12
5170 + Use -fno-warn-unused-do-bind option when compiling with 6.12
5172 * Replaced old headers with templates. Now users have much more
5173 control over the way documents appear in --standalone mode,
5174 and writer code is simplified. Resolves Issues #59, 147.
5175 Every effort has been made to retain backwards compatibilty.
5176 So, the --custom-header option should still work as before.
5178 + Added Text.Pandoc.Templates. This provides functions for
5179 retrieving default templates and for rendering templates.
5180 + System templates (in the pandoc data directory) can be
5181 overridden by user templates in $HOME/.pandoc/templates.
5182 + Removed Text.Pandoc.DefaultHeaders.
5183 + Removed data/headers directory.
5184 + Added templates directory.
5185 + Added writerTemplate and writerVariables fields to WriterOptions.
5186 + Removed writerTitlePrefix, writerHeader fields from WriterOptions.
5187 + Changed --print-default-header to --print-default-template.
5188 + Added --template option.
5189 + Added -V/--variable option to set custom template variables.
5191 * Pandoc no longer requires Template Haskell. Resolves Issue #186.
5193 + Removed need for TH in ODT module. Instead get reference.odt from
5194 data file at run time.
5195 + Removed TH dependency from S5 module. S5 module now exports
5196 s5HeaderIncludes, which pandoc.hs includes if writer is s5 and
5198 + Refactored LaTeXMathML not to use TH.
5200 * Meta is now Meta [Inline] [[Inline]] [Inline] rather than
5201 Meta [Inline] [String] String. Authors and date in Meta are now lists
5202 of Inline elements rather than raw strings. This means that they can
5203 be formatted and can include footnotes. NOTE: This may be a breaking
5204 change for those using pandoc as a library.
5206 * Added readDataFile to Text.Pandoc.Shared. This retrieves
5207 a data file from the user pandoc data directory (~/.pandoc
5208 on unix), or, if not found there, from the system data
5209 directory ($CABALDIR/shared/pandoc-VERSION/). All data
5210 files, including templates, LaTeXMathML.js, s5 styles,
5211 and reference.odt, can be overridden by the user.
5213 * s5 files moved from data/ui/default to s5/default.
5215 * Use unicode instead of entities in HTML and XML output. Resolves
5218 * Prettier HTML footnote references: put anchor inside sup,
5219 instead of other way. Resolves Issue #191. Thanks to
5222 * Added --xetex option to pandoc and markdown2pdf.
5223 If --xetex is specified, pandoc produces latex suitable for
5224 processing by xelatex, and markdown2pdf uses xelatex to create
5225 the PDF. Resolves Issue #185.
5227 * RTF writer: multiple authors now occupy multiple paragraphs rather
5228 than using a line break.
5230 * Man writer: now the "--after-body" will come after the "AUTHORS"
5231 section, whereas before it would come before it. This is a
5232 slight break from backwards compatibility.
5234 * Added --reference-odt option, so users may customize the styles
5235 used in pandoc-generated ODT files. Users may also place a
5236 default reference.odt in the ~\.pandoc directory.
5239 + Indented and line-broke styles.xml so it can be modified more easily.
5240 + Omitted some unnecessary style declarations.
5241 + Don't wrap text in OpenDocument writer. The tags are too long, making
5242 wrapping ugly and pointless.
5244 * LaTeX reader: use \\ to separate multiple authors.
5246 * Markdown reader: use ; as separator between authors.
5247 This allows you to use ',' within author names: e.g. "John Jones, Jr."
5249 * S5 writer: use linebreak to separate authors in title page.
5251 * RST reader: Allow :: before lhs code block. The RST spec requires the
5252 :: before verbatim blocks. This :: should not be treated as literal
5253 colons. Resolves Issue #189.
5255 * Documented pandoc 1.3's new definition list syntax in README.
5256 (An oversight in the last release.)
5259 + interpret ! in a log as an error line.
5260 + --toc now works properly.
5262 * Changes in RunTests.hs:
5263 + Use the Diff library rather than a local copy of Diff.hs.
5264 (This vastly increases performance.) This change means that 'cabal
5265 test' presupposes that the Diff library is installed.
5266 + Removed tests/Diff.hs from cabal file.
5267 + Changed RunTests to use local environment. We need at least HOME, so
5268 pandoc can find its data directory.
5270 * Updated windows installer to install data files in the app directory.
5272 * Windows installer now installs portable wrappers hsmarkdown and
5279 * Added --id-prefix option (Issue #41). This adds a prefix to all
5280 automatically generated HTML identifiers, which helps prevent
5281 duplicate identifiers when you're generating a fragment (say a blog
5284 * Added --indented-code-classes option. This specifies classes
5285 to use for indented code blocks. (Patch due to buttock; Issue #87.)
5287 * --number-sections now affects HTML output as well as ConTeXt and LaTeX
5290 * Improved syntax for markdown definition lists (Issue #24).
5291 Definition lists are now more compatible with PHP Markdown Extra.
5292 + You can have multiple definitions for a term (but still not
5294 + Multi-block definitions no longer need a column before each block
5295 (indeed, this will now cause multiple definitions).
5296 + The marker no longer needs to be flush with the left margin,
5297 but can be indented at or two spaces. Also, ~ as well as :
5298 can be used as the marker (this suggestion due to David
5300 + There can now be a blank line between the term and the
5303 * Better looking simple tables. Resolves Issue #180.
5304 + Markdown reader: simple tables are now given column widths of 0.
5305 + Column width of 0 is interpreted as meaning: use default column width.
5306 + Writers now include explicit column width information only
5307 for multiline tables. (Exception: RTF writer, which requires
5308 column widths. In this case, columns are given equal widths,
5309 adding up to the text width.)
5310 + Simple tables should now look better in most output formats.
5312 * Allow markdown tables without headers (Issue #50).
5313 The new syntax is described in README. Also allow optional line of
5314 dashes at bottom of simple tables.
5316 * Compensate for width of final table column (Issue #144).
5318 * Treat a backslash followed by a newline as a hard line break
5319 in markdown. Resolves Issue #154. This is a nice alternative
5320 to markdown's "invisible" way of indicating hardline breaks
5321 using lines that end with two spaces.
5323 * Improved performance of markdown reader by ~10% by eliminating the
5324 need for a separate parsing pass for notes. Raw notes are now stored
5325 on the first pass (which parses references), then parsed when the
5326 note is inserted into the AST. The stateNotes field in ParserState
5327 is now a list of [(String, String)] pairs instead of [(String,
5330 * In markdown reader, treat 4 or more * or _ in a row as literal
5331 text. (Trying to parse long strings of * or _ as strong or emph
5332 leads to exponential performance problems.)
5334 * Markdown reader: Use + rather than %20 for spaces in URLs.
5336 * Fixed htmlComment parser, adding a needed 'try'.
5338 * Don't print raw HTML in man output.
5340 * Allow . _ and ~ in header identifiers.
5342 * Specially mark code blocks that were "literate" in the input.
5343 They can then be treated differently in the writers. This allows
5344 authors to distinguish bits of the literate program they are writing
5345 from source code examples, even if the examples are marked as
5346 Haskell for highlighting. (Issue #174.)
5348 * Modified html+lhs output to use "haskell" highlighter instead
5349 of "literateHaskell". The highlighting module now adds bird tracks
5350 after highlighting (for HTML output), if the code block has the
5351 "literate" class. This gives better results, because kate's
5352 haskell highlighter is much better than the literateHaskell
5355 * Fixed handling of footnotes in titles (HTML) and headers (LaTeX).
5358 * Support for "..code-block" directive in RST reader. Not core
5359 RST, but used in Sphinx for code blocks annotated with syntax
5360 information. Thanks to Luke Plant for the patch.
5362 * Added "head" to list of block-level HTML tags. Resolves
5365 * Added stripTags to Text.Pandoc.XML. This is used in the HTML writer.
5367 * Set utf-8 encoding in texinfo headers.
5369 * Docbook writer: add ids to sections. Use link for internal links.
5372 * Blank lines after lists in MediaWiki writer.
5374 * Properly handle commented-out list items in markdown.
5375 Resolves Issue #142. Example:
5383 * Changed heuristic in compactify. compactify has to decide whether a
5384 Para that ends a list is a Para intentionally, or just because of
5385 the blank lines at the end of every list. In the latter case the
5386 Para is turned to a Plain. The old heuristic was: change final Para
5387 to Plain iff the other items all end in Plain. This produces bad
5388 results when, for example, an item contains just a Plain and an HTML
5389 comment, as it does in the list above. The new heuristic: change
5390 final Para to Plain iff the other items don't contain a Para.
5392 * Added % as an rst underline character. Resolves Issue #173.
5394 * Fix inline math parser so that \$ is allowed in math.
5395 Resolves Issue #169.
5397 * Translate \int (integral) into unicode when using unicode math
5398 method. Resolves Issue #177.
5400 * markdown2pdf.hs improvements:
5401 + Use System.IO.UTF8.
5402 + Print error messages on last attempt.
5403 + Do not create a backup when overwriting a PDF (Issue #166).
5404 + Accept --longopt=val options.
5405 + Added man/man1/markdown2pdf.1 to extra-tmp-files in cabal, so that
5406 it is properly cleaned.
5408 * Added haddock comments warning that readers assume \n line endings.
5410 * Updated COPYRIGHT file.
5412 * Makefile: Changed EXECSBASE so it doesn't pull in hsmarkdown &
5413 markdown2pdf. Otherwise strip tries to strip shell scripts when you
5414 install using 'make'.
5416 * Changed Makefile so it doesn't build Haskell wrappers.
5418 * Fixed Makefile so it doesn't try to build man pages in build-doc.
5420 * Install pcre3.dll in Windows install script; this allows us to
5421 package a version of pandoc with highlighting support.
5427 * Fixed regression with --preserveTabs. Brought back optPreserveTabs.
5428 The trick of setting tabStop to 0 to mean "preserve tabs" had a bad
5429 side effect: strings of 0 spaces were interpreted as indentation.
5430 So, with --preserve-tabs, unindented paragraphs were treated as
5431 code. Resolves Issue #138.
5433 * HTML writer: wrap sections in divs. Resolves Issue #70.
5435 + hierarchicalize has been rationalized; it builds a hierarchical
5436 representation of the document from the headers, and simultaneously
5437 gives each section a unique identifier based on the heading title.
5438 + Identifiers are now attached to the divs rather than
5439 to the headers themselves.
5440 + Table of content backlinks go to the beginning of the table, rather
5441 than to the section reference that was clicked.
5442 + Code for constructing identifiers has been moved to Text.Pandoc.Shared
5443 from the HTML writer, since it is now consumed only by
5445 + In --strict mode, pandoc just prints bare headings, as before
5446 (unless --toc has been specified).
5447 + In s5 output, it does not wrap sections in divs, as that seems to
5448 confuse the s5 javascript.
5450 * Man writer: break lines at end of each sentence. groff expects this
5451 and treats '.' and '?' differently when followed by line ending as
5452 opposed to ordinary space. Also, don't escape periods. Instead, use
5453 zero-width character \& to avoid unwanted interpretation of periods
5454 at start of line. Resolves Issue #148.
5456 * Markdown writer: Added '#' and '>' to list of characters to be
5457 escaped in markdown output. Removed '<', as it is not an officially
5458 escapable character. This partially resolves Issue #96.
5460 * Make --smart the default for man output format. Otherwise we have
5461 trouble dividing lists of endlines into sentences.
5463 * DocBook writer: Use language attribute to indicate source language
5468 + Allow # to continue list, even if the list was started with an
5469 explicit marker. For example:
5474 Resolves Issue #140.
5475 + Allow continuation lines in line blocks. Also added test cases for
5476 line blocks for RST reader. Resolves Issue #149.
5477 + Allow explicit links with spaces in URL: `link <to this>`_
5479 * Improved LaTeX reader's coverage of math modes. Remove displaymath*
5480 (which is not in LaTeX) and recognize all the amsmath environments
5481 that are alternatives to eqnarray, namely equation, equation*,
5482 gather, gather*, gathered, multline, multline*, align, align*,
5483 alignat, alignat*, aligned, alignedat, split. Resolves Issue #103.
5484 Thanks to shreevatsa.public for the patch.
5488 + Allow -, _, :, . in markdown attribute names. These are legal in
5489 XML attribute names.
5490 + Use non-breaking spaces in abbreviations.
5491 + Markdown reader: improved efficiency of abbreviation parsing.
5492 Instead of a separate abbrev parser, we just check for
5493 abbreviations each time we parse a string. This gives a huge
5494 performance boost with -S. Resolves Issue #141.
5496 * Improved efficiency of shared parsers: hexNum, htmlComment,
5497 whitespace, indentSpaces.
5499 * Export HTMLMathMethod in Text.Pandoc.
5501 * Export languagesByExtension in Text.Pandoc.Highlighting.
5503 * Added new Haskell version of markdown2pdf, due to
5504 Paulo Tanimoto. This should be more portable than the old
5507 * Made 'pandoc -v' more explicit about compiler options.
5508 Resolves Issue #139.
5510 * pandoc.hs: Made --strict compatible with --standalone, --toc.
5512 * Use Paths_pandoc to get version number, instead of hard-coding it
5513 into Text/Pandoc.hs.
5519 * Added support for literate Haskell. lhs support is triggered by
5520 '+lhs' suffixes in formats. For example, 'latex+lhs' is literate
5521 Haskell LaTeX. '.lhs' files are treated by default as literate
5524 + Added stateLiterateHaskell to parser state.
5525 + Added parser for lhsCodeBlock to Markdown, RST, LaTeX readers.
5526 + Added parser for |inline lhs| to LaTeX reader.
5527 + Added writerLiterateHaskell to WriterOptions.
5528 + Added lhs support to Markdown, RST, LaTeX, HTML writers.
5529 + Added definition of code environment to LaTeX header.
5530 + Added tests (run only if highlighting support compiled in).
5531 + Documented lhs features in man page and README.
5533 * In Text.Pandoc.Definition, added processWith, processWithM,
5534 and queryWith, and deprecated processPandoc and queryPandoc
5535 for these more general functions.
5537 * Fixed bug in mediawiki writer: improper closing tags in tables.
5538 Thanks to Benct Philip Jonsson for reporting the bug.
5540 * Added --email-obfuscation option.
5542 + Added writer option for email obfuscation.
5543 + Implemented email obfuscation options in HTML writer.
5544 + Added option to option parser.
5545 + Documented in README and pandoc man page.
5546 + Resolves Issue #97.
5548 * LaTeX writer: fixed bug with empty table cells.
5549 Resolves Issue #107. Thanks to rodja.trappe for the patch.
5551 * Fixed bug with header spacing in Markdown and RST writers.
5552 A null header (Meta [] [] []) should not cause a blank line
5553 at the beginning of output. But a blank line is needed between
5554 a non-null header and the main text.
5556 * Markdown reader: Relax spacing rules for $$ in display math. Now
5557 space and newlines are allowed after the opening $$ and before the
5558 closing $$. However, the display math cannot contain an entirely
5559 blank line. Resolves Issue #105.
5561 * Markdown reader: Gobble space after Plain blocks containing only
5562 raw html inline. Otherwise following header blocks are not parsed
5563 correctly, since the parser sees blank space before them. Resolves
5566 * Markdown reader: Allow " as well as '' to end a latex double-quote.
5568 * Conditionally depend on syb and base >= 4 if ghc >= 6.10.
5569 Resolves Issue #109.
5571 * Fixed problems in RST and markdown output due to bug in pretty-1.0.1.0
5573 + Added hang' function to Text.Pandoc.Shared; this will be used instead
5574 of hang, which doesn't work properly in pretty-1.0.1.0. When pretty
5575 is upgraded, we can go back to hang.
5576 See http://article.gmane.org/gmane.comp.lang.haskell.general/16687
5577 + Use hang' (and some different techniques) in RST and markdown writers.
5578 Some output is now a bit different.
5580 * Brought citeproc support up to date for citeproc-hs-0.2.
5581 (Patch by Andrea Rossato.)
5583 * Moved all haskell source to src subdirectory. Renamed Main.hs to
5586 * Rewrote hsmarkdown in Haskell for portability (src/hsmarkdown.hs).
5587 For now, keeping the old shell script too.
5589 * Added TemplateHaskell to Extensions for executable, removed
5590 -threaded for library. Thanks to duncan.coutts for the bug report.
5591 Resolves Issue #121.
5593 * Moved some Extra-Source-Files to Data-Files.
5595 * Moved tabFilter to Shared.
5597 * In pandoc.hs, removed optPreserveTabs; instead, tabstop of 0 means
5600 * Minor code cleanup based on hlint suggestions.
5608 + Changed date on copyright message in Main.hs.
5609 + Have the '-v' option print syntax highlighting languages
5610 separated by commas, and wrapped in lines, instead of in five
5613 * Added --jsmath option. Resolves Issue #68.
5615 + Added --jsmath option to Main.hs
5616 + Added JsMath to HTMLMathMethod in Text.Pandoc.Shared.
5617 + Handle math appropriately in HTML writer when JsMath selected.
5618 + Documented the option in README and man page.
5620 * Text.Pandoc.Shared: Changed compactify to use a better heuristic
5621 for tight and loose lists. Final Para is changed to Plain if all
5622 other list items *end* with a Plain block. Addresses Issue #99.
5626 + Added colons to protocols in unsanitaryURI. Closes Issue #88.
5627 + HTML reader: Don't interpret contents of <pre> blocks as markdown.
5628 Added rawVerbatimBlock parser. Resolves Issue #94.
5632 + Allow URLs with spaces in them in links and references, but escape
5634 + Allow blank space at the end of horizontal rules.
5636 * RST reader: Modified 'unknownDirective' parser to handle comment
5637 blocks correctly, and added tests for comment blocks. Resolves Issue
5638 #86. Closes Debian Bug #500662.
5642 + Include classes on tr elements in HTML output:
5643 "header", "odd", "even". This allows tables to be styled with
5644 lines in alternating colors. Resolves Issue #91.
5645 + Enclose all LaTeXMathML bits in <span class="LaTeX">.
5646 This prevents parts of the document that are not math from being
5647 interpreted as math by LaTeXMathML.js.
5649 * OpenDocument and ODT writers: Added support for HorizontalRule elements,
5650 which were formerly ignored. Resolves Issue #95.
5652 * Text.Pandoc.Shared: Modified wrappedTeX to eliminate the line break
5653 between a footnote and immediately following nonspace characters in
5654 LaTeX and ConTeXt output. (This gets interpreted as a space, which
5655 is not desired in cases like "text^[note]---".) Resolves Issue #93.
5657 * Windows installer: Don't require admin privileges to run
5658 installer. Modified pandoc-setup.iss, and changed modpath.iss to
5659 modify HKCU path if user lacks admin privileges. Also fixed case
5660 where oldpath is empty (previously this led to the new path
5661 beginning with a semicolon).
5663 * Updated INSTALL instructions for Arch packages and OS X install using
5666 * Removed the (now unneeded) debian directory.
5667 Removed empty Codec and System directories.
5669 * Moved odt-styles/ to data/. Removed unneeded variable in Makefile.
5671 * Modified Setup.hs so that the "test" target returns an error status
5672 when tests fail, and "build" returns a success status if
5673 the build succeeds. Resolves Issue #100.
5675 * Added BUGS to files in tarball.
5682 * Removed spurious reference to pdf output format from pandoc(1) man page.
5688 * Added new OpenDocument writer.
5690 * Added support for SmallCaps inline element.
5692 * Added support for integrating pandoc with citeproc-hs.
5694 + Added Cite element to definition and writers.
5695 + Added Text.Pandoc.Biblio module
5696 + Note: This support is included only if the 'citeproc'
5697 Cabal configuration flag is set.
5699 * Made Pandoc data structure an instance of Typeable.
5700 Added new processPandoc and queryPandoc functions, to query
5701 or transform matching elements in a Pandoc structure.
5705 * Added new Texinfo writer.
5709 * Changes to Texinfo writer:
5711 + No space between paragraph and following @verbatim (provides more
5712 pleasing appearance in text formats)
5713 + Blank line consistently after list environments.
5715 + Use @code instead of @verb for inline code (this solves the character
5716 escaping problem for texi2dvi and texi2pdf).
5717 + Added news of Texinfo writer to README.
5718 + Added Texinfo to list of formats in man page, and removed extra 'groff'.
5719 + Added texi & texinfo extensions to Main.hs, and fixed bug in determining
5720 default output extension.
5721 + Modified disallowedInNode in Texinfo writer to correct list of disallowed characters.
5723 * Added tests for OpenDocument writer.
5725 * Added ODT writer (using zip-archive library to package output of
5726 OpenDocument writer). Added odt-styles directory with default ODT styles.
5728 * Added new mediawiki writer and tests.
5730 * Markdown reader: Added support for delimited code blocks, with optional
5731 syntax highlighting using highlighting-kate (if the 'highlighting'
5732 configuration option is selected).
5734 + Currently highlighting is supported only in the HTML writer.
5735 + Delimited code blocks can have attributes; using the language name as
5736 class triggers highlighting.
5737 + New Attributes parameter in CodeBlock structure.
5738 + --version now indicates whether syntax highlighting support is compiled
5739 in, and prints a list of supported languages
5741 * Removed debian directory. Pandoc is no longer a native debian package.
5743 * Changes to build process: pandoc can now be built from the repository
5744 using Cabal. No unix tools are needed (so, pandoc can be built on Windows
5747 + Include shell scripts themselves in repo, rather than generating from wrappers.
5748 Removed wrappers directory and wrappers Makefile target.
5749 + Text/Pandoc/ASCIIMathML.hs, Text/Pandoc/DefaultHeaders.hs,
5750 and Text/Pandoc/Writers/S5.hs are no longer built in Makefile
5751 from templates in the templates/ directory. Instead, they use template
5752 haskell to read data at compile time from the relevant files in data/.
5753 Template haskell functions go in a new module, Text.Pandoc.TH.
5754 + man pages are now generated in Setup.hs hook, not by Makefile
5755 + Makefile 'tarball' target now calls Cabal's 'sdist'
5756 + Added "Extra-Source-Files" to pandoc.cabal, so sdist contains everything needed
5757 + Added "Build-Type" field to pandoc.cabal to avoid warning.
5758 + Added to "Extra-source-files" and "Extra-tmp-files" in pandoc.cabal,
5759 so 'sdist' and 'clean' will work properly.
5760 + Setup.hs now generates man pages in a postbuild hook.
5761 + Added dependency-checking to Setup.hs, so it only rebuilds things
5762 that need rebuilding.
5763 + Added 'library' and 'executable' configuration flags.
5764 Cabal can now be told to build just the library or just the executable.
5765 + CABALOPTS may now be specified with 'make' to pass Cabal configuration flags.
5766 For example: CABALOPTS=-fhighlighting make
5768 * Rewrote test suite so it doesn't depend on perl or unix tools.
5770 + Replaced old runtests.pl with a Haskell script RunTests.hs.
5771 + Added Diff.hs module to be used by RunTests.hs instead of unix 'diff'.
5772 + Added test hook to Setup.hs, so tests may be run from cabal.
5773 + Changed Makefile's 'test' target to run tests via cabal.
5774 + Removed old generate.sh.
5775 + Since we no longer have 'sed' to filter out raw HTML sections
5776 from the docbook writer test, or raw LaTeX sections from the
5777 context writer test, we now just include these sections.
5778 They can be taken out if it is necessary to process the files.
5779 + Updated latex and context writer tests to remove extra spaces
5781 + Added a markdown table reader test.
5782 + Added markdown-reader-more.txt to test suite, for additional test cases
5783 for raw ConTeXt environments and more.
5785 * Compatibility fixes for CPP, Cabal, and haddock:
5787 + Use CPP in "Extensions" field in pandoc.cabal.
5788 + Removed use of backslash string continuations in source files.
5790 * Removed pandoc.cabal.ghc66. We now require Cabal >= 1.2, GHC >= 6.8,
5793 * Require parsec < 3.
5794 The compatibility module in parsec 3.0.0 gives far worse performance than
5795 parsec 2.1. Eventually pandoc will be upgraded to use the new bytestring
5796 version of parsec, and then we'll go to parsec 3.0.0.
5798 * Removed Text.Regex dependencies by rewriting using plain Haskell
5799 (Text.Pandoc.Writers.RTF, Text.Pandoc.Writers.HTML, Main.hs)
5801 * Moved Text.Pandoc.Writers.DefaultHeaders -> Text.Pandoc.DefaultHeaders.
5805 + Added 'configure' as dependency of 'uninstall-all'.
5806 (It uses the Cabal build program.)
5807 + Makefile: only use --with-hc-pkg if GHC_PKG is defined.
5808 Note that Cabal will automatically choose the ghc-pkg appropriate
5809 for the compiler selected, so normally specifying GHC by itself
5812 * Removed Text.Pandoc.UTF8 module; instead, depend on utf8-string and use
5813 its IO and conversion functions.
5815 * Added -Wall to ghc-options in pandoc.cabal. Cleaned up modules so that
5816 everything is -Wall clean.
5818 + Added pragma to HTML writer to avoid deprecation warning for use of "start" attribute.
5819 + Added pragma to Text/Pandoc/Shared.hs to get rid of "orphan instance" warnings.
5820 (These are caused by the Lift instance for ByteString.)
5822 * Changed the comment used to replace unsafe HTML if sanitize-html option
5825 * Made -c/--css option repeatable on the command line (like -H, -A, -B).
5827 * Moved XML-formatting functions to new unexported module Text.Pandoc.XML.
5829 * Escape '\160' as " ", not " " in XML.
5830 "nbsp" isn't a predefined XML entity.
5832 * Fixed bug in RST reader, which would choke on: "p. one\ntwo\n".
5833 Added some try's in ordered list parsers.
5835 * Man writer: don't escape " as \".
5837 * Allow newline before URL in markdown link references. Resolves Issue #81.
5838 Added tests for this issue in new "markdown-reader-more" tests.
5839 Changed RunTests.hs to run these tests.
5841 * Support for display math. Resolves Issue #47.
5843 + Added a DisplayMath/InlineMath selector to Math inlines.
5844 + Markdown parser yields DisplayMath for $$...$$.
5845 + LaTeX parser yields DisplayMath when appropriate. Removed
5846 mathBlock parsers, since the same effect is achieved by the math
5847 inline parsers, now that they handle display math.
5848 + Writers handle DisplayMath as appropriate for the format.
5849 + Modified tests accordingly; added new tests for display math.
5851 * Use LaTeXMathML instead of ASCIIMathML. LaTeXMathML is closer
5852 to LaTeX in its display of math, and supports many non-math LaTeX environments.
5854 + Changed -m option to use LaTeXMathML rather than ASCIIMathML.
5855 + Modified HTML writer to print raw TeX when LaTeXMathML is
5856 being used instead of suppressing it.
5857 + Removed ASCIIMathML files from data/ and added LaTeXMathML.
5858 + Replaced ASCIIMathML with LaTeXMathML in source files.
5859 + Modified README and pandoc man page source.
5860 + Added --latexmathml option (kept --asciimathml as a synonym
5861 for backwards compatibility)
5863 * Markdown reader: Parse setext headers before atx headers.
5867 parsed by Markdown.pl as an H1 header with contents "# hi".
5869 * Markdown reader: Treat "mixed" lists the same way as Markdown.pl does.
5870 The marker on the first list item determines the type of the whole
5871 list. Thus, a list like
5875 gets parsed as a single ordered list. (Previous versions of pandoc
5876 treated this as an ordered list with an unordered sublist.)
5878 * Markdown smart typography:
5880 + Em dashes no longer eat surrounding whitespace. Resolves Issue #69.
5881 + Use nonbreaking spaces after known abbreviations in markdown parser.
5882 Thus, for example, "Mr. Brown" comes out as "Mr.~Brown" in LaTeX, and does
5883 not produce a sentence-separating space. Resolves Issue #75.
5885 * Markdown writer: Print unicode \160 literally, rather than as .
5887 * Treat '\ ' in (extended) markdown as nonbreaking space.
5888 Print nonbreaking space appropriately in each writer (e.g. ~ in LaTeX).
5890 * The '--sanitize-html' option now examines URIs in markdown links
5891 and images, and in HTML href and src attributes. If the URI scheme
5892 is not on a whitelist of safe schemes, it is rejected. The main point
5893 is to prevent cross-site scripting attacks using 'javascript:' URIs.
5894 See http://www.mail-archive.com/markdown-discuss@six.pairlist.net/msg01186.html
5895 and http://ha.ckers.org/xss.html. Resolves Issue #62.
5899 + Override Text.XHtml's stringToHtml function,
5900 so that characters below 0xff are not converted to numerical entity
5901 references. Also convert '\160' to " ". This should aid readability
5902 and editability of the HTML source. It does presuppose that the HTML
5903 will be served as UTF-8.
5904 + In code blocks, change leading newlines to <br /> tags.
5905 (Some browsers ignore them.) Resolves Issue #71.
5906 See http://six.pairlist.net/pipermail/markdown-discuss/2008-May/001297.html
5907 + Use style attributes rather than css classes for strikethrough
5908 and ordered list styles. This works better when fragments, rather than
5909 standalone documents, are generated.
5911 * HTML reader: Count anything that isn't a known block (HTML) tag as an
5912 inline tag (rather than the other way around). Added "html", "head", and
5913 "body" to list of block tags. Resolves Issue #66, allowing
5914 <lj> to count as an inline tag.
5916 * RTF writer: Fixed bug. Extra spaces were being printed after emphasized,
5917 boldface, and other inline elements. Resolves Issue #64.
5919 * LaTeX reader: improvements in raw LaTeX parsing.
5921 + "loose punctuation" (like {}) parsed as Space
5922 + Para elements must contain more than Str "" and Space elements
5923 + Added parser for "\ignore" command used in literate haskell.
5924 + Reworked unknownCommand and rawLaTeXInline: when not in "parse raw"
5925 mode, these parsers simply strip off the command part and allow
5926 the arguments to be parsed normally. So, for example,
5927 \blorg{\emph{hi}} will be parsed as Emph "hi" rather than
5929 + Parse lhs "code" environments as verbatim.
5930 Refactored parsers for verbatim environments.
5931 + Removed specialEnvironment parser.
5932 + parse '{}', if present, after \textless, \textgreater,
5933 \textbar, \textbackslash, \ldots.
5934 + Parse unescaped special characters verbatim rather than
5935 changing them to spaces. This way arguments of unknown
5936 commands will appear in braces.
5938 * Parse raw ConTeXt environments as TeX in markdown reader.
5941 * Moved BlockWrapper and wrappedBlocksToDoc from ConTeXt writer to Shared.
5943 * Made some structural changes to parsing of raw LaTeX environments.
5944 Previously there was a special block parser for LaTeX environments.
5945 It returned a Para element containing the raw TeX inline. This has
5946 been removed, and the raw LaTeX environment parser is now used in the
5947 rawLaTeXInline parser. The effect is exactly the same, except that we
5948 can now handle consecutive LaTeX and ConTeXt environments not separated
5949 by spaces. This new flexibility is required by the example in
5952 \placeformula \startformula
5956 API change: The LaTeX reader now exports rawLaTeXEnvironment' (which
5957 returns a string) rather than rawLaTeXEnvironment (which returns a block
5958 element). This is more likely to be useful in other applications.
5960 * Use \textsubscr instead of \textsubscript for LaTeX subscript macro.
5961 \textsubscript conflicts with a definition in the memoir class.
5964 * Removed unneeded space after "\\item" in LaTeX and ConTeXt output.
5966 * Added amsmath package to default LaTeX header. Resolves Issue #48.
5968 * Added \setupitemize[autointro] to ConTeXt header, to prevent orphaned
5969 list introduction lines.
5971 * Changed Float to Double in definition of Table element.
5972 (Double is more efficient in GHC.)
5974 * Fixed bug in Markdown parser: regular $s triggering math mode.
5975 For example: "shoes ($20) and socks ($5)."
5976 The fix consists in two new restrictions:
5978 + the $ that ends a math span may not be directly followed by a digit.
5979 + no blank lines may be included within a math span.
5981 Thanks to Joseph Reagle for noticing the bug.
5983 * Use Data.List's 'intercalate' instead of custom 'joinWithSep'.
5984 Removed 'joinWithSep' from Text.Pandoc.Shared.
5986 * Updated README and man pages. Acknowledge contributors in README.
5987 Added paragraph to README about producing S5 with separate CSS/javascript.
5989 * Updated INSTALL to reflect new build system (including configuration
5990 options) and document new dependencies. Added note to INSTALL that
5991 Cabal >= 1.2 is required for build. Resolves Issue #74.
5993 * Fixed some haddock documentation errors.
5995 * Small fix to markdown2pdf man page: only input needs to be piped through iconv.
5997pandoc (0.46) unstable; urgency=low
6001 * Made -H, -A, and -B options cumulative: if they are specified
6002 multiple times, multiple files will be included.
6004 * Added optional HTML sanitization using a whitelist.
6005 When this option is specified (--sanitize-html on the command line),
6006 unsafe HTML tags will be replaced by HTML comments, and unsafe HTML
6007 attributes will be removed. This option should be especially useful
6008 for those who want to use pandoc libraries in web applications, where
6009 users will provide the input.
6011 + Main.hs: Added --sanitize-html option.
6013 + Text.Pandoc.Shared: Added stateSanitizeHTML to ParserState.
6015 + Text.Pandoc.Readers.HTML:
6016 - Added whitelists of sanitaryTags and sanitaryAttributes.
6017 - Added parsers to check these lists (and state) to see if a given
6018 tag or attribute should be counted unsafe.
6019 - Modified anyHtmlTag and anyHtmlEndTag to replace unsafe tags
6021 - Modified htmlAttribute to remove unsafe attributes.
6022 - Modified htmlScript and htmlStyle to remove these elements if
6025 + Modified README and man pages to document new option.
6027 * Improved handling of email addresses in markdown and reStructuredText.
6028 Consolidated uri and email address parsers. (Resolves Issue #37.)
6030 + New emailAddress and uri parsers in Text.Pandoc.Shared.
6031 - uri parser uses parseURI from Network.URI.
6032 - emailAddress parser properly handles email addresses with periods
6035 + Removed uri and emailAddress parsers from Text.Pandoc.Readers.RST
6036 and Text.Pandoc.Readers.Markdown.
6040 + Fixed emph parser so that "*hi **there***" is parsed as a Strong
6041 nested in an Emph. (A '*' is only recognized as the end of the
6042 emphasis if it's not the beginning of a strong emphasis.)
6044 + Moved blockQuote parser before list parsers for performance.
6046 + Modified 'source' parser to allow backslash-escapes in URLs.
6047 So, for example, [my](/url\(1\)) yields a link to /url(1).
6050 + Disallowed links within links. (Resolves Issue #35.)
6051 - Replaced inlinesInBalanced with inlinesInBalancedBrackets, which
6052 instead of hard-coding the inline parser takes an inline parser
6054 - Modified reference and inlineNote to use inlinesInBalancedBrackets.
6055 - Removed unneeded inlineString function.
6056 - Added inlineNonLink parser, which is now used in the definition of
6058 - Added inlineParsers list and redefined inline and inlineNonLink parsers
6060 - Added failIfLink parser.
6062 + Better handling of parentheses in URLs and quotation marks in titles.
6063 - 'source' parser first tries to parse URL with balanced parentheses;
6064 if that doesn't work, it tries to parse everything beginning with
6065 '(' and ending with ')'.
6066 - source parser now uses an auxiliary function source'.
6067 - linkTitle parser simplified and improved, under assumption that it
6068 will be called in context of source'.
6070 + Make 'block' conditional on strictness state, instead of using
6071 failIfStrict in block parsers. Use a different ordering of parsers
6072 in strict mode (raw HTML block before paragraph) for performance.
6073 In non-strict mode use rawHtmlBlocks instead of htmlBlock.
6074 Simplified htmlBlock, since we know it's only called in strict
6077 + Improved handling of raw HTML. (Resolves Issue #36.)
6078 - Tags that can be either block or inline (e.g. <ins>) should
6079 be treated as block when appropriate and as inline when
6080 appropriate. Thus, for example,
6082 should be treated as a paragraph with inline <ins> tags, while
6086 should be treated as a paragraph within <ins> tags.
6087 - Moved htmlBlock after para in list of block parsers. This ensures
6088 that tags that can be either block or inline get parsed as inline
6090 - Modified rawHtmlInline' so that block elements aren't treated as
6092 - Modified para parser so that paragraphs containing only HTML tags and
6093 blank space are not allowed. Treat these as raw HTML blocks instead.
6095 + Fixed bug wherein HTML preceding a code block could cause it to
6096 be parsed as a paragraph. The problem is that the HTML parser
6097 used to eat all blank space after an HTML block, including the
6098 indentation of the code block. (Resolves Issue #39.)
6099 - In Text.Pandoc.Readers.HTML, removed parsing of following space
6101 - In Text.Pandoc.Readers.Markdown, modified rawHtmlBlocks so that
6102 indentation is eaten *only* on the first line after the HTML
6103 block. This means that in
6107 the foo won't be treated as a code block, but in
6113 it will. This seems the right approach for least surprise.
6117 + Fixed bug in parsing explicit links (resolves Issue #44).
6118 The problem was that we were looking for inlines until a '<' character
6119 signaled the start of the URL; so, if you hit a reference-style link,
6120 it would keep looking til the end of the document. Fix: change
6121 inline => (notFollowedBy (char '`') >> inline). Note that this won't
6122 allow code inlines in links, but these aren't allowed in resT anyway.
6124 + Cleaned up parsing of reference names in key blocks and links.
6125 Allow nonquoted reference links to contain isolated '.', '-', '_', so
6126 so that strings like 'a_b_' count as links.
6128 + Removed unnecessary check for following link in str.
6129 This is unnecessary now that link is above str in the definition of
6134 + Modified rawHtmlBlock so it parses </html> and </body> tags.
6135 This allows these tags to be handled correctly in Markdown.
6136 HTML reader now uses rawHtmlBlock', which excludes </html> and </body>,
6137 since these are handled in parseHtml. (Resolves Issue #38.)
6139 + Fixed bug (emph parser was looking for `<IT>` tag, not `<I>`).
6141 + Don't interpret contents of style tags as markdown.
6142 (Resolves Issue #40.)
6143 - Added htmlStyle, analagous to htmlScript.
6144 - Use htmlStyle in htmlBlockElement and rawHtmlInline.
6145 - Moved "script" from the list of tags that can be either block or
6146 inline to the list of block tags.
6148 + Modified rawHtmlBlock to use anyHtmlBlockTag instead of anyHtmlTag
6149 and anyHtmlEndTag. This fixes a bug in markdown parsing, where
6150 inline tags would be included in raw HTML blocks.
6152 + Modified anyHtmlBlockTag to test for (not inline) rather than
6153 directly for block. This allows us to handle e.g. docbook in
6154 the markdown reader.
6156 * LaTeX reader: Properly recognize --parse-raw in rawLaTeXInline.
6157 Updated LaTeX reader test to use --parse-raw.
6161 + Modified rules for automatic HTML header identifiers to
6162 ensure that identifiers begin with an alphabetic character.
6163 The new rules are described in README. (Resolves Issue #33.)
6165 + Changed handling of titles in HTML writer so you don't get
6166 "titleprefix - " followed by nothing.
6168 * ConTeXt writer: Use wrappers around Doc elements to ensure proper
6169 spacing. Each block element is wrapped with either Pad or Reg.
6170 Pad'ed elements are guaranteed to have a blank line in between.
6174 + Refactored RST writer to use a record instead of a tuple for state,
6175 and to include options in state so it doesn't need to be passed as
6178 + Use an interpreted text role to render math in restructuredText.
6179 See http://www.american.edu/econ/itex2mml/mathhack.rst for the
6184 * Debian packaging changes:
6186 + Remove the empty 'include' directory in -dev package, which lintian
6188 + Bump Standarts-Version to 3.7.3.
6189 + Use new 'Homepage:' field to specify the upstream URL on suggestion of
6192 -- Recai Oktaş <roktas@debian.org> Tue, 08 Jan 2008 05:13:31 +0200
6194pandoc (0.45) unstable; urgency=low
6198 * Simplified parsing of reference keys and notes in markdown and RST
6199 readers: The Reference data structure from Text.Pandoc.Shared is no
6200 longer needed, since referenceKey and noteBlock parses return strings
6201 (as many blank lines as were occupied by the key or note) and update
6202 state themselves. getPosition and setPosition are now used to ensure
6203 that error messages will give the correct line number. This yields
6204 cleaner (and slightly faster) code, with more accurate parsing error
6207 * Added new Math inline element:
6209 + Markdown and LaTeX readers now convert TeX math into Math elements,
6211 + This allows math to be treated differently from raw TeX in output.
6212 TeX elements are no longer printed in output formats other than
6213 Markdown, LaTeX, and ConTeXt. But Math elements are always printed.
6215 * New default handling of math in writers:
6217 + New module Text.Pandoc.Readers.TeXMath exports readTeXMath, which
6218 parses raw TeX math and outputs a string of Pandoc inlines that
6219 tries to render it as far as possible using unicode characters,
6220 lapsing into literal TeX when needed.
6221 + readTeXMath is now used for default HTML output in HTML, S5, RTF,
6222 and Docbook, if no other method for displaying math in HTML is
6223 specified. Enclosing $'s are no longer printed by default.
6224 + By default, math is put inside `<span class="math">`. This way it can be
6225 distinguished from the surrounding text, e.g. put in a different
6228 * New --gladtex and --mimetex options for display of math in HTML:
6230 + If --gladtex is specified, math is output between `<eq>` tags, so
6231 it can be processed by gladTeX.
6232 + If --mimetex is specified, math is put in `<img>` tags with a link
6233 to the mimetex CGI script (or any other script that takes TeX math
6234 as input and outputs an image). The URL of the script may be
6235 specified, but defaults to /cgi-bin/mimetex.cgi.
6236 + HTMLMathMethod structure in WriterOptions keeps track of how to
6237 display math in HTML output.
6238 + Updated README with a description of the four options for displaying
6243 + Fixed bug: parser for minimized attributes should not swallow
6245 + Simplified HTML attribute parsing.
6246 + Changed parsing of code blocks in HTML reader: `<code>` tag is no
6247 longer needed. `<pre>` suffices. All HTML tags in the code block
6248 (e.g. for syntax highlighting) are skipped, because they are not
6249 portable to other output formats. A `<code>...</code>` block not
6250 surrounded by `<pre>` now counts as inline HTML, not a code block.
6251 + Remove just one leading and one trailing newline from contents of
6252 `<pre>...</pre>` in codeBlock parser.
6256 + Removed support for box-style block quotes.
6257 + Require space before title in links and references.
6258 This fixes a bug in parsing URLs like http://silly/url(withparen).
6259 + Improved and simplified setextHeader parser.
6260 + Fixed logic in smart quote parsing, adding some needed 'try'
6262 + Fixed smart quote parsing so that unicode characters 8216 and 8217
6263 are recognized as single quotes, and 8220 and 8221 as double quotes.
6267 + Fixed bug in parsing of code blocks. Previously a full tab indent
6268 was required, but RST allows code to be indented any amount.
6270 + Allow field lists to be indented.
6271 + Parse the contents of field lists instead of treating as a raw string.
6272 + Represent field lists as definition lists instead of blockquotes.
6273 + Fixed bug in which metadata would be overridden if the document
6274 contained multiple field lists.
6275 + Parse fields associated with '.. image::' blocks, and use 'alt'
6276 field, if given, for image alt and title attributes.
6280 + Modified specialChar so that '"' characters are parsed.
6281 + Fixed a bug in parsing of \[ \] math blocks (thanks to Mark Kalderon).
6285 + Changes in handling of math (see above).
6286 + Don't produce HTML for table of contents if there are
6287 no headers. (This would be an empty list, which is invalid XHTML.)
6291 + Don't print title attribute if title is empty. (This differs from
6292 the behavior of Markdown.pl, and agrees with PHP Markdown. But John
6293 Gruber has indicated that he prefers this behavior.) Adjusted test
6295 + Fixed incorrect line wrapping in paragraphs including hard line
6296 breaks. Resolves Issue #25.
6297 + Fixed bug in markdown writer: If an ordered list item began with
6298 a marker greater than 3 characters in width, and the item took more
6299 than one line, it would appear on the line after the list marker,
6306 Now it works as follows:
6313 + Fixed bug in RST writer's handling of ordered lists. Previously,
6314 list items with multiple lines would not always line up with
6315 single-line list items. Now, list items are nested the length of
6316 the list marker + 1. This looks better and ensures that list items
6317 all line up. (Note that list markers are padded to the length of
6318 the longest list marker in the series.)
6319 + Use 3-space indent for unordered lists.
6320 + If label for a link reference contains a colon, surround it by `
6321 signs so it won't be interpreted as the end of the link label.
6325 + Cleaner output for footnotes. Footnotes now always begin on a new
6326 line, and the final } is on a line by itself only when it needs to
6327 be (i.e. only when the note ends with a Verbatim environment).
6328 + Added writer options to state, so state doesn't need to be passed as
6330 + Text wrapping now provided, using wrapTeXIfNeeded.
6332 * ConTeXt writer: many improvements for more idiomatic ConTeXt output
6333 (thanks to Idris Samawi Hamid for suggestions).
6335 + PrettyPrint module now used for output.
6336 + Writer options are now in state, so they don't have to be passed as
6338 + Text wrapping now provided, using wrapTeXIfNeeded.
6339 + Better treatment of footnotes: footnotes are always on lines by
6340 themselves, and the final } is on a line by itself only when
6341 it needs to be (after \stoptyping).
6342 + Use \subject, \subsubject, ... or \section, \subsection, ... for headings,
6343 depending on whether --number-sections option is selected.
6344 + Extra blank line inserted after \stopitemize
6345 + Use new, "official" definition of blockquote environment. Also, use
6346 blank line after \startblockquote to balance blank line at the end.
6347 + Both itemized and enumerated lists are now generated using
6348 \start-stopitemize, with appropriate options. Removed definitions
6349 of ltxenum and ltxitem, which are no longer needed. Provided
6350 defaults for itemized lists in the preamble. State keeps track of
6351 ordered list level, so that when default numbering is specified,
6352 the appropriate scheme can be used.
6353 + Changed \useurl to \useURL.
6354 + Changed link color from red to blue.
6355 + Use \subsubsubsubsection etc., since these are supported
6356 (up to at least sub x 5).
6358 * Text.Pandoc.Shared:
6360 + Save and restore position in parseFromString, so that accurate
6361 error messages can be given.
6362 + Improved efficiency of romanNumeral parser.
6363 + Added wrappedTeX and wrapTeXIfNeeded functions. These ensure
6364 that footnotes occur on lines by themselves (to make them
6365 easier to see and move) and do not screw up line wrapping.
6367 * Text.Pandoc.UTF8: modified fromUTF8 to strip out the BOM
6368 if present. Windows Notepad and other applications insert a
6369 BOM at the beginning of a UTF8 file.
6371 * Main.hs (tabFilter): Treat '\r' at end of line as newline (in
6372 addition to "\r\n" and '\n').
6374 * Added a writer option for wrapped text and a command-line option
6375 '--no-wrap', which disables text wrapping and minimizes whitespace
6376 in HTML. (Resolves Issue #26.)
6378 + Added support for '--no-wrap' to Main.hs.
6379 + Added wrapIfNeeded function to Text.Pandoc.Shared.
6380 + Use wrapIfNeeded instead of wrapped in the RST, Man, Docbook, and
6382 + Added render and renderFragment helpers to HTML writer.
6384 * Modified html2markdown to run tidy only if the HTML cannot be
6385 parsed. Previously html2markdown piped all input through tidy
6386 before passing it to pandoc. This caused problems on certain pages
6387 (e.g. http://daringfireball.com/markdown) which have well-formed
6388 XHTML that causes tidy to choke. The solution is to pipe through
6389 tidy only if pandoc cannot parse the input by itself. This means
6390 that a temp file is now always used, even when input comes from a
6391 local file or standard input.
6393 * Removed 'version' constant from Main.hs; added 'pandocVersion' to
6394 Text.Pandoc library.
6398 + Modified to work with GHC 6.8 and Cabal configurations. (For GHC
6399 6.8, pretty and containers must be added to Build-Depends, and it
6400 is desirable to use the -O2 compiler option.) Cabal configurations
6401 allows one to select options depending on the compiler version.
6402 For GHC 6.6, the splitBase option can be disabled.
6403 + pandoc.cabal.ghc66 is provided for users with older versions of
6404 Cabal, which do not support configurations.
6405 + Use Ghc-Prof-Options to ensure that '-auto-all' is used when
6406 '--enable-(executable|library)-profiling' is specified. Updated
6407 PROFILING instructions accordingly.
6411 + Makefile now checks GHC version. If GHC is 6.6, pandoc.cabal.ghc66
6412 is copied to pandoc.cabal, and the old pandoc.cabal is copied
6413 to pandoc.cabal.orig. Otherwise, pandoc.cabal is copied to
6414 pandoc.cabal.orig but otherwise unmodified. This way, the Makefile
6415 will work properly with either GHC 6.6 or 6.8.
6416 + Changed BUILDCONF to point to dist/setup-config, not .setup-config.
6417 This is where current versions of Cabal put it.
6418 + Added $(BUILDCMD) target, so setup doesn't get compiled every time.
6419 + Removed dependency of templates on ./templates, which is circular
6420 now that templates is a subdirectory of the top-level.
6422 * MacPorts Portfile:
6424 + Modified to install the pandoc library in addition to programs.
6425 + Installation must be done manually rather than using Makefile's
6427 + Note that the library must be registered in the activate phase,
6428 after the library files have been copied out of the destroot.
6429 Cabal generates a 'register.sh' script that will do this.
6431 * debian/control: Added libghc6-network-dev, libghc6-xhtml-dev, and
6432 libghc6-mtl-dev as dependencies for libghc6-pandoc-dev.
6435 * debian/rules: Converted to UTF-8.
6437 * Changed pandoc home page to http://johnmacfarlane.net/pandoc/.
6439 * Updated ASCIIMathML.js to latest version.
6441 * Directory structure:
6443 + Moved everything from src into the top-level directory.
6444 + Changed references to source directory in Makefile and
6446 + Moved ASCIIMathML.js, headers, and ui into templates directory.
6447 + Modified fillTemplates.pl to reflect new paths.
6451 * Makefile: Fixed the issue of having two copies of the library
6452 documentation under some usage scenarios.
6454 * Replaced 'ghc' with '$(GHC)' in Makefile, and made GHC
6455 and GHC_PKG configurable through the environment, to support
6456 unusual ghc installations. For example:
6457 GHC=/opt/ghc/bin/ghc GHC_PKG=/opt/ghc/bin/ghc-pkg make
6459 -- Recai Oktaş <roktas@debian.org> Sun, 07 Oct 2007 20:51:43 +0300
6461pandoc (0.44) unstable; urgency=low
6465 * Fixed bug in HTML writer: when --toc was used, anchors were put around
6466 headers, which is invalid XHTML (block content within inline element).
6467 Now the anchors are put inside the header tags. Resolves Issue #23.
6469 * Added xmlns attribute to html element in html writer tests.
6470 This attribute is added by more recent versions of the
6471 xhtml library (>= 3000), and is required for valid XHTML.
6475 * On configure, compile 'Setup.hs' to 'setup' and use 'setup' as the build
6476 command instead of 'runhaskell', which, on some platforms (such as s390,
6477 alpha, m68k), throws the following error:
6479 runhaskell Setup.hs configure --prefix=/usr
6480 ghc-6.6.1: not built for interactive use
6482 This causes a serious FTBFS bug. Closes: #440668.
6484 -- Recai Oktaş <roktas@debian.org> Mon, 03 Sep 2007 18:24:02 +0300
6486pandoc (0.43) unstable; urgency=low
6490 * The focus of this release is performance. The markdown parser
6491 is about five times faster than in 0.42, based on benchmarks
6492 with the TextMate manual.
6494 * Main.hs: Replaced CRFilter and tabFilter with single function
6495 tabFilter, which operates on the whole string rather than breaking
6496 it into lines, and handles dos-style line-endings as well as tabs.
6498 * Added separate LaTeX reader and native reader tests; removed
6501 * Text.Pandoc.Shared:
6503 + Removed tabsToSpaces and tabsInLine (they were used only in Main.hs.)
6504 + General code cleanup (to elimante warnings when compiling with -Wall.)
6505 + Added 'wrapped' function, which helps wrap text into paragraphs,
6506 using the prettyprinting library.
6507 + Rewrote charsInBalanced and charsInBalanced'.
6508 - Documented restriction: open and close must be distinct characters.
6509 - Rearranged options for greater efficiency.
6510 - Bug fix: Changed inner call to charsInBalanced inside
6511 charsInBalanced' to charsInBalanced'.
6512 + anyLine now requires that the line end with a newline (not eof).
6513 This is a harmless assumption, since we always add newlines to the
6514 end of a block before parsing with anyLine, and it yields a 10% speed
6516 + Removed unnecessary 'try' in anyLine.
6517 + Removed unneeded 'try' from romanNumeral parser.
6518 + Use notFollowedBy instead of notFollowedBy' in charsInBalanced.
6519 + Removed unneeded 'try' in parseFromString.
6520 + Removed unneeded 'try' from stringAnyCase. (Now it behaves
6522 + Changed definition of 'enclosed' in Text.Pandoc.Shared so that
6523 'try' is not automatically applied to the 'end' parser. Added
6524 'try' in calls to 'enclosed' where needed. Slight speed increase.
6528 + Replaced individual wrapping routines in RST, Man, and Markdown
6529 writers with 'wrapped' from Text.Pandoc.Shared.
6530 + Rewrote LaTeX writer to use the prettyprinting library,
6531 so we get word wrapping, etc.
6532 + Modified latex writer tests for new latex writer using prettyprinter.
6533 + Fixed bug in LaTeX writer: autolinks would not cause
6534 '\usepackage{url}' to be put in the document header. Also, changes
6535 to state in enumerated list items would be overwritten.
6536 + In Markdown writer, escape paragraphs that begin with ordered list
6537 markers, so they don't get interpreted as ordered lists.
6539 * Text.Pandoc.Reades.LaTeX:
6541 + Fixed bug in LaTeX reader, which wrongly assumed that the roman
6542 numeral after "enum" in "setcounter" would consist entirely of
6543 "i"s. 'enumiv' is legitimate.
6544 + LaTeX command and environment names can't contain numbers.
6545 + Rearranged order of parsers in inline for slight speed improvement.
6546 + Added '`' to special characters and 'unescapedChar'.
6548 * Text.Pandoc.Readers.RST:
6550 + Removed unneeded try's in RST reader; also minor code cleanup.
6552 + Rearranged parsers in inline (doubled speed).
6554 * Text.Pandoc.Readers.Markdown:
6556 + Skip notes parsing if running in strict mode. (This yields a nice
6557 speed improvement in strict mode.)
6558 + Simplify autolink parsing code, using Network.URI to test for
6559 URIs. Added dependency on network library to debian/control and
6561 + More perspicuous definition of nonindentSpaces.
6562 + Removed unneeded 'try' in 'rawLine'.
6563 + Combined linebreak and whitespace into a new whitespace parser, to
6564 avoid unnecessary reparsing of space characters.
6565 + Removed unnecessary 'try' in 'codeBlock', 'ellipses', 'noteMarker',
6566 'multilineRow', 'dashedLine', 'rawHtmlBlocks'.
6567 + Use lookAhead in parsers for setext headers and definition lists
6568 to see if the next line begins appropriately; if not, don't waste
6569 any more time parsing.
6570 + Don't require blank lines after code block. (It's sufficient to
6571 end code block with a nonindented line.)
6572 + Changed definition of 'emph': italics with '_' must not
6573 be followed by an alphanumeric character. This is to help
6574 prevent interpretation of e.g. `[LC_TYPE]: my_type` as
6575 `[LC<em>TYPE]:my</em>type`.
6576 + Improved Markdown.pl-compatibility in referenceLink: the two parts
6577 of a reference-style link may be separated by one space, but not
6578 more... [a] [link], [not] [a link].
6579 + Fixed markdown inline code parsing so it better accords with
6580 Markdown.pl: the marker for the end of the code section is a clump
6581 of the same number of `'s with which the section began, followed
6582 by a non-` character. So, for example,
6583 ` h ``` i ` -> `<code>h ``` i</code>`.
6584 + Split 'title' into 'linkTitle' and 'referenceTitle', since the
6585 rules are slightly different.
6586 + Rewrote 'para' for greater efficiency.
6587 + Rewrote link parsers for greater efficiency.
6588 + Removed redundant 'referenceLink' in definition of inline (it's
6590 + Refactored escapeChar so it doesn't need 'try'.
6591 + Refactored hrule for performance in Markdown reader.
6592 + More intelligent rearranging of 'inline' so that most frequently
6593 used parsers are tried first.
6594 + Removed tabchar parser, as whitespace handles tabs anyway.
6596 * Text.Pandoc.CharacterReferences:
6599 + Removed unnecessary 'try's for a speed improvement.
6600 + Removed unnecessary '&' and ';' from the entity table.
6604 + Makefile: Get VERSION from cabal file, not Main.hs.
6605 + Modified MacPorts Portfile:
6607 - Build and install libraries and library documentation in
6608 addition to pandoc executable
6609 - Added template item for md5 sum in Portfile.in.
6610 - Incorporated changes from MacPorts repository (r28278).
6611 + FreeBSD port: Don't try to generate distinfo in Makefile.
6612 It can be made using 'make makesum' in FreeBSD.
6613 + Make both freebsd and macports targets depend on tarball.
6615 * Website and documentation:
6617 + Updated INSTALL instructions.
6618 + Added pandocwiki demo to website.
6619 + Removed local references to Portfile, since pandoc is now in the
6620 MacPorts repository.
6622 -- Recai Oktaş <roktas@debian.org> Sun, 02 Sep 2007 15:50:11 +0300
6624pandoc (0.42) unstable; urgency=low
6628 * Main.hs: Use utf8 conversion on the extra files loaded with
6629 the -H, -C, -B, and -A options. This fixes problems with unicode
6630 characters in these files.
6632 * Exposed Text.Pandoc.ASCIIMathML, since it is imported in
6633 Text.Pandoc.Readers.HTML and without it we get a linking error when
6638 + Added new rule for enhanced markdown ordered lists: if the list
6639 marker is a capital letter followed by a period (including a
6640 single-letter capital roman numeral), then it must be followed by
6641 at least two spaces. The point of this is to avoid accidentally
6642 treating people's initials as list markers: a paragraph might begin,
6643 "B. Russell was an English philosopher," and this shouldn't be
6644 treated as a list. Documented change in README.
6645 + Blocks that start with "p. " and a digit are no longer treated
6646 as ordered lists (it's a page number).
6647 + Added a needed 'try' to listItem.
6648 + Removed check for a following setext header in endline.
6649 A full test is too inefficient (doubles benchmark time), and the
6650 substitute we had before is not 100% accurate.
6651 + Don't use Code elements for autolinks if --strict specified.
6653 * LaTeX writer: When a footnote ends with a Verbatim environment, the
6654 close } of the footnote cannot occur on the same line or an error occurs.
6655 Fixed this by adding a newline before the closing } of every footnote.
6658 + Removed incorrect "{}" around style information in HTML tables.
6659 Column widths now work properly in HTML.
6660 + If --strict option is specified (and --toc is not), don't include
6661 identifiers in headers, for better Markdown compatibility.
6665 + Separated $(web_dest) and website targets.
6666 + In website, index.txt is now constructed from template index.txt.in.
6667 + Added freebsd target to Markefile. This creates the freebsd Makefile
6668 from Makefile.in, and creates distinfo. Removed Makefile and distinfo
6669 from the repository.
6670 + Added macport target to Makefile. Portfile is built from template
6672 + Removed OSX package targets. (Too many difficulties involving
6673 dependencies on dynamic libraries.)
6674 + More complete INSTALL instructions for all architectures.
6677 + Added a programming demo, pandocwiki.
6681 * Do not forget to close pandoc's ITP. Closes: #391666
6683 -- Recai Oktaş <roktas@debian.org> Sun, 26 Aug 2007 22:51:32 +0300
6685pandoc (0.41) unstable; urgency=low
6689 * Fixed bugs in HTML reader:
6690 + Skip material at end *only if* `</html>` is present (previously,
6691 only part of the document would be parsed if an error was
6692 found; now a proper error message is given).
6693 + Added new constant eitherBlockOrInline with elements that may
6694 count either as block-level or as inline. Modified isInline and
6695 isBlock to take this into account.
6696 + Modified rawHtmlBlock to accept any tag (even an inline tag):
6697 this is innocuous, because rawHtmlBlock is tried only if a regular
6698 inline element can't be parsed.
6699 + Added a necessary 'try' in definition of 'para'.
6701 * Fixed bug in markdown ordered list parsing. The problem was that
6702 anyOrderedListStart did not check for a space following the
6703 ordered list marker. So in 'A.B. 2007' the parser would be
6704 expecting a list item, but would not find one, causing an error.
6705 Fixed a similar bug in the RST reader. Resolves Issue #22.
6707 * Refactored RST and Markdown readers using parseFromString.
6709 * LaTeX reader will now skip anything after \end{document}.
6711 * Fixed blockquote output in markdown writer: previously, block
6712 quotes in indented contexts would be indented only in the first
6715 * Added note to INSTALL about variations in versions of the xhtml
6716 library that can lead to failed tests (thanks to Leif LeBaron).
6718 -- Recai Oktaş <roktas@debian.org> Sun, 19 Aug 2007 23:26:07 +0300
6720pandoc (0.4) unstable; urgency=low
6724 * Added two new output formats: groff man pages and ConTeXt. By
6725 default, output files with extensions ".ctx" and ".context" are
6726 assumed to be ConTeXt, and output files with single-digit extensions
6727 are assumed to be man pages.
6729 * Enhanced ordered lists (documented in README, under Lists):
6730 + The OrderedList block element now stores information about
6731 list number style, list number delimiter, and starting number.
6732 + The readers parse this information when possible.
6733 + The writers use this information to style ordered lists.
6734 + The enhancement can be disabled using the --strict option.
6736 * Added support for tables (with a new Table block element). Two kinds
6737 of tables are supported: a simple table with one-line rows, and a
6738 more complex variety with multiline rows. All output formats are
6739 supported, but only markdown tables are parsed at the moment. The
6740 syntax is documented in README.
6742 * Added support for definition lists (with a new DefinitionList block
6743 element). All output and input formats are supported. The syntax is
6744 documented in README.
6746 * Added support for superscripts and subscripts (with new Superscript
6747 and Subscript inline elements). All input and output
6748 formats. The syntax is documented in README.
6750 * Added support for strikeout (with a new Strikeout inline element).
6751 All input and output formats are supported. Thanks to Bradley Kuhn,
6752 who contributed a patch. The syntax is documented in README. Resolves
6755 * Added a --toc|--table-of-contents option. This causes an automatically
6756 generated table of contents (or an instruction that creates one) to
6757 be inserted at the beginning of the document. Not supported in S5,
6758 DocBook, or man page writers.
6760 * Modified the -m|--asciimathml option:
6762 + If an optional URL argument is provided, a link is inserted
6763 instead of the contents of the ASCIIMathML.js script.
6764 + Nothing is inserted unless the document actually contains
6767 * Removed Blank block element as unnecessary.
6769 * Removed Key and Note blocks from the Pandoc data structure. All
6770 links are now stored as explicit links, and note contents are
6771 stored with the (inline) notes.
6773 + All link Targets are now explicit (URL, title) pairs; there
6774 is no longer a 'Ref' target.
6775 + Markdown and RST parsers now need to extract data from key and
6776 note blocks and insert them into the relevant inline elements.
6777 Other parsers have been simplified, since there is no longer any need
6778 to construct separate key and note blocks.
6779 + Markdown, RST, and HTML writers need to construct lists of
6780 notes; Markdown and RST writers need to construct lists of link
6781 references (when the --reference-links option is specified); and
6782 the RST writer needs to construct a list of image substitution
6783 references. All writers have been rewritten to use the State monad
6784 when state is required.
6785 + Several functions (generateReference, keyTable,
6786 replaceReferenceLinks, replaceRefLinksBlockList, and some auxiliaries
6787 used by them) have been removed from Text.Pandoc.Shared, since
6788 they are no longer needed. New functions and data structures
6789 (Reference, isNoteBlock, isKeyBlock, isLineClump) have been
6790 added. The functions inTags, selfClosingTag, inTagsSimple, and
6791 inTagsIndented have been moved to the DocBook writer, since that
6792 is now the only module that uses them. NoteTable is now exported
6793 in Text.Pandoc.Shared.
6794 + Added stateKeys and stateNotes to ParserState; removed stateKeyBlocks,
6795 stateKeysUsed, stateNoteBlocks, stateNoteIdentifiers, stateInlineLinks.
6796 + Added writerNotes and writerReferenceLinks to WriterOptions.
6798 * Added Text.Pandoc module that exports basic readers, writers,
6799 definitions, and utility functions. This should export everything
6800 needed for most uses of Pandoc libraries. The haddock documentation
6801 includes a short example program.
6803 * Text.Pandoc.ASCIIMathML is no longer an exported module.
6805 * Added Text.Pandoc.Blocks module to help in printing markdown
6806 and RST tables. This module provides functions for working with
6807 fixed-width blocks of text--e.g., placing them side by side, as
6810 * Refactored to avoid reliance on Haskell's Text.Regex library, which
6811 (a) is slow, and (b) does not properly handle unicode. This fixed
6812 some strange bugs, e.g. in parsing S-cedilla, and improved performance.
6814 + Replaced 'gsub' with a general list function 'substitute'
6815 that does not rely on Text.Regex.
6816 + Rewrote extractTagType in HTML reader so that it doesn't use
6818 + In Markdown reader, replaced email regex test with a custom email
6819 autolink parser (autoLinkEmail). Also replaced selfClosingTag regex
6820 with a custom function isSelfClosingTag.
6821 + Modified Docbook writer so that it doesn't rely on Text.Regex for
6822 detecting 'mailto' links.
6823 + Removed escapePreservingRegex and reamped entity-handling
6824 functions in Text.Pandoc.Shared and Text.Pandoc.CharacterReferences to
6825 avoid reliance on Text.Regex (see below on character reference
6828 * Renamed Text.Pandoc.Entities as Text.Pandoc.CharacterReferences.
6830 * Changed handling of XML entities. Entities are now parsed (and unicode
6831 characters returned) in the Markdown and HTML readers, rather than being
6832 handled in the writers. In HTML and Docbook writers, UTF-8 is now used
6833 instead of entities for characters above 128. This makes the HTML and
6834 DocBook output much more readable and more easily editable.
6836 + Removed sgmlHexEntity, sgmlDecimalEntity, sgmlNamedEntity, and
6837 sgmlCharacterEntity regexes from Text.Pandoc.Shared.
6838 + Renamed escapeSGMLChar to escapeCharForXML. Added escapeStringForXML.
6839 Moved both functions to Text.Pandoc.Writers.Docbook.
6840 + Added characterReference parser to Text.Pandoc.CharacterReferences.
6841 This parses a string and return a unicode character.
6842 + Rewrote decodeCharacterReferences to use the new parser instead of
6844 + Added new charRef parser for Markdown and HTML, which replaces the
6845 old 'entity' parser. Added '&' as a special character in Markdown reader.
6846 + Modified HTML and Markdown readers to call decodeEntities on all raw
6847 strings (e.g. authors, dates, link titles), to ensure that no
6848 unprocessed entities are included in the native representation of
6849 the document. (In the HTML reader, most of this work is done by a
6850 change in extractAttributeName.)
6851 + In XML and Markdown output, escape unicode nonbreaking space as ' ',
6852 since a unicode non-breaking space is impossible to distinguish visually
6853 from a regular space. (Resolves Issue #3.)
6854 + Removed encodeEntitiesNumerical.
6855 + Use Data.Map for entityTable and (new) reverseEntityTable, for a
6856 slight performance boost over the old association list.
6857 + Removed unneeded decodeEntities from 'str' parser in HTML and
6860 * Text.Pandoc.UTF8: Renamed encodeUTF8 to toUTF8, decodeUTF8 to
6861 fromUTF8, for clarity.
6863 * Replaced old haskell98 module names replaced by hierarchical module
6864 names, e.g. List by Data.List. Removed haskell98 from dependencies
6865 in pandoc.cabal, and added mtl (needed for state monad). Substituted
6868 * Refactored and cleaned up character escaping in writers, using
6869 backslashEscapes and escapeStringUsing functions.
6871 * Instead of adding "\n\n" to the end of an input string in Main.hs,
6872 this is now done in the readers. This makes the libraries behave
6873 the way you'd expect from the pandoc program. Resolves Issue #10.
6875 * URLs and email addresses in autolinks are now typeset as Code.
6877 * In Main.hs, changed putStr to putStrLn -- mainly because MacOS X
6878 doesn't display the whole output unless there's a line ending.
6880 * Major code cleanup in all modules, for greater consistency, concision,
6885 + Fixed several bugs (extractTagType, attribute parsing).
6886 + Remove Null blocks in lists of blocks when possible.
6887 + Allow HTML comments as raw HTML inline.
6891 + Ordered list items may no longer begin with uppercase letters, or
6892 letters greater than 'n'. (This prevents first initials and page
6893 reference, e.g. 'p. 400', from being parsed as beginning lists.)
6894 Also, numbers beginning list items may no longer end with ')',
6895 which is now allowed only after letters. Note: These changes
6896 may cause documents to be parsed differently. Users should take
6898 + Changed autoLink parsing to conform better to Markdown.pl's
6899 behavior. `<google.com>` is not treated as a link, but
6900 `<http://google.com>`, `<ftp://google.com>`, and
6901 `<mailto:google@google.com>` are.
6902 + Cleaned up handling of embedded quotes in link titles. Now these are
6903 stored as a '"' character, not as '"'.
6904 + Use lookAhead parser for the 'first pass' (looking for reference keys),
6905 instead of parsing normally, then using setInput to reset input. This
6906 yields a slight performance boost.
6907 + Fixed several bugs in smart quote recognition.
6908 + Fixed bug in indentSpaces (which didn't properly handle
6909 cases with mixed spaces and tabs).
6910 + Consolidated 'text', 'special', and 'inline' into 'inline'.
6911 + Fixed bug which allowed URL and title to be separated by multiple blank
6912 lines in links and reference keys. They can be on separate lines but
6913 can't have blank lines between them.
6914 + Correctly handle bracketed text inside inline footnotes and links,using
6915 new function inlinesInBalanced. Resolves Issue #14.
6916 + Fixed bug in footnotes: links in footnotes were not being
6917 processed. Solution: three-stage parse. First, get all the
6918 reference keys and add information to state. Next, get all the
6919 notes and add information to state. (Reference keys may be needed
6920 at this stage.) Finally, parse everything else.
6921 + Replaced named constants like 'emphStart' with literals.
6922 + Removed an extra occurance of escapedChar in definition of inline.
6926 + Allow the URI in a RST hyperlink target to start on the line
6927 after the reference key.
6928 + Added 'try' in front of 'string', where needed, or used a different
6929 parser. This fixes a bug where ````` would not be correctly parsed as
6931 + Fixed slow performance in parsing inline literals in RST reader. The
6932 problem was that ``#`` was seen by 'inline' as a potential link or image.
6933 Fix: inserted 'notFollowedBy (char '`')' in link parsers.
6935 + Use lookAhead instead of getInput/setInput in RST reader. Removed
6936 unneeded getState call, since lookAhead automatically saves and
6937 restores the parser state.
6938 + Allow hyperlink target URIs to be split over multiple lines, and
6939 to start on the line after the reference. Resolves Issue #7.
6940 + Fixed handling of autolinks.
6944 + Replaced 'choice [(try (string ...), ...]' idiom with 'oneOfStrings',
6946 + Added clauses for tilde and caret. Tilde is \ensuremath{\sim}, and
6947 caret is \^{}, not \^ as before.
6948 + Added parsing for \url.
6949 + Parse \texttt{} as code, provided there's nothing fancy inside.
6953 + Modified HTML writer to use the Text.XHtml library. This results
6954 in cleaner, faster code, and it makes it easier to use Pandoc in
6955 other projects, like wikis, which use Text.XHtml. Two functions are
6956 now provided, writeHtml and writeHtmlString: the former outputs an
6957 Html structure, the latter a rendered string. The S5 writer is also
6958 changed, in parallel ways (writeS5, writeS5String).
6959 + The Html header is now written programmatically, so it has been
6960 removed from the 'headers' directory. The S5 header is still
6961 needed, but the doctype and some of the meta declarations have
6962 been removed, since they are written programatically. This change
6963 introduces a new dependency on the xhtml package.
6964 + Fixed two bugs in email obfuscation involving improper escaping
6965 of '&' in the `<noscript>` section and in `--strict` mode. Resolves
6967 + Fixed another bug in email obfuscation: If the text to be obfuscated
6968 contains an entity, this needs to be decoded before obfuscation.
6969 Thanks to thsutton for the patch. Resolves Issue #15.
6970 + Changed the way the backlink is displayed in HTML footnotes.
6971 Instead of appearing on a line by itself, it now generally
6972 appears on the last line of the note. (Exception: when the
6973 note does not end with a Plain or Para block.) This saves space
6975 + Added automatic unique identifiers to headers:
6976 - The identifier is derived from the header via a scheme
6977 documented in README.
6978 - WriterState now includes a list of header identifiers and a table
6979 of contents in addition to notes.
6980 - The function uniqueIdentifiers creates a list of unique identifiers
6981 from a list of inline lists (e.g. headers).
6982 - This list is part of WriterState and gets consumed by blockToHtml
6983 each time a header is encountered.
6984 + Include CSS for .strikethrough class in header only if strikethrough
6985 text appears in the document.
6986 + If the 'strict' option is specified, elements that do not appear in
6987 standard markdown (like definition lists) are passed through as
6989 + Simplified treatment of autolinks, using pattern matching instead of
6994 + Links in markdown output are now printed as inline links by default,
6995 rather than reference links. A --reference-links option has been added
6996 that forces links to be printed as reference links. Resolves Issue #4.
6997 + Use autolinks when possible. Instead of `[site.com](site.com)`,
7002 + Rewrote to use the State monad. The preamble now includes only those
7003 packages that are actually required, given the document's content.
7004 Thus, for example, if strikeout is not used, ulem is not required.
7005 Modified LaTeXHeader accordingly.
7006 + Modified LaTeX writer to insert '\,' between consecutive quotes.
7007 + Removed unused function tableRowColumnWidths.
7008 + Simplified code for escaping special characters.
7009 + Leave extra blank line after \maketitle.
7010 + Include empty '\author{}' when no author specified to avoid LaTeX
7012 + Include fancyvrb code in header only if needed -- that is, only
7013 if there is actually code in a footnote.
7014 + Use \url{} for autolinks.
7015 + Include [mathletters] option in ucs package, so that basic unicode
7016 Greek letters will work correctly.
7018 * RST writer: Force blank line before lists, so that sublists will
7019 be handled correctly.
7021 * Docbook writer: Fixed a bug: email links with text, like
7022 [foo](me@bar.baz), were being incorrectly treated as autolinks.
7024 * Removed Text.ParserCombinators.Pandoc and moved all its functions to
7027 * Text.Pandoc.Shared:
7029 + Added defaultWriterOptions.
7030 + Added writerTableOfContents to WriterOptions.
7031 + Added writerIgnoreNotes option to WriterOptions. This is needed
7032 for processing header blocks for a table of contents, since notes on
7033 headers should not appear in the TOC.
7034 + Added prettyprinting for native Table format.
7035 + Removed some unneeded imports.
7036 + Moved escape and nullBlock parsers from
7037 Text.ParserCombinators.Pandoc, since the latter is for
7038 general-purpose parsers that don't depend on Text.Pandoc.Definition.
7039 + Moved isHeaderBlock from Text.Pandoc.Writers.HTML.
7040 + Moved Element, headerAtLeast, and hierarchicalize from Docbook
7041 writer, because HTML writer now uses these in constructing a table
7043 + Added clauses for new inline elements (Strikeout, Superscript,
7044 Subscript) to refsMatch.
7045 + Removed backslashEscape; added new functions escapeStringUsing and
7047 + Moved failIfStrict from markdown reader, since it is now used also
7049 + Added a 'try' to the definition of indentSpaces.
7050 + In definition of 'reference', added check to make sure it's not a note
7052 + Added functions: camelCaseToHyphenated, toRomanNumeral,
7053 anyOrderedListMarker, orderedListmarker, orderedListMarkers,
7054 charsInBalanced', withHorizDisplacement, romanNumeral
7055 + Fixed a bug in the anyLine parser. Previously it would parse an empty
7056 string "", but it should fail on an empty string, or we get an error
7057 when it is used inside "many" combinators.
7058 + Removed followedBy' parser, replacing it with the lookAhead parser from
7060 + Added some needed 'try's before multicharacter parsers, especially in
7062 + Removed the 'try' from the 'end' parser in 'enclosed', so that
7063 'enclosed' behaves like 'option', 'manyTill', etc.
7064 + Added lineClump parser, which parses a raw line block up to and
7065 including any following blank lines.
7066 + Renamed parseFromStr to parseFromString.
7067 + Added a 'try' to the 'end' parser in 'enclosed'. This makes errors in
7068 the use of 'enclosed' less likely. Removed some now-unnecessary 'try's
7070 + Removed unneeded 'try' in blanklines.
7071 + Removed endsWith function and rewrote calling functions to use
7073 + Added >>~ combinator.
7074 + Fixed bug in normalizeSpaces: Space:Str "":Space should compress to
7077 * Refactored runtests.pl; added separate tests for tables.
7081 + Added -asxhtml flag to tidy in html2markdown. This will
7082 perhaps help the parser, which expects closing tags.
7083 + Modified markdown2pdf to run pdflatex a second time if --toc or
7084 --table-of-contents was specified; otherwise the table of
7085 contents won't appear.
7086 + Modified markdown2pdf to print a helpful message if the 'ulem'
7087 LaTeX package is required and not found.
7089 * Changes to build process:
7091 + Dropped support for compilation with GHC 6.4. GHC 6.6 or higher
7093 + Removed cabalize and Pandoc.cabal.in. The repository now contains
7094 pandoc.cabal itself.
7095 + Pandoc.cabal has been changed to pandoc.cabal, because HackageDB
7096 likes the cabal file to have the same name as the tarball.
7097 + Expanded and revised the package description in pandoc.cabal.
7098 Revised the package synopsis.
7099 + The tarball built by 'make tarball' now contains files built from
7100 templates (including man pages and shell scripts), so pandoc can
7101 be built directly using Cabal tools, without preprocessing.
7102 + Executable binaries are now stripped before installing.
7103 + Man pages are now generated from markdown sources, using pandoc's
7105 + Use HTML version of README (instead of RTF) in Mac OS X installer.
7106 + Instead of testing for the existence of a pandoc symlink in build-exec,
7111 + Updated README and man pages with information on new features.
7112 + Updated INSTALL instructions with some useful clarifications and
7114 + Updated web content.
7116 * Added FreeBSD port.
7122 + Changed pandoc's Build-Depends to include libghc6-mtl-dev and
7123 libghc6-xhtml-dev. Removed libghc6-html-dev.
7124 + Suggest texlive-latex-recommended | tetex-extra instead of
7125 tetex-bin. This brings in fancyvrb and unicode support.
7127 -- Recai Oktaş <roktas@debian.org> Tue, 16 Jan 2007 00:37:21 +0200
7129pandoc (0.3) unstable; urgency=low
7133 * Changes in pandoc options:
7135 + Allow options to follow or precede arguments.
7136 + Changed '--smartypants' to '--smart' and adjusted symbols accordingly.
7137 + Added '--strict' option.
7138 + Added '-o/--output' option.
7139 + Added '--dump-args' and '--ignore-args' options (for use in wrappers).
7140 + Modified '-v' and '-h' output to go to STDERR, not STDOUT, and return
7141 error conditions. This is helpful for writing wrappers.
7142 + Added copyright message to '-v' output, modeled after FSF messages.
7143 + Reformatted usage message so that it doesn't wrap illegibly.
7144 + Removed extra blanks after '-h' and '-D' output.
7146 * Added docbook writer.
7148 * Added implicit setting of default input and output format based
7149 on input and output filename extensions. These defaults are
7150 overridden if explicit input and output formats are specified using
7151 '-t', '-f', '-r', or '-w' options. Documented in pandoc(1) man page
7154 * Allow ordered list items to begin with (single) letters, as well
7155 as numbers. The list item marker may now be terminated either by
7156 '.' or by ')'. This extension to standard markdown is documented
7159 * Revised footnote syntax. (See README for full details.) The
7160 '[^1]' format now standard in markdown extensions is supported,
7161 as are inline footnotes with this syntax: '^[My note.]'.
7162 The earlier footnote syntax '^(1)' is no longer supported.
7164 * Improved HTML representation of footnotes. All footnotes
7165 are now auto-numbered and appear in an ordered list at the
7166 end of the HTML document. Since the default appearance is now
7167 acceptable, the old footnote styles have been removed from the
7172 + Fixed a serious bug in the markdown, LaTeX, and RST readers.
7173 These readers ran 'runParser' on processed chunks of text to handle
7174 embedded block lists in lists and quotation blocks. But then
7175 any changes made to the parser state in these chunks was lost,
7176 as the state is local to the parser. So, for example, footnotes
7177 didn't work in quotes or list items. The fix: instead of calling
7178 runParser on some raw text, use setInput to make it the input, then
7179 parse it, then use setInput to restore the input to what it was
7180 before. This is shorter and more elegant, and it fixes the problem.
7181 + Fixed bug in notFollowedBy' combinator (adding 'try' before
7182 'parser'). Adjusted code that uses this combinator accordingly.
7183 + Fixed bug in RTF writer that caused improper indentation on
7184 footnotes occurring in indented blocks like lists.
7185 + Fixed parsing of metadata in LaTeX reader. Now the title, author,
7186 and date are parsed correctly. Everything else in the preamble
7188 + Modified escapedChar in LaTeX reader to allow a '\' at the end of a
7189 line to count as escaped whitespace.
7190 + Modified LaTeX reader to produce inline links rather than reference
7191 links. Otherwise, links in footnotes aren't handled properly.
7192 + Fixed handling of titles in links in Markdown reader, so that
7193 embedded quotation marks are now handled properly.
7194 + Fixed Markdown reader's handling of embedded brackets in links.
7195 + Fixed Markdown reader so that it only parses bracketed material
7196 as a reference link if there is actually a corresponding key.
7197 + Revised inline code parsing in Markdown reader to conform to
7198 markdown standard. Now any number of `s can begin inline code,
7199 which will end with the same number of `s. For example, to
7200 have two backticks as code, write ``` `` ```. Modified Markdown
7202 + Fixed bug in text-wrapping routine in Markdown and RST writers.
7203 Now LineBreaks no longer cause wrapping problems.
7204 + Supported hexadecimal numerical entity references as well as
7206 + Fixed bug in Markdown reader's handling of underscores and other
7207 inline formatting markers inside reference labels: for example,
7208 in '[A_B]: /url/a_b', the material between underscores was being
7209 parsed as emphasized inlines.
7210 + Changed Markdown reader's handling of backslash escapes so that
7211 only non-alphanumeric characters can be escaped. Strict mode
7212 follows Markdown.pl in only allowing a select group of punctuation
7213 characters to be escaped.
7214 + Modified HTML reader to skip a newline following a `<br>` tag.
7215 Otherwise the newline will be treated as a space at the beginning
7218 * Made handling of code blocks more consistent. Previously, some
7219 readers allowed trailing newlines, while others stripped them.
7220 Now, all readers strip trailing newlines in code blocks. Writers
7221 insert a newline at the end of code blocks as needed.
7223 * Modified readers to make spacing at the end of output more consistent.
7225 * Minor improvements to LaTeX reader:
7227 + '\thanks' now treated like a footnote.
7228 + Simplified parsing of LaTeX command arguments and options.
7229 commandArgs now returns a list of arguments OR options (in
7230 whatever order they appear). The brackets are included, and
7231 a new stripFirstAndLast function is provided to strip them off
7232 when needed. This fixes a problem in dealing with \newcommand
7233 and \newenvironment.
7235 * Revised RTF writer:
7237 + Default font is now Helvetica.
7238 + An '\f0' is added to each '\pard', so that font resizing works
7241 * Moved handling of "smart typography" from the writers to the Markdown
7242 and LaTeX readers. This allows great simplification of the writers
7243 and more accurate smart quotes, dashes, and ellipses. DocBook can
7244 now use `<quote>`. The '--smart' option now toggles an option in
7245 the parser state rather than a writer option. Several new kinds
7246 of inline elements have been added: Quoted, Ellipses, Apostrophe,
7249 * Changes in HTML writer:
7251 + Include title block in header even when title is null.
7252 + Made javascript obfuscation of emails even more obfuscatory,
7253 by combining it with entity obfuscation.
7255 * Changed default ASCIIMathML text color to black.
7259 + Added --strip-trailing-cr option to diff in runtests.pl, for
7260 compatibility with Windows.
7261 + Added regression tests with footnotes in quote blocks and lists.
7265 + osx-pkg target creates a Mac OS X package (directory). New osx
7266 directory contains files needed for construction of the package.
7267 + osx-dmg target creates a compressed disk image containing the package.
7268 + win-pkg target creates Windows binary package.
7269 + tarball target creates distribution source tarball.
7270 + website target generates pandoc's website automatically, including
7271 demos. New 'web' directory containts files needed for construction
7272 of the website (which will be created as the 'pandoc' subdirectory
7274 + Makefile checks to see if we're running Windows/Cygwin; if so,
7275 a '.exe' extension is added to each executable in EXECS.
7277 * Removed all wrappers except markdown2pdf and html2markdown.
7279 * Added new wrapper hsmarkdown, to be used as a drop-in replacement
7280 for Markdown.pl. hsmarkdown calls pandoc with the '--strict'
7281 option and disables other options.
7283 * Added code to html2markdown that tries to determine the character
7284 encoding of an HTML file, by parsing the "Content-type" meta tag.
7286 + If the encoding can't be determined, then if the content is local,
7287 the local encoding is used; if it comes from a URL, UTF-8 is used
7289 + If input is from STDIN, don't try to determine character encoding.
7290 + Encoding can be specified explicitly using '-e' option.
7292 * Improved warning messages in wrappers:
7294 + Print warning if iconv not available
7295 + More user-friendly error messages in markdown2pdf, when
7300 + Renamed 'Text/Pandoc/HtmlEntities' module to
7301 'Text/Pandoc/Entities'. Also changed function names so as
7302 not to be HTML-specific.
7303 + Refactored SGML string escaping functions from HTML and Docbook
7304 writers into Text/Pandoc/Shared. (escapeSGML, stringToSGML)
7305 + Removed 'BlockQuoteContext' from ParserContext, as it isn't
7307 + Removed splitBySpace and replaced it with a general, polymorphic
7309 + Refactored LaTeX reader for clarity (added isArg function).
7310 + Converted some CR's to LF's in src/ui/default/print.css.
7311 + Added license text to top of source files.
7312 + Added module data for haddock to source files.
7313 + Reformatted code for consistency.
7315 * Rewrote documentation and man pages. Split README into INSTALL
7318 * Split LICENSE into COPYING and COPYRIGHT.
7320 * Removed TODO, since we now maintain ToDo on the wiki.
7322 * Made COPYRIGHT in top level a symlink to debian/copyright, to avoid
7327 * Revamped build process to conform to debian standards and created
7328 a proper debian package. Closes: #391666.
7330 * Modified build process to support GHC 6.6.
7332 + The package can still be compiled using GHC 6.4.2, though because
7333 of dependencies the "make deb" target works only with GHC 6.6+.
7334 + The script 'cabalize' is used to create an appropriate
7335 'Pandoc.cabal' from 'Pandoc.cabal.in', depending on the GHC and
7338 * Refactored template processing (fillTemplates.pl).
7340 * Modified wrapper scripts to make them more robust and portable.
7341 To avoid code duplication and ensure consistency, wrappers are
7342 generated via a templating system from templates in src/wrappers.
7344 + Wrappers now accept multiple filenames, when appropriate.
7345 + Spaces and tabs allowed in filenames.
7346 + getopts shell builtin is used for portable option parsing.
7347 + Improved html2markdown's web grabber code, making it more robust,
7348 configurable and verbose. Added '-e', '-g' options.
7350 -- Recai Oktaş <roktas@debian.org> Fri, 05 Jan 2007 09:41:19 +0200
7352pandoc (0.2) unstable; urgency=low
7354 * Fixed unicode/utf-8 translation
7356 -- John MacFarlane <jgm@berkeley.edu> Mon, 14 Aug 2006 00:00:00 -0400
7358pandoc (0.1) unstable; urgency=low
7360 * Initial creation of debian package
7362 -- John MacFarlane <jgm@berkeley.edu> Mon, 14 Aug 2006 00:00:00 -0400
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list