3 * Allow build with json 0.4 or 0.5. Otherwise we can't build with
10 * Added a Microsoft Word `docx` writer. The writer includes support
11 for highlighted code and for math (which is converted from TeX to OMML,
12 Office's native math markup language, using texmath's new OMML module).
13 A new option `--reference-docx` allows the user to customize the
16 * Added an `asciidoc` writer (<http://www.methods.co.nz/asciidoc/>).
18 * Better support for slide shows:
20 + Added a `dzslides` writer. DZSlides is a lightweight HTML5/javascript
21 slide show format due to Paul Rouget (<http://paulrouget.com/dzslides/>).
23 + Added a LaTeX `beamer` writer. Beamer is a LaTeX package for creating
26 + New, flexible rules for dividing documents into sections and slides
27 (see the "Structuring the slide show" in the User's Guide). These
28 are backward-compatible with the old rules, but they allow slide
29 shows to be organized into sections and subsections containing
32 + A new `--slide-level` option allows users to override defaults
33 and select a slide level below the first header level with content.
35 * A new `--self-contained` option produces HTML output that does not
36 depend on an internet connection or the presence of any external
37 files. Linked images, CSS, and javascript is downloaded (or fetched
38 locally) and encoded in data:` URIs. This is useful for making portable
39 `HTML slide shows. The --offline` option has been deprecated and is now
40 `treated as a synonym or --self-contained`.
42 * Support for PDF output:
44 + Removed the old `markdown2pdf`.
45 + `pandoc` can now create PDFs (assuming you have latex and a set of
46 appropriate packages installed): just specify an output file with the
48 + A new option `--latex-engine` allows you to specify `pdflatex`,
49 `xelatex`, or `lualatex` as the processor.
51 * Highlighting changes:
53 + Syntax highlighting is now a standard feature; the `highlighting`
54 flag is no longer needed when compiling.
55 + A new `--no-highlight` option allows highlighting to be disabled.
56 + Highlighting now works in `docx`, `latex`, and `epub`, as well as
57 `html`, `html5`, `dzslides`, `s5`, and `slidy`.
58 + A new `--highlight-style` option selects between various highlighting
61 * Internal links to sections now work in ConTeXt and LaTeX as well as HTML.
63 * LaTeX `\include` and `\usepackage` commands are now processed,
64 provided the files are in the working directory.
68 + Internal and external links now work in EPUB.
69 + Raw HTML is allowed.
70 + New `--epub-embed-font` option.
71 + Customizable templates for EPUB pages offer more control over
72 formatting: `epub-page.html`, `epub-coverimage.html`,
73 `epub-titlepage.html`.
75 * `--mathml` now works with DocBook.
77 * Added support for math in RST reader and writer. Inline math uses the
78 `` :math:`...` `` construct. Display math uses
82 or if the math is multiline,
88 These constructions are now supported now by `rst2latex.py`.
90 * Github syntax for fenced code blocks is supported in pandoc's
91 markdown. You can now write
103 * Easier scripting: a new `toJsonFilter` function makes it easier to
104 write Haskell scripts to manipulate the Pandoc AST.
108 * Fixed parsing of consecutive lists in markdown.
109 Pandoc previously behaved like Markdown.pl for consecutive
110 lists of different styles. Thus, the following would be parsed
111 as a single ordered list, rather than an ordered list followed
112 by an unordered list:
120 This change makes pandoc behave more sensibly, parsing this as
121 two lists. Any change in list type (ordered/unordered) or in
122 list number style will trigger a new list. Thus, the following
123 will also be parsed as two lists:
131 Since we regard this as a bug in Markdown.pl, and not something
132 anyone would ever rely on, we do not preserve the old behavior
133 even when `--strict` is selected.
135 * Dashes work differently with `--smart`: `---` is always em-dash,
136 and `--` is always en-dash. Pandoc no longer tries to guess when
137 `-` should be en-dash. *Note:* This may change how existing documents
138 look when processed with pandoc. A new option, `--old-dashes`,
139 is provided for legacy documents.
141 * The markdown writer now uses setext headers for levels 1-2.
142 The old behavior (ATX headers for all levels) can be restored
143 using the new `--atx-headers` option.
145 * Links are now allowed in markdown image captions. They are also
146 allowed in links, but will appear there as regular text. So,
148 [link with [link](/url)](/url)
152 <p><a href="/url">link with link</a></p>
154 * Improved handling of citations using `citeproc-hs-0.3.4`.
155 Added `--citation-abbreviations` option.
157 * Citation keys can no longer end with a punctuation character.
158 This means that `@item1.` will be parsed as a citation with key
159 'item1', followed by a period, instead of a citation with key
160 'item1.', as was the case previously.
162 * In HTML output, citations are now put in a span with class `citation`.
164 * The markdown reader now recognizes DocBook block and inline tags.
165 It was always possible to include raw DocBook tags in a markdown
166 document, but now pandoc will be able to distinguish block from
167 inline tags and behave accordingly. Thus, for example,
173 will not be wrapped in `<para>` tags.
175 * `--smart` is no longer selected automatically with `man` output.
177 * The deprecated `--xetex` option has been removed.
179 * The `--html5`/`-5` option has been deprecated. Use `-t html5`
180 instead. `html5` and `html5+lhs` are now separate output formats.
182 * Single quotes are no longer escaped in HTML output. They do not
183 need to be escaped outside of attributes.
185 * Pandoc will no longer transform leading newlines in code
186 blocks to `<br/>` tags.
188 * The ODT writer now sizes images appropriately, using the image
189 size and DPI information embedded in the image.
191 * `--standalone` is once again implicitly for a non-text output format
192 (ODT, EPUB). You can again do `pandoc test.txt -o test.odt`
193 and get a standalone ODT file.
195 * The Docbook writer now uses `<sect1>`, `<sect2>`, etc. instead of
198 * The HTML writer now uses `<del>` for strikeout.
200 * In HTML output with `--section-divs`, the classes `section` and
201 `level[1,2,..6]` are put on the `div` tags so they can be styled.
202 In HTML 5 output with `--section-divs`, the classes
203 `level[1,2,...6]` are put on `section` tags.
205 * EPUB writer changes:
207 + The `lang` variable now sets the language
208 in the metadata (if it is not set, we default to the locale).
209 + EPUB: UTF-8 is used rather than decimal entities.
211 * Added `titleslide` class to title slide in S5 template.
213 * In HTML, EPUB, and docx metadata, the date is normalized into
214 YYYY-MM-DD format if possible. (This is required for validation.)
216 * Attributes in highlighted code blocks are now preserved in HTML.
217 The container element will have the classes, id, and key-value attributes
218 you specified in the delimited code block. Previously these were stripped
221 * The reference backlink in the HTML writer no longer has a special
222 `footnoteBacklink` class.
224 * The HTML template has been split into `html` and `html5` templates.
226 * Author and date are treated more consistently in HTML templates.
227 Authors are now `<h2>`, date `<h3>`.
229 * URLs are hyphenated in the ConTeXt writer (B. Scott Michel).
231 * In `Text.Pandoc.Builder`, `+++` has been replaced by `<>`.
235 * Better support for combining characters and East Asian wide characters
236 in markdown and reST.
238 * Better handling of single quotes with `--smart`.
239 Previously `D'oh l'*aide*` would be parsed with left and right single
240 quotes instead of apostrophes. This kind of error is now fixed.
242 * Highlighting: Use `reads` instead of `read` for better error handling.
243 Fixes crash on `startNum="abc"`.
245 * Added blank comment after directives in rst template.
247 * Unescape entities in citation `refId`. The `refId`s coming
248 from citeproc contain XML numeric entities, and these don't match with the
249 citation keys parsed by pandoc. Solution is to unescape them.
251 * HTML reader: Fixed bug parsing tables with both thead and tbody.
255 + Better handling of escapes in link URLs and titles.
256 + Fixed backslash escapes in reference links.
257 + Fixed bug in table/hrule parsing, by checking that the top
258 line of a table is not followed by a blank line. This bug caused
259 slowdowns on some files with hrules and tables, as pandoc tried to
260 interpret the hrules as the tops of multiline tables.
261 + Fixed bug in code block attribute parser. Previously the ID attribute
262 got lost if it didn't come first. Now attributes can come in any order.
264 * RST reader: allow footnotes followed by newline without space characters.
268 + Ignore empty groups {}, { }.
269 + LaTeX reader: Handle \@.
270 + LaTeX reader: Don't crash on commands like `\itemsep`.
271 + LaTeX reader: Better handling of letter environments.
273 * RST writer: Fixed bug involving empty table cells. isSimple was being
274 calculated in a way that assumed there were no non-empty cells.
278 + Made `--toc` work even without `--number-sections`.
279 + Escape # in link URLs.
280 + Use buffering for footnotes containing code blocks.
281 + Changed 'descr' to 'description', fixed alignment.
285 + Escape euro character.
286 + Don't escape ~ inside href{...}.
287 + Escape # in href URLs.
288 + Improved detection of book classes. We now check the
289 `documentclass` variable, and if that is not set, we look through
290 the template itself. Also, we have added the KOMA classes scrreprt
291 and scrbook. You can now make a book using
292 `pandoc -V documentclass:book mybook.txt -o mybook.pdf`
293 + LHS files now set the "listings" variable, so that the definition
294 of the `code` environment will be included in the template.
295 + Links are colored blue by default (this can be changed by
296 modifying `hyperref` settings in the template).
297 + Added `lang` variable to LaTeX template.
301 + Fixed bug in HTML template with html5 and mathml.
302 + Don't use self-closing img, br, hr tags for HTML5.
303 + Use `<section>` for footnotes if HTML5.
304 + Update HTML templates to use Content-Style-Type meta tag.
305 + Use separate variables for meta-date, meta-author.
306 This makes footnotes work in author and date fields.
307 + Use 'vertical-align:middle' in WebTeX math for better alignment.
309 * S5/slidy writer: Make footnotes appear on separate slide at end.
311 * MIME: Added 'layout-cache' to getMimeType. This ensures that the
312 META-INF/manifest.xml for ODT files will have everything it needs, so
313 that ODT files modified by LibreOffice can be used as `--reference-odt`.
315 * `Text.Pandoc.Templates`: Return empty string for json template.
317 * `Text.Pandoc.Biblio`:
319 + Expand citations recursively inside nested inlines.
320 + Treat `\160` as space when parsing locator and suffix.
321 This fixes a bug with "p. 33" when `--smart` is used. Previously
322 the whole "p. 33" would be included in the suffix, with no locator.
323 + Put whole author-in-text citation in a Cite. Previously just the
324 date and other info went in the Cite.
325 + Don't add comma+space to prefix if it ends in punctuation.
327 * Updated chicago-author-date.csl. The old version did not work
328 properly for edited volumes with no author.
332 + Add date to EPUB titlepage and metadata.
333 + Added TOC identifier in EPUB page template.
334 + Don't generate superfluous file `cover-image.jpg`.
336 [under the hood improvements]
338 * Modified `make_osx_package.sh` to use cabal-dev.
339 Items are no longer installed as root.
340 Man pages are zipped and given proper permissions.
342 * Modified windows installer generater to use cabal-dev.
344 * Setup: Making man pages now works with cabal-dev (at least on OSX). In
345 Setup.hs we now invoke 'runghc' in a way that points it to the correct
346 package databases, instead of always falling back to the default user
349 * Updated to work with GHC 7.4.1.
351 * Removed dependency on old-time.
353 * Removed dependency on dlist.
355 * New slidy directory for "self-contained."
357 * LaTeX parser completely rewritten; it is now much more accurate,
358 robust, and extensible.
360 * TeXMath writer: Use unicode thin spaces for thin spaces.
362 * Markdown citations: don't strip off initial space in locator.
366 * Removed `Apostrophe`, `EmDash`, `EnDash`, and `Ellipses`
367 from the native `Inline` type in pandoc-types. Now we use `Str`
368 elements with unicode.
370 * Improvements to `Text.Pandoc.Builder`:
372 + `Inlines` and `Blocks` are now newtypes (not synonyms for
374 + Instances are defined for `IsString`, `Show`, `Read`, `Monoid`,
375 and a new `Listable` class, which allows these to be manipulated
376 to some extent like lists. Monoid append includes automatic
378 + `+++` has been replaced by `<>` (mappend).
380 * Use blaze-html instead of xhtml for HTML generation.
381 This changes the type of `writeHtml`.
383 * `Text.Pandoc.Shared`:
385 + Added `warn` and `err`.
386 + Removed `unescapeURI`, modified `escapeURI`.
387 (See under [behavior changes], above.)
389 * Changes in URI escaping: Previously the readers escaped URIs by
390 converting unicode characters to octets and then percent encoding.
391 Now unicode characters are left as they are, and `escapeURI` only
392 percent-encodes space characters. This gives more readable
393 URIs, and works well with modern user agents. URIs are no longer unescaped
394 at all on conversion to `markdown`, `asciidoc`, `rst`, `org`.
396 * New module `Text.Pandoc.SelfContained`.
398 * New module `Text.Pandoc.Docx`.
400 * New module `Text.Pandoc.PDF`.
402 * Added `writerBeamer` to `WriterOptions`.
404 * Added `normalizeDate` to `Text.Pandoc.Shared`.
406 * Added `splitStringWithIndices` in `Text.Pandoc.Shared`.
407 This is like `splitWithIndices`, but it is sensitive to distinctions
408 between wide, combining, and regular characters.
410 * `Text.Pandoc.Pretty`:
412 + Added `chomp` combinator.
413 + Added `beforeNonBreak` combinator. This allows you to include
414 something conditionally on it being before a nonblank.
415 Used for RST inline math.
416 + Added `charWidth` function. All characters marked W or F in the unicode
417 spec EastAsianWidth.txt get width 2.
418 + Added `realLength`, based on `charWidth`. `realLength` is now
419 used in calculating offsets.
421 * New module `Text.Pandoc.Slides`, for common functions for breaking
422 a document into slides.
424 * Removed `Text.Pandoc.S5`, which is no longer needed.
426 * Removed `Text.Pandoc.CharacterReferences`. Moved
427 `characterReference` to `Text.Pandoc.Parsing`.
428 `decodeCharacterReferences` is replaced by `fromEntities`
429 in `Text.Pandoc.XML`.
431 * Added `Text.Pandoc.ImageSize`. This is intened for use
432 in `docx` and `odt` writers, so the size and dpi of images
435 * Removed `writerAscii` in `WriterOptions`.
437 * Added `writerHighlight` to `WriterOptions`.
439 * Added `DZSlides` to `HTMLSlideVariant`.
441 * `writeEPUB` has a new argument for font files to embed.
443 * Added `stateLastStrPos` to `ParserState`. This lets us keep track
444 of whether we're parsing the position immediately after a regular
445 (non-space, non-symbol) string, which is useful for distinguishing
446 apostrophes from single quote starts.
448 * `Text.Pandoc.Parsing`:
450 + `escaped` now returns a `Char`.
451 + Removed `charsInBalanced'`, added a character parser as
452 a parameter of `charsInBalanced`. This is needed for
453 proper handling of escapes, etc.
456 * Added `toEntities` to `Text.Pandoc.XML`.
458 * `Text.Pandoc.Readers.LaTeX`:
460 + Export `handleIncludes`.
461 + Export `rawLaTeXBlock` instead of `rawLaTeXEnvironment'`.
463 * Added `ToJsonFilter` class and `toJsonFilter` function to
464 `Text.Pandoc`, deprecating the old `jsonFilter` function.
466 * `Text.Pandoc.Highlighting`:
468 + Removed `highlightHtml`, `defaultHighlightingCss`.
469 + Export `formatLaTeXInline`, `formatLaTeXBlock`, and `highlight`, plus
470 key functions from highlighting-kate.
471 + Changed types of highlighting function. `highlight` returns a
472 `Maybe`, not an `Either`.
476 * Relaxed cabal consntraints for test-framework (S. Trofimovich).
478 * Relaxed cabal constraints for pandoc-types.
480 * Adjusted Arbitrary instance to help avoid timeouts in tests.
482 * Added `Tests.Writers.Markdown` to cabal file.
486 * Added script to produce OS X package.
488 * Made `templates` directory a git submodule. This should make it
489 easier for people to revise their custom templates when the default
492 * Changed template naming scheme: `FORMAT.template` -> `default.FORMAT`.
493 **Note:** If you have existing templates in `~/.pandoc/templates`, you
494 must rename them to conform to the new scheme!
496 * Fixed smart quotes bug, now handling `'...hi'` properly.
500 + Partial support for labeled footnotes.
501 + Improved accuracy of `simpleReferenceName` parser.
505 + Substitute correct unicode characters for
506 characters in the 128..159 range, which are often found even in
507 HTML that purports to be UTF-8.
509 * LaTeX reader: Handle `\subtitle` command (a subtitle is added
510 to the title, after a colon and linebreak). Closes #280.
512 * Leaner `reference.odt`.
514 * Added unexported module `Text.Pandoc.MIME` for use in
517 * ODT writer: Construct `manifest.xml` based on archive contents.
518 This fixes a bug in ODTs containing images. Recent versions of
519 LibreOffice would reject these as corrupt, because `manifest.xml`
520 did not contain a reference to the image files.
524 + Make verbatim environments flush to avoid spurious
525 blank lines. Closes #277.
526 + Use `\texttt` and escapes insntead of `\verb!...!`, which
527 is too fragile (doesn't work in command arguments).
528 + Use `\enquote{}` for quotes if the template includes
529 the `csquotes` package. This provides better support for
530 local quoting styles. (Thanks to Andreas Wagner for the idea.)
532 * ConTeXt writer: Make `\starttyping`/`\stoptyping` flush with
533 margin, preventing spurious blank lines.
537 + Use non-minimized version of `slidy.css` with `--offline`
538 option, so users can more easily edit it.
539 + Also fixed a bug in the CSS that prevented proper centering
540 of title (now reported and fixed upstream).
544 + Replaced `s5/default/slides.js.{comment,packed}` with
545 new compressed `s5/default/slides.min.js`.
546 + Use `data:` protocol to embed S5 CSS in `<link>` tags,
547 when `--offline` is specified. Using inline CSS didn't
548 work with Chrome or Safari. This fixes offline
549 S5 on those browsers.
551 * HTML writer: Removed English title on footnote backlinks.
552 This is incongrous in non-English documents.
556 + Use CALS tables. (Some older docbook software does not work
557 well with XHTML tables.) Closes #77.
558 + Use `programlisting` tags (instead of `screen`) for code blocks.
562 + Calls latex with `-halt-on-error -interaction nonstopmode` instead
563 of `-interaction=batchmode`, which essentially just ignored errors,
564 leading to bad results. Better to know when something is wrong.
565 + Fixed issues with non-UTF-8 output of `pdflatex`.
566 + Better error reporting.
568 * `--mathjax` now takes an optional URL argument. If it is not
569 provided, pandoc links directly to the (secure) mathjax CDN,
570 as now recommended (thanks to dsanson).
572 * Deprecated `--xetex` option in `pandoc`. It is no longer needed,
573 since the LaTeX writer now produces a file that can be processed by
574 `latex`, `pdflatex`, `lualatex`, or `xelatex`.
576 * Introduced `--luatex` option to `markdown2pdf`. This causes `lualatex`
577 to be used to create the PDF.
579 * If a template specified with `--template` is not found, look for it
580 in `datadir`. Also, if no extension is provided, supply one based
581 on the writer. So now you can put your `special.latex` template in
582 `~/.pandoc/templates`, and use it from any directory via
583 `pandoc -t latex --template special`.
585 * Default template improvements:
587 + HTML: Display author and date after title.
588 + HTML: Made table of contents more customizable. The container
589 for the TOC is now in the template, so users can insert a header
590 or other styling. (Thanks to Bruce D'Arcus for the suggestion.)
591 + HTML, Slidy, S5: Enclose scripts in CDATA tags.
592 + Slidy, S5: Added `s5-url` and `slidy-url` variables, instead of
593 hard-coding. If you want to put your slidy files in the slidy
594 subdirectory, for example, you can do
595 `pandoc -t slidy -V slidy-url=slidy -s`.
596 + LaTeX: Use `\and` to separate authors in LaTeX documents (reader
597 & writer). Closes #279.
598 + LaTeX: Use different `hyperref` options for `xetex`, fixing
599 problems with unicode bookmarks (thanks to CircleCode).
600 + LaTeX: Removed `ucs` package, use `utf8` rather than `utf8x`
601 with `inputenc`. This covers fewer characters but is more
602 robust with other packages, and `ucs` is unmaintained. Users
603 who need better unicode support should use xelatex or lualatex.
607 * Added `--epub-cover-image` option.
609 * Documented `--biblatex` and `--natbib` options.
611 * Allow `--section-divs` with slidy output. Resolves Issue #296.
613 * Disallow notes within notes in reST and markdown.
614 These previously caused infinite looping and stack overflows.
621 Note references are allowed in reST notes, so this isn't a full
622 implementation of reST. That can come later. For now we need to
623 prevent the stack overflows. Partially resolves Issue #297.
625 * EPUB writer: Allow non-plain math methods.
627 * Forbid ()s in citation item keys. Resolves Issue #304: problems with
628 `(@item1; @item2)` because the final paren was being parsed as part of
631 * Changed URI parser so it doesn't include trailing punctuation.
632 So, in RST, `http://google.com.` should be parsed as a link followed by a
633 period. The parser is smart enough to recognize balanced parentheses, as
634 often occur in wikipedia links: `http://foo.bar/baz_(bam)`.
636 * Markdown+lhs reader: Require space after inverse bird tracks, so that
637 HTML tags can be used freely at the left margin of a markdown+lhs document.
638 Thanks to Conal Elliot for the suggestion.
642 + Improved emph/strong parsing; fixes bug found by Perry Wagle.
643 + Fixed bug in footnote order (reported by CircleCode).
646 + Fixed bug in in field lists with multi-line items at the
648 + Added parentheses to RST `specialChars`, so
649 `(http://google.com)` will be parsed as a link in parens.
651 + Allow `|` followed by newline in RST line block.
655 + Gobble option & space after linebreak `\\[10pt]`.
658 + Make it possible to have colons after links. (qerub)
659 + Make it possible to have colons after links. (Christoffer Sawicki)
662 + Skip spaces after `<b>`, `<emph>`, etc.
663 + Handle tbody, thead in simple tables. Closes #274.
664 + Implicit `Para`s instead of `Plains` in some contexts.
666 * OpenDocument writer: Use special `First paragraph` style for
667 first paragraph after most non-paragraph blocks. This allows users to
668 specify e.g. that only paragraphs after the first paragraph of a block are
669 to be indented. Thanks to Andrea Rossato for the patch. Closes #20.
671 * LaTeX writer: use `deVerb` on table and picture captions.
672 Otherwise LaTeX complains about `\verb` inside command argument.
673 Thanks to bbanier for reporting the bug.
675 * Markdown writer: Insert HTML comment btw list and indented code block.
676 This prevents the code block from being interpreted as part of the list.
678 * EPUB writer: Add a meta element specify the cover.
679 Some EPUB e-readers, such as the Nook, require a meta element inside the
680 OPF metadata block to ensure the cover image is properly displayed.
683 * HTML writer: Use embed tag for images with non-image extensions.
684 (e.g. PDFs). Closes #264.
686 * LaTeX writer: Improved tables.
688 + More space between lines, top-align cells.
689 + Use ctable package, which allows footnotes and
690 provides additional options.
691 + Made cell alignments work in multiline tables.
694 * Un-URI-escape image filenames in LaTeX, ConTeXt, RTF, Texinfo.
695 Also do this when copying image files into EPUBs and ODTs.
698 * Changed to github issue tracker.
700 * Added failing emph/strong markdown test case due to Perry Wagle.
702 * Slidy improvements:
703 + Updated to use Slidy2.
704 + Fixed bug, unclosed div tag.
705 + Added `duration` variable in template.
706 Setting this activates the timer.
707 + Use 'titlepage' instead of 'cover' for title div.
711 * `markdown2pdf`: Removed some debugging lines accidentally included
712 in the 1.8.1 release. With those lines, the temp directory is created
713 in the working directory, and it is not deleted. This fix restores
714 the original behavior.
718 * Added `--ascii` option. Currently supported only in HTML writer,
719 which it causes to use numerical entities instead of UTF-8.
721 * EPUB writer: `--toc` now works to provide a table of contents
722 at the beginning of each chapter.
724 * LaTeX writer: Change figure defaults to `htbp`.
725 This prevents "too many unprocessed floats." Resolves
728 * `Text.Pandoc.UTF8`: Encode filenames even when using recent
731 * `markdown2pdf`: Fixed filename encoding issues. With help from Paulo
732 Tanimoto. Resolves Issue #286.
734 * HTML writer: Put line breaks in section divs.
736 * `Text.Pandoc.Shared`: Make `writerSectionDivs` default to False.
740 * Fixed Source-repository stanza in cabal file.
746 + Stringify alt text instead of converting to HTML.
747 + Break lines after block elements, not inside tags.
748 HTML output now closely resembles that of tidy. Resolves Issue #134.
750 * Markdown reader: Fixed bug in footnote block parser (pointed out
751 by Jesse Rosenthal). The problem arose when the blank line
752 at the end of a footnote block contained indenting spaces.
754 * Shared: Improved 'normalize' function so it normalizes Spaces too.
755 In normal form, Space elements only occur to separate two non-Space
756 elements. So, we never have [Space], or [, ..., Space].
760 + Improved Arbitrary instance.
761 + Added timeout for test instances.
765 + Added section on four-space rule for lists. Resolves Issue #283.
766 + Clarified optional arguments on math options.
768 * markdown2pdf: Fixed bug with output file extensions.
769 Previously `markdown2pdf test.txt -o test.en.pdf` would produce
770 `test.pdf`, not `test.en.pdf`. Thanks to Paolo Tanimoto for the fix.
774 * Revised Interact.hs so that it works with the CPP macros
777 * Revised Setup.hs so that we don't call MakeManPage.hs unless
778 the man pages are out of date.
784 * Support for citations using Andrea Rossato's `citeproc-hs` 0.3.
785 You can now write, for example,
787 Water is wet [see @doe99, pp. 33-35; also @smith04, ch. 1].
789 and, when you process your document using `pandoc`, specifying
790 a citation style using `--csl` and a bibliography using `--bibliography`,
791 the citation will be replaced by an appropriately formatted
792 citation, and a list of works cited will be added to the end
795 This means that you can switch effortlessly between different citation
796 and bibliography styles, including footnote, numerical, and author-date
797 formats. The bibliography can be in any of the following formats: MODS,
798 BibTeX, BibLaTeX, RIS, EndNote, EndNote XML, ISI, MEDLINE, Copac, or JSON.
799 See the README for further details.
801 Citations are supported in the markdown reader, using a special
802 syntax, and in the LaTeX reader, using natbib or biblatex syntax.
803 (Thanks to Nathan Gass for the natbib and biblatex support.)
805 * New `textile` reader and writer. Thanks to Paul Rivier for contributing
806 the `textile` reader, an almost complete implementation of the textile
807 syntax used by the ruby [RedCloth library](http://redcloth.org/textile).
810 * New `org` writer, for Emacs Org-mode, contributed by Puneeth Chaganti.
812 * New `json` reader and writer, for reading and writing a JSON
813 representation of the native Pandoc AST. These are much faster
814 than the `native` reader and writer, and should be used for
815 serializing Pandoc to text. To convert between the JSON representation
816 and native Pandoc, use `encodeJSON` and `decodeJSON` from
819 * A new `jsonFilter` function in `Text.Pandoc` makes it easy
820 to write scripts that transform a JSON-encoded pandoc document.
823 -- removelinks.hs - removes links from document
825 main = interact $ jsonFilter $ bottomUp removeLink
826 where removeLink (Link xs _) = Emph xs
829 To use this to remove links while translating markdown to LaTeX:
831 pandoc -t json | runghc removelinks.hs | pandoc -f json -t latex
833 * Attributes are now allowed in inline `Code` elements, for example:
835 In this code, `ulist ! [theclass "special"] << elts`{.haskell} is...
837 The attribute syntax is the same as for delimited code blocks.
838 `Code` inline has an extra argument place for attributes, just like
839 `CodeBlock`. Inline code will be highlighted in HTML output, if pandoc
840 is compiled with highlighting support. Resolves Issue #119.
842 * New `RawBlock` and `RawInline` elements (replacing `RawHtml`,
843 `HtmlInline`, and `TeX`) provide lots of flexibility in writing
844 scripts to transform Pandoc documents. Scripts can now change
845 how each element is rendered in each output format.
847 * You can now define LaTeX macros in markdown documents, and pandoc
848 will apply them to TeX math. For example,
850 \newcommand{\plus}[2]{#1 + #2}
853 yields `3+4`. Since the macros are applied in the reader, they
854 will work in every output format, not just LaTeX.
856 * LaTeX macros can also be used in LaTeX documents (both in math
857 and in non-math contexts).
859 * A new `--mathjax` option has been added for displaying
860 math in HTML using MathJax. Resolves issue #259.
862 * Footnotes are now supported in the RST reader. (Note, however,
863 that unlike docutils, pandoc ignores the numeral or symbol used in
864 the note; footnotes are put in an auto-numbered ordered list.)
867 * A new `--normalize` option causes pandoc to normalize the AST
868 before writing the document. This means that, for example,
869 `*hi**there*` will be rendered as `<em>hithere</em>`
870 instead of `<em>hi</em><em>there</em>`. This is not the default,
871 because there is a significant performance penalty.
873 * A new `--chapters` command-line option causes headers
874 in DocBook, LaTeX, and ConTeXt to start with "chapter" (level one).
877 * In DocBook output, `<chapter>` is now used for top-level
878 headers if the template contains `<book>`. Resolves Issue #265.
880 * A new `--listings` option in `pandoc` and `markdown2pdf` causes
881 the LaTeX writer to use the listings package for code blocks.
882 (Thanks to Josef Svennigsson for the pandoc patch, and Etienne
883 Millon for the markdown2pdf patch.)
885 * `markdown2pdf` now supports `--data-dir`.
887 * URLs in autolinks now have class "url" so they can be styled.
889 * Improved prettyprinting in most formats. Lines will be wrapped
890 more evenly and duplicate blank lines avoided.
892 * New `--columns` command-line option sets the column width for
893 line wrapping and relative width calculations for tables.
895 * Made `--smart` work in HTML, RST, and Textile readers, as well
898 * Added `--html5` option for HTML5 output.
900 * Added support for listings package in LaTeX reader
903 * Added support for simple tables in the LaTeX reader.
905 * Added support for simple tables in the HTML reader.
907 * Significant performance improvements in many readers and writers.
909 [API and program changes]
911 * Moved `Text.Pandoc.Definition` from the `pandoc` package to a new
912 auxiliary package, `pandoc-types`. This will make it possible for other
913 programs to supply output in Pandoc format, without depending on the whole
916 * Added `Attr` field to `Code`.
918 * Removed `RawHtml`, `HtmlInline`, and `TeX` elements; added generic
919 `RawBlock` and `RawInline`.
921 * Moved generic functions to `Text.Pandoc.Generic`. Deprecated
922 `processWith`, replacing it with two functions, `bottomUp` and `topDown`.
923 Removed previously deprecated functions `processPandoc` and `queryPandoc`.
925 * Added `Text.Pandoc.Builder`, for building `Pandoc` structures.
927 * `Text.Pandoc` now exports association lists `readers` and `writers`.
929 * Added `Text.Pandoc.Readers.Native`, which exports `readNative`.
930 `readNative` can now read full pandoc documents, block lists, blocks,
931 inline lists, or inlines. It will interpret `Str "hi"`
932 as if it were `Pandoc (Meta [] [] []) [Plain [Str "hi"]]`.
933 This should make testing easier.
935 * Removed deprecated `-C/--custom-header` option.
936 Use `--template` instead.
938 * `--biblio-file` has been replaced by `--bibliography`.
939 `--biblio-format` has been removed; pandoc now guesses the format
940 from the file extension (see README).
942 * pandoc will treat an argument as a URI only if it has an
943 `http(s)` scheme. Previously pandoc would treat some
944 Windows pathnames beginning with `C:/` as URIs.
946 * The `--sanitize-html` option and the `stateSanitize` field in
947 `ParserState` have been removed. Sanitization is better done in the
948 resulting HTML using `xss-sanitize`, which is based on pandoc's
949 sanitization, but improved.
951 * pandoc now adds a newline to the end of its output in fragment
952 mode (= not `--standalone`).
954 * Added support for `lang` in `html` tag in the HTML template,
955 so you can do `pandoc -s -V lang=es`, for example.
957 * `highlightHtml` in `Text.Pandoc.Highlighting` now takes
958 a boolean argument that selects between "inline" and
961 * `Text.Pandoc.Writers.RTF` now exports `rtfEmbedImage`.
962 Images are embedded in RTF output when possible (png, jpeg).
965 * Added `Text.Pandoc.Pretty`. This is better suited for pandoc than the
966 `pretty` package. Changed all writers that used
967 `Text.PrettyPrint.HughesPJ` to use `Text.Pandoc.Pretty` instead.
969 * Rewrote `writeNative` using the new prettyprinting module. It is
970 now much faster. The output has been made more consistent and compressed.
971 `writeNative` is also now sensitive to writerStandalone`, and will simply
972 `print a block list if writerStandalone` is False.
974 * Removed `Text.Pandoc.Blocks`. `Text.Pandoc.Pretty` allows you to define
975 blocks and concatenate them, so a separate module is no longer needed.
977 * `Text.Pandoc.Shared`:
979 + Added `writerColumns`, `writerChapters`, and `writerHtml5` to
982 + Removed unneeded prettyprinting functions:
983 `wrapped`, `wrapIfNeeded`, `wrappedTeX`, `wrapTeXIfNeeded`, `hang'`,
984 `BlockWrapper`, `wrappedBlocksToDoc`.
985 + Made `splitBy` take a test instead of an element.
986 + Added `findDataFile`, refactored `readDataFile`.
987 + Added `stringify`. Rewrote `inlineListToIdentifier` using `stringify`.
988 + Fixed `inlineListToIdentifier` to treat '\160' as ' '.
990 * `Text.Pandoc.Readers.HTML`:
992 + Removed `rawHtmlBlock`, `anyHtmlBlockTag`, `anyHtmlInlineTag`,
993 `anyHtmlTag`, `anyHtmlEndTag`, `htmlEndTag`, `extractTagType`,
994 `htmlBlockElement`, `htmlComment`
995 + Added `htmlTag`, `htmlInBalanced`, `isInlineTag`, `isBlockTag`,
998 * Moved `smartPunctuation` from `Text.Pandoc.Readers.Markdown`
999 to `Text.Pandoc.Readers.Parsing`, and parameterized it with
1002 * Added `nonspaceChar` to `Text.Pandoc.Parsing`.
1004 * Ellipses are no longer allowed to contain spaces.
1005 Previously we allowed '. . .', ' . . . ', etc. This caused
1006 too many complications, and removed author's flexibility in
1007 combining ellipses with spaces and periods.
1009 * Allow linebreaks in URLs (treat as spaces). Also, a string of
1010 consecutive spaces or tabs is now parsed as a single space. If you have
1011 multiple spaces in your URL, use `%20%20`.
1013 * `Text.Pandoc.Parsing`:
1015 + Removed `refsMatch`.
1016 + Hid `Key` constructor.
1017 + Removed custom `Ord` and `Eq` instances for `Key`.
1018 + Added `toKey` and `fromKey` to convert between `Key` and `[Inline]`.
1019 + Generalized type on `readWith`.
1021 * Small change in calculation of relative widths of table columns.
1022 If the size of the header > the specified column width, use
1023 the header size as 100% for purposes of calculating
1024 relative widths of columns.
1026 * Markdown writer now uses some pandoc-specific features when `--strict`
1027 is not specified: `\` newline is used for a hard linebreak instead of
1028 two spaces then a newline. And delimited code blocks are used when
1029 there are attributes.
1031 * HTML writer: improved gladTeX output by setting ENV appropriately
1032 for display or inline math (Jonathan Daugherty).
1034 * LaTeX writer: Use `\paragraph`, `\subparagraph` for level 4,5 headers.
1038 + `\label{foo}` and `\ref{foo}` now become `{foo}` instead of `(foo)`.
1039 + `\index{}` commands are skipped.
1041 * Added `fontsize` variable to default LaTeX template.
1042 This makes it easy to set the font size using `markdown2pdf`:
1043 `markdown2pdf -V fontsize=12pt input.txt`.
1045 * Fixed problem with strikeout in LaTeX headers when using
1046 hyperref, by adding a command to the default LaTeX template
1047 that disables `\sout` inside pdf strings. Thanks to Joost Kremers
1050 * The `COLUMNS` environment variable no longer has any effect.
1052 [under-the-hood improvements]
1054 * Pandoc now compiles with GHC 7. (This alone leads to a
1055 significant performance improvement, 15-20%.)
1057 * Completely rewrote HTML reader using tagsoup as a lexer. The
1058 new reader is faster and more accurate. Unlike the
1059 old reader, it does not get bogged down on some input
1060 (Issues #277, 255). And it handles namespaces in tags
1063 * Replaced `escapeStringAsXML` with a faster version.
1065 * Rewrote `spaceChar` and some other parsers in Text.Pandoc.Parsing
1066 for a significant performance boost.
1068 * Improved performance of all readers by rewriting parsers.
1070 * Simplified Text.Pandoc.CharacterReferences by using
1071 entity lookup functions from TagSoup.
1073 * `Text.Pandoc.UTF8` now uses the unicode-aware IO functions
1074 from `System.IO` if base >= 4.2. This gives support for
1075 windows line endings on windows.
1077 * Remove duplications in documentation by generating the
1078 pandoc man page from README, using `MakeManPage.hs`.
1080 * README now includes a full description of markdown syntax,
1081 including non-pandoc-specific parts. A new `pandoc_markdown`
1082 man page is extracted from this, so you can look up markdown
1083 syntax by doing `man pandoc_markdown`.
1085 * Completely revised test framework (with help from Nathan Gass).
1086 The new test framework is built when the `tests` Cabal flag is set. It
1087 includes the old integration tests, but also some new unit and quickcheck
1088 tests. Test output has been much improved, and you can now specify a glob
1089 pattern after `cabal test` to indicate which tests should be run;
1090 for example `cabal test citations` will run all the citation tests.
1092 * Added a shell script, `stripansi.sh`, for filtering ANSI control
1093 sequences from test output: `cabal test | ./stripansi.sh > test.log`.
1095 * Added `Interact.hs` to make it easier to use ghci while developing.
1096 `Interact.hs` loads `ghci` from the `src` directory, specifying
1097 all the options needed to load pandoc modules (including
1098 specific package dependencies, which it gets by parsing
1101 * Added `Benchmark.hs`, testing all readers + writers using criterion.
1103 * Added `stats.sh`, to make it easier to collect and archive
1104 benchmark and lines-of-code stats.
1106 * Added upper bounds to all cabal dependencies.
1108 * Include man pages in extra-source-files. This allows users to
1109 install pandoc from the tarball without needing to build the man
1114 * Filenames are encoded as UTF8. Resolves Issue #252.
1116 * Handle curly quotes better in `--smart` mode. Previously, curly quotes
1117 were just parsed literally, leading to problems in some output formats.
1118 Now they are parsed as `Quoted` inlines, if `--smart` is specified.
1119 Resolves Issue #270.
1121 * Text.Pandoc.Parsing: Fixed bug in grid table parser.
1122 Spaces at end of line were not being stripped properly,
1123 resulting in unintended LineBreaks.
1127 + Allow HTML comments as inline elements in markdown.
1128 So, `aaa <!-- comment --> bbb` can be a single paragraph.
1129 + Fixed superscripts with links: `^[link](/foo)^` gets
1130 recognized as a superscripted link, not an inline note followed by
1132 + Fixed regression, making markdown reference keys case-insensitive again.
1133 Resolves Issue #272.
1134 + Properly handle abbreviations (like `Mr.`) at the end of a line.
1135 + Better handling of intraword underscores, avoiding exponential
1136 slowdowns in some cases. Resolves Issue #182.
1137 + Fixed bug in alignments in tables with blank rows in the header.
1141 + Field lists now allow spaces in field names, and
1142 block content in field values. (Thanks to Lachlan Musicman
1143 for pointing out the bug.)
1144 + Definition list items are now always `Para` instead of
1145 `Plain`, matching behavior of `rst2xml.py`.
1146 + In image blocks, the description is parsed properly and
1147 used for the alt attribute, not also the title.
1148 + Skip blank lines at beginning of file. Resolves
1153 + Improved parsing of preamble.
1154 Previously you'd get unexpected behavior on a document that
1155 contained `\begin{document}` in, say, a verbatim block.
1156 + Allow spaces between `\begin` or `\end` and `{`.
1157 + Support `\L` and `\l`.
1158 + Skip comments inside paragraphs.
1162 + Escape strings in `\href{..}`.
1163 + In nonsimple tables, put cells in `\parbox`.
1165 * OpenDocument writer: don't print raw TeX.
1169 + Fixed bug in `Image`. URI was getting unescaped twice!
1170 + Avoid printing extra blank lines at the end if there are
1171 no notes or references.
1173 * LaTeX and ConTeXt: Escape `[` and `]` as `{[}` and `{]}`.
1174 This avoids unwanted interpretation as an optional argument.
1176 * ConTeXt writer: Fixed problem with inline code. Previously
1177 `}` would be rendered `\type{}}`. Now we check the string for '}' and '{'.
1178 If it contains neither, use `\type{}`; otherwise use `\mono{}`
1179 with an escaped version of the string.
1181 * `:` now allowed in HTML tags. Resolves Issue #274.
1187 * New EPUB and HTML Slidy writers. (Issue #122)
1189 - EPUB is a standard ebook format, used in Apple's iBooks for
1190 the iPad and iPhone, Barnes and Noble's nook reader, the Sony
1191 reader, and many other devices.
1192 - Slidy, like S5, is a system for producing HTML+javascript slide
1195 * All input is assumed to be UTF-8, no matter what the locale and ghc
1196 version, and all output is UTF-8. This reverts to pre-1.5 behavior.
1197 Also, a BOM, if present, is stripped from the input.
1199 * Markdown now supports grid tables, whose cells can contain
1200 arbitrary block elements. (Issue #43)
1202 * Sequentially numbered example lists in markdown with `@` marker.
1204 * Markdown table captions can begin with a bare colon and no longer need
1205 to include the English word "table." Also, a caption can now occur
1206 either before or after the table. (Issue #227)
1208 * New command-line options:
1210 - `--epub-stylesheet` allows you to specify a CSS file that will
1211 be used to style your ebook.
1212 - `--epub-metadata` allows you to specify metadata for the ebook.
1213 - `--offline` causes the generated HTML slideshow to include all
1214 needed scripts and stylesheets.
1215 - `--webtex` causes TeX math to be converted to images using the
1216 Google Charts API (unless a different URL is specified).
1217 - `--section-divs` causes div tags to be added around each section
1218 in an HTML document. (Issue #230, 239)
1220 * Default behavior of S5 writer in standalone mode has changed:
1221 previously, it would include all needed scripts and stylesheets
1222 in the generated HTML; now, only links are included unless
1223 the `--offline` option is used.
1225 * Default behavior of HTML writer has changed. Between 1.2 and 1.5,
1226 pandoc would enclose sections in div tags with identifiers on the
1227 div tags, so that the sections can be manipulated in javascript.
1228 This caused undesirable interactions with raw HTML div tags. So,
1229 starting with 1.6, the default is to put the identifiers directly
1230 on the header tags, and not to include the divs. The `--section-divs`
1231 option selects the 1.2-1.5 behavior.
1235 - `HTMLMathMethod`: Added `WebTeX`, removed `MimeTeX`.
1236 - `WriterOptions`: Added `writerUserDataDir`, `writerSourceDirectory`,
1237 `writerEPUBMetadata` fields. Removed `writerIncludeBefore`,
1238 `writerIncludeAfter`.
1239 - Added `headerShift` to `Text.Pandoc.Shared`.
1240 - Moved parsing code and `ParserState` from `Text.Pandoc.Shared`
1241 to a new module, `Text.Pandoc.Parsing`.
1242 - Added `stateHasChapters` to `ParserState`.
1243 - Added `HTMLSlideVariant`.
1244 - Made `KeyTable` a map instead of an association list.
1245 - Added accessors for `Meta` fields (`docTitle`, `docAuthors`,
1247 - `Pandoc`, `Meta`, `Inline`, and `Block` have been given `Ord`
1249 - Reference keys now have a type of their own (`Key`), with its
1250 own `Ord` instance for case-insensitive comparison.
1251 - Added `Text.Pandoc.Writers.EPUB`.
1252 - Added `Text.Pandoc.UUID`.
1253 - Removed `Text.Pandoc.ODT`, added `Text.Pandoc.Writers.ODT`.
1254 Removed `saveOpenDocumentAsODT`, added `writeODT`.
1255 - Added `Text.Pandoc.Writers.Native` and `writeNative`.
1256 Removed `prettyPandoc`.
1257 - Added `Text.Pandoc.UTF8` for portable UTF8 string IO.
1258 - Removed `Text.Pandoc.Writers.S5` and the `writeS5` function.
1259 Moved `s5Includes` to a new module, `Text.Pandoc.S5`.
1260 To write S5, you now use `writeHtml` with `writerSlideVariant`
1261 set to `S5Slides` or `SlidySlides`.
1263 * Template changes. If you use custom templates, please update them,
1264 particularly if you use syntax highlighting with pandoc. The old HTML
1265 templates hardcoded highlighting CSS that will no longer work with
1266 the most recent version of highlighting-kate.
1268 - HTML template: avoid empty meta tag if no date.
1269 - HTML template: Use default highlighting CSS from highlighting-kate
1270 instead of hard-coding the CSS into the template.
1271 - HTML template: insert-before text goes before the title, and
1272 immediately after the <body> tag, as documented. (Issue #241)
1273 - Added slidy and s5 templates.
1274 - Added amssymb to preamble of latex template. (github Issue 1)
1276 * Removed excess newlines at the end of output. Note: because output
1277 will not contain an extra newline, you may need to make adjustments
1278 if you are inserting pandoc's output into a template.
1280 * In S5 and slidy, horizontal rules now cause a new slide, so you
1281 are no longer limited to one slide per section.
1283 * Improved handling of code in man writer. Inline code is now monospace,
1284 not bold, and code blocks now use .nf (no fill) and .IP (indented para).
1286 * HTML reader parses `<tt>` as Code. (Issue #247)
1288 * html+lhs output now contains bird tracks, even when compiled without
1289 highlighting support. (Issue #242)
1291 * Colons are now no longer allowed in autogenerated XML/HTML identifiers,
1292 since they have a special meaning in XML.
1294 * Code improvements in ODT writer. Remote images are now replaced with
1295 their alt text rather than a broken link.
1297 * LaTeX reader improvements:
1299 - Made latex `\section`, `\chapter` parsers more forgiving of
1301 - Parse `\chapter{}` in latex.
1302 - Changed `rawLaTeXInline` to accept `\section`, `\begin`, etc.
1303 - Use new `rawLaTeXInline'` in LaTeX reader, and export `rawLaTeXInline`
1304 for use in markdown reader.
1305 - Fixes bug wherein `\section{foo}` was not recognized as raw TeX
1306 in markdown document.
1308 * LaTeX writer: images are automatically shrunk if they would extend
1309 beyond the page margin.
1311 * Plain, markdown, RST writers now use unicode for smart punctuation.
1313 * Man writer converts math to unicode when possible, as in other writers.
1315 * `markdown2pdf` can now recognize citeproc options.
1317 * Command-line arguments are converted to UTF-8. (Issue #234)
1319 * `Text.Pandoc.TeXMath` has been rewritten to use texmath's parser.
1320 This allows it to handle a wider range of formulas. Also, if a formula
1321 cannot be converted, it is left in raw TeX; formulas are no longer
1322 partially converted.
1324 * Unicode curly quotes are left alone when parsing smart quotes. (Issue
1327 * Cabal file changes:
1329 - Removed parsec < 3 restriction.
1330 - Added 'threaded' flag for architectures where GHC lacks a threaded
1332 - Use 'threaded' only for markdown2pdf; it is not needed for pandoc.
1333 - Require highlighting-kate 0.2.7.
1335 * Use explicit imports from `Data.Generics`. Otherwise we have a
1336 conflict with the 'empty' symbol, introduced in syb >= 0.2. (Issue #237)
1338 * New data files: slidy/slidy.min.js, slidy/slidy.min.css, epub.css.
1344 * Fixed uniqueIdent in Shared so that header identifiers work as
1345 advertized in the README and are are valid XHTML names.
1351 * Fixed treatment of unicode characters in URIs.
1352 + Shared now exports escapeURI and unescapeURI. These handle
1353 UTF8 encoding and decoding as well as URI escaping/unescaping.
1354 + Shared: uri and emailAddress now return a pair of the original
1355 parsed text and the escaped URI (in the latter case, with
1356 the mailto: prefix).
1357 + HTML reader: unsanitaryURI has been modified to allow unicode
1358 high characters in a URI.
1359 + Readers: All link and image URIs are now escaped using
1361 + Markdown and RST writers: unescapeURI is used so that URIs
1362 in these formats are human-readable.
1364 * Setup.hs: Don't assume that the build directory is "dist".
1365 Instead, get it from localBuildInfo.
1367 * OpenDocument writer: Use a Map for stTextStyleAttr.
1368 This avoids duplicates (and invalid xml). Resolves Issue #222.
1374 * HTML writer: Fixed error in math writer (with MathML option)
1375 that caused an infinite loop for unparsable MathML.
1381 * Added --mathml option. When this is selected, pandoc will convert
1382 TeX math into MathML.
1383 + Added data/MathMLinHTML.js, which is included when no URL is
1384 provided for --mathml. This allows MathML to be displayed (in
1385 better browsers) as text/html.
1386 + Removed Text.Pandoc.LaTeXMathML. The module was no longer
1387 necessary; it was replaced by two lines in pandoc.hs.
1388 + Replaced LaTeXMathML.js.commend and LaTeXMathML.js.packed with a
1389 single combined file, LaTeXMathML.js.
1391 * Added --data-dir option.
1392 This specifies a user data directory. If not specified, will default
1393 to ~/.pandoc on unix or Application Data\pandoc on Windows.
1394 Files placed in the user data directory will override system default
1397 * Added Maybe datadir parameter to readDataFile, saveOpenDocumentAsODT,
1398 latexMathMLScript, s5HeaderIncludes, and getDefaultTemplate. If
1399 Nothing, no user directory is searched for an override.
1401 * Added 'plain' output format. This is similar to markdown, but
1402 removes links, pictures, inline formatting, and most anything that
1403 looks even vaguely markupish. The function writePlain is exported by
1404 Text.Pandoc.Writers.Markdown, with which it shares most of its code.
1406 * Allow multi-line titles and authors in meta block.
1407 Titles may span multiple lines, provided continuation lines
1408 begin with a space character. Separate authors may be put on
1409 multiple lines, provided each line after the first begins with
1410 a space character. Each author must fit on one line. Multiple
1411 authors on a single line may still be separated by a semicolon.
1412 Based on a patch by Justin Bogner.
1414 * When given an absolute URI as parameter, pandoc will try to fetch
1415 the content via HTTP. So you can do:
1416 'pandoc -r html -w markdown http://www.fsf.org'
1417 Adds dependency on HTTP.
1419 * Made HTML reader much more forgiving.
1420 + Incorporated idea (from HXT) that an element can be closed
1421 by an open tag for another element.
1422 + Javascript is partially parsed to make sure that a <script>
1423 section is not closed by a </script> in a comment or string.
1424 + More lenient non-quoted attribute values.
1425 Now we accept anything but a space character, quote, or <>.
1426 This helps in parsing e.g. www.google.com!
1427 + Bare & signs are now parsed as a string. This is a common
1429 + Skip a bare < in malformed HTML.
1431 * Removed html2markdown and hsmarkdown.
1432 + html2markdown is no longer needed, since you can now pass URI
1433 arguments to pandoc and directly convert web pages. (Note,
1434 however, that pandoc assumes the pages are UTF8. html2markdown
1435 made an attempt to guess the encoding and convert them.)
1436 + hsmarkdown is pointless -- a large executable that could be
1437 replaced by 'pandoc --strict'.
1439 * In most writers, an image in a paragraph by itself is now rendered
1440 as a figure, with the alt text as the caption. (Texinfo, HTML, RST,
1441 MediaWiki, Docbook, LaTeX, ConTeXt, HTML.) Other images are
1444 * Depend on extensible-exceptions. This allows pandoc to be compiled
1447 * Added --base-header-level option. For example, --base-header-level=2
1448 will change level 1 headers to level 2, level 2 to level 3, etc.
1449 Closes Debian #563416.
1451 * Incomplete support for RST tables (simple and grid).
1452 Thanks to Eric Kow. Colspans and rowspans not yet supported.
1454 * Added accessors (docTitle, docAuthors, docDate) to Meta type.
1456 * MediaWiki writer: format links with relative URLs as wikilinks.
1457 The new rule: If the link target is an absolute URL, an external
1458 link is created. Otherwise, a wikilink is created.
1460 * Text.Pandoc.Shared: Export uniqueIdent, and don't allow tilde in
1461 identifier. Note: This may break links to sections that involve
1464 * Markdown(+lhs) reader: handle "inverse bird tracks."
1465 Inverse bird tracks (<) are used for haskell example code that is not
1466 part of the literate Haskell program. Resolves Issue #211.
1469 + Recognize '\ ' (interword space).
1470 + Recognize nonbreaking space '~'.
1471 + Ignore \section, \pdfannot, \pdfstringdef. Ignore alt title in
1472 section headers. Don't treat \section as inline LaTeX.
1473 Resolves Issue #202.
1474 + LaTeX reader: allow any special character to be escaped.
1475 Resolves Issue #221.
1476 + LaTeX reader: treat \paragraph and \subparagraph as level 4, 5
1477 headers. Resolves Issue #207.
1479 * Use template variables for include-before/after.
1480 + These options now imply -s; previously they worked also in fragment
1482 + Users can now adjust position of include-before and include-after
1483 text in the templates.
1484 + Default position of include-before moved back (as it was before 1.4)
1485 before table of contents.
1486 + Resolves Issue #217.
1488 * Don't print an empty table header: (all writers).
1489 Resolves Issue #210.
1491 * HTML, Docbook writer: Use tbody, thead, and cols in tables.
1493 * HTML writer: Don't include TOC div if table of contents is empty.
1495 * Markdown writer: Fixed citations.
1496 Previously the markdown writer printed raw citation codes, e.g.
1497 [geach1970], rather than the expanded citations provided by
1498 citeproc, e.g. (Geach 1970). Now it prints the expanded citations.
1499 This means that the document produced can be processed as a markdown
1500 document without citeproc. Thanks to dsanson for reporting, and
1501 Andrea Rossato for the patch.
1503 * Improved and simplified title block in context template.
1504 Previously it caused an error if there was no title.
1505 This method should also be easier for users to customize.
1508 + Treat p., pp., sec., ch., as abbreviations in smart mode.
1509 + Disallow blank lines in inline code span.
1510 + Allow footnotes to be indented < 4 spaces.
1511 This fixes a regression. A test case has been added.
1512 + Escape spaces in URLs as %20. Previously they were incorrectly
1513 escaped as +, which is appropriate only for the query part of
1514 a URL. Resolves Issue #220.
1515 + Require two spaces after capital letter + period for list item.
1516 Otherwise "E. coli" starts a list. This might change the semantics
1517 of some existing documents, since previously the two-space
1518 requirement was only enforced when the second word started
1519 with a capital letter. But it is consistent with the existing
1520 documentation and follows the principle of least surprise.
1521 Resolves Issue #212.
1523 * LaTeX template: redefine labelwidth when using enumerate package.
1524 Otherwise the list labels (numbers) often extend past the left
1525 margin, which looks bad.
1527 * Mediawiki writer: Don't print a "== Notes ==" header before
1528 references. This is too English-centric. Writers can provide their
1529 own header at the end of the document.
1531 * Promoted mediawiki headers. '= head =' is now level 1, '== head =='
1532 level 2, etc. This seems to be correct; it's only by convention
1533 that wikipedia articles have level 2 headers at most.
1534 Patch due to Eric Kow.
1536 * RunTests.hs: Set LANG to a UTF-8 locale. Use 'pandoc --data-dir=' so
1537 data files don't need to have been installed. This removes the need to
1541 + Handle spaces before <html>. Resolves Issue #216.
1542 + Be forgiving in parsing a bare list within a list.
1543 The following is not valid xhtml, but the intent is clear:
1546 <ol><li>sub</li></ol>
1549 We'll treat the <ol> as if it's in a <li>. Resolves Issue #215.
1551 * Updated INSTALL instructions. cabal method is now promoted.
1553 * Updated markdown2pdf man page. It no longer says all pandoc options
1556 * README/man pages: Removed advice to pipe through tidy before HTML
1557 reader. This is obsolete, now that we have a forgiving HTML parser.
1559 * LaTeX writer: set numbersections template variable, so
1560 the section numbering options work again.
1562 * Removed obsolete Makefile.
1564 * Website: renamed index.txt.in -> index.txt.
1566 * New batch file to make-windows-installer.
1567 + Removed old Makefile.windows
1568 + Added make-windows-installer.bat
1569 + Modified default installer name in pandoc-setup.iss
1571 * Removed freebsd and macports directories.
1572 They are no longer up to date.
1575 + Made man page building sensitive to build verbosity.
1576 + Improved detection of highlighting support in test hook.
1577 + Install wrapper scripts into cabal bin directory.
1578 + Also simplified installManpages.
1579 + Setup.hs: install manpages to mandir. Code borrowed from darcs.
1581 * Changed default of writerXeTeX to False.
1583 * HTML writer: don't include empty UL if --toc but no sections.
1584 Resolves Issue #199.
1588 + If book, report, or memoir documentclass, use \chapter{}
1589 for first-level headers. Otherwise use \section{}.
1590 + Removed stLink, link template variable. Reason: we now always
1591 include hyperref in the template.
1595 + Only show \author if there are some.
1596 + Always include hyperref package. It is used not just for links but
1597 for toc, section heading bookmarks, footnotes, etc. Also added
1598 unicode=true on hyperref options.
1600 * markdown2pdf: always do at least two runs. hyperref bookmarks
1603 * cabal file: Removed unneeded dependency on template-haskell.
1605 * Windows installer - fixed bug in data file locations.
1606 Resolves Issue #197.
1608 * Deprecated --custom-header in documentation.
1609 Removed old "Custom Headers" section in README.
1615 * Pandoc will now compile with either GHC 6.10 or 6.12.
1616 + Don't use System.IO.UTF8 when compiling with 6.12
1617 + Use -fno-warn-unused-do-bind option when compiling with 6.12
1619 * Replaced old headers with templates. Now users have much more
1620 control over the way documents appear in --standalone mode,
1621 and writer code is simplified. Resolves Issues #59, 147.
1622 Every effort has been made to retain backwards compatibilty.
1623 So, the --custom-header option should still work as before.
1625 + Added Text.Pandoc.Templates. This provides functions for
1626 retrieving default templates and for rendering templates.
1627 + System templates (in the pandoc data directory) can be
1628 overridden by user templates in $HOME/.pandoc/templates.
1629 + Removed Text.Pandoc.DefaultHeaders.
1630 + Removed data/headers directory.
1631 + Added templates directory.
1632 + Added writerTemplate and writerVariables fields to WriterOptions.
1633 + Removed writerTitlePrefix, writerHeader fields from WriterOptions.
1634 + Changed --print-default-header to --print-default-template.
1635 + Added --template option.
1636 + Added -V/--variable option to set custom template variables.
1638 * Pandoc no longer requires Template Haskell. Resolves Issue #186.
1640 + Removed need for TH in ODT module. Instead get reference.odt from
1641 data file at run time.
1642 + Removed TH dependency from S5 module. S5 module now exports
1643 s5HeaderIncludes, which pandoc.hs includes if writer is s5 and
1645 + Refactored LaTeXMathML not to use TH.
1647 * Meta is now Meta [Inline] [[Inline]] [Inline] rather than
1648 Meta [Inline] [String] String. Authors and date in Meta are now lists
1649 of Inline elements rather than raw strings. This means that they can
1650 be formatted and can include footnotes. NOTE: This may be a breaking
1651 change for those using pandoc as a library.
1653 * Added readDataFile to Text.Pandoc.Shared. This retrieves
1654 a data file from the user pandoc data directory (~/.pandoc
1655 on unix), or, if not found there, from the system data
1656 directory ($CABALDIR/shared/pandoc-VERSION/). All data
1657 files, including templates, LaTeXMathML.js, s5 styles,
1658 and reference.odt, can be overridden by the user.
1660 * s5 files moved from data/ui/default to s5/default.
1662 * Use unicode instead of entities in HTML and XML output. Resolves
1665 * Prettier HTML footnote references: put anchor inside sup,
1666 instead of other way. Resolves Issue #191. Thanks to
1669 * Added --xetex option to pandoc and markdown2pdf.
1670 If --xetex is specified, pandoc produces latex suitable for
1671 processing by xelatex, and markdown2pdf uses xelatex to create
1672 the PDF. Resolves Issue #185.
1674 * RTF writer: multiple authors now occupy multiple paragraphs rather
1675 than using a line break.
1677 * Man writer: now the "--after-body" will come after the "AUTHORS"
1678 section, whereas before it would come before it. This is a
1679 slight break from backwards compatibility.
1681 * Added --reference-odt option, so users may customize the styles
1682 used in pandoc-generated ODT files. Users may also place a
1683 default reference.odt in the ~\.pandoc directory.
1686 + Indented and line-broke styles.xml so it can be modified more easily.
1687 + Omitted some unnecessary style declarations.
1688 + Don't wrap text in OpenDocument writer. The tags are too long, making
1689 wrapping ugly and pointless.
1691 * LaTeX reader: use \\ to separate multiple authors.
1693 * Markdown reader: use ; as separator between authors.
1694 This allows you to use ',' within author names: e.g. "John Jones, Jr."
1696 * S5 writer: use linebreak to separate authors in title page.
1698 * RST reader: Allow :: before lhs code block. The RST spec requires the
1699 :: before verbatim blocks. This :: should not be treated as literal
1700 colons. Resolves Issue #189.
1702 * Documented pandoc 1.3's new definition list syntax in README.
1703 (An oversight in the last release.)
1706 + interpret ! in a log as an error line.
1707 + --toc now works properly.
1709 * Changes in RunTests.hs:
1710 + Use the Diff library rather than a local copy of Diff.hs.
1711 (This vastly increases performance.) This change means that 'cabal
1712 test' presupposes that the Diff library is installed.
1713 + Removed tests/Diff.hs from cabal file.
1714 + Changed RunTests to use local environment. We need at least HOME, so
1715 pandoc can find its data directory.
1717 * Updated windows installer to install data files in the app directory.
1719 * Windows installer now installs portable wrappers hsmarkdown and
1726 * Added --id-prefix option (Issue #41). This adds a prefix to all
1727 automatically generated HTML identifiers, which helps prevent
1728 duplicate identifiers when you're generating a fragment (say a blog
1731 * Added --indented-code-classes option. This specifies classes
1732 to use for indented code blocks. (Patch due to buttock; Issue #87.)
1734 * --number-sections now affects HTML output as well as ConTeXt and LaTeX
1737 * Improved syntax for markdown definition lists (Issue #24).
1738 Definition lists are now more compatible with PHP Markdown Extra.
1739 + You can have multiple definitions for a term (but still not
1741 + Multi-block definitions no longer need a column before each block
1742 (indeed, this will now cause multiple definitions).
1743 + The marker no longer needs to be flush with the left margin,
1744 but can be indented at or two spaces. Also, ~ as well as :
1745 can be used as the marker (this suggestion due to David
1747 + There can now be a blank line between the term and the
1750 * Better looking simple tables. Resolves Issue #180.
1751 + Markdown reader: simple tables are now given column widths of 0.
1752 + Column width of 0 is interpreted as meaning: use default column width.
1753 + Writers now include explicit column width information only
1754 for multiline tables. (Exception: RTF writer, which requires
1755 column widths. In this case, columns are given equal widths,
1756 adding up to the text width.)
1757 + Simple tables should now look better in most output formats.
1759 * Allow markdown tables without headers (Issue #50).
1760 The new syntax is described in README. Also allow optional line of
1761 dashes at bottom of simple tables.
1763 * Compensate for width of final table column (Issue #144).
1765 * Treat a backslash followed by a newline as a hard line break
1766 in markdown. Resolves Issue #154. This is a nice alternative
1767 to markdown's "invisible" way of indicating hardline breaks
1768 using lines that end with two spaces.
1770 * Improved performance of markdown reader by ~10% by eliminating the
1771 need for a separate parsing pass for notes. Raw notes are now stored
1772 on the first pass (which parses references), then parsed when the
1773 note is inserted into the AST. The stateNotes field in ParserState
1774 is now a list of [(String, String)] pairs instead of [(String,
1777 * In markdown reader, treat 4 or more * or _ in a row as literal
1778 text. (Trying to parse long strings of * or _ as strong or emph
1779 leads to exponential performance problems.)
1781 * Markdown reader: Use + rather than %20 for spaces in URLs.
1783 * Fixed htmlComment parser, adding a needed 'try'.
1785 * Don't print raw HTML in man output.
1787 * Allow . _ and ~ in header identifiers.
1789 * Specially mark code blocks that were "literate" in the input.
1790 They can then be treated differently in the writers. This allows
1791 authors to distinguish bits of the literate program they are writing
1792 from source code examples, even if the examples are marked as
1793 Haskell for highlighting. (Issue #174.)
1795 * Modified html+lhs output to use "haskell" highlighter instead
1796 of "literateHaskell". The highlighting module now adds bird tracks
1797 after highlighting (for HTML output), if the code block has the
1798 "literate" class. This gives better results, because kate's
1799 haskell highlighter is much better than the literateHaskell
1802 * Fixed handling of footnotes in titles (HTML) and headers (LaTeX).
1805 * Support for "..code-block" directive in RST reader. Not core
1806 RST, but used in Sphinx for code blocks annotated with syntax
1807 information. Thanks to Luke Plant for the patch.
1809 * Added "head" to list of block-level HTML tags. Resolves
1812 * Added stripTags to Text.Pandoc.XML. This is used in the HTML writer.
1814 * Set utf-8 encoding in texinfo headers.
1816 * Docbook writer: add ids to sections. Use link for internal links.
1819 * Blank lines after lists in MediaWiki writer.
1821 * Properly handle commented-out list items in markdown.
1822 Resolves Issue #142. Example:
1830 * Changed heuristic in compactify. compactify has to decide whether a
1831 Para that ends a list is a Para intentionally, or just because of
1832 the blank lines at the end of every list. In the latter case the
1833 Para is turned to a Plain. The old heuristic was: change final Para
1834 to Plain iff the other items all end in Plain. This produces bad
1835 results when, for example, an item contains just a Plain and an HTML
1836 comment, as it does in the list above. The new heuristic: change
1837 final Para to Plain iff the other items don't contain a Para.
1839 * Added % as an rst underline character. Resolves Issue #173.
1841 * Fix inline math parser so that \$ is allowed in math.
1842 Resolves Issue #169.
1844 * Translate \int (integral) into unicode when using unicode math
1845 method. Resolves Issue #177.
1847 * markdown2pdf.hs improvements:
1848 + Use System.IO.UTF8.
1849 + Print error messages on last attempt.
1850 + Do not create a backup when overwriting a PDF (Issue #166).
1851 + Accept --longopt=val options.
1852 + Added man/man1/markdown2pdf.1 to extra-tmp-files in cabal, so that
1853 it is properly cleaned.
1855 * Added haddock comments warning that readers assume \n line endings.
1857 * Updated COPYRIGHT file.
1859 * Makefile: Changed EXECSBASE so it doesn't pull in hsmarkdown &
1860 markdown2pdf. Otherwise strip tries to strip shell scripts when you
1861 install using 'make'.
1863 * Changed Makefile so it doesn't build Haskell wrappers.
1865 * Fixed Makefile so it doesn't try to build man pages in build-doc.
1867 * Install pcre3.dll in Windows install script; this allows us to
1868 package a version of pandoc with highlighting support.
1874 * Fixed regression with --preserveTabs. Brought back optPreserveTabs.
1875 The trick of setting tabStop to 0 to mean "preserve tabs" had a bad
1876 side effect: strings of 0 spaces were interpreted as indentation.
1877 So, with --preserve-tabs, unindented paragraphs were treated as
1878 code. Resolves Issue #138.
1880 * HTML writer: wrap sections in divs. Resolves Issue #70.
1882 + hierarchicalize has been rationalized; it builds a hierarchical
1883 representation of the document from the headers, and simultaneously
1884 gives each section a unique identifier based on the heading title.
1885 + Identifiers are now attached to the divs rather than
1886 to the headers themselves.
1887 + Table of content backlinks go to the beginning of the table, rather
1888 than to the section reference that was clicked.
1889 + Code for constructing identifiers has been moved to Text.Pandoc.Shared
1890 from the HTML writer, since it is now consumed only by
1892 + In --strict mode, pandoc just prints bare headings, as before
1893 (unless --toc has been specified).
1894 + In s5 output, it does not wrap sections in divs, as that seems to
1895 confuse the s5 javascript.
1897 * Man writer: break lines at end of each sentence. groff expects this
1898 and treats '.' and '?' differently when followed by line ending as
1899 opposed to ordinary space. Also, don't escape periods. Instead, use
1900 zero-width character \& to avoid unwanted interpretation of periods
1901 at start of line. Resolves Issue #148.
1903 * Markdown writer: Added '#' and '>' to list of characters to be
1904 escaped in markdown output. Removed '<', as it is not an officially
1905 escapable character. This partially resolves Issue #96.
1907 * Make --smart the default for man output format. Otherwise we have
1908 trouble dividing lists of endlines into sentences.
1910 * DocBook writer: Use language attribute to indicate source language
1915 + Allow # to continue list, even if the list was started with an
1916 explicit marker. For example:
1921 Resolves Issue #140.
1922 + Allow continuation lines in line blocks. Also added test cases for
1923 line blocks for RST reader. Resolves Issue #149.
1924 + Allow explicit links with spaces in URL: `link <to this>`_
1926 * Improved LaTeX reader's coverage of math modes. Remove displaymath*
1927 (which is not in LaTeX) and recognize all the amsmath environments
1928 that are alternatives to eqnarray, namely equation, equation*,
1929 gather, gather*, gathered, multline, multline*, align, align*,
1930 alignat, alignat*, aligned, alignedat, split. Resolves Issue #103.
1931 Thanks to shreevatsa.public for the patch.
1935 + Allow -, _, :, . in markdown attribute names. These are legal in
1936 XML attribute names.
1937 + Use non-breaking spaces in abbreviations.
1938 + Markdown reader: improved efficiency of abbreviation parsing.
1939 Instead of a separate abbrev parser, we just check for
1940 abbreviations each time we parse a string. This gives a huge
1941 performance boost with -S. Resolves Issue #141.
1943 * Improved efficiency of shared parsers: hexNum, htmlComment,
1944 whitespace, indentSpaces.
1946 * Export HTMLMathMethod in Text.Pandoc.
1948 * Export languagesByExtension in Text.Pandoc.Highlighting.
1950 * Added new Haskell version of markdown2pdf, due to
1951 Paulo Tanimoto. This should be more portable than the old
1954 * Made 'pandoc -v' more explicit about compiler options.
1955 Resolves Issue #139.
1957 * pandoc.hs: Made --strict compatible with --standalone, --toc.
1959 * Use Paths_pandoc to get version number, instead of hard-coding it
1960 into Text/Pandoc.hs.
1966 * Added support for literate Haskell. lhs support is triggered by
1967 '+lhs' suffixes in formats. For example, 'latex+lhs' is literate
1968 Haskell LaTeX. '.lhs' files are treated by default as literate
1971 + Added stateLiterateHaskell to parser state.
1972 + Added parser for lhsCodeBlock to Markdown, RST, LaTeX readers.
1973 + Added parser for |inline lhs| to LaTeX reader.
1974 + Added writerLiterateHaskell to WriterOptions.
1975 + Added lhs support to Markdown, RST, LaTeX, HTML writers.
1976 + Added definition of code environment to LaTeX header.
1977 + Added tests (run only if highlighting support compiled in).
1978 + Documented lhs features in man page and README.
1980 * In Text.Pandoc.Definition, added processWith, processWithM,
1981 and queryWith, and deprecated processPandoc and queryPandoc
1982 for these more general functions.
1984 * Fixed bug in mediawiki writer: improper closing tags in tables.
1985 Thanks to Benct Philip Jonsson for reporting the bug.
1987 * Added --email-obfuscation option.
1989 + Added writer option for email obfuscation.
1990 + Implemented email obfuscation options in HTML writer.
1991 + Added option to option parser.
1992 + Documented in README and pandoc man page.
1993 + Resolves Issue #97.
1995 * LaTeX writer: fixed bug with empty table cells.
1996 Resolves Issue #107. Thanks to rodja.trappe for the patch.
1998 * Fixed bug with header spacing in Markdown and RST writers.
1999 A null header (Meta [] [] []) should not cause a blank line
2000 at the beginning of output. But a blank line is needed between
2001 a non-null header and the main text.
2003 * Markdown reader: Relax spacing rules for $$ in display math. Now
2004 space and newlines are allowed after the opening $$ and before the
2005 closing $$. However, the display math cannot contain an entirely
2006 blank line. Resolves Issue #105.
2008 * Markdown reader: Gobble space after Plain blocks containing only
2009 raw html inline. Otherwise following header blocks are not parsed
2010 correctly, since the parser sees blank space before them. Resolves
2013 * Markdown reader: Allow " as well as '' to end a latex double-quote.
2015 * Conditionally depend on syb and base >= 4 if ghc >= 6.10.
2016 Resolves Issue #109.
2018 * Fixed problems in RST and markdown output due to bug in pretty-1.0.1.0
2020 + Added hang' function to Text.Pandoc.Shared; this will be used instead
2021 of hang, which doesn't work properly in pretty-1.0.1.0. When pretty
2022 is upgraded, we can go back to hang.
2023 See http://article.gmane.org/gmane.comp.lang.haskell.general/16687
2024 + Use hang' (and some different techniques) in RST and markdown writers.
2025 Some output is now a bit different.
2027 * Brought citeproc support up to date for citeproc-hs-0.2.
2028 (Patch by Andrea Rossato.)
2030 * Moved all haskell source to src subdirectory. Renamed Main.hs to
2033 * Rewrote hsmarkdown in Haskell for portability (src/hsmarkdown.hs).
2034 For now, keeping the old shell script too.
2036 * Added TemplateHaskell to Extensions for executable, removed
2037 -threaded for library. Thanks to duncan.coutts for the bug report.
2038 Resolves Issue #121.
2040 * Moved some Extra-Source-Files to Data-Files.
2042 * Moved tabFilter to Shared.
2044 * In pandoc.hs, removed optPreserveTabs; instead, tabstop of 0 means
2047 * Minor code cleanup based on hlint suggestions.
2055 + Changed date on copyright message in Main.hs.
2056 + Have the '-v' option print syntax highlighting languages
2057 separated by commas, and wrapped in lines, instead of in five
2060 * Added --jsmath option. Resolves Issue #68.
2062 + Added --jsmath option to Main.hs
2063 + Added JsMath to HTMLMathMethod in Text.Pandoc.Shared.
2064 + Handle math appropriately in HTML writer when JsMath selected.
2065 + Documented the option in README and man page.
2067 * Text.Pandoc.Shared: Changed compactify to use a better heuristic
2068 for tight and loose lists. Final Para is changed to Plain if all
2069 other list items *end* with a Plain block. Addresses Issue #99.
2073 + Added colons to protocols in unsanitaryURI. Closes Issue #88.
2074 + HTML reader: Don't interpret contents of <pre> blocks as markdown.
2075 Added rawVerbatimBlock parser. Resolves Issue #94.
2079 + Allow URLs with spaces in them in links and references, but escape
2081 + Allow blank space at the end of horizontal rules.
2083 * RST reader: Modified 'unknownDirective' parser to handle comment
2084 blocks correctly, and added tests for comment blocks. Resolves Issue
2085 #86. Closes Debian Bug #500662.
2089 + Include classes on tr elements in HTML output:
2090 "header", "odd", "even". This allows tables to be styled with
2091 lines in alternating colors. Resolves Issue #91.
2092 + Enclose all LaTeXMathML bits in <span class="LaTeX">.
2093 This prevents parts of the document that are not math from being
2094 interpreted as math by LaTeXMathML.js.
2096 * OpenDocument and ODT writers: Added support for HorizontalRule elements,
2097 which were formerly ignored. Resolves Issue #95.
2099 * Text.Pandoc.Shared: Modified wrappedTeX to eliminate the line break
2100 between a footnote and immediately following nonspace characters in
2101 LaTeX and ConTeXt output. (This gets interpreted as a space, which
2102 is not desired in cases like "text^[note]---".) Resolves Issue #93.
2104 * Windows installer: Don't require admin privileges to run
2105 installer. Modified pandoc-setup.iss, and changed modpath.iss to
2106 modify HKCU path if user lacks admin privileges. Also fixed case
2107 where oldpath is empty (previously this led to the new path
2108 beginning with a semicolon).
2110 * Updated INSTALL instructions for Arch packages and OS X install using
2113 * Removed the (now unneeded) debian directory.
2114 Removed empty Codec and System directories.
2116 * Moved odt-styles/ to data/. Removed unneeded variable in Makefile.
2118 * Modified Setup.hs so that the "test" target returns an error status
2119 when tests fail, and "build" returns a success status if
2120 the build succeeds. Resolves Issue #100.
2122 * Added BUGS to files in tarball.
2129 * Removed spurious reference to pdf output format from pandoc(1) man page.
2135 * Added new OpenDocument writer.
2137 * Added support for SmallCaps inline element.
2139 * Added support for integrating pandoc with citeproc-hs.
2141 + Added Cite element to definition and writers.
2142 + Added Text.Pandoc.Biblio module
2143 + Note: This support is included only if the 'citeproc'
2144 Cabal configuration flag is set.
2146 * Made Pandoc data structure an instance of Typeable.
2147 Added new processPandoc and queryPandoc functions, to query
2148 or transform matching elements in a Pandoc structure.
2152 * Added new Texinfo writer.
2156 * Changes to Texinfo writer:
2158 + No space between paragraph and following @verbatim (provides more
2159 pleasing appearance in text formats)
2160 + Blank line consistently after list environments.
2162 + Use @code instead of @verb for inline code (this solves the character
2163 escaping problem for texi2dvi and texi2pdf).
2164 + Added news of Texinfo writer to README.
2165 + Added Texinfo to list of formats in man page, and removed extra 'groff'.
2166 + Added texi & texinfo extensions to Main.hs, and fixed bug in determining
2167 default output extension.
2168 + Modified disallowedInNode in Texinfo writer to correct list of disallowed characters.
2170 * Added tests for OpenDocument writer.
2172 * Added ODT writer (using zip-archive library to package output of
2173 OpenDocument writer). Added odt-styles directory with default ODT styles.
2175 * Added new mediawiki writer and tests.
2177 * Markdown reader: Added support for delimited code blocks, with optional
2178 syntax highlighting using highlighting-kate (if the 'highlighting'
2179 configuration option is selected).
2181 + Currently highlighting is supported only in the HTML writer.
2182 + Delimited code blocks can have attributes; using the language name as
2183 class triggers highlighting.
2184 + New Attributes parameter in CodeBlock structure.
2185 + --version now indicates whether syntax highlighting support is compiled
2186 in, and prints a list of supported languages
2188 * Removed debian directory. Pandoc is no longer a native debian package.
2190 * Changes to build process: pandoc can now be built from the repository
2191 using Cabal. No unix tools are needed (so, pandoc can be built on Windows
2194 + Include shell scripts themselves in repo, rather than generating from wrappers.
2195 Removed wrappers directory and wrappers Makefile target.
2196 + Text/Pandoc/ASCIIMathML.hs, Text/Pandoc/DefaultHeaders.hs,
2197 and Text/Pandoc/Writers/S5.hs are no longer built in Makefile
2198 from templates in the templates/ directory. Instead, they use template
2199 haskell to read data at compile time from the relevant files in data/.
2200 Template haskell functions go in a new module, Text.Pandoc.TH.
2201 + man pages are now generated in Setup.hs hook, not by Makefile
2202 + Makefile 'tarball' target now calls Cabal's 'sdist'
2203 + Added "Extra-Source-Files" to pandoc.cabal, so sdist contains everything needed
2204 + Added "Build-Type" field to pandoc.cabal to avoid warning.
2205 + Added to "Extra-source-files" and "Extra-tmp-files" in pandoc.cabal,
2206 so 'sdist' and 'clean' will work properly.
2207 + Setup.hs now generates man pages in a postbuild hook.
2208 + Added dependency-checking to Setup.hs, so it only rebuilds things
2209 that need rebuilding.
2210 + Added 'library' and 'executable' configuration flags.
2211 Cabal can now be told to build just the library or just the executable.
2212 + CABALOPTS may now be specified with 'make' to pass Cabal configuration flags.
2213 For example: CABALOPTS=-fhighlighting make
2215 * Rewrote test suite so it doesn't depend on perl or unix tools.
2217 + Replaced old runtests.pl with a Haskell script RunTests.hs.
2218 + Added Diff.hs module to be used by RunTests.hs instead of unix 'diff'.
2219 + Added test hook to Setup.hs, so tests may be run from cabal.
2220 + Changed Makefile's 'test' target to run tests via cabal.
2221 + Removed old generate.sh.
2222 + Since we no longer have 'sed' to filter out raw HTML sections
2223 from the docbook writer test, or raw LaTeX sections from the
2224 context writer test, we now just include these sections.
2225 They can be taken out if it is necessary to process the files.
2226 + Updated latex and context writer tests to remove extra spaces
2228 + Added a markdown table reader test.
2229 + Added markdown-reader-more.txt to test suite, for additional test cases
2230 for raw ConTeXt environments and more.
2232 * Compatibility fixes for CPP, Cabal, and haddock:
2234 + Use CPP in "Extensions" field in pandoc.cabal.
2235 + Removed use of backslash string continuations in source files.
2237 * Removed pandoc.cabal.ghc66. We now require Cabal >= 1.2, GHC >= 6.8,
2240 * Require parsec < 3.
2241 The compatibility module in parsec 3.0.0 gives far worse performance than
2242 parsec 2.1. Eventually pandoc will be upgraded to use the new bytestring
2243 version of parsec, and then we'll go to parsec 3.0.0.
2245 * Removed Text.Regex dependencies by rewriting using plain Haskell
2246 (Text.Pandoc.Writers.RTF, Text.Pandoc.Writers.HTML, Main.hs)
2248 * Moved Text.Pandoc.Writers.DefaultHeaders -> Text.Pandoc.DefaultHeaders.
2252 + Added 'configure' as dependency of 'uninstall-all'.
2253 (It uses the Cabal build program.)
2254 + Makefile: only use --with-hc-pkg if GHC_PKG is defined.
2255 Note that Cabal will automatically choose the ghc-pkg appropriate
2256 for the compiler selected, so normally specifying GHC by itself
2259 * Removed Text.Pandoc.UTF8 module; instead, depend on utf8-string and use
2260 its IO and conversion functions.
2262 * Added -Wall to ghc-options in pandoc.cabal. Cleaned up modules so that
2263 everything is -Wall clean.
2265 + Added pragma to HTML writer to avoid deprecation warning for use of "start" attribute.
2266 + Added pragma to Text/Pandoc/Shared.hs to get rid of "orphan instance" warnings.
2267 (These are caused by the Lift instance for ByteString.)
2269 * Changed the comment used to replace unsafe HTML if sanitize-html option
2272 * Made -c/--css option repeatable on the command line (like -H, -A, -B).
2274 * Moved XML-formatting functions to new unexported module Text.Pandoc.XML.
2276 * Escape '\160' as " ", not " " in XML.
2277 "nbsp" isn't a predefined XML entity.
2279 * Fixed bug in RST reader, which would choke on: "p. one\ntwo\n".
2280 Added some try's in ordered list parsers.
2282 * Man writer: don't escape " as \".
2284 * Allow newline before URL in markdown link references. Resolves Issue #81.
2285 Added tests for this issue in new "markdown-reader-more" tests.
2286 Changed RunTests.hs to run these tests.
2288 * Support for display math. Resolves Issue #47.
2290 + Added a DisplayMath/InlineMath selector to Math inlines.
2291 + Markdown parser yields DisplayMath for $$...$$.
2292 + LaTeX parser yields DisplayMath when appropriate. Removed
2293 mathBlock parsers, since the same effect is achieved by the math
2294 inline parsers, now that they handle display math.
2295 + Writers handle DisplayMath as appropriate for the format.
2296 + Modified tests accordingly; added new tests for display math.
2298 * Use LaTeXMathML instead of ASCIIMathML. LaTeXMathML is closer
2299 to LaTeX in its display of math, and supports many non-math LaTeX environments.
2301 + Changed -m option to use LaTeXMathML rather than ASCIIMathML.
2302 + Modified HTML writer to print raw TeX when LaTeXMathML is
2303 being used instead of suppressing it.
2304 + Removed ASCIIMathML files from data/ and added LaTeXMathML.
2305 + Replaced ASCIIMathML with LaTeXMathML in source files.
2306 + Modified README and pandoc man page source.
2307 + Added --latexmathml option (kept --asciimathml as a synonym
2308 for backwards compatibility)
2310 * Markdown reader: Parse setext headers before atx headers.
2314 parsed by Markdown.pl as an H1 header with contents "# hi".
2316 * Markdown reader: Treat "mixed" lists the same way as Markdown.pl does.
2317 The marker on the first list item determines the type of the whole
2318 list. Thus, a list like
2322 gets parsed as a single ordered list. (Previous versions of pandoc
2323 treated this as an ordered list with an unordered sublist.)
2325 * Markdown smart typography:
2327 + Em dashes no longer eat surrounding whitespace. Resolves Issue #69.
2328 + Use nonbreaking spaces after known abbreviations in markdown parser.
2329 Thus, for example, "Mr. Brown" comes out as "Mr.~Brown" in LaTeX, and does
2330 not produce a sentence-separating space. Resolves Issue #75.
2332 * Markdown writer: Print unicode \160 literally, rather than as .
2334 * Treat '\ ' in (extended) markdown as nonbreaking space.
2335 Print nonbreaking space appropriately in each writer (e.g. ~ in LaTeX).
2337 * The '--sanitize-html' option now examines URIs in markdown links
2338 and images, and in HTML href and src attributes. If the URI scheme
2339 is not on a whitelist of safe schemes, it is rejected. The main point
2340 is to prevent cross-site scripting attacks using 'javascript:' URIs.
2341 See http://www.mail-archive.com/markdown-discuss@six.pairlist.net/msg01186.html
2342 and http://ha.ckers.org/xss.html. Resolves Issue #62.
2346 + Override Text.XHtml's stringToHtml function,
2347 so that characters below 0xff are not converted to numerical entity
2348 references. Also convert '\160' to " ". This should aid readability
2349 and editability of the HTML source. It does presuppose that the HTML
2350 will be served as UTF-8.
2351 + In code blocks, change leading newlines to <br /> tags.
2352 (Some browsers ignore them.) Resolves Issue #71.
2353 See http://six.pairlist.net/pipermail/markdown-discuss/2008-May/001297.html
2354 + Use style attributes rather than css classes for strikethrough
2355 and ordered list styles. This works better when fragments, rather than
2356 standalone documents, are generated.
2358 * HTML reader: Count anything that isn't a known block (HTML) tag as an
2359 inline tag (rather than the other way around). Added "html", "head", and
2360 "body" to list of block tags. Resolves Issue #66, allowing
2361 <lj> to count as an inline tag.
2363 * RTF writer: Fixed bug. Extra spaces were being printed after emphasized,
2364 boldface, and other inline elements. Resolves Issue #64.
2366 * LaTeX reader: improvements in raw LaTeX parsing.
2368 + "loose punctuation" (like {}) parsed as Space
2369 + Para elements must contain more than Str "" and Space elements
2370 + Added parser for "\ignore" command used in literate haskell.
2371 + Reworked unknownCommand and rawLaTeXInline: when not in "parse raw"
2372 mode, these parsers simply strip off the command part and allow
2373 the arguments to be parsed normally. So, for example,
2374 \blorg{\emph{hi}} will be parsed as Emph "hi" rather than
2376 + Parse lhs "code" environments as verbatim.
2377 Refactored parsers for verbatim environments.
2378 + Removed specialEnvironment parser.
2379 + parse '{}', if present, after \textless, \textgreater,
2380 \textbar, \textbackslash, \ldots.
2381 + Parse unescaped special characters verbatim rather than
2382 changing them to spaces. This way arguments of unknown
2383 commands will appear in braces.
2385 * Parse raw ConTeXt environments as TeX in markdown reader.
2388 * Moved BlockWrapper and wrappedBlocksToDoc from ConTeXt writer to Shared.
2390 * Made some structural changes to parsing of raw LaTeX environments.
2391 Previously there was a special block parser for LaTeX environments.
2392 It returned a Para element containing the raw TeX inline. This has
2393 been removed, and the raw LaTeX environment parser is now used in the
2394 rawLaTeXInline parser. The effect is exactly the same, except that we
2395 can now handle consecutive LaTeX and ConTeXt environments not separated
2396 by spaces. This new flexibility is required by the example in
2399 \placeformula \startformula
2403 API change: The LaTeX reader now exports rawLaTeXEnvironment' (which
2404 returns a string) rather than rawLaTeXEnvironment (which returns a block
2405 element). This is more likely to be useful in other applications.
2407 * Use \textsubscr instead of \textsubscript for LaTeX subscript macro.
2408 \textsubscript conflicts with a definition in the memoir class.
2411 * Removed unneeded space after "\\item" in LaTeX and ConTeXt output.
2413 * Added amsmath package to default LaTeX header. Resolves Issue #48.
2415 * Added \setupitemize[autointro] to ConTeXt header, to prevent orphaned
2416 list introduction lines.
2418 * Changed Float to Double in definition of Table element.
2419 (Double is more efficient in GHC.)
2421 * Fixed bug in Markdown parser: regular $s triggering math mode.
2422 For example: "shoes ($20) and socks ($5)."
2423 The fix consists in two new restrictions:
2425 + the $ that ends a math span may not be directly followed by a digit.
2426 + no blank lines may be included within a math span.
2428 Thanks to Joseph Reagle for noticing the bug.
2430 * Use Data.List's 'intercalate' instead of custom 'joinWithSep'.
2431 Removed 'joinWithSep' from Text.Pandoc.Shared.
2433 * Updated README and man pages. Acknowledge contributors in README.
2434 Added paragraph to README about producing S5 with separate CSS/javascript.
2436 * Updated INSTALL to reflect new build system (including configuration
2437 options) and document new dependencies. Added note to INSTALL that
2438 Cabal >= 1.2 is required for build. Resolves Issue #74.
2440 * Fixed some haddock documentation errors.
2442 * Small fix to markdown2pdf man page: only input needs to be piped through iconv.
2444pandoc (0.46) unstable; urgency=low
2448 * Made -H, -A, and -B options cumulative: if they are specified
2449 multiple times, multiple files will be included.
2451 * Added optional HTML sanitization using a whitelist.
2452 When this option is specified (--sanitize-html on the command line),
2453 unsafe HTML tags will be replaced by HTML comments, and unsafe HTML
2454 attributes will be removed. This option should be especially useful
2455 for those who want to use pandoc libraries in web applications, where
2456 users will provide the input.
2458 + Main.hs: Added --sanitize-html option.
2460 + Text.Pandoc.Shared: Added stateSanitizeHTML to ParserState.
2462 + Text.Pandoc.Readers.HTML:
2463 - Added whitelists of sanitaryTags and sanitaryAttributes.
2464 - Added parsers to check these lists (and state) to see if a given
2465 tag or attribute should be counted unsafe.
2466 - Modified anyHtmlTag and anyHtmlEndTag to replace unsafe tags
2468 - Modified htmlAttribute to remove unsafe attributes.
2469 - Modified htmlScript and htmlStyle to remove these elements if
2472 + Modified README and man pages to document new option.
2474 * Improved handling of email addresses in markdown and reStructuredText.
2475 Consolidated uri and email address parsers. (Resolves Issue #37.)
2477 + New emailAddress and uri parsers in Text.Pandoc.Shared.
2478 - uri parser uses parseURI from Network.URI.
2479 - emailAddress parser properly handles email addresses with periods
2482 + Removed uri and emailAddress parsers from Text.Pandoc.Readers.RST
2483 and Text.Pandoc.Readers.Markdown.
2487 + Fixed emph parser so that "*hi **there***" is parsed as a Strong
2488 nested in an Emph. (A '*' is only recognized as the end of the
2489 emphasis if it's not the beginning of a strong emphasis.)
2491 + Moved blockQuote parser before list parsers for performance.
2493 + Modified 'source' parser to allow backslash-escapes in URLs.
2494 So, for example, [my](/url\(1\)) yields a link to /url(1).
2497 + Disallowed links within links. (Resolves Issue #35.)
2498 - Replaced inlinesInBalanced with inlinesInBalancedBrackets, which
2499 instead of hard-coding the inline parser takes an inline parser
2501 - Modified reference and inlineNote to use inlinesInBalancedBrackets.
2502 - Removed unneeded inlineString function.
2503 - Added inlineNonLink parser, which is now used in the definition of
2505 - Added inlineParsers list and redefined inline and inlineNonLink parsers
2507 - Added failIfLink parser.
2509 + Better handling of parentheses in URLs and quotation marks in titles.
2510 - 'source' parser first tries to parse URL with balanced parentheses;
2511 if that doesn't work, it tries to parse everything beginning with
2512 '(' and ending with ')'.
2513 - source parser now uses an auxiliary function source'.
2514 - linkTitle parser simplified and improved, under assumption that it
2515 will be called in context of source'.
2517 + Make 'block' conditional on strictness state, instead of using
2518 failIfStrict in block parsers. Use a different ordering of parsers
2519 in strict mode (raw HTML block before paragraph) for performance.
2520 In non-strict mode use rawHtmlBlocks instead of htmlBlock.
2521 Simplified htmlBlock, since we know it's only called in strict
2524 + Improved handling of raw HTML. (Resolves Issue #36.)
2525 - Tags that can be either block or inline (e.g. <ins>) should
2526 be treated as block when appropriate and as inline when
2527 appropriate. Thus, for example,
2529 should be treated as a paragraph with inline <ins> tags, while
2533 should be treated as a paragraph within <ins> tags.
2534 - Moved htmlBlock after para in list of block parsers. This ensures
2535 that tags that can be either block or inline get parsed as inline
2537 - Modified rawHtmlInline' so that block elements aren't treated as
2539 - Modified para parser so that paragraphs containing only HTML tags and
2540 blank space are not allowed. Treat these as raw HTML blocks instead.
2542 + Fixed bug wherein HTML preceding a code block could cause it to
2543 be parsed as a paragraph. The problem is that the HTML parser
2544 used to eat all blank space after an HTML block, including the
2545 indentation of the code block. (Resolves Issue #39.)
2546 - In Text.Pandoc.Readers.HTML, removed parsing of following space
2548 - In Text.Pandoc.Readers.Markdown, modified rawHtmlBlocks so that
2549 indentation is eaten *only* on the first line after the HTML
2550 block. This means that in
2554 the foo won't be treated as a code block, but in
2560 it will. This seems the right approach for least surprise.
2564 + Fixed bug in parsing explicit links (resolves Issue #44).
2565 The problem was that we were looking for inlines until a '<' character
2566 signaled the start of the URL; so, if you hit a reference-style link,
2567 it would keep looking til the end of the document. Fix: change
2568 inline => (notFollowedBy (char '`') >> inline). Note that this won't
2569 allow code inlines in links, but these aren't allowed in resT anyway.
2571 + Cleaned up parsing of reference names in key blocks and links.
2572 Allow nonquoted reference links to contain isolated '.', '-', '_', so
2573 so that strings like 'a_b_' count as links.
2575 + Removed unnecessary check for following link in str.
2576 This is unnecessary now that link is above str in the definition of
2581 + Modified rawHtmlBlock so it parses </html> and </body> tags.
2582 This allows these tags to be handled correctly in Markdown.
2583 HTML reader now uses rawHtmlBlock', which excludes </html> and </body>,
2584 since these are handled in parseHtml. (Resolves Issue #38.)
2586 + Fixed bug (emph parser was looking for <IT> tag, not <I>).
2588 + Don't interpret contents of style tags as markdown.
2589 (Resolves Issue #40.)
2590 - Added htmlStyle, analagous to htmlScript.
2591 - Use htmlStyle in htmlBlockElement and rawHtmlInline.
2592 - Moved "script" from the list of tags that can be either block or
2593 inline to the list of block tags.
2595 + Modified rawHtmlBlock to use anyHtmlBlockTag instead of anyHtmlTag
2596 and anyHtmlEndTag. This fixes a bug in markdown parsing, where
2597 inline tags would be included in raw HTML blocks.
2599 + Modified anyHtmlBlockTag to test for (not inline) rather than
2600 directly for block. This allows us to handle e.g. docbook in
2601 the markdown reader.
2603 * LaTeX reader: Properly recognize --parse-raw in rawLaTeXInline.
2604 Updated LaTeX reader test to use --parse-raw.
2608 + Modified rules for automatic HTML header identifiers to
2609 ensure that identifiers begin with an alphabetic character.
2610 The new rules are described in README. (Resolves Issue #33.)
2612 + Changed handling of titles in HTML writer so you don't get
2613 "titleprefix - " followed by nothing.
2615 * ConTeXt writer: Use wrappers around Doc elements to ensure proper
2616 spacing. Each block element is wrapped with either Pad or Reg.
2617 Pad'ed elements are guaranteed to have a blank line in between.
2621 + Refactored RST writer to use a record instead of a tuple for state,
2622 and to include options in state so it doesn't need to be passed as
2625 + Use an interpreted text role to render math in restructuredText.
2626 See http://www.american.edu/econ/itex2mml/mathhack.rst for the
2631 * Debian packaging changes:
2633 + Remove the empty 'include' directory in -dev package, which lintian
2635 + Bump Standarts-Version to 3.7.3.
2636 + Use new 'Homepage:' field to specify the upstream URL on suggestion of
2639 -- Recai Oktaş <roktas@debian.org> Tue, 08 Jan 2008 05:13:31 +0200
2641pandoc (0.45) unstable; urgency=low
2645 * Simplified parsing of reference keys and notes in markdown and RST
2646 readers: The Reference data structure from Text.Pandoc.Shared is no
2647 longer needed, since referenceKey and noteBlock parses return strings
2648 (as many blank lines as were occupied by the key or note) and update
2649 state themselves. getPosition and setPosition are now used to ensure
2650 that error messages will give the correct line number. This yields
2651 cleaner (and slightly faster) code, with more accurate parsing error
2654 * Added new Math inline element:
2656 + Markdown and LaTeX readers now convert TeX math into Math elements,
2658 + This allows math to be treated differently from raw TeX in output.
2659 TeX elements are no longer printed in output formats other than
2660 Markdown, LaTeX, and ConTeXt. But Math elements are always printed.
2662 * New default handling of math in writers:
2664 + New module Text.Pandoc.Readers.TeXMath exports readTeXMath, which
2665 parses raw TeX math and outputs a string of Pandoc inlines that
2666 tries to render it as far as possible using unicode characters,
2667 lapsing into literal TeX when needed.
2668 + readTeXMath is now used for default HTML output in HTML, S5, RTF,
2669 and Docbook, if no other method for displaying math in HTML is
2670 specified. Enclosing $'s are no longer printed by default.
2671 + By default, math is put inside <span class="math">. This way it can be
2672 distinguished from the surrounding text, e.g. put in a different
2675 * New --gladtex and --mimetex options for display of math in HTML:
2677 + If --gladtex is specified, math is output between <eq> tags, so
2678 it can be processed by gladTeX.
2679 + If --mimetex is specified, math is put in <img> tags with a link
2680 to the mimetex CGI script (or any other script that takes TeX math
2681 as input and outputs an image). The URL of the script may be
2682 specified, but defaults to /cgi-bin/mimetex.cgi.
2683 + HTMLMathMethod structure in WriterOptions keeps track of how to
2684 display math in HTML output.
2685 + Updated README with a description of the four options for displaying
2690 + Fixed bug: parser for minimized attributes should not swallow
2692 + Simplified HTML attribute parsing.
2693 + Changed parsing of code blocks in HTML reader: <code> tag is no
2694 longer needed. <pre> suffices. All HTML tags in the code block
2695 (e.g. for syntax highlighting) are skipped, because they are not
2696 portable to other output formats. A <code>...</code> block not
2697 surrounded by <pre> now counts as inline HTML, not a code block.
2698 + Remove just one leading and one trailing newline from contents of
2699 <pre>...</pre> in codeBlock parser.
2703 + Removed support for box-style block quotes.
2704 + Require space before title in links and references.
2705 This fixes a bug in parsing URLs like http://silly/url(withparen).
2706 + Improved and simplified setextHeader parser.
2707 + Fixed logic in smart quote parsing, adding some needed 'try'
2709 + Fixed smart quote parsing so that unicode characters 8216 and 8217
2710 are recognized as single quotes, and 8220 and 8221 as double quotes.
2714 + Fixed bug in parsing of code blocks. Previously a full tab indent
2715 was required, but RST allows code to be indented any amount.
2717 + Allow field lists to be indented.
2718 + Parse the contents of field lists instead of treating as a raw string.
2719 + Represent field lists as definition lists instead of blockquotes.
2720 + Fixed bug in which metadata would be overridden if the document
2721 contained multiple field lists.
2722 + Parse fields associated with '.. image::' blocks, and use 'alt'
2723 field, if given, for image alt and title attributes.
2727 + Modified specialChar so that '"' characters are parsed.
2728 + Fixed a bug in parsing of \[ \] math blocks (thanks to Mark Kalderon).
2732 + Changes in handling of math (see above).
2733 + Don't produce HTML for table of contents if there are
2734 no headers. (This would be an empty list, which is invalid XHTML.)
2738 + Don't print title attribute if title is empty. (This differs from
2739 the behavior of Markdown.pl, and agrees with PHP Markdown. But John
2740 Gruber has indicated that he prefers this behavior.) Adjusted test
2742 + Fixed incorrect line wrapping in paragraphs including hard line
2743 breaks. Resolves Issue #25.
2744 + Fixed bug in markdown writer: If an ordered list item began with
2745 a marker greater than 3 characters in width, and the item took more
2746 than one line, it would appear on the line after the list marker,
2753 Now it works as follows:
2760 + Fixed bug in RST writer's handling of ordered lists. Previously,
2761 list items with multiple lines would not always line up with
2762 single-line list items. Now, list items are nested the length of
2763 the list marker + 1. This looks better and ensures that list items
2764 all line up. (Note that list markers are padded to the length of
2765 the longest list marker in the series.)
2766 + Use 3-space indent for unordered lists.
2767 + If label for a link reference contains a colon, surround it by `
2768 signs so it won't be interpreted as the end of the link label.
2772 + Cleaner output for footnotes. Footnotes now always begin on a new
2773 line, and the final } is on a line by itself only when it needs to
2774 be (i.e. only when the note ends with a Verbatim environment).
2775 + Added writer options to state, so state doesn't need to be passed as
2777 + Text wrapping now provided, using wrapTeXIfNeeded.
2779 * ConTeXt writer: many improvements for more idiomatic ConTeXt output
2780 (thanks to Idris Samawi Hamid for suggestions).
2782 + PrettyPrint module now used for output.
2783 + Writer options are now in state, so they don't have to be passed as
2785 + Text wrapping now provided, using wrapTeXIfNeeded.
2786 + Better treatment of footnotes: footnotes are always on lines by
2787 themselves, and the final } is on a line by itself only when
2788 it needs to be (after \stoptyping).
2789 + Use \subject, \subsubject, ... or \section, \subsection, ... for headings,
2790 depending on whether --number-sections option is selected.
2791 + Extra blank line inserted after \stopitemize
2792 + Use new, "official" definition of blockquote environment. Also, use
2793 blank line after \startblockquote to balance blank line at the end.
2794 + Both itemized and enumerated lists are now generated using
2795 \start-stopitemize, with appropriate options. Removed definitions
2796 of ltxenum and ltxitem, which are no longer needed. Provided
2797 defaults for itemized lists in the preamble. State keeps track of
2798 ordered list level, so that when default numbering is specified,
2799 the appropriate scheme can be used.
2800 + Changed \useurl to \useURL.
2801 + Changed link color from red to blue.
2802 + Use \subsubsubsubsection etc., since these are supported
2803 (up to at least sub x 5).
2805 * Text.Pandoc.Shared:
2807 + Save and restore position in parseFromString, so that accurate
2808 error messages can be given.
2809 + Improved efficiency of romanNumeral parser.
2810 + Added wrappedTeX and wrapTeXIfNeeded functions. These ensure
2811 that footnotes occur on lines by themselves (to make them
2812 easier to see and move) and do not screw up line wrapping.
2814 * Text.Pandoc.UTF8: modified fromUTF8 to strip out the BOM
2815 if present. Windows Notepad and other applications insert a
2816 BOM at the beginning of a UTF8 file.
2818 * Main.hs (tabFilter): Treat '\r' at end of line as newline (in
2819 addition to "\r\n" and '\n').
2821 * Added a writer option for wrapped text and a command-line option
2822 '--no-wrap', which disables text wrapping and minimizes whitespace
2823 in HTML. (Resolves Issue #26.)
2825 + Added support for '--no-wrap' to Main.hs.
2826 + Added wrapIfNeeded function to Text.Pandoc.Shared.
2827 + Use wrapIfNeeded instead of wrapped in the RST, Man, Docbook, and
2829 + Added render and renderFragment helpers to HTML writer.
2831 * Modified html2markdown to run tidy only if the HTML cannot be
2832 parsed. Previously html2markdown piped all input through tidy
2833 before passing it to pandoc. This caused problems on certain pages
2834 (e.g. http://daringfireball.com/markdown) which have well-formed
2835 XHTML that causes tidy to choke. The solution is to pipe through
2836 tidy only if pandoc cannot parse the input by itself. This means
2837 that a temp file is now always used, even when input comes from a
2838 local file or standard input.
2840 * Removed 'version' constant from Main.hs; added 'pandocVersion' to
2841 Text.Pandoc library.
2845 + Modified to work with GHC 6.8 and Cabal configurations. (For GHC
2846 6.8, pretty and containers must be added to Build-Depends, and it
2847 is desirable to use the -O2 compiler option.) Cabal configurations
2848 allows one to select options depending on the compiler version.
2849 For GHC 6.6, the splitBase option can be disabled.
2850 + pandoc.cabal.ghc66 is provided for users with older versions of
2851 Cabal, which do not support configurations.
2852 + Use Ghc-Prof-Options to ensure that '-auto-all' is used when
2853 '--enable-(executable|library)-profiling' is specified. Updated
2854 PROFILING instructions accordingly.
2858 + Makefile now checks GHC version. If GHC is 6.6, pandoc.cabal.ghc66
2859 is copied to pandoc.cabal, and the old pandoc.cabal is copied
2860 to pandoc.cabal.orig. Otherwise, pandoc.cabal is copied to
2861 pandoc.cabal.orig but otherwise unmodified. This way, the Makefile
2862 will work properly with either GHC 6.6 or 6.8.
2863 + Changed BUILDCONF to point to dist/setup-config, not .setup-config.
2864 This is where current versions of Cabal put it.
2865 + Added $(BUILDCMD) target, so setup doesn't get compiled every time.
2866 + Removed dependency of templates on ./templates, which is circular
2867 now that templates is a subdirectory of the top-level.
2869 * MacPorts Portfile:
2871 + Modified to install the pandoc library in addition to programs.
2872 + Installation must be done manually rather than using Makefile's
2874 + Note that the library must be registered in the activate phase,
2875 after the library files have been copied out of the destroot.
2876 Cabal generates a 'register.sh' script that will do this.
2878 * debian/control: Added libghc6-network-dev, libghc6-xhtml-dev, and
2879 libghc6-mtl-dev as dependencies for libghc6-pandoc-dev.
2882 * debian/rules: Converted to UTF-8.
2884 * Changed pandoc home page to http://johnmacfarlane.net/pandoc/.
2886 * Updated ASCIIMathML.js to latest version.
2888 * Directory structure:
2890 + Moved everything from src into the top-level directory.
2891 + Changed references to source directory in Makefile and
2893 + Moved ASCIIMathML.js, headers, and ui into templates directory.
2894 + Modified fillTemplates.pl to reflect new paths.
2898 * Makefile: Fixed the issue of having two copies of the library
2899 documentation under some usage scenarios.
2901 * Replaced 'ghc' with '$(GHC)' in Makefile, and made GHC
2902 and GHC_PKG configurable through the environment, to support
2903 unusual ghc installations. For example:
2904 GHC=/opt/ghc/bin/ghc GHC_PKG=/opt/ghc/bin/ghc-pkg make
2906 -- Recai Oktaş <roktas@debian.org> Sun, 07 Oct 2007 20:51:43 +0300
2908pandoc (0.44) unstable; urgency=low
2912 * Fixed bug in HTML writer: when --toc was used, anchors were put around
2913 headers, which is invalid XHTML (block content within inline element).
2914 Now the anchors are put inside the header tags. Resolves Issue #23.
2916 * Added xmlns attribute to html element in html writer tests.
2917 This attribute is added by more recent versions of the
2918 xhtml library (>= 3000), and is required for valid XHTML.
2922 * On configure, compile 'Setup.hs' to 'setup' and use 'setup' as the build
2923 command instead of 'runhaskell', which, on some platforms (such as s390,
2924 alpha, m68k), throws the following error:
2926 runhaskell Setup.hs configure --prefix=/usr
2927 ghc-6.6.1: not built for interactive use
2929 This causes a serious FTBFS bug. Closes: #440668.
2931 -- Recai Oktaş <roktas@debian.org> Mon, 03 Sep 2007 18:24:02 +0300
2933pandoc (0.43) unstable; urgency=low
2937 * The focus of this release is performance. The markdown parser
2938 is about five times faster than in 0.42, based on benchmarks
2939 with the TextMate manual.
2941 * Main.hs: Replaced CRFilter and tabFilter with single function
2942 tabFilter, which operates on the whole string rather than breaking
2943 it into lines, and handles dos-style line-endings as well as tabs.
2945 * Added separate LaTeX reader and native reader tests; removed
2948 * Text.Pandoc.Shared:
2950 + Removed tabsToSpaces and tabsInLine (they were used only in Main.hs.)
2951 + General code cleanup (to elimante warnings when compiling with -Wall.)
2952 + Added 'wrapped' function, which helps wrap text into paragraphs,
2953 using the prettyprinting library.
2954 + Rewrote charsInBalanced and charsInBalanced'.
2955 - Documented restriction: open and close must be distinct characters.
2956 - Rearranged options for greater efficiency.
2957 - Bug fix: Changed inner call to charsInBalanced inside
2958 charsInBalanced' to charsInBalanced'.
2959 + anyLine now requires that the line end with a newline (not eof).
2960 This is a harmless assumption, since we always add newlines to the
2961 end of a block before parsing with anyLine, and it yields a 10% speed
2963 + Removed unnecessary 'try' in anyLine.
2964 + Removed unneeded 'try' from romanNumeral parser.
2965 + Use notFollowedBy instead of notFollowedBy' in charsInBalanced.
2966 + Removed unneeded 'try' in parseFromString.
2967 + Removed unneeded 'try' from stringAnyCase. (Now it behaves
2969 + Changed definition of 'enclosed' in Text.Pandoc.Shared so that
2970 'try' is not automatically applied to the 'end' parser. Added
2971 'try' in calls to 'enclosed' where needed. Slight speed increase.
2975 + Replaced individual wrapping routines in RST, Man, and Markdown
2976 writers with 'wrapped' from Text.Pandoc.Shared.
2977 + Rewrote LaTeX writer to use the prettyprinting library,
2978 so we get word wrapping, etc.
2979 + Modified latex writer tests for new latex writer using prettyprinter.
2980 + Fixed bug in LaTeX writer: autolinks would not cause
2981 '\usepackage{url}' to be put in the document header. Also, changes
2982 to state in enumerated list items would be overwritten.
2983 + In Markdown writer, escape paragraphs that begin with ordered list
2984 markers, so they don't get interpreted as ordered lists.
2986 * Text.Pandoc.Reades.LaTeX:
2988 + Fixed bug in LaTeX reader, which wrongly assumed that the roman
2989 numeral after "enum" in "setcounter" would consist entirely of
2990 "i"s. 'enumiv' is legitimate.
2991 + LaTeX command and environment names can't contain numbers.
2992 + Rearranged order of parsers in inline for slight speed improvement.
2993 + Added '`' to special characters and 'unescapedChar'.
2995 * Text.Pandoc.Readers.RST:
2997 + Removed unneeded try's in RST reader; also minor code cleanup.
2999 + Rearranged parsers in inline (doubled speed).
3001 * Text.Pandoc.Readers.Markdown:
3003 + Skip notes parsing if running in strict mode. (This yields a nice
3004 speed improvement in strict mode.)
3005 + Simplify autolink parsing code, using Network.URI to test for
3006 URIs. Added dependency on network library to debian/control and
3008 + More perspicuous definition of nonindentSpaces.
3009 + Removed unneeded 'try' in 'rawLine'.
3010 + Combined linebreak and whitespace into a new whitespace parser, to
3011 avoid unnecessary reparsing of space characters.
3012 + Removed unnecessary 'try' in 'codeBlock', 'ellipses', 'noteMarker',
3013 'multilineRow', 'dashedLine', 'rawHtmlBlocks'.
3014 + Use lookAhead in parsers for setext headers and definition lists
3015 to see if the next line begins appropriately; if not, don't waste
3016 any more time parsing.
3017 + Don't require blank lines after code block. (It's sufficient to
3018 end code block with a nonindented line.)
3019 + Changed definition of 'emph': italics with '_' must not
3020 be followed by an alphanumeric character. This is to help
3021 prevent interpretation of e.g. [LC_TYPE]: my_type as
3022 '[LC<em>TYPE]:my</em>type'.
3023 + Improved Markdown.pl-compatibility in referenceLink: the two parts
3024 of a reference-style link may be separated by one space, but not
3025 more... [a] [link], [not] [a link].
3026 + Fixed markdown inline code parsing so it better accords with
3027 Markdown.pl: the marker for the end of the code section is a clump
3028 of the same number of `'s with which the section began, followed
3029 by a non-` character. So, for example,
3030 ` h ``` i ` -> <code>h ``` i</code>.
3031 + Split 'title' into 'linkTitle' and 'referenceTitle', since the
3032 rules are slightly different.
3033 + Rewrote 'para' for greater efficiency.
3034 + Rewrote link parsers for greater efficiency.
3035 + Removed redundant 'referenceLink' in definition of inline (it's
3037 + Refactored escapeChar so it doesn't need 'try'.
3038 + Refactored hrule for performance in Markdown reader.
3039 + More intelligent rearranging of 'inline' so that most frequently
3040 used parsers are tried first.
3041 + Removed tabchar parser, as whitespace handles tabs anyway.
3043 * Text.Pandoc.CharacterReferences:
3046 + Removed unnecessary 'try's for a speed improvement.
3047 + Removed unnecessary '&' and ';' from the entity table.
3051 + Makefile: Get VERSION from cabal file, not Main.hs.
3052 + Modified MacPorts Portfile:
3054 - Build and install libraries and library documentation in
3055 addition to pandoc executable
3056 - Added template item for md5 sum in Portfile.in.
3057 - Incorporated changes from MacPorts repository (r28278).
3058 + FreeBSD port: Don't try to generate distinfo in Makefile.
3059 It can be made using 'make makesum' in FreeBSD.
3060 + Make both freebsd and macports targets depend on tarball.
3062 * Website and documentation:
3064 + Updated INSTALL instructions.
3065 + Added pandocwiki demo to website.
3066 + Removed local references to Portfile, since pandoc is now in the
3067 MacPorts repository.
3069 -- Recai Oktaş <roktas@debian.org> Sun, 02 Sep 2007 15:50:11 +0300
3071pandoc (0.42) unstable; urgency=low
3075 * Main.hs: Use utf8 conversion on the extra files loaded with
3076 the -H, -C, -B, and -A options. This fixes problems with unicode
3077 characters in these files.
3079 * Exposed Text.Pandoc.ASCIIMathML, since it is imported in
3080 Text.Pandoc.Readers.HTML and without it we get a linking error when
3085 + Added new rule for enhanced markdown ordered lists: if the list
3086 marker is a capital letter followed by a period (including a
3087 single-letter capital roman numeral), then it must be followed by
3088 at least two spaces. The point of this is to avoid accidentally
3089 treating people's initials as list markers: a paragraph might begin,
3090 "B. Russell was an English philosopher," and this shouldn't be
3091 treated as a list. Documented change in README.
3092 + Blocks that start with "p. " and a digit are no longer treated
3093 as ordered lists (it's a page number).
3094 + Added a needed 'try' to listItem.
3095 + Removed check for a following setext header in endline.
3096 A full test is too inefficient (doubles benchmark time), and the
3097 substitute we had before is not 100% accurate.
3098 + Don't use Code elements for autolinks if --strict specified.
3100 * LaTeX writer: When a footnote ends with a Verbatim environment, the
3101 close } of the footnote cannot occur on the same line or an error occurs.
3102 Fixed this by adding a newline before the closing } of every footnote.
3105 + Removed incorrect "{}" around style information in HTML tables.
3106 Column widths now work properly in HTML.
3107 + If --strict option is specified (and --toc is not), don't include
3108 identifiers in headers, for better Markdown compatibility.
3112 + Separated $(web_dest) and website targets.
3113 + In website, index.txt is now constructed from template index.txt.in.
3114 + Added freebsd target to Markefile. This creates the freebsd Makefile
3115 from Makefile.in, and creates distinfo. Removed Makefile and distinfo
3116 from the repository.
3117 + Added macport target to Makefile. Portfile is built from template
3119 + Removed OSX package targets. (Too many difficulties involving
3120 dependencies on dynamic libraries.)
3121 + More complete INSTALL instructions for all architectures.
3124 + Added a programming demo, pandocwiki.
3128 * Do not forget to close pandoc's ITP. Closes: #391666
3130 -- Recai Oktaş <roktas@debian.org> Sun, 26 Aug 2007 22:51:32 +0300
3132pandoc (0.41) unstable; urgency=low
3136 * Fixed bugs in HTML reader:
3137 + Skip material at end *only if* </html> is present (previously,
3138 only part of the document would be parsed if an error was
3139 found; now a proper error message is given).
3140 + Added new constant eitherBlockOrInline with elements that may
3141 count either as block-level or as inline. Modified isInline and
3142 isBlock to take this into account.
3143 + Modified rawHtmlBlock to accept any tag (even an inline tag):
3144 this is innocuous, because rawHtmlBlock is tried only if a regular
3145 inline element can't be parsed.
3146 + Added a necessary 'try' in definition of 'para'.
3148 * Fixed bug in markdown ordered list parsing. The problem was that
3149 anyOrderedListStart did not check for a space following the
3150 ordered list marker. So in 'A.B. 2007' the parser would be
3151 expecting a list item, but would not find one, causing an error.
3152 Fixed a similar bug in the RST reader. Resolves Issue #22.
3154 * Refactored RST and Markdown readers using parseFromString.
3156 * LaTeX reader will now skip anything after \end{document}.
3158 * Fixed blockquote output in markdown writer: previously, block
3159 quotes in indented contexts would be indented only in the first
3162 * Added note to INSTALL about variations in versions of the xhtml
3163 library that can lead to failed tests (thanks to Leif LeBaron).
3165 -- Recai Oktaş <roktas@debian.org> Sun, 19 Aug 2007 23:26:07 +0300
3167pandoc (0.4) unstable; urgency=low
3171 * Added two new output formats: groff man pages and ConTeXt. By
3172 default, output files with extensions ".ctx" and ".context" are
3173 assumed to be ConTeXt, and output files with single-digit extensions
3174 are assumed to be man pages.
3176 * Enhanced ordered lists (documented in README, under Lists):
3177 + The OrderedList block element now stores information about
3178 list number style, list number delimiter, and starting number.
3179 + The readers parse this information when possible.
3180 + The writers use this information to style ordered lists.
3181 + The enhancement can be disabled using the --strict option.
3183 * Added support for tables (with a new Table block element). Two kinds
3184 of tables are supported: a simple table with one-line rows, and a
3185 more complex variety with multiline rows. All output formats are
3186 supported, but only markdown tables are parsed at the moment. The
3187 syntax is documented in README.
3189 * Added support for definition lists (with a new DefinitionList block
3190 element). All output and input formats are supported. The syntax is
3191 documented in README.
3193 * Added support for superscripts and subscripts (with new Superscript
3194 and Subscript inline elements). All input and output
3195 formats. The syntax is documented in README.
3197 * Added support for strikeout (with a new Strikeout inline element).
3198 All input and output formats are supported. Thanks to Bradley Kuhn,
3199 who contributed a patch. The syntax is documented in README. Resolves
3202 * Added a --toc|--table-of-contents option. This causes an automatically
3203 generated table of contents (or an instruction that creates one) to
3204 be inserted at the beginning of the document. Not supported in S5,
3205 DocBook, or man page writers.
3207 * Modified the -m|--asciimathml option:
3209 + If an optional URL argument is provided, a link is inserted
3210 instead of the contents of the ASCIIMathML.js script.
3211 + Nothing is inserted unless the document actually contains
3214 * Removed Blank block element as unnecessary.
3216 * Removed Key and Note blocks from the Pandoc data structure. All
3217 links are now stored as explicit links, and note contents are
3218 stored with the (inline) notes.
3220 + All link Targets are now explicit (URL, title) pairs; there
3221 is no longer a 'Ref' target.
3222 + Markdown and RST parsers now need to extract data from key and
3223 note blocks and insert them into the relevant inline elements.
3224 Other parsers have been simplified, since there is no longer any need
3225 to construct separate key and note blocks.
3226 + Markdown, RST, and HTML writers need to construct lists of
3227 notes; Markdown and RST writers need to construct lists of link
3228 references (when the --reference-links option is specified); and
3229 the RST writer needs to construct a list of image substitution
3230 references. All writers have been rewritten to use the State monad
3231 when state is required.
3232 + Several functions (generateReference, keyTable,
3233 replaceReferenceLinks, replaceRefLinksBlockList, and some auxiliaries
3234 used by them) have been removed from Text.Pandoc.Shared, since
3235 they are no longer needed. New functions and data structures
3236 (Reference, isNoteBlock, isKeyBlock, isLineClump) have been
3237 added. The functions inTags, selfClosingTag, inTagsSimple, and
3238 inTagsIndented have been moved to the DocBook writer, since that
3239 is now the only module that uses them. NoteTable is now exported
3240 in Text.Pandoc.Shared.
3241 + Added stateKeys and stateNotes to ParserState; removed stateKeyBlocks,
3242 stateKeysUsed, stateNoteBlocks, stateNoteIdentifiers, stateInlineLinks.
3243 + Added writerNotes and writerReferenceLinks to WriterOptions.
3245 * Added Text.Pandoc module that exports basic readers, writers,
3246 definitions, and utility functions. This should export everything
3247 needed for most uses of Pandoc libraries. The haddock documentation
3248 includes a short example program.
3250 * Text.Pandoc.ASCIIMathML is no longer an exported module.
3252 * Added Text.Pandoc.Blocks module to help in printing markdown
3253 and RST tables. This module provides functions for working with
3254 fixed-width blocks of text--e.g., placing them side by side, as
3257 * Refactored to avoid reliance on Haskell's Text.Regex library, which
3258 (a) is slow, and (b) does not properly handle unicode. This fixed
3259 some strange bugs, e.g. in parsing S-cedilla, and improved performance.
3261 + Replaced 'gsub' with a general list function 'substitute'
3262 that does not rely on Text.Regex.
3263 + Rewrote extractTagType in HTML reader so that it doesn't use
3265 + In Markdown reader, replaced email regex test with a custom email
3266 autolink parser (autoLinkEmail). Also replaced selfClosingTag regex
3267 with a custom function isSelfClosingTag.
3268 + Modified Docbook writer so that it doesn't rely on Text.Regex for
3269 detecting 'mailto' links.
3270 + Removed escapePreservingRegex and reamped entity-handling
3271 functions in Text.Pandoc.Shared and Text.Pandoc.CharacterReferences to
3272 avoid reliance on Text.Regex (see below on character reference
3275 * Renamed Text.Pandoc.Entities as Text.Pandoc.CharacterReferences.
3277 * Changed handling of XML entities. Entities are now parsed (and unicode
3278 characters returned) in the Markdown and HTML readers, rather than being
3279 handled in the writers. In HTML and Docbook writers, UTF-8 is now used
3280 instead of entities for characters above 128. This makes the HTML and
3281 DocBook output much more readable and more easily editable.
3283 + Removed sgmlHexEntity, sgmlDecimalEntity, sgmlNamedEntity, and
3284 sgmlCharacterEntity regexes from Text.Pandoc.Shared.
3285 + Renamed escapeSGMLChar to escapeCharForXML. Added escapeStringForXML.
3286 Moved both functions to Text.Pandoc.Writers.Docbook.
3287 + Added characterReference parser to Text.Pandoc.CharacterReferences.
3288 This parses a string and return a unicode character.
3289 + Rewrote decodeCharacterReferences to use the new parser instead of
3291 + Added new charRef parser for Markdown and HTML, which replaces the
3292 old 'entity' parser. Added '&' as a special character in Markdown reader.
3293 + Modified HTML and Markdown readers to call decodeEntities on all raw
3294 strings (e.g. authors, dates, link titles), to ensure that no
3295 unprocessed entities are included in the native representation of
3296 the document. (In the HTML reader, most of this work is done by a
3297 change in extractAttributeName.)
3298 + In XML and Markdown output, escape unicode nonbreaking space as ' ',
3299 since a unicode non-breaking space is impossible to distinguish visually
3300 from a regular space. (Resolves Issue #3.)
3301 + Removed encodeEntitiesNumerical.
3302 + Use Data.Map for entityTable and (new) reverseEntityTable, for a
3303 slight performance boost over the old association list.
3304 + Removed unneeded decodeEntities from 'str' parser in HTML and
3307 * Text.Pandoc.UTF8: Renamed encodeUTF8 to toUTF8, decodeUTF8 to
3308 fromUTF8, for clarity.
3310 * Replaced old haskell98 module names replaced by hierarchical module
3311 names, e.g. List by Data.List. Removed haskell98 from dependencies
3312 in pandoc.cabal, and added mtl (needed for state monad). Substituted
3315 * Refactored and cleaned up character escaping in writers, using
3316 backslashEscapes and escapeStringUsing functions.
3318 * Instead of adding "\n\n" to the end of an input string in Main.hs,
3319 this is now done in the readers. This makes the libraries behave
3320 the way you'd expect from the pandoc program. Resolves Issue #10.
3322 * URLs and email addresses in autolinks are now typeset as Code.
3324 * In Main.hs, changed putStr to putStrLn -- mainly because MacOS X
3325 doesn't display the whole output unless there's a line ending.
3327 * Major code cleanup in all modules, for greater consistency, concision,
3332 + Fixed several bugs (extractTagType, attribute parsing).
3333 + Remove Null blocks in lists of blocks when possible.
3334 + Allow HTML comments as raw HTML inline.
3338 + Ordered list items may no longer begin with uppercase letters, or
3339 letters greater than 'n'. (This prevents first initials and page
3340 reference, e.g. 'p. 400', from being parsed as beginning lists.)
3341 Also, numbers beginning list items may no longer end with ')',
3342 which is now allowed only after letters. Note: These changes
3343 may cause documents to be parsed differently. Users should take
3345 + Changed autoLink parsing to conform better to Markdown.pl's
3346 behavior. <google.com> is not treated as a link, but
3347 <http://google.com>, <ftp://google.com>, and <mailto:google@google.com>
3349 + Cleaned up handling of embedded quotes in link titles. Now these are
3350 stored as a '"' character, not as '"'.
3351 + Use lookAhead parser for the 'first pass' (looking for reference keys),
3352 instead of parsing normally, then using setInput to reset input. This
3353 yields a slight performance boost.
3354 + Fixed several bugs in smart quote recognition.
3355 + Fixed bug in indentSpaces (which didn't properly handle
3356 cases with mixed spaces and tabs).
3357 + Consolidated 'text', 'special', and 'inline' into 'inline'.
3358 + Fixed bug which allowed URL and title to be separated by multiple blank
3359 lines in links and reference keys. They can be on separate lines but
3360 can't have blank lines between them.
3361 + Correctly handle bracketed text inside inline footnotes and links,using
3362 new function inlinesInBalanced. Resolves Issue #14.
3363 + Fixed bug in footnotes: links in footnotes were not being
3364 processed. Solution: three-stage parse. First, get all the
3365 reference keys and add information to state. Next, get all the
3366 notes and add information to state. (Reference keys may be needed
3367 at this stage.) Finally, parse everything else.
3368 + Replaced named constants like 'emphStart' with literals.
3369 + Removed an extra occurance of escapedChar in definition of inline.
3373 + Allow the URI in a RST hyperlink target to start on the line
3374 after the reference key.
3375 + Added 'try' in front of 'string', where needed, or used a different
3376 parser. This fixes a bug where ````` would not be correctly parsed as
3378 + Fixed slow performance in parsing inline literals in RST reader. The
3379 problem was that ``#`` was seen by 'inline' as a potential link or image.
3380 Fix: inserted 'notFollowedBy (char '`')' in link parsers.
3382 + Use lookAhead instead of getInput/setInput in RST reader. Removed
3383 unneeded getState call, since lookAhead automatically saves and
3384 restores the parser state.
3385 + Allow hyperlink target URIs to be split over multiple lines, and
3386 to start on the line after the reference. Resolves Issue #7.
3387 + Fixed handling of autolinks.
3391 + Replaced 'choice [(try (string ...), ...]' idiom with 'oneOfStrings',
3393 + Added clauses for tilde and caret. Tilde is \ensuremath{\sim}, and
3394 caret is \^{}, not \^ as before.
3395 + Added parsing for \url.
3396 + Parse \texttt{} as code, provided there's nothing fancy inside.
3400 + Modified HTML writer to use the Text.XHtml library. This results
3401 in cleaner, faster code, and it makes it easier to use Pandoc in
3402 other projects, like wikis, which use Text.XHtml. Two functions are
3403 now provided, writeHtml and writeHtmlString: the former outputs an
3404 Html structure, the latter a rendered string. The S5 writer is also
3405 changed, in parallel ways (writeS5, writeS5String).
3406 + The Html header is now written programmatically, so it has been
3407 removed from the 'headers' directory. The S5 header is still
3408 needed, but the doctype and some of the meta declarations have
3409 been removed, since they are written programatically. This change
3410 introduces a new dependency on the xhtml package.
3411 + Fixed two bugs in email obfuscation involving improper escaping
3412 of '&' in the <noscript> section and in --strict mode. Resolves
3414 + Fixed another bug in email obfuscation: If the text to be obfuscated
3415 contains an entity, this needs to be decoded before obfuscation.
3416 Thanks to thsutton for the patch. Resolves Issue #15.
3417 + Changed the way the backlink is displayed in HTML footnotes.
3418 Instead of appearing on a line by itself, it now generally
3419 appears on the last line of the note. (Exception: when the
3420 note does not end with a Plain or Para block.) This saves space
3422 + Added automatic unique identifiers to headers:
3423 - The identifier is derived from the header via a scheme
3424 documented in README.
3425 - WriterState now includes a list of header identifiers and a table
3426 of contents in addition to notes.
3427 - The function uniqueIdentifiers creates a list of unique identifiers
3428 from a list of inline lists (e.g. headers).
3429 - This list is part of WriterState and gets consumed by blockToHtml
3430 each time a header is encountered.
3431 + Include CSS for .strikethrough class in header only if strikethrough
3432 text appears in the document.
3433 + If the 'strict' option is specified, elements that do not appear in
3434 standard markdown (like definition lists) are passed through as
3436 + Simplified treatment of autolinks, using pattern matching instead of
3441 + Links in markdown output are now printed as inline links by default,
3442 rather than reference links. A --reference-links option has been added
3443 that forces links to be printed as reference links. Resolves Issue #4.
3444 + Use autolinks when possible. Instead of [site.com](site.com),
3449 + Rewrote to use the State monad. The preamble now includes only those
3450 packages that are actually required, given the document's content.
3451 Thus, for example, if strikeout is not used, ulem is not required.
3452 Modified LaTeXHeader accordingly.
3453 + Modified LaTeX writer to insert '\,' between consecutive quotes.
3454 + Removed unused function tableRowColumnWidths.
3455 + Simplified code for escaping special characters.
3456 + Leave extra blank line after \maketitle.
3457 + Include empty '\author{}' when no author specified to avoid LaTeX
3459 + Include fancyvrb code in header only if needed -- that is, only
3460 if there is actually code in a footnote.
3461 + Use \url{} for autolinks.
3462 + Include [mathletters] option in ucs package, so that basic unicode
3463 Greek letters will work correctly.
3465 * RST writer: Force blank line before lists, so that sublists will
3466 be handled correctly.
3468 * Docbook writer: Fixed a bug: email links with text, like
3469 [foo](me@bar.baz), were being incorrectly treated as autolinks.
3471 * Removed Text.ParserCombinators.Pandoc and moved all its functions to
3474 * Text.Pandoc.Shared:
3476 + Added defaultWriterOptions.
3477 + Added writerTableOfContents to WriterOptions.
3478 + Added writerIgnoreNotes option to WriterOptions. This is needed
3479 for processing header blocks for a table of contents, since notes on
3480 headers should not appear in the TOC.
3481 + Added prettyprinting for native Table format.
3482 + Removed some unneeded imports.
3483 + Moved escape and nullBlock parsers from
3484 Text.ParserCombinators.Pandoc, since the latter is for
3485 general-purpose parsers that don't depend on Text.Pandoc.Definition.
3486 + Moved isHeaderBlock from Text.Pandoc.Writers.HTML.
3487 + Moved Element, headerAtLeast, and hierarchicalize from Docbook
3488 writer, because HTML writer now uses these in constructing a table
3490 + Added clauses for new inline elements (Strikeout, Superscript,
3491 Subscript) to refsMatch.
3492 + Removed backslashEscape; added new functions escapeStringUsing and
3494 + Moved failIfStrict from markdown reader, since it is now used also
3496 + Added a 'try' to the definition of indentSpaces.
3497 + In definition of 'reference', added check to make sure it's not a note
3499 + Added functions: camelCaseToHyphenated, toRomanNumeral,
3500 anyOrderedListMarker, orderedListmarker, orderedListMarkers,
3501 charsInBalanced', withHorizDisplacement, romanNumeral
3502 + Fixed a bug in the anyLine parser. Previously it would parse an empty
3503 string "", but it should fail on an empty string, or we get an error
3504 when it is used inside "many" combinators.
3505 + Removed followedBy' parser, replacing it with the lookAhead parser from
3507 + Added some needed 'try's before multicharacter parsers, especially in
3509 + Removed the 'try' from the 'end' parser in 'enclosed', so that
3510 'enclosed' behaves like 'option', 'manyTill', etc.
3511 + Added lineClump parser, which parses a raw line block up to and
3512 including any following blank lines.
3513 + Renamed parseFromStr to parseFromString.
3514 + Added a 'try' to the 'end' parser in 'enclosed'. This makes errors in
3515 the use of 'enclosed' less likely. Removed some now-unnecessary 'try's
3517 + Removed unneeded 'try' in blanklines.
3518 + Removed endsWith function and rewrote calling functions to use
3520 + Added >>~ combinator.
3521 + Fixed bug in normalizeSpaces: Space:Str "":Space should compress to
3524 * Refactored runtests.pl; added separate tests for tables.
3528 + Added -asxhtml flag to tidy in html2markdown. This will
3529 perhaps help the parser, which expects closing tags.
3530 + Modified markdown2pdf to run pdflatex a second time if --toc or
3531 --table-of-contents was specified; otherwise the table of
3532 contents won't appear.
3533 + Modified markdown2pdf to print a helpful message if the 'ulem'
3534 LaTeX package is required and not found.
3536 * Changes to build process:
3538 + Dropped support for compilation with GHC 6.4. GHC 6.6 or higher
3540 + Removed cabalize and Pandoc.cabal.in. The repository now contains
3541 pandoc.cabal itself.
3542 + Pandoc.cabal has been changed to pandoc.cabal, because HackageDB
3543 likes the cabal file to have the same name as the tarball.
3544 + Expanded and revised the package description in pandoc.cabal.
3545 Revised the package synopsis.
3546 + The tarball built by 'make tarball' now contains files built from
3547 templates (including man pages and shell scripts), so pandoc can
3548 be built directly using Cabal tools, without preprocessing.
3549 + Executable binaries are now stripped before installing.
3550 + Man pages are now generated from markdown sources, using pandoc's
3552 + Use HTML version of README (instead of RTF) in Mac OS X installer.
3553 + Instead of testing for the existence of a pandoc symlink in build-exec,
3558 + Updated README and man pages with information on new features.
3559 + Updated INSTALL instructions with some useful clarifications and
3561 + Updated web content.
3563 * Added FreeBSD port.
3569 + Changed pandoc's Build-Depends to include libghc6-mtl-dev and
3570 libghc6-xhtml-dev. Removed libghc6-html-dev.
3571 + Suggest texlive-latex-recommended | tetex-extra instead of
3572 tetex-bin. This brings in fancyvrb and unicode support.
3574 -- Recai Oktaş <roktas@debian.org> Tue, 16 Jan 2007 00:37:21 +0200
3576pandoc (0.3) unstable; urgency=low
3580 * Changes in pandoc options:
3582 + Allow options to follow or precede arguments.
3583 + Changed '--smartypants' to '--smart' and adjusted symbols accordingly.
3584 + Added '--strict' option.
3585 + Added '-o/--output' option.
3586 + Added '--dump-args' and '--ignore-args' options (for use in wrappers).
3587 + Modified '-v' and '-h' output to go to STDERR, not STDOUT, and return
3588 error conditions. This is helpful for writing wrappers.
3589 + Added copyright message to '-v' output, modeled after FSF messages.
3590 + Reformatted usage message so that it doesn't wrap illegibly.
3591 + Removed extra blanks after '-h' and '-D' output.
3593 * Added docbook writer.
3595 * Added implicit setting of default input and output format based
3596 on input and output filename extensions. These defaults are
3597 overridden if explicit input and output formats are specified using
3598 '-t', '-f', '-r', or '-w' options. Documented in pandoc(1) man page
3601 * Allow ordered list items to begin with (single) letters, as well
3602 as numbers. The list item marker may now be terminated either by
3603 '.' or by ')'. This extension to standard markdown is documented
3606 * Revised footnote syntax. (See README for full details.) The
3607 '[^1]' format now standard in markdown extensions is supported,
3608 as are inline footnotes with this syntax: '^[My note.]'.
3609 The earlier footnote syntax '^(1)' is no longer supported.
3611 * Improved HTML representation of footnotes. All footnotes
3612 are now auto-numbered and appear in an ordered list at the
3613 end of the HTML document. Since the default appearance is now
3614 acceptable, the old footnote styles have been removed from the
3619 + Fixed a serious bug in the markdown, LaTeX, and RST readers.
3620 These readers ran 'runParser' on processed chunks of text to handle
3621 embedded block lists in lists and quotation blocks. But then
3622 any changes made to the parser state in these chunks was lost,
3623 as the state is local to the parser. So, for example, footnotes
3624 didn't work in quotes or list items. The fix: instead of calling
3625 runParser on some raw text, use setInput to make it the input, then
3626 parse it, then use setInput to restore the input to what it was
3627 before. This is shorter and more elegant, and it fixes the problem.
3628 + Fixed bug in notFollowedBy' combinator (adding 'try' before
3629 'parser'). Adjusted code that uses this combinator accordingly.
3630 + Fixed bug in RTF writer that caused improper indentation on
3631 footnotes occurring in indented blocks like lists.
3632 + Fixed parsing of metadata in LaTeX reader. Now the title, author,
3633 and date are parsed correctly. Everything else in the preamble
3635 + Modified escapedChar in LaTeX reader to allow a '\' at the end of a
3636 line to count as escaped whitespace.
3637 + Modified LaTeX reader to produce inline links rather than reference
3638 links. Otherwise, links in footnotes aren't handled properly.
3639 + Fixed handling of titles in links in Markdown reader, so that
3640 embedded quotation marks are now handled properly.
3641 + Fixed Markdown reader's handling of embedded brackets in links.
3642 + Fixed Markdown reader so that it only parses bracketed material
3643 as a reference link if there is actually a corresponding key.
3644 + Revised inline code parsing in Markdown reader to conform to
3645 markdown standard. Now any number of `s can begin inline code,
3646 which will end with the same number of `s. For example, to
3647 have two backticks as code, write ``` `` ```. Modified Markdown
3649 + Fixed bug in text-wrapping routine in Markdown and RST writers.
3650 Now LineBreaks no longer cause wrapping problems.
3651 + Supported hexadecimal numerical entity references as well as
3653 + Fixed bug in Markdown reader's handling of underscores and other
3654 inline formatting markers inside reference labels: for example,
3655 in '[A_B]: /url/a_b', the material between underscores was being
3656 parsed as emphasized inlines.
3657 + Changed Markdown reader's handling of backslash escapes so that
3658 only non-alphanumeric characters can be escaped. Strict mode
3659 follows Markdown.pl in only allowing a select group of punctuation
3660 characters to be escaped.
3661 + Modified HTML reader to skip a newline following a <br> tag.
3662 Otherwise the newline will be treated as a space at the beginning
3665 * Made handling of code blocks more consistent. Previously, some
3666 readers allowed trailing newlines, while others stripped them.
3667 Now, all readers strip trailing newlines in code blocks. Writers
3668 insert a newline at the end of code blocks as needed.
3670 * Modified readers to make spacing at the end of output more consistent.
3672 * Minor improvements to LaTeX reader:
3674 + '\thanks' now treated like a footnote.
3675 + Simplified parsing of LaTeX command arguments and options.
3676 commandArgs now returns a list of arguments OR options (in
3677 whatever order they appear). The brackets are included, and
3678 a new stripFirstAndLast function is provided to strip them off
3679 when needed. This fixes a problem in dealing with \newcommand
3680 and \newenvironment.
3682 * Revised RTF writer:
3684 + Default font is now Helvetica.
3685 + An '\f0' is added to each '\pard', so that font resizing works
3688 * Moved handling of "smart typography" from the writers to the Markdown
3689 and LaTeX readers. This allows great simplification of the writers
3690 and more accurate smart quotes, dashes, and ellipses. DocBook can
3691 now use '<quote>'. The '--smart' option now toggles an option in
3692 the parser state rather than a writer option. Several new kinds
3693 of inline elements have been added: Quoted, Ellipses, Apostrophe,
3696 * Changes in HTML writer:
3698 + Include title block in header even when title is null.
3699 + Made javascript obfuscation of emails even more obfuscatory,
3700 by combining it with entity obfuscation.
3702 * Changed default ASCIIMathML text color to black.
3706 + Added --strip-trailing-cr option to diff in runtests.pl, for
3707 compatibility with Windows.
3708 + Added regression tests with footnotes in quote blocks and lists.
3712 + osx-pkg target creates a Mac OS X package (directory). New osx
3713 directory contains files needed for construction of the package.
3714 + osx-dmg target creates a compressed disk image containing the package.
3715 + win-pkg target creates Windows binary package.
3716 + tarball target creates distribution source tarball.
3717 + website target generates pandoc's website automatically, including
3718 demos. New 'web' directory containts files needed for construction
3719 of the website (which will be created as the 'pandoc' subdirectory
3721 + Makefile checks to see if we're running Windows/Cygwin; if so,
3722 a '.exe' extension is added to each executable in EXECS.
3724 * Removed all wrappers except markdown2pdf and html2markdown.
3726 * Added new wrapper hsmarkdown, to be used as a drop-in replacement
3727 for Markdown.pl. hsmarkdown calls pandoc with the '--strict'
3728 option and disables other options.
3730 * Added code to html2markdown that tries to determine the character
3731 encoding of an HTML file, by parsing the "Content-type" meta tag.
3733 + If the encoding can't be determined, then if the content is local,
3734 the local encoding is used; if it comes from a URL, UTF-8 is used
3736 + If input is from STDIN, don't try to determine character encoding.
3737 + Encoding can be specified explicitly using '-e' option.
3739 * Improved warning messages in wrappers:
3741 + Print warning if iconv not available
3742 + More user-friendly error messages in markdown2pdf, when
3747 + Renamed 'Text/Pandoc/HtmlEntities' module to
3748 'Text/Pandoc/Entities'. Also changed function names so as
3749 not to be HTML-specific.
3750 + Refactored SGML string escaping functions from HTML and Docbook
3751 writers into Text/Pandoc/Shared. (escapeSGML, stringToSGML)
3752 + Removed 'BlockQuoteContext' from ParserContext, as it isn't
3754 + Removed splitBySpace and replaced it with a general, polymorphic
3756 + Refactored LaTeX reader for clarity (added isArg function).
3757 + Converted some CR's to LF's in src/ui/default/print.css.
3758 + Added license text to top of source files.
3759 + Added module data for haddock to source files.
3760 + Reformatted code for consistency.
3762 * Rewrote documentation and man pages. Split README into INSTALL
3765 * Split LICENSE into COPYING and COPYRIGHT.
3767 * Removed TODO, since we now maintain ToDo on the wiki.
3769 * Made COPYRIGHT in top level a symlink to debian/copyright, to avoid
3774 * Revamped build process to conform to debian standards and created
3775 a proper debian package. Closes: #391666.
3777 * Modified build process to support GHC 6.6.
3779 + The package can still be compiled using GHC 6.4.2, though because
3780 of dependencies the "make deb" target works only with GHC 6.6+.
3781 + The script 'cabalize' is used to create an appropriate
3782 'Pandoc.cabal' from 'Pandoc.cabal.in', depending on the GHC and
3785 * Refactored template processing (fillTemplates.pl).
3787 * Modified wrapper scripts to make them more robust and portable.
3788 To avoid code duplication and ensure consistency, wrappers are
3789 generated via a templating system from templates in src/wrappers.
3791 + Wrappers now accept multiple filenames, when appropriate.
3792 + Spaces and tabs allowed in filenames.
3793 + getopts shell builtin is used for portable option parsing.
3794 + Improved html2markdown's web grabber code, making it more robust,
3795 configurable and verbose. Added '-e', '-g' options.
3797 -- Recai Oktaş <roktas@debian.org> Fri, 05 Jan 2007 09:41:19 +0200
3799pandoc (0.2) unstable; urgency=low
3801 * Fixed unicode/utf-8 translation
3803 -- John MacFarlane <jgm@berkeley.edu> Mon, 14 Aug 2006 00:00:00 -0400
3805pandoc (0.1) unstable; urgency=low
3807 * Initial creation of debian package
3809 -- 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