5 * Support for citations using Andrea Rossato's `citeproc-hs` 0.3.
6 You can now write, for example,
8 Water is wet [see @doe99, pp. 33-35; also @smith04, ch. 1].
10 and, when you process your document using `pandoc`, specifying
11 a citation style using `--csl` and a bibliography using `--bibliography`,
12 the citation will be replaced by an appropriately formatted
13 citation, and a list of works cited will be added to the end
16 This means that you can switch effortlessly between different citation
17 and bibliography styles, including footnote, numerical, and author-date
18 formats. The bibliography can be in any of the following formats: MODS,
19 BibTeX, BibLaTeX, RIS, EndNote, EndNote XML, ISI, MEDLINE, Copac, or JSON.
20 See the README for further details.
22 Citations are supported in the markdown reader, using a special
23 syntax, and in the LaTeX reader, using natbib or biblatex syntax.
24 (Thanks to Nathan Gass for the natbib and biblatex support.)
26 * New `textile` reader and writer. Thanks to Paul Rivier for contributing
27 the `textile` reader, an almost complete implementation of the textile
28 syntax used by the ruby [RedCloth library](http://redcloth.org/textile).
31 * New `org` writer, for Emacs Org-mode, contributed by Puneeth Chaganti.
33 * New `json` reader and writer, for reading and writing a JSON
34 representation of the native Pandoc AST. These are much faster
35 than the `native` reader and writer, and should be used for
36 serializing Pandoc to text. To convert between the JSON representation
37 and native Pandoc, use `encodeJSON` and `decodeJSON` from
40 * A new `jsonFilter` function in `Text.Pandoc` makes it easy
41 to write scripts that transform a JSON-encoded pandoc document.
44 -- removelinks.hs - removes links from document
46 main = interact $ jsonFilter $ bottomUp removeLink
47 where removeLink (Link xs _) = Emph xs
50 To use this to remove links while translating markdown to LaTeX:
52 pandoc -t json | runghc removelinks.hs | pandoc -f json -t latex
54 * Attributes are now allowed in inline `Code` elements, for example:
56 In this code, `ulist ! [theclass "special"] << elts`{.haskell} is...
58 The attribute syntax is the same as for delimited code blocks.
59 `Code` inline has an extra argument place for attributes, just like
60 `CodeBlock`. Inline code will be highlighted in HTML output, if pandoc
61 is compiled with highlighting support. Resolves Issue #119.
63 * New `RawBlock` and `RawInline` elements (replacing `RawHtml`,
64 `HtmlInline`, and `TeX`) provide lots of flexibility in writing
65 scripts to transform Pandoc documents. Scripts can now change
66 how each element is rendered in each output format.
68 * You can now define LaTeX macros in markdown documents, and pandoc
69 will apply them to TeX math. For example,
71 \newcommand{\plus}[2]{#1 + #2}
74 yields `3+4`. Since the macros are applied in the reader, they
75 will work in every output format, not just LaTeX.
77 * LaTeX macros can also be used in LaTeX documents (both in math
78 and in non-math contexts).
80 * A new `--mathjax` option has been added for displaying
81 math in HTML using MathJax. Resolves issue #259.
83 * Footnotes are now supported in the RST reader. (Note, however,
84 that unlike docutils, pandoc ignores the numeral or symbol used in
85 the note; footnotes are put in an auto-numbered ordered list.)
88 * A new `--normalize` option causes pandoc to normalize the AST
89 before writing the document. This means that, for example,
90 `*hi**there*` will be rendered as `<em>hithere</em>`
91 instead of `<em>hi</em><em>there</em>`. This is not the default,
92 because there is a significant performance penalty.
94 * A new `--chapters` command-line option causes headers
95 in DocBook, LaTeX, and ConTeXt to start with "chapter" (level one).
98 * In DocBook output, `<chapter>` is now used for top-level
99 headers if the template contains `<book>`. Resolves Issue #265.
101 * A new `--listings` option in `pandoc` and `markdown2pdf` causes
102 the LaTeX writer to use the listings package for code blocks.
103 (Thanks to Josef Svennigsson for the pandoc patch, and Etienne
104 Millon for the markdown2pdf patch.)
106 * `markdown2pdf` now supports `--data-dir`.
108 * URLs in autolinks now have class "url" so they can be styled.
110 * Improved prettyprinting in most formats. Lines will be wrapped
111 more evenly and duplicate blank lines avoided.
113 * New `--columns` command-line option sets the column width for
114 line wrapping and relative width calculations for tables.
116 * Made `--smart` work in HTML, RST, and Textile readers, as well
119 * Added `--html5` option for HTML5 output.
121 * Added support for listings package in LaTeX reader
124 * Added support for simple tables in the LaTeX reader.
126 * Added support for simple tables in the HTML reader.
128 * Significant performance improvements in many readers and writers.
130 [API and program changes]
132 * Moved `Text.Pandoc.Definition` from the `pandoc` package to a new
133 auxiliary package, `pandoc-types`. This will make it possible for other
134 programs to supply output in Pandoc format, without depending on the whole
137 * Added `Attr` field to `Code`.
139 * Removed `RawHtml`, `HtmlInline`, and `TeX` elements; added generic
140 `RawBlock` and `RawInline`.
142 * Moved generic functions to `Text.Pandoc.Generic`. Deprecated
143 `processWith`, replacing it with two functions, `bottomUp` and `topDown`.
144 Removed previously deprecated functions `processPandoc` and `queryPandoc`.
146 * Added `Text.Pandoc.Builder`, for building `Pandoc` structures.
148 * `Text.Pandoc` now exports association lists `readers` and `writers`.
150 * Added `Text.Pandoc.Readers.Native`, which exports `readNative`.
151 `readNative` can now read full pandoc documents, block lists, blocks,
152 inline lists, or inlines. It will interpret `Str "hi"`
153 as if it were `Pandoc (Meta [] [] []) [Plain [Str "hi"]]`.
154 This should make testing easier.
156 * Removed deprecated `-C/--custom-header` option.
157 Use `--template` instead.
159 * `--biblio-file` has been replaced by `--bibliography`.
160 `--biblio-format` has been removed; pandoc now guesses the format
161 from the file extension (see README).
163 * pandoc will treat an argument as a URI only if it has an
164 `http(s)` scheme. Previously pandoc would treat some
165 Windows pathnames beginning with `C:/` as URIs.
167 * The `--sanitize-html` option and the `stateSanitize` field in
168 `ParserState` have been removed. Sanitization is better done in the
169 resulting HTML using `xss-sanitize`, which is based on pandoc's
170 sanitization, but improved.
172 * pandoc now adds a newline to the end of its output in fragment
173 mode (= not `--standalone`).
175 * Added support for `lang` in `html` tag in the HTML template,
176 so you can do `pandoc -s -V lang=es`, for example.
178 * `highlightHtml` in `Text.Pandoc.Highlighting` now takes
179 a boolean argument that selects between "inline" and
182 * `Text.Pandoc.Writers.RTF` now exports `rtfEmbedImage`.
183 Images are embedded in RTF output when possible (png, jpeg).
186 * Added `Text.Pandoc.Pretty`. This is better suited for pandoc than the
187 `pretty` package. Changed all writers that used
188 `Text.PrettyPrint.HughesPJ` to use `Text.Pandoc.Pretty` instead.
190 * Rewrote `writeNative` using the new prettyprinting module. It is
191 now much faster. The output has been made more consistent and compressed.
192 `writeNative` is also now sensitive to writerStandalone`, and will simply
193 `print a block list if writerStandalone` is False.
195 * Removed `Text.Pandoc.Blocks`. `Text.Pandoc.Pretty` allows you to define
196 blocks and concatenate them, so a separate module is no longer needed.
198 * `Text.Pandoc.Shared`:
200 + Added `writerColumns`, `writerChapters`, and `writerHtml5` to
203 + Removed unneeded prettyprinting functions:
204 `wrapped`, `wrapIfNeeded`, `wrappedTeX`, `wrapTeXIfNeeded`, `hang'`,
205 `BlockWrapper`, `wrappedBlocksToDoc`.
206 + Made `splitBy` take a test instead of an element.
207 + Added `findDataFile`, refactored `readDataFile`.
208 + Added `stringify`. Rewrote `inlineListToIdentifier` using `stringify`.
209 + Fixed `inlineListToIdentifier` to treat '\160' as ' '.
211 * `Text.Pandoc.Readers.HTML`:
213 + Removed `rawHtmlBlock`, `anyHtmlBlockTag`, `anyHtmlInlineTag`,
214 `anyHtmlTag`, `anyHtmlEndTag`, `htmlEndTag`, `extractTagType`,
215 `htmlBlockElement`, `htmlComment`
216 + Added `htmlTag`, `htmlInBalanced`, `isInlineTag`, `isBlockTag`,
219 * Moved `smartPunctuation` from `Text.Pandoc.Readers.Markdown`
220 to `Text.Pandoc.Readers.Parsing`, and parameterized it with
223 * Ellipses are no longer allowed to contain spaces.
224 Previously we allowed '. . .', ' . . . ', etc. This caused
225 too many complications, and removed author's flexibility in
226 combining ellipses with spaces and periods.
228 * Allow linebreaks in URLs (treat as spaces). Also, a string of
229 consecutive spaces or tabs is now parsed as a single space. If you have
230 multiple spaces in your URL, use `%20%20`.
232 * `Text.Pandoc.Parsing`:
234 + Removed `refsMatch`.
235 + Hid `Key` constructor.
236 + Removed custom `Ord` and `Eq` instances for `Key`.
237 + Added `toKey` and `fromKey` to convert between `Key` and `[Inline]`.
238 + Generalized type on `readWith`.
240 * Small change in calculation of relative widths of table columns.
241 If the size of the header > the specified column width, use
242 the header size as 100% for purposes of calculating
243 relative widths of columns.
245 * Markdown writer now uses some pandoc-specific features when `--strict`
246 is not specified: `\` newline is used for a hard linebreak instead of
247 two spaces then a newline. And delimited code blocks are used when
248 there are attributes.
250 * HTML writer: improved gladTeX output by setting ENV appropriately
251 for display or inline math (Jonathan Daugherty).
253 * LaTeX writer: Use `\paragraph`, `\subparagraph` for level 4,5 headers.
257 + `\label{foo}` and `\ref{foo}` now become `{foo}` instead of `(foo)`.
258 + `\index{}` commands are skipped.
260 * Added `fontsize` variable to default LaTeX template.
261 This makes it easy to set the font size using `markdown2pdf`:
262 `markdown2pdf -V fontsize=12pt input.txt`.
264 * Fixed problem with strikeout in LaTeX headers when using
265 hyperref, by adding a command to the default LaTeX template
266 that disables `\sout` inside pdf strings. Thanks to Joost Kremers
269 * The `COLUMNS` environment variable no longer has any effect.
271 [under-the-hood improvements]
273 * Pandoc now compiles with GHC 7. (This alone leads to a
274 significant performance improvement, 15-20%.)
276 * Completely rewrote HTML reader using tagsoup as a lexer. The
277 new reader is faster and more accurate. Unlike the
278 old reader, it does not get bogged down on some input
279 (Issues #277, 255). And it handles namespaces in tags
282 * Replaced `escapeStringAsXML` with a faster version.
284 * Rewrote `spaceChar` and some other parsers in Text.Pandoc.Parsing
285 for a significant performance boost.
287 * Improved performance of all readers by rewriting parsers.
289 * Simplified Text.Pandoc.CharacterReferences by using
290 entity lookup functions from TagSoup.
292 * `Text.Pandoc.UTF8` now uses the unicode-aware IO functions
293 from `System.IO` if base >= 4.2. This gives support for
294 windows line endings on windows.
296 * Remove duplications in documentation by generating the
297 pandoc man page from README, using `MakeManPage.hs`.
299 * README now includes a full description of markdown syntax,
300 including non-pandoc-specific parts. A new `pandoc_markdown`
301 man page is extracted from this, so you can look up markdown
302 syntax by doing `man pandoc_markdown`.
304 * Completely revised test framework (with help from Nathan Gass).
305 The new test framework is built when the `tests` Cabal flag is set. It
306 includes the old integration tests, but also some new unit and quickcheck
307 tests. Test output has been much improved, and you can now specify a glob
308 pattern after `cabal test` to indicate which tests should be run;
309 for example `cabal test citations` will run all the citation tests.
311 * Added a shell script, `stripansi.sh`, for filtering ANSI control
312 sequences from test output: `cabal test | ./stripansi.sh > test.log`.
314 * Added `Interact.hs` to make it easier to use ghci while developing.
315 `Interact.hs` loads `ghci` from the `src` directory, specifying
316 all the options needed to load pandoc modules (including
317 specific package dependencies, which it gets by parsing
320 * Added `Benchmark.hs`, testing all readers + writers using criterion.
322 * Added `stats.sh`, to make it easier to collect and archive
323 benchmark and lines-of-code stats.
325 * Added upper bounds to all cabal dependencies.
327 * Include man pages in extra-source-files. This allows users to
328 install pandoc from the tarball without needing to build the man
333 * Filenames are encoded as UTF8. Resolves Issue #252.
335 * Handle curly quotes better in `--smart` mode. Previously, curly quotes
336 were just parsed literally, leading to problems in some output formats.
337 Now they are parsed as `Quoted` inlines, if `--smart` is specified.
340 * Text.Pandoc.Parsing: Fixed bug in grid table parser.
341 Spaces at end of line were not being stripped properly,
342 resulting in unintended LineBreaks.
346 + Allow HTML comments as inline elements in markdown.
347 So, `aaa <!-- comment --> bbb` can be a single paragraph.
348 + Fixed superscripts with links: `^[link](/foo)^` gets
349 recognized as a superscripted link, not an inline note followed by
351 + Fixed regression, making markdown reference keys case-insensitive again.
353 + Properly handle abbreviations (like `Mr.`) at the end of a line.
354 + Better handling of intraword underscores, avoiding exponential
355 slowdowns in some cases. Resolves Issue #182.
356 + Fixed bug in alignments in tables with blank rows in the header.
360 + Field lists now allow spaces in field names, and
361 block content in field values. (Thanks to Lachlan Musicman
362 for pointing out the bug.)
363 + Definition list items are now always `Para` instead of
364 `Plain`, matching behavior of `rst2xml.py`.
365 + In image blocks, the description is parsed properly and
366 used for the alt attribute, not also the title.
367 + Skip blank lines at beginning of file. Resolves
372 + Improved parsing of preamble.
373 Previously you'd get unexpected behavior on a document that
374 contained `\begin{document}` in, say, a verbatim block.
375 + Allow spaces between `\begin` or `\end` and `{`.
376 + Support `\L` and `\l`.
377 + Skip comments inside paragraphs.
381 + Escape strings in `\href{..}`.
382 + In nonsimple tables, put cells in `\parbox`.
384 * OpenDocument writer: don't print raw TeX.
388 + Fixed bug in `Image`. URI was getting unescaped twice!
389 + Avoid printing extra blank lines at the end if there are
390 no notes or references.
392 * LaTeX and ConTeXt: Escape `[` and `]` as `{[}` and `{]}`.
393 This avoids unwanted interpretation as an optional argument.
395 * ConTeXt writer: Fixed problem with inline code. Previously
396 `}` would be rendered `\type{}}`. Now we check the string for '}' and '{'.
397 If it contains neither, use `\type{}`; otherwise use `\mono{}`
398 with an escaped version of the string.
400 * `:` now allowed in HTML tags. Resolves Issue #274.
406 * New EPUB and HTML Slidy writers. (Issue #122)
408 - EPUB is a standard ebook format, used in Apple's iBooks for
409 the iPad and iPhone, Barnes and Noble's nook reader, the Sony
410 reader, and many other devices.
411 - Slidy, like S5, is a system for producing HTML+javascript slide
414 * All input is assumed to be UTF-8, no matter what the locale and ghc
415 version, and all output is UTF-8. This reverts to pre-1.5 behavior.
416 Also, a BOM, if present, is stripped from the input.
418 * Markdown now supports grid tables, whose cells can contain
419 arbitrary block elements. (Issue #43)
421 * Sequentially numbered example lists in markdown with `@` marker.
423 * Markdown table captions can begin with a bare colon and no longer need
424 to include the English word "table." Also, a caption can now occur
425 either before or after the table. (Issue #227)
427 * New command-line options:
429 - `--epub-stylesheet` allows you to specify a CSS file that will
430 be used to style your ebook.
431 - `--epub-metadata` allows you to specify metadata for the ebook.
432 - `--offline` causes the generated HTML slideshow to include all
433 needed scripts and stylesheets.
434 - `--webtex` causes TeX math to be converted to images using the
435 Google Charts API (unless a different URL is specified).
436 - `--section-divs` causes div tags to be added around each section
437 in an HTML document. (Issue #230, 239)
439 * Default behavior of S5 writer in standalone mode has changed:
440 previously, it would include all needed scripts and stylesheets
441 in the generated HTML; now, only links are included unless
442 the `--offline` option is used.
444 * Default behavior of HTML writer has changed. Between 1.2 and 1.5,
445 pandoc would enclose sections in div tags with identifiers on the
446 div tags, so that the sections can be manipulated in javascript.
447 This caused undesirable interactions with raw HTML div tags. So,
448 starting with 1.6, the default is to put the identifiers directly
449 on the header tags, and not to include the divs. The `--section-divs`
450 option selects the 1.2-1.5 behavior.
454 - `HTMLMathMethod`: Added `WebTeX`, removed `MimeTeX`.
455 - `WriterOptions`: Added `writerUserDataDir`, `writerSourceDirectory`,
456 `writerEPUBMetadata` fields. Removed `writerIncludeBefore`,
457 `writerIncludeAfter`.
458 - Added `headerShift` to `Text.Pandoc.Shared`.
459 - Moved parsing code and `ParserState` from `Text.Pandoc.Shared`
460 to a new module, `Text.Pandoc.Parsing`.
461 - Added `stateHasChapters` to `ParserState`.
462 - Added `HTMLSlideVariant`.
463 - Made `KeyTable` a map instead of an association list.
464 - Added accessors for `Meta` fields (`docTitle`, `docAuthors`,
466 - `Pandoc`, `Meta`, `Inline`, and `Block` have been given `Ord`
468 - Reference keys now have a type of their own (`Key`), with its
469 own `Ord` instance for case-insensitive comparison.
470 - Added `Text.Pandoc.Writers.EPUB`.
471 - Added `Text.Pandoc.UUID`.
472 - Removed `Text.Pandoc.ODT`, added `Text.Pandoc.Writers.ODT`.
473 Removed `saveOpenDocumentAsODT`, added `writeODT`.
474 - Added `Text.Pandoc.Writers.Native` and `writeNative`.
475 Removed `prettyPandoc`.
476 - Added `Text.Pandoc.UTF8` for portable UTF8 string IO.
477 - Removed `Text.Pandoc.Writers.S5` and the `writeS5` function.
478 Moved `s5Includes` to a new module, `Text.Pandoc.S5`.
479 To write S5, you now use `writeHtml` with `writerSlideVariant`
480 set to `S5Slides` or `SlidySlides`.
482 * Template changes. If you use custom templates, please update them,
483 particularly if you use syntax highlighting with pandoc. The old HTML
484 templates hardcoded highlighting CSS that will no longer work with
485 the most recent version of highlighting-kate.
487 - HTML template: avoid empty meta tag if no date.
488 - HTML template: Use default highlighting CSS from highlighting-kate
489 instead of hard-coding the CSS into the template.
490 - HTML template: insert-before text goes before the title, and
491 immediately after the <body> tag, as documented. (Issue #241)
492 - Added slidy and s5 templates.
493 - Added amssymb to preamble of latex template. (github Issue 1)
495 * Removed excess newlines at the end of output. Note: because output
496 will not contain an extra newline, you may need to make adjustments
497 if you are inserting pandoc's output into a template.
499 * In S5 and slidy, horizontal rules now cause a new slide, so you
500 are no longer limited to one slide per section.
502 * Improved handling of code in man writer. Inline code is now monospace,
503 not bold, and code blocks now use .nf (no fill) and .IP (indented para).
505 * HTML reader parses `<tt>` as Code. (Issue #247)
507 * html+lhs output now contains bird tracks, even when compiled without
508 highlighting support. (Issue #242)
510 * Colons are now no longer allowed in autogenerated XML/HTML identifiers,
511 since they have a special meaning in XML.
513 * Code improvements in ODT writer. Remote images are now replaced with
514 their alt text rather than a broken link.
516 * LaTeX reader improvements:
518 - Made latex `\section`, `\chapter` parsers more forgiving of
520 - Parse `\chapter{}` in latex.
521 - Changed `rawLaTeXInline` to accept `\section`, `\begin`, etc.
522 - Use new `rawLaTeXInline'` in LaTeX reader, and export `rawLaTeXInline`
523 for use in markdown reader.
524 - Fixes bug wherein `\section{foo}` was not recognized as raw TeX
525 in markdown document.
527 * LaTeX writer: images are automatically shrunk if they would extend
528 beyond the page margin.
530 * Plain, markdown, RST writers now use unicode for smart punctuation.
532 * Man writer converts math to unicode when possible, as in other writers.
534 * `markdown2pdf` can now recognize citeproc options.
536 * Command-line arguments are converted to UTF-8. (Issue #234)
538 * `Text.Pandoc.TeXMath` has been rewritten to use texmath's parser.
539 This allows it to handle a wider range of formulas. Also, if a formula
540 cannot be converted, it is left in raw TeX; formulas are no longer
543 * Unicode curly quotes are left alone when parsing smart quotes. (Issue
546 * Cabal file changes:
548 - Removed parsec < 3 restriction.
549 - Added 'threaded' flag for architectures where GHC lacks a threaded
551 - Use 'threaded' only for markdown2pdf; it is not needed for pandoc.
552 - Require highlighting-kate 0.2.7.
554 * Use explicit imports from `Data.Generics`. Otherwise we have a
555 conflict with the 'empty' symbol, introduced in syb >= 0.2. (Issue #237)
557 * New data files: slidy/slidy.min.js, slidy/slidy.min.css, epub.css.
563 * Fixed uniqueIdent in Shared so that header identifiers work as
564 advertized in the README and are are valid XHTML names.
570 * Fixed treatment of unicode characters in URIs.
571 + Shared now exports escapeURI and unescapeURI. These handle
572 UTF8 encoding and decoding as well as URI escaping/unescaping.
573 + Shared: uri and emailAddress now return a pair of the original
574 parsed text and the escaped URI (in the latter case, with
576 + HTML reader: unsanitaryURI has been modified to allow unicode
577 high characters in a URI.
578 + Readers: All link and image URIs are now escaped using
580 + Markdown and RST writers: unescapeURI is used so that URIs
581 in these formats are human-readable.
583 * Setup.hs: Don't assume that the build directory is "dist".
584 Instead, get it from localBuildInfo.
586 * OpenDocument writer: Use a Map for stTextStyleAttr.
587 This avoids duplicates (and invalid xml). Resolves Issue #222.
593 * HTML writer: Fixed error in math writer (with MathML option)
594 that caused an infinite loop for unparsable MathML.
600 * Added --mathml option. When this is selected, pandoc will convert
601 TeX math into MathML.
602 + Added data/MathMLinHTML.js, which is included when no URL is
603 provided for --mathml. This allows MathML to be displayed (in
604 better browsers) as text/html.
605 + Removed Text.Pandoc.LaTeXMathML. The module was no longer
606 necessary; it was replaced by two lines in pandoc.hs.
607 + Replaced LaTeXMathML.js.commend and LaTeXMathML.js.packed with a
608 single combined file, LaTeXMathML.js.
610 * Added --data-dir option.
611 This specifies a user data directory. If not specified, will default
612 to ~/.pandoc on unix or Application Data\pandoc on Windows.
613 Files placed in the user data directory will override system default
616 * Added Maybe datadir parameter to readDataFile, saveOpenDocumentAsODT,
617 latexMathMLScript, s5HeaderIncludes, and getDefaultTemplate. If
618 Nothing, no user directory is searched for an override.
620 * Added 'plain' output format. This is similar to markdown, but
621 removes links, pictures, inline formatting, and most anything that
622 looks even vaguely markupish. The function writePlain is exported by
623 Text.Pandoc.Writers.Markdown, with which it shares most of its code.
625 * Allow multi-line titles and authors in meta block.
626 Titles may span multiple lines, provided continuation lines
627 begin with a space character. Separate authors may be put on
628 multiple lines, provided each line after the first begins with
629 a space character. Each author must fit on one line. Multiple
630 authors on a single line may still be separated by a semicolon.
631 Based on a patch by Justin Bogner.
633 * When given an absolute URI as parameter, pandoc will try to fetch
634 the content via HTTP. So you can do:
635 'pandoc -r html -w markdown http://www.fsf.org'
636 Adds dependency on HTTP.
638 * Made HTML reader much more forgiving.
639 + Incorporated idea (from HXT) that an element can be closed
640 by an open tag for another element.
641 + Javascript is partially parsed to make sure that a <script>
642 section is not closed by a </script> in a comment or string.
643 + More lenient non-quoted attribute values.
644 Now we accept anything but a space character, quote, or <>.
645 This helps in parsing e.g. www.google.com!
646 + Bare & signs are now parsed as a string. This is a common
648 + Skip a bare < in malformed HTML.
650 * Removed html2markdown and hsmarkdown.
651 + html2markdown is no longer needed, since you can now pass URI
652 arguments to pandoc and directly convert web pages. (Note,
653 however, that pandoc assumes the pages are UTF8. html2markdown
654 made an attempt to guess the encoding and convert them.)
655 + hsmarkdown is pointless -- a large executable that could be
656 replaced by 'pandoc --strict'.
658 * In most writers, an image in a paragraph by itself is now rendered
659 as a figure, with the alt text as the caption. (Texinfo, HTML, RST,
660 MediaWiki, Docbook, LaTeX, ConTeXt, HTML.) Other images are
663 * Depend on extensible-exceptions. This allows pandoc to be compiled
666 * Added --base-header-level option. For example, --base-header-level=2
667 will change level 1 headers to level 2, level 2 to level 3, etc.
668 Closes Debian #563416.
670 * Incomplete support for RST tables (simple and grid).
671 Thanks to Eric Kow. Colspans and rowspans not yet supported.
673 * Added accessors (docTitle, docAuthors, docDate) to Meta type.
675 * MediaWiki writer: format links with relative URLs as wikilinks.
676 The new rule: If the link target is an absolute URL, an external
677 link is created. Otherwise, a wikilink is created.
679 * Text.Pandoc.Shared: Export uniqueIdent, and don't allow tilde in
680 identifier. Note: This may break links to sections that involve
683 * Markdown(+lhs) reader: handle "inverse bird tracks."
684 Inverse bird tracks (<) are used for haskell example code that is not
685 part of the literate Haskell program. Resolves Issue #211.
688 + Recognize '\ ' (interword space).
689 + Recognize nonbreaking space '~'.
690 + Ignore \section, \pdfannot, \pdfstringdef. Ignore alt title in
691 section headers. Don't treat \section as inline LaTeX.
693 + LaTeX reader: allow any special character to be escaped.
695 + LaTeX reader: treat \paragraph and \subparagraph as level 4, 5
696 headers. Resolves Issue #207.
698 * Use template variables for include-before/after.
699 + These options now imply -s; previously they worked also in fragment
701 + Users can now adjust position of include-before and include-after
702 text in the templates.
703 + Default position of include-before moved back (as it was before 1.4)
704 before table of contents.
705 + Resolves Issue #217.
707 * Don't print an empty table header: (all writers).
710 * HTML, Docbook writer: Use tbody, thead, and cols in tables.
712 * HTML writer: Don't include TOC div if table of contents is empty.
714 * Markdown writer: Fixed citations.
715 Previously the markdown writer printed raw citation codes, e.g.
716 [geach1970], rather than the expanded citations provided by
717 citeproc, e.g. (Geach 1970). Now it prints the expanded citations.
718 This means that the document produced can be processed as a markdown
719 document without citeproc. Thanks to dsanson for reporting, and
720 Andrea Rossato for the patch.
722 * Improved and simplified title block in context template.
723 Previously it caused an error if there was no title.
724 This method should also be easier for users to customize.
727 + Treat p., pp., sec., ch., as abbreviations in smart mode.
728 + Disallow blank lines in inline code span.
729 + Allow footnotes to be indented < 4 spaces.
730 This fixes a regression. A test case has been added.
731 + Escape spaces in URLs as %20. Previously they were incorrectly
732 escaped as +, which is appropriate only for the query part of
733 a URL. Resolves Issue #220.
734 + Require two spaces after capital letter + period for list item.
735 Otherwise "E. coli" starts a list. This might change the semantics
736 of some existing documents, since previously the two-space
737 requirement was only enforced when the second word started
738 with a capital letter. But it is consistent with the existing
739 documentation and follows the principle of least surprise.
742 * LaTeX template: redefine labelwidth when using enumerate package.
743 Otherwise the list labels (numbers) often extend past the left
744 margin, which looks bad.
746 * Mediawiki writer: Don't print a "== Notes ==" header before
747 references. This is too English-centric. Writers can provide their
748 own header at the end of the document.
750 * Promoted mediawiki headers. '= head =' is now level 1, '== head =='
751 level 2, etc. This seems to be correct; it's only by convention
752 that wikipedia articles have level 2 headers at most.
753 Patch due to Eric Kow.
755 * RunTests.hs: Set LANG to a UTF-8 locale. Use 'pandoc --data-dir=' so
756 data files don't need to have been installed. This removes the need to
760 + Handle spaces before <html>. Resolves Issue #216.
761 + Be forgiving in parsing a bare list within a list.
762 The following is not valid xhtml, but the intent is clear:
765 <ol><li>sub</li></ol>
768 We'll treat the <ol> as if it's in a <li>. Resolves Issue #215.
770 * Updated INSTALL instructions. cabal method is now promoted.
772 * Updated markdown2pdf man page. It no longer says all pandoc options
775 * README/man pages: Removed advice to pipe through tidy before HTML
776 reader. This is obsolete, now that we have a forgiving HTML parser.
778 * LaTeX writer: set numbersections template variable, so
779 the section numbering options work again.
781 * Removed obsolete Makefile.
783 * Website: renamed index.txt.in -> index.txt.
785 * New batch file to make-windows-installer.
786 + Removed old Makefile.windows
787 + Added make-windows-installer.bat
788 + Modified default installer name in pandoc-setup.iss
790 * Removed freebsd and macports directories.
791 They are no longer up to date.
794 + Made man page building sensitive to build verbosity.
795 + Improved detection of highlighting support in test hook.
796 + Install wrapper scripts into cabal bin directory.
797 + Also simplified installManpages.
798 + Setup.hs: install manpages to mandir. Code borrowed from darcs.
800 * Changed default of writerXeTeX to False.
802 * HTML writer: don't include empty UL if --toc but no sections.
807 + If book, report, or memoir documentclass, use \chapter{}
808 for first-level headers. Otherwise use \section{}.
809 + Removed stLink, link template variable. Reason: we now always
810 include hyperref in the template.
814 + Only show \author if there are some.
815 + Always include hyperref package. It is used not just for links but
816 for toc, section heading bookmarks, footnotes, etc. Also added
817 unicode=true on hyperref options.
819 * markdown2pdf: always do at least two runs. hyperref bookmarks
822 * cabal file: Removed unneeded dependency on template-haskell.
824 * Windows installer - fixed bug in data file locations.
827 * Deprecated --custom-header in documentation.
828 Removed old "Custom Headers" section in README.
834 * Pandoc will now compile with either GHC 6.10 or 6.12.
835 + Don't use System.IO.UTF8 when compiling with 6.12
836 + Use -fno-warn-unused-do-bind option when compiling with 6.12
838 * Replaced old headers with templates. Now users have much more
839 control over the way documents appear in --standalone mode,
840 and writer code is simplified. Resolves Issues #59, 147.
841 Every effort has been made to retain backwards compatibilty.
842 So, the --custom-header option should still work as before.
844 + Added Text.Pandoc.Templates. This provides functions for
845 retrieving default templates and for rendering templates.
846 + System templates (in the pandoc data directory) can be
847 overridden by user templates in $HOME/.pandoc/templates.
848 + Removed Text.Pandoc.DefaultHeaders.
849 + Removed data/headers directory.
850 + Added templates directory.
851 + Added writerTemplate and writerVariables fields to WriterOptions.
852 + Removed writerTitlePrefix, writerHeader fields from WriterOptions.
853 + Changed --print-default-header to --print-default-template.
854 + Added --template option.
855 + Added -V/--variable option to set custom template variables.
857 * Pandoc no longer requires Template Haskell. Resolves Issue #186.
859 + Removed need for TH in ODT module. Instead get reference.odt from
860 data file at run time.
861 + Removed TH dependency from S5 module. S5 module now exports
862 s5HeaderIncludes, which pandoc.hs includes if writer is s5 and
864 + Refactored LaTeXMathML not to use TH.
866 * Meta is now Meta [Inline] [[Inline]] [Inline] rather than
867 Meta [Inline] [String] String. Authors and date in Meta are now lists
868 of Inline elements rather than raw strings. This means that they can
869 be formatted and can include footnotes. NOTE: This may be a breaking
870 change for those using pandoc as a library.
872 * Added readDataFile to Text.Pandoc.Shared. This retrieves
873 a data file from the user pandoc data directory (~/.pandoc
874 on unix), or, if not found there, from the system data
875 directory ($CABALDIR/shared/pandoc-VERSION/). All data
876 files, including templates, LaTeXMathML.js, s5 styles,
877 and reference.odt, can be overridden by the user.
879 * s5 files moved from data/ui/default to s5/default.
881 * Use unicode instead of entities in HTML and XML output. Resolves
884 * Prettier HTML footnote references: put anchor inside sup,
885 instead of other way. Resolves Issue #191. Thanks to
888 * Added --xetex option to pandoc and markdown2pdf.
889 If --xetex is specified, pandoc produces latex suitable for
890 processing by xelatex, and markdown2pdf uses xelatex to create
891 the PDF. Resolves Issue #185.
893 * RTF writer: multiple authors now occupy multiple paragraphs rather
894 than using a line break.
896 * Man writer: now the "--after-body" will come after the "AUTHORS"
897 section, whereas before it would come before it. This is a
898 slight break from backwards compatibility.
900 * Added --reference-odt option, so users may customize the styles
901 used in pandoc-generated ODT files. Users may also place a
902 default reference.odt in the ~\.pandoc directory.
905 + Indented and line-broke styles.xml so it can be modified more easily.
906 + Omitted some unnecessary style declarations.
907 + Don't wrap text in OpenDocument writer. The tags are too long, making
908 wrapping ugly and pointless.
910 * LaTeX reader: use \\ to separate multiple authors.
912 * Markdown reader: use ; as separator between authors.
913 This allows you to use ',' within author names: e.g. "John Jones, Jr."
915 * S5 writer: use linebreak to separate authors in title page.
917 * RST reader: Allow :: before lhs code block. The RST spec requires the
918 :: before verbatim blocks. This :: should not be treated as literal
919 colons. Resolves Issue #189.
921 * Documented pandoc 1.3's new definition list syntax in README.
922 (An oversight in the last release.)
925 + interpret ! in a log as an error line.
926 + --toc now works properly.
928 * Changes in RunTests.hs:
929 + Use the Diff library rather than a local copy of Diff.hs.
930 (This vastly increases performance.) This change means that 'cabal
931 test' presupposes that the Diff library is installed.
932 + Removed tests/Diff.hs from cabal file.
933 + Changed RunTests to use local environment. We need at least HOME, so
934 pandoc can find its data directory.
936 * Updated windows installer to install data files in the app directory.
938 * Windows installer now installs portable wrappers hsmarkdown and
945 * Added --id-prefix option (Issue #41). This adds a prefix to all
946 automatically generated HTML identifiers, which helps prevent
947 duplicate identifiers when you're generating a fragment (say a blog
950 * Added --indented-code-classes option. This specifies classes
951 to use for indented code blocks. (Patch due to buttock; Issue #87.)
953 * --number-sections now affects HTML output as well as ConTeXt and LaTeX
956 * Improved syntax for markdown definition lists (Issue #24).
957 Definition lists are now more compatible with PHP Markdown Extra.
958 + You can have multiple definitions for a term (but still not
960 + Multi-block definitions no longer need a column before each block
961 (indeed, this will now cause multiple definitions).
962 + The marker no longer needs to be flush with the left margin,
963 but can be indented at or two spaces. Also, ~ as well as :
964 can be used as the marker (this suggestion due to David
966 + There can now be a blank line between the term and the
969 * Better looking simple tables. Resolves Issue #180.
970 + Markdown reader: simple tables are now given column widths of 0.
971 + Column width of 0 is interpreted as meaning: use default column width.
972 + Writers now include explicit column width information only
973 for multiline tables. (Exception: RTF writer, which requires
974 column widths. In this case, columns are given equal widths,
975 adding up to the text width.)
976 + Simple tables should now look better in most output formats.
978 * Allow markdown tables without headers (Issue #50).
979 The new syntax is described in README. Also allow optional line of
980 dashes at bottom of simple tables.
982 * Compensate for width of final table column (Issue #144).
984 * Treat a backslash followed by a newline as a hard line break
985 in markdown. Resolves Issue #154. This is a nice alternative
986 to markdown's "invisible" way of indicating hardline breaks
987 using lines that end with two spaces.
989 * Improved performance of markdown reader by ~10% by eliminating the
990 need for a separate parsing pass for notes. Raw notes are now stored
991 on the first pass (which parses references), then parsed when the
992 note is inserted into the AST. The stateNotes field in ParserState
993 is now a list of [(String, String)] pairs instead of [(String,
996 * In markdown reader, treat 4 or more * or _ in a row as literal
997 text. (Trying to parse long strings of * or _ as strong or emph
998 leads to exponential performance problems.)
1000 * Markdown reader: Use + rather than %20 for spaces in URLs.
1002 * Fixed htmlComment parser, adding a needed 'try'.
1004 * Don't print raw HTML in man output.
1006 * Allow . _ and ~ in header identifiers.
1008 * Specially mark code blocks that were "literate" in the input.
1009 They can then be treated differently in the writers. This allows
1010 authors to distinguish bits of the literate program they are writing
1011 from source code examples, even if the examples are marked as
1012 Haskell for highlighting. (Issue #174.)
1014 * Modified html+lhs output to use "haskell" highlighter instead
1015 of "literateHaskell". The highlighting module now adds bird tracks
1016 after highlighting (for HTML output), if the code block has the
1017 "literate" class. This gives better results, because kate's
1018 haskell highlighter is much better than the literateHaskell
1021 * Fixed handling of footnotes in titles (HTML) and headers (LaTeX).
1024 * Support for "..code-block" directive in RST reader. Not core
1025 RST, but used in Sphinx for code blocks annotated with syntax
1026 information. Thanks to Luke Plant for the patch.
1028 * Added "head" to list of block-level HTML tags. Resolves
1031 * Added stripTags to Text.Pandoc.XML. This is used in the HTML writer.
1033 * Set utf-8 encoding in texinfo headers.
1035 * Docbook writer: add ids to sections. Use link for internal links.
1038 * Blank lines after lists in MediaWiki writer.
1040 * Properly handle commented-out list items in markdown.
1041 Resolves Issue #142. Example:
1049 * Changed heuristic in compactify. compactify has to decide whether a
1050 Para that ends a list is a Para intentionally, or just because of
1051 the blank lines at the end of every list. In the latter case the
1052 Para is turned to a Plain. The old heuristic was: change final Para
1053 to Plain iff the other items all end in Plain. This produces bad
1054 results when, for example, an item contains just a Plain and an HTML
1055 comment, as it does in the list above. The new heuristic: change
1056 final Para to Plain iff the other items don't contain a Para.
1058 * Added % as an rst underline character. Resolves Issue #173.
1060 * Fix inline math parser so that \$ is allowed in math.
1061 Resolves Issue #169.
1063 * Translate \int (integral) into unicode when using unicode math
1064 method. Resolves Issue #177.
1066 * markdown2pdf.hs improvements:
1067 + Use System.IO.UTF8.
1068 + Print error messages on last attempt.
1069 + Do not create a backup when overwriting a PDF (Issue #166).
1070 + Accept --longopt=val options.
1071 + Added man/man1/markdown2pdf.1 to extra-tmp-files in cabal, so that
1072 it is properly cleaned.
1074 * Added haddock comments warning that readers assume \n line endings.
1076 * Updated COPYRIGHT file.
1078 * Makefile: Changed EXECSBASE so it doesn't pull in hsmarkdown &
1079 markdown2pdf. Otherwise strip tries to strip shell scripts when you
1080 install using 'make'.
1082 * Changed Makefile so it doesn't build Haskell wrappers.
1084 * Fixed Makefile so it doesn't try to build man pages in build-doc.
1086 * Install pcre3.dll in Windows install script; this allows us to
1087 package a version of pandoc with highlighting support.
1093 * Fixed regression with --preserveTabs. Brought back optPreserveTabs.
1094 The trick of setting tabStop to 0 to mean "preserve tabs" had a bad
1095 side effect: strings of 0 spaces were interpreted as indentation.
1096 So, with --preserve-tabs, unindented paragraphs were treated as
1097 code. Resolves Issue #138.
1099 * HTML writer: wrap sections in divs. Resolves Issue #70.
1101 + hierarchicalize has been rationalized; it builds a hierarchical
1102 representation of the document from the headers, and simultaneously
1103 gives each section a unique identifier based on the heading title.
1104 + Identifiers are now attached to the divs rather than
1105 to the headers themselves.
1106 + Table of content backlinks go to the beginning of the table, rather
1107 than to the section reference that was clicked.
1108 + Code for constructing identifiers has been moved to Text.Pandoc.Shared
1109 from the HTML writer, since it is now consumed only by
1111 + In --strict mode, pandoc just prints bare headings, as before
1112 (unless --toc has been specified).
1113 + In s5 output, it does not wrap sections in divs, as that seems to
1114 confuse the s5 javascript.
1116 * Man writer: break lines at end of each sentence. groff expects this
1117 and treats '.' and '?' differently when followed by line ending as
1118 opposed to ordinary space. Also, don't escape periods. Instead, use
1119 zero-width character \& to avoid unwanted interpretation of periods
1120 at start of line. Resolves Issue #148.
1122 * Markdown writer: Added '#' and '>' to list of characters to be
1123 escaped in markdown output. Removed '<', as it is not an officially
1124 escapable character. This partially resolves Issue #96.
1126 * Make --smart the default for man output format. Otherwise we have
1127 trouble dividing lists of endlines into sentences.
1129 * DocBook writer: Use language attribute to indicate source language
1134 + Allow # to continue list, even if the list was started with an
1135 explicit marker. For example:
1140 Resolves Issue #140.
1141 + Allow continuation lines in line blocks. Also added test cases for
1142 line blocks for RST reader. Resolves Issue #149.
1143 + Allow explicit links with spaces in URL: `link <to this>`_
1145 * Improved LaTeX reader's coverage of math modes. Remove displaymath*
1146 (which is not in LaTeX) and recognize all the amsmath environments
1147 that are alternatives to eqnarray, namely equation, equation*,
1148 gather, gather*, gathered, multline, multline*, align, align*,
1149 alignat, alignat*, aligned, alignedat, split. Resolves Issue #103.
1150 Thanks to shreevatsa.public for the patch.
1154 + Allow -, _, :, . in markdown attribute names. These are legal in
1155 XML attribute names.
1156 + Use non-breaking spaces in abbreviations.
1157 + Markdown reader: improved efficiency of abbreviation parsing.
1158 Instead of a separate abbrev parser, we just check for
1159 abbreviations each time we parse a string. This gives a huge
1160 performance boost with -S. Resolves Issue #141.
1162 * Improved efficiency of shared parsers: hexNum, htmlComment,
1163 whitespace, indentSpaces.
1165 * Export HTMLMathMethod in Text.Pandoc.
1167 * Export languagesByExtension in Text.Pandoc.Highlighting.
1169 * Added new Haskell version of markdown2pdf, due to
1170 Paulo Tanimoto. This should be more portable than the old
1173 * Made 'pandoc -v' more explicit about compiler options.
1174 Resolves Issue #139.
1176 * pandoc.hs: Made --strict compatible with --standalone, --toc.
1178 * Use Paths_pandoc to get version number, instead of hard-coding it
1179 into Text/Pandoc.hs.
1185 * Added support for literate Haskell. lhs support is triggered by
1186 '+lhs' suffixes in formats. For example, 'latex+lhs' is literate
1187 Haskell LaTeX. '.lhs' files are treated by default as literate
1190 + Added stateLiterateHaskell to parser state.
1191 + Added parser for lhsCodeBlock to Markdown, RST, LaTeX readers.
1192 + Added parser for |inline lhs| to LaTeX reader.
1193 + Added writerLiterateHaskell to WriterOptions.
1194 + Added lhs support to Markdown, RST, LaTeX, HTML writers.
1195 + Added definition of code environment to LaTeX header.
1196 + Added tests (run only if highlighting support compiled in).
1197 + Documented lhs features in man page and README.
1199 * In Text.Pandoc.Definition, added processWith, processWithM,
1200 and queryWith, and deprecated processPandoc and queryPandoc
1201 for these more general functions.
1203 * Fixed bug in mediawiki writer: improper closing tags in tables.
1204 Thanks to Benct Philip Jonsson for reporting the bug.
1206 * Added --email-obfuscation option.
1208 + Added writer option for email obfuscation.
1209 + Implemented email obfuscation options in HTML writer.
1210 + Added option to option parser.
1211 + Documented in README and pandoc man page.
1212 + Resolves Issue #97.
1214 * LaTeX writer: fixed bug with empty table cells.
1215 Resolves Issue #107. Thanks to rodja.trappe for the patch.
1217 * Fixed bug with header spacing in Markdown and RST writers.
1218 A null header (Meta [] [] []) should not cause a blank line
1219 at the beginning of output. But a blank line is needed between
1220 a non-null header and the main text.
1222 * Markdown reader: Relax spacing rules for $$ in display math. Now
1223 space and newlines are allowed after the opening $$ and before the
1224 closing $$. However, the display math cannot contain an entirely
1225 blank line. Resolves Issue #105.
1227 * Markdown reader: Gobble space after Plain blocks containing only
1228 raw html inline. Otherwise following header blocks are not parsed
1229 correctly, since the parser sees blank space before them. Resolves
1232 * Markdown reader: Allow " as well as '' to end a latex double-quote.
1234 * Conditionally depend on syb and base >= 4 if ghc >= 6.10.
1235 Resolves Issue #109.
1237 * Fixed problems in RST and markdown output due to bug in pretty-1.0.1.0
1239 + Added hang' function to Text.Pandoc.Shared; this will be used instead
1240 of hang, which doesn't work properly in pretty-1.0.1.0. When pretty
1241 is upgraded, we can go back to hang.
1242 See http://article.gmane.org/gmane.comp.lang.haskell.general/16687
1243 + Use hang' (and some different techniques) in RST and markdown writers.
1244 Some output is now a bit different.
1246 * Brought citeproc support up to date for citeproc-hs-0.2.
1247 (Patch by Andrea Rossato.)
1249 * Moved all haskell source to src subdirectory. Renamed Main.hs to
1252 * Rewrote hsmarkdown in Haskell for portability (src/hsmarkdown.hs).
1253 For now, keeping the old shell script too.
1255 * Added TemplateHaskell to Extensions for executable, removed
1256 -threaded for library. Thanks to duncan.coutts for the bug report.
1257 Resolves Issue #121.
1259 * Moved some Extra-Source-Files to Data-Files.
1261 * Moved tabFilter to Shared.
1263 * In pandoc.hs, removed optPreserveTabs; instead, tabstop of 0 means
1266 * Minor code cleanup based on hlint suggestions.
1274 + Changed date on copyright message in Main.hs.
1275 + Have the '-v' option print syntax highlighting languages
1276 separated by commas, and wrapped in lines, instead of in five
1279 * Added --jsmath option. Resolves Issue #68.
1281 + Added --jsmath option to Main.hs
1282 + Added JsMath to HTMLMathMethod in Text.Pandoc.Shared.
1283 + Handle math appropriately in HTML writer when JsMath selected.
1284 + Documented the option in README and man page.
1286 * Text.Pandoc.Shared: Changed compactify to use a better heuristic
1287 for tight and loose lists. Final Para is changed to Plain if all
1288 other list items *end* with a Plain block. Addresses Issue #99.
1292 + Added colons to protocols in unsanitaryURI. Closes Issue #88.
1293 + HTML reader: Don't interpret contents of <pre> blocks as markdown.
1294 Added rawVerbatimBlock parser. Resolves Issue #94.
1298 + Allow URLs with spaces in them in links and references, but escape
1300 + Allow blank space at the end of horizontal rules.
1302 * RST reader: Modified 'unknownDirective' parser to handle comment
1303 blocks correctly, and added tests for comment blocks. Resolves Issue
1304 #86. Closes Debian Bug #500662.
1308 + Include classes on tr elements in HTML output:
1309 "header", "odd", "even". This allows tables to be styled with
1310 lines in alternating colors. Resolves Issue #91.
1311 + Enclose all LaTeXMathML bits in <span class="LaTeX">.
1312 This prevents parts of the document that are not math from being
1313 interpreted as math by LaTeXMathML.js.
1315 * OpenDocument and ODT writers: Added support for HorizontalRule elements,
1316 which were formerly ignored. Resolves Issue #95.
1318 * Text.Pandoc.Shared: Modified wrappedTeX to eliminate the line break
1319 between a footnote and immediately following nonspace characters in
1320 LaTeX and ConTeXt output. (This gets interpreted as a space, which
1321 is not desired in cases like "text^[note]---".) Resolves Issue #93.
1323 * Windows installer: Don't require admin privileges to run
1324 installer. Modified pandoc-setup.iss, and changed modpath.iss to
1325 modify HKCU path if user lacks admin privileges. Also fixed case
1326 where oldpath is empty (previously this led to the new path
1327 beginning with a semicolon).
1329 * Updated INSTALL instructions for Arch packages and OS X install using
1332 * Removed the (now unneeded) debian directory.
1333 Removed empty Codec and System directories.
1335 * Moved odt-styles/ to data/. Removed unneeded variable in Makefile.
1337 * Modified Setup.hs so that the "test" target returns an error status
1338 when tests fail, and "build" returns a success status if
1339 the build succeeds. Resolves Issue #100.
1341 * Added BUGS to files in tarball.
1348 * Removed spurious reference to pdf output format from pandoc(1) man page.
1354 * Added new OpenDocument writer.
1356 * Added support for SmallCaps inline element.
1358 * Added support for integrating pandoc with citeproc-hs.
1360 + Added Cite element to definition and writers.
1361 + Added Text.Pandoc.Biblio module
1362 + Note: This support is included only if the 'citeproc'
1363 Cabal configuration flag is set.
1365 * Made Pandoc data structure an instance of Typeable.
1366 Added new processPandoc and queryPandoc functions, to query
1367 or transform matching elements in a Pandoc structure.
1371 * Added new Texinfo writer.
1375 * Changes to Texinfo writer:
1377 + No space between paragraph and following @verbatim (provides more
1378 pleasing appearance in text formats)
1379 + Blank line consistently after list environments.
1381 + Use @code instead of @verb for inline code (this solves the character
1382 escaping problem for texi2dvi and texi2pdf).
1383 + Added news of Texinfo writer to README.
1384 + Added Texinfo to list of formats in man page, and removed extra 'groff'.
1385 + Added texi & texinfo extensions to Main.hs, and fixed bug in determining
1386 default output extension.
1387 + Modified disallowedInNode in Texinfo writer to correct list of disallowed characters.
1389 * Added tests for OpenDocument writer.
1391 * Added ODT writer (using zip-archive library to package output of
1392 OpenDocument writer). Added odt-styles directory with default ODT styles.
1394 * Added new mediawiki writer and tests.
1396 * Markdown reader: Added support for delimited code blocks, with optional
1397 syntax highlighting using highlighting-kate (if the 'highlighting'
1398 configuration option is selected).
1400 + Currently highlighting is supported only in the HTML writer.
1401 + Delimited code blocks can have attributes; using the language name as
1402 class triggers highlighting.
1403 + New Attributes parameter in CodeBlock structure.
1404 + --version now indicates whether syntax highlighting support is compiled
1405 in, and prints a list of supported languages
1407 * Removed debian directory. Pandoc is no longer a native debian package.
1409 * Changes to build process: pandoc can now be built from the repository
1410 using Cabal. No unix tools are needed (so, pandoc can be built on Windows
1413 + Include shell scripts themselves in repo, rather than generating from wrappers.
1414 Removed wrappers directory and wrappers Makefile target.
1415 + Text/Pandoc/ASCIIMathML.hs, Text/Pandoc/DefaultHeaders.hs,
1416 and Text/Pandoc/Writers/S5.hs are no longer built in Makefile
1417 from templates in the templates/ directory. Instead, they use template
1418 haskell to read data at compile time from the relevant files in data/.
1419 Template haskell functions go in a new module, Text.Pandoc.TH.
1420 + man pages are now generated in Setup.hs hook, not by Makefile
1421 + Makefile 'tarball' target now calls Cabal's 'sdist'
1422 + Added "Extra-Source-Files" to pandoc.cabal, so sdist contains everything needed
1423 + Added "Build-Type" field to pandoc.cabal to avoid warning.
1424 + Added to "Extra-source-files" and "Extra-tmp-files" in pandoc.cabal,
1425 so 'sdist' and 'clean' will work properly.
1426 + Setup.hs now generates man pages in a postbuild hook.
1427 + Added dependency-checking to Setup.hs, so it only rebuilds things
1428 that need rebuilding.
1429 + Added 'library' and 'executable' configuration flags.
1430 Cabal can now be told to build just the library or just the executable.
1431 + CABALOPTS may now be specified with 'make' to pass Cabal configuration flags.
1432 For example: CABALOPTS=-fhighlighting make
1434 * Rewrote test suite so it doesn't depend on perl or unix tools.
1436 + Replaced old runtests.pl with a Haskell script RunTests.hs.
1437 + Added Diff.hs module to be used by RunTests.hs instead of unix 'diff'.
1438 + Added test hook to Setup.hs, so tests may be run from cabal.
1439 + Changed Makefile's 'test' target to run tests via cabal.
1440 + Removed old generate.sh.
1441 + Since we no longer have 'sed' to filter out raw HTML sections
1442 from the docbook writer test, or raw LaTeX sections from the
1443 context writer test, we now just include these sections.
1444 They can be taken out if it is necessary to process the files.
1445 + Updated latex and context writer tests to remove extra spaces
1447 + Added a markdown table reader test.
1448 + Added markdown-reader-more.txt to test suite, for additional test cases
1449 for raw ConTeXt environments and more.
1451 * Compatibility fixes for CPP, Cabal, and haddock:
1453 + Use CPP in "Extensions" field in pandoc.cabal.
1454 + Removed use of backslash string continuations in source files.
1456 * Removed pandoc.cabal.ghc66. We now require Cabal >= 1.2, GHC >= 6.8,
1459 * Require parsec < 3.
1460 The compatibility module in parsec 3.0.0 gives far worse performance than
1461 parsec 2.1. Eventually pandoc will be upgraded to use the new bytestring
1462 version of parsec, and then we'll go to parsec 3.0.0.
1464 * Removed Text.Regex dependencies by rewriting using plain Haskell
1465 (Text.Pandoc.Writers.RTF, Text.Pandoc.Writers.HTML, Main.hs)
1467 * Moved Text.Pandoc.Writers.DefaultHeaders -> Text.Pandoc.DefaultHeaders.
1471 + Added 'configure' as dependency of 'uninstall-all'.
1472 (It uses the Cabal build program.)
1473 + Makefile: only use --with-hc-pkg if GHC_PKG is defined.
1474 Note that Cabal will automatically choose the ghc-pkg appropriate
1475 for the compiler selected, so normally specifying GHC by itself
1478 * Removed Text.Pandoc.UTF8 module; instead, depend on utf8-string and use
1479 its IO and conversion functions.
1481 * Added -Wall to ghc-options in pandoc.cabal. Cleaned up modules so that
1482 everything is -Wall clean.
1484 + Added pragma to HTML writer to avoid deprecation warning for use of "start" attribute.
1485 + Added pragma to Text/Pandoc/Shared.hs to get rid of "orphan instance" warnings.
1486 (These are caused by the Lift instance for ByteString.)
1488 * Changed the comment used to replace unsafe HTML if sanitize-html option
1491 * Made -c/--css option repeatable on the command line (like -H, -A, -B).
1493 * Moved XML-formatting functions to new unexported module Text.Pandoc.XML.
1495 * Escape '\160' as " ", not " " in XML.
1496 "nbsp" isn't a predefined XML entity.
1498 * Fixed bug in RST reader, which would choke on: "p. one\ntwo\n".
1499 Added some try's in ordered list parsers.
1501 * Man writer: don't escape " as \".
1503 * Allow newline before URL in markdown link references. Resolves Issue #81.
1504 Added tests for this issue in new "markdown-reader-more" tests.
1505 Changed RunTests.hs to run these tests.
1507 * Support for display math. Resolves Issue #47.
1509 + Added a DisplayMath/InlineMath selector to Math inlines.
1510 + Markdown parser yields DisplayMath for $$...$$.
1511 + LaTeX parser yields DisplayMath when appropriate. Removed
1512 mathBlock parsers, since the same effect is achieved by the math
1513 inline parsers, now that they handle display math.
1514 + Writers handle DisplayMath as appropriate for the format.
1515 + Modified tests accordingly; added new tests for display math.
1517 * Use LaTeXMathML instead of ASCIIMathML. LaTeXMathML is closer
1518 to LaTeX in its display of math, and supports many non-math LaTeX environments.
1520 + Changed -m option to use LaTeXMathML rather than ASCIIMathML.
1521 + Modified HTML writer to print raw TeX when LaTeXMathML is
1522 being used instead of suppressing it.
1523 + Removed ASCIIMathML files from data/ and added LaTeXMathML.
1524 + Replaced ASCIIMathML with LaTeXMathML in source files.
1525 + Modified README and pandoc man page source.
1526 + Added --latexmathml option (kept --asciimathml as a synonym
1527 for backwards compatibility)
1529 * Markdown reader: Parse setext headers before atx headers.
1533 parsed by Markdown.pl as an H1 header with contents "# hi".
1535 * Markdown reader: Treat "mixed" lists the same way as Markdown.pl does.
1536 The marker on the first list item determines the type of the whole
1537 list. Thus, a list like
1541 gets parsed as a single ordered list. (Previous versions of pandoc
1542 treated this as an ordered list with an unordered sublist.)
1544 * Markdown smart typography:
1546 + Em dashes no longer eat surrounding whitespace. Resolves Issue #69.
1547 + Use nonbreaking spaces after known abbreviations in markdown parser.
1548 Thus, for example, "Mr. Brown" comes out as "Mr.~Brown" in LaTeX, and does
1549 not produce a sentence-separating space. Resolves Issue #75.
1551 * Markdown writer: Print unicode \160 literally, rather than as .
1553 * Treat '\ ' in (extended) markdown as nonbreaking space.
1554 Print nonbreaking space appropriately in each writer (e.g. ~ in LaTeX).
1556 * The '--sanitize-html' option now examines URIs in markdown links
1557 and images, and in HTML href and src attributes. If the URI scheme
1558 is not on a whitelist of safe schemes, it is rejected. The main point
1559 is to prevent cross-site scripting attacks using 'javascript:' URIs.
1560 See http://www.mail-archive.com/markdown-discuss@six.pairlist.net/msg01186.html
1561 and http://ha.ckers.org/xss.html. Resolves Issue #62.
1565 + Override Text.XHtml's stringToHtml function,
1566 so that characters below 0xff are not converted to numerical entity
1567 references. Also convert '\160' to " ". This should aid readability
1568 and editability of the HTML source. It does presuppose that the HTML
1569 will be served as UTF-8.
1570 + In code blocks, change leading newlines to <br /> tags.
1571 (Some browsers ignore them.) Resolves Issue #71.
1572 See http://six.pairlist.net/pipermail/markdown-discuss/2008-May/001297.html
1573 + Use style attributes rather than css classes for strikethrough
1574 and ordered list styles. This works better when fragments, rather than
1575 standalone documents, are generated.
1577 * HTML reader: Count anything that isn't a known block (HTML) tag as an
1578 inline tag (rather than the other way around). Added "html", "head", and
1579 "body" to list of block tags. Resolves Issue #66, allowing
1580 <lj> to count as an inline tag.
1582 * RTF writer: Fixed bug. Extra spaces were being printed after emphasized,
1583 boldface, and other inline elements. Resolves Issue #64.
1585 * LaTeX reader: improvements in raw LaTeX parsing.
1587 + "loose punctuation" (like {}) parsed as Space
1588 + Para elements must contain more than Str "" and Space elements
1589 + Added parser for "\ignore" command used in literate haskell.
1590 + Reworked unknownCommand and rawLaTeXInline: when not in "parse raw"
1591 mode, these parsers simply strip off the command part and allow
1592 the arguments to be parsed normally. So, for example,
1593 \blorg{\emph{hi}} will be parsed as Emph "hi" rather than
1595 + Parse lhs "code" environments as verbatim.
1596 Refactored parsers for verbatim environments.
1597 + Removed specialEnvironment parser.
1598 + parse '{}', if present, after \textless, \textgreater,
1599 \textbar, \textbackslash, \ldots.
1600 + Parse unescaped special characters verbatim rather than
1601 changing them to spaces. This way arguments of unknown
1602 commands will appear in braces.
1604 * Parse raw ConTeXt environments as TeX in markdown reader.
1607 * Moved BlockWrapper and wrappedBlocksToDoc from ConTeXt writer to Shared.
1609 * Made some structural changes to parsing of raw LaTeX environments.
1610 Previously there was a special block parser for LaTeX environments.
1611 It returned a Para element containing the raw TeX inline. This has
1612 been removed, and the raw LaTeX environment parser is now used in the
1613 rawLaTeXInline parser. The effect is exactly the same, except that we
1614 can now handle consecutive LaTeX and ConTeXt environments not separated
1615 by spaces. This new flexibility is required by the example in
1618 \placeformula \startformula
1622 API change: The LaTeX reader now exports rawLaTeXEnvironment' (which
1623 returns a string) rather than rawLaTeXEnvironment (which returns a block
1624 element). This is more likely to be useful in other applications.
1626 * Use \textsubscr instead of \textsubscript for LaTeX subscript macro.
1627 \textsubscript conflicts with a definition in the memoir class.
1630 * Removed unneeded space after "\\item" in LaTeX and ConTeXt output.
1632 * Added amsmath package to default LaTeX header. Resolves Issue #48.
1634 * Added \setupitemize[autointro] to ConTeXt header, to prevent orphaned
1635 list introduction lines.
1637 * Changed Float to Double in definition of Table element.
1638 (Double is more efficient in GHC.)
1640 * Fixed bug in Markdown parser: regular $s triggering math mode.
1641 For example: "shoes ($20) and socks ($5)."
1642 The fix consists in two new restrictions:
1644 + the $ that ends a math span may not be directly followed by a digit.
1645 + no blank lines may be included within a math span.
1647 Thanks to Joseph Reagle for noticing the bug.
1649 * Use Data.List's 'intercalate' instead of custom 'joinWithSep'.
1650 Removed 'joinWithSep' from Text.Pandoc.Shared.
1652 * Updated README and man pages. Acknowledge contributors in README.
1653 Added paragraph to README about producing S5 with separate CSS/javascript.
1655 * Updated INSTALL to reflect new build system (including configuration
1656 options) and document new dependencies. Added note to INSTALL that
1657 Cabal >= 1.2 is required for build. Resolves Issue #74.
1659 * Fixed some haddock documentation errors.
1661 * Small fix to markdown2pdf man page: only input needs to be piped through iconv.
1663pandoc (0.46) unstable; urgency=low
1667 * Made -H, -A, and -B options cumulative: if they are specified
1668 multiple times, multiple files will be included.
1670 * Added optional HTML sanitization using a whitelist.
1671 When this option is specified (--sanitize-html on the command line),
1672 unsafe HTML tags will be replaced by HTML comments, and unsafe HTML
1673 attributes will be removed. This option should be especially useful
1674 for those who want to use pandoc libraries in web applications, where
1675 users will provide the input.
1677 + Main.hs: Added --sanitize-html option.
1679 + Text.Pandoc.Shared: Added stateSanitizeHTML to ParserState.
1681 + Text.Pandoc.Readers.HTML:
1682 - Added whitelists of sanitaryTags and sanitaryAttributes.
1683 - Added parsers to check these lists (and state) to see if a given
1684 tag or attribute should be counted unsafe.
1685 - Modified anyHtmlTag and anyHtmlEndTag to replace unsafe tags
1687 - Modified htmlAttribute to remove unsafe attributes.
1688 - Modified htmlScript and htmlStyle to remove these elements if
1691 + Modified README and man pages to document new option.
1693 * Improved handling of email addresses in markdown and reStructuredText.
1694 Consolidated uri and email address parsers. (Resolves Issue #37.)
1696 + New emailAddress and uri parsers in Text.Pandoc.Shared.
1697 - uri parser uses parseURI from Network.URI.
1698 - emailAddress parser properly handles email addresses with periods
1701 + Removed uri and emailAddress parsers from Text.Pandoc.Readers.RST
1702 and Text.Pandoc.Readers.Markdown.
1706 + Fixed emph parser so that "*hi **there***" is parsed as a Strong
1707 nested in an Emph. (A '*' is only recognized as the end of the
1708 emphasis if it's not the beginning of a strong emphasis.)
1710 + Moved blockQuote parser before list parsers for performance.
1712 + Modified 'source' parser to allow backslash-escapes in URLs.
1713 So, for example, [my](/url\(1\)) yields a link to /url(1).
1716 + Disallowed links within links. (Resolves Issue #35.)
1717 - Replaced inlinesInBalanced with inlinesInBalancedBrackets, which
1718 instead of hard-coding the inline parser takes an inline parser
1720 - Modified reference and inlineNote to use inlinesInBalancedBrackets.
1721 - Removed unneeded inlineString function.
1722 - Added inlineNonLink parser, which is now used in the definition of
1724 - Added inlineParsers list and redefined inline and inlineNonLink parsers
1726 - Added failIfLink parser.
1728 + Better handling of parentheses in URLs and quotation marks in titles.
1729 - 'source' parser first tries to parse URL with balanced parentheses;
1730 if that doesn't work, it tries to parse everything beginning with
1731 '(' and ending with ')'.
1732 - source parser now uses an auxiliary function source'.
1733 - linkTitle parser simplified and improved, under assumption that it
1734 will be called in context of source'.
1736 + Make 'block' conditional on strictness state, instead of using
1737 failIfStrict in block parsers. Use a different ordering of parsers
1738 in strict mode (raw HTML block before paragraph) for performance.
1739 In non-strict mode use rawHtmlBlocks instead of htmlBlock.
1740 Simplified htmlBlock, since we know it's only called in strict
1743 + Improved handling of raw HTML. (Resolves Issue #36.)
1744 - Tags that can be either block or inline (e.g. <ins>) should
1745 be treated as block when appropriate and as inline when
1746 appropriate. Thus, for example,
1748 should be treated as a paragraph with inline <ins> tags, while
1752 should be treated as a paragraph within <ins> tags.
1753 - Moved htmlBlock after para in list of block parsers. This ensures
1754 that tags that can be either block or inline get parsed as inline
1756 - Modified rawHtmlInline' so that block elements aren't treated as
1758 - Modified para parser so that paragraphs containing only HTML tags and
1759 blank space are not allowed. Treat these as raw HTML blocks instead.
1761 + Fixed bug wherein HTML preceding a code block could cause it to
1762 be parsed as a paragraph. The problem is that the HTML parser
1763 used to eat all blank space after an HTML block, including the
1764 indentation of the code block. (Resolves Issue #39.)
1765 - In Text.Pandoc.Readers.HTML, removed parsing of following space
1767 - In Text.Pandoc.Readers.Markdown, modified rawHtmlBlocks so that
1768 indentation is eaten *only* on the first line after the HTML
1769 block. This means that in
1773 the foo won't be treated as a code block, but in
1779 it will. This seems the right approach for least surprise.
1783 + Fixed bug in parsing explicit links (resolves Issue #44).
1784 The problem was that we were looking for inlines until a '<' character
1785 signaled the start of the URL; so, if you hit a reference-style link,
1786 it would keep looking til the end of the document. Fix: change
1787 inline => (notFollowedBy (char '`') >> inline). Note that this won't
1788 allow code inlines in links, but these aren't allowed in resT anyway.
1790 + Cleaned up parsing of reference names in key blocks and links.
1791 Allow nonquoted reference links to contain isolated '.', '-', '_', so
1792 so that strings like 'a_b_' count as links.
1794 + Removed unnecessary check for following link in str.
1795 This is unnecessary now that link is above str in the definition of
1800 + Modified rawHtmlBlock so it parses </html> and </body> tags.
1801 This allows these tags to be handled correctly in Markdown.
1802 HTML reader now uses rawHtmlBlock', which excludes </html> and </body>,
1803 since these are handled in parseHtml. (Resolves Issue #38.)
1805 + Fixed bug (emph parser was looking for <IT> tag, not <I>).
1807 + Don't interpret contents of style tags as markdown.
1808 (Resolves Issue #40.)
1809 - Added htmlStyle, analagous to htmlScript.
1810 - Use htmlStyle in htmlBlockElement and rawHtmlInline.
1811 - Moved "script" from the list of tags that can be either block or
1812 inline to the list of block tags.
1814 + Modified rawHtmlBlock to use anyHtmlBlockTag instead of anyHtmlTag
1815 and anyHtmlEndTag. This fixes a bug in markdown parsing, where
1816 inline tags would be included in raw HTML blocks.
1818 + Modified anyHtmlBlockTag to test for (not inline) rather than
1819 directly for block. This allows us to handle e.g. docbook in
1820 the markdown reader.
1822 * LaTeX reader: Properly recognize --parse-raw in rawLaTeXInline.
1823 Updated LaTeX reader test to use --parse-raw.
1827 + Modified rules for automatic HTML header identifiers to
1828 ensure that identifiers begin with an alphabetic character.
1829 The new rules are described in README. (Resolves Issue #33.)
1831 + Changed handling of titles in HTML writer so you don't get
1832 "titleprefix - " followed by nothing.
1834 * ConTeXt writer: Use wrappers around Doc elements to ensure proper
1835 spacing. Each block element is wrapped with either Pad or Reg.
1836 Pad'ed elements are guaranteed to have a blank line in between.
1840 + Refactored RST writer to use a record instead of a tuple for state,
1841 and to include options in state so it doesn't need to be passed as
1844 + Use an interpreted text role to render math in restructuredText.
1845 See http://www.american.edu/econ/itex2mml/mathhack.rst for the
1850 * Debian packaging changes:
1852 + Remove the empty 'include' directory in -dev package, which lintian
1854 + Bump Standarts-Version to 3.7.3.
1855 + Use new 'Homepage:' field to specify the upstream URL on suggestion of
1858 -- Recai Oktaş <roktas@debian.org> Tue, 08 Jan 2008 05:13:31 +0200
1860pandoc (0.45) unstable; urgency=low
1864 * Simplified parsing of reference keys and notes in markdown and RST
1865 readers: The Reference data structure from Text.Pandoc.Shared is no
1866 longer needed, since referenceKey and noteBlock parses return strings
1867 (as many blank lines as were occupied by the key or note) and update
1868 state themselves. getPosition and setPosition are now used to ensure
1869 that error messages will give the correct line number. This yields
1870 cleaner (and slightly faster) code, with more accurate parsing error
1873 * Added new Math inline element:
1875 + Markdown and LaTeX readers now convert TeX math into Math elements,
1877 + This allows math to be treated differently from raw TeX in output.
1878 TeX elements are no longer printed in output formats other than
1879 Markdown, LaTeX, and ConTeXt. But Math elements are always printed.
1881 * New default handling of math in writers:
1883 + New module Text.Pandoc.Readers.TeXMath exports readTeXMath, which
1884 parses raw TeX math and outputs a string of Pandoc inlines that
1885 tries to render it as far as possible using unicode characters,
1886 lapsing into literal TeX when needed.
1887 + readTeXMath is now used for default HTML output in HTML, S5, RTF,
1888 and Docbook, if no other method for displaying math in HTML is
1889 specified. Enclosing $'s are no longer printed by default.
1890 + By default, math is put inside <span class="math">. This way it can be
1891 distinguished from the surrounding text, e.g. put in a different
1894 * New --gladtex and --mimetex options for display of math in HTML:
1896 + If --gladtex is specified, math is output between <eq> tags, so
1897 it can be processed by gladTeX.
1898 + If --mimetex is specified, math is put in <img> tags with a link
1899 to the mimetex CGI script (or any other script that takes TeX math
1900 as input and outputs an image). The URL of the script may be
1901 specified, but defaults to /cgi-bin/mimetex.cgi.
1902 + HTMLMathMethod structure in WriterOptions keeps track of how to
1903 display math in HTML output.
1904 + Updated README with a description of the four options for displaying
1909 + Fixed bug: parser for minimized attributes should not swallow
1911 + Simplified HTML attribute parsing.
1912 + Changed parsing of code blocks in HTML reader: <code> tag is no
1913 longer needed. <pre> suffices. All HTML tags in the code block
1914 (e.g. for syntax highlighting) are skipped, because they are not
1915 portable to other output formats. A <code>...</code> block not
1916 surrounded by <pre> now counts as inline HTML, not a code block.
1917 + Remove just one leading and one trailing newline from contents of
1918 <pre>...</pre> in codeBlock parser.
1922 + Removed support for box-style block quotes.
1923 + Require space before title in links and references.
1924 This fixes a bug in parsing URLs like http://silly/url(withparen).
1925 + Improved and simplified setextHeader parser.
1926 + Fixed logic in smart quote parsing, adding some needed 'try'
1928 + Fixed smart quote parsing so that unicode characters 8216 and 8217
1929 are recognized as single quotes, and 8220 and 8221 as double quotes.
1933 + Fixed bug in parsing of code blocks. Previously a full tab indent
1934 was required, but RST allows code to be indented any amount.
1936 + Allow field lists to be indented.
1937 + Parse the contents of field lists instead of treating as a raw string.
1938 + Represent field lists as definition lists instead of blockquotes.
1939 + Fixed bug in which metadata would be overridden if the document
1940 contained multiple field lists.
1941 + Parse fields associated with '.. image::' blocks, and use 'alt'
1942 field, if given, for image alt and title attributes.
1946 + Modified specialChar so that '"' characters are parsed.
1947 + Fixed a bug in parsing of \[ \] math blocks (thanks to Mark Kalderon).
1951 + Changes in handling of math (see above).
1952 + Don't produce HTML for table of contents if there are
1953 no headers. (This would be an empty list, which is invalid XHTML.)
1957 + Don't print title attribute if title is empty. (This differs from
1958 the behavior of Markdown.pl, and agrees with PHP Markdown. But John
1959 Gruber has indicated that he prefers this behavior.) Adjusted test
1961 + Fixed incorrect line wrapping in paragraphs including hard line
1962 breaks. Resolves Issue #25.
1963 + Fixed bug in markdown writer: If an ordered list item began with
1964 a marker greater than 3 characters in width, and the item took more
1965 than one line, it would appear on the line after the list marker,
1972 Now it works as follows:
1979 + Fixed bug in RST writer's handling of ordered lists. Previously,
1980 list items with multiple lines would not always line up with
1981 single-line list items. Now, list items are nested the length of
1982 the list marker + 1. This looks better and ensures that list items
1983 all line up. (Note that list markers are padded to the length of
1984 the longest list marker in the series.)
1985 + Use 3-space indent for unordered lists.
1986 + If label for a link reference contains a colon, surround it by `
1987 signs so it won't be interpreted as the end of the link label.
1991 + Cleaner output for footnotes. Footnotes now always begin on a new
1992 line, and the final } is on a line by itself only when it needs to
1993 be (i.e. only when the note ends with a Verbatim environment).
1994 + Added writer options to state, so state doesn't need to be passed as
1996 + Text wrapping now provided, using wrapTeXIfNeeded.
1998 * ConTeXt writer: many improvements for more idiomatic ConTeXt output
1999 (thanks to Idris Samawi Hamid for suggestions).
2001 + PrettyPrint module now used for output.
2002 + Writer options are now in state, so they don't have to be passed as
2004 + Text wrapping now provided, using wrapTeXIfNeeded.
2005 + Better treatment of footnotes: footnotes are always on lines by
2006 themselves, and the final } is on a line by itself only when
2007 it needs to be (after \stoptyping).
2008 + Use \subject, \subsubject, ... or \section, \subsection, ... for headings,
2009 depending on whether --number-sections option is selected.
2010 + Extra blank line inserted after \stopitemize
2011 + Use new, "official" definition of blockquote environment. Also, use
2012 blank line after \startblockquote to balance blank line at the end.
2013 + Both itemized and enumerated lists are now generated using
2014 \start-stopitemize, with appropriate options. Removed definitions
2015 of ltxenum and ltxitem, which are no longer needed. Provided
2016 defaults for itemized lists in the preamble. State keeps track of
2017 ordered list level, so that when default numbering is specified,
2018 the appropriate scheme can be used.
2019 + Changed \useurl to \useURL.
2020 + Changed link color from red to blue.
2021 + Use \subsubsubsubsection etc., since these are supported
2022 (up to at least sub x 5).
2024 * Text.Pandoc.Shared:
2026 + Save and restore position in parseFromString, so that accurate
2027 error messages can be given.
2028 + Improved efficiency of romanNumeral parser.
2029 + Added wrappedTeX and wrapTeXIfNeeded functions. These ensure
2030 that footnotes occur on lines by themselves (to make them
2031 easier to see and move) and do not screw up line wrapping.
2033 * Text.Pandoc.UTF8: modified fromUTF8 to strip out the BOM
2034 if present. Windows Notepad and other applications insert a
2035 BOM at the beginning of a UTF8 file.
2037 * Main.hs (tabFilter): Treat '\r' at end of line as newline (in
2038 addition to "\r\n" and '\n').
2040 * Added a writer option for wrapped text and a command-line option
2041 '--no-wrap', which disables text wrapping and minimizes whitespace
2042 in HTML. (Resolves Issue #26.)
2044 + Added support for '--no-wrap' to Main.hs.
2045 + Added wrapIfNeeded function to Text.Pandoc.Shared.
2046 + Use wrapIfNeeded instead of wrapped in the RST, Man, Docbook, and
2048 + Added render and renderFragment helpers to HTML writer.
2050 * Modified html2markdown to run tidy only if the HTML cannot be
2051 parsed. Previously html2markdown piped all input through tidy
2052 before passing it to pandoc. This caused problems on certain pages
2053 (e.g. http://daringfireball.com/markdown) which have well-formed
2054 XHTML that causes tidy to choke. The solution is to pipe through
2055 tidy only if pandoc cannot parse the input by itself. This means
2056 that a temp file is now always used, even when input comes from a
2057 local file or standard input.
2059 * Removed 'version' constant from Main.hs; added 'pandocVersion' to
2060 Text.Pandoc library.
2064 + Modified to work with GHC 6.8 and Cabal configurations. (For GHC
2065 6.8, pretty and containers must be added to Build-Depends, and it
2066 is desirable to use the -O2 compiler option.) Cabal configurations
2067 allows one to select options depending on the compiler version.
2068 For GHC 6.6, the splitBase option can be disabled.
2069 + pandoc.cabal.ghc66 is provided for users with older versions of
2070 Cabal, which do not support configurations.
2071 + Use Ghc-Prof-Options to ensure that '-auto-all' is used when
2072 '--enable-(executable|library)-profiling' is specified. Updated
2073 PROFILING instructions accordingly.
2077 + Makefile now checks GHC version. If GHC is 6.6, pandoc.cabal.ghc66
2078 is copied to pandoc.cabal, and the old pandoc.cabal is copied
2079 to pandoc.cabal.orig. Otherwise, pandoc.cabal is copied to
2080 pandoc.cabal.orig but otherwise unmodified. This way, the Makefile
2081 will work properly with either GHC 6.6 or 6.8.
2082 + Changed BUILDCONF to point to dist/setup-config, not .setup-config.
2083 This is where current versions of Cabal put it.
2084 + Added $(BUILDCMD) target, so setup doesn't get compiled every time.
2085 + Removed dependency of templates on ./templates, which is circular
2086 now that templates is a subdirectory of the top-level.
2088 * MacPorts Portfile:
2090 + Modified to install the pandoc library in addition to programs.
2091 + Installation must be done manually rather than using Makefile's
2093 + Note that the library must be registered in the activate phase,
2094 after the library files have been copied out of the destroot.
2095 Cabal generates a 'register.sh' script that will do this.
2097 * debian/control: Added libghc6-network-dev, libghc6-xhtml-dev, and
2098 libghc6-mtl-dev as dependencies for libghc6-pandoc-dev.
2101 * debian/rules: Converted to UTF-8.
2103 * Changed pandoc home page to http://johnmacfarlane.net/pandoc/.
2105 * Updated ASCIIMathML.js to latest version.
2107 * Directory structure:
2109 + Moved everything from src into the top-level directory.
2110 + Changed references to source directory in Makefile and
2112 + Moved ASCIIMathML.js, headers, and ui into templates directory.
2113 + Modified fillTemplates.pl to reflect new paths.
2117 * Makefile: Fixed the issue of having two copies of the library
2118 documentation under some usage scenarios.
2120 * Replaced 'ghc' with '$(GHC)' in Makefile, and made GHC
2121 and GHC_PKG configurable through the environment, to support
2122 unusual ghc installations. For example:
2123 GHC=/opt/ghc/bin/ghc GHC_PKG=/opt/ghc/bin/ghc-pkg make
2125 -- Recai Oktaş <roktas@debian.org> Sun, 07 Oct 2007 20:51:43 +0300
2127pandoc (0.44) unstable; urgency=low
2131 * Fixed bug in HTML writer: when --toc was used, anchors were put around
2132 headers, which is invalid XHTML (block content within inline element).
2133 Now the anchors are put inside the header tags. Resolves Issue #23.
2135 * Added xmlns attribute to html element in html writer tests.
2136 This attribute is added by more recent versions of the
2137 xhtml library (>= 3000), and is required for valid XHTML.
2141 * On configure, compile 'Setup.hs' to 'setup' and use 'setup' as the build
2142 command instead of 'runhaskell', which, on some platforms (such as s390,
2143 alpha, m68k), throws the following error:
2145 runhaskell Setup.hs configure --prefix=/usr
2146 ghc-6.6.1: not built for interactive use
2148 This causes a serious FTBFS bug. Closes: #440668.
2150 -- Recai Oktaş <roktas@debian.org> Mon, 03 Sep 2007 18:24:02 +0300
2152pandoc (0.43) unstable; urgency=low
2156 * The focus of this release is performance. The markdown parser
2157 is about five times faster than in 0.42, based on benchmarks
2158 with the TextMate manual.
2160 * Main.hs: Replaced CRFilter and tabFilter with single function
2161 tabFilter, which operates on the whole string rather than breaking
2162 it into lines, and handles dos-style line-endings as well as tabs.
2164 * Added separate LaTeX reader and native reader tests; removed
2167 * Text.Pandoc.Shared:
2169 + Removed tabsToSpaces and tabsInLine (they were used only in Main.hs.)
2170 + General code cleanup (to elimante warnings when compiling with -Wall.)
2171 + Added 'wrapped' function, which helps wrap text into paragraphs,
2172 using the prettyprinting library.
2173 + Rewrote charsInBalanced and charsInBalanced'.
2174 - Documented restriction: open and close must be distinct characters.
2175 - Rearranged options for greater efficiency.
2176 - Bug fix: Changed inner call to charsInBalanced inside
2177 charsInBalanced' to charsInBalanced'.
2178 + anyLine now requires that the line end with a newline (not eof).
2179 This is a harmless assumption, since we always add newlines to the
2180 end of a block before parsing with anyLine, and it yields a 10% speed
2182 + Removed unnecessary 'try' in anyLine.
2183 + Removed unneeded 'try' from romanNumeral parser.
2184 + Use notFollowedBy instead of notFollowedBy' in charsInBalanced.
2185 + Removed unneeded 'try' in parseFromString.
2186 + Removed unneeded 'try' from stringAnyCase. (Now it behaves
2188 + Changed definition of 'enclosed' in Text.Pandoc.Shared so that
2189 'try' is not automatically applied to the 'end' parser. Added
2190 'try' in calls to 'enclosed' where needed. Slight speed increase.
2194 + Replaced individual wrapping routines in RST, Man, and Markdown
2195 writers with 'wrapped' from Text.Pandoc.Shared.
2196 + Rewrote LaTeX writer to use the prettyprinting library,
2197 so we get word wrapping, etc.
2198 + Modified latex writer tests for new latex writer using prettyprinter.
2199 + Fixed bug in LaTeX writer: autolinks would not cause
2200 '\usepackage{url}' to be put in the document header. Also, changes
2201 to state in enumerated list items would be overwritten.
2202 + In Markdown writer, escape paragraphs that begin with ordered list
2203 markers, so they don't get interpreted as ordered lists.
2205 * Text.Pandoc.Reades.LaTeX:
2207 + Fixed bug in LaTeX reader, which wrongly assumed that the roman
2208 numeral after "enum" in "setcounter" would consist entirely of
2209 "i"s. 'enumiv' is legitimate.
2210 + LaTeX command and environment names can't contain numbers.
2211 + Rearranged order of parsers in inline for slight speed improvement.
2212 + Added '`' to special characters and 'unescapedChar'.
2214 * Text.Pandoc.Readers.RST:
2216 + Removed unneeded try's in RST reader; also minor code cleanup.
2218 + Rearranged parsers in inline (doubled speed).
2220 * Text.Pandoc.Readers.Markdown:
2222 + Skip notes parsing if running in strict mode. (This yields a nice
2223 speed improvement in strict mode.)
2224 + Simplify autolink parsing code, using Network.URI to test for
2225 URIs. Added dependency on network library to debian/control and
2227 + More perspicuous definition of nonindentSpaces.
2228 + Removed unneeded 'try' in 'rawLine'.
2229 + Combined linebreak and whitespace into a new whitespace parser, to
2230 avoid unnecessary reparsing of space characters.
2231 + Removed unnecessary 'try' in 'codeBlock', 'ellipses', 'noteMarker',
2232 'multilineRow', 'dashedLine', 'rawHtmlBlocks'.
2233 + Use lookAhead in parsers for setext headers and definition lists
2234 to see if the next line begins appropriately; if not, don't waste
2235 any more time parsing.
2236 + Don't require blank lines after code block. (It's sufficient to
2237 end code block with a nonindented line.)
2238 + Changed definition of 'emph': italics with '_' must not
2239 be followed by an alphanumeric character. This is to help
2240 prevent interpretation of e.g. [LC_TYPE]: my_type as
2241 '[LC<em>TYPE]:my</em>type'.
2242 + Improved Markdown.pl-compatibility in referenceLink: the two parts
2243 of a reference-style link may be separated by one space, but not
2244 more... [a] [link], [not] [a link].
2245 + Fixed markdown inline code parsing so it better accords with
2246 Markdown.pl: the marker for the end of the code section is a clump
2247 of the same number of `'s with which the section began, followed
2248 by a non-` character. So, for example,
2249 ` h ``` i ` -> <code>h ``` i</code>.
2250 + Split 'title' into 'linkTitle' and 'referenceTitle', since the
2251 rules are slightly different.
2252 + Rewrote 'para' for greater efficiency.
2253 + Rewrote link parsers for greater efficiency.
2254 + Removed redundant 'referenceLink' in definition of inline (it's
2256 + Refactored escapeChar so it doesn't need 'try'.
2257 + Refactored hrule for performance in Markdown reader.
2258 + More intelligent rearranging of 'inline' so that most frequently
2259 used parsers are tried first.
2260 + Removed tabchar parser, as whitespace handles tabs anyway.
2262 * Text.Pandoc.CharacterReferences:
2265 + Removed unnecessary 'try's for a speed improvement.
2266 + Removed unnecessary '&' and ';' from the entity table.
2270 + Makefile: Get VERSION from cabal file, not Main.hs.
2271 + Modified MacPorts Portfile:
2273 - Build and install libraries and library documentation in
2274 addition to pandoc executable
2275 - Added template item for md5 sum in Portfile.in.
2276 - Incorporated changes from MacPorts repository (r28278).
2277 + FreeBSD port: Don't try to generate distinfo in Makefile.
2278 It can be made using 'make makesum' in FreeBSD.
2279 + Make both freebsd and macports targets depend on tarball.
2281 * Website and documentation:
2283 + Updated INSTALL instructions.
2284 + Added pandocwiki demo to website.
2285 + Removed local references to Portfile, since pandoc is now in the
2286 MacPorts repository.
2288 -- Recai Oktaş <roktas@debian.org> Sun, 02 Sep 2007 15:50:11 +0300
2290pandoc (0.42) unstable; urgency=low
2294 * Main.hs: Use utf8 conversion on the extra files loaded with
2295 the -H, -C, -B, and -A options. This fixes problems with unicode
2296 characters in these files.
2298 * Exposed Text.Pandoc.ASCIIMathML, since it is imported in
2299 Text.Pandoc.Readers.HTML and without it we get a linking error when
2304 + Added new rule for enhanced markdown ordered lists: if the list
2305 marker is a capital letter followed by a period (including a
2306 single-letter capital roman numeral), then it must be followed by
2307 at least two spaces. The point of this is to avoid accidentally
2308 treating people's initials as list markers: a paragraph might begin,
2309 "B. Russell was an English philosopher," and this shouldn't be
2310 treated as a list. Documented change in README.
2311 + Blocks that start with "p. " and a digit are no longer treated
2312 as ordered lists (it's a page number).
2313 + Added a needed 'try' to listItem.
2314 + Removed check for a following setext header in endline.
2315 A full test is too inefficient (doubles benchmark time), and the
2316 substitute we had before is not 100% accurate.
2317 + Don't use Code elements for autolinks if --strict specified.
2319 * LaTeX writer: When a footnote ends with a Verbatim environment, the
2320 close } of the footnote cannot occur on the same line or an error occurs.
2321 Fixed this by adding a newline before the closing } of every footnote.
2324 + Removed incorrect "{}" around style information in HTML tables.
2325 Column widths now work properly in HTML.
2326 + If --strict option is specified (and --toc is not), don't include
2327 identifiers in headers, for better Markdown compatibility.
2331 + Separated $(web_dest) and website targets.
2332 + In website, index.txt is now constructed from template index.txt.in.
2333 + Added freebsd target to Markefile. This creates the freebsd Makefile
2334 from Makefile.in, and creates distinfo. Removed Makefile and distinfo
2335 from the repository.
2336 + Added macport target to Makefile. Portfile is built from template
2338 + Removed OSX package targets. (Too many difficulties involving
2339 dependencies on dynamic libraries.)
2340 + More complete INSTALL instructions for all architectures.
2343 + Added a programming demo, pandocwiki.
2347 * Do not forget to close pandoc's ITP. Closes: #391666
2349 -- Recai Oktaş <roktas@debian.org> Sun, 26 Aug 2007 22:51:32 +0300
2351pandoc (0.41) unstable; urgency=low
2355 * Fixed bugs in HTML reader:
2356 + Skip material at end *only if* </html> is present (previously,
2357 only part of the document would be parsed if an error was
2358 found; now a proper error message is given).
2359 + Added new constant eitherBlockOrInline with elements that may
2360 count either as block-level or as inline. Modified isInline and
2361 isBlock to take this into account.
2362 + Modified rawHtmlBlock to accept any tag (even an inline tag):
2363 this is innocuous, because rawHtmlBlock is tried only if a regular
2364 inline element can't be parsed.
2365 + Added a necessary 'try' in definition of 'para'.
2367 * Fixed bug in markdown ordered list parsing. The problem was that
2368 anyOrderedListStart did not check for a space following the
2369 ordered list marker. So in 'A.B. 2007' the parser would be
2370 expecting a list item, but would not find one, causing an error.
2371 Fixed a similar bug in the RST reader. Resolves Issue #22.
2373 * Refactored RST and Markdown readers using parseFromString.
2375 * LaTeX reader will now skip anything after \end{document}.
2377 * Fixed blockquote output in markdown writer: previously, block
2378 quotes in indented contexts would be indented only in the first
2381 * Added note to INSTALL about variations in versions of the xhtml
2382 library that can lead to failed tests (thanks to Leif LeBaron).
2384 -- Recai Oktaş <roktas@debian.org> Sun, 19 Aug 2007 23:26:07 +0300
2386pandoc (0.4) unstable; urgency=low
2390 * Added two new output formats: groff man pages and ConTeXt. By
2391 default, output files with extensions ".ctx" and ".context" are
2392 assumed to be ConTeXt, and output files with single-digit extensions
2393 are assumed to be man pages.
2395 * Enhanced ordered lists (documented in README, under Lists):
2396 + The OrderedList block element now stores information about
2397 list number style, list number delimiter, and starting number.
2398 + The readers parse this information when possible.
2399 + The writers use this information to style ordered lists.
2400 + The enhancement can be disabled using the --strict option.
2402 * Added support for tables (with a new Table block element). Two kinds
2403 of tables are supported: a simple table with one-line rows, and a
2404 more complex variety with multiline rows. All output formats are
2405 supported, but only markdown tables are parsed at the moment. The
2406 syntax is documented in README.
2408 * Added support for definition lists (with a new DefinitionList block
2409 element). All output and input formats are supported. The syntax is
2410 documented in README.
2412 * Added support for superscripts and subscripts (with new Superscript
2413 and Subscript inline elements). All input and output
2414 formats. The syntax is documented in README.
2416 * Added support for strikeout (with a new Strikeout inline element).
2417 All input and output formats are supported. Thanks to Bradley Kuhn,
2418 who contributed a patch. The syntax is documented in README. Resolves
2421 * Added a --toc|--table-of-contents option. This causes an automatically
2422 generated table of contents (or an instruction that creates one) to
2423 be inserted at the beginning of the document. Not supported in S5,
2424 DocBook, or man page writers.
2426 * Modified the -m|--asciimathml option:
2428 + If an optional URL argument is provided, a link is inserted
2429 instead of the contents of the ASCIIMathML.js script.
2430 + Nothing is inserted unless the document actually contains
2433 * Removed Blank block element as unnecessary.
2435 * Removed Key and Note blocks from the Pandoc data structure. All
2436 links are now stored as explicit links, and note contents are
2437 stored with the (inline) notes.
2439 + All link Targets are now explicit (URL, title) pairs; there
2440 is no longer a 'Ref' target.
2441 + Markdown and RST parsers now need to extract data from key and
2442 note blocks and insert them into the relevant inline elements.
2443 Other parsers have been simplified, since there is no longer any need
2444 to construct separate key and note blocks.
2445 + Markdown, RST, and HTML writers need to construct lists of
2446 notes; Markdown and RST writers need to construct lists of link
2447 references (when the --reference-links option is specified); and
2448 the RST writer needs to construct a list of image substitution
2449 references. All writers have been rewritten to use the State monad
2450 when state is required.
2451 + Several functions (generateReference, keyTable,
2452 replaceReferenceLinks, replaceRefLinksBlockList, and some auxiliaries
2453 used by them) have been removed from Text.Pandoc.Shared, since
2454 they are no longer needed. New functions and data structures
2455 (Reference, isNoteBlock, isKeyBlock, isLineClump) have been
2456 added. The functions inTags, selfClosingTag, inTagsSimple, and
2457 inTagsIndented have been moved to the DocBook writer, since that
2458 is now the only module that uses them. NoteTable is now exported
2459 in Text.Pandoc.Shared.
2460 + Added stateKeys and stateNotes to ParserState; removed stateKeyBlocks,
2461 stateKeysUsed, stateNoteBlocks, stateNoteIdentifiers, stateInlineLinks.
2462 + Added writerNotes and writerReferenceLinks to WriterOptions.
2464 * Added Text.Pandoc module that exports basic readers, writers,
2465 definitions, and utility functions. This should export everything
2466 needed for most uses of Pandoc libraries. The haddock documentation
2467 includes a short example program.
2469 * Text.Pandoc.ASCIIMathML is no longer an exported module.
2471 * Added Text.Pandoc.Blocks module to help in printing markdown
2472 and RST tables. This module provides functions for working with
2473 fixed-width blocks of text--e.g., placing them side by side, as
2476 * Refactored to avoid reliance on Haskell's Text.Regex library, which
2477 (a) is slow, and (b) does not properly handle unicode. This fixed
2478 some strange bugs, e.g. in parsing S-cedilla, and improved performance.
2480 + Replaced 'gsub' with a general list function 'substitute'
2481 that does not rely on Text.Regex.
2482 + Rewrote extractTagType in HTML reader so that it doesn't use
2484 + In Markdown reader, replaced email regex test with a custom email
2485 autolink parser (autoLinkEmail). Also replaced selfClosingTag regex
2486 with a custom function isSelfClosingTag.
2487 + Modified Docbook writer so that it doesn't rely on Text.Regex for
2488 detecting 'mailto' links.
2489 + Removed escapePreservingRegex and reamped entity-handling
2490 functions in Text.Pandoc.Shared and Text.Pandoc.CharacterReferences to
2491 avoid reliance on Text.Regex (see below on character reference
2494 * Renamed Text.Pandoc.Entities as Text.Pandoc.CharacterReferences.
2496 * Changed handling of XML entities. Entities are now parsed (and unicode
2497 characters returned) in the Markdown and HTML readers, rather than being
2498 handled in the writers. In HTML and Docbook writers, UTF-8 is now used
2499 instead of entities for characters above 128. This makes the HTML and
2500 DocBook output much more readable and more easily editable.
2502 + Removed sgmlHexEntity, sgmlDecimalEntity, sgmlNamedEntity, and
2503 sgmlCharacterEntity regexes from Text.Pandoc.Shared.
2504 + Renamed escapeSGMLChar to escapeCharForXML. Added escapeStringForXML.
2505 Moved both functions to Text.Pandoc.Writers.Docbook.
2506 + Added characterReference parser to Text.Pandoc.CharacterReferences.
2507 This parses a string and return a unicode character.
2508 + Rewrote decodeCharacterReferences to use the new parser instead of
2510 + Added new charRef parser for Markdown and HTML, which replaces the
2511 old 'entity' parser. Added '&' as a special character in Markdown reader.
2512 + Modified HTML and Markdown readers to call decodeEntities on all raw
2513 strings (e.g. authors, dates, link titles), to ensure that no
2514 unprocessed entities are included in the native representation of
2515 the document. (In the HTML reader, most of this work is done by a
2516 change in extractAttributeName.)
2517 + In XML and Markdown output, escape unicode nonbreaking space as ' ',
2518 since a unicode non-breaking space is impossible to distinguish visually
2519 from a regular space. (Resolves Issue #3.)
2520 + Removed encodeEntitiesNumerical.
2521 + Use Data.Map for entityTable and (new) reverseEntityTable, for a
2522 slight performance boost over the old association list.
2523 + Removed unneeded decodeEntities from 'str' parser in HTML and
2526 * Text.Pandoc.UTF8: Renamed encodeUTF8 to toUTF8, decodeUTF8 to
2527 fromUTF8, for clarity.
2529 * Replaced old haskell98 module names replaced by hierarchical module
2530 names, e.g. List by Data.List. Removed haskell98 from dependencies
2531 in pandoc.cabal, and added mtl (needed for state monad). Substituted
2534 * Refactored and cleaned up character escaping in writers, using
2535 backslashEscapes and escapeStringUsing functions.
2537 * Instead of adding "\n\n" to the end of an input string in Main.hs,
2538 this is now done in the readers. This makes the libraries behave
2539 the way you'd expect from the pandoc program. Resolves Issue #10.
2541 * URLs and email addresses in autolinks are now typeset as Code.
2543 * In Main.hs, changed putStr to putStrLn -- mainly because MacOS X
2544 doesn't display the whole output unless there's a line ending.
2546 * Major code cleanup in all modules, for greater consistency, concision,
2551 + Fixed several bugs (extractTagType, attribute parsing).
2552 + Remove Null blocks in lists of blocks when possible.
2553 + Allow HTML comments as raw HTML inline.
2557 + Ordered list items may no longer begin with uppercase letters, or
2558 letters greater than 'n'. (This prevents first initials and page
2559 reference, e.g. 'p. 400', from being parsed as beginning lists.)
2560 Also, numbers beginning list items may no longer end with ')',
2561 which is now allowed only after letters. Note: These changes
2562 may cause documents to be parsed differently. Users should take
2564 + Changed autoLink parsing to conform better to Markdown.pl's
2565 behavior. <google.com> is not treated as a link, but
2566 <http://google.com>, <ftp://google.com>, and <mailto:google@google.com>
2568 + Cleaned up handling of embedded quotes in link titles. Now these are
2569 stored as a '"' character, not as '"'.
2570 + Use lookAhead parser for the 'first pass' (looking for reference keys),
2571 instead of parsing normally, then using setInput to reset input. This
2572 yields a slight performance boost.
2573 + Fixed several bugs in smart quote recognition.
2574 + Fixed bug in indentSpaces (which didn't properly handle
2575 cases with mixed spaces and tabs).
2576 + Consolidated 'text', 'special', and 'inline' into 'inline'.
2577 + Fixed bug which allowed URL and title to be separated by multiple blank
2578 lines in links and reference keys. They can be on separate lines but
2579 can't have blank lines between them.
2580 + Correctly handle bracketed text inside inline footnotes and links,using
2581 new function inlinesInBalanced. Resolves Issue #14.
2582 + Fixed bug in footnotes: links in footnotes were not being
2583 processed. Solution: three-stage parse. First, get all the
2584 reference keys and add information to state. Next, get all the
2585 notes and add information to state. (Reference keys may be needed
2586 at this stage.) Finally, parse everything else.
2587 + Replaced named constants like 'emphStart' with literals.
2588 + Removed an extra occurance of escapedChar in definition of inline.
2592 + Allow the URI in a RST hyperlink target to start on the line
2593 after the reference key.
2594 + Added 'try' in front of 'string', where needed, or used a different
2595 parser. This fixes a bug where ````` would not be correctly parsed as
2597 + Fixed slow performance in parsing inline literals in RST reader. The
2598 problem was that ``#`` was seen by 'inline' as a potential link or image.
2599 Fix: inserted 'notFollowedBy (char '`')' in link parsers.
2601 + Use lookAhead instead of getInput/setInput in RST reader. Removed
2602 unneeded getState call, since lookAhead automatically saves and
2603 restores the parser state.
2604 + Allow hyperlink target URIs to be split over multiple lines, and
2605 to start on the line after the reference. Resolves Issue #7.
2606 + Fixed handling of autolinks.
2610 + Replaced 'choice [(try (string ...), ...]' idiom with 'oneOfStrings',
2612 + Added clauses for tilde and caret. Tilde is \ensuremath{\sim}, and
2613 caret is \^{}, not \^ as before.
2614 + Added parsing for \url.
2615 + Parse \texttt{} as code, provided there's nothing fancy inside.
2619 + Modified HTML writer to use the Text.XHtml library. This results
2620 in cleaner, faster code, and it makes it easier to use Pandoc in
2621 other projects, like wikis, which use Text.XHtml. Two functions are
2622 now provided, writeHtml and writeHtmlString: the former outputs an
2623 Html structure, the latter a rendered string. The S5 writer is also
2624 changed, in parallel ways (writeS5, writeS5String).
2625 + The Html header is now written programmatically, so it has been
2626 removed from the 'headers' directory. The S5 header is still
2627 needed, but the doctype and some of the meta declarations have
2628 been removed, since they are written programatically. This change
2629 introduces a new dependency on the xhtml package.
2630 + Fixed two bugs in email obfuscation involving improper escaping
2631 of '&' in the <noscript> section and in --strict mode. Resolves
2633 + Fixed another bug in email obfuscation: If the text to be obfuscated
2634 contains an entity, this needs to be decoded before obfuscation.
2635 Thanks to thsutton for the patch. Resolves Issue #15.
2636 + Changed the way the backlink is displayed in HTML footnotes.
2637 Instead of appearing on a line by itself, it now generally
2638 appears on the last line of the note. (Exception: when the
2639 note does not end with a Plain or Para block.) This saves space
2641 + Added automatic unique identifiers to headers:
2642 - The identifier is derived from the header via a scheme
2643 documented in README.
2644 - WriterState now includes a list of header identifiers and a table
2645 of contents in addition to notes.
2646 - The function uniqueIdentifiers creates a list of unique identifiers
2647 from a list of inline lists (e.g. headers).
2648 - This list is part of WriterState and gets consumed by blockToHtml
2649 each time a header is encountered.
2650 + Include CSS for .strikethrough class in header only if strikethrough
2651 text appears in the document.
2652 + If the 'strict' option is specified, elements that do not appear in
2653 standard markdown (like definition lists) are passed through as
2655 + Simplified treatment of autolinks, using pattern matching instead of
2660 + Links in markdown output are now printed as inline links by default,
2661 rather than reference links. A --reference-links option has been added
2662 that forces links to be printed as reference links. Resolves Issue #4.
2663 + Use autolinks when possible. Instead of [site.com](site.com),
2668 + Rewrote to use the State monad. The preamble now includes only those
2669 packages that are actually required, given the document's content.
2670 Thus, for example, if strikeout is not used, ulem is not required.
2671 Modified LaTeXHeader accordingly.
2672 + Modified LaTeX writer to insert '\,' between consecutive quotes.
2673 + Removed unused function tableRowColumnWidths.
2674 + Simplified code for escaping special characters.
2675 + Leave extra blank line after \maketitle.
2676 + Include empty '\author{}' when no author specified to avoid LaTeX
2678 + Include fancyvrb code in header only if needed -- that is, only
2679 if there is actually code in a footnote.
2680 + Use \url{} for autolinks.
2681 + Include [mathletters] option in ucs package, so that basic unicode
2682 Greek letters will work correctly.
2684 * RST writer: Force blank line before lists, so that sublists will
2685 be handled correctly.
2687 * Docbook writer: Fixed a bug: email links with text, like
2688 [foo](me@bar.baz), were being incorrectly treated as autolinks.
2690 * Removed Text.ParserCombinators.Pandoc and moved all its functions to
2693 * Text.Pandoc.Shared:
2695 + Added defaultWriterOptions.
2696 + Added writerTableOfContents to WriterOptions.
2697 + Added writerIgnoreNotes option to WriterOptions. This is needed
2698 for processing header blocks for a table of contents, since notes on
2699 headers should not appear in the TOC.
2700 + Added prettyprinting for native Table format.
2701 + Removed some unneeded imports.
2702 + Moved escape and nullBlock parsers from
2703 Text.ParserCombinators.Pandoc, since the latter is for
2704 general-purpose parsers that don't depend on Text.Pandoc.Definition.
2705 + Moved isHeaderBlock from Text.Pandoc.Writers.HTML.
2706 + Moved Element, headerAtLeast, and hierarchicalize from Docbook
2707 writer, because HTML writer now uses these in constructing a table
2709 + Added clauses for new inline elements (Strikeout, Superscript,
2710 Subscript) to refsMatch.
2711 + Removed backslashEscape; added new functions escapeStringUsing and
2713 + Moved failIfStrict from markdown reader, since it is now used also
2715 + Added a 'try' to the definition of indentSpaces.
2716 + In definition of 'reference', added check to make sure it's not a note
2718 + Added functions: camelCaseToHyphenated, toRomanNumeral,
2719 anyOrderedListMarker, orderedListmarker, orderedListMarkers,
2720 charsInBalanced', withHorizDisplacement, romanNumeral
2721 + Fixed a bug in the anyLine parser. Previously it would parse an empty
2722 string "", but it should fail on an empty string, or we get an error
2723 when it is used inside "many" combinators.
2724 + Removed followedBy' parser, replacing it with the lookAhead parser from
2726 + Added some needed 'try's before multicharacter parsers, especially in
2728 + Removed the 'try' from the 'end' parser in 'enclosed', so that
2729 'enclosed' behaves like 'option', 'manyTill', etc.
2730 + Added lineClump parser, which parses a raw line block up to and
2731 including any following blank lines.
2732 + Renamed parseFromStr to parseFromString.
2733 + Added a 'try' to the 'end' parser in 'enclosed'. This makes errors in
2734 the use of 'enclosed' less likely. Removed some now-unnecessary 'try's
2736 + Removed unneeded 'try' in blanklines.
2737 + Removed endsWith function and rewrote calling functions to use
2739 + Added >>~ combinator.
2740 + Fixed bug in normalizeSpaces: Space:Str "":Space should compress to
2743 * Refactored runtests.pl; added separate tests for tables.
2747 + Added -asxhtml flag to tidy in html2markdown. This will
2748 perhaps help the parser, which expects closing tags.
2749 + Modified markdown2pdf to run pdflatex a second time if --toc or
2750 --table-of-contents was specified; otherwise the table of
2751 contents won't appear.
2752 + Modified markdown2pdf to print a helpful message if the 'ulem'
2753 LaTeX package is required and not found.
2755 * Changes to build process:
2757 + Dropped support for compilation with GHC 6.4. GHC 6.6 or higher
2759 + Removed cabalize and Pandoc.cabal.in. The repository now contains
2760 pandoc.cabal itself.
2761 + Pandoc.cabal has been changed to pandoc.cabal, because HackageDB
2762 likes the cabal file to have the same name as the tarball.
2763 + Expanded and revised the package description in pandoc.cabal.
2764 Revised the package synopsis.
2765 + The tarball built by 'make tarball' now contains files built from
2766 templates (including man pages and shell scripts), so pandoc can
2767 be built directly using Cabal tools, without preprocessing.
2768 + Executable binaries are now stripped before installing.
2769 + Man pages are now generated from markdown sources, using pandoc's
2771 + Use HTML version of README (instead of RTF) in Mac OS X installer.
2772 + Instead of testing for the existence of a pandoc symlink in build-exec,
2777 + Updated README and man pages with information on new features.
2778 + Updated INSTALL instructions with some useful clarifications and
2780 + Updated web content.
2782 * Added FreeBSD port.
2788 + Changed pandoc's Build-Depends to include libghc6-mtl-dev and
2789 libghc6-xhtml-dev. Removed libghc6-html-dev.
2790 + Suggest texlive-latex-recommended | tetex-extra instead of
2791 tetex-bin. This brings in fancyvrb and unicode support.
2793 -- Recai Oktaş <roktas@debian.org> Tue, 16 Jan 2007 00:37:21 +0200
2795pandoc (0.3) unstable; urgency=low
2799 * Changes in pandoc options:
2801 + Allow options to follow or precede arguments.
2802 + Changed '--smartypants' to '--smart' and adjusted symbols accordingly.
2803 + Added '--strict' option.
2804 + Added '-o/--output' option.
2805 + Added '--dump-args' and '--ignore-args' options (for use in wrappers).
2806 + Modified '-v' and '-h' output to go to STDERR, not STDOUT, and return
2807 error conditions. This is helpful for writing wrappers.
2808 + Added copyright message to '-v' output, modeled after FSF messages.
2809 + Reformatted usage message so that it doesn't wrap illegibly.
2810 + Removed extra blanks after '-h' and '-D' output.
2812 * Added docbook writer.
2814 * Added implicit setting of default input and output format based
2815 on input and output filename extensions. These defaults are
2816 overridden if explicit input and output formats are specified using
2817 '-t', '-f', '-r', or '-w' options. Documented in pandoc(1) man page
2820 * Allow ordered list items to begin with (single) letters, as well
2821 as numbers. The list item marker may now be terminated either by
2822 '.' or by ')'. This extension to standard markdown is documented
2825 * Revised footnote syntax. (See README for full details.) The
2826 '[^1]' format now standard in markdown extensions is supported,
2827 as are inline footnotes with this syntax: '^[My note.]'.
2828 The earlier footnote syntax '^(1)' is no longer supported.
2830 * Improved HTML representation of footnotes. All footnotes
2831 are now auto-numbered and appear in an ordered list at the
2832 end of the HTML document. Since the default appearance is now
2833 acceptable, the old footnote styles have been removed from the
2838 + Fixed a serious bug in the markdown, LaTeX, and RST readers.
2839 These readers ran 'runParser' on processed chunks of text to handle
2840 embedded block lists in lists and quotation blocks. But then
2841 any changes made to the parser state in these chunks was lost,
2842 as the state is local to the parser. So, for example, footnotes
2843 didn't work in quotes or list items. The fix: instead of calling
2844 runParser on some raw text, use setInput to make it the input, then
2845 parse it, then use setInput to restore the input to what it was
2846 before. This is shorter and more elegant, and it fixes the problem.
2847 + Fixed bug in notFollowedBy' combinator (adding 'try' before
2848 'parser'). Adjusted code that uses this combinator accordingly.
2849 + Fixed bug in RTF writer that caused improper indentation on
2850 footnotes occurring in indented blocks like lists.
2851 + Fixed parsing of metadata in LaTeX reader. Now the title, author,
2852 and date are parsed correctly. Everything else in the preamble
2854 + Modified escapedChar in LaTeX reader to allow a '\' at the end of a
2855 line to count as escaped whitespace.
2856 + Modified LaTeX reader to produce inline links rather than reference
2857 links. Otherwise, links in footnotes aren't handled properly.
2858 + Fixed handling of titles in links in Markdown reader, so that
2859 embedded quotation marks are now handled properly.
2860 + Fixed Markdown reader's handling of embedded brackets in links.
2861 + Fixed Markdown reader so that it only parses bracketed material
2862 as a reference link if there is actually a corresponding key.
2863 + Revised inline code parsing in Markdown reader to conform to
2864 markdown standard. Now any number of `s can begin inline code,
2865 which will end with the same number of `s. For example, to
2866 have two backticks as code, write ``` `` ```. Modified Markdown
2868 + Fixed bug in text-wrapping routine in Markdown and RST writers.
2869 Now LineBreaks no longer cause wrapping problems.
2870 + Supported hexadecimal numerical entity references as well as
2872 + Fixed bug in Markdown reader's handling of underscores and other
2873 inline formatting markers inside reference labels: for example,
2874 in '[A_B]: /url/a_b', the material between underscores was being
2875 parsed as emphasized inlines.
2876 + Changed Markdown reader's handling of backslash escapes so that
2877 only non-alphanumeric characters can be escaped. Strict mode
2878 follows Markdown.pl in only allowing a select group of punctuation
2879 characters to be escaped.
2880 + Modified HTML reader to skip a newline following a <br> tag.
2881 Otherwise the newline will be treated as a space at the beginning
2884 * Made handling of code blocks more consistent. Previously, some
2885 readers allowed trailing newlines, while others stripped them.
2886 Now, all readers strip trailing newlines in code blocks. Writers
2887 insert a newline at the end of code blocks as needed.
2889 * Modified readers to make spacing at the end of output more consistent.
2891 * Minor improvements to LaTeX reader:
2893 + '\thanks' now treated like a footnote.
2894 + Simplified parsing of LaTeX command arguments and options.
2895 commandArgs now returns a list of arguments OR options (in
2896 whatever order they appear). The brackets are included, and
2897 a new stripFirstAndLast function is provided to strip them off
2898 when needed. This fixes a problem in dealing with \newcommand
2899 and \newenvironment.
2901 * Revised RTF writer:
2903 + Default font is now Helvetica.
2904 + An '\f0' is added to each '\pard', so that font resizing works
2907 * Moved handling of "smart typography" from the writers to the Markdown
2908 and LaTeX readers. This allows great simplification of the writers
2909 and more accurate smart quotes, dashes, and ellipses. DocBook can
2910 now use '<quote>'. The '--smart' option now toggles an option in
2911 the parser state rather than a writer option. Several new kinds
2912 of inline elements have been added: Quoted, Ellipses, Apostrophe,
2915 * Changes in HTML writer:
2917 + Include title block in header even when title is null.
2918 + Made javascript obfuscation of emails even more obfuscatory,
2919 by combining it with entity obfuscation.
2921 * Changed default ASCIIMathML text color to black.
2925 + Added --strip-trailing-cr option to diff in runtests.pl, for
2926 compatibility with Windows.
2927 + Added regression tests with footnotes in quote blocks and lists.
2931 + osx-pkg target creates a Mac OS X package (directory). New osx
2932 directory contains files needed for construction of the package.
2933 + osx-dmg target creates a compressed disk image containing the package.
2934 + win-pkg target creates Windows binary package.
2935 + tarball target creates distribution source tarball.
2936 + website target generates pandoc's website automatically, including
2937 demos. New 'web' directory containts files needed for construction
2938 of the website (which will be created as the 'pandoc' subdirectory
2940 + Makefile checks to see if we're running Windows/Cygwin; if so,
2941 a '.exe' extension is added to each executable in EXECS.
2943 * Removed all wrappers except markdown2pdf and html2markdown.
2945 * Added new wrapper hsmarkdown, to be used as a drop-in replacement
2946 for Markdown.pl. hsmarkdown calls pandoc with the '--strict'
2947 option and disables other options.
2949 * Added code to html2markdown that tries to determine the character
2950 encoding of an HTML file, by parsing the "Content-type" meta tag.
2952 + If the encoding can't be determined, then if the content is local,
2953 the local encoding is used; if it comes from a URL, UTF-8 is used
2955 + If input is from STDIN, don't try to determine character encoding.
2956 + Encoding can be specified explicitly using '-e' option.
2958 * Improved warning messages in wrappers:
2960 + Print warning if iconv not available
2961 + More user-friendly error messages in markdown2pdf, when
2966 + Renamed 'Text/Pandoc/HtmlEntities' module to
2967 'Text/Pandoc/Entities'. Also changed function names so as
2968 not to be HTML-specific.
2969 + Refactored SGML string escaping functions from HTML and Docbook
2970 writers into Text/Pandoc/Shared. (escapeSGML, stringToSGML)
2971 + Removed 'BlockQuoteContext' from ParserContext, as it isn't
2973 + Removed splitBySpace and replaced it with a general, polymorphic
2975 + Refactored LaTeX reader for clarity (added isArg function).
2976 + Converted some CR's to LF's in src/ui/default/print.css.
2977 + Added license text to top of source files.
2978 + Added module data for haddock to source files.
2979 + Reformatted code for consistency.
2981 * Rewrote documentation and man pages. Split README into INSTALL
2984 * Split LICENSE into COPYING and COPYRIGHT.
2986 * Removed TODO, since we now maintain ToDo on the wiki.
2988 * Made COPYRIGHT in top level a symlink to debian/copyright, to avoid
2993 * Revamped build process to conform to debian standards and created
2994 a proper debian package. Closes: #391666.
2996 * Modified build process to support GHC 6.6.
2998 + The package can still be compiled using GHC 6.4.2, though because
2999 of dependencies the "make deb" target works only with GHC 6.6+.
3000 + The script 'cabalize' is used to create an appropriate
3001 'Pandoc.cabal' from 'Pandoc.cabal.in', depending on the GHC and
3004 * Refactored template processing (fillTemplates.pl).
3006 * Modified wrapper scripts to make them more robust and portable.
3007 To avoid code duplication and ensure consistency, wrappers are
3008 generated via a templating system from templates in src/wrappers.
3010 + Wrappers now accept multiple filenames, when appropriate.
3011 + Spaces and tabs allowed in filenames.
3012 + getopts shell builtin is used for portable option parsing.
3013 + Improved html2markdown's web grabber code, making it more robust,
3014 configurable and verbose. Added '-e', '-g' options.
3016 -- Recai Oktaş <roktas@debian.org> Fri, 05 Jan 2007 09:41:19 +0200
3018pandoc (0.2) unstable; urgency=low
3020 * Fixed unicode/utf-8 translation
3022 -- John MacFarlane <jgm@berkeley.edu> Mon, 14 Aug 2006 00:00:00 -0400
3024pandoc (0.1) unstable; urgency=low
3026 * Initial creation of debian package
3028 -- 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