git.iko.soy/typeable/pandoc
on 1.8.1.2 help sign in
typeable/pandoc/changelog
3200 lines 137 kB history raw
1pandoc (1.8.1.2)
3 * Added `--epub-cover-image` option.
5 * Documented `--biblatex` and `--natbib` options.
7 * Allow `--section-divs` with slidy output. Resolves Issue #296.
9 * Disallow notes within notes in reST and markdown.
10 These previously caused infinite looping and stack overflows.
11 For example:
13 [^1]
15 [^1]: See [^1]
17 Note references are allowed in reST notes, so this isn't a full
18 implementation of reST. That can come later. For now we need to
19 prevent the stack overflows. Partially resolves Issue #297.
21 * EPUB writer: Allow non-plain math methods.
23 * Forbid ()s in citation item keys. Resolves Issue #304: problems with
24 `(@item1; @item2)` because the final paren was being parsed as part of
25 the item key.
27 * Changed URI parser so it doesn't include trailing punctuation.
28 So, in RST, `http://google.com.` should be parsed as a link followed by a
29 period. The parser is smart enough to recognize balanced parentheses, as
30 often occur in wikipedia links: `http://foo.bar/baz_(bam)`.
32 * Markdown+lhs reader: Require space after inverse bird tracks, so that
33 HTML tags can be used freely at the left margin of a markdown+lhs document.
34 Thanks to Conal Elliot for the suggestion.
36 * Markdown reader: Fixed bug in footnote order (reported by CircleCode).
38 * RST reader:
39 + Fixed bug in in field lists with multi-line items at the
40 end of the list.
41 + Added parentheses to RST `specialChars`, so
42 `(http://google.com)` will be parsed as a link in parens.
43 Resolves Issue #291.
44 + Allow `|` followed by newline in RST line block.
46 * LaTeX reader:
47 + Support `\dots`.
48 + Gobble option & space after linebreak `\\[10pt]`.
50 * Textile reader:
51 + Make it possible to have colons after links. (qerub)
52 + Make it possible to have colons after links. (Christoffer Sawicki)
54 * HTML reader:
55 + Skip spaces after `<b>`, `<emph>`, etc.
56 + Handle tbody, thead in simple tables. Closes #274.
57 + Implicit `Para`s instead of `Plains` in some contexts.
59 * OpenDocument writer: Use special `First paragraph` style for
60 first paragraph after most non-paragraph blocks. This allows users to
61 specify e.g. that only paragraphs after the first paragraph of a block are
62 to be indented. Thanks to Andrea Rossato for the patch. Closes #20.
64 * LaTeX writer: use `deVerb` on table and picture captions.
65 Otherwise LaTeX complains about `\verb` inside command argument.
66 Thanks to bbanier for reporting the bug.
68 * Markdown writer: Insert HTML comment btw list and indented code block.
69 This prevents the code block from being interpreted as part of the list.
71 * EPUB writer: Add a meta element specify the cover.
72 Some EPUB e-readers, such as the Nook, require a meta element inside the
73 OPF metadata block to ensure the cover image is properly displayed.
74 (Kelsey Hightower)
76 * HTML writer: Use embed tag for images with non-image extensions.
77 (e.g. PDFs). Closes #264.
79 * LaTeX writer: Improved tables.
81 + More space between lines, top-align cells.
82 + Use ctable package, which allows footnotes and
83 provides additional options.
84 + Made cell alignments work in multiline tables.
85 + Closes #271, #272.
87 * Un-URI-escape image filenames in LaTeX, ConTeXt, RTF, Texinfo.
88 Also do this when copying image files into EPUBs and ODTs.
89 Closes #263.
91 * Changed to github issue tracker.
93 * Added failing emph/strong markdown test case due to Perry Wagle.
95 * Slidy improvements:
96 + Updated to use Slidy2.
97 + Fixed bug, unclosed div tag.
98 + Added `duration` variable in template.
99 Setting this activates the timer.
100 + Use 'titlepage' instead of 'cover' for title div.
102pandoc (1.8.1.1)
104 * `markdown2pdf`: Removed some debugging lines accidentally included
105 in the 1.8.1 release. With those lines, the temp directory is created
106 in the working directory, and it is not deleted. This fix restores
107 the original behavior.
109pandoc (1.8.1)
111 * Added `--ascii` option. Currently supported only in HTML writer,
112 which it causes to use numerical entities instead of UTF-8.
114 * EPUB writer: `--toc` now works to provide a table of contents
115 at the beginning of each chapter.
117 * LaTeX writer: Change figure defaults to `htbp`.
118 This prevents "too many unprocessed floats." Resolves
119 Issue #285.
121 * `Text.Pandoc.UTF8`: Encode filenames even when using recent
122 base.
124 * `markdown2pdf`: Fixed filename encoding issues. With help from Paulo
125 Tanimoto. Resolves Issue #286.
127 * HTML writer: Put line breaks in section divs.
129 * `Text.Pandoc.Shared`: Make `writerSectionDivs` default to False.
131pandoc (1.8.0.3)
133 * Fixed Source-repository stanza in cabal file.
135pandoc (1.8.0.2)
137 * HTML writer:
139 + Stringify alt text instead of converting to HTML.
140 + Break lines after block elements, not inside tags.
141 HTML output now closely resembles that of tidy. Resolves Issue #134.
143 * Markdown reader: Fixed bug in footnote block parser (pointed out
144 by Jesse Rosenthal). The problem arose when the blank line
145 at the end of a footnote block contained indenting spaces.
147 * Shared: Improved 'normalize' function so it normalizes Spaces too.
148 In normal form, Space elements only occur to separate two non-Space
149 elements. So, we never have [Space], or [, ..., Space].
151 * Tests:
153 + Improved Arbitrary instance.
154 + Added timeout for test instances.
156 * README:
158 + Added section on four-space rule for lists. Resolves Issue #283.
159 + Clarified optional arguments on math options.
161 * markdown2pdf: Fixed bug with output file extensions.
162 Previously `markdown2pdf test.txt -o test.en.pdf` would produce
163 `test.pdf`, not `test.en.pdf`. Thanks to Paolo Tanimoto for the fix.
165pandoc (1.8.0.1)
167 * Revised Interact.hs so that it works with the CPP macros
168 in the UTF8 module.
170 * Revised Setup.hs so that we don't call MakeManPage.hs unless
171 the man pages are out of date.
173pandoc (1.8)
175 [new features]
177 * Support for citations using Andrea Rossato's `citeproc-hs` 0.3.
178 You can now write, for example,
180 Water is wet [see @doe99, pp. 33-35; also @smith04, ch. 1].
182 and, when you process your document using `pandoc`, specifying
183 a citation style using `--csl` and a bibliography using `--bibliography`,
184 the citation will be replaced by an appropriately formatted
185 citation, and a list of works cited will be added to the end
186 of the document.
188 This means that you can switch effortlessly between different citation
189 and bibliography styles, including footnote, numerical, and author-date
190 formats. The bibliography can be in any of the following formats: MODS,
191 BibTeX, BibLaTeX, RIS, EndNote, EndNote XML, ISI, MEDLINE, Copac, or JSON.
192 See the README for further details.
194 Citations are supported in the markdown reader, using a special
195 syntax, and in the LaTeX reader, using natbib or biblatex syntax.
196 (Thanks to Nathan Gass for the natbib and biblatex support.)
198 * New `textile` reader and writer. Thanks to Paul Rivier for contributing
199 the `textile` reader, an almost complete implementation of the textile
200 syntax used by the ruby [RedCloth library](http://redcloth.org/textile).
201 Resolves Issue #51.
203 * New `org` writer, for Emacs Org-mode, contributed by Puneeth Chaganti.
205 * New `json` reader and writer, for reading and writing a JSON
206 representation of the native Pandoc AST. These are much faster
207 than the `native` reader and writer, and should be used for
208 serializing Pandoc to text. To convert between the JSON representation
209 and native Pandoc, use `encodeJSON` and `decodeJSON` from
210 `Text.JSON.Generic`.
212 * A new `jsonFilter` function in `Text.Pandoc` makes it easy
213 to write scripts that transform a JSON-encoded pandoc document.
214 For example:
216 -- removelinks.hs - removes links from document
217 import Text.Pandoc
218 main = interact $ jsonFilter $ bottomUp removeLink
219 where removeLink (Link xs _) = Emph xs
220 removeLink x = x
222 To use this to remove links while translating markdown to LaTeX:
224 pandoc -t json | runghc removelinks.hs | pandoc -f json -t latex
226 * Attributes are now allowed in inline `Code` elements, for example:
228 In this code, `ulist ! [theclass "special"] << elts`{.haskell} is...
230 The attribute syntax is the same as for delimited code blocks.
231 `Code` inline has an extra argument place for attributes, just like
232 `CodeBlock`. Inline code will be highlighted in HTML output, if pandoc
233 is compiled with highlighting support. Resolves Issue #119.
235 * New `RawBlock` and `RawInline` elements (replacing `RawHtml`,
236 `HtmlInline`, and `TeX`) provide lots of flexibility in writing
237 scripts to transform Pandoc documents. Scripts can now change
238 how each element is rendered in each output format.
240 * You can now define LaTeX macros in markdown documents, and pandoc
241 will apply them to TeX math. For example,
243 \newcommand{\plus}[2]{#1 + #2}
244 $\plus{3}{4}$
246 yields `3+4`. Since the macros are applied in the reader, they
247 will work in every output format, not just LaTeX.
249 * LaTeX macros can also be used in LaTeX documents (both in math
250 and in non-math contexts).
252 * A new `--mathjax` option has been added for displaying
253 math in HTML using MathJax. Resolves issue #259.
255 * Footnotes are now supported in the RST reader. (Note, however,
256 that unlike docutils, pandoc ignores the numeral or symbol used in
257 the note; footnotes are put in an auto-numbered ordered list.)
258 Resolves Issue #258.
260 * A new `--normalize` option causes pandoc to normalize the AST
261 before writing the document. This means that, for example,
262 `*hi**there*` will be rendered as `<em>hithere</em>`
263 instead of `<em>hi</em><em>there</em>`. This is not the default,
264 because there is a significant performance penalty.
266 * A new `--chapters` command-line option causes headers
267 in DocBook, LaTeX, and ConTeXt to start with "chapter" (level one).
268 Resolves Issue #265.
270 * In DocBook output, `<chapter>` is now used for top-level
271 headers if the template contains `<book>`. Resolves Issue #265.
273 * A new `--listings` option in `pandoc` and `markdown2pdf` causes
274 the LaTeX writer to use the listings package for code blocks.
275 (Thanks to Josef Svennigsson for the pandoc patch, and Etienne
276 Millon for the markdown2pdf patch.)
278 * `markdown2pdf` now supports `--data-dir`.
280 * URLs in autolinks now have class "url" so they can be styled.
282 * Improved prettyprinting in most formats. Lines will be wrapped
283 more evenly and duplicate blank lines avoided.
285 * New `--columns` command-line option sets the column width for
286 line wrapping and relative width calculations for tables.
288 * Made `--smart` work in HTML, RST, and Textile readers, as well
289 as markdown.
291 * Added `--html5` option for HTML5 output.
293 * Added support for listings package in LaTeX reader
294 (Puneeth Chaganti).
296 * Added support for simple tables in the LaTeX reader.
298 * Added support for simple tables in the HTML reader.
300 * Significant performance improvements in many readers and writers.
302 [API and program changes]
304 * Moved `Text.Pandoc.Definition` from the `pandoc` package to a new
305 auxiliary package, `pandoc-types`. This will make it possible for other
306 programs to supply output in Pandoc format, without depending on the whole
307 pandoc package.
309 * Added `Attr` field to `Code`.
311 * Removed `RawHtml`, `HtmlInline`, and `TeX` elements; added generic
312 `RawBlock` and `RawInline`.
314 * Moved generic functions to `Text.Pandoc.Generic`. Deprecated
315 `processWith`, replacing it with two functions, `bottomUp` and `topDown`.
316 Removed previously deprecated functions `processPandoc` and `queryPandoc`.
318 * Added `Text.Pandoc.Builder`, for building `Pandoc` structures.
320 * `Text.Pandoc` now exports association lists `readers` and `writers`.
322 * Added `Text.Pandoc.Readers.Native`, which exports `readNative`.
323 `readNative` can now read full pandoc documents, block lists, blocks,
324 inline lists, or inlines. It will interpret `Str "hi"`
325 as if it were `Pandoc (Meta [] [] []) [Plain [Str "hi"]]`.
326 This should make testing easier.
328 * Removed deprecated `-C/--custom-header` option.
329 Use `--template` instead.
331 * `--biblio-file` has been replaced by `--bibliography`.
332 `--biblio-format` has been removed; pandoc now guesses the format
333 from the file extension (see README).
335 * pandoc will treat an argument as a URI only if it has an
336 `http(s)` scheme. Previously pandoc would treat some
337 Windows pathnames beginning with `C:/` as URIs.
339 * The `--sanitize-html` option and the `stateSanitize` field in
340 `ParserState` have been removed. Sanitization is better done in the
341 resulting HTML using `xss-sanitize`, which is based on pandoc's
342 sanitization, but improved.
344 * pandoc now adds a newline to the end of its output in fragment
345 mode (= not `--standalone`).
347 * Added support for `lang` in `html` tag in the HTML template,
348 so you can do `pandoc -s -V lang=es`, for example.
350 * `highlightHtml` in `Text.Pandoc.Highlighting` now takes
351 a boolean argument that selects between "inline" and
352 "block" HTML.
354 * `Text.Pandoc.Writers.RTF` now exports `rtfEmbedImage`.
355 Images are embedded in RTF output when possible (png, jpeg).
356 Resolves Issue #275.
358 * Added `Text.Pandoc.Pretty`. This is better suited for pandoc than the
359 `pretty` package. Changed all writers that used
360 `Text.PrettyPrint.HughesPJ` to use `Text.Pandoc.Pretty` instead.
362 * Rewrote `writeNative` using the new prettyprinting module. It is
363 now much faster. The output has been made more consistent and compressed.
364 `writeNative` is also now sensitive to writerStandalone`, and will simply
365 `print a block list if writerStandalone` is False.
367 * Removed `Text.Pandoc.Blocks`. `Text.Pandoc.Pretty` allows you to define
368 blocks and concatenate them, so a separate module is no longer needed.
370 * `Text.Pandoc.Shared`:
372 + Added `writerColumns`, `writerChapters`, and `writerHtml5` to
373 `WriterOptions`.
374 + Added `normalize`.
375 + Removed unneeded prettyprinting functions:
376 `wrapped`, `wrapIfNeeded`, `wrappedTeX`, `wrapTeXIfNeeded`, `hang'`,
377 `BlockWrapper`, `wrappedBlocksToDoc`.
378 + Made `splitBy` take a test instead of an element.
379 + Added `findDataFile`, refactored `readDataFile`.
380 + Added `stringify`. Rewrote `inlineListToIdentifier` using `stringify`.
381 + Fixed `inlineListToIdentifier` to treat '\160' as ' '.
383 * `Text.Pandoc.Readers.HTML`:
385 + Removed `rawHtmlBlock`, `anyHtmlBlockTag`, `anyHtmlInlineTag`,
386 `anyHtmlTag`, `anyHtmlEndTag`, `htmlEndTag`, `extractTagType`,
387 `htmlBlockElement`, `htmlComment`
388 + Added `htmlTag`, `htmlInBalanced`, `isInlineTag`, `isBlockTag`,
389 `isTextTag`
391 * Moved `smartPunctuation` from `Text.Pandoc.Readers.Markdown`
392 to `Text.Pandoc.Readers.Parsing`, and parameterized it with
393 an inline parser.
395 * Ellipses are no longer allowed to contain spaces.
396 Previously we allowed '. . .', ' . . . ', etc. This caused
397 too many complications, and removed author's flexibility in
398 combining ellipses with spaces and periods.
400 * Allow linebreaks in URLs (treat as spaces). Also, a string of
401 consecutive spaces or tabs is now parsed as a single space. If you have
402 multiple spaces in your URL, use `%20%20`.
404 * `Text.Pandoc.Parsing`:
406 + Removed `refsMatch`.
407 + Hid `Key` constructor.
408 + Removed custom `Ord` and `Eq` instances for `Key`.
409 + Added `toKey` and `fromKey` to convert between `Key` and `[Inline]`.
410 + Generalized type on `readWith`.
412 * Small change in calculation of relative widths of table columns.
413 If the size of the header > the specified column width, use
414 the header size as 100% for purposes of calculating
415 relative widths of columns.
417 * Markdown writer now uses some pandoc-specific features when `--strict`
418 is not specified: `\` newline is used for a hard linebreak instead of
419 two spaces then a newline. And delimited code blocks are used when
420 there are attributes.
422 * HTML writer: improved gladTeX output by setting ENV appropriately
423 for display or inline math (Jonathan Daugherty).
425 * LaTeX writer: Use `\paragraph`, `\subparagraph` for level 4,5 headers.
427 * LaTeX reader:
429 + `\label{foo}` and `\ref{foo}` now become `{foo}` instead of `(foo)`.
430 + `\index{}` commands are skipped.
432 * Added `fontsize` variable to default LaTeX template.
433 This makes it easy to set the font size using `markdown2pdf`:
434 `markdown2pdf -V fontsize=12pt input.txt`.
436 * Fixed problem with strikeout in LaTeX headers when using
437 hyperref, by adding a command to the default LaTeX template
438 that disables `\sout` inside pdf strings. Thanks to Joost Kremers
439 for the fix.
441 * The `COLUMNS` environment variable no longer has any effect.
443 [under-the-hood improvements]
445 * Pandoc now compiles with GHC 7. (This alone leads to a
446 significant performance improvement, 15-20%.)
448 * Completely rewrote HTML reader using tagsoup as a lexer. The
449 new reader is faster and more accurate. Unlike the
450 old reader, it does not get bogged down on some input
451 (Issues #277, 255). And it handles namespaces in tags
452 (Issue #274).
454 * Replaced `escapeStringAsXML` with a faster version.
456 * Rewrote `spaceChar` and some other parsers in Text.Pandoc.Parsing
457 for a significant performance boost.
459 * Improved performance of all readers by rewriting parsers.
461 * Simplified Text.Pandoc.CharacterReferences by using
462 entity lookup functions from TagSoup.
464 * `Text.Pandoc.UTF8` now uses the unicode-aware IO functions
465 from `System.IO` if base >= 4.2. This gives support for
466 windows line endings on windows.
468 * Remove duplications in documentation by generating the
469 pandoc man page from README, using `MakeManPage.hs`.
471 * README now includes a full description of markdown syntax,
472 including non-pandoc-specific parts. A new `pandoc_markdown`
473 man page is extracted from this, so you can look up markdown
474 syntax by doing `man pandoc_markdown`.
476 * Completely revised test framework (with help from Nathan Gass).
477 The new test framework is built when the `tests` Cabal flag is set. It
478 includes the old integration tests, but also some new unit and quickcheck
479 tests. Test output has been much improved, and you can now specify a glob
480 pattern after `cabal test` to indicate which tests should be run;
481 for example `cabal test citations` will run all the citation tests.
483 * Added a shell script, `stripansi.sh`, for filtering ANSI control
484 sequences from test output: `cabal test | ./stripansi.sh > test.log`.
486 * Added `Interact.hs` to make it easier to use ghci while developing.
487 `Interact.hs` loads `ghci` from the `src` directory, specifying
488 all the options needed to load pandoc modules (including
489 specific package dependencies, which it gets by parsing
490 dist/setup-config).
492 * Added `Benchmark.hs`, testing all readers + writers using criterion.
494 * Added `stats.sh`, to make it easier to collect and archive
495 benchmark and lines-of-code stats.
497 * Added upper bounds to all cabal dependencies.
499 * Include man pages in extra-source-files. This allows users to
500 install pandoc from the tarball without needing to build the man
501 pages.
503 [bug fixes]
505 * Filenames are encoded as UTF8. Resolves Issue #252.
507 * Handle curly quotes better in `--smart` mode. Previously, curly quotes
508 were just parsed literally, leading to problems in some output formats.
509 Now they are parsed as `Quoted` inlines, if `--smart` is specified.
510 Resolves Issue #270.
512 * Text.Pandoc.Parsing: Fixed bug in grid table parser.
513 Spaces at end of line were not being stripped properly,
514 resulting in unintended LineBreaks.
516 * Markdown reader:
518 + Allow HTML comments as inline elements in markdown.
519 So, `aaa <!-- comment --> bbb` can be a single paragraph.
520 + Fixed superscripts with links: `^[link](/foo)^` gets
521 recognized as a superscripted link, not an inline note followed by
522 garbage.
523 + Fixed regression, making markdown reference keys case-insensitive again.
524 Resolves Issue #272.
525 + Properly handle abbreviations (like `Mr.`) at the end of a line.
526 + Better handling of intraword underscores, avoiding exponential
527 slowdowns in some cases. Resolves Issue #182.
528 + Fixed bug in alignments in tables with blank rows in the header.
530 * RST reader:
532 + Field lists now allow spaces in field names, and
533 block content in field values. (Thanks to Lachlan Musicman
534 for pointing out the bug.)
535 + Definition list items are now always `Para` instead of
536 `Plain`, matching behavior of `rst2xml.py`.
537 + In image blocks, the description is parsed properly and
538 used for the alt attribute, not also the title.
539 + Skip blank lines at beginning of file. Resolves
540 Debian #611328.
542 * LaTeX reader:
544 + Improved parsing of preamble.
545 Previously you'd get unexpected behavior on a document that
546 contained `\begin{document}` in, say, a verbatim block.
547 + Allow spaces between `\begin` or `\end` and `{`.
548 + Support `\L` and `\l`.
549 + Skip comments inside paragraphs.
551 * LaTeX writer:
553 + Escape strings in `\href{..}`.
554 + In nonsimple tables, put cells in `\parbox`.
556 * OpenDocument writer: don't print raw TeX.
558 * Markdown writer:
560 + Fixed bug in `Image`. URI was getting unescaped twice!
561 + Avoid printing extra blank lines at the end if there are
562 no notes or references.
564 * LaTeX and ConTeXt: Escape `[` and `]` as `{[}` and `{]}`.
565 This avoids unwanted interpretation as an optional argument.
567 * ConTeXt writer: Fixed problem with inline code. Previously
568 `}` would be rendered `\type{}}`. Now we check the string for '}' and '{'.
569 If it contains neither, use `\type{}`; otherwise use `\mono{}`
570 with an escaped version of the string.
572 * `:` now allowed in HTML tags. Resolves Issue #274.
574pandoc (1.6)
576 [ John MacFarlane ]
578 * New EPUB and HTML Slidy writers. (Issue #122)
580 - EPUB is a standard ebook format, used in Apple's iBooks for
581 the iPad and iPhone, Barnes and Noble's nook reader, the Sony
582 reader, and many other devices.
583 - Slidy, like S5, is a system for producing HTML+javascript slide
584 shows.
586 * All input is assumed to be UTF-8, no matter what the locale and ghc
587 version, and all output is UTF-8. This reverts to pre-1.5 behavior.
588 Also, a BOM, if present, is stripped from the input.
590 * Markdown now supports grid tables, whose cells can contain
591 arbitrary block elements. (Issue #43)
593 * Sequentially numbered example lists in markdown with `@` marker.
595 * Markdown table captions can begin with a bare colon and no longer need
596 to include the English word "table." Also, a caption can now occur
597 either before or after the table. (Issue #227)
599 * New command-line options:
601 - `--epub-stylesheet` allows you to specify a CSS file that will
602 be used to style your ebook.
603 - `--epub-metadata` allows you to specify metadata for the ebook.
604 - `--offline` causes the generated HTML slideshow to include all
605 needed scripts and stylesheets.
606 - `--webtex` causes TeX math to be converted to images using the
607 Google Charts API (unless a different URL is specified).
608 - `--section-divs` causes div tags to be added around each section
609 in an HTML document. (Issue #230, 239)
611 * Default behavior of S5 writer in standalone mode has changed:
612 previously, it would include all needed scripts and stylesheets
613 in the generated HTML; now, only links are included unless
614 the `--offline` option is used.
616 * Default behavior of HTML writer has changed. Between 1.2 and 1.5,
617 pandoc would enclose sections in div tags with identifiers on the
618 div tags, so that the sections can be manipulated in javascript.
619 This caused undesirable interactions with raw HTML div tags. So,
620 starting with 1.6, the default is to put the identifiers directly
621 on the header tags, and not to include the divs. The `--section-divs`
622 option selects the 1.2-1.5 behavior.
624 * API changes:
626 - `HTMLMathMethod`: Added `WebTeX`, removed `MimeTeX`.
627 - `WriterOptions`: Added `writerUserDataDir`, `writerSourceDirectory`,
628 `writerEPUBMetadata` fields. Removed `writerIncludeBefore`,
629 `writerIncludeAfter`.
630 - Added `headerShift` to `Text.Pandoc.Shared`.
631 - Moved parsing code and `ParserState` from `Text.Pandoc.Shared`
632 to a new module, `Text.Pandoc.Parsing`.
633 - Added `stateHasChapters` to `ParserState`.
634 - Added `HTMLSlideVariant`.
635 - Made `KeyTable` a map instead of an association list.
636 - Added accessors for `Meta` fields (`docTitle`, `docAuthors`,
637 `docDate`).
638 - `Pandoc`, `Meta`, `Inline`, and `Block` have been given `Ord`
639 instances.
640 - Reference keys now have a type of their own (`Key`), with its
641 own `Ord` instance for case-insensitive comparison.
642 - Added `Text.Pandoc.Writers.EPUB`.
643 - Added `Text.Pandoc.UUID`.
644 - Removed `Text.Pandoc.ODT`, added `Text.Pandoc.Writers.ODT`.
645 Removed `saveOpenDocumentAsODT`, added `writeODT`.
646 - Added `Text.Pandoc.Writers.Native` and `writeNative`.
647 Removed `prettyPandoc`.
648 - Added `Text.Pandoc.UTF8` for portable UTF8 string IO.
649 - Removed `Text.Pandoc.Writers.S5` and the `writeS5` function.
650 Moved `s5Includes` to a new module, `Text.Pandoc.S5`.
651 To write S5, you now use `writeHtml` with `writerSlideVariant`
652 set to `S5Slides` or `SlidySlides`.
654 * Template changes. If you use custom templates, please update them,
655 particularly if you use syntax highlighting with pandoc. The old HTML
656 templates hardcoded highlighting CSS that will no longer work with
657 the most recent version of highlighting-kate.
659 - HTML template: avoid empty meta tag if no date.
660 - HTML template: Use default highlighting CSS from highlighting-kate
661 instead of hard-coding the CSS into the template.
662 - HTML template: insert-before text goes before the title, and
663 immediately after the <body> tag, as documented. (Issue #241)
664 - Added slidy and s5 templates.
665 - Added amssymb to preamble of latex template. (github Issue 1)
667 * Removed excess newlines at the end of output. Note: because output
668 will not contain an extra newline, you may need to make adjustments
669 if you are inserting pandoc's output into a template.
671 * In S5 and slidy, horizontal rules now cause a new slide, so you
672 are no longer limited to one slide per section.
674 * Improved handling of code in man writer. Inline code is now monospace,
675 not bold, and code blocks now use .nf (no fill) and .IP (indented para).
677 * HTML reader parses `<tt>` as Code. (Issue #247)
679 * html+lhs output now contains bird tracks, even when compiled without
680 highlighting support. (Issue #242)
682 * Colons are now no longer allowed in autogenerated XML/HTML identifiers,
683 since they have a special meaning in XML.
685 * Code improvements in ODT writer. Remote images are now replaced with
686 their alt text rather than a broken link.
688 * LaTeX reader improvements:
690 - Made latex `\section`, `\chapter` parsers more forgiving of
691 whitespace.
692 - Parse `\chapter{}` in latex.
693 - Changed `rawLaTeXInline` to accept `\section`, `\begin`, etc.
694 - Use new `rawLaTeXInline'` in LaTeX reader, and export `rawLaTeXInline`
695 for use in markdown reader.
696 - Fixes bug wherein `\section{foo}` was not recognized as raw TeX
697 in markdown document.
699 * LaTeX writer: images are automatically shrunk if they would extend
700 beyond the page margin.
702 * Plain, markdown, RST writers now use unicode for smart punctuation.
704 * Man writer converts math to unicode when possible, as in other writers.
706 * `markdown2pdf` can now recognize citeproc options.
708 * Command-line arguments are converted to UTF-8. (Issue #234)
710 * `Text.Pandoc.TeXMath` has been rewritten to use texmath's parser.
711 This allows it to handle a wider range of formulas. Also, if a formula
712 cannot be converted, it is left in raw TeX; formulas are no longer
713 partially converted.
715 * Unicode curly quotes are left alone when parsing smart quotes. (Issue
716 #143)
718 * Cabal file changes:
720 - Removed parsec < 3 restriction.
721 - Added 'threaded' flag for architectures where GHC lacks a threaded
722 runtime.
723 - Use 'threaded' only for markdown2pdf; it is not needed for pandoc.
724 - Require highlighting-kate 0.2.7.
726 * Use explicit imports from `Data.Generics`. Otherwise we have a
727 conflict with the 'empty' symbol, introduced in syb >= 0.2. (Issue #237)
729 * New data files: slidy/slidy.min.js, slidy/slidy.min.css, epub.css.
731pandoc (1.5.1.1)
733 [ John MacFarlane ]
735 * Fixed uniqueIdent in Shared so that header identifiers work as
736 advertized in the README and are are valid XHTML names.
738pandoc (1.5.1)
740 [ John MacFarlane ]
742 * Fixed treatment of unicode characters in URIs.
743 + Shared now exports escapeURI and unescapeURI. These handle
744 UTF8 encoding and decoding as well as URI escaping/unescaping.
745 + Shared: uri and emailAddress now return a pair of the original
746 parsed text and the escaped URI (in the latter case, with
747 the mailto: prefix).
748 + HTML reader: unsanitaryURI has been modified to allow unicode
749 high characters in a URI.
750 + Readers: All link and image URIs are now escaped using
751 escapeURI.
752 + Markdown and RST writers: unescapeURI is used so that URIs
753 in these formats are human-readable.
755 * Setup.hs: Don't assume that the build directory is "dist".
756 Instead, get it from localBuildInfo.
758 * OpenDocument writer: Use a Map for stTextStyleAttr.
759 This avoids duplicates (and invalid xml). Resolves Issue #222.
761pandoc (1.5.0.1)
763 [ John MacFarlane ]
765 * HTML writer: Fixed error in math writer (with MathML option)
766 that caused an infinite loop for unparsable MathML.
768pandoc (1.5)
770 [ John MacFarlane ]
772 * Added --mathml option. When this is selected, pandoc will convert
773 TeX math into MathML.
774 + Added data/MathMLinHTML.js, which is included when no URL is
775 provided for --mathml. This allows MathML to be displayed (in
776 better browsers) as text/html.
777 + Removed Text.Pandoc.LaTeXMathML. The module was no longer
778 necessary; it was replaced by two lines in pandoc.hs.
779 + Replaced LaTeXMathML.js.commend and LaTeXMathML.js.packed with a
780 single combined file, LaTeXMathML.js.
782 * Added --data-dir option.
783 This specifies a user data directory. If not specified, will default
784 to ~/.pandoc on unix or Application Data\pandoc on Windows.
785 Files placed in the user data directory will override system default
786 data files.
788 * Added Maybe datadir parameter to readDataFile, saveOpenDocumentAsODT,
789 latexMathMLScript, s5HeaderIncludes, and getDefaultTemplate. If
790 Nothing, no user directory is searched for an override.
792 * Added 'plain' output format. This is similar to markdown, but
793 removes links, pictures, inline formatting, and most anything that
794 looks even vaguely markupish. The function writePlain is exported by
795 Text.Pandoc.Writers.Markdown, with which it shares most of its code.
797 * Allow multi-line titles and authors in meta block.
798 Titles may span multiple lines, provided continuation lines
799 begin with a space character. Separate authors may be put on
800 multiple lines, provided each line after the first begins with
801 a space character. Each author must fit on one line. Multiple
802 authors on a single line may still be separated by a semicolon.
803 Based on a patch by Justin Bogner.
805 * When given an absolute URI as parameter, pandoc will try to fetch
806 the content via HTTP. So you can do:
807 'pandoc -r html -w markdown http://www.fsf.org'
808 Adds dependency on HTTP.
810 * Made HTML reader much more forgiving.
811 + Incorporated idea (from HXT) that an element can be closed
812 by an open tag for another element.
813 + Javascript is partially parsed to make sure that a <script>
814 section is not closed by a </script> in a comment or string.
815 + More lenient non-quoted attribute values.
816 Now we accept anything but a space character, quote, or <>.
817 This helps in parsing e.g. www.google.com!
818 + Bare & signs are now parsed as a string. This is a common
819 HTML mistake.
820 + Skip a bare < in malformed HTML.
822 * Removed html2markdown and hsmarkdown.
823 + html2markdown is no longer needed, since you can now pass URI
824 arguments to pandoc and directly convert web pages. (Note,
825 however, that pandoc assumes the pages are UTF8. html2markdown
826 made an attempt to guess the encoding and convert them.)
827 + hsmarkdown is pointless -- a large executable that could be
828 replaced by 'pandoc --strict'.
830 * In most writers, an image in a paragraph by itself is now rendered
831 as a figure, with the alt text as the caption. (Texinfo, HTML, RST,
832 MediaWiki, Docbook, LaTeX, ConTeXt, HTML.) Other images are
833 rendered inline.
835 * Depend on extensible-exceptions. This allows pandoc to be compiled
836 on GHC 6.8.
838 * Added --base-header-level option. For example, --base-header-level=2
839 will change level 1 headers to level 2, level 2 to level 3, etc.
840 Closes Debian #563416.
842 * Incomplete support for RST tables (simple and grid).
843 Thanks to Eric Kow. Colspans and rowspans not yet supported.
845 * Added accessors (docTitle, docAuthors, docDate) to Meta type.
847 * MediaWiki writer: format links with relative URLs as wikilinks.
848 The new rule: If the link target is an absolute URL, an external
849 link is created. Otherwise, a wikilink is created.
851 * Text.Pandoc.Shared: Export uniqueIdent, and don't allow tilde in
852 identifier. Note: This may break links to sections that involve
853 tildes.
855 * Markdown(+lhs) reader: handle "inverse bird tracks."
856 Inverse bird tracks (<) are used for haskell example code that is not
857 part of the literate Haskell program. Resolves Issue #211.
859 * LaTeX reader:
860 + Recognize '\ ' (interword space).
861 + Recognize nonbreaking space '~'.
862 + Ignore \section, \pdfannot, \pdfstringdef. Ignore alt title in
863 section headers. Don't treat \section as inline LaTeX.
864 Resolves Issue #202.
865 + LaTeX reader: allow any special character to be escaped.
866 Resolves Issue #221.
867 + LaTeX reader: treat \paragraph and \subparagraph as level 4, 5
868 headers. Resolves Issue #207.
870 * Use template variables for include-before/after.
871 + These options now imply -s; previously they worked also in fragment
872 mode.
873 + Users can now adjust position of include-before and include-after
874 text in the templates.
875 + Default position of include-before moved back (as it was before 1.4)
876 before table of contents.
877 + Resolves Issue #217.
879 * Don't print an empty table header: (all writers).
880 Resolves Issue #210.
882 * HTML, Docbook writer: Use tbody, thead, and cols in tables.
884 * HTML writer: Don't include TOC div if table of contents is empty.
886 * Markdown writer: Fixed citations.
887 Previously the markdown writer printed raw citation codes, e.g.
888 [geach1970], rather than the expanded citations provided by
889 citeproc, e.g. (Geach 1970). Now it prints the expanded citations.
890 This means that the document produced can be processed as a markdown
891 document without citeproc. Thanks to dsanson for reporting, and
892 Andrea Rossato for the patch.
894 * Improved and simplified title block in context template.
895 Previously it caused an error if there was no title.
896 This method should also be easier for users to customize.
898 * Markdown reader:
899 + Treat p., pp., sec., ch., as abbreviations in smart mode.
900 + Disallow blank lines in inline code span.
901 + Allow footnotes to be indented < 4 spaces.
902 This fixes a regression. A test case has been added.
903 + Escape spaces in URLs as %20. Previously they were incorrectly
904 escaped as +, which is appropriate only for the query part of
905 a URL. Resolves Issue #220.
906 + Require two spaces after capital letter + period for list item.
907 Otherwise "E. coli" starts a list. This might change the semantics
908 of some existing documents, since previously the two-space
909 requirement was only enforced when the second word started
910 with a capital letter. But it is consistent with the existing
911 documentation and follows the principle of least surprise.
912 Resolves Issue #212.
914 * LaTeX template: redefine labelwidth when using enumerate package.
915 Otherwise the list labels (numbers) often extend past the left
916 margin, which looks bad.
918 * Mediawiki writer: Don't print a "== Notes ==" header before
919 references. This is too English-centric. Writers can provide their
920 own header at the end of the document.
922 * Promoted mediawiki headers. '= head =' is now level 1, '== head =='
923 level 2, etc. This seems to be correct; it's only by convention
924 that wikipedia articles have level 2 headers at most.
925 Patch due to Eric Kow.
927 * RunTests.hs: Set LANG to a UTF-8 locale. Use 'pandoc --data-dir=' so
928 data files don't need to have been installed. This removes the need to
929 set HOME.
931 * HTML reader:
932 + Handle spaces before <html>. Resolves Issue #216.
933 + Be forgiving in parsing a bare list within a list.
934 The following is not valid xhtml, but the intent is clear:
935 <ol>
936 <li>one</li>
937 <ol><li>sub</li></ol>
938 <li>two</li>
939 </ol>
940 We'll treat the <ol> as if it's in a <li>. Resolves Issue #215.
942 * Updated INSTALL instructions. cabal method is now promoted.
944 * Updated markdown2pdf man page. It no longer says all pandoc options
945 are accepted.
947 * README/man pages: Removed advice to pipe through tidy before HTML
948 reader. This is obsolete, now that we have a forgiving HTML parser.
950 * LaTeX writer: set numbersections template variable, so
951 the section numbering options work again.
953 * Removed obsolete Makefile.
955 * Website: renamed index.txt.in -> index.txt.
957 * New batch file to make-windows-installer.
958 + Removed old Makefile.windows
959 + Added make-windows-installer.bat
960 + Modified default installer name in pandoc-setup.iss
962 * Removed freebsd and macports directories.
963 They are no longer up to date.
965 * Setup.hs:
966 + Made man page building sensitive to build verbosity.
967 + Improved detection of highlighting support in test hook.
968 + Install wrapper scripts into cabal bin directory.
969 + Also simplified installManpages.
970 + Setup.hs: install manpages to mandir. Code borrowed from darcs.
972 * Changed default of writerXeTeX to False.
974 * HTML writer: don't include empty UL if --toc but no sections.
975 Resolves Issue #199.
977 * LaTeX writer:
979 + If book, report, or memoir documentclass, use \chapter{}
980 for first-level headers. Otherwise use \section{}.
981 + Removed stLink, link template variable. Reason: we now always
982 include hyperref in the template.
984 * LaTeX template:
986 + Only show \author if there are some.
987 + Always include hyperref package. It is used not just for links but
988 for toc, section heading bookmarks, footnotes, etc. Also added
989 unicode=true on hyperref options.
991 * markdown2pdf: always do at least two runs. hyperref bookmarks
992 require this.
994 * cabal file: Removed unneeded dependency on template-haskell.
996 * Windows installer - fixed bug in data file locations.
997 Resolves Issue #197.
999 * Deprecated --custom-header in documentation.
1000 Removed old "Custom Headers" section in README.
1002pandoc (1.4)
1004 [ John MacFarlane ]
1006 * Pandoc will now compile with either GHC 6.10 or 6.12.
1007 + Don't use System.IO.UTF8 when compiling with 6.12
1008 + Use -fno-warn-unused-do-bind option when compiling with 6.12
1010 * Replaced old headers with templates. Now users have much more
1011 control over the way documents appear in --standalone mode,
1012 and writer code is simplified. Resolves Issues #59, 147.
1013 Every effort has been made to retain backwards compatibilty.
1014 So, the --custom-header option should still work as before.
1016 + Added Text.Pandoc.Templates. This provides functions for
1017 retrieving default templates and for rendering templates.
1018 + System templates (in the pandoc data directory) can be
1019 overridden by user templates in $HOME/.pandoc/templates.
1020 + Removed Text.Pandoc.DefaultHeaders.
1021 + Removed data/headers directory.
1022 + Added templates directory.
1023 + Added writerTemplate and writerVariables fields to WriterOptions.
1024 + Removed writerTitlePrefix, writerHeader fields from WriterOptions.
1025 + Changed --print-default-header to --print-default-template.
1026 + Added --template option.
1027 + Added -V/--variable option to set custom template variables.
1029 * Pandoc no longer requires Template Haskell. Resolves Issue #186.
1031 + Removed need for TH in ODT module. Instead get reference.odt from
1032 data file at run time.
1033 + Removed TH dependency from S5 module. S5 module now exports
1034 s5HeaderIncludes, which pandoc.hs includes if writer is s5 and
1035 standalone.
1036 + Refactored LaTeXMathML not to use TH.
1038 * Meta is now Meta [Inline] [[Inline]] [Inline] rather than
1039 Meta [Inline] [String] String. Authors and date in Meta are now lists
1040 of Inline elements rather than raw strings. This means that they can
1041 be formatted and can include footnotes. NOTE: This may be a breaking
1042 change for those using pandoc as a library.
1044 * Added readDataFile to Text.Pandoc.Shared. This retrieves
1045 a data file from the user pandoc data directory (~/.pandoc
1046 on unix), or, if not found there, from the system data
1047 directory ($CABALDIR/shared/pandoc-VERSION/). All data
1048 files, including templates, LaTeXMathML.js, s5 styles,
1049 and reference.odt, can be overridden by the user.
1051 * s5 files moved from data/ui/default to s5/default.
1053 * Use unicode instead of entities in HTML and XML output. Resolves
1054 Issue #163.
1056 * Prettier HTML footnote references: put anchor inside sup,
1057 instead of other way. Resolves Issue #191. Thanks to
1058 infinity0x.
1060 * Added --xetex option to pandoc and markdown2pdf.
1061 If --xetex is specified, pandoc produces latex suitable for
1062 processing by xelatex, and markdown2pdf uses xelatex to create
1063 the PDF. Resolves Issue #185.
1065 * RTF writer: multiple authors now occupy multiple paragraphs rather
1066 than using a line break.
1068 * Man writer: now the "--after-body" will come after the "AUTHORS"
1069 section, whereas before it would come before it. This is a
1070 slight break from backwards compatibility.
1072 * Added --reference-odt option, so users may customize the styles
1073 used in pandoc-generated ODT files. Users may also place a
1074 default reference.odt in the ~\.pandoc directory.
1076 * ODT writer:
1077 + Indented and line-broke styles.xml so it can be modified more easily.
1078 + Omitted some unnecessary style declarations.
1079 + Don't wrap text in OpenDocument writer. The tags are too long, making
1080 wrapping ugly and pointless.
1082 * LaTeX reader: use \\ to separate multiple authors.
1084 * Markdown reader: use ; as separator between authors.
1085 This allows you to use ',' within author names: e.g. "John Jones, Jr."
1087 * S5 writer: use linebreak to separate authors in title page.
1089 * RST reader: Allow :: before lhs code block. The RST spec requires the
1090 :: before verbatim blocks. This :: should not be treated as literal
1091 colons. Resolves Issue #189.
1093 * Documented pandoc 1.3's new definition list syntax in README.
1094 (An oversight in the last release.)
1096 * markdown2pdf.hs:
1097 + interpret ! in a log as an error line.
1098 + --toc now works properly.
1100 * Changes in RunTests.hs:
1101 + Use the Diff library rather than a local copy of Diff.hs.
1102 (This vastly increases performance.) This change means that 'cabal
1103 test' presupposes that the Diff library is installed.
1104 + Removed tests/Diff.hs from cabal file.
1105 + Changed RunTests to use local environment. We need at least HOME, so
1106 pandoc can find its data directory.
1108 * Updated windows installer to install data files in the app directory.
1110 * Windows installer now installs portable wrappers hsmarkdown and
1111 markdown2pdf.
1113pandoc (1.3)
1115 [ John MacFarlane ]
1117 * Added --id-prefix option (Issue #41). This adds a prefix to all
1118 automatically generated HTML identifiers, which helps prevent
1119 duplicate identifiers when you're generating a fragment (say a blog
1120 post).
1122 * Added --indented-code-classes option. This specifies classes
1123 to use for indented code blocks. (Patch due to buttock; Issue #87.)
1125 * --number-sections now affects HTML output as well as ConTeXt and LaTeX
1126 (Issue #150).
1128 * Improved syntax for markdown definition lists (Issue #24).
1129 Definition lists are now more compatible with PHP Markdown Extra.
1130 + You can have multiple definitions for a term (but still not
1131 multiple terms).
1132 + Multi-block definitions no longer need a column before each block
1133 (indeed, this will now cause multiple definitions).
1134 + The marker no longer needs to be flush with the left margin,
1135 but can be indented at or two spaces. Also, ~ as well as :
1136 can be used as the marker (this suggestion due to David
1137 Wheeler.)
1138 + There can now be a blank line between the term and the
1139 definitions.
1141 * Better looking simple tables. Resolves Issue #180.
1142 + Markdown reader: simple tables are now given column widths of 0.
1143 + Column width of 0 is interpreted as meaning: use default column width.
1144 + Writers now include explicit column width information only
1145 for multiline tables. (Exception: RTF writer, which requires
1146 column widths. In this case, columns are given equal widths,
1147 adding up to the text width.)
1148 + Simple tables should now look better in most output formats.
1150 * Allow markdown tables without headers (Issue #50).
1151 The new syntax is described in README. Also allow optional line of
1152 dashes at bottom of simple tables.
1154 * Compensate for width of final table column (Issue #144).
1156 * Treat a backslash followed by a newline as a hard line break
1157 in markdown. Resolves Issue #154. This is a nice alternative
1158 to markdown's "invisible" way of indicating hardline breaks
1159 using lines that end with two spaces.
1161 * Improved performance of markdown reader by ~10% by eliminating the
1162 need for a separate parsing pass for notes. Raw notes are now stored
1163 on the first pass (which parses references), then parsed when the
1164 note is inserted into the AST. The stateNotes field in ParserState
1165 is now a list of [(String, String)] pairs instead of [(String,
1166 [Block])].
1168 * In markdown reader, treat 4 or more * or _ in a row as literal
1169 text. (Trying to parse long strings of * or _ as strong or emph
1170 leads to exponential performance problems.)
1172 * Markdown reader: Use + rather than %20 for spaces in URLs.
1174 * Fixed htmlComment parser, adding a needed 'try'.
1176 * Don't print raw HTML in man output.
1178 * Allow . _ and ~ in header identifiers.
1180 * Specially mark code blocks that were "literate" in the input.
1181 They can then be treated differently in the writers. This allows
1182 authors to distinguish bits of the literate program they are writing
1183 from source code examples, even if the examples are marked as
1184 Haskell for highlighting. (Issue #174.)
1186 * Modified html+lhs output to use "haskell" highlighter instead
1187 of "literateHaskell". The highlighting module now adds bird tracks
1188 after highlighting (for HTML output), if the code block has the
1189 "literate" class. This gives better results, because kate's
1190 haskell highlighter is much better than the literateHaskell
1191 highlighter.
1193 * Fixed handling of footnotes in titles (HTML) and headers (LaTeX).
1194 (Issue #137.)
1196 * Support for "..code-block" directive in RST reader. Not core
1197 RST, but used in Sphinx for code blocks annotated with syntax
1198 information. Thanks to Luke Plant for the patch.
1200 * Added "head" to list of block-level HTML tags. Resolves
1201 Issue #108.
1203 * Added stripTags to Text.Pandoc.XML. This is used in the HTML writer.
1205 * Set utf-8 encoding in texinfo headers.
1207 * Docbook writer: add ids to sections. Use link for internal links.
1208 (Issue #60.)
1210 * Blank lines after lists in MediaWiki writer.
1212 * Properly handle commented-out list items in markdown.
1213 Resolves Issue #142. Example:
1215 - a
1216 <!--
1217 - b
1218 -->
1219 - c
1221 * Changed heuristic in compactify. compactify has to decide whether a
1222 Para that ends a list is a Para intentionally, or just because of
1223 the blank lines at the end of every list. In the latter case the
1224 Para is turned to a Plain. The old heuristic was: change final Para
1225 to Plain iff the other items all end in Plain. This produces bad
1226 results when, for example, an item contains just a Plain and an HTML
1227 comment, as it does in the list above. The new heuristic: change
1228 final Para to Plain iff the other items don't contain a Para.
1230 * Added % as an rst underline character. Resolves Issue #173.
1232 * Fix inline math parser so that \$ is allowed in math.
1233 Resolves Issue #169.
1235 * Translate \int (integral) into unicode when using unicode math
1236 method. Resolves Issue #177.
1238 * markdown2pdf.hs improvements:
1239 + Use System.IO.UTF8.
1240 + Print error messages on last attempt.
1241 + Do not create a backup when overwriting a PDF (Issue #166).
1242 + Accept --longopt=val options.
1243 + Added man/man1/markdown2pdf.1 to extra-tmp-files in cabal, so that
1244 it is properly cleaned.
1246 * Added haddock comments warning that readers assume \n line endings.
1248 * Updated COPYRIGHT file.
1250 * Makefile: Changed EXECSBASE so it doesn't pull in hsmarkdown &
1251 markdown2pdf. Otherwise strip tries to strip shell scripts when you
1252 install using 'make'.
1254 * Changed Makefile so it doesn't build Haskell wrappers.
1256 * Fixed Makefile so it doesn't try to build man pages in build-doc.
1258 * Install pcre3.dll in Windows install script; this allows us to
1259 package a version of pandoc with highlighting support.
1261pandoc (1.2.1)
1263 [ John MacFarlane ]
1265 * Fixed regression with --preserveTabs. Brought back optPreserveTabs.
1266 The trick of setting tabStop to 0 to mean "preserve tabs" had a bad
1267 side effect: strings of 0 spaces were interpreted as indentation.
1268 So, with --preserve-tabs, unindented paragraphs were treated as
1269 code. Resolves Issue #138.
1271 * HTML writer: wrap sections in divs. Resolves Issue #70.
1273 + hierarchicalize has been rationalized; it builds a hierarchical
1274 representation of the document from the headers, and simultaneously
1275 gives each section a unique identifier based on the heading title.
1276 + Identifiers are now attached to the divs rather than
1277 to the headers themselves.
1278 + Table of content backlinks go to the beginning of the table, rather
1279 than to the section reference that was clicked.
1280 + Code for constructing identifiers has been moved to Text.Pandoc.Shared
1281 from the HTML writer, since it is now consumed only by
1282 hierarchicalize.
1283 + In --strict mode, pandoc just prints bare headings, as before
1284 (unless --toc has been specified).
1285 + In s5 output, it does not wrap sections in divs, as that seems to
1286 confuse the s5 javascript.
1288 * Man writer: break lines at end of each sentence. groff expects this
1289 and treats '.' and '?' differently when followed by line ending as
1290 opposed to ordinary space. Also, don't escape periods. Instead, use
1291 zero-width character \& to avoid unwanted interpretation of periods
1292 at start of line. Resolves Issue #148.
1294 * Markdown writer: Added '#' and '>' to list of characters to be
1295 escaped in markdown output. Removed '<', as it is not an officially
1296 escapable character. This partially resolves Issue #96.
1298 * Make --smart the default for man output format. Otherwise we have
1299 trouble dividing lists of endlines into sentences.
1301 * DocBook writer: Use language attribute to indicate source language
1302 in code blocks.
1304 * RST reader:
1306 + Allow # to continue list, even if the list was started with an
1307 explicit marker. For example:
1309 A. my list
1310 #. continued
1312 Resolves Issue #140.
1313 + Allow continuation lines in line blocks. Also added test cases for
1314 line blocks for RST reader. Resolves Issue #149.
1315 + Allow explicit links with spaces in URL: `link <to this>`_
1317 * Improved LaTeX reader's coverage of math modes. Remove displaymath*
1318 (which is not in LaTeX) and recognize all the amsmath environments
1319 that are alternatives to eqnarray, namely equation, equation*,
1320 gather, gather*, gathered, multline, multline*, align, align*,
1321 alignat, alignat*, aligned, alignedat, split. Resolves Issue #103.
1322 Thanks to shreevatsa.public for the patch.
1324 * Markdown reader:
1326 + Allow -, _, :, . in markdown attribute names. These are legal in
1327 XML attribute names.
1328 + Use non-breaking spaces in abbreviations.
1329 + Markdown reader: improved efficiency of abbreviation parsing.
1330 Instead of a separate abbrev parser, we just check for
1331 abbreviations each time we parse a string. This gives a huge
1332 performance boost with -S. Resolves Issue #141.
1334 * Improved efficiency of shared parsers: hexNum, htmlComment,
1335 whitespace, indentSpaces.
1337 * Export HTMLMathMethod in Text.Pandoc.
1339 * Export languagesByExtension in Text.Pandoc.Highlighting.
1341 * Added new Haskell version of markdown2pdf, due to
1342 Paulo Tanimoto. This should be more portable than the old
1343 shell script.
1345 * Made 'pandoc -v' more explicit about compiler options.
1346 Resolves Issue #139.
1348 * pandoc.hs: Made --strict compatible with --standalone, --toc.
1350 * Use Paths_pandoc to get version number, instead of hard-coding it
1351 into Text/Pandoc.hs.
1353pandoc (1.2)
1355 [ John MacFarlane ]
1357 * Added support for literate Haskell. lhs support is triggered by
1358 '+lhs' suffixes in formats. For example, 'latex+lhs' is literate
1359 Haskell LaTeX. '.lhs' files are treated by default as literate
1360 markdown.
1362 + Added stateLiterateHaskell to parser state.
1363 + Added parser for lhsCodeBlock to Markdown, RST, LaTeX readers.
1364 + Added parser for |inline lhs| to LaTeX reader.
1365 + Added writerLiterateHaskell to WriterOptions.
1366 + Added lhs support to Markdown, RST, LaTeX, HTML writers.
1367 + Added definition of code environment to LaTeX header.
1368 + Added tests (run only if highlighting support compiled in).
1369 + Documented lhs features in man page and README.
1371 * In Text.Pandoc.Definition, added processWith, processWithM,
1372 and queryWith, and deprecated processPandoc and queryPandoc
1373 for these more general functions.
1375 * Fixed bug in mediawiki writer: improper closing tags in tables.
1376 Thanks to Benct Philip Jonsson for reporting the bug.
1378 * Added --email-obfuscation option.
1380 + Added writer option for email obfuscation.
1381 + Implemented email obfuscation options in HTML writer.
1382 + Added option to option parser.
1383 + Documented in README and pandoc man page.
1384 + Resolves Issue #97.
1386 * LaTeX writer: fixed bug with empty table cells.
1387 Resolves Issue #107. Thanks to rodja.trappe for the patch.
1389 * Fixed bug with header spacing in Markdown and RST writers.
1390 A null header (Meta [] [] []) should not cause a blank line
1391 at the beginning of output. But a blank line is needed between
1392 a non-null header and the main text.
1394 * Markdown reader: Relax spacing rules for $$ in display math. Now
1395 space and newlines are allowed after the opening $$ and before the
1396 closing $$. However, the display math cannot contain an entirely
1397 blank line. Resolves Issue #105.
1399 * Markdown reader: Gobble space after Plain blocks containing only
1400 raw html inline. Otherwise following header blocks are not parsed
1401 correctly, since the parser sees blank space before them. Resolves
1402 Issue #124.
1404 * Markdown reader: Allow " as well as '' to end a latex double-quote.
1406 * Conditionally depend on syb and base >= 4 if ghc >= 6.10.
1407 Resolves Issue #109.
1409 * Fixed problems in RST and markdown output due to bug in pretty-1.0.1.0
1411 + Added hang' function to Text.Pandoc.Shared; this will be used instead
1412 of hang, which doesn't work properly in pretty-1.0.1.0. When pretty
1413 is upgraded, we can go back to hang.
1414 See http://article.gmane.org/gmane.comp.lang.haskell.general/16687
1415 + Use hang' (and some different techniques) in RST and markdown writers.
1416 Some output is now a bit different.
1418 * Brought citeproc support up to date for citeproc-hs-0.2.
1419 (Patch by Andrea Rossato.)
1421 * Moved all haskell source to src subdirectory. Renamed Main.hs to
1422 pandoc.hs.
1424 * Rewrote hsmarkdown in Haskell for portability (src/hsmarkdown.hs).
1425 For now, keeping the old shell script too.
1427 * Added TemplateHaskell to Extensions for executable, removed
1428 -threaded for library. Thanks to duncan.coutts for the bug report.
1429 Resolves Issue #121.
1431 * Moved some Extra-Source-Files to Data-Files.
1433 * Moved tabFilter to Shared.
1435 * In pandoc.hs, removed optPreserveTabs; instead, tabstop of 0 means
1436 preserve tabs.
1438 * Minor code cleanup based on hlint suggestions.
1440pandoc (1.1)
1442 [ John MacFarlane ]
1444 * Main.hs:
1446 + Changed date on copyright message in Main.hs.
1447 + Have the '-v' option print syntax highlighting languages
1448 separated by commas, and wrapped in lines, instead of in five
1449 columns as before.
1451 * Added --jsmath option. Resolves Issue #68.
1453 + Added --jsmath option to Main.hs
1454 + Added JsMath to HTMLMathMethod in Text.Pandoc.Shared.
1455 + Handle math appropriately in HTML writer when JsMath selected.
1456 + Documented the option in README and man page.
1458 * Text.Pandoc.Shared: Changed compactify to use a better heuristic
1459 for tight and loose lists. Final Para is changed to Plain if all
1460 other list items *end* with a Plain block. Addresses Issue #99.
1462 * HTML reader:
1464 + Added colons to protocols in unsanitaryURI. Closes Issue #88.
1465 + HTML reader: Don't interpret contents of <pre> blocks as markdown.
1466 Added rawVerbatimBlock parser. Resolves Issue #94.
1468 * Markdown reader:
1470 + Allow URLs with spaces in them in links and references, but escape
1471 them as "%20".
1472 + Allow blank space at the end of horizontal rules.
1474 * RST reader: Modified 'unknownDirective' parser to handle comment
1475 blocks correctly, and added tests for comment blocks. Resolves Issue
1476 #86. Closes Debian Bug #500662.
1478 * HTML writer:
1480 + Include classes on tr elements in HTML output:
1481 "header", "odd", "even". This allows tables to be styled with
1482 lines in alternating colors. Resolves Issue #91.
1483 + Enclose all LaTeXMathML bits in <span class="LaTeX">.
1484 This prevents parts of the document that are not math from being
1485 interpreted as math by LaTeXMathML.js.
1487 * OpenDocument and ODT writers: Added support for HorizontalRule elements,
1488 which were formerly ignored. Resolves Issue #95.
1490 * Text.Pandoc.Shared: Modified wrappedTeX to eliminate the line break
1491 between a footnote and immediately following nonspace characters in
1492 LaTeX and ConTeXt output. (This gets interpreted as a space, which
1493 is not desired in cases like "text^[note]---".) Resolves Issue #93.
1495 * Windows installer: Don't require admin privileges to run
1496 installer. Modified pandoc-setup.iss, and changed modpath.iss to
1497 modify HKCU path if user lacks admin privileges. Also fixed case
1498 where oldpath is empty (previously this led to the new path
1499 beginning with a semicolon).
1501 * Updated INSTALL instructions for Arch packages and OS X install using
1502 cabal-install.
1504 * Removed the (now unneeded) debian directory.
1505 Removed empty Codec and System directories.
1507 * Moved odt-styles/ to data/. Removed unneeded variable in Makefile.
1509 * Modified Setup.hs so that the "test" target returns an error status
1510 when tests fail, and "build" returns a success status if
1511 the build succeeds. Resolves Issue #100.
1513 * Added BUGS to files in tarball.
1516pandoc (1.0.0.1)
1518 [ John MacFarlane ]
1520 * Removed spurious reference to pdf output format from pandoc(1) man page.
1522pandoc (1.0)
1524 [ Andrea Rossato ]
1526 * Added new OpenDocument writer.
1528 * Added support for SmallCaps inline element.
1530 * Added support for integrating pandoc with citeproc-hs.
1532 + Added Cite element to definition and writers.
1533 + Added Text.Pandoc.Biblio module
1534 + Note: This support is included only if the 'citeproc'
1535 Cabal configuration flag is set.
1537 * Made Pandoc data structure an instance of Typeable.
1538 Added new processPandoc and queryPandoc functions, to query
1539 or transform matching elements in a Pandoc structure.
1541 [ Peter Wang ]
1543 * Added new Texinfo writer.
1545 [ John MacFarlane ]
1547 * Changes to Texinfo writer:
1549 + No space between paragraph and following @verbatim (provides more
1550 pleasing appearance in text formats)
1551 + Blank line consistently after list environments.
1552 + Removed deVerb.
1553 + Use @code instead of @verb for inline code (this solves the character
1554 escaping problem for texi2dvi and texi2pdf).
1555 + Added news of Texinfo writer to README.
1556 + Added Texinfo to list of formats in man page, and removed extra 'groff'.
1557 + Added texi & texinfo extensions to Main.hs, and fixed bug in determining
1558 default output extension.
1559 + Modified disallowedInNode in Texinfo writer to correct list of disallowed characters.
1561 * Added tests for OpenDocument writer.
1563 * Added ODT writer (using zip-archive library to package output of
1564 OpenDocument writer). Added odt-styles directory with default ODT styles.
1566 * Added new mediawiki writer and tests.
1568 * Markdown reader: Added support for delimited code blocks, with optional
1569 syntax highlighting using highlighting-kate (if the 'highlighting'
1570 configuration option is selected).
1572 + Currently highlighting is supported only in the HTML writer.
1573 + Delimited code blocks can have attributes; using the language name as
1574 class triggers highlighting.
1575 + New Attributes parameter in CodeBlock structure.
1576 + --version now indicates whether syntax highlighting support is compiled
1577 in, and prints a list of supported languages
1579 * Removed debian directory. Pandoc is no longer a native debian package.
1581 * Changes to build process: pandoc can now be built from the repository
1582 using Cabal. No unix tools are needed (so, pandoc can be built on Windows
1583 without Cygwin).
1585 + Include shell scripts themselves in repo, rather than generating from wrappers.
1586 Removed wrappers directory and wrappers Makefile target.
1587 + Text/Pandoc/ASCIIMathML.hs, Text/Pandoc/DefaultHeaders.hs,
1588 and Text/Pandoc/Writers/S5.hs are no longer built in Makefile
1589 from templates in the templates/ directory. Instead, they use template
1590 haskell to read data at compile time from the relevant files in data/.
1591 Template haskell functions go in a new module, Text.Pandoc.TH.
1592 + man pages are now generated in Setup.hs hook, not by Makefile
1593 + Makefile 'tarball' target now calls Cabal's 'sdist'
1594 + Added "Extra-Source-Files" to pandoc.cabal, so sdist contains everything needed
1595 + Added "Build-Type" field to pandoc.cabal to avoid warning.
1596 + Added to "Extra-source-files" and "Extra-tmp-files" in pandoc.cabal,
1597 so 'sdist' and 'clean' will work properly.
1598 + Setup.hs now generates man pages in a postbuild hook.
1599 + Added dependency-checking to Setup.hs, so it only rebuilds things
1600 that need rebuilding.
1601 + Added 'library' and 'executable' configuration flags.
1602 Cabal can now be told to build just the library or just the executable.
1603 + CABALOPTS may now be specified with 'make' to pass Cabal configuration flags.
1604 For example: CABALOPTS=-fhighlighting make
1606 * Rewrote test suite so it doesn't depend on perl or unix tools.
1608 + Replaced old runtests.pl with a Haskell script RunTests.hs.
1609 + Added Diff.hs module to be used by RunTests.hs instead of unix 'diff'.
1610 + Added test hook to Setup.hs, so tests may be run from cabal.
1611 + Changed Makefile's 'test' target to run tests via cabal.
1612 + Removed old generate.sh.
1613 + Since we no longer have 'sed' to filter out raw HTML sections
1614 from the docbook writer test, or raw LaTeX sections from the
1615 context writer test, we now just include these sections.
1616 They can be taken out if it is necessary to process the files.
1617 + Updated latex and context writer tests to remove extra spaces
1618 after '\\item'
1619 + Added a markdown table reader test.
1620 + Added markdown-reader-more.txt to test suite, for additional test cases
1621 for raw ConTeXt environments and more.
1623 * Compatibility fixes for CPP, Cabal, and haddock:
1625 + Use CPP in "Extensions" field in pandoc.cabal.
1626 + Removed use of backslash string continuations in source files.
1628 * Removed pandoc.cabal.ghc66. We now require Cabal >= 1.2, GHC >= 6.8,
1629 base >= 3.
1631 * Require parsec < 3.
1632 The compatibility module in parsec 3.0.0 gives far worse performance than
1633 parsec 2.1. Eventually pandoc will be upgraded to use the new bytestring
1634 version of parsec, and then we'll go to parsec 3.0.0.
1636 * Removed Text.Regex dependencies by rewriting using plain Haskell
1637 (Text.Pandoc.Writers.RTF, Text.Pandoc.Writers.HTML, Main.hs)
1639 * Moved Text.Pandoc.Writers.DefaultHeaders -> Text.Pandoc.DefaultHeaders.
1641 * Makefile:
1643 + Added 'configure' as dependency of 'uninstall-all'.
1644 (It uses the Cabal build program.)
1645 + Makefile: only use --with-hc-pkg if GHC_PKG is defined.
1646 Note that Cabal will automatically choose the ghc-pkg appropriate
1647 for the compiler selected, so normally specifying GHC by itself
1648 is sufficient.
1650 * Removed Text.Pandoc.UTF8 module; instead, depend on utf8-string and use
1651 its IO and conversion functions.
1653 * Added -Wall to ghc-options in pandoc.cabal. Cleaned up modules so that
1654 everything is -Wall clean.
1656 + Added pragma to HTML writer to avoid deprecation warning for use of "start" attribute.
1657 + Added pragma to Text/Pandoc/Shared.hs to get rid of "orphan instance" warnings.
1658 (These are caused by the Lift instance for ByteString.)
1660 * Changed the comment used to replace unsafe HTML if sanitize-html option
1661 selected.
1663 * Made -c/--css option repeatable on the command line (like -H, -A, -B).
1665 * Moved XML-formatting functions to new unexported module Text.Pandoc.XML.
1667 * Escape '\160' as "&#160;", not "&nbsp;" in XML.
1668 "nbsp" isn't a predefined XML entity.
1670 * Fixed bug in RST reader, which would choke on: "p. one\ntwo\n".
1671 Added some try's in ordered list parsers.
1673 * Man writer: don't escape " as \".
1675 * Allow newline before URL in markdown link references. Resolves Issue #81.
1676 Added tests for this issue in new "markdown-reader-more" tests.
1677 Changed RunTests.hs to run these tests.
1679 * Support for display math. Resolves Issue #47.
1681 + Added a DisplayMath/InlineMath selector to Math inlines.
1682 + Markdown parser yields DisplayMath for $$...$$.
1683 + LaTeX parser yields DisplayMath when appropriate. Removed
1684 mathBlock parsers, since the same effect is achieved by the math
1685 inline parsers, now that they handle display math.
1686 + Writers handle DisplayMath as appropriate for the format.
1687 + Modified tests accordingly; added new tests for display math.
1689 * Use LaTeXMathML instead of ASCIIMathML. LaTeXMathML is closer
1690 to LaTeX in its display of math, and supports many non-math LaTeX environments.
1692 + Changed -m option to use LaTeXMathML rather than ASCIIMathML.
1693 + Modified HTML writer to print raw TeX when LaTeXMathML is
1694 being used instead of suppressing it.
1695 + Removed ASCIIMathML files from data/ and added LaTeXMathML.
1696 + Replaced ASCIIMathML with LaTeXMathML in source files.
1697 + Modified README and pandoc man page source.
1698 + Added --latexmathml option (kept --asciimathml as a synonym
1699 for backwards compatibility)
1701 * Markdown reader: Parse setext headers before atx headers.
1702 Test case:
1703 # hi
1704 ====
1705 parsed by Markdown.pl as an H1 header with contents "# hi".
1707 * Markdown reader: Treat "mixed" lists the same way as Markdown.pl does.
1708 The marker on the first list item determines the type of the whole
1709 list. Thus, a list like
1710 1. one
1711 - two
1712 * three
1713 gets parsed as a single ordered list. (Previous versions of pandoc
1714 treated this as an ordered list with an unordered sublist.)
1716 * Markdown smart typography:
1718 + Em dashes no longer eat surrounding whitespace. Resolves Issue #69.
1719 + Use nonbreaking spaces after known abbreviations in markdown parser.
1720 Thus, for example, "Mr. Brown" comes out as "Mr.~Brown" in LaTeX, and does
1721 not produce a sentence-separating space. Resolves Issue #75.
1723 * Markdown writer: Print unicode \160 literally, rather than as &nbsp;.
1725 * Treat '\ ' in (extended) markdown as nonbreaking space.
1726 Print nonbreaking space appropriately in each writer (e.g. ~ in LaTeX).
1728 * The '--sanitize-html' option now examines URIs in markdown links
1729 and images, and in HTML href and src attributes. If the URI scheme
1730 is not on a whitelist of safe schemes, it is rejected. The main point
1731 is to prevent cross-site scripting attacks using 'javascript:' URIs.
1732 See http://www.mail-archive.com/markdown-discuss@six.pairlist.net/msg01186.html
1733 and http://ha.ckers.org/xss.html. Resolves Issue #62.
1735 * HTML writer:
1737 + Override Text.XHtml's stringToHtml function,
1738 so that characters below 0xff are not converted to numerical entity
1739 references. Also convert '\160' to "&nbsp;". This should aid readability
1740 and editability of the HTML source. It does presuppose that the HTML
1741 will be served as UTF-8.
1742 + In code blocks, change leading newlines to <br /> tags.
1743 (Some browsers ignore them.) Resolves Issue #71.
1744 See http://six.pairlist.net/pipermail/markdown-discuss/2008-May/001297.html
1745 + Use style attributes rather than css classes for strikethrough
1746 and ordered list styles. This works better when fragments, rather than
1747 standalone documents, are generated.
1749 * HTML reader: Count anything that isn't a known block (HTML) tag as an
1750 inline tag (rather than the other way around). Added "html", "head", and
1751 "body" to list of block tags. Resolves Issue #66, allowing
1752 <lj> to count as an inline tag.
1754 * RTF writer: Fixed bug. Extra spaces were being printed after emphasized,
1755 boldface, and other inline elements. Resolves Issue #64.
1757 * LaTeX reader: improvements in raw LaTeX parsing.
1759 + "loose punctuation" (like {}) parsed as Space
1760 + Para elements must contain more than Str "" and Space elements
1761 + Added parser for "\ignore" command used in literate haskell.
1762 + Reworked unknownCommand and rawLaTeXInline: when not in "parse raw"
1763 mode, these parsers simply strip off the command part and allow
1764 the arguments to be parsed normally. So, for example,
1765 \blorg{\emph{hi}} will be parsed as Emph "hi" rather than
1766 Str "{\\emph{hi}}".
1767 + Parse lhs "code" environments as verbatim.
1768 Refactored parsers for verbatim environments.
1769 + Removed specialEnvironment parser.
1770 + parse '{}', if present, after \textless, \textgreater,
1771 \textbar, \textbackslash, \ldots.
1772 + Parse unescaped special characters verbatim rather than
1773 changing them to spaces. This way arguments of unknown
1774 commands will appear in braces.
1776 * Parse raw ConTeXt environments as TeX in markdown reader.
1777 Resolves Issue #73.
1779 * Moved BlockWrapper and wrappedBlocksToDoc from ConTeXt writer to Shared.
1781 * Made some structural changes to parsing of raw LaTeX environments.
1782 Previously there was a special block parser for LaTeX environments.
1783 It returned a Para element containing the raw TeX inline. This has
1784 been removed, and the raw LaTeX environment parser is now used in the
1785 rawLaTeXInline parser. The effect is exactly the same, except that we
1786 can now handle consecutive LaTeX and ConTeXt environments not separated
1787 by spaces. This new flexibility is required by the example in
1788 Issue #73:
1790 \placeformula \startformula
1791 L_{1} = L_{2}
1792 \stopformula
1794 API change: The LaTeX reader now exports rawLaTeXEnvironment' (which
1795 returns a string) rather than rawLaTeXEnvironment (which returns a block
1796 element). This is more likely to be useful in other applications.
1798 * Use \textsubscr instead of \textsubscript for LaTeX subscript macro.
1799 \textsubscript conflicts with a definition in the memoir class.
1800 Resolves Issue #65.
1802 * Removed unneeded space after "\\item" in LaTeX and ConTeXt output.
1804 * Added amsmath package to default LaTeX header. Resolves Issue #48.
1806 * Added \setupitemize[autointro] to ConTeXt header, to prevent orphaned
1807 list introduction lines.
1809 * Changed Float to Double in definition of Table element.
1810 (Double is more efficient in GHC.)
1812 * Fixed bug in Markdown parser: regular $s triggering math mode.
1813 For example: "shoes ($20) and socks ($5)."
1814 The fix consists in two new restrictions:
1816 + the $ that ends a math span may not be directly followed by a digit.
1817 + no blank lines may be included within a math span.
1819 Thanks to Joseph Reagle for noticing the bug.
1821 * Use Data.List's 'intercalate' instead of custom 'joinWithSep'.
1822 Removed 'joinWithSep' from Text.Pandoc.Shared.
1824 * Updated README and man pages. Acknowledge contributors in README.
1825 Added paragraph to README about producing S5 with separate CSS/javascript.
1827 * Updated INSTALL to reflect new build system (including configuration
1828 options) and document new dependencies. Added note to INSTALL that
1829 Cabal >= 1.2 is required for build. Resolves Issue #74.
1831 * Fixed some haddock documentation errors.
1833 * Small fix to markdown2pdf man page: only input needs to be piped through iconv.
1835pandoc (0.46) unstable; urgency=low
1837 [ John MacFarlane ]
1839 * Made -H, -A, and -B options cumulative: if they are specified
1840 multiple times, multiple files will be included.
1842 * Added optional HTML sanitization using a whitelist.
1843 When this option is specified (--sanitize-html on the command line),
1844 unsafe HTML tags will be replaced by HTML comments, and unsafe HTML
1845 attributes will be removed. This option should be especially useful
1846 for those who want to use pandoc libraries in web applications, where
1847 users will provide the input.
1849 + Main.hs: Added --sanitize-html option.
1851 + Text.Pandoc.Shared: Added stateSanitizeHTML to ParserState.
1853 + Text.Pandoc.Readers.HTML:
1854 - Added whitelists of sanitaryTags and sanitaryAttributes.
1855 - Added parsers to check these lists (and state) to see if a given
1856 tag or attribute should be counted unsafe.
1857 - Modified anyHtmlTag and anyHtmlEndTag to replace unsafe tags
1858 with comments.
1859 - Modified htmlAttribute to remove unsafe attributes.
1860 - Modified htmlScript and htmlStyle to remove these elements if
1861 unsafe.
1863 + Modified README and man pages to document new option.
1865 * Improved handling of email addresses in markdown and reStructuredText.
1866 Consolidated uri and email address parsers. (Resolves Issue #37.)
1868 + New emailAddress and uri parsers in Text.Pandoc.Shared.
1869 - uri parser uses parseURI from Network.URI.
1870 - emailAddress parser properly handles email addresses with periods
1871 in them.
1873 + Removed uri and emailAddress parsers from Text.Pandoc.Readers.RST
1874 and Text.Pandoc.Readers.Markdown.
1876 * Markdown reader:
1878 + Fixed emph parser so that "*hi **there***" is parsed as a Strong
1879 nested in an Emph. (A '*' is only recognized as the end of the
1880 emphasis if it's not the beginning of a strong emphasis.)
1882 + Moved blockQuote parser before list parsers for performance.
1884 + Modified 'source' parser to allow backslash-escapes in URLs.
1885 So, for example, [my](/url\(1\)) yields a link to /url(1).
1886 Resolves Issue #34.
1888 + Disallowed links within links. (Resolves Issue #35.)
1889 - Replaced inlinesInBalanced with inlinesInBalancedBrackets, which
1890 instead of hard-coding the inline parser takes an inline parser
1891 as a parameter.
1892 - Modified reference and inlineNote to use inlinesInBalancedBrackets.
1893 - Removed unneeded inlineString function.
1894 - Added inlineNonLink parser, which is now used in the definition of
1895 reference.
1896 - Added inlineParsers list and redefined inline and inlineNonLink parsers
1897 in terms of it.
1898 - Added failIfLink parser.
1900 + Better handling of parentheses in URLs and quotation marks in titles.
1901 - 'source' parser first tries to parse URL with balanced parentheses;
1902 if that doesn't work, it tries to parse everything beginning with
1903 '(' and ending with ')'.
1904 - source parser now uses an auxiliary function source'.
1905 - linkTitle parser simplified and improved, under assumption that it
1906 will be called in context of source'.
1908 + Make 'block' conditional on strictness state, instead of using
1909 failIfStrict in block parsers. Use a different ordering of parsers
1910 in strict mode (raw HTML block before paragraph) for performance.
1911 In non-strict mode use rawHtmlBlocks instead of htmlBlock.
1912 Simplified htmlBlock, since we know it's only called in strict
1913 mode.
1915 + Improved handling of raw HTML. (Resolves Issue #36.)
1916 - Tags that can be either block or inline (e.g. <ins>) should
1917 be treated as block when appropriate and as inline when
1918 appropriate. Thus, for example,
1919 <ins>hi</ins>
1920 should be treated as a paragraph with inline <ins> tags, while
1921 <ins>
1922 hi
1923 </ins>
1924 should be treated as a paragraph within <ins> tags.
1925 - Moved htmlBlock after para in list of block parsers. This ensures
1926 that tags that can be either block or inline get parsed as inline
1927 when appropriate.
1928 - Modified rawHtmlInline' so that block elements aren't treated as
1929 inline.
1930 - Modified para parser so that paragraphs containing only HTML tags and
1931 blank space are not allowed. Treat these as raw HTML blocks instead.
1933 + Fixed bug wherein HTML preceding a code block could cause it to
1934 be parsed as a paragraph. The problem is that the HTML parser
1935 used to eat all blank space after an HTML block, including the
1936 indentation of the code block. (Resolves Issue #39.)
1937 - In Text.Pandoc.Readers.HTML, removed parsing of following space
1938 from rawHtmlBlock.
1939 - In Text.Pandoc.Readers.Markdown, modified rawHtmlBlocks so that
1940 indentation is eaten *only* on the first line after the HTML
1941 block. This means that in
1942 <div>
1943 foo
1944 <div>
1945 the foo won't be treated as a code block, but in
1946 <div>
1948 foo
1950 </div>
1951 it will. This seems the right approach for least surprise.
1953 * RST reader:
1955 + Fixed bug in parsing explicit links (resolves Issue #44).
1956 The problem was that we were looking for inlines until a '<' character
1957 signaled the start of the URL; so, if you hit a reference-style link,
1958 it would keep looking til the end of the document. Fix: change
1959 inline => (notFollowedBy (char '`') >> inline). Note that this won't
1960 allow code inlines in links, but these aren't allowed in resT anyway.
1962 + Cleaned up parsing of reference names in key blocks and links.
1963 Allow nonquoted reference links to contain isolated '.', '-', '_', so
1964 so that strings like 'a_b_' count as links.
1966 + Removed unnecessary check for following link in str.
1967 This is unnecessary now that link is above str in the definition of
1968 'inline'.
1970 * HTML reader:
1972 + Modified rawHtmlBlock so it parses </html> and </body> tags.
1973 This allows these tags to be handled correctly in Markdown.
1974 HTML reader now uses rawHtmlBlock', which excludes </html> and </body>,
1975 since these are handled in parseHtml. (Resolves Issue #38.)
1977 + Fixed bug (emph parser was looking for <IT> tag, not <I>).
1979 + Don't interpret contents of style tags as markdown.
1980 (Resolves Issue #40.)
1981 - Added htmlStyle, analagous to htmlScript.
1982 - Use htmlStyle in htmlBlockElement and rawHtmlInline.
1983 - Moved "script" from the list of tags that can be either block or
1984 inline to the list of block tags.
1986 + Modified rawHtmlBlock to use anyHtmlBlockTag instead of anyHtmlTag
1987 and anyHtmlEndTag. This fixes a bug in markdown parsing, where
1988 inline tags would be included in raw HTML blocks.
1990 + Modified anyHtmlBlockTag to test for (not inline) rather than
1991 directly for block. This allows us to handle e.g. docbook in
1992 the markdown reader.
1994 * LaTeX reader: Properly recognize --parse-raw in rawLaTeXInline.
1995 Updated LaTeX reader test to use --parse-raw.
1997 * HTML writer:
1999 + Modified rules for automatic HTML header identifiers to
2000 ensure that identifiers begin with an alphabetic character.
2001 The new rules are described in README. (Resolves Issue #33.)
2003 + Changed handling of titles in HTML writer so you don't get
2004 "titleprefix - " followed by nothing.
2006 * ConTeXt writer: Use wrappers around Doc elements to ensure proper
2007 spacing. Each block element is wrapped with either Pad or Reg.
2008 Pad'ed elements are guaranteed to have a blank line in between.
2010 * RST writer:
2012 + Refactored RST writer to use a record instead of a tuple for state,
2013 and to include options in state so it doesn't need to be passed as
2014 a parameter.
2016 + Use an interpreted text role to render math in restructuredText.
2017 See http://www.american.edu/econ/itex2mml/mathhack.rst for the
2018 strategy.
2020 [ Recai Oktaş ]
2022 * Debian packaging changes:
2024 + Remove the empty 'include' directory in -dev package, which lintian
2025 complains about.
2026 + Bump Standarts-Version to 3.7.3.
2027 + Use new 'Homepage:' field to specify the upstream URL on suggestion of
2028 lintian.
2030 -- Recai Oktaş <roktas@debian.org> Tue, 08 Jan 2008 05:13:31 +0200
2032pandoc (0.45) unstable; urgency=low
2034 [ John MacFarlane ]
2036 * Simplified parsing of reference keys and notes in markdown and RST
2037 readers: The Reference data structure from Text.Pandoc.Shared is no
2038 longer needed, since referenceKey and noteBlock parses return strings
2039 (as many blank lines as were occupied by the key or note) and update
2040 state themselves. getPosition and setPosition are now used to ensure
2041 that error messages will give the correct line number. This yields
2042 cleaner (and slightly faster) code, with more accurate parsing error
2043 messages.
2045 * Added new Math inline element:
2047 + Markdown and LaTeX readers now convert TeX math into Math elements,
2048 not TeX.
2049 + This allows math to be treated differently from raw TeX in output.
2050 TeX elements are no longer printed in output formats other than
2051 Markdown, LaTeX, and ConTeXt. But Math elements are always printed.
2053 * New default handling of math in writers:
2055 + New module Text.Pandoc.Readers.TeXMath exports readTeXMath, which
2056 parses raw TeX math and outputs a string of Pandoc inlines that
2057 tries to render it as far as possible using unicode characters,
2058 lapsing into literal TeX when needed.
2059 + readTeXMath is now used for default HTML output in HTML, S5, RTF,
2060 and Docbook, if no other method for displaying math in HTML is
2061 specified. Enclosing $'s are no longer printed by default.
2062 + By default, math is put inside <span class="math">. This way it can be
2063 distinguished from the surrounding text, e.g. put in a different
2064 font.
2066 * New --gladtex and --mimetex options for display of math in HTML:
2068 + If --gladtex is specified, math is output between <eq> tags, so
2069 it can be processed by gladTeX.
2070 + If --mimetex is specified, math is put in <img> tags with a link
2071 to the mimetex CGI script (or any other script that takes TeX math
2072 as input and outputs an image). The URL of the script may be
2073 specified, but defaults to /cgi-bin/mimetex.cgi.
2074 + HTMLMathMethod structure in WriterOptions keeps track of how to
2075 display math in HTML output.
2076 + Updated README with a description of the four options for displaying
2077 math in HTML.
2079 * HTML reader:
2081 + Fixed bug: parser for minimized attributes should not swallow
2082 trailing spaces.
2083 + Simplified HTML attribute parsing.
2084 + Changed parsing of code blocks in HTML reader: <code> tag is no
2085 longer needed. <pre> suffices. All HTML tags in the code block
2086 (e.g. for syntax highlighting) are skipped, because they are not
2087 portable to other output formats. A <code>...</code> block not
2088 surrounded by <pre> now counts as inline HTML, not a code block.
2089 + Remove just one leading and one trailing newline from contents of
2090 <pre>...</pre> in codeBlock parser.
2092 * Markdown reader:
2094 + Removed support for box-style block quotes.
2095 + Require space before title in links and references.
2096 This fixes a bug in parsing URLs like http://silly/url(withparen).
2097 + Improved and simplified setextHeader parser.
2098 + Fixed logic in smart quote parsing, adding some needed 'try'
2099 statements.
2100 + Fixed smart quote parsing so that unicode characters 8216 and 8217
2101 are recognized as single quotes, and 8220 and 8221 as double quotes.
2103 * RST reader:
2105 + Fixed bug in parsing of code blocks. Previously a full tab indent
2106 was required, but RST allows code to be indented any amount.
2107 Resolves Issue #27.
2108 + Allow field lists to be indented.
2109 + Parse the contents of field lists instead of treating as a raw string.
2110 + Represent field lists as definition lists instead of blockquotes.
2111 + Fixed bug in which metadata would be overridden if the document
2112 contained multiple field lists.
2113 + Parse fields associated with '.. image::' blocks, and use 'alt'
2114 field, if given, for image alt and title attributes.
2116 * LaTeX reader:
2118 + Modified specialChar so that '"' characters are parsed.
2119 + Fixed a bug in parsing of \[ \] math blocks (thanks to Mark Kalderon).
2121 * HTML writer:
2123 + Changes in handling of math (see above).
2124 + Don't produce HTML for table of contents if there are
2125 no headers. (This would be an empty list, which is invalid XHTML.)
2127 * Markdown writer:
2129 + Don't print title attribute if title is empty. (This differs from
2130 the behavior of Markdown.pl, and agrees with PHP Markdown. But John
2131 Gruber has indicated that he prefers this behavior.) Adjusted test
2132 suite accordingly.
2133 + Fixed incorrect line wrapping in paragraphs including hard line
2134 breaks. Resolves Issue #25.
2135 + Fixed bug in markdown writer: If an ordered list item began with
2136 a marker greater than 3 characters in width, and the item took more
2137 than one line, it would appear on the line after the list marker,
2138 e.g.:
2140 (12)
2141 My list item.
2142 Multiline.
2144 Now it works as follows:
2146 (12) My list item.
2147 Multiline.
2149 * RST writer
2151 + Fixed bug in RST writer's handling of ordered lists. Previously,
2152 list items with multiple lines would not always line up with
2153 single-line list items. Now, list items are nested the length of
2154 the list marker + 1. This looks better and ensures that list items
2155 all line up. (Note that list markers are padded to the length of
2156 the longest list marker in the series.)
2157 + Use 3-space indent for unordered lists.
2158 + If label for a link reference contains a colon, surround it by `
2159 signs so it won't be interpreted as the end of the link label.
2161 * LaTeX writer:
2163 + Cleaner output for footnotes. Footnotes now always begin on a new
2164 line, and the final } is on a line by itself only when it needs to
2165 be (i.e. only when the note ends with a Verbatim environment).
2166 + Added writer options to state, so state doesn't need to be passed as
2167 a parameter.
2168 + Text wrapping now provided, using wrapTeXIfNeeded.
2170 * ConTeXt writer: many improvements for more idiomatic ConTeXt output
2171 (thanks to Idris Samawi Hamid for suggestions).
2173 + PrettyPrint module now used for output.
2174 + Writer options are now in state, so they don't have to be passed as
2175 a parameter.
2176 + Text wrapping now provided, using wrapTeXIfNeeded.
2177 + Better treatment of footnotes: footnotes are always on lines by
2178 themselves, and the final } is on a line by itself only when
2179 it needs to be (after \stoptyping).
2180 + Use \subject, \subsubject, ... or \section, \subsection, ... for headings,
2181 depending on whether --number-sections option is selected.
2182 + Extra blank line inserted after \stopitemize
2183 + Use new, "official" definition of blockquote environment. Also, use
2184 blank line after \startblockquote to balance blank line at the end.
2185 + Both itemized and enumerated lists are now generated using
2186 \start-stopitemize, with appropriate options. Removed definitions
2187 of ltxenum and ltxitem, which are no longer needed. Provided
2188 defaults for itemized lists in the preamble. State keeps track of
2189 ordered list level, so that when default numbering is specified,
2190 the appropriate scheme can be used.
2191 + Changed \useurl to \useURL.
2192 + Changed link color from red to blue.
2193 + Use \subsubsubsubsection etc., since these are supported
2194 (up to at least sub x 5).
2196 * Text.Pandoc.Shared:
2198 + Save and restore position in parseFromString, so that accurate
2199 error messages can be given.
2200 + Improved efficiency of romanNumeral parser.
2201 + Added wrappedTeX and wrapTeXIfNeeded functions. These ensure
2202 that footnotes occur on lines by themselves (to make them
2203 easier to see and move) and do not screw up line wrapping.
2205 * Text.Pandoc.UTF8: modified fromUTF8 to strip out the BOM
2206 if present. Windows Notepad and other applications insert a
2207 BOM at the beginning of a UTF8 file.
2209 * Main.hs (tabFilter): Treat '\r' at end of line as newline (in
2210 addition to "\r\n" and '\n').
2212 * Added a writer option for wrapped text and a command-line option
2213 '--no-wrap', which disables text wrapping and minimizes whitespace
2214 in HTML. (Resolves Issue #26.)
2216 + Added support for '--no-wrap' to Main.hs.
2217 + Added wrapIfNeeded function to Text.Pandoc.Shared.
2218 + Use wrapIfNeeded instead of wrapped in the RST, Man, Docbook, and
2219 Markdown writers.
2220 + Added render and renderFragment helpers to HTML writer.
2222 * Modified html2markdown to run tidy only if the HTML cannot be
2223 parsed. Previously html2markdown piped all input through tidy
2224 before passing it to pandoc. This caused problems on certain pages
2225 (e.g. http://daringfireball.com/markdown) which have well-formed
2226 XHTML that causes tidy to choke. The solution is to pipe through
2227 tidy only if pandoc cannot parse the input by itself. This means
2228 that a temp file is now always used, even when input comes from a
2229 local file or standard input.
2231 * Removed 'version' constant from Main.hs; added 'pandocVersion' to
2232 Text.Pandoc library.
2234 * pandoc.cabal:
2236 + Modified to work with GHC 6.8 and Cabal configurations. (For GHC
2237 6.8, pretty and containers must be added to Build-Depends, and it
2238 is desirable to use the -O2 compiler option.) Cabal configurations
2239 allows one to select options depending on the compiler version.
2240 For GHC 6.6, the splitBase option can be disabled.
2241 + pandoc.cabal.ghc66 is provided for users with older versions of
2242 Cabal, which do not support configurations.
2243 + Use Ghc-Prof-Options to ensure that '-auto-all' is used when
2244 '--enable-(executable|library)-profiling' is specified. Updated
2245 PROFILING instructions accordingly.
2247 * Makefile:
2249 + Makefile now checks GHC version. If GHC is 6.6, pandoc.cabal.ghc66
2250 is copied to pandoc.cabal, and the old pandoc.cabal is copied
2251 to pandoc.cabal.orig. Otherwise, pandoc.cabal is copied to
2252 pandoc.cabal.orig but otherwise unmodified. This way, the Makefile
2253 will work properly with either GHC 6.6 or 6.8.
2254 + Changed BUILDCONF to point to dist/setup-config, not .setup-config.
2255 This is where current versions of Cabal put it.
2256 + Added $(BUILDCMD) target, so setup doesn't get compiled every time.
2257 + Removed dependency of templates on ./templates, which is circular
2258 now that templates is a subdirectory of the top-level.
2260 * MacPorts Portfile:
2262 + Modified to install the pandoc library in addition to programs.
2263 + Installation must be done manually rather than using Makefile's
2264 install-all.
2265 + Note that the library must be registered in the activate phase,
2266 after the library files have been copied out of the destroot.
2267 Cabal generates a 'register.sh' script that will do this.
2269 * debian/control: Added libghc6-network-dev, libghc6-xhtml-dev, and
2270 libghc6-mtl-dev as dependencies for libghc6-pandoc-dev.
2271 Closes: #445235
2273 * debian/rules: Converted to UTF-8.
2275 * Changed pandoc home page to http://johnmacfarlane.net/pandoc/.
2277 * Updated ASCIIMathML.js to latest version.
2279 * Directory structure:
2281 + Moved everything from src into the top-level directory.
2282 + Changed references to source directory in Makefile and
2283 pandoc.cabal.*.
2284 + Moved ASCIIMathML.js, headers, and ui into templates directory.
2285 + Modified fillTemplates.pl to reflect new paths.
2287 [ Recai Oktaş ]
2289 * Makefile: Fixed the issue of having two copies of the library
2290 documentation under some usage scenarios.
2292 * Replaced 'ghc' with '$(GHC)' in Makefile, and made GHC
2293 and GHC_PKG configurable through the environment, to support
2294 unusual ghc installations. For example:
2295 GHC=/opt/ghc/bin/ghc GHC_PKG=/opt/ghc/bin/ghc-pkg make
2297 -- Recai Oktaş <roktas@debian.org> Sun, 07 Oct 2007 20:51:43 +0300
2299pandoc (0.44) unstable; urgency=low
2301 [ John MacFarlane ]
2303 * Fixed bug in HTML writer: when --toc was used, anchors were put around
2304 headers, which is invalid XHTML (block content within inline element).
2305 Now the anchors are put inside the header tags. Resolves Issue #23.
2307 * Added xmlns attribute to html element in html writer tests.
2308 This attribute is added by more recent versions of the
2309 xhtml library (>= 3000), and is required for valid XHTML.
2311 [ Recai Oktaş ]
2313 * On configure, compile 'Setup.hs' to 'setup' and use 'setup' as the build
2314 command instead of 'runhaskell', which, on some platforms (such as s390,
2315 alpha, m68k), throws the following error:
2317 runhaskell Setup.hs configure --prefix=/usr
2318 ghc-6.6.1: not built for interactive use
2320 This causes a serious FTBFS bug. Closes: #440668.
2322 -- Recai Oktaş <roktas@debian.org> Mon, 03 Sep 2007 18:24:02 +0300
2324pandoc (0.43) unstable; urgency=low
2326 [ John MacFarlane ]
2328 * The focus of this release is performance. The markdown parser
2329 is about five times faster than in 0.42, based on benchmarks
2330 with the TextMate manual.
2332 * Main.hs: Replaced CRFilter and tabFilter with single function
2333 tabFilter, which operates on the whole string rather than breaking
2334 it into lines, and handles dos-style line-endings as well as tabs.
2336 * Added separate LaTeX reader and native reader tests; removed
2337 round-trip tests.
2339 * Text.Pandoc.Shared:
2341 + Removed tabsToSpaces and tabsInLine (they were used only in Main.hs.)
2342 + General code cleanup (to elimante warnings when compiling with -Wall.)
2343 + Added 'wrapped' function, which helps wrap text into paragraphs,
2344 using the prettyprinting library.
2345 + Rewrote charsInBalanced and charsInBalanced'.
2346 - Documented restriction: open and close must be distinct characters.
2347 - Rearranged options for greater efficiency.
2348 - Bug fix: Changed inner call to charsInBalanced inside
2349 charsInBalanced' to charsInBalanced'.
2350 + anyLine now requires that the line end with a newline (not eof).
2351 This is a harmless assumption, since we always add newlines to the
2352 end of a block before parsing with anyLine, and it yields a 10% speed
2353 boost.
2354 + Removed unnecessary 'try' in anyLine.
2355 + Removed unneeded 'try' from romanNumeral parser.
2356 + Use notFollowedBy instead of notFollowedBy' in charsInBalanced.
2357 + Removed unneeded 'try' in parseFromString.
2358 + Removed unneeded 'try' from stringAnyCase. (Now it behaves
2359 like 'string'.)
2360 + Changed definition of 'enclosed' in Text.Pandoc.Shared so that
2361 'try' is not automatically applied to the 'end' parser. Added
2362 'try' in calls to 'enclosed' where needed. Slight speed increase.
2364 * Writers:
2366 + Replaced individual wrapping routines in RST, Man, and Markdown
2367 writers with 'wrapped' from Text.Pandoc.Shared.
2368 + Rewrote LaTeX writer to use the prettyprinting library,
2369 so we get word wrapping, etc.
2370 + Modified latex writer tests for new latex writer using prettyprinter.
2371 + Fixed bug in LaTeX writer: autolinks would not cause
2372 '\usepackage{url}' to be put in the document header. Also, changes
2373 to state in enumerated list items would be overwritten.
2374 + In Markdown writer, escape paragraphs that begin with ordered list
2375 markers, so they don't get interpreted as ordered lists.
2377 * Text.Pandoc.Reades.LaTeX:
2379 + Fixed bug in LaTeX reader, which wrongly assumed that the roman
2380 numeral after "enum" in "setcounter" would consist entirely of
2381 "i"s. 'enumiv' is legitimate.
2382 + LaTeX command and environment names can't contain numbers.
2383 + Rearranged order of parsers in inline for slight speed improvement.
2384 + Added '`' to special characters and 'unescapedChar'.
2386 * Text.Pandoc.Readers.RST:
2388 + Removed unneeded try's in RST reader; also minor code cleanup.
2389 + Removed tabchar.
2390 + Rearranged parsers in inline (doubled speed).
2392 * Text.Pandoc.Readers.Markdown:
2394 + Skip notes parsing if running in strict mode. (This yields a nice
2395 speed improvement in strict mode.)
2396 + Simplify autolink parsing code, using Network.URI to test for
2397 URIs. Added dependency on network library to debian/control and
2398 pandoc.cabal.
2399 + More perspicuous definition of nonindentSpaces.
2400 + Removed unneeded 'try' in 'rawLine'.
2401 + Combined linebreak and whitespace into a new whitespace parser, to
2402 avoid unnecessary reparsing of space characters.
2403 + Removed unnecessary 'try' in 'codeBlock', 'ellipses', 'noteMarker',
2404 'multilineRow', 'dashedLine', 'rawHtmlBlocks'.
2405 + Use lookAhead in parsers for setext headers and definition lists
2406 to see if the next line begins appropriately; if not, don't waste
2407 any more time parsing.
2408 + Don't require blank lines after code block. (It's sufficient to
2409 end code block with a nonindented line.)
2410 + Changed definition of 'emph': italics with '_' must not
2411 be followed by an alphanumeric character. This is to help
2412 prevent interpretation of e.g. [LC_TYPE]: my_type as
2413 '[LC<em>TYPE]:my</em>type'.
2414 + Improved Markdown.pl-compatibility in referenceLink: the two parts
2415 of a reference-style link may be separated by one space, but not
2416 more... [a] [link], [not] [a link].
2417 + Fixed markdown inline code parsing so it better accords with
2418 Markdown.pl: the marker for the end of the code section is a clump
2419 of the same number of `'s with which the section began, followed
2420 by a non-` character. So, for example,
2421 ` h ``` i ` -> <code>h ``` i</code>.
2422 + Split 'title' into 'linkTitle' and 'referenceTitle', since the
2423 rules are slightly different.
2424 + Rewrote 'para' for greater efficiency.
2425 + Rewrote link parsers for greater efficiency.
2426 + Removed redundant 'referenceLink' in definition of inline (it's
2427 already in 'link').
2428 + Refactored escapeChar so it doesn't need 'try'.
2429 + Refactored hrule for performance in Markdown reader.
2430 + More intelligent rearranging of 'inline' so that most frequently
2431 used parsers are tried first.
2432 + Removed tabchar parser, as whitespace handles tabs anyway.
2434 * Text.Pandoc.CharacterReferences:
2436 + Refactored.
2437 + Removed unnecessary 'try's for a speed improvement.
2438 + Removed unnecessary '&' and ';' from the entity table.
2440 * Build process:
2442 + Makefile: Get VERSION from cabal file, not Main.hs.
2443 + Modified MacPorts Portfile:
2444 - Depend on haddock
2445 - Build and install libraries and library documentation in
2446 addition to pandoc executable
2447 - Added template item for md5 sum in Portfile.in.
2448 - Incorporated changes from MacPorts repository (r28278).
2449 + FreeBSD port: Don't try to generate distinfo in Makefile.
2450 It can be made using 'make makesum' in FreeBSD.
2451 + Make both freebsd and macports targets depend on tarball.
2453 * Website and documentation:
2455 + Updated INSTALL instructions.
2456 + Added pandocwiki demo to website.
2457 + Removed local references to Portfile, since pandoc is now in the
2458 MacPorts repository.
2460 -- Recai Oktaş <roktas@debian.org> Sun, 02 Sep 2007 15:50:11 +0300
2462pandoc (0.42) unstable; urgency=low
2464 [ John MacFarlane ]
2466 * Main.hs: Use utf8 conversion on the extra files loaded with
2467 the -H, -C, -B, and -A options. This fixes problems with unicode
2468 characters in these files.
2470 * Exposed Text.Pandoc.ASCIIMathML, since it is imported in
2471 Text.Pandoc.Readers.HTML and without it we get a linking error when
2472 using the library.
2474 * Markdown reader:
2476 + Added new rule for enhanced markdown ordered lists: if the list
2477 marker is a capital letter followed by a period (including a
2478 single-letter capital roman numeral), then it must be followed by
2479 at least two spaces. The point of this is to avoid accidentally
2480 treating people's initials as list markers: a paragraph might begin,
2481 "B. Russell was an English philosopher," and this shouldn't be
2482 treated as a list. Documented change in README.
2483 + Blocks that start with "p. " and a digit are no longer treated
2484 as ordered lists (it's a page number).
2485 + Added a needed 'try' to listItem.
2486 + Removed check for a following setext header in endline.
2487 A full test is too inefficient (doubles benchmark time), and the
2488 substitute we had before is not 100% accurate.
2489 + Don't use Code elements for autolinks if --strict specified.
2491 * LaTeX writer: When a footnote ends with a Verbatim environment, the
2492 close } of the footnote cannot occur on the same line or an error occurs.
2493 Fixed this by adding a newline before the closing } of every footnote.
2495 * HTML writer:
2496 + Removed incorrect "{}" around style information in HTML tables.
2497 Column widths now work properly in HTML.
2498 + If --strict option is specified (and --toc is not), don't include
2499 identifiers in headers, for better Markdown compatibility.
2501 * Build process:
2503 + Separated $(web_dest) and website targets.
2504 + In website, index.txt is now constructed from template index.txt.in.
2505 + Added freebsd target to Markefile. This creates the freebsd Makefile
2506 from Makefile.in, and creates distinfo. Removed Makefile and distinfo
2507 from the repository.
2508 + Added macport target to Makefile. Portfile is built from template
2509 Portfile.in.
2510 + Removed OSX package targets. (Too many difficulties involving
2511 dependencies on dynamic libraries.)
2512 + More complete INSTALL instructions for all architectures.
2514 * Website:
2515 + Added a programming demo, pandocwiki.
2517 [ Recai Oktaş ]
2519 * Do not forget to close pandoc's ITP. Closes: #391666
2521 -- Recai Oktaş <roktas@debian.org> Sun, 26 Aug 2007 22:51:32 +0300
2523pandoc (0.41) unstable; urgency=low
2525 [ John MacFarlane ]
2527 * Fixed bugs in HTML reader:
2528 + Skip material at end *only if* </html> is present (previously,
2529 only part of the document would be parsed if an error was
2530 found; now a proper error message is given).
2531 + Added new constant eitherBlockOrInline with elements that may
2532 count either as block-level or as inline. Modified isInline and
2533 isBlock to take this into account.
2534 + Modified rawHtmlBlock to accept any tag (even an inline tag):
2535 this is innocuous, because rawHtmlBlock is tried only if a regular
2536 inline element can't be parsed.
2537 + Added a necessary 'try' in definition of 'para'.
2539 * Fixed bug in markdown ordered list parsing. The problem was that
2540 anyOrderedListStart did not check for a space following the
2541 ordered list marker. So in 'A.B. 2007' the parser would be
2542 expecting a list item, but would not find one, causing an error.
2543 Fixed a similar bug in the RST reader. Resolves Issue #22.
2545 * Refactored RST and Markdown readers using parseFromString.
2547 * LaTeX reader will now skip anything after \end{document}.
2549 * Fixed blockquote output in markdown writer: previously, block
2550 quotes in indented contexts would be indented only in the first
2551 line.
2553 * Added note to INSTALL about variations in versions of the xhtml
2554 library that can lead to failed tests (thanks to Leif LeBaron).
2556 -- Recai Oktaş <roktas@debian.org> Sun, 19 Aug 2007 23:26:07 +0300
2558pandoc (0.4) unstable; urgency=low
2560 [ John MacFarlane ]
2562 * Added two new output formats: groff man pages and ConTeXt. By
2563 default, output files with extensions ".ctx" and ".context" are
2564 assumed to be ConTeXt, and output files with single-digit extensions
2565 are assumed to be man pages.
2567 * Enhanced ordered lists (documented in README, under Lists):
2568 + The OrderedList block element now stores information about
2569 list number style, list number delimiter, and starting number.
2570 + The readers parse this information when possible.
2571 + The writers use this information to style ordered lists.
2572 + The enhancement can be disabled using the --strict option.
2574 * Added support for tables (with a new Table block element). Two kinds
2575 of tables are supported: a simple table with one-line rows, and a
2576 more complex variety with multiline rows. All output formats are
2577 supported, but only markdown tables are parsed at the moment. The
2578 syntax is documented in README.
2580 * Added support for definition lists (with a new DefinitionList block
2581 element). All output and input formats are supported. The syntax is
2582 documented in README.
2584 * Added support for superscripts and subscripts (with new Superscript
2585 and Subscript inline elements). All input and output
2586 formats. The syntax is documented in README.
2588 * Added support for strikeout (with a new Strikeout inline element).
2589 All input and output formats are supported. Thanks to Bradley Kuhn,
2590 who contributed a patch. The syntax is documented in README. Resolves
2591 Issue #18.
2593 * Added a --toc|--table-of-contents option. This causes an automatically
2594 generated table of contents (or an instruction that creates one) to
2595 be inserted at the beginning of the document. Not supported in S5,
2596 DocBook, or man page writers.
2598 * Modified the -m|--asciimathml option:
2600 + If an optional URL argument is provided, a link is inserted
2601 instead of the contents of the ASCIIMathML.js script.
2602 + Nothing is inserted unless the document actually contains
2603 LaTeX math.
2605 * Removed Blank block element as unnecessary.
2607 * Removed Key and Note blocks from the Pandoc data structure. All
2608 links are now stored as explicit links, and note contents are
2609 stored with the (inline) notes.
2611 + All link Targets are now explicit (URL, title) pairs; there
2612 is no longer a 'Ref' target.
2613 + Markdown and RST parsers now need to extract data from key and
2614 note blocks and insert them into the relevant inline elements.
2615 Other parsers have been simplified, since there is no longer any need
2616 to construct separate key and note blocks.
2617 + Markdown, RST, and HTML writers need to construct lists of
2618 notes; Markdown and RST writers need to construct lists of link
2619 references (when the --reference-links option is specified); and
2620 the RST writer needs to construct a list of image substitution
2621 references. All writers have been rewritten to use the State monad
2622 when state is required.
2623 + Several functions (generateReference, keyTable,
2624 replaceReferenceLinks, replaceRefLinksBlockList, and some auxiliaries
2625 used by them) have been removed from Text.Pandoc.Shared, since
2626 they are no longer needed. New functions and data structures
2627 (Reference, isNoteBlock, isKeyBlock, isLineClump) have been
2628 added. The functions inTags, selfClosingTag, inTagsSimple, and
2629 inTagsIndented have been moved to the DocBook writer, since that
2630 is now the only module that uses them. NoteTable is now exported
2631 in Text.Pandoc.Shared.
2632 + Added stateKeys and stateNotes to ParserState; removed stateKeyBlocks,
2633 stateKeysUsed, stateNoteBlocks, stateNoteIdentifiers, stateInlineLinks.
2634 + Added writerNotes and writerReferenceLinks to WriterOptions.
2636 * Added Text.Pandoc module that exports basic readers, writers,
2637 definitions, and utility functions. This should export everything
2638 needed for most uses of Pandoc libraries. The haddock documentation
2639 includes a short example program.
2641 * Text.Pandoc.ASCIIMathML is no longer an exported module.
2643 * Added Text.Pandoc.Blocks module to help in printing markdown
2644 and RST tables. This module provides functions for working with
2645 fixed-width blocks of text--e.g., placing them side by side, as
2646 in a table row.
2648 * Refactored to avoid reliance on Haskell's Text.Regex library, which
2649 (a) is slow, and (b) does not properly handle unicode. This fixed
2650 some strange bugs, e.g. in parsing S-cedilla, and improved performance.
2652 + Replaced 'gsub' with a general list function 'substitute'
2653 that does not rely on Text.Regex.
2654 + Rewrote extractTagType in HTML reader so that it doesn't use
2655 regexs.
2656 + In Markdown reader, replaced email regex test with a custom email
2657 autolink parser (autoLinkEmail). Also replaced selfClosingTag regex
2658 with a custom function isSelfClosingTag.
2659 + Modified Docbook writer so that it doesn't rely on Text.Regex for
2660 detecting 'mailto' links.
2661 + Removed escapePreservingRegex and reamped entity-handling
2662 functions in Text.Pandoc.Shared and Text.Pandoc.CharacterReferences to
2663 avoid reliance on Text.Regex (see below on character reference
2664 handling changes).
2666 * Renamed Text.Pandoc.Entities as Text.Pandoc.CharacterReferences.
2668 * Changed handling of XML entities. Entities are now parsed (and unicode
2669 characters returned) in the Markdown and HTML readers, rather than being
2670 handled in the writers. In HTML and Docbook writers, UTF-8 is now used
2671 instead of entities for characters above 128. This makes the HTML and
2672 DocBook output much more readable and more easily editable.
2674 + Removed sgmlHexEntity, sgmlDecimalEntity, sgmlNamedEntity, and
2675 sgmlCharacterEntity regexes from Text.Pandoc.Shared.
2676 + Renamed escapeSGMLChar to escapeCharForXML. Added escapeStringForXML.
2677 Moved both functions to Text.Pandoc.Writers.Docbook.
2678 + Added characterReference parser to Text.Pandoc.CharacterReferences.
2679 This parses a string and return a unicode character.
2680 + Rewrote decodeCharacterReferences to use the new parser instead of
2681 Text.Regex.
2682 + Added new charRef parser for Markdown and HTML, which replaces the
2683 old 'entity' parser. Added '&' as a special character in Markdown reader.
2684 + Modified HTML and Markdown readers to call decodeEntities on all raw
2685 strings (e.g. authors, dates, link titles), to ensure that no
2686 unprocessed entities are included in the native representation of
2687 the document. (In the HTML reader, most of this work is done by a
2688 change in extractAttributeName.)
2689 + In XML and Markdown output, escape unicode nonbreaking space as '&nbsp;',
2690 since a unicode non-breaking space is impossible to distinguish visually
2691 from a regular space. (Resolves Issue #3.)
2692 + Removed encodeEntitiesNumerical.
2693 + Use Data.Map for entityTable and (new) reverseEntityTable, for a
2694 slight performance boost over the old association list.
2695 + Removed unneeded decodeEntities from 'str' parser in HTML and
2696 Markdown readers.
2698 * Text.Pandoc.UTF8: Renamed encodeUTF8 to toUTF8, decodeUTF8 to
2699 fromUTF8, for clarity.
2701 * Replaced old haskell98 module names replaced by hierarchical module
2702 names, e.g. List by Data.List. Removed haskell98 from dependencies
2703 in pandoc.cabal, and added mtl (needed for state monad). Substituted
2704 xhtml for html.
2706 * Refactored and cleaned up character escaping in writers, using
2707 backslashEscapes and escapeStringUsing functions.
2709 * Instead of adding "\n\n" to the end of an input string in Main.hs,
2710 this is now done in the readers. This makes the libraries behave
2711 the way you'd expect from the pandoc program. Resolves Issue #10.
2713 * URLs and email addresses in autolinks are now typeset as Code.
2715 * In Main.hs, changed putStr to putStrLn -- mainly because MacOS X
2716 doesn't display the whole output unless there's a line ending.
2718 * Major code cleanup in all modules, for greater consistency, concision,
2719 and readability.
2721 * HTML reader:
2723 + Fixed several bugs (extractTagType, attribute parsing).
2724 + Remove Null blocks in lists of blocks when possible.
2725 + Allow HTML comments as raw HTML inline.
2727 * Markdown reader:
2729 + Ordered list items may no longer begin with uppercase letters, or
2730 letters greater than 'n'. (This prevents first initials and page
2731 reference, e.g. 'p. 400', from being parsed as beginning lists.)
2732 Also, numbers beginning list items may no longer end with ')',
2733 which is now allowed only after letters. Note: These changes
2734 may cause documents to be parsed differently. Users should take
2735 care in upgrading.
2736 + Changed autoLink parsing to conform better to Markdown.pl's
2737 behavior. <google.com> is not treated as a link, but
2738 <http://google.com>, <ftp://google.com>, and <mailto:google@google.com>
2739 are.
2740 + Cleaned up handling of embedded quotes in link titles. Now these are
2741 stored as a '"' character, not as '&quot;'.
2742 + Use lookAhead parser for the 'first pass' (looking for reference keys),
2743 instead of parsing normally, then using setInput to reset input. This
2744 yields a slight performance boost.
2745 + Fixed several bugs in smart quote recognition.
2746 + Fixed bug in indentSpaces (which didn't properly handle
2747 cases with mixed spaces and tabs).
2748 + Consolidated 'text', 'special', and 'inline' into 'inline'.
2749 + Fixed bug which allowed URL and title to be separated by multiple blank
2750 lines in links and reference keys. They can be on separate lines but
2751 can't have blank lines between them.
2752 + Correctly handle bracketed text inside inline footnotes and links,using
2753 new function inlinesInBalanced. Resolves Issue #14.
2754 + Fixed bug in footnotes: links in footnotes were not being
2755 processed. Solution: three-stage parse. First, get all the
2756 reference keys and add information to state. Next, get all the
2757 notes and add information to state. (Reference keys may be needed
2758 at this stage.) Finally, parse everything else.
2759 + Replaced named constants like 'emphStart' with literals.
2760 + Removed an extra occurance of escapedChar in definition of inline.
2762 * RST reader:
2764 + Allow the URI in a RST hyperlink target to start on the line
2765 after the reference key.
2766 + Added 'try' in front of 'string', where needed, or used a different
2767 parser. This fixes a bug where ````` would not be correctly parsed as
2768 a verbatim `.
2769 + Fixed slow performance in parsing inline literals in RST reader. The
2770 problem was that ``#`` was seen by 'inline' as a potential link or image.
2771 Fix: inserted 'notFollowedBy (char '`')' in link parsers.
2772 Resolves Issue #8.
2773 + Use lookAhead instead of getInput/setInput in RST reader. Removed
2774 unneeded getState call, since lookAhead automatically saves and
2775 restores the parser state.
2776 + Allow hyperlink target URIs to be split over multiple lines, and
2777 to start on the line after the reference. Resolves Issue #7.
2778 + Fixed handling of autolinks.
2780 * LaTeX reader:
2782 + Replaced 'choice [(try (string ...), ...]' idiom with 'oneOfStrings',
2783 for clarity.
2784 + Added clauses for tilde and caret. Tilde is \ensuremath{\sim}, and
2785 caret is \^{}, not \^ as before.
2786 + Added parsing for \url.
2787 + Parse \texttt{} as code, provided there's nothing fancy inside.
2789 * HTML writer:
2791 + Modified HTML writer to use the Text.XHtml library. This results
2792 in cleaner, faster code, and it makes it easier to use Pandoc in
2793 other projects, like wikis, which use Text.XHtml. Two functions are
2794 now provided, writeHtml and writeHtmlString: the former outputs an
2795 Html structure, the latter a rendered string. The S5 writer is also
2796 changed, in parallel ways (writeS5, writeS5String).
2797 + The Html header is now written programmatically, so it has been
2798 removed from the 'headers' directory. The S5 header is still
2799 needed, but the doctype and some of the meta declarations have
2800 been removed, since they are written programatically. This change
2801 introduces a new dependency on the xhtml package.
2802 + Fixed two bugs in email obfuscation involving improper escaping
2803 of '&' in the <noscript> section and in --strict mode. Resolves
2804 Issue #9.
2805 + Fixed another bug in email obfuscation: If the text to be obfuscated
2806 contains an entity, this needs to be decoded before obfuscation.
2807 Thanks to thsutton for the patch. Resolves Issue #15.
2808 + Changed the way the backlink is displayed in HTML footnotes.
2809 Instead of appearing on a line by itself, it now generally
2810 appears on the last line of the note. (Exception: when the
2811 note does not end with a Plain or Para block.) This saves space
2812 and looks better.
2813 + Added automatic unique identifiers to headers:
2814 - The identifier is derived from the header via a scheme
2815 documented in README.
2816 - WriterState now includes a list of header identifiers and a table
2817 of contents in addition to notes.
2818 - The function uniqueIdentifiers creates a list of unique identifiers
2819 from a list of inline lists (e.g. headers).
2820 - This list is part of WriterState and gets consumed by blockToHtml
2821 each time a header is encountered.
2822 + Include CSS for .strikethrough class in header only if strikethrough
2823 text appears in the document.
2824 + If the 'strict' option is specified, elements that do not appear in
2825 standard markdown (like definition lists) are passed through as
2826 raw HTML.
2827 + Simplified treatment of autolinks, using pattern matching instead of
2828 conditionals.
2830 * Markdown writer:
2832 + Links in markdown output are now printed as inline links by default,
2833 rather than reference links. A --reference-links option has been added
2834 that forces links to be printed as reference links. Resolves Issue #4.
2835 + Use autolinks when possible. Instead of [site.com](site.com),
2836 use <site.com>.
2838 * LaTeX writer:
2840 + Rewrote to use the State monad. The preamble now includes only those
2841 packages that are actually required, given the document's content.
2842 Thus, for example, if strikeout is not used, ulem is not required.
2843 Modified LaTeXHeader accordingly.
2844 + Modified LaTeX writer to insert '\,' between consecutive quotes.
2845 + Removed unused function tableRowColumnWidths.
2846 + Simplified code for escaping special characters.
2847 + Leave extra blank line after \maketitle.
2848 + Include empty '\author{}' when no author specified to avoid LaTeX
2849 errors.
2850 + Include fancyvrb code in header only if needed -- that is, only
2851 if there is actually code in a footnote.
2852 + Use \url{} for autolinks.
2853 + Include [mathletters] option in ucs package, so that basic unicode
2854 Greek letters will work correctly.
2856 * RST writer: Force blank line before lists, so that sublists will
2857 be handled correctly.
2859 * Docbook writer: Fixed a bug: email links with text, like
2860 [foo](me@bar.baz), were being incorrectly treated as autolinks.
2862 * Removed Text.ParserCombinators.Pandoc and moved all its functions to
2863 Text.Pandoc.Shared.
2865 * Text.Pandoc.Shared:
2867 + Added defaultWriterOptions.
2868 + Added writerTableOfContents to WriterOptions.
2869 + Added writerIgnoreNotes option to WriterOptions. This is needed
2870 for processing header blocks for a table of contents, since notes on
2871 headers should not appear in the TOC.
2872 + Added prettyprinting for native Table format.
2873 + Removed some unneeded imports.
2874 + Moved escape and nullBlock parsers from
2875 Text.ParserCombinators.Pandoc, since the latter is for
2876 general-purpose parsers that don't depend on Text.Pandoc.Definition.
2877 + Moved isHeaderBlock from Text.Pandoc.Writers.HTML.
2878 + Moved Element, headerAtLeast, and hierarchicalize from Docbook
2879 writer, because HTML writer now uses these in constructing a table
2880 of contents.
2881 + Added clauses for new inline elements (Strikeout, Superscript,
2882 Subscript) to refsMatch.
2883 + Removed backslashEscape; added new functions escapeStringUsing and
2884 backslashEscapes.
2885 + Moved failIfStrict from markdown reader, since it is now used also
2886 by the HTML reader.
2887 + Added a 'try' to the definition of indentSpaces.
2888 + In definition of 'reference', added check to make sure it's not a note
2889 reference.
2890 + Added functions: camelCaseToHyphenated, toRomanNumeral,
2891 anyOrderedListMarker, orderedListmarker, orderedListMarkers,
2892 charsInBalanced', withHorizDisplacement, romanNumeral
2893 + Fixed a bug in the anyLine parser. Previously it would parse an empty
2894 string "", but it should fail on an empty string, or we get an error
2895 when it is used inside "many" combinators.
2896 + Removed followedBy' parser, replacing it with the lookAhead parser from
2897 Parsec.
2898 + Added some needed 'try's before multicharacter parsers, especially in
2899 'option' contexts.
2900 + Removed the 'try' from the 'end' parser in 'enclosed', so that
2901 'enclosed' behaves like 'option', 'manyTill', etc.
2902 + Added lineClump parser, which parses a raw line block up to and
2903 including any following blank lines.
2904 + Renamed parseFromStr to parseFromString.
2905 + Added a 'try' to the 'end' parser in 'enclosed'. This makes errors in
2906 the use of 'enclosed' less likely. Removed some now-unnecessary 'try's
2907 in calling code.
2908 + Removed unneeded 'try' in blanklines.
2909 + Removed endsWith function and rewrote calling functions to use
2910 isSuffixOf instead.
2911 + Added >>~ combinator.
2912 + Fixed bug in normalizeSpaces: Space:Str "":Space should compress to
2913 Space.
2915 * Refactored runtests.pl; added separate tests for tables.
2917 * Shell scripts:
2919 + Added -asxhtml flag to tidy in html2markdown. This will
2920 perhaps help the parser, which expects closing tags.
2921 + Modified markdown2pdf to run pdflatex a second time if --toc or
2922 --table-of-contents was specified; otherwise the table of
2923 contents won't appear.
2924 + Modified markdown2pdf to print a helpful message if the 'ulem'
2925 LaTeX package is required and not found.
2927 * Changes to build process:
2929 + Dropped support for compilation with GHC 6.4. GHC 6.6 or higher
2930 is now required.
2931 + Removed cabalize and Pandoc.cabal.in. The repository now contains
2932 pandoc.cabal itself.
2933 + Pandoc.cabal has been changed to pandoc.cabal, because HackageDB
2934 likes the cabal file to have the same name as the tarball.
2935 + Expanded and revised the package description in pandoc.cabal.
2936 Revised the package synopsis.
2937 + The tarball built by 'make tarball' now contains files built from
2938 templates (including man pages and shell scripts), so pandoc can
2939 be built directly using Cabal tools, without preprocessing.
2940 + Executable binaries are now stripped before installing.
2941 + Man pages are now generated from markdown sources, using pandoc's
2942 man page writer.
2943 + Use HTML version of README (instead of RTF) in Mac OS X installer.
2944 + Instead of testing for the existence of a pandoc symlink in build-exec,
2945 use ln -f.
2947 * Documentation:
2949 + Updated README and man pages with information on new features.
2950 + Updated INSTALL instructions with some useful clarifications and
2951 links.
2952 + Updated web content.
2954 * Added FreeBSD port.
2956 [ Recai Oktaş ]
2958 * debian/control:
2960 + Changed pandoc's Build-Depends to include libghc6-mtl-dev and
2961 libghc6-xhtml-dev. Removed libghc6-html-dev.
2962 + Suggest texlive-latex-recommended | tetex-extra instead of
2963 tetex-bin. This brings in fancyvrb and unicode support.
2965 -- Recai Oktaş <roktas@debian.org> Tue, 16 Jan 2007 00:37:21 +0200
2967pandoc (0.3) unstable; urgency=low
2969 [ John MacFarlane ]
2971 * Changes in pandoc options:
2973 + Allow options to follow or precede arguments.
2974 + Changed '--smartypants' to '--smart' and adjusted symbols accordingly.
2975 + Added '--strict' option.
2976 + Added '-o/--output' option.
2977 + Added '--dump-args' and '--ignore-args' options (for use in wrappers).
2978 + Modified '-v' and '-h' output to go to STDERR, not STDOUT, and return
2979 error conditions. This is helpful for writing wrappers.
2980 + Added copyright message to '-v' output, modeled after FSF messages.
2981 + Reformatted usage message so that it doesn't wrap illegibly.
2982 + Removed extra blanks after '-h' and '-D' output.
2984 * Added docbook writer.
2986 * Added implicit setting of default input and output format based
2987 on input and output filename extensions. These defaults are
2988 overridden if explicit input and output formats are specified using
2989 '-t', '-f', '-r', or '-w' options. Documented in pandoc(1) man page
2990 and README.
2992 * Allow ordered list items to begin with (single) letters, as well
2993 as numbers. The list item marker may now be terminated either by
2994 '.' or by ')'. This extension to standard markdown is documented
2995 in README.
2997 * Revised footnote syntax. (See README for full details.) The
2998 '[^1]' format now standard in markdown extensions is supported,
2999 as are inline footnotes with this syntax: '^[My note.]'.
3000 The earlier footnote syntax '^(1)' is no longer supported.
3002 * Improved HTML representation of footnotes. All footnotes
3003 are now auto-numbered and appear in an ordered list at the
3004 end of the HTML document. Since the default appearance is now
3005 acceptable, the old footnote styles have been removed from the
3006 HTML header.
3008 * Bug fixes:
3010 + Fixed a serious bug in the markdown, LaTeX, and RST readers.
3011 These readers ran 'runParser' on processed chunks of text to handle
3012 embedded block lists in lists and quotation blocks. But then
3013 any changes made to the parser state in these chunks was lost,
3014 as the state is local to the parser. So, for example, footnotes
3015 didn't work in quotes or list items. The fix: instead of calling
3016 runParser on some raw text, use setInput to make it the input, then
3017 parse it, then use setInput to restore the input to what it was
3018 before. This is shorter and more elegant, and it fixes the problem.
3019 + Fixed bug in notFollowedBy' combinator (adding 'try' before
3020 'parser'). Adjusted code that uses this combinator accordingly.
3021 + Fixed bug in RTF writer that caused improper indentation on
3022 footnotes occurring in indented blocks like lists.
3023 + Fixed parsing of metadata in LaTeX reader. Now the title, author,
3024 and date are parsed correctly. Everything else in the preamble
3025 is skipped.
3026 + Modified escapedChar in LaTeX reader to allow a '\' at the end of a
3027 line to count as escaped whitespace.
3028 + Modified LaTeX reader to produce inline links rather than reference
3029 links. Otherwise, links in footnotes aren't handled properly.
3030 + Fixed handling of titles in links in Markdown reader, so that
3031 embedded quotation marks are now handled properly.
3032 + Fixed Markdown reader's handling of embedded brackets in links.
3033 + Fixed Markdown reader so that it only parses bracketed material
3034 as a reference link if there is actually a corresponding key.
3035 + Revised inline code parsing in Markdown reader to conform to
3036 markdown standard. Now any number of `s can begin inline code,
3037 which will end with the same number of `s. For example, to
3038 have two backticks as code, write ``` `` ```. Modified Markdown
3039 writer accordingly.
3040 + Fixed bug in text-wrapping routine in Markdown and RST writers.
3041 Now LineBreaks no longer cause wrapping problems.
3042 + Supported hexadecimal numerical entity references as well as
3043 decimal ones.
3044 + Fixed bug in Markdown reader's handling of underscores and other
3045 inline formatting markers inside reference labels: for example,
3046 in '[A_B]: /url/a_b', the material between underscores was being
3047 parsed as emphasized inlines.
3048 + Changed Markdown reader's handling of backslash escapes so that
3049 only non-alphanumeric characters can be escaped. Strict mode
3050 follows Markdown.pl in only allowing a select group of punctuation
3051 characters to be escaped.
3052 + Modified HTML reader to skip a newline following a <br> tag.
3053 Otherwise the newline will be treated as a space at the beginning
3054 of the next line.
3056 * Made handling of code blocks more consistent. Previously, some
3057 readers allowed trailing newlines, while others stripped them.
3058 Now, all readers strip trailing newlines in code blocks. Writers
3059 insert a newline at the end of code blocks as needed.
3061 * Modified readers to make spacing at the end of output more consistent.
3063 * Minor improvements to LaTeX reader:
3065 + '\thanks' now treated like a footnote.
3066 + Simplified parsing of LaTeX command arguments and options.
3067 commandArgs now returns a list of arguments OR options (in
3068 whatever order they appear). The brackets are included, and
3069 a new stripFirstAndLast function is provided to strip them off
3070 when needed. This fixes a problem in dealing with \newcommand
3071 and \newenvironment.
3073 * Revised RTF writer:
3075 + Default font is now Helvetica.
3076 + An '\f0' is added to each '\pard', so that font resizing works
3077 correctly.
3079 * Moved handling of "smart typography" from the writers to the Markdown
3080 and LaTeX readers. This allows great simplification of the writers
3081 and more accurate smart quotes, dashes, and ellipses. DocBook can
3082 now use '<quote>'. The '--smart' option now toggles an option in
3083 the parser state rather than a writer option. Several new kinds
3084 of inline elements have been added: Quoted, Ellipses, Apostrophe,
3085 EmDash, EnDash.
3087 * Changes in HTML writer:
3089 + Include title block in header even when title is null.
3090 + Made javascript obfuscation of emails even more obfuscatory,
3091 by combining it with entity obfuscation.
3093 * Changed default ASCIIMathML text color to black.
3095 * Test suite:
3097 + Added --strip-trailing-cr option to diff in runtests.pl, for
3098 compatibility with Windows.
3099 + Added regression tests with footnotes in quote blocks and lists.
3101 * Makefile changes:
3103 + osx-pkg target creates a Mac OS X package (directory). New osx
3104 directory contains files needed for construction of the package.
3105 + osx-dmg target creates a compressed disk image containing the package.
3106 + win-pkg target creates Windows binary package.
3107 + tarball target creates distribution source tarball.
3108 + website target generates pandoc's website automatically, including
3109 demos. New 'web' directory containts files needed for construction
3110 of the website (which will be created as the 'pandoc' subdirectory
3111 of 'web').
3112 + Makefile checks to see if we're running Windows/Cygwin; if so,
3113 a '.exe' extension is added to each executable in EXECS.
3115 * Removed all wrappers except markdown2pdf and html2markdown.
3117 * Added new wrapper hsmarkdown, to be used as a drop-in replacement
3118 for Markdown.pl. hsmarkdown calls pandoc with the '--strict'
3119 option and disables other options.
3121 * Added code to html2markdown that tries to determine the character
3122 encoding of an HTML file, by parsing the "Content-type" meta tag.
3124 + If the encoding can't be determined, then if the content is local,
3125 the local encoding is used; if it comes from a URL, UTF-8 is used
3126 by default.
3127 + If input is from STDIN, don't try to determine character encoding.
3128 + Encoding can be specified explicitly using '-e' option.
3130 * Improved warning messages in wrappers:
3132 + Print warning if iconv not available
3133 + More user-friendly error messages in markdown2pdf, when
3134 pdflatex fails.
3136 * Code cleanup:
3138 + Renamed 'Text/Pandoc/HtmlEntities' module to
3139 'Text/Pandoc/Entities'. Also changed function names so as
3140 not to be HTML-specific.
3141 + Refactored SGML string escaping functions from HTML and Docbook
3142 writers into Text/Pandoc/Shared. (escapeSGML, stringToSGML)
3143 + Removed 'BlockQuoteContext' from ParserContext, as it isn't
3144 used anywhere.
3145 + Removed splitBySpace and replaced it with a general, polymorphic
3146 splitBy function.
3147 + Refactored LaTeX reader for clarity (added isArg function).
3148 + Converted some CR's to LF's in src/ui/default/print.css.
3149 + Added license text to top of source files.
3150 + Added module data for haddock to source files.
3151 + Reformatted code for consistency.
3153 * Rewrote documentation and man pages. Split README into INSTALL
3154 and README.
3156 * Split LICENSE into COPYING and COPYRIGHT.
3158 * Removed TODO, since we now maintain ToDo on the wiki.
3160 * Made COPYRIGHT in top level a symlink to debian/copyright, to avoid
3161 duplication.
3163 [ Recai Oktaş ]
3165 * Revamped build process to conform to debian standards and created
3166 a proper debian package. Closes: #391666.
3168 * Modified build process to support GHC 6.6.
3170 + The package can still be compiled using GHC 6.4.2, though because
3171 of dependencies the "make deb" target works only with GHC 6.6+.
3172 + The script 'cabalize' is used to create an appropriate
3173 'Pandoc.cabal' from 'Pandoc.cabal.in', depending on the GHC and
3174 Cabal versions.
3176 * Refactored template processing (fillTemplates.pl).
3178 * Modified wrapper scripts to make them more robust and portable.
3179 To avoid code duplication and ensure consistency, wrappers are
3180 generated via a templating system from templates in src/wrappers.
3182 + Wrappers now accept multiple filenames, when appropriate.
3183 + Spaces and tabs allowed in filenames.
3184 + getopts shell builtin is used for portable option parsing.
3185 + Improved html2markdown's web grabber code, making it more robust,
3186 configurable and verbose. Added '-e', '-g' options.
3188 -- Recai Oktaş <roktas@debian.org> Fri, 05 Jan 2007 09:41:19 +0200
3190pandoc (0.2) unstable; urgency=low
3192 * Fixed unicode/utf-8 translation
3194 -- John MacFarlane <jgm@berkeley.edu> Mon, 14 Aug 2006 00:00:00 -0400
3196pandoc (0.1) unstable; urgency=low
3198 * Initial creation of debian package
3200 -- John MacFarlane <jgm@berkeley.edu> Mon, 14 Aug 2006 00:00:00 -0400