git.iko.soy/typeable/pandoc
on 1.10.0.4 help sign in
typeable/pandoc/changelog
4954 lines 206 kB history raw
1pandoc (1.10.0.4)
3 * Fixed bug with escaped % in LaTeX reader. Closes #710.
5pandoc (1.10.0.3)
7 * Added further missing fb2 tests to cabal file.
9pandoc (1.10.0.2)
11 * Added fb2 tests to cabal file's extra-source-files.
13pandoc (1.10.0.1)
15 * Bump version bounds on test-framework packages.
17pandoc (1.10)
19 [new features]
21 * New input formats: `mediawiki` (MediaWiki markup).
23 * New output formats: `epub3` (EPUB v3 with MathML),
24 `fb2` (FictionBook2 ebooks).
26 * New `--toc-depth` option, specifying how many levels of
27 headers to include in a table of contents.
29 * New `--epub-chapter-level` option, specifying the header
30 level at which to divide EPUBs into separate files.
31 Note that this normally affects only performance, not the
32 visual presentation of the EPUB in a reader.
34 * Removed the `--strict` option. Instead of using `--strict`,
35 one can now use the format name `markdown_strict` for either input
36 or output. This gives more fine-grained control that `--strict`
37 did, allowing one to convert from pandoc's markdown to strict
38 markdown or vice versa.
40 * It is now possible to enable or disable specific syntax
41 extensions by appending them (with `+` or `-`) to the writer
42 or reader name. For example,
44 pandoc -f markdown-footnotes+hard_line_breaks
46 disables footnotes and enables treating newlines as hard
47 line breaks. The literate Haskell extensions are now implemented
48 this way as well, using either `+lhs` or `+literate_haskell`.
49 For a list of extension names, see the README under
50 "Pandoc's Markdown."
52 * The following aliases have been introduced for specific
53 combinations of markdown extensions: `markdown_phpextra`,
54 `markdown_github`, `markdown_mmd`, `markdown_strict`. These aliases
55 work just like regular reader and writer names, and can be modified
56 with extension modifiers as described above. (Note that conversion
57 from one markdown dialect to another does not work perfectly,
58 because there are differences in markdown parsers besides
59 just the extensions, and because pandoc's internal document model is
60 not rich enough to capture all of the extensions.)
62 * New `--html-q-tags` option. The previous default was to use `<q>`
63 tags for smart quotes in HTML5. But `<q>` tags are also valid HTML4.
64 Moreover, they are not a robust way of typesetting quotes, since
65 some user agents don't support them, and some CSS resets (e.g.
66 bootstrap) prevent pandoc's quotes CSS from working properly.
67 We now just insert literal quote characters by default in both
68 `html` and `html5` output, but this option is provided for
69 those who still want `<q>` tags.
71 * The markdown reader now prints warnings (to stderr) about
72 duplicate link and note references. Closes #375.
74 * Markdown syntax extensions:
76 + Added pipe tables. Thanks to François Gannaz for the initial patch.
77 These conform to PHP Markdown Extra's pipe table syntax. A subset
78 of org-mode table syntax is also supported, which means that you can
79 use org-mode's nice table editor to create tables.
81 + Added support for RST-style line blocks. These are
82 useful for verse and addresses.
84 + Attributes can now be specified for headers, using the same
85 syntax as in code blocks. (However, currently only the
86 identifier has any effect in most writers.) For example,
88 # My header {#foo}
90 See [the header above](#foo).
92 + Pandoc will now act as if link references have been defined
93 for all headers without explicit identifiers.
94 So, you can do this:
96 # My header
98 Link to [My header].
99 Another link to [it][My header].
101 Closes #691.
103 * LaTeX reader:
105 + Command macros now work everywhere, including non-math.
106 Environment macros still not supported.
107 + `\input` now works, as well as `\include`. TEXINPUTS is used.
108 Pandoc looks recursively into included files for more included files.
110 [behavior changes]
112 * The Markdown reader no longer puts the text of autolinks in a
113 `Code` inline. This means that autolinks will no longer appear
114 in a monospace font.
116 * The character `/` can now appear in markdown citation keys.
118 * HTML blocks in strict_markdown are no longer required to begin
119 at the left margin. Technically this is required, according to
120 the markdown syntax document, but `Markdown.pl` and other markdown
121 processors are more liberal.
123 * The `-V` option has been changed so that if there are duplicate
124 variables, those specified later on the command line take precedence.
126 * Tight lists now work in LaTeX and ConTeXt output.
128 * The LaTeX writer no longer relien on the `enumerate` package.
129 Instead, it uses standard LaTeX commands to change the list numbering
130 style.
132 * The LaTeX writer now uses `longtable` instead of `ctable`. This allows
133 tables to be split over page boundaries.
135 * The RST writer now uses a line block to render paragraphs containing
136 linebreaks (which previously weren't supported at all).
138 * The markdown writer now applies the `--id-prefix` to footnote IDs.
139 Closes #614.
141 * The plain writer no longer uses backslash-escaped line breaks
142 (which are not very "plain").
144 * `Text.Pandoc.UTF8`: Better error message for invalid UTF8.
145 Read bytestring and use `Text`'s decodeUtf8 instead of using
146 `System.IO.hGetContents`. This way you get a message saying
147 "invalid UTF-8 stream" instead of "invalid byte sequence."
148 You are also told which byte caused the problem.
150 * Docx, ODT, and EPUB writers now download images specified by a URL
151 instead of skipping them or raising an error.
153 * EPUB writer:
155 + The default CSS now left-aligns headers by default, instead of
156 centering. This is more consistent with the rest of the writers.
157 + A proper multi-level table of contents is now used in `toc.ncx`.
158 There is no longer a subsidiary table of contents at the beginning
159 of each chapter.
160 + Code highlighting now works by default.
161 + Section divs are used by default for better semantic markup.
162 + The title is used instead of "Title Page" in the table of contents.
163 Otherwise we have a hard-coded English string, which looks
164 strange in ebooks written in other languages. Closes #572.
166 * HTML writer:
168 + Put mathjax in span with class "math". Closes #562.
169 + Put citations in a span with class "citation." In HTML5, also include
170 a `data-cite` attribute with a space-separated list of citation
171 keys.
173 * `Text.Pandoc.UTF8`: use universalNewlineMode in reading.
174 This treats both `\r\n` and `\n` as `\n` on input, no matter
175 what platform we're running on.
177 * Citation processing is now done in the Markdown and LaTeX
178 readers, not in `pandoc.hs`. This makes it easier for library users
179 to use citations.
181 [template changes]
183 * HTML: Added css to template to preserve spaces in `<code>` tags.
184 Thanks to Dirk Laurie.
186 * Beamer: Remove English-centric strings in section pages.
187 Section pages used to have "Section" and a number as well as the
188 section title. Now they just have the title. Similarly for part
189 and subsection. Closes #566.
191 * LaTeX, ConTeXt: Added papersize variable.
193 * LaTeX, Beamer templates: Use longtable instead of ctable.
195 * LaTeX, Beamer templates: Don't require 'float' package for tables.
196 We don't actually seem to use the '[H]' option.
198 * LaTeX: Use `upquote` package if it is available. This fixes
199 straight quotes in verbatim environments.
201 * Markdown, plain: Fixed titleblock so it is just a single string.
202 Previously separate title, author, and date variables were used,
203 but this didn't allow different kinds of title blocks.
205 * EPUB:
207 + Rationalized templates. Previously there were three different
208 templates involved in epub production. There is now just one
209 template, `default.epub` or `default.epub3`. It can now be
210 overridden using `--template`, just like other templates.
211 The titlepage is now folded into the default template.
212 A `titlepage` variable selects it.
213 + UTF-8, lang tag, meta tags, title element.
215 * Added scale-to-width feature to beamer template
217 [API changes]
219 * `Text.Pandoc.Definition`: Added `Attr` field to `Header`.
220 Previously header identifers were autogenerated by the writers.
221 Now they are added in the readers (either automatically or explicitly).
223 * `Text.Pandoc.Builder`:
225 + `Inlines` and `Blocks` are now synonyms for `Many Inline` and
226 `Many Block`. `Many` is a newtype wrapper around `Seq`, with
227 custom Monoid instances for `Many Inline` and `Many Block. This
228 allows `Many` to be made an instance of `Foldable` and `Traversable`.
229 + The old `Listable` class has been removed.
230 + The module now exports `isNull`, `toList`, `fromList`.
231 + The old `Read` and `Show` instances have been removed; derived
232 instances are now used.
233 + Added `headerWith`.
235 * The readers now take a `ReaderOptions` rather than a `ParserState`
236 as a parameter. Indeed, not all parsers use the `ParserState` type;
237 some have a custom state. The motivation for this change was to separate
238 user-specifiable options from the accounting functions of parser state.
240 * New module `Text.Pandoc.Options`. This includes the `WriterOptions`
241 formerly in `Text.Pandoc.Shared`, and its associated
242 data types. It also includes a new type `ReaderOptions`, which
243 contains many options formerly in `ParserState`, and its associated
244 data types:
246 + `ParserState.stateParseRaw` -> `ReaderOptions.readerParseRaw`.
247 + `ParserState.stateColumns` -> `ReaderOptions.readerColumns`.
248 + `ParserState.stateTabStop` -> `ReaderOptions.readerTabStop`.
249 + `ParserState.stateOldDashes` -> `ReaderOptions.readerOldDashes`.
250 + `ParserState.stateLiterateHaskell` -> `ReaderOptions.readerLiterateHaskell`.
251 + `ParserState.stateCitations` -> `ReaderOptions.readerReferences`.
252 + `ParserState.stateApplyMacros` -> `ReaderOptions.readerApplyMacros`.
253 + `ParserState.stateIndentedCodeClasses` ->
254 `ReaderOptions.readerIndentedCodeClasses`.
255 + Added `ReaderOptions.readerCitationStyle`.
257 * `WriterOptions` now includes `writerEpubVersion`, `writerEpubChapterLevel`,
258 `writerEpubStylesheet`, `writerEpubFonts`, `writerReferenceODT`,
259 `writerReferenceDocx`, and `writerTOCDepth`. `writerEPUBMetadata` has
260 been renamed `writerEpubMetadata` for consistency.
262 * Changed signatures of `writeODT`, `writeDocx`, `writeEPUB`, since they no
263 longer stylesheet, fonts, reference files as separate parameters.
265 * Removed `writerLiterateHaskell` from `WriterOptions`, and
266 `readerLiterateHaskell` from `ReaderOptions`. LHS is now handled
267 by an extension (`Ext_literate_haskell`).
269 * Removed deprecated `writerXeTeX`.
271 * Removed `writerStrict` from `WriterOptions`. Added `writerExtensions`.
272 Strict is now handled through extensions.
274 * `Text.Pandoc.Options` exports `pandocExtensions`, `strictExtensions`,
275 `phpMarkdownExtraExtensions`, `githubMarkdownExtensions`,
276 and `multimarkdownExtensions`, as well as the `Extensions` type.
278 * New `Text.Pandoc.Readers.MediaWiki` module, exporting
279 `readMediaWiki`.
281 * New `Text.Pandoc.Writers.FB2` module, exporting `writeFB2`
282 (thanks to Sergey Astanin).
284 * `Text.Pandoc`:
286 + Added `getReader`, `getWriter` to `Text.Pandoc`.
287 + `writers` is now an association list `(String, Writer)`.
288 A `Writer` can be a `PureStringWriter`, an `IOStringWriter`, or
289 an `IOByteStringWriter`. ALL writers are now in the 'writers'
290 list, including the binary writers and FB2 writer. This allows
291 code in `pandoc.hs` to be simplified.
292 + Changed type of `readers`, so all readers are in IO.
293 Users who want pure readers can still get them form the reader
294 modules; this just affects the function `getReader` that looks up
295 a reader based on the format name. The point of this change is to
296 make it possible to print warnings from the parser.
298 * `Text.Pandoc.Parsing`:
300 + `Text.Parsec` now exports all Parsec functions used in pandoc code.
301 No other module directly imports Parsec. This will make it easier
302 to change the parsing backend in the future, if we want to.
303 + `Text.Parsec` is used instead of `Text.ParserCombinators.Parsec`.
304 + Export the type synonym `Parser`.
305 + Export `widthsFromIndices`, `NoteTable'`, `KeyTable'`, `Key'`, `toKey'`,
306 `withQuoteContext`, `singleQuoteStart`, `singleQuoteEnd`,
307 `doubleQuoteStart`, `doubleQuoteEnd`, `ellipses`, `apostrophe`,
308 `dash`, `nested`, `F(..)`, `askF`, `asksF`, `runF`, `lineBlockLines`.
309 + `ParserState` is no longer an instance of `Show`.
310 + Added `stateSubstitutions` and `stateWarnings` to `ParserState`.
311 + Generalized type of `withQuoteContext`.
312 + Added `guardEnabled`, `guardDisabled`, `getOption`.
313 + Removed `failIfStrict`.
314 + `lookupKeySrc` and `fromKey` are no longer exported.
316 * `Data.Default` instances are now provided for `ReaderOptions`,
317 `WriterOptions`, and `ParserState`. `Text.Pandoc` re-exports `def`.
318 Now you can use `def` (which is re-exported by `Text.Pandoc`) instead
319 of `defaultWriterOptions` (which is still defined). Closes #546.
321 * `Text.Pandoc.Shared`:
323 + Added `safeRead`.
324 + Renamed `removedLeadingTrailingSpace` to `trim`,
325 `removeLeadingSpace` to `triml`, and `removeTrailingSpace` to `trimr`.
326 + Count `\r` as space in `trim` functions.
327 + Moved `renderTags'` from HTML reader and `Text.Pandoc.SelfContained`
328 to `Shared`.
329 + Removed `failUnlessLHS`.
330 + Export `compactify'`, formerly in Markdown reader.
331 + Export `isTightList`.
332 + Do not export `findDataFile`.
333 + `readDataFile` now returns a strict ByteString.
334 + Export `readDataFileUTF8` which returns a String, like the
335 old `readDataFile`.
336 + Export `fetchItem` and `openURL`.
338 * `Text.Pandoc.ImageSize`: Use strict, not lazy bytestrings.
339 Removed `readImageSize`.
341 * `Text.Pandoc.UTF8`: Export `encodePath`, `decodePath`,
342 `decodeArg`, `toString`, `fromString`, `toStringLazy`,
343 `fromStringLazy`.
345 * `Text.Pandoc.UTF8` is now an exposed module.
347 * `Text.Pandoc.Biblio`:
349 + csl parameter now a `String` rather than a `FilePath`.
350 + Changed type of `processBiblio`. It is no longer in the IO monad.
351 It now takes a `Maybe Style` argument rather than parameters for CSL
352 and abbrev filenames. (`pandoc.hs` now calls the functions to parse
353 the style file and add abbreviations.)
355 * Markdown reader now exports `readMarkdownWithWarnings`.
357 * `Text.Pandoc.RTF` now exports `writeRTFWithEmbeddedImages` instead of
358 `rtfEmbedImage`.
360 [bug fixes]
362 * Make `--ascii` work properly with `--self-contained`. Closes #568.
364 * Markdown reader:
366 + Fixed link parser to avoid exponential slowdowns. Closes #620.
367 Previously the parser would hang on input like this:
369 [[[[[[[[[[[[[[[[[[hi
371 We fixed this by making the link parser parser characters
372 between balanced brackets (skipping brackets in inline code spans),
373 then parsing the result as an inline list. One change is that
375 [hi *there]* bud](/url)
377 is now no longer parsed as a link. But in this respect pandoc behaved
378 differently from most other implementations anyway, so that seems okay.
380 + Look for raw html/latex blocks before tables.
381 Otherwise the following gets parsed as a table:
383 \begin{code}
384 --------------
385 -- My comment.
386 \end{code}
388 Closes #578.
390 * RST reader:
392 + Added support for `:target:` on `.. image::` blocks
393 and substitutions.
394 + Field list fixes:
396 - Fixed field lists items with body beginning after a new line
397 (Denis Laxalde).
398 - Allow any char but ':' in names of field lists in RST reader
399 (Denis Laxalde).
400 - Don't allow line breaks in field names.
401 - Require whitespace after field list field names.
402 - Don't create empty definition list for metadata field lists.
403 Previously a field list consisting only of metadata fields (author,
404 title, date) would be parsed as an empty DefinitionList, which is
405 not legal in LaTeX and not needed in any format.
407 + Don't recognize inline-markup starts inside words.
408 For example, `2*2 = 4*1` should not contain an emphasized
409 section. Added test case for "Literal symbols". Closes #569.
410 + Allow dashes as separator in simple tables. Closes #555.
411 + Added support for `container`, `compound`, `epigraph`,
412 `rubric`, `highlights`, `pull-quote`.
413 + Added support for `.. code::`.
414 + Made directive labels case-insensitive.
415 + Removed requirement that directives begin at left margin.
416 This was (correctly) not in earlier releases; docutils doesn't
417 make the requirement.
418 + Added support for `replace::` and `unicode::` substitutions.
419 + Ignore unknown interpreted roles.
420 + Renamed image parser to `subst`, since it now handles all
421 substitution references.
423 * Textile reader:
425 + Allow newlines before pipes in table. Closes #654.
426 + Fixed bug with list items containing line breaks.
427 Now pandoc correctly handles hard line breaks inside list items.
428 Previously they broke list parsing.
429 + Implemented comment blocks.
430 + Fixed bug affected words ending in hyphen.
431 + Properly handle links with surrounding brackets.
432 Square brackets need to be used when the link isn't surrounded by
433 spaces or punctuation, or when the URL ending may be ambiguous.
434 Closes #564.
435 + Removed nullBlock. Better to know about parsing problems than
436 to skip stuff when we get stuck.
437 + Allow ID attributes on headers.
438 + Textile reader: Avoid parsing dashes as strikeout.
439 Previously the input
441 text--
442 text--
443 text--
444 text--
446 would be parsed with strikeouts rather than dashes. This fixes
447 the problem by requiring that a strikeout delimiting - not be
448 followed by a -. Closes #631.
449 + Expanded list of `stringBreakers`.
450 This fixes a bug on input like "(_hello_)" which should
451 be a parenthesized emphasized "hello".
452 The new list is taken from the PHP source of textile 2.4.
453 + Fixed autolinks. Previously the textile reader and writer
454 incorrectly implented RST-style autolinks for URLs and email
455 addresses. This has been fixed. Now an autolink is done this way:
456 `"$":http://myurl.com`.
457 + Fixed footnotes bug in textile. This affected notes occuring
458 before punctuation, e.g. `foo[1].`. Closes #518.
460 * LaTeX reader:
462 + Better handling of citation commands.
463 + Better handling of `\noindent`.
464 + Added a 'try' in rawLaTeXBlock, so we can handle `\begin` without `{`.
465 Closes #622.
466 + Made `rawLaTeXInline` try to parse block commands as well. This
467 is usually what we want, given how `rawLaTeXInline` is used in
468 the markdown and textile readers. If a block-level LaTeX command
469 is used in the middle of a paragraph (e.g. `\subtitle` inside a title),
470 we can treat it as raw inline LaTeX.
471 + Handle \slash command. Closes #605.
472 + Basic `\enquote` support.
473 + Fixed parsing of paragraphs beginning with a group. Closes #606.
474 + Use curly quotes for bare straight quotes.
475 + Support obeylines environment. Closes #604.
476 + Guard against "begin", "end" in inlineCommand and
477 blockCommand.
478 + Better error messages for environments. Now it should tell you that
479 it was looking for \end{env}, instead of giving "unknown parse error."
481 * HTML reader:
483 + Added HTML 5 tags to list of block-level tags.
484 + HTML reader: Fixed bug in `htmlBalanced`, which
485 caused hangs in parsing certain markdown input using
486 strict mode.
487 + Parse `<q>` as `Quoted DoubleQuote`.
488 + Handle nested `<q>` tags properly.
489 + Modified `htmlTag` for fewer false positives.
490 A tag must start with `<` followed by `!`,`?`, `/`, or a letter.
491 This makes it more useful in the wikimedia and markdown parsers.
493 * DocBook reader: Support title in "figure" element. Closes #650.
495 * MediaWiki writer:
497 + Remove newline after `<br/>` in translation of `LineBreak`
498 There's no particular need for a newline (other than making the
499 generated MediaWiki source look nice to a human), and in fact
500 sometimes it is incorrect: in particular, inside an enumeration, list
501 items cannot have embedded newline characters. (Brent Yorgey)
502 + Use `<code>` not `<tt>` for Code.
504 * Man writer: Escape `-` as `\-`.
505 Unescaped `-`'s become hyphens, while `\-`'s are left as ascii minus
506 signs. That is preferable for use with command-line options. See
507 <http://lintian.debian.org/tags/hyphen-used-as-minus-sign.html>. Thanks
508 to Andrea Bolognani for bringing the issue to our attention.
510 * RST writer:
512 + Improved line block output. Use nonbreaking spaces for
513 initial indent (otherwise lost in HTML and LaTeX).
514 Allow multiple paragraphs in a single line block.
515 Allow soft breaks w continuations in line blocks.
516 + Properly handle images with no alt text. Closes #678.
517 + Fixed bug with links with duplicate text. We now (a) use anonymous
518 links for links with inline URLs, and (b) use an inline link instead
519 of a reference link if the reference link would require a label that
520 has already been used for a different link. Closes #511.
521 + Fixed hyperlinked images. Closes #611. Use `:target:`
522 field when you have a simple linked image.
523 + Don't add `:align: center` to figures.
525 * Texinfo writer: Fixed internal cross-references.
526 Now we insert anchors after each header, and use `@ref` instead of `@uref`
527 for links. Commas are now escaped as `@comma{}` only when needed;
528 previously all commas were escaped. (This change is needed, in part,
529 because `@ref` commands must be followed by a real comma or period.) Also
530 insert a blank line in from of `@verbatim` environments.
532 * DocBook writer:
534 + Made --id-prefix work in DocBook as well as HTML.
535 Closes #607.
536 + Don't include empty captions in figures. Closes #581.
538 * LaTeX writer:
540 + Use `\hspace*` for nonbreaking space after line break,
541 since `~` spaces after a line break are just ignored.
542 Closes #687.
543 + Don't escape `_` in URLs or hyperref identifiers.
544 + Properly escape strings inside \url{}. Closes #576.
545 + Use `[fragile]` only for slides containing code rendered
546 using listings. Closes #649.
547 + Escape `|` as `\vert` in LaTeX math. This avoids a clash with
548 highlighting-kate's macros, which redefine `|` as a short verbatim
549 delimiter. Thanks to Björn Peemöller for raising this issue.
550 + Use minipage rather than parbox for block containers in tables.
551 This allows verbatim code to be included in grid tables.
552 Closes #663.
553 + Prevent paragraphs containing only linebreaks or spaces.
555 * HTML writer:
557 + Included `highlighting-css` for code spans, too.
558 Previously it was only included if used in a code block. Closes #653.
559 + Improved line breaks with `<dd>` tags. We now put a newline between
560 `</dd>` and `<dd>` when there are multiple definitions.
561 + Changed mathjax cdn url so it doesn't use https. (This caused
562 problems when used with `--self-contained`.) See #609.
564 * EPUB writer:
566 + `--number-sections` now works properly.
567 + Don't strip meta and link elements in epub metadata.
568 Patch from aberrancy. Closes #589.
569 + Fixed a couple validation bugs.
570 + Use ch001, ch002, etc. for chapter filenames. This improves sorting
571 of chapters in some readers, which apparently sort ch2 after ch10.
572 Closes #610.
574 * ODT writer: properly set title property (Arlo O'Keeffe).
576 * Docx writer:
578 + Fixed bug with nested lists. Previously a list like
580 1. one
581 - a
582 - b
583 2. two
585 would come out with a bullet instead of "2."
586 Thanks to Russell Allen for reporting the bug.
587 + Use `w:cr` in `w:r` instead of `w:br` for linebreaks.
588 This seems to fix a problem viewing pandoc-generated
589 docx files in LibreOffice.
590 + Use integer ids for bookmarks. Closes #626.
591 + Added nsid to abstractNum elements. This helps when merging
592 word documents with numbered or bulleted lists. Closes #627.
593 + Use separate footnotes.xml for notes.
594 This seems to help LibreOffice convert the file, even though
595 it was valid docx before. Closes #637.
596 + Use rIdNN identifiers for r:embed in images.
597 + Avoid reading image files again when we've already processed them.
598 + Fixed typo in `referenc.docx` that prevented image captions from
599 working. Thanks to Huashan Chen.
601 * `Text.Pandoc.Parsing`:
603 + Fixed bug in `withRaw`, which didn't correctly handle the case
604 where nothing is parsed.
605 + Made `emailAddress` parser more correct. Now it is based on RFC 822,
606 though it still doesn't implement quoted strings in email addresses.
607 + Revised URI parser. It now allows many more schemes, allows
608 uppercase URIs, and better handles trailing punctuation and
609 trailing slashes in bare URIs. Added many tests.
610 + Simplified and improved singleQuoteStart. This makes `'s'`, `'l'`,
611 etc. parse properly. Formerly we had some English-centric heuristics,
612 but they are no longer needed. Closes #698.
614 * `Text.Pandoc.Pretty`: Added wide punctuation range to `charWidth`.
615 This fixes bug with Chinese commas in markdown and reST tables, and
616 a bug that caused combining characters to be dropped.
618 * `Text.Pandoc.MIME`: Added MIME types for .wof and .eot. Closes #640.
620 * `Text.Pandoc.Biblio`:
622 + Run `mvPunc` and `deNote` on metadata too.
623 This fixed a bug with notes on titles using footnote styles.
624 + Fixed bug in fetching CSL files from CSL data directory.
626 * `pandoc.hs`: Give correct value to `writerSourceDirectory` when a URL
627 is provided. It should be the URL up to the path.
629 * Fixed/simplified diff output for tests.
630 Biblio: Make sure mvPunc and deNote run on metadata too.
631 This fixed a bug with notes on titles using footnote styles.
633 [under the hood improvements]
635 * We no longer depend on `utf8-string`. Instead we use functions
636 defined in `Text.Pandoc.UTF8` that use `Data.Text`'s conversions.
638 * Use `safeRead` instead of using `reads` directly (various modules).
640 * "Implicit figures" (images alone in a paragraph) are now handled
641 differently. The markdown reader gives their titles the prefix `fig:`; the
642 writers look for this before treating the image as a figure. Though this
643 is a bit of a hack, it has two advantages: (i) implicit figures can be
644 limited to the markdown reader, and (ii) they can be deactivated by turning
645 off the `implicit_figures` extension.
647 * `catch` from `Control.Exception` is now used instead of the
648 old Preface `catch`.
650 * `Text.Pandoc.Shared`: Improved algorithm for `normalizeSpaces`
651 and `oneOfStrings` (which is now non-backtracking).
653 * `Text.Pandoc.Biblio`: Remove workaround for `toCapital`.
654 Now citeproc-hs is fixed upstream, so this is no longer needed.
655 Closes #531.
657 * Textile reader: Improved speed of `hyphenedWords`.
658 This speeds up the textile reader by about a factor of 4.
660 * Use `Text.Pandoc.Builder` in RST reader, for more flexibility,
661 better performance, and automatic normalization.
663 * Major rewrite of markdown reader:
665 + Use `Text.Pandoc.Builder` instead of lists. This also
666 means that everything is normalized automatically.
667 + Move to a one-pass parsing strategy, returning values in the reader
668 monad, which are then run (at the end of parsing) against the final
669 parser state.
671 * In HTML writer, we now use `toHtml` instead of pre-escaping.
672 We work around the problem that blaze-html unnecessarily escapes `'`
673 by pre-escaping just the `'` characters, instead of the whole string.
674 If blaze-html later stops escaping `'` characters, we can simplify
675 `strToHtml` to `toHtml`. Closes #629.
677 * Moved code for embedding images in RTFs from `pandoc.hs` to the
678 RTF writer (which now exports `writeRTFWithEmbeddedImages`).
680 * Moved citation processing from `pandoc.hs` into the readers.
681 This makes things more convenient for library users.
683 * The man pages are now built by an executable `make-pandoc-man-pages`,
684 which has its own stanza in the cabal file so that dependencies can be
685 handled by Cabal. Special treatment in `Setup.hs` ensures that this
686 executable never gets installed; it is only used to create the man pages.
688 * The cabal file has been modified so that the pandoc library is used
689 in building the pandoc executable. (This required moving `pandoc.hs`
690 from `src` to `.`.) This cuts compile time in half.
692 * `-O2` is no longer used in building pandoc. The performance improvement
693 it yields is so slight that it is not worth it. (Measured with
694 benchmarks on ghc 7.4.)
696 * The `executable` and `library` flags have been removed.
698 * `-threaded` has been removed from ghc-options.
700 * Version bounds of dependencies have been raised, and the
701 `blaze_html_0_5` flag now defaults to True. Pandoc now compiles on
702 GHC 7.6.
704 * We now require base >= 4.2.
706 * Integrated the benchmark program into cabal. One can now do:
708 cabal configure --enable-benchmarks && cabal build
709 cabal bench --benchmark-option='markdown' --benchmark-option='-s 20'
711 The benchmark now uses README + testsuite, so benchmark results
712 from older versions aren't comparable.
714 * Integrated test suite with cabal.
715 To run tests, configure with `--enable-tests`, then `cabal test`.
716 You can specify particular tests using `--test-options='-t markdown'`.
717 No output is shown unless tests fail. The Haskell test modules
718 have been moved from `src/` to `tests/`.
720 * Moved all data files and templates to the `data/` subdirectory.
722 * Added an `embed_data_files` cabal flag. This causes all
723 data files to be embedded in the binary, so that the binary
724 is self-sufficient and can be relocated anywhere, copied on
725 a USB key, etc. The Windows installer now uses this.
726 (Since we no longer have the option to build the executable
727 without the library, this is the only way to get a relocatable
728 binary on Windows.)
730 * Removed pcre3.dll from windows package.
731 It isn't needed unless highlighting-kate is compilled with the
732 `pcre-light` flag. By default, regex-prce-builtin is used.
735pandoc (1.9.4.2)
737 * Don't encode/decode file paths if base >= 4.4.
738 Prior to base 4.4, filepaths and command line arguments were treated
739 as unencoded lists of bytes, not unicode strings, so we had to work
740 around that by encoding and decoding them. This commit adds CPP
741 checks for the base version that intelligibly enable encoding/decoding
742 when needed. Fixes a bug with multilingual filenames when pandoc was
743 compiled with ghc 7.4 (#540).
745 * Don't generate an empty H1 after hrule slide breaks.
746 We now use a slide-level header with contents `[Str "\0"]` to mark
747 an hrule break. This avoids creation of an empty H1 in these
748 contexts. Closes #484.
750 * Docbook reader: Added support for "bold" emphasis. Thanks to mb21.
752 * In make_osx_package.sh, ensure citeproc-hs is built with the
753 embed_data_files flag.
755 * MediaWiki writer: Avoid extra blank lines after sublists (Gavin Beatty).
757 * ConTeXt writer: Don't escape `&`, `^`, `<`, `>`, `_`,
758 simplified escapes for `}` and `{` to `\{` and `\}` (Aditya Mahajan).
760 * Fixed handling of absolute URLs in CSS imports with `--self-contained`.
761 Closes #535.
763 * Added webm to mime types. Closes #543.
765 * Added some missing exports and tests to the cabal file
766 (Alexander V Vershilov).
768 * Compile with `-rtsopts` and `-threaded` by default.
770pandoc (1.9.4.1)
772 * Markdown reader: Added `cf.` and `cp.` to list of likely abbreviations.
774 * LaTeX template: Added `linkcolor`, `urlcolor` and `links-as-notes`
775 variables. Make TOC links black.
777 * LaTeX template improvements.
779 + Don't print date unless one is given explicitly in the document.
780 + Simplified templates.
781 + Use fontenc [T1] by default, and lmodern.
782 + Use microtype if available.
784 * Biblio:
786 + Add comma to beginning of bare suffix, e.g. `@item1 [50]`.
787 Motivation: `@item1 [50]` should be as close as possible to
788 `[@item1, 50]`.
789 + Added workaround for a bug in citeproc-hs 0.3.4 that causes footnotes
790 beginning with a citation to be empty. Closes #531.
792 * Fixed documentation on mixed lists. Closes #533.
794pandoc (1.9.4)
796 * Simplified `Text.Pandoc.Biblio` and fixed bugs with citations inside
797 footnotes and captions. We now handle note citations by inserting
798 footnotes during initial citation processing, and doing a separate
799 pass later to remove notes inside notes.
801 * Added 'zenburn' highlight style from highlighting-kate.
803 * Added Slideous writer. Slideous is an HTML + javascript slide show
804 format, similar to Slidy, but works with IE 7. (Jonas Smedegaard)
806 * LaTeX writer:
808 + Ensure we don't have extra blank lines at ends of cells.
809 This can cause LaTeX errors, as they are interpreted as new paragraphs.
810 + More consistent interblock spacing.
811 + Require highlighting-kate >= 0.5.1, for proper highlighted inline
812 code in LaTeX. Closes #527.
813 + Ensure that a Verbatim at the end of a footnote is followed by
814 a newline. (Fixes a regression in the previous version.)
815 + In default template, use black for internal links and TOC.
816 Added commented-out code to use footnotes for links, as would
817 be suitable in print output.
819 * Beamer writer: When `--incremental` is used, lists inside
820 a block quote should appear all at once. (This makes Beamer
821 output consistent with the HTML slide show formats.)
823 * ConTeXt writer:
825 + Escape `%` as `\letterpercent{}` not `\letterpercent `,
826 to avoid gobbling spaces after the `%` sign.
827 + Ensure space after `\stopformula`.
829 * Markdown writer:
831 + Use `:` form instead of `~` in definition lists, for better
832 compatibility with other markdown implementations.
833 + Don't wrap the term, because it breaks definition lists.
834 + Use a nonzero space to prevent false recognition
835 of list marker in ordered lists. Closes #516.
837 * Org writer: Add space before language name. Closes #523.
839 * Docx writer: Simplified bullet characters so they work properly
840 with Word 2007. Closes #520.
842 * LaTeX reader: Support `\centerline`.
844 * RST reader: handle figures. Closes #522.
846 * Textile reader: fix for `<notextile>` and `==`. Closes #517.
847 (Paul Rivier)
849pandoc (1.9.3)
851 * Fixed bug in `fromEntities`. The previous version would turn
852 `hi & low you know;` into `hi &`.
854 * HTML reader:
856 + Don't skip nonbreaking spaces.
857 Previously a paragraph containing just `&nbsp;` would be rendered
858 as an empty paragraph. Thanks to Paul Vorbach for pointing out the bug.
859 + Support `<col>` and `<caption>` in tables. Closes #486.
861 * Markdown reader:
863 + Don't recognize references inside delimited code blocks.
864 + Allow list items to begin with lists.
866 * Added basic docbook reader (John MacFarlane and Mauro Bieg).
868 * LaTeX reader:
870 + Handle `\bgroup`, `\egroup`, `\begingroup`, `\endgroup`.
871 + Control sequences can't be followed by a letter.
872 This fixes a bug where `\begingroup` was parsed as `\begin`
873 followed by `group`.
874 + Parse 'dimension' arguments to unknown commands. e.g. `\parindent0pt`
875 + Make `\label` and `\ref` sensitive to `--parse-raw`.
876 If `--parse-raw` is selected, these will be parsed as raw latex
877 inlines, rather than bracketed text.
878 + Don't crash on unknown block commands (like `\vspace{10pt}`)
879 inside `\author`; just skip them. Closes #505.
881 * Textile reader:
883 + Implemented literal escapes with `==` and `<notextile>`. Closes #473.
884 + Added support for LaTeX blocks and inlines (Paul Rivier).
885 + Better conformance to RedCloth inline parsing (Paul Rivier).
886 + Parse '+text+' as emphasized (should be underlined, but this
887 is better than leaving literal plus characters in the output.
889 * Docx writer: Fixed multi-paragraph list items. Previously they each
890 got a list marker. Closes #457.
892 * LaTeX writer:
894 + Added `--no-tex-ligatures` option to avoid replacing
895 quotation marks and dashes with TeX ligatures.
896 + Use `fixltx2e` package to provide '\textsubscript'.
897 + Improve spacing around LaTeX block environments:
898 quote, verbatim, itemize, description, enumerate.
899 Closes #502.
900 + Use blue instead of pink for URL links in latex/pdf output.
902 * ConTeXt writer: Fixed escaping of `%`.
903 In text, `%` needs to be escaped as `\letterpercent`, not `\%`
904 Inside URLs, `%` needs to be escaped as `\%`
905 Thanks to jmarca and adityam for the fix. Closes #492.
907 * Texinfo writer: Escape special characters in node titles.
908 This fixes a problem pointed out by Joost Kremers. Pandoc used
909 to escape an '@' in a chapter title, but not in the corresponding
910 node title, leading to invalid texinfo.
912 * Fixed document encoding in texinfo template.
913 Resolves Debian Bug #667816.
915 * Markdown writer:
917 + Don't force delimited code blocks to be flush left.
918 Fixes bug with delimited code blocks inside lists etc.
919 + Escape `<` and `$`.
921 * LaTeX writer: Use `\hyperref[ident]{text}` for internal links.
922 Previously we used `\href{\#ident}{text}`, which didn't work on
923 all systems. Thanks to Dirk Laurie.
925 * RST writer: Don't wrap link references. Closes #487.
927 * Updated to use latest versions of blaze-html, mtl.
930pandoc (1.9.2)
932 * LaTeX reader:
934 + Made `lstlisting` work as a proper verbatim environment.
935 + Fixed bug parsing LaTeX tables with one column.
937 * LaTeX writer:
939 + Use `{}` around `ctable` caption, so that formatting can be used.
940 + Don't require eurosym package unless document has a €.
942 * LaTeX template: Added variables for `geometry`, `romanfont`,
943 `sansfont`, `mathfont`, `mainfont` so users can more easily
944 customize fonts.
946 * PDF writer:
948 + Run latex engine at least two times, to ensure
949 that PDFs will have hyperlinked bookmarks.
950 + Added PDF metadata (title,author) in LaTeX standalone + PDF output.
952 * Texinfo writer: retain directories in image paths. (Peter Wang)
954 * RST writer: Better handling of inline formatting, in accord
955 with docutils' "inline markup recognition rules" (though we don't
956 implement the unicode rules fully). Now `hi*there*hi` gets
957 rendered properly as `hi\ *there*\ hi`, and unnecessary
958 `\ ` are avoided around `:math:`, `:sub:`, `:sup:`.
960 * RST reader:
962 + Parse `\ ` as null, not escaped space.
963 + Allow `` :math:`...` `` even when not followed by blank
964 or `\`. This does not implement the complex rule docutils follows,
965 but it should be good enough for most purposes.
966 + Add support for the rST default-role directive. (Greg Maslov)
968 * Text.Pandoc.Parsing: Added `stateRstDefaultRole` field to `ParserState`.
969 (Greg Maslov)
971 * Markdown reader: Properly handle citations nested in other inline
972 elements.
974 * Markdown writer: don't replace empty alt in image with "image".
976 * DZSlides: Updated template.html and styles in default template.
977 Removed bizarre CSS for `q` in dzslides template.
979 * Avoid repeated `id` attribute in section and header in HTML slides.
981 * README improvements: new instructions on internal links,
982 removed misleading note on reST math.
984 * Build system:
986 + Fixed Windows installer so that dzslides works.
987 + Removed stripansi.sh.
988 + Added .travis.yml for Travis continuous integration support..
989 + Fixed upper bound for zlib (Sergei Trofimovich).
990 + Fixed upper bound for test-framework.
991 + Updated haddocks for haddock-2.10 (Sergei Trofimovich).
993pandoc (1.9.1.2)
995 * Added `beamer+lhs` as output format.
997 * Don't escape `<` in `<style>` tags with `--self-contained`.
998 This fixes a bug which prevented highlighting from working
999 when using `--self-contained`.
1001 * PDF: run latex engine three times if `--toc` specified.
1002 This fixes page numbers in the table of contents.
1004 * Docx writer: Added TableNormal style to tables.
1006 * LaTeX math environment fixes. `aligned` is now used instead of
1007 the nonexistent `aligned*`. `multline` instead of the nonexistent
1008 `multiline`.
1010 * LaTeX writer: Use `\textasciitilde` for literal `~`.
1012 * HTML writer: Don't escape contents of EQ tags with --gladtex.
1013 This fixes a regression from 1.8.
1015 * Use `<q>` tags for Quoted items for HTML5 output.
1016 The quote style can be changed by modifying the template
1017 or including a css file. A default quote style is included.
1019 * LaTeX reader: Fixed accents (\~{a}, `\c{c}`).
1020 Correctly handle \^{}. Support "minted" as a LaTeX verbatim block.
1022 * Updated LaTeX template for better language support.
1023 Use `polyglossia` instead of `babel` with xetex.
1024 Set `lang` as documentclass option.
1025 `\setmainlanguage` will use the last of a comma-separated
1026 list of languages. Thanks to François Gannaz.
1028 * Fixed default LaTeX template so `\euro` and `€` work. The
1029 `eurosym` package is needed if you are using pdflatex.
1031 * Fixed escaping of period in man writer (thanks to Michael Thompson).
1033 * Fixed list label positions in beamer.
1035 * Set `mainlang` variable in context writer.
1036 This parallels behavior of latex writer. `mainlang` is the last
1037 of a comma-separated list of languages in lang.
1039 * EPUB language metadat: convert e.g. `en_US` from locale to `en-US`.
1041 * Changed `-V` so that you can specify a key without a value.
1042 Such keys get the value `true`.
1044 * Fixed permissions on installed man pages - thanks Magnus Therning.
1046 * Windows installer: require XP or higher. The installer is
1047 now compiled on a Windows 7 machine, which fixes a problem
1048 using citation functions on Windows 7.
1050 * OSX package: Check for 64-bit Intel CPU before installing.
1052pandoc (1.9.1.1)
1054 * Better handling of raw latex environments in markdown. Now
1056 \begin{equation}
1057 a_1
1058 \end{equation}
1060 turns into a raw latex block as expected.
1062 * Improvements to LaTeX reader:
1064 + Skip options after block commands.
1065 + Correctly handle `{\\}` in braced.
1066 + Added a needed 'try'.
1067 + Citations: add `, ` to suffix if it doesn't start with space or
1068 punctuation. Otherwise we get no space between the year and the
1069 suffix in author-date styles.
1071 * Added two needed data files for S5. This fixes a problem with
1072 `pandoc -t s5 --self-contained`. Also removed `slides.min.js`,
1073 which was no longer being used.
1075 * Fixed some minor problems in `reference.docx`:
1076 name on "Date" style, `xCs` instead of `xIs`.
1078 * Fixed a problem creating docx files using a reference docx
1079 modified using Word. The problem seems to be that Word
1080 modifies `_rels/.rels`, changing the Type of the Relationship to
1081 `docProps/core.xml`. Pandoc now changes this back to the correct
1082 value if it has been altered, fixing the problem.
1084 * Fixed html5 template so it works properly with highlighting.
1086pandoc (1.9.1)
1088 * LaTeX reader:
1090 + Fixed regression in 1.9; properly handle escaped $ in latex math.
1091 + Put LaTeX verse environments in blockquotes.
1093 * Markdown reader:
1095 + Limit nesting of strong/emph. This avoids exponential lookahead
1096 in parasitic cases, like `a**a*a**a*a**a*a**a*a**a*a**a*a**a*a**`.
1097 + Improved attributes syntax (inn code blocks/spans):
1098 (1) Attributes can contain line breaks. (2) Values in key-value
1099 attributes can be surrounded by either double or single quotes, or
1100 left unquoted if they contain no spaces.
1102 * Don't wrap headers in markdown or RST writers.
1104 * Added `stateMaxNestingLevel` to `ParserState`.
1105 We set this to 6, so you can still have `Emph` inside `Emph`,
1106 just not indefinitely.
1108 * More efficient implementation of `nowrap` in `Text.Pandoc.Pretty`.
1110 * `Text.Pandoc.PDF`: Only run latex twice if `\tableofcontents`
1111 is present.
1113 * Require highlighting-kate >= 0.5.0.2, texmath >= 0.6.0.2.
1115pandoc (1.9.0.5)
1117 * Changed cabal file so that build-depends for the test program
1118 are not required unless the tests flag is used.
1120 * LaTeX writer: insert `{}` between adjacent hyphens so they don't
1121 form ligatures (dashes) in code spans.
1123pandoc (1.9.0.4)
1125 * Raised version bound on test-framework to avoid problems
1126 compiling tests on GHC 7.4.1.
1128 * LaTeX reader: Use raw LaTeX as fallback inline text for Cites,
1129 so citations don't just disappear unless you process with
1130 citeproc. Ignore `\bibliographystyle`, `\nocite`.
1132 * Simplified tex2pdf; it will always run latex twice to
1133 resolve table of contents and hyperrefs.
1135pandoc (1.9.0.3)
1137 * Require Cabal >= 1.10.
1138 * Tweaked cabal file to meet Cabal 1.10 requirements.
1140pandoc (1.9.0.2)
1142 * Allow build with json 0.4 or 0.5. Otherwise we can't build with
1143 ghc 6.12.
1145pandoc (1.9)
1147 [new features]
1149 * Added a Microsoft Word `docx` writer. The writer includes support
1150 for highlighted code and for math (which is converted from TeX to OMML,
1151 Office's native math markup language, using texmath's new OMML module).
1152 A new option `--reference-docx` allows the user to customize the
1153 styles.
1155 * Added an `asciidoc` writer (<http://www.methods.co.nz/asciidoc/>).
1157 * Better support for slide shows:
1159 + Added a `dzslides` writer. DZSlides is a lightweight HTML5/javascript
1160 slide show format due to Paul Rouget (<http://paulrouget.com/dzslides/>).
1162 + Added a LaTeX `beamer` writer. Beamer is a LaTeX package for creating
1163 slide presentations.
1165 + New, flexible rules for dividing documents into sections and slides
1166 (see the "Structuring the slide show" in the User's Guide). These
1167 are backward-compatible with the old rules, but they allow slide
1168 shows to be organized into sections and subsections containing
1169 multiple slides.
1171 + A new `--slide-level` option allows users to override defaults
1172 and select a slide level below the first header level with content.
1174 * A new `--self-contained` option produces HTML output that does not
1175 depend on an internet connection or the presence of any external
1176 files. Linked images, CSS, and javascript is downloaded (or fetched
1177 locally) and encoded in `data:` URIs. This is useful for making portable
1178 `HTML slide shows. The --offline` option has been deprecated and is now
1179 `treated as a synonym or --self-contained`.
1181 * Support for PDF output:
1183 + Removed the old `markdown2pdf`.
1184 + `pandoc` can now create PDFs (assuming you have latex and a set of
1185 appropriate packages installed): just specify an output file with the
1186 `.pdf` extension.
1187 + A new option `--latex-engine` allows you to specify `pdflatex`,
1188 `xelatex`, or `lualatex` as the processor.
1190 * Highlighting changes:
1192 + Syntax highlighting is now a standard feature; the `highlighting`
1193 flag is no longer needed when compiling.
1194 + A new `--no-highlight` option allows highlighting to be disabled.
1195 + Highlighting now works in `docx`, `latex`, and `epub`, as well as
1196 `html`, `html5`, `dzslides`, `s5`, and `slidy`.
1197 + A new `--highlight-style` option selects between various highlighting
1198 color themes.
1200 * Internal links to sections now work in ConTeXt and LaTeX as well as HTML.
1202 * LaTeX `\include` and `\usepackage` commands are now processed,
1203 provided the files are in the working directory.
1205 * EPUB improvements:
1207 + Internal and external links now work in EPUB.
1208 + Raw HTML is allowed.
1209 + New `--epub-embed-font` option.
1210 + Customizable templates for EPUB pages offer more control over
1211 formatting: `epub-page.html`, `epub-coverimage.html`,
1212 `epub-titlepage.html`.
1214 * `--mathml` now works with DocBook.
1216 * Added support for math in RST reader and writer. Inline math uses the
1217 `` :math:`...` `` construct. Display math uses
1219 .. math:: ...
1221 or if the math is multiline,
1223 .. math::
1225 ...
1227 These constructions are now supported now by `rst2latex.py`.
1229 * Github syntax for fenced code blocks is supported in pandoc's
1230 markdown. You can now write
1232 ```ruby
1233 x = 2
1234 ```
1236 instead of
1238 ~~~ {.ruby}
1239 x = 2
1240 ~~~~
1242 * Easier scripting: a new `toJsonFilter` function makes it easier to
1243 write Haskell scripts to manipulate the Pandoc AST.
1245 [behavior changes]
1247 * Fixed parsing of consecutive lists in markdown.
1248 Pandoc previously behaved like Markdown.pl for consecutive
1249 lists of different styles. Thus, the following would be parsed
1250 as a single ordered list, rather than an ordered list followed
1251 by an unordered list:
1253 1. one
1254 2. two
1256 - one
1257 - two
1259 This change makes pandoc behave more sensibly, parsing this as
1260 two lists. Any change in list type (ordered/unordered) or in
1261 list number style will trigger a new list. Thus, the following
1262 will also be parsed as two lists:
1264 1. one
1265 2. two
1267 a. one
1268 b. two
1270 Since we regard this as a bug in Markdown.pl, and not something
1271 anyone would ever rely on, we do not preserve the old behavior
1272 even when `--strict` is selected.
1274 * Dashes work differently with `--smart`: `---` is always em-dash,
1275 and `--` is always en-dash. Pandoc no longer tries to guess when
1276 `-` should be en-dash. *Note:* This may change how existing documents
1277 look when processed with pandoc. A new option, `--old-dashes`,
1278 is provided for legacy documents.
1280 * The markdown writer now uses setext headers for levels 1-2.
1281 The old behavior (ATX headers for all levels) can be restored
1282 using the new `--atx-headers` option.
1284 * Links are now allowed in markdown image captions. They are also
1285 allowed in links, but will appear there as regular text. So,
1287 [link with [link](/url)](/url)
1289 will turn into
1291 <p><a href="/url">link with link</a></p>
1293 * Improved handling of citations using `citeproc-hs-0.3.4`.
1294 Added `--citation-abbreviations` option.
1296 * Citation keys can no longer end with a punctuation character.
1297 This means that `@item1.` will be parsed as a citation with key
1298 'item1', followed by a period, instead of a citation with key
1299 'item1.', as was the case previously.
1301 * In HTML output, citations are now put in a span with class `citation`.
1303 * The markdown reader now recognizes DocBook block and inline tags.
1304 It was always possible to include raw DocBook tags in a markdown
1305 document, but now pandoc will be able to distinguish block from
1306 inline tags and behave accordingly. Thus, for example,
1308 <sidebar>
1309 hello
1310 </sidebar>
1312 will not be wrapped in `<para>` tags.
1314 * The LaTeX parser has been completely rewritten; it is now much more
1315 accurate, robust, and extensible. However, there are two important
1316 changes in how it treats unknown LaTeX. (1) Previously, unknown
1317 environments became BlockQuote elements; now, they are treated
1318 as "transparent", so `\begin{unknown}xyz\end{unknown}` is the
1319 same as `xyz`. (2) Previously, arguments of unknown commands
1320 were passed through with their braces; now the braces are stripped
1321 off.
1323 * `--smart` is no longer selected automatically with `man` output.
1325 * The deprecated `--xetex` option has been removed.
1327 * The `--html5`/`-5` option has been deprecated. Use `-t html5`
1328 instead. `html5` and `html5+lhs` are now separate output formats.
1330 * Single quotes are no longer escaped in HTML output. They do not
1331 need to be escaped outside of attributes.
1333 * Pandoc will no longer transform leading newlines in code
1334 blocks to `<br/>` tags.
1336 * The ODT writer now sizes images appropriately, using the image
1337 size and DPI information embedded in the image.
1339 * `--standalone` is once again implicitly for a non-text output format
1340 (ODT, EPUB). You can again do `pandoc test.txt -o test.odt`
1341 and get a standalone ODT file.
1343 * The Docbook writer now uses `<sect1>`, `<sect2>`, etc. instead of
1344 `<section>`.
1346 * The HTML writer now uses `<del>` for strikeout.
1348 * In HTML output with `--section-divs`, the classes `section` and
1349 `level[1,2,..6]` are put on the `div` tags so they can be styled.
1350 In HTML 5 output with `--section-divs`, the classes
1351 `level[1,2,...6]` are put on `section` tags.
1353 * EPUB writer changes:
1355 + The `lang` variable now sets the language
1356 in the metadata (if it is not set, we default to the locale).
1357 + EPUB: UTF-8 is used rather than decimal entities.
1359 * Added `titleslide` class to title slide in S5 template.
1361 * In HTML, EPUB, and docx metadata, the date is normalized into
1362 YYYY-MM-DD format if possible. (This is required for validation.)
1364 * Attributes in highlighted code blocks are now preserved in HTML.
1365 The container element will have the classes, id, and key-value attributes
1366 you specified in the delimited code block. Previously these were stripped
1367 off.
1369 * The reference backlink in the HTML writer no longer has a special
1370 `footnoteBacklink` class.
1372 * The HTML template has been split into `html` and `html5` templates.
1374 * Author and date are treated more consistently in HTML templates.
1375 Authors are now `<h2>`, date `<h3>`.
1377 * URLs are hyphenated in the ConTeXt writer (B. Scott Michel).
1379 * In `Text.Pandoc.Builder`, `+++` has been replaced by `<>`.
1381 [bug fixes]
1383 * Better support for combining characters and East Asian wide characters
1384 in markdown and reST.
1386 * Better handling of single quotes with `--smart`.
1387 Previously `D'oh l'*aide*` would be parsed with left and right single
1388 quotes instead of apostrophes. This kind of error is now fixed.
1390 * Highlighting: Use `reads` instead of `read` for better error handling.
1391 Fixes crash on `startNum="abc"`.
1393 * Added blank comment after directives in rst template.
1395 * Unescape entities in citation `refId`. The `refId`s coming
1396 from citeproc contain XML numeric entities, and these don't match with the
1397 citation keys parsed by pandoc. Solution is to unescape them.
1399 * HTML reader: Fixed bug parsing tables with both thead and tbody.
1401 * Markdown reader:
1403 + Better handling of escapes in link URLs and titles.
1404 + Fixed backslash escapes in reference links.
1405 + Fixed bug in table/hrule parsing, by checking that the top
1406 line of a table is not followed by a blank line. This bug caused
1407 slowdowns on some files with hrules and tables, as pandoc tried to
1408 interpret the hrules as the tops of multiline tables.
1409 + Fixed bug in code block attribute parser. Previously the ID attribute
1410 got lost if it didn't come first. Now attributes can come in any order.
1412 * RST reader: allow footnotes followed by newline without space characters.
1414 * LaTeX reader:
1416 + Ignore empty groups {}, { }.
1417 + LaTeX reader: Handle \@.
1418 + LaTeX reader: Don't crash on commands like `\itemsep`.
1419 + LaTeX reader: Better handling of letter environments.
1421 * RST writer: Fixed bug involving empty table cells. isSimple was being
1422 calculated in a way that assumed there were no non-empty cells.
1424 * ConTeXt writer:
1426 + Made `--toc` work even without `--number-sections`.
1427 + Escape # in link URLs.
1428 + Use buffering for footnotes containing code blocks.
1429 + Changed 'descr' to 'description', fixed alignment.
1431 * LaTeX writer:
1433 + Escape euro character.
1434 + Don't escape ~ inside href{...}.
1435 + Escape # in href URLs.
1436 + Improved detection of book classes. We now check the
1437 `documentclass` variable, and if that is not set, we look through
1438 the template itself. Also, we have added the KOMA classes scrreprt
1439 and scrbook. You can now make a book using
1440 `pandoc -V documentclass:book mybook.txt -o mybook.pdf`
1441 + LHS files now set the "listings" variable, so that the definition
1442 of the `code` environment will be included in the template.
1443 + Links are colored blue by default (this can be changed by
1444 modifying `hyperref` settings in the template).
1445 + Added `lang` variable to LaTeX template.
1447 * HTML writer:
1449 + Fixed bug in HTML template with html5 and mathml.
1450 + Don't use self-closing img, br, hr tags for HTML5.
1451 + Use `<section>` for footnotes if HTML5.
1452 + Update HTML templates to use Content-Style-Type meta tag.
1453 + Use separate variables for meta-date, meta-author.
1454 This makes footnotes work in author and date fields.
1455 + Use 'vertical-align:middle' in WebTeX math for better alignment.
1457 * S5/slidy writer: Make footnotes appear on separate slide at end.
1459 * MIME: Added 'layout-cache' to getMimeType. This ensures that the
1460 META-INF/manifest.xml for ODT files will have everything it needs, so
1461 that ODT files modified by LibreOffice can be used as `--reference-odt`.
1463 * `Text.Pandoc.Templates`: Return empty string for json template.
1465 * `Text.Pandoc.Biblio`:
1467 + Expand citations recursively inside nested inlines.
1468 + Treat `\160` as space when parsing locator and suffix.
1469 This fixes a bug with "p. 33" when `--smart` is used. Previously
1470 the whole "p. 33" would be included in the suffix, with no locator.
1471 + Put whole author-in-text citation in a Cite. Previously just the
1472 date and other info went in the Cite.
1473 + Don't add comma+space to prefix if it ends in punctuation.
1475 * Updated chicago-author-date.csl. The old version did not work
1476 properly for edited volumes with no author.
1478 * EPUB writer:
1480 + Add date to EPUB titlepage and metadata.
1481 + Added TOC identifier in EPUB page template.
1482 + Don't generate superfluous file `cover-image.jpg`.
1484 [under the hood improvements]
1486 * Modified `make_osx_package.sh` to use cabal-dev.
1487 Items are no longer installed as root.
1488 Man pages are zipped and given proper permissions.
1490 * Modified windows installer generater to use cabal-dev.
1492 * Setup: Making man pages now works with cabal-dev (at least on OSX). In
1493 Setup.hs we now invoke 'runghc' in a way that points it to the correct
1494 package databases, instead of always falling back to the default user
1495 package db.
1497 * Updated to work with GHC 7.4.1.
1499 * Removed dependency on old-time.
1501 * Removed dependency on dlist.
1503 * New slidy directory for "self-contained."
1505 * TeXMath writer: Use unicode thin spaces for thin spaces.
1507 * Markdown citations: don't strip off initial space in locator.
1509 [API changes]
1511 * Removed `Apostrophe`, `EmDash`, `EnDash`, and `Ellipses`
1512 from the native `Inline` type in pandoc-types. Now we use `Str`
1513 elements with unicode.
1515 * Improvements to `Text.Pandoc.Builder`:
1517 + `Inlines` and `Blocks` are now newtypes (not synonyms for
1518 sequences).
1519 + Instances are defined for `IsString`, `Show`, `Read`, `Monoid`,
1520 and a new `Listable` class, which allows these to be manipulated
1521 to some extent like lists. Monoid append includes automatic
1522 normalization.
1523 + `+++` has been replaced by `<>` (mappend).
1525 * Use blaze-html instead of xhtml for HTML generation.
1526 This changes the type of `writeHtml`.
1528 * `Text.Pandoc.Shared`:
1530 + Added `warn` and `err`.
1531 + Removed `unescapeURI`, modified `escapeURI`.
1532 (See under [behavior changes], above.)
1534 * Changes in URI escaping: Previously the readers escaped URIs by
1535 converting unicode characters to octets and then percent encoding.
1536 Now unicode characters are left as they are, and `escapeURI` only
1537 percent-encodes space characters. This gives more readable
1538 URIs, and works well with modern user agents. URIs are no longer unescaped
1539 at all on conversion to `markdown`, `asciidoc`, `rst`, `org`.
1541 * New module `Text.Pandoc.SelfContained`.
1543 * New module `Text.Pandoc.Docx`.
1545 * New module `Text.Pandoc.PDF`.
1547 * Added `writerBeamer` to `WriterOptions`.
1549 * Added `normalizeDate` to `Text.Pandoc.Shared`.
1551 * Added `splitStringWithIndices` in `Text.Pandoc.Shared`.
1552 This is like `splitWithIndices`, but it is sensitive to distinctions
1553 between wide, combining, and regular characters.
1555 * `Text.Pandoc.Pretty`:
1557 + Added `chomp` combinator.
1558 + Added `beforeNonBreak` combinator. This allows you to include
1559 something conditionally on it being before a nonblank.
1560 Used for RST inline math.
1561 + Added `charWidth` function. All characters marked W or F in the unicode
1562 spec EastAsianWidth.txt get width 2.
1563 + Added `realLength`, based on `charWidth`. `realLength` is now
1564 used in calculating offsets.
1566 * New module `Text.Pandoc.Slides`, for common functions for breaking
1567 a document into slides.
1569 * Removed `Text.Pandoc.S5`, which is no longer needed.
1571 * Removed `Text.Pandoc.CharacterReferences`. Moved
1572 `characterReference` to `Text.Pandoc.Parsing`.
1573 `decodeCharacterReferences` is replaced by `fromEntities`
1574 in `Text.Pandoc.XML`.
1576 * Added `Text.Pandoc.ImageSize`. This is intened for use
1577 in `docx` and `odt` writers, so the size and dpi of images
1578 can be calculated.
1580 * Removed `writerAscii` in `WriterOptions`.
1582 * Added `writerHighlight` to `WriterOptions`.
1584 * Added `DZSlides` to `HTMLSlideVariant`.
1586 * `writeEPUB` has a new argument for font files to embed.
1588 * Added `stateLastStrPos` to `ParserState`. This lets us keep track
1589 of whether we're parsing the position immediately after a regular
1590 (non-space, non-symbol) string, which is useful for distinguishing
1591 apostrophes from single quote starts.
1593 * `Text.Pandoc.Parsing`:
1595 + `escaped` now returns a `Char`.
1596 + Removed `charsInBalanced'`, added a character parser as
1597 a parameter of `charsInBalanced`. This is needed for
1598 proper handling of escapes, etc.
1599 + Added `withRaw`.
1601 * Added `toEntities` to `Text.Pandoc.XML`.
1603 * `Text.Pandoc.Readers.LaTeX`:
1605 + Export `handleIncludes`.
1606 + Export `rawLaTeXBlock` instead of `rawLaTeXEnvironment'`.
1608 * Added `ToJsonFilter` class and `toJsonFilter` function to
1609 `Text.Pandoc`, deprecating the old `jsonFilter` function.
1611 * `Text.Pandoc.Highlighting`:
1613 + Removed `highlightHtml`, `defaultHighlightingCss`.
1614 + Export `formatLaTeXInline`, `formatLaTeXBlock`, and `highlight`, plus
1615 key functions from highlighting-kate.
1616 + Changed types of highlighting function. `highlight` returns a
1617 `Maybe`, not an `Either`.
1619pandoc (1.8.2.1)
1621 * Relaxed cabal consntraints for test-framework (S. Trofimovich).
1623 * Relaxed cabal constraints for pandoc-types.
1625 * Adjusted Arbitrary instance to help avoid timeouts in tests.
1627 * Added `Tests.Writers.Markdown` to cabal file.
1629pandoc (1.8.2)
1631 * Added script to produce OS X package.
1633 * Made `templates` directory a git submodule. This should make it
1634 easier for people to revise their custom templates when the default
1635 templates change.
1637 * Changed template naming scheme: `FORMAT.template` -> `default.FORMAT`.
1638 **Note:** If you have existing templates in `~/.pandoc/templates`, you
1639 must rename them to conform to the new scheme!
1641 * Fixed smart quotes bug, now handling `'...hi'` properly.
1643 * RST reader:
1645 + Partial support for labeled footnotes.
1646 + Improved accuracy of `simpleReferenceName` parser.
1648 * HTML reader:
1650 + Substitute correct unicode characters for
1651 characters in the 128..159 range, which are often found even in
1652 HTML that purports to be UTF-8.
1654 * LaTeX reader: Handle `\subtitle` command (a subtitle is added
1655 to the title, after a colon and linebreak). Closes #280.
1657 * Leaner `reference.odt`.
1659 * Added unexported module `Text.Pandoc.MIME` for use in
1660 the ODT writer.
1662 * ODT writer: Construct `manifest.xml` based on archive contents.
1663 This fixes a bug in ODTs containing images. Recent versions of
1664 LibreOffice would reject these as corrupt, because `manifest.xml`
1665 did not contain a reference to the image files.
1667 * LaTeX writer:
1669 + Make verbatim environments flush to avoid spurious
1670 blank lines. Closes #277.
1671 + Use `\texttt` and escapes insntead of `\verb!...!`, which
1672 is too fragile (doesn't work in command arguments).
1673 + Use `\enquote{}` for quotes if the template includes
1674 the `csquotes` package. This provides better support for
1675 local quoting styles. (Thanks to Andreas Wagner for the idea.)
1677 * ConTeXt writer: Make `\starttyping`/`\stoptyping` flush with
1678 margin, preventing spurious blank lines.
1680 * Slidy writer:
1682 + Use non-minimized version of `slidy.css` with `--offline`
1683 option, so users can more easily edit it.
1684 + Also fixed a bug in the CSS that prevented proper centering
1685 of title (now reported and fixed upstream).
1687 * S5 writer:
1689 + Replaced `s5/default/slides.js.{comment,packed}` with
1690 new compressed `s5/default/slides.min.js`.
1691 + Use `data:` protocol to embed S5 CSS in `<link>` tags,
1692 when `--offline` is specified. Using inline CSS didn't
1693 work with Chrome or Safari. This fixes offline
1694 S5 on those browsers.
1696 * HTML writer: Removed English title on footnote backlinks.
1697 This is incongrous in non-English documents.
1699 * Docbook writer:
1701 + Use CALS tables. (Some older docbook software does not work
1702 well with XHTML tables.) Closes #77.
1703 + Use `programlisting` tags (instead of `screen`) for code blocks.
1705 * `markdown2pdf`:
1707 + Calls latex with `-halt-on-error -interaction nonstopmode` instead
1708 of `-interaction=batchmode`, which essentially just ignored errors,
1709 leading to bad results. Better to know when something is wrong.
1710 + Fixed issues with non-UTF-8 output of `pdflatex`.
1711 + Better error reporting.
1713 * `--mathjax` now takes an optional URL argument. If it is not
1714 provided, pandoc links directly to the (secure) mathjax CDN,
1715 as now recommended (thanks to dsanson).
1717 * Deprecated `--xetex` option in `pandoc`. It is no longer needed,
1718 since the LaTeX writer now produces a file that can be processed by
1719 `latex`, `pdflatex`, `lualatex`, or `xelatex`.
1721 * Introduced `--luatex` option to `markdown2pdf`. This causes `lualatex`
1722 to be used to create the PDF.
1724 * If a template specified with `--template` is not found, look for it
1725 in `datadir`. Also, if no extension is provided, supply one based
1726 on the writer. So now you can put your `special.latex` template in
1727 `~/.pandoc/templates`, and use it from any directory via
1728 `pandoc -t latex --template special`.
1730 * Default template improvements:
1732 + HTML: Display author and date after title.
1733 + HTML: Made table of contents more customizable. The container
1734 for the TOC is now in the template, so users can insert a header
1735 or other styling. (Thanks to Bruce D'Arcus for the suggestion.)
1736 + HTML, Slidy, S5: Enclose scripts in CDATA tags.
1737 + Slidy, S5: Added `s5-url` and `slidy-url` variables, instead of
1738 hard-coding. If you want to put your slidy files in the slidy
1739 subdirectory, for example, you can do
1740 `pandoc -t slidy -V slidy-url=slidy -s`.
1741 + LaTeX: Use `\and` to separate authors in LaTeX documents (reader
1742 & writer). Closes #279.
1743 + LaTeX: Use different `hyperref` options for `xetex`, fixing
1744 problems with unicode bookmarks (thanks to CircleCode).
1745 + LaTeX: Removed `ucs` package, use `utf8` rather than `utf8x`
1746 with `inputenc`. This covers fewer characters but is more
1747 robust with other packages, and `ucs` is unmaintained. Users
1748 who need better unicode support should use xelatex or lualatex.
1750pandoc (1.8.1.2)
1752 * Added `--epub-cover-image` option.
1754 * Documented `--biblatex` and `--natbib` options.
1756 * Allow `--section-divs` with slidy output. Resolves Issue #296.
1758 * Disallow notes within notes in reST and markdown.
1759 These previously caused infinite looping and stack overflows.
1760 For example:
1762 [^1]
1764 [^1]: See [^1]
1766 Note references are allowed in reST notes, so this isn't a full
1767 implementation of reST. That can come later. For now we need to
1768 prevent the stack overflows. Partially resolves Issue #297.
1770 * EPUB writer: Allow non-plain math methods.
1772 * Forbid ()s in citation item keys. Resolves Issue #304: problems with
1773 `(@item1; @item2)` because the final paren was being parsed as part of
1774 the item key.
1776 * Changed URI parser so it doesn't include trailing punctuation.
1777 So, in RST, `http://google.com.` should be parsed as a link followed by a
1778 period. The parser is smart enough to recognize balanced parentheses, as
1779 often occur in wikipedia links: `http://foo.bar/baz_(bam)`.
1781 * Markdown+lhs reader: Require space after inverse bird tracks, so that
1782 HTML tags can be used freely at the left margin of a markdown+lhs document.
1783 Thanks to Conal Elliot for the suggestion.
1785 * Markdown reader:
1787 + Improved emph/strong parsing; fixes bug found by Perry Wagle.
1788 + Fixed bug in footnote order (reported by CircleCode).
1790 * RST reader:
1791 + Fixed bug in in field lists with multi-line items at the
1792 end of the list.
1793 + Added parentheses to RST `specialChars`, so
1794 `(http://google.com)` will be parsed as a link in parens.
1795 Resolves Issue #291.
1796 + Allow `|` followed by newline in RST line block.
1798 * LaTeX reader:
1799 + Support `\dots`.
1800 + Gobble option & space after linebreak `\\[10pt]`.
1802 * Textile reader:
1803 + Make it possible to have colons after links. (qerub)
1804 + Make it possible to have colons after links. (Christoffer Sawicki)
1806 * HTML reader:
1807 + Skip spaces after `<b>`, `<emph>`, etc.
1808 + Handle tbody, thead in simple tables. Closes #274.
1809 + Implicit `Para`s instead of `Plains` in some contexts.
1811 * OpenDocument writer: Use special `First paragraph` style for
1812 first paragraph after most non-paragraph blocks. This allows users to
1813 specify e.g. that only paragraphs after the first paragraph of a block are
1814 to be indented. Thanks to Andrea Rossato for the patch. Closes #20.
1816 * LaTeX writer: use `deVerb` on table and picture captions.
1817 Otherwise LaTeX complains about `\verb` inside command argument.
1818 Thanks to bbanier for reporting the bug.
1820 * Markdown writer: Insert HTML comment btw list and indented code block.
1821 This prevents the code block from being interpreted as part of the list.
1823 * EPUB writer: Add a meta element specify the cover.
1824 Some EPUB e-readers, such as the Nook, require a meta element inside the
1825 OPF metadata block to ensure the cover image is properly displayed.
1826 (Kelsey Hightower)
1828 * HTML writer: Use embed tag for images with non-image extensions.
1829 (e.g. PDFs). Closes #264.
1831 * LaTeX writer: Improved tables.
1833 + More space between lines, top-align cells.
1834 + Use ctable package, which allows footnotes and
1835 provides additional options.
1836 + Made cell alignments work in multiline tables.
1837 + Closes #271, #272.
1839 * Un-URI-escape image filenames in LaTeX, ConTeXt, RTF, Texinfo.
1840 Also do this when copying image files into EPUBs and ODTs.
1841 Closes #263.
1843 * Changed to github issue tracker.
1845 * Added failing emph/strong markdown test case due to Perry Wagle.
1847 * Slidy improvements:
1848 + Updated to use Slidy2.
1849 + Fixed bug, unclosed div tag.
1850 + Added `duration` variable in template.
1851 Setting this activates the timer.
1852 + Use 'titlepage' instead of 'cover' for title div.
1854pandoc (1.8.1.1)
1856 * `markdown2pdf`: Removed some debugging lines accidentally included
1857 in the 1.8.1 release. With those lines, the temp directory is created
1858 in the working directory, and it is not deleted. This fix restores
1859 the original behavior.
1861pandoc (1.8.1)
1863 * Added `--ascii` option. Currently supported only in HTML writer,
1864 which it causes to use numerical entities instead of UTF-8.
1866 * EPUB writer: `--toc` now works to provide a table of contents
1867 at the beginning of each chapter.
1869 * LaTeX writer: Change figure defaults to `htbp`.
1870 This prevents "too many unprocessed floats." Resolves
1871 Issue #285.
1873 * `Text.Pandoc.UTF8`: Encode filenames even when using recent
1874 base.
1876 * `markdown2pdf`: Fixed filename encoding issues. With help from Paulo
1877 Tanimoto. Resolves Issue #286.
1879 * HTML writer: Put line breaks in section divs.
1881 * `Text.Pandoc.Shared`: Make `writerSectionDivs` default to False.
1883pandoc (1.8.0.3)
1885 * Fixed Source-repository stanza in cabal file.
1887pandoc (1.8.0.2)
1889 * HTML writer:
1891 + Stringify alt text instead of converting to HTML.
1892 + Break lines after block elements, not inside tags.
1893 HTML output now closely resembles that of tidy. Resolves Issue #134.
1895 * Markdown reader: Fixed bug in footnote block parser (pointed out
1896 by Jesse Rosenthal). The problem arose when the blank line
1897 at the end of a footnote block contained indenting spaces.
1899 * Shared: Improved 'normalize' function so it normalizes Spaces too.
1900 In normal form, Space elements only occur to separate two non-Space
1901 elements. So, we never have [Space], or [, ..., Space].
1903 * Tests:
1905 + Improved Arbitrary instance.
1906 + Added timeout for test instances.
1908 * README:
1910 + Added section on four-space rule for lists. Resolves Issue #283.
1911 + Clarified optional arguments on math options.
1913 * markdown2pdf: Fixed bug with output file extensions.
1914 Previously `markdown2pdf test.txt -o test.en.pdf` would produce
1915 `test.pdf`, not `test.en.pdf`. Thanks to Paolo Tanimoto for the fix.
1917pandoc (1.8.0.1)
1919 * Revised Interact.hs so that it works with the CPP macros
1920 in the UTF8 module.
1922 * Revised Setup.hs so that we don't call MakeManPage.hs unless
1923 the man pages are out of date.
1925pandoc (1.8)
1927 [new features]
1929 * Support for citations using Andrea Rossato's `citeproc-hs` 0.3.
1930 You can now write, for example,
1932 Water is wet [see @doe99, pp. 33-35; also @smith04, ch. 1].
1934 and, when you process your document using `pandoc`, specifying
1935 a citation style using `--csl` and a bibliography using `--bibliography`,
1936 the citation will be replaced by an appropriately formatted
1937 citation, and a list of works cited will be added to the end
1938 of the document.
1940 This means that you can switch effortlessly between different citation
1941 and bibliography styles, including footnote, numerical, and author-date
1942 formats. The bibliography can be in any of the following formats: MODS,
1943 BibTeX, BibLaTeX, RIS, EndNote, EndNote XML, ISI, MEDLINE, Copac, or JSON.
1944 See the README for further details.
1946 Citations are supported in the markdown reader, using a special
1947 syntax, and in the LaTeX reader, using natbib or biblatex syntax.
1948 (Thanks to Nathan Gass for the natbib and biblatex support.)
1950 * New `textile` reader and writer. Thanks to Paul Rivier for contributing
1951 the `textile` reader, an almost complete implementation of the textile
1952 syntax used by the ruby [RedCloth library](http://redcloth.org/textile).
1953 Resolves Issue #51.
1955 * New `org` writer, for Emacs Org-mode, contributed by Puneeth Chaganti.
1957 * New `json` reader and writer, for reading and writing a JSON
1958 representation of the native Pandoc AST. These are much faster
1959 than the `native` reader and writer, and should be used for
1960 serializing Pandoc to text. To convert between the JSON representation
1961 and native Pandoc, use `encodeJSON` and `decodeJSON` from
1962 `Text.JSON.Generic`.
1964 * A new `jsonFilter` function in `Text.Pandoc` makes it easy
1965 to write scripts that transform a JSON-encoded pandoc document.
1966 For example:
1968 -- removelinks.hs - removes links from document
1969 import Text.Pandoc
1970 main = interact $ jsonFilter $ bottomUp removeLink
1971 where removeLink (Link xs _) = Emph xs
1972 removeLink x = x
1974 To use this to remove links while translating markdown to LaTeX:
1976 pandoc -t json | runghc removelinks.hs | pandoc -f json -t latex
1978 * Attributes are now allowed in inline `Code` elements, for example:
1980 In this code, `ulist ! [theclass "special"] << elts`{.haskell} is...
1982 The attribute syntax is the same as for delimited code blocks.
1983 `Code` inline has an extra argument place for attributes, just like
1984 `CodeBlock`. Inline code will be highlighted in HTML output, if pandoc
1985 is compiled with highlighting support. Resolves Issue #119.
1987 * New `RawBlock` and `RawInline` elements (replacing `RawHtml`,
1988 `HtmlInline`, and `TeX`) provide lots of flexibility in writing
1989 scripts to transform Pandoc documents. Scripts can now change
1990 how each element is rendered in each output format.
1992 * You can now define LaTeX macros in markdown documents, and pandoc
1993 will apply them to TeX math. For example,
1995 \newcommand{\plus}[2]{#1 + #2}
1996 $\plus{3}{4}$
1998 yields `3+4`. Since the macros are applied in the reader, they
1999 will work in every output format, not just LaTeX.
2001 * LaTeX macros can also be used in LaTeX documents (both in math
2002 and in non-math contexts).
2004 * A new `--mathjax` option has been added for displaying
2005 math in HTML using MathJax. Resolves issue #259.
2007 * Footnotes are now supported in the RST reader. (Note, however,
2008 that unlike docutils, pandoc ignores the numeral or symbol used in
2009 the note; footnotes are put in an auto-numbered ordered list.)
2010 Resolves Issue #258.
2012 * A new `--normalize` option causes pandoc to normalize the AST
2013 before writing the document. This means that, for example,
2014 `*hi**there*` will be rendered as `<em>hithere</em>`
2015 instead of `<em>hi</em><em>there</em>`. This is not the default,
2016 because there is a significant performance penalty.
2018 * A new `--chapters` command-line option causes headers
2019 in DocBook, LaTeX, and ConTeXt to start with "chapter" (level one).
2020 Resolves Issue #265.
2022 * In DocBook output, `<chapter>` is now used for top-level
2023 headers if the template contains `<book>`. Resolves Issue #265.
2025 * A new `--listings` option in `pandoc` and `markdown2pdf` causes
2026 the LaTeX writer to use the listings package for code blocks.
2027 (Thanks to Josef Svennigsson for the pandoc patch, and Etienne
2028 Millon for the markdown2pdf patch.)
2030 * `markdown2pdf` now supports `--data-dir`.
2032 * URLs in autolinks now have class "url" so they can be styled.
2034 * Improved prettyprinting in most formats. Lines will be wrapped
2035 more evenly and duplicate blank lines avoided.
2037 * New `--columns` command-line option sets the column width for
2038 line wrapping and relative width calculations for tables.
2040 * Made `--smart` work in HTML, RST, and Textile readers, as well
2041 as markdown.
2043 * Added `--html5` option for HTML5 output.
2045 * Added support for listings package in LaTeX reader
2046 (Puneeth Chaganti).
2048 * Added support for simple tables in the LaTeX reader.
2050 * Added support for simple tables in the HTML reader.
2052 * Significant performance improvements in many readers and writers.
2054 [API and program changes]
2056 * Moved `Text.Pandoc.Definition` from the `pandoc` package to a new
2057 auxiliary package, `pandoc-types`. This will make it possible for other
2058 programs to supply output in Pandoc format, without depending on the whole
2059 pandoc package.
2061 * Added `Attr` field to `Code`.
2063 * Removed `RawHtml`, `HtmlInline`, and `TeX` elements; added generic
2064 `RawBlock` and `RawInline`.
2066 * Moved generic functions to `Text.Pandoc.Generic`. Deprecated
2067 `processWith`, replacing it with two functions, `bottomUp` and `topDown`.
2068 Removed previously deprecated functions `processPandoc` and `queryPandoc`.
2070 * Added `Text.Pandoc.Builder`, for building `Pandoc` structures.
2072 * `Text.Pandoc` now exports association lists `readers` and `writers`.
2074 * Added `Text.Pandoc.Readers.Native`, which exports `readNative`.
2075 `readNative` can now read full pandoc documents, block lists, blocks,
2076 inline lists, or inlines. It will interpret `Str "hi"`
2077 as if it were `Pandoc (Meta [] [] []) [Plain [Str "hi"]]`.
2078 This should make testing easier.
2080 * Removed deprecated `-C/--custom-header` option.
2081 Use `--template` instead.
2083 * `--biblio-file` has been replaced by `--bibliography`.
2084 `--biblio-format` has been removed; pandoc now guesses the format
2085 from the file extension (see README).
2087 * pandoc will treat an argument as a URI only if it has an
2088 `http(s)` scheme. Previously pandoc would treat some
2089 Windows pathnames beginning with `C:/` as URIs.
2091 * The `--sanitize-html` option and the `stateSanitize` field in
2092 `ParserState` have been removed. Sanitization is better done in the
2093 resulting HTML using `xss-sanitize`, which is based on pandoc's
2094 sanitization, but improved.
2096 * pandoc now adds a newline to the end of its output in fragment
2097 mode (= not `--standalone`).
2099 * Added support for `lang` in `html` tag in the HTML template,
2100 so you can do `pandoc -s -V lang=es`, for example.
2102 * `highlightHtml` in `Text.Pandoc.Highlighting` now takes
2103 a boolean argument that selects between "inline" and
2104 "block" HTML.
2106 * `Text.Pandoc.Writers.RTF` now exports `rtfEmbedImage`.
2107 Images are embedded in RTF output when possible (png, jpeg).
2108 Resolves Issue #275.
2110 * Added `Text.Pandoc.Pretty`. This is better suited for pandoc than the
2111 `pretty` package. Changed all writers that used
2112 `Text.PrettyPrint.HughesPJ` to use `Text.Pandoc.Pretty` instead.
2114 * Rewrote `writeNative` using the new prettyprinting module. It is
2115 now much faster. The output has been made more consistent and compressed.
2116 `writeNative` is also now sensitive to writerStandalone`, and will simply
2117 `print a block list if writerStandalone` is False.
2119 * Removed `Text.Pandoc.Blocks`. `Text.Pandoc.Pretty` allows you to define
2120 blocks and concatenate them, so a separate module is no longer needed.
2122 * `Text.Pandoc.Shared`:
2124 + Added `writerColumns`, `writerChapters`, and `writerHtml5` to
2125 `WriterOptions`.
2126 + Added `normalize`.
2127 + Removed unneeded prettyprinting functions:
2128 `wrapped`, `wrapIfNeeded`, `wrappedTeX`, `wrapTeXIfNeeded`, `hang'`,
2129 `BlockWrapper`, `wrappedBlocksToDoc`.
2130 + Made `splitBy` take a test instead of an element.
2131 + Added `findDataFile`, refactored `readDataFile`.
2132 + Added `stringify`. Rewrote `inlineListToIdentifier` using `stringify`.
2133 + Fixed `inlineListToIdentifier` to treat '\160' as ' '.
2135 * `Text.Pandoc.Readers.HTML`:
2137 + Removed `rawHtmlBlock`, `anyHtmlBlockTag`, `anyHtmlInlineTag`,
2138 `anyHtmlTag`, `anyHtmlEndTag`, `htmlEndTag`, `extractTagType`,
2139 `htmlBlockElement`, `htmlComment`
2140 + Added `htmlTag`, `htmlInBalanced`, `isInlineTag`, `isBlockTag`,
2141 `isTextTag`
2143 * Moved `smartPunctuation` from `Text.Pandoc.Readers.Markdown`
2144 to `Text.Pandoc.Readers.Parsing`, and parameterized it with
2145 an inline parser.
2147 * Added `nonspaceChar` to `Text.Pandoc.Parsing`.
2149 * Ellipses are no longer allowed to contain spaces.
2150 Previously we allowed '. . .', ' . . . ', etc. This caused
2151 too many complications, and removed author's flexibility in
2152 combining ellipses with spaces and periods.
2154 * Allow linebreaks in URLs (treat as spaces). Also, a string of
2155 consecutive spaces or tabs is now parsed as a single space. If you have
2156 multiple spaces in your URL, use `%20%20`.
2158 * `Text.Pandoc.Parsing`:
2160 + Removed `refsMatch`.
2161 + Hid `Key` constructor.
2162 + Removed custom `Ord` and `Eq` instances for `Key`.
2163 + Added `toKey` and `fromKey` to convert between `Key` and `[Inline]`.
2164 + Generalized type on `readWith`.
2166 * Small change in calculation of relative widths of table columns.
2167 If the size of the header > the specified column width, use
2168 the header size as 100% for purposes of calculating
2169 relative widths of columns.
2171 * Markdown writer now uses some pandoc-specific features when `--strict`
2172 is not specified: `\` newline is used for a hard linebreak instead of
2173 two spaces then a newline. And delimited code blocks are used when
2174 there are attributes.
2176 * HTML writer: improved gladTeX output by setting ENV appropriately
2177 for display or inline math (Jonathan Daugherty).
2179 * LaTeX writer: Use `\paragraph`, `\subparagraph` for level 4,5 headers.
2181 * LaTeX reader:
2183 + `\label{foo}` and `\ref{foo}` now become `{foo}` instead of `(foo)`.
2184 + `\index{}` commands are skipped.
2186 * Added `fontsize` variable to default LaTeX template.
2187 This makes it easy to set the font size using `markdown2pdf`:
2188 `markdown2pdf -V fontsize=12pt input.txt`.
2190 * Fixed problem with strikeout in LaTeX headers when using
2191 hyperref, by adding a command to the default LaTeX template
2192 that disables `\sout` inside pdf strings. Thanks to Joost Kremers
2193 for the fix.
2195 * The `COLUMNS` environment variable no longer has any effect.
2197 [under-the-hood improvements]
2199 * Pandoc now compiles with GHC 7. (This alone leads to a
2200 significant performance improvement, 15-20%.)
2202 * Completely rewrote HTML reader using tagsoup as a lexer. The
2203 new reader is faster and more accurate. Unlike the
2204 old reader, it does not get bogged down on some input
2205 (Issues #277, 255). And it handles namespaces in tags
2206 (Issue #274).
2208 * Replaced `escapeStringAsXML` with a faster version.
2210 * Rewrote `spaceChar` and some other parsers in Text.Pandoc.Parsing
2211 for a significant performance boost.
2213 * Improved performance of all readers by rewriting parsers.
2215 * Simplified Text.Pandoc.CharacterReferences by using
2216 entity lookup functions from TagSoup.
2218 * `Text.Pandoc.UTF8` now uses the unicode-aware IO functions
2219 from `System.IO` if base >= 4.2. This gives support for
2220 windows line endings on windows.
2222 * Remove duplications in documentation by generating the
2223 pandoc man page from README, using `MakeManPage.hs`.
2225 * README now includes a full description of markdown syntax,
2226 including non-pandoc-specific parts. A new `pandoc_markdown`
2227 man page is extracted from this, so you can look up markdown
2228 syntax by doing `man pandoc_markdown`.
2230 * Completely revised test framework (with help from Nathan Gass).
2231 The new test framework is built when the `tests` Cabal flag is set. It
2232 includes the old integration tests, but also some new unit and quickcheck
2233 tests. Test output has been much improved, and you can now specify a glob
2234 pattern after `cabal test` to indicate which tests should be run;
2235 for example `cabal test citations` will run all the citation tests.
2237 * Added a shell script, `stripansi.sh`, for filtering ANSI control
2238 sequences from test output: `cabal test | ./stripansi.sh > test.log`.
2240 * Added `Interact.hs` to make it easier to use ghci while developing.
2241 `Interact.hs` loads `ghci` from the `src` directory, specifying
2242 all the options needed to load pandoc modules (including
2243 specific package dependencies, which it gets by parsing
2244 dist/setup-config).
2246 * Added `Benchmark.hs`, testing all readers + writers using criterion.
2248 * Added `stats.sh`, to make it easier to collect and archive
2249 benchmark and lines-of-code stats.
2251 * Added upper bounds to all cabal dependencies.
2253 * Include man pages in extra-source-files. This allows users to
2254 install pandoc from the tarball without needing to build the man
2255 pages.
2257 [bug fixes]
2259 * Filenames are encoded as UTF8. Resolves Issue #252.
2261 * Handle curly quotes better in `--smart` mode. Previously, curly quotes
2262 were just parsed literally, leading to problems in some output formats.
2263 Now they are parsed as `Quoted` inlines, if `--smart` is specified.
2264 Resolves Issue #270.
2266 * Text.Pandoc.Parsing: Fixed bug in grid table parser.
2267 Spaces at end of line were not being stripped properly,
2268 resulting in unintended LineBreaks.
2270 * Markdown reader:
2272 + Allow HTML comments as inline elements in markdown.
2273 So, `aaa <!-- comment --> bbb` can be a single paragraph.
2274 + Fixed superscripts with links: `^[link](/foo)^` gets
2275 recognized as a superscripted link, not an inline note followed by
2276 garbage.
2277 + Fixed regression, making markdown reference keys case-insensitive again.
2278 Resolves Issue #272.
2279 + Properly handle abbreviations (like `Mr.`) at the end of a line.
2280 + Better handling of intraword underscores, avoiding exponential
2281 slowdowns in some cases. Resolves Issue #182.
2282 + Fixed bug in alignments in tables with blank rows in the header.
2284 * RST reader:
2286 + Field lists now allow spaces in field names, and
2287 block content in field values. (Thanks to Lachlan Musicman
2288 for pointing out the bug.)
2289 + Definition list items are now always `Para` instead of
2290 `Plain`, matching behavior of `rst2xml.py`.
2291 + In image blocks, the description is parsed properly and
2292 used for the alt attribute, not also the title.
2293 + Skip blank lines at beginning of file. Resolves
2294 Debian #611328.
2296 * LaTeX reader:
2298 + Improved parsing of preamble.
2299 Previously you'd get unexpected behavior on a document that
2300 contained `\begin{document}` in, say, a verbatim block.
2301 + Allow spaces between `\begin` or `\end` and `{`.
2302 + Support `\L` and `\l`.
2303 + Skip comments inside paragraphs.
2305 * LaTeX writer:
2307 + Escape strings in `\href{..}`.
2308 + In nonsimple tables, put cells in `\parbox`.
2310 * OpenDocument writer: don't print raw TeX.
2312 * Markdown writer:
2314 + Fixed bug in `Image`. URI was getting unescaped twice!
2315 + Avoid printing extra blank lines at the end if there are
2316 no notes or references.
2318 * LaTeX and ConTeXt: Escape `[` and `]` as `{[}` and `{]}`.
2319 This avoids unwanted interpretation as an optional argument.
2321 * ConTeXt writer: Fixed problem with inline code. Previously
2322 `}` would be rendered `\type{}}`. Now we check the string for '}' and '{'.
2323 If it contains neither, use `\type{}`; otherwise use `\mono{}`
2324 with an escaped version of the string.
2326 * `:` now allowed in HTML tags. Resolves Issue #274.
2328pandoc (1.6)
2330 [ John MacFarlane ]
2332 * New EPUB and HTML Slidy writers. (Issue #122)
2334 - EPUB is a standard ebook format, used in Apple's iBooks for
2335 the iPad and iPhone, Barnes and Noble's nook reader, the Sony
2336 reader, and many other devices.
2337 - Slidy, like S5, is a system for producing HTML+javascript slide
2338 shows.
2340 * All input is assumed to be UTF-8, no matter what the locale and ghc
2341 version, and all output is UTF-8. This reverts to pre-1.5 behavior.
2342 Also, a BOM, if present, is stripped from the input.
2344 * Markdown now supports grid tables, whose cells can contain
2345 arbitrary block elements. (Issue #43)
2347 * Sequentially numbered example lists in markdown with `@` marker.
2349 * Markdown table captions can begin with a bare colon and no longer need
2350 to include the English word "table." Also, a caption can now occur
2351 either before or after the table. (Issue #227)
2353 * New command-line options:
2355 - `--epub-stylesheet` allows you to specify a CSS file that will
2356 be used to style your ebook.
2357 - `--epub-metadata` allows you to specify metadata for the ebook.
2358 - `--offline` causes the generated HTML slideshow to include all
2359 needed scripts and stylesheets.
2360 - `--webtex` causes TeX math to be converted to images using the
2361 Google Charts API (unless a different URL is specified).
2362 - `--section-divs` causes div tags to be added around each section
2363 in an HTML document. (Issue #230, 239)
2365 * Default behavior of S5 writer in standalone mode has changed:
2366 previously, it would include all needed scripts and stylesheets
2367 in the generated HTML; now, only links are included unless
2368 the `--offline` option is used.
2370 * Default behavior of HTML writer has changed. Between 1.2 and 1.5,
2371 pandoc would enclose sections in div tags with identifiers on the
2372 div tags, so that the sections can be manipulated in javascript.
2373 This caused undesirable interactions with raw HTML div tags. So,
2374 starting with 1.6, the default is to put the identifiers directly
2375 on the header tags, and not to include the divs. The `--section-divs`
2376 option selects the 1.2-1.5 behavior.
2378 * API changes:
2380 - `HTMLMathMethod`: Added `WebTeX`, removed `MimeTeX`.
2381 - `WriterOptions`: Added `writerUserDataDir`, `writerSourceDirectory`,
2382 `writerEPUBMetadata` fields. Removed `writerIncludeBefore`,
2383 `writerIncludeAfter`.
2384 - Added `headerShift` to `Text.Pandoc.Shared`.
2385 - Moved parsing code and `ParserState` from `Text.Pandoc.Shared`
2386 to a new module, `Text.Pandoc.Parsing`.
2387 - Added `stateHasChapters` to `ParserState`.
2388 - Added `HTMLSlideVariant`.
2389 - Made `KeyTable` a map instead of an association list.
2390 - Added accessors for `Meta` fields (`docTitle`, `docAuthors`,
2391 `docDate`).
2392 - `Pandoc`, `Meta`, `Inline`, and `Block` have been given `Ord`
2393 instances.
2394 - Reference keys now have a type of their own (`Key`), with its
2395 own `Ord` instance for case-insensitive comparison.
2396 - Added `Text.Pandoc.Writers.EPUB`.
2397 - Added `Text.Pandoc.UUID`.
2398 - Removed `Text.Pandoc.ODT`, added `Text.Pandoc.Writers.ODT`.
2399 Removed `saveOpenDocumentAsODT`, added `writeODT`.
2400 - Added `Text.Pandoc.Writers.Native` and `writeNative`.
2401 Removed `prettyPandoc`.
2402 - Added `Text.Pandoc.UTF8` for portable UTF8 string IO.
2403 - Removed `Text.Pandoc.Writers.S5` and the `writeS5` function.
2404 Moved `s5Includes` to a new module, `Text.Pandoc.S5`.
2405 To write S5, you now use `writeHtml` with `writerSlideVariant`
2406 set to `S5Slides` or `SlidySlides`.
2408 * Template changes. If you use custom templates, please update them,
2409 particularly if you use syntax highlighting with pandoc. The old HTML
2410 templates hardcoded highlighting CSS that will no longer work with
2411 the most recent version of highlighting-kate.
2413 - HTML template: avoid empty meta tag if no date.
2414 - HTML template: Use default highlighting CSS from highlighting-kate
2415 instead of hard-coding the CSS into the template.
2416 - HTML template: insert-before text goes before the title, and
2417 immediately after the <body> tag, as documented. (Issue #241)
2418 - Added slidy and s5 templates.
2419 - Added amssymb to preamble of latex template. (github Issue 1)
2421 * Removed excess newlines at the end of output. Note: because output
2422 will not contain an extra newline, you may need to make adjustments
2423 if you are inserting pandoc's output into a template.
2425 * In S5 and slidy, horizontal rules now cause a new slide, so you
2426 are no longer limited to one slide per section.
2428 * Improved handling of code in man writer. Inline code is now monospace,
2429 not bold, and code blocks now use .nf (no fill) and .IP (indented para).
2431 * HTML reader parses `<tt>` as Code. (Issue #247)
2433 * html+lhs output now contains bird tracks, even when compiled without
2434 highlighting support. (Issue #242)
2436 * Colons are now no longer allowed in autogenerated XML/HTML identifiers,
2437 since they have a special meaning in XML.
2439 * Code improvements in ODT writer. Remote images are now replaced with
2440 their alt text rather than a broken link.
2442 * LaTeX reader improvements:
2444 - Made latex `\section`, `\chapter` parsers more forgiving of
2445 whitespace.
2446 - Parse `\chapter{}` in latex.
2447 - Changed `rawLaTeXInline` to accept `\section`, `\begin`, etc.
2448 - Use new `rawLaTeXInline'` in LaTeX reader, and export `rawLaTeXInline`
2449 for use in markdown reader.
2450 - Fixes bug wherein `\section{foo}` was not recognized as raw TeX
2451 in markdown document.
2453 * LaTeX writer: images are automatically shrunk if they would extend
2454 beyond the page margin.
2456 * Plain, markdown, RST writers now use unicode for smart punctuation.
2458 * Man writer converts math to unicode when possible, as in other writers.
2460 * `markdown2pdf` can now recognize citeproc options.
2462 * Command-line arguments are converted to UTF-8. (Issue #234)
2464 * `Text.Pandoc.TeXMath` has been rewritten to use texmath's parser.
2465 This allows it to handle a wider range of formulas. Also, if a formula
2466 cannot be converted, it is left in raw TeX; formulas are no longer
2467 partially converted.
2469 * Unicode curly quotes are left alone when parsing smart quotes. (Issue
2470 #143)
2472 * Cabal file changes:
2474 - Removed parsec < 3 restriction.
2475 - Added 'threaded' flag for architectures where GHC lacks a threaded
2476 runtime.
2477 - Use 'threaded' only for markdown2pdf; it is not needed for pandoc.
2478 - Require highlighting-kate 0.2.7.
2480 * Use explicit imports from `Data.Generics`. Otherwise we have a
2481 conflict with the 'empty' symbol, introduced in syb >= 0.2. (Issue #237)
2483 * New data files: slidy/slidy.min.js, slidy/slidy.min.css, epub.css.
2485pandoc (1.5.1.1)
2487 [ John MacFarlane ]
2489 * Fixed uniqueIdent in Shared so that header identifiers work as
2490 advertized in the README and are are valid XHTML names.
2492pandoc (1.5.1)
2494 [ John MacFarlane ]
2496 * Fixed treatment of unicode characters in URIs.
2497 + Shared now exports escapeURI and unescapeURI. These handle
2498 UTF8 encoding and decoding as well as URI escaping/unescaping.
2499 + Shared: uri and emailAddress now return a pair of the original
2500 parsed text and the escaped URI (in the latter case, with
2501 the mailto: prefix).
2502 + HTML reader: unsanitaryURI has been modified to allow unicode
2503 high characters in a URI.
2504 + Readers: All link and image URIs are now escaped using
2505 escapeURI.
2506 + Markdown and RST writers: unescapeURI is used so that URIs
2507 in these formats are human-readable.
2509 * Setup.hs: Don't assume that the build directory is "dist".
2510 Instead, get it from localBuildInfo.
2512 * OpenDocument writer: Use a Map for stTextStyleAttr.
2513 This avoids duplicates (and invalid xml). Resolves Issue #222.
2515pandoc (1.5.0.1)
2517 [ John MacFarlane ]
2519 * HTML writer: Fixed error in math writer (with MathML option)
2520 that caused an infinite loop for unparsable MathML.
2522pandoc (1.5)
2524 [ John MacFarlane ]
2526 * Added --mathml option. When this is selected, pandoc will convert
2527 TeX math into MathML.
2528 + Added data/MathMLinHTML.js, which is included when no URL is
2529 provided for --mathml. This allows MathML to be displayed (in
2530 better browsers) as text/html.
2531 + Removed Text.Pandoc.LaTeXMathML. The module was no longer
2532 necessary; it was replaced by two lines in pandoc.hs.
2533 + Replaced LaTeXMathML.js.commend and LaTeXMathML.js.packed with a
2534 single combined file, LaTeXMathML.js.
2536 * Added --data-dir option.
2537 This specifies a user data directory. If not specified, will default
2538 to ~/.pandoc on unix or Application Data\pandoc on Windows.
2539 Files placed in the user data directory will override system default
2540 data files.
2542 * Added Maybe datadir parameter to readDataFile, saveOpenDocumentAsODT,
2543 latexMathMLScript, s5HeaderIncludes, and getDefaultTemplate. If
2544 Nothing, no user directory is searched for an override.
2546 * Added 'plain' output format. This is similar to markdown, but
2547 removes links, pictures, inline formatting, and most anything that
2548 looks even vaguely markupish. The function writePlain is exported by
2549 Text.Pandoc.Writers.Markdown, with which it shares most of its code.
2551 * Allow multi-line titles and authors in meta block.
2552 Titles may span multiple lines, provided continuation lines
2553 begin with a space character. Separate authors may be put on
2554 multiple lines, provided each line after the first begins with
2555 a space character. Each author must fit on one line. Multiple
2556 authors on a single line may still be separated by a semicolon.
2557 Based on a patch by Justin Bogner.
2559 * When given an absolute URI as parameter, pandoc will try to fetch
2560 the content via HTTP. So you can do:
2561 'pandoc -r html -w markdown http://www.fsf.org'
2562 Adds dependency on HTTP.
2564 * Made HTML reader much more forgiving.
2565 + Incorporated idea (from HXT) that an element can be closed
2566 by an open tag for another element.
2567 + Javascript is partially parsed to make sure that a <script>
2568 section is not closed by a </script> in a comment or string.
2569 + More lenient non-quoted attribute values.
2570 Now we accept anything but a space character, quote, or <>.
2571 This helps in parsing e.g. www.google.com!
2572 + Bare & signs are now parsed as a string. This is a common
2573 HTML mistake.
2574 + Skip a bare < in malformed HTML.
2576 * Removed html2markdown and hsmarkdown.
2577 + html2markdown is no longer needed, since you can now pass URI
2578 arguments to pandoc and directly convert web pages. (Note,
2579 however, that pandoc assumes the pages are UTF8. html2markdown
2580 made an attempt to guess the encoding and convert them.)
2581 + hsmarkdown is pointless -- a large executable that could be
2582 replaced by 'pandoc --strict'.
2584 * In most writers, an image in a paragraph by itself is now rendered
2585 as a figure, with the alt text as the caption. (Texinfo, HTML, RST,
2586 MediaWiki, Docbook, LaTeX, ConTeXt, HTML.) Other images are
2587 rendered inline.
2589 * Depend on extensible-exceptions. This allows pandoc to be compiled
2590 on GHC 6.8.
2592 * Added --base-header-level option. For example, --base-header-level=2
2593 will change level 1 headers to level 2, level 2 to level 3, etc.
2594 Closes Debian #563416.
2596 * Incomplete support for RST tables (simple and grid).
2597 Thanks to Eric Kow. Colspans and rowspans not yet supported.
2599 * Added accessors (docTitle, docAuthors, docDate) to Meta type.
2601 * MediaWiki writer: format links with relative URLs as wikilinks.
2602 The new rule: If the link target is an absolute URL, an external
2603 link is created. Otherwise, a wikilink is created.
2605 * Text.Pandoc.Shared: Export uniqueIdent, and don't allow tilde in
2606 identifier. Note: This may break links to sections that involve
2607 tildes.
2609 * Markdown(+lhs) reader: handle "inverse bird tracks."
2610 Inverse bird tracks (<) are used for haskell example code that is not
2611 part of the literate Haskell program. Resolves Issue #211.
2613 * LaTeX reader:
2614 + Recognize '\ ' (interword space).
2615 + Recognize nonbreaking space '~'.
2616 + Ignore \section, \pdfannot, \pdfstringdef. Ignore alt title in
2617 section headers. Don't treat \section as inline LaTeX.
2618 Resolves Issue #202.
2619 + LaTeX reader: allow any special character to be escaped.
2620 Resolves Issue #221.
2621 + LaTeX reader: treat \paragraph and \subparagraph as level 4, 5
2622 headers. Resolves Issue #207.
2624 * Use template variables for include-before/after.
2625 + These options now imply -s; previously they worked also in fragment
2626 mode.
2627 + Users can now adjust position of include-before and include-after
2628 text in the templates.
2629 + Default position of include-before moved back (as it was before 1.4)
2630 before table of contents.
2631 + Resolves Issue #217.
2633 * Don't print an empty table header: (all writers).
2634 Resolves Issue #210.
2636 * HTML, Docbook writer: Use tbody, thead, and cols in tables.
2638 * HTML writer: Don't include TOC div if table of contents is empty.
2640 * Markdown writer: Fixed citations.
2641 Previously the markdown writer printed raw citation codes, e.g.
2642 [geach1970], rather than the expanded citations provided by
2643 citeproc, e.g. (Geach 1970). Now it prints the expanded citations.
2644 This means that the document produced can be processed as a markdown
2645 document without citeproc. Thanks to dsanson for reporting, and
2646 Andrea Rossato for the patch.
2648 * Improved and simplified title block in context template.
2649 Previously it caused an error if there was no title.
2650 This method should also be easier for users to customize.
2652 * Markdown reader:
2653 + Treat p., pp., sec., ch., as abbreviations in smart mode.
2654 + Disallow blank lines in inline code span.
2655 + Allow footnotes to be indented < 4 spaces.
2656 This fixes a regression. A test case has been added.
2657 + Escape spaces in URLs as %20. Previously they were incorrectly
2658 escaped as +, which is appropriate only for the query part of
2659 a URL. Resolves Issue #220.
2660 + Require two spaces after capital letter + period for list item.
2661 Otherwise "E. coli" starts a list. This might change the semantics
2662 of some existing documents, since previously the two-space
2663 requirement was only enforced when the second word started
2664 with a capital letter. But it is consistent with the existing
2665 documentation and follows the principle of least surprise.
2666 Resolves Issue #212.
2668 * LaTeX template: redefine labelwidth when using enumerate package.
2669 Otherwise the list labels (numbers) often extend past the left
2670 margin, which looks bad.
2672 * Mediawiki writer: Don't print a "== Notes ==" header before
2673 references. This is too English-centric. Writers can provide their
2674 own header at the end of the document.
2676 * Promoted mediawiki headers. '= head =' is now level 1, '== head =='
2677 level 2, etc. This seems to be correct; it's only by convention
2678 that wikipedia articles have level 2 headers at most.
2679 Patch due to Eric Kow.
2681 * RunTests.hs: Set LANG to a UTF-8 locale. Use 'pandoc --data-dir=' so
2682 data files don't need to have been installed. This removes the need to
2683 set HOME.
2685 * HTML reader:
2686 + Handle spaces before <html>. Resolves Issue #216.
2687 + Be forgiving in parsing a bare list within a list.
2688 The following is not valid xhtml, but the intent is clear:
2689 <ol>
2690 <li>one</li>
2691 <ol><li>sub</li></ol>
2692 <li>two</li>
2693 </ol>
2694 We'll treat the <ol> as if it's in a <li>. Resolves Issue #215.
2696 * Updated INSTALL instructions. cabal method is now promoted.
2698 * Updated markdown2pdf man page. It no longer says all pandoc options
2699 are accepted.
2701 * README/man pages: Removed advice to pipe through tidy before HTML
2702 reader. This is obsolete, now that we have a forgiving HTML parser.
2704 * LaTeX writer: set numbersections template variable, so
2705 the section numbering options work again.
2707 * Removed obsolete Makefile.
2709 * Website: renamed index.txt.in -> index.txt.
2711 * New batch file to make-windows-installer.
2712 + Removed old Makefile.windows
2713 + Added make-windows-installer.bat
2714 + Modified default installer name in pandoc-setup.iss
2716 * Removed freebsd and macports directories.
2717 They are no longer up to date.
2719 * Setup.hs:
2720 + Made man page building sensitive to build verbosity.
2721 + Improved detection of highlighting support in test hook.
2722 + Install wrapper scripts into cabal bin directory.
2723 + Also simplified installManpages.
2724 + Setup.hs: install manpages to mandir. Code borrowed from darcs.
2726 * Changed default of writerXeTeX to False.
2728 * HTML writer: don't include empty UL if --toc but no sections.
2729 Resolves Issue #199.
2731 * LaTeX writer:
2733 + If book, report, or memoir documentclass, use \chapter{}
2734 for first-level headers. Otherwise use \section{}.
2735 + Removed stLink, link template variable. Reason: we now always
2736 include hyperref in the template.
2738 * LaTeX template:
2740 + Only show \author if there are some.
2741 + Always include hyperref package. It is used not just for links but
2742 for toc, section heading bookmarks, footnotes, etc. Also added
2743 unicode=true on hyperref options.
2745 * markdown2pdf: always do at least two runs. hyperref bookmarks
2746 require this.
2748 * cabal file: Removed unneeded dependency on template-haskell.
2750 * Windows installer - fixed bug in data file locations.
2751 Resolves Issue #197.
2753 * Deprecated --custom-header in documentation.
2754 Removed old "Custom Headers" section in README.
2756pandoc (1.4)
2758 [ John MacFarlane ]
2760 * Pandoc will now compile with either GHC 6.10 or 6.12.
2761 + Don't use System.IO.UTF8 when compiling with 6.12
2762 + Use -fno-warn-unused-do-bind option when compiling with 6.12
2764 * Replaced old headers with templates. Now users have much more
2765 control over the way documents appear in --standalone mode,
2766 and writer code is simplified. Resolves Issues #59, 147.
2767 Every effort has been made to retain backwards compatibilty.
2768 So, the --custom-header option should still work as before.
2770 + Added Text.Pandoc.Templates. This provides functions for
2771 retrieving default templates and for rendering templates.
2772 + System templates (in the pandoc data directory) can be
2773 overridden by user templates in $HOME/.pandoc/templates.
2774 + Removed Text.Pandoc.DefaultHeaders.
2775 + Removed data/headers directory.
2776 + Added templates directory.
2777 + Added writerTemplate and writerVariables fields to WriterOptions.
2778 + Removed writerTitlePrefix, writerHeader fields from WriterOptions.
2779 + Changed --print-default-header to --print-default-template.
2780 + Added --template option.
2781 + Added -V/--variable option to set custom template variables.
2783 * Pandoc no longer requires Template Haskell. Resolves Issue #186.
2785 + Removed need for TH in ODT module. Instead get reference.odt from
2786 data file at run time.
2787 + Removed TH dependency from S5 module. S5 module now exports
2788 s5HeaderIncludes, which pandoc.hs includes if writer is s5 and
2789 standalone.
2790 + Refactored LaTeXMathML not to use TH.
2792 * Meta is now Meta [Inline] [[Inline]] [Inline] rather than
2793 Meta [Inline] [String] String. Authors and date in Meta are now lists
2794 of Inline elements rather than raw strings. This means that they can
2795 be formatted and can include footnotes. NOTE: This may be a breaking
2796 change for those using pandoc as a library.
2798 * Added readDataFile to Text.Pandoc.Shared. This retrieves
2799 a data file from the user pandoc data directory (~/.pandoc
2800 on unix), or, if not found there, from the system data
2801 directory ($CABALDIR/shared/pandoc-VERSION/). All data
2802 files, including templates, LaTeXMathML.js, s5 styles,
2803 and reference.odt, can be overridden by the user.
2805 * s5 files moved from data/ui/default to s5/default.
2807 * Use unicode instead of entities in HTML and XML output. Resolves
2808 Issue #163.
2810 * Prettier HTML footnote references: put anchor inside sup,
2811 instead of other way. Resolves Issue #191. Thanks to
2812 infinity0x.
2814 * Added --xetex option to pandoc and markdown2pdf.
2815 If --xetex is specified, pandoc produces latex suitable for
2816 processing by xelatex, and markdown2pdf uses xelatex to create
2817 the PDF. Resolves Issue #185.
2819 * RTF writer: multiple authors now occupy multiple paragraphs rather
2820 than using a line break.
2822 * Man writer: now the "--after-body" will come after the "AUTHORS"
2823 section, whereas before it would come before it. This is a
2824 slight break from backwards compatibility.
2826 * Added --reference-odt option, so users may customize the styles
2827 used in pandoc-generated ODT files. Users may also place a
2828 default reference.odt in the ~\.pandoc directory.
2830 * ODT writer:
2831 + Indented and line-broke styles.xml so it can be modified more easily.
2832 + Omitted some unnecessary style declarations.
2833 + Don't wrap text in OpenDocument writer. The tags are too long, making
2834 wrapping ugly and pointless.
2836 * LaTeX reader: use \\ to separate multiple authors.
2838 * Markdown reader: use ; as separator between authors.
2839 This allows you to use ',' within author names: e.g. "John Jones, Jr."
2841 * S5 writer: use linebreak to separate authors in title page.
2843 * RST reader: Allow :: before lhs code block. The RST spec requires the
2844 :: before verbatim blocks. This :: should not be treated as literal
2845 colons. Resolves Issue #189.
2847 * Documented pandoc 1.3's new definition list syntax in README.
2848 (An oversight in the last release.)
2850 * markdown2pdf.hs:
2851 + interpret ! in a log as an error line.
2852 + --toc now works properly.
2854 * Changes in RunTests.hs:
2855 + Use the Diff library rather than a local copy of Diff.hs.
2856 (This vastly increases performance.) This change means that 'cabal
2857 test' presupposes that the Diff library is installed.
2858 + Removed tests/Diff.hs from cabal file.
2859 + Changed RunTests to use local environment. We need at least HOME, so
2860 pandoc can find its data directory.
2862 * Updated windows installer to install data files in the app directory.
2864 * Windows installer now installs portable wrappers hsmarkdown and
2865 markdown2pdf.
2867pandoc (1.3)
2869 [ John MacFarlane ]
2871 * Added --id-prefix option (Issue #41). This adds a prefix to all
2872 automatically generated HTML identifiers, which helps prevent
2873 duplicate identifiers when you're generating a fragment (say a blog
2874 post).
2876 * Added --indented-code-classes option. This specifies classes
2877 to use for indented code blocks. (Patch due to buttock; Issue #87.)
2879 * --number-sections now affects HTML output as well as ConTeXt and LaTeX
2880 (Issue #150).
2882 * Improved syntax for markdown definition lists (Issue #24).
2883 Definition lists are now more compatible with PHP Markdown Extra.
2884 + You can have multiple definitions for a term (but still not
2885 multiple terms).
2886 + Multi-block definitions no longer need a column before each block
2887 (indeed, this will now cause multiple definitions).
2888 + The marker no longer needs to be flush with the left margin,
2889 but can be indented at or two spaces. Also, ~ as well as :
2890 can be used as the marker (this suggestion due to David
2891 Wheeler.)
2892 + There can now be a blank line between the term and the
2893 definitions.
2895 * Better looking simple tables. Resolves Issue #180.
2896 + Markdown reader: simple tables are now given column widths of 0.
2897 + Column width of 0 is interpreted as meaning: use default column width.
2898 + Writers now include explicit column width information only
2899 for multiline tables. (Exception: RTF writer, which requires
2900 column widths. In this case, columns are given equal widths,
2901 adding up to the text width.)
2902 + Simple tables should now look better in most output formats.
2904 * Allow markdown tables without headers (Issue #50).
2905 The new syntax is described in README. Also allow optional line of
2906 dashes at bottom of simple tables.
2908 * Compensate for width of final table column (Issue #144).
2910 * Treat a backslash followed by a newline as a hard line break
2911 in markdown. Resolves Issue #154. This is a nice alternative
2912 to markdown's "invisible" way of indicating hardline breaks
2913 using lines that end with two spaces.
2915 * Improved performance of markdown reader by ~10% by eliminating the
2916 need for a separate parsing pass for notes. Raw notes are now stored
2917 on the first pass (which parses references), then parsed when the
2918 note is inserted into the AST. The stateNotes field in ParserState
2919 is now a list of [(String, String)] pairs instead of [(String,
2920 [Block])].
2922 * In markdown reader, treat 4 or more * or _ in a row as literal
2923 text. (Trying to parse long strings of * or _ as strong or emph
2924 leads to exponential performance problems.)
2926 * Markdown reader: Use + rather than %20 for spaces in URLs.
2928 * Fixed htmlComment parser, adding a needed 'try'.
2930 * Don't print raw HTML in man output.
2932 * Allow . _ and ~ in header identifiers.
2934 * Specially mark code blocks that were "literate" in the input.
2935 They can then be treated differently in the writers. This allows
2936 authors to distinguish bits of the literate program they are writing
2937 from source code examples, even if the examples are marked as
2938 Haskell for highlighting. (Issue #174.)
2940 * Modified html+lhs output to use "haskell" highlighter instead
2941 of "literateHaskell". The highlighting module now adds bird tracks
2942 after highlighting (for HTML output), if the code block has the
2943 "literate" class. This gives better results, because kate's
2944 haskell highlighter is much better than the literateHaskell
2945 highlighter.
2947 * Fixed handling of footnotes in titles (HTML) and headers (LaTeX).
2948 (Issue #137.)
2950 * Support for "..code-block" directive in RST reader. Not core
2951 RST, but used in Sphinx for code blocks annotated with syntax
2952 information. Thanks to Luke Plant for the patch.
2954 * Added "head" to list of block-level HTML tags. Resolves
2955 Issue #108.
2957 * Added stripTags to Text.Pandoc.XML. This is used in the HTML writer.
2959 * Set utf-8 encoding in texinfo headers.
2961 * Docbook writer: add ids to sections. Use link for internal links.
2962 (Issue #60.)
2964 * Blank lines after lists in MediaWiki writer.
2966 * Properly handle commented-out list items in markdown.
2967 Resolves Issue #142. Example:
2969 - a
2970 <!--
2971 - b
2972 -->
2973 - c
2975 * Changed heuristic in compactify. compactify has to decide whether a
2976 Para that ends a list is a Para intentionally, or just because of
2977 the blank lines at the end of every list. In the latter case the
2978 Para is turned to a Plain. The old heuristic was: change final Para
2979 to Plain iff the other items all end in Plain. This produces bad
2980 results when, for example, an item contains just a Plain and an HTML
2981 comment, as it does in the list above. The new heuristic: change
2982 final Para to Plain iff the other items don't contain a Para.
2984 * Added % as an rst underline character. Resolves Issue #173.
2986 * Fix inline math parser so that \$ is allowed in math.
2987 Resolves Issue #169.
2989 * Translate \int (integral) into unicode when using unicode math
2990 method. Resolves Issue #177.
2992 * markdown2pdf.hs improvements:
2993 + Use System.IO.UTF8.
2994 + Print error messages on last attempt.
2995 + Do not create a backup when overwriting a PDF (Issue #166).
2996 + Accept --longopt=val options.
2997 + Added man/man1/markdown2pdf.1 to extra-tmp-files in cabal, so that
2998 it is properly cleaned.
3000 * Added haddock comments warning that readers assume \n line endings.
3002 * Updated COPYRIGHT file.
3004 * Makefile: Changed EXECSBASE so it doesn't pull in hsmarkdown &
3005 markdown2pdf. Otherwise strip tries to strip shell scripts when you
3006 install using 'make'.
3008 * Changed Makefile so it doesn't build Haskell wrappers.
3010 * Fixed Makefile so it doesn't try to build man pages in build-doc.
3012 * Install pcre3.dll in Windows install script; this allows us to
3013 package a version of pandoc with highlighting support.
3015pandoc (1.2.1)
3017 [ John MacFarlane ]
3019 * Fixed regression with --preserveTabs. Brought back optPreserveTabs.
3020 The trick of setting tabStop to 0 to mean "preserve tabs" had a bad
3021 side effect: strings of 0 spaces were interpreted as indentation.
3022 So, with --preserve-tabs, unindented paragraphs were treated as
3023 code. Resolves Issue #138.
3025 * HTML writer: wrap sections in divs. Resolves Issue #70.
3027 + hierarchicalize has been rationalized; it builds a hierarchical
3028 representation of the document from the headers, and simultaneously
3029 gives each section a unique identifier based on the heading title.
3030 + Identifiers are now attached to the divs rather than
3031 to the headers themselves.
3032 + Table of content backlinks go to the beginning of the table, rather
3033 than to the section reference that was clicked.
3034 + Code for constructing identifiers has been moved to Text.Pandoc.Shared
3035 from the HTML writer, since it is now consumed only by
3036 hierarchicalize.
3037 + In --strict mode, pandoc just prints bare headings, as before
3038 (unless --toc has been specified).
3039 + In s5 output, it does not wrap sections in divs, as that seems to
3040 confuse the s5 javascript.
3042 * Man writer: break lines at end of each sentence. groff expects this
3043 and treats '.' and '?' differently when followed by line ending as
3044 opposed to ordinary space. Also, don't escape periods. Instead, use
3045 zero-width character \& to avoid unwanted interpretation of periods
3046 at start of line. Resolves Issue #148.
3048 * Markdown writer: Added '#' and '>' to list of characters to be
3049 escaped in markdown output. Removed '<', as it is not an officially
3050 escapable character. This partially resolves Issue #96.
3052 * Make --smart the default for man output format. Otherwise we have
3053 trouble dividing lists of endlines into sentences.
3055 * DocBook writer: Use language attribute to indicate source language
3056 in code blocks.
3058 * RST reader:
3060 + Allow # to continue list, even if the list was started with an
3061 explicit marker. For example:
3063 A. my list
3064 #. continued
3066 Resolves Issue #140.
3067 + Allow continuation lines in line blocks. Also added test cases for
3068 line blocks for RST reader. Resolves Issue #149.
3069 + Allow explicit links with spaces in URL: `link <to this>`_
3071 * Improved LaTeX reader's coverage of math modes. Remove displaymath*
3072 (which is not in LaTeX) and recognize all the amsmath environments
3073 that are alternatives to eqnarray, namely equation, equation*,
3074 gather, gather*, gathered, multline, multline*, align, align*,
3075 alignat, alignat*, aligned, alignedat, split. Resolves Issue #103.
3076 Thanks to shreevatsa.public for the patch.
3078 * Markdown reader:
3080 + Allow -, _, :, . in markdown attribute names. These are legal in
3081 XML attribute names.
3082 + Use non-breaking spaces in abbreviations.
3083 + Markdown reader: improved efficiency of abbreviation parsing.
3084 Instead of a separate abbrev parser, we just check for
3085 abbreviations each time we parse a string. This gives a huge
3086 performance boost with -S. Resolves Issue #141.
3088 * Improved efficiency of shared parsers: hexNum, htmlComment,
3089 whitespace, indentSpaces.
3091 * Export HTMLMathMethod in Text.Pandoc.
3093 * Export languagesByExtension in Text.Pandoc.Highlighting.
3095 * Added new Haskell version of markdown2pdf, due to
3096 Paulo Tanimoto. This should be more portable than the old
3097 shell script.
3099 * Made 'pandoc -v' more explicit about compiler options.
3100 Resolves Issue #139.
3102 * pandoc.hs: Made --strict compatible with --standalone, --toc.
3104 * Use Paths_pandoc to get version number, instead of hard-coding it
3105 into Text/Pandoc.hs.
3107pandoc (1.2)
3109 [ John MacFarlane ]
3111 * Added support for literate Haskell. lhs support is triggered by
3112 '+lhs' suffixes in formats. For example, 'latex+lhs' is literate
3113 Haskell LaTeX. '.lhs' files are treated by default as literate
3114 markdown.
3116 + Added stateLiterateHaskell to parser state.
3117 + Added parser for lhsCodeBlock to Markdown, RST, LaTeX readers.
3118 + Added parser for |inline lhs| to LaTeX reader.
3119 + Added writerLiterateHaskell to WriterOptions.
3120 + Added lhs support to Markdown, RST, LaTeX, HTML writers.
3121 + Added definition of code environment to LaTeX header.
3122 + Added tests (run only if highlighting support compiled in).
3123 + Documented lhs features in man page and README.
3125 * In Text.Pandoc.Definition, added processWith, processWithM,
3126 and queryWith, and deprecated processPandoc and queryPandoc
3127 for these more general functions.
3129 * Fixed bug in mediawiki writer: improper closing tags in tables.
3130 Thanks to Benct Philip Jonsson for reporting the bug.
3132 * Added --email-obfuscation option.
3134 + Added writer option for email obfuscation.
3135 + Implemented email obfuscation options in HTML writer.
3136 + Added option to option parser.
3137 + Documented in README and pandoc man page.
3138 + Resolves Issue #97.
3140 * LaTeX writer: fixed bug with empty table cells.
3141 Resolves Issue #107. Thanks to rodja.trappe for the patch.
3143 * Fixed bug with header spacing in Markdown and RST writers.
3144 A null header (Meta [] [] []) should not cause a blank line
3145 at the beginning of output. But a blank line is needed between
3146 a non-null header and the main text.
3148 * Markdown reader: Relax spacing rules for $$ in display math. Now
3149 space and newlines are allowed after the opening $$ and before the
3150 closing $$. However, the display math cannot contain an entirely
3151 blank line. Resolves Issue #105.
3153 * Markdown reader: Gobble space after Plain blocks containing only
3154 raw html inline. Otherwise following header blocks are not parsed
3155 correctly, since the parser sees blank space before them. Resolves
3156 Issue #124.
3158 * Markdown reader: Allow " as well as '' to end a latex double-quote.
3160 * Conditionally depend on syb and base >= 4 if ghc >= 6.10.
3161 Resolves Issue #109.
3163 * Fixed problems in RST and markdown output due to bug in pretty-1.0.1.0
3165 + Added hang' function to Text.Pandoc.Shared; this will be used instead
3166 of hang, which doesn't work properly in pretty-1.0.1.0. When pretty
3167 is upgraded, we can go back to hang.
3168 See http://article.gmane.org/gmane.comp.lang.haskell.general/16687
3169 + Use hang' (and some different techniques) in RST and markdown writers.
3170 Some output is now a bit different.
3172 * Brought citeproc support up to date for citeproc-hs-0.2.
3173 (Patch by Andrea Rossato.)
3175 * Moved all haskell source to src subdirectory. Renamed Main.hs to
3176 pandoc.hs.
3178 * Rewrote hsmarkdown in Haskell for portability (src/hsmarkdown.hs).
3179 For now, keeping the old shell script too.
3181 * Added TemplateHaskell to Extensions for executable, removed
3182 -threaded for library. Thanks to duncan.coutts for the bug report.
3183 Resolves Issue #121.
3185 * Moved some Extra-Source-Files to Data-Files.
3187 * Moved tabFilter to Shared.
3189 * In pandoc.hs, removed optPreserveTabs; instead, tabstop of 0 means
3190 preserve tabs.
3192 * Minor code cleanup based on hlint suggestions.
3194pandoc (1.1)
3196 [ John MacFarlane ]
3198 * Main.hs:
3200 + Changed date on copyright message in Main.hs.
3201 + Have the '-v' option print syntax highlighting languages
3202 separated by commas, and wrapped in lines, instead of in five
3203 columns as before.
3205 * Added --jsmath option. Resolves Issue #68.
3207 + Added --jsmath option to Main.hs
3208 + Added JsMath to HTMLMathMethod in Text.Pandoc.Shared.
3209 + Handle math appropriately in HTML writer when JsMath selected.
3210 + Documented the option in README and man page.
3212 * Text.Pandoc.Shared: Changed compactify to use a better heuristic
3213 for tight and loose lists. Final Para is changed to Plain if all
3214 other list items *end* with a Plain block. Addresses Issue #99.
3216 * HTML reader:
3218 + Added colons to protocols in unsanitaryURI. Closes Issue #88.
3219 + HTML reader: Don't interpret contents of <pre> blocks as markdown.
3220 Added rawVerbatimBlock parser. Resolves Issue #94.
3222 * Markdown reader:
3224 + Allow URLs with spaces in them in links and references, but escape
3225 them as "%20".
3226 + Allow blank space at the end of horizontal rules.
3228 * RST reader: Modified 'unknownDirective' parser to handle comment
3229 blocks correctly, and added tests for comment blocks. Resolves Issue
3230 #86. Closes Debian Bug #500662.
3232 * HTML writer:
3234 + Include classes on tr elements in HTML output:
3235 "header", "odd", "even". This allows tables to be styled with
3236 lines in alternating colors. Resolves Issue #91.
3237 + Enclose all LaTeXMathML bits in <span class="LaTeX">.
3238 This prevents parts of the document that are not math from being
3239 interpreted as math by LaTeXMathML.js.
3241 * OpenDocument and ODT writers: Added support for HorizontalRule elements,
3242 which were formerly ignored. Resolves Issue #95.
3244 * Text.Pandoc.Shared: Modified wrappedTeX to eliminate the line break
3245 between a footnote and immediately following nonspace characters in
3246 LaTeX and ConTeXt output. (This gets interpreted as a space, which
3247 is not desired in cases like "text^[note]---".) Resolves Issue #93.
3249 * Windows installer: Don't require admin privileges to run
3250 installer. Modified pandoc-setup.iss, and changed modpath.iss to
3251 modify HKCU path if user lacks admin privileges. Also fixed case
3252 where oldpath is empty (previously this led to the new path
3253 beginning with a semicolon).
3255 * Updated INSTALL instructions for Arch packages and OS X install using
3256 cabal-install.
3258 * Removed the (now unneeded) debian directory.
3259 Removed empty Codec and System directories.
3261 * Moved odt-styles/ to data/. Removed unneeded variable in Makefile.
3263 * Modified Setup.hs so that the "test" target returns an error status
3264 when tests fail, and "build" returns a success status if
3265 the build succeeds. Resolves Issue #100.
3267 * Added BUGS to files in tarball.
3270pandoc (1.0.0.1)
3272 [ John MacFarlane ]
3274 * Removed spurious reference to pdf output format from pandoc(1) man page.
3276pandoc (1.0)
3278 [ Andrea Rossato ]
3280 * Added new OpenDocument writer.
3282 * Added support for SmallCaps inline element.
3284 * Added support for integrating pandoc with citeproc-hs.
3286 + Added Cite element to definition and writers.
3287 + Added Text.Pandoc.Biblio module
3288 + Note: This support is included only if the 'citeproc'
3289 Cabal configuration flag is set.
3291 * Made Pandoc data structure an instance of Typeable.
3292 Added new processPandoc and queryPandoc functions, to query
3293 or transform matching elements in a Pandoc structure.
3295 [ Peter Wang ]
3297 * Added new Texinfo writer.
3299 [ John MacFarlane ]
3301 * Changes to Texinfo writer:
3303 + No space between paragraph and following @verbatim (provides more
3304 pleasing appearance in text formats)
3305 + Blank line consistently after list environments.
3306 + Removed deVerb.
3307 + Use @code instead of @verb for inline code (this solves the character
3308 escaping problem for texi2dvi and texi2pdf).
3309 + Added news of Texinfo writer to README.
3310 + Added Texinfo to list of formats in man page, and removed extra 'groff'.
3311 + Added texi & texinfo extensions to Main.hs, and fixed bug in determining
3312 default output extension.
3313 + Modified disallowedInNode in Texinfo writer to correct list of disallowed characters.
3315 * Added tests for OpenDocument writer.
3317 * Added ODT writer (using zip-archive library to package output of
3318 OpenDocument writer). Added odt-styles directory with default ODT styles.
3320 * Added new mediawiki writer and tests.
3322 * Markdown reader: Added support for delimited code blocks, with optional
3323 syntax highlighting using highlighting-kate (if the 'highlighting'
3324 configuration option is selected).
3326 + Currently highlighting is supported only in the HTML writer.
3327 + Delimited code blocks can have attributes; using the language name as
3328 class triggers highlighting.
3329 + New Attributes parameter in CodeBlock structure.
3330 + --version now indicates whether syntax highlighting support is compiled
3331 in, and prints a list of supported languages
3333 * Removed debian directory. Pandoc is no longer a native debian package.
3335 * Changes to build process: pandoc can now be built from the repository
3336 using Cabal. No unix tools are needed (so, pandoc can be built on Windows
3337 without Cygwin).
3339 + Include shell scripts themselves in repo, rather than generating from wrappers.
3340 Removed wrappers directory and wrappers Makefile target.
3341 + Text/Pandoc/ASCIIMathML.hs, Text/Pandoc/DefaultHeaders.hs,
3342 and Text/Pandoc/Writers/S5.hs are no longer built in Makefile
3343 from templates in the templates/ directory. Instead, they use template
3344 haskell to read data at compile time from the relevant files in data/.
3345 Template haskell functions go in a new module, Text.Pandoc.TH.
3346 + man pages are now generated in Setup.hs hook, not by Makefile
3347 + Makefile 'tarball' target now calls Cabal's 'sdist'
3348 + Added "Extra-Source-Files" to pandoc.cabal, so sdist contains everything needed
3349 + Added "Build-Type" field to pandoc.cabal to avoid warning.
3350 + Added to "Extra-source-files" and "Extra-tmp-files" in pandoc.cabal,
3351 so 'sdist' and 'clean' will work properly.
3352 + Setup.hs now generates man pages in a postbuild hook.
3353 + Added dependency-checking to Setup.hs, so it only rebuilds things
3354 that need rebuilding.
3355 + Added 'library' and 'executable' configuration flags.
3356 Cabal can now be told to build just the library or just the executable.
3357 + CABALOPTS may now be specified with 'make' to pass Cabal configuration flags.
3358 For example: CABALOPTS=-fhighlighting make
3360 * Rewrote test suite so it doesn't depend on perl or unix tools.
3362 + Replaced old runtests.pl with a Haskell script RunTests.hs.
3363 + Added Diff.hs module to be used by RunTests.hs instead of unix 'diff'.
3364 + Added test hook to Setup.hs, so tests may be run from cabal.
3365 + Changed Makefile's 'test' target to run tests via cabal.
3366 + Removed old generate.sh.
3367 + Since we no longer have 'sed' to filter out raw HTML sections
3368 from the docbook writer test, or raw LaTeX sections from the
3369 context writer test, we now just include these sections.
3370 They can be taken out if it is necessary to process the files.
3371 + Updated latex and context writer tests to remove extra spaces
3372 after '\\item'
3373 + Added a markdown table reader test.
3374 + Added markdown-reader-more.txt to test suite, for additional test cases
3375 for raw ConTeXt environments and more.
3377 * Compatibility fixes for CPP, Cabal, and haddock:
3379 + Use CPP in "Extensions" field in pandoc.cabal.
3380 + Removed use of backslash string continuations in source files.
3382 * Removed pandoc.cabal.ghc66. We now require Cabal >= 1.2, GHC >= 6.8,
3383 base >= 3.
3385 * Require parsec < 3.
3386 The compatibility module in parsec 3.0.0 gives far worse performance than
3387 parsec 2.1. Eventually pandoc will be upgraded to use the new bytestring
3388 version of parsec, and then we'll go to parsec 3.0.0.
3390 * Removed Text.Regex dependencies by rewriting using plain Haskell
3391 (Text.Pandoc.Writers.RTF, Text.Pandoc.Writers.HTML, Main.hs)
3393 * Moved Text.Pandoc.Writers.DefaultHeaders -> Text.Pandoc.DefaultHeaders.
3395 * Makefile:
3397 + Added 'configure' as dependency of 'uninstall-all'.
3398 (It uses the Cabal build program.)
3399 + Makefile: only use --with-hc-pkg if GHC_PKG is defined.
3400 Note that Cabal will automatically choose the ghc-pkg appropriate
3401 for the compiler selected, so normally specifying GHC by itself
3402 is sufficient.
3404 * Removed Text.Pandoc.UTF8 module; instead, depend on utf8-string and use
3405 its IO and conversion functions.
3407 * Added -Wall to ghc-options in pandoc.cabal. Cleaned up modules so that
3408 everything is -Wall clean.
3410 + Added pragma to HTML writer to avoid deprecation warning for use of "start" attribute.
3411 + Added pragma to Text/Pandoc/Shared.hs to get rid of "orphan instance" warnings.
3412 (These are caused by the Lift instance for ByteString.)
3414 * Changed the comment used to replace unsafe HTML if sanitize-html option
3415 selected.
3417 * Made -c/--css option repeatable on the command line (like -H, -A, -B).
3419 * Moved XML-formatting functions to new unexported module Text.Pandoc.XML.
3421 * Escape '\160' as "&#160;", not "&nbsp;" in XML.
3422 "nbsp" isn't a predefined XML entity.
3424 * Fixed bug in RST reader, which would choke on: "p. one\ntwo\n".
3425 Added some try's in ordered list parsers.
3427 * Man writer: don't escape " as \".
3429 * Allow newline before URL in markdown link references. Resolves Issue #81.
3430 Added tests for this issue in new "markdown-reader-more" tests.
3431 Changed RunTests.hs to run these tests.
3433 * Support for display math. Resolves Issue #47.
3435 + Added a DisplayMath/InlineMath selector to Math inlines.
3436 + Markdown parser yields DisplayMath for $$...$$.
3437 + LaTeX parser yields DisplayMath when appropriate. Removed
3438 mathBlock parsers, since the same effect is achieved by the math
3439 inline parsers, now that they handle display math.
3440 + Writers handle DisplayMath as appropriate for the format.
3441 + Modified tests accordingly; added new tests for display math.
3443 * Use LaTeXMathML instead of ASCIIMathML. LaTeXMathML is closer
3444 to LaTeX in its display of math, and supports many non-math LaTeX environments.
3446 + Changed -m option to use LaTeXMathML rather than ASCIIMathML.
3447 + Modified HTML writer to print raw TeX when LaTeXMathML is
3448 being used instead of suppressing it.
3449 + Removed ASCIIMathML files from data/ and added LaTeXMathML.
3450 + Replaced ASCIIMathML with LaTeXMathML in source files.
3451 + Modified README and pandoc man page source.
3452 + Added --latexmathml option (kept --asciimathml as a synonym
3453 for backwards compatibility)
3455 * Markdown reader: Parse setext headers before atx headers.
3456 Test case:
3457 # hi
3458 ====
3459 parsed by Markdown.pl as an H1 header with contents "# hi".
3461 * Markdown reader: Treat "mixed" lists the same way as Markdown.pl does.
3462 The marker on the first list item determines the type of the whole
3463 list. Thus, a list like
3464 1. one
3465 - two
3466 * three
3467 gets parsed as a single ordered list. (Previous versions of pandoc
3468 treated this as an ordered list with an unordered sublist.)
3470 * Markdown smart typography:
3472 + Em dashes no longer eat surrounding whitespace. Resolves Issue #69.
3473 + Use nonbreaking spaces after known abbreviations in markdown parser.
3474 Thus, for example, "Mr. Brown" comes out as "Mr.~Brown" in LaTeX, and does
3475 not produce a sentence-separating space. Resolves Issue #75.
3477 * Markdown writer: Print unicode \160 literally, rather than as &nbsp;.
3479 * Treat '\ ' in (extended) markdown as nonbreaking space.
3480 Print nonbreaking space appropriately in each writer (e.g. ~ in LaTeX).
3482 * The '--sanitize-html' option now examines URIs in markdown links
3483 and images, and in HTML href and src attributes. If the URI scheme
3484 is not on a whitelist of safe schemes, it is rejected. The main point
3485 is to prevent cross-site scripting attacks using 'javascript:' URIs.
3486 See http://www.mail-archive.com/markdown-discuss@six.pairlist.net/msg01186.html
3487 and http://ha.ckers.org/xss.html. Resolves Issue #62.
3489 * HTML writer:
3491 + Override Text.XHtml's stringToHtml function,
3492 so that characters below 0xff are not converted to numerical entity
3493 references. Also convert '\160' to "&nbsp;". This should aid readability
3494 and editability of the HTML source. It does presuppose that the HTML
3495 will be served as UTF-8.
3496 + In code blocks, change leading newlines to <br /> tags.
3497 (Some browsers ignore them.) Resolves Issue #71.
3498 See http://six.pairlist.net/pipermail/markdown-discuss/2008-May/001297.html
3499 + Use style attributes rather than css classes for strikethrough
3500 and ordered list styles. This works better when fragments, rather than
3501 standalone documents, are generated.
3503 * HTML reader: Count anything that isn't a known block (HTML) tag as an
3504 inline tag (rather than the other way around). Added "html", "head", and
3505 "body" to list of block tags. Resolves Issue #66, allowing
3506 <lj> to count as an inline tag.
3508 * RTF writer: Fixed bug. Extra spaces were being printed after emphasized,
3509 boldface, and other inline elements. Resolves Issue #64.
3511 * LaTeX reader: improvements in raw LaTeX parsing.
3513 + "loose punctuation" (like {}) parsed as Space
3514 + Para elements must contain more than Str "" and Space elements
3515 + Added parser for "\ignore" command used in literate haskell.
3516 + Reworked unknownCommand and rawLaTeXInline: when not in "parse raw"
3517 mode, these parsers simply strip off the command part and allow
3518 the arguments to be parsed normally. So, for example,
3519 \blorg{\emph{hi}} will be parsed as Emph "hi" rather than
3520 Str "{\\emph{hi}}".
3521 + Parse lhs "code" environments as verbatim.
3522 Refactored parsers for verbatim environments.
3523 + Removed specialEnvironment parser.
3524 + parse '{}', if present, after \textless, \textgreater,
3525 \textbar, \textbackslash, \ldots.
3526 + Parse unescaped special characters verbatim rather than
3527 changing them to spaces. This way arguments of unknown
3528 commands will appear in braces.
3530 * Parse raw ConTeXt environments as TeX in markdown reader.
3531 Resolves Issue #73.
3533 * Moved BlockWrapper and wrappedBlocksToDoc from ConTeXt writer to Shared.
3535 * Made some structural changes to parsing of raw LaTeX environments.
3536 Previously there was a special block parser for LaTeX environments.
3537 It returned a Para element containing the raw TeX inline. This has
3538 been removed, and the raw LaTeX environment parser is now used in the
3539 rawLaTeXInline parser. The effect is exactly the same, except that we
3540 can now handle consecutive LaTeX and ConTeXt environments not separated
3541 by spaces. This new flexibility is required by the example in
3542 Issue #73:
3544 \placeformula \startformula
3545 L_{1} = L_{2}
3546 \stopformula
3548 API change: The LaTeX reader now exports rawLaTeXEnvironment' (which
3549 returns a string) rather than rawLaTeXEnvironment (which returns a block
3550 element). This is more likely to be useful in other applications.
3552 * Use \textsubscr instead of \textsubscript for LaTeX subscript macro.
3553 \textsubscript conflicts with a definition in the memoir class.
3554 Resolves Issue #65.
3556 * Removed unneeded space after "\\item" in LaTeX and ConTeXt output.
3558 * Added amsmath package to default LaTeX header. Resolves Issue #48.
3560 * Added \setupitemize[autointro] to ConTeXt header, to prevent orphaned
3561 list introduction lines.
3563 * Changed Float to Double in definition of Table element.
3564 (Double is more efficient in GHC.)
3566 * Fixed bug in Markdown parser: regular $s triggering math mode.
3567 For example: "shoes ($20) and socks ($5)."
3568 The fix consists in two new restrictions:
3570 + the $ that ends a math span may not be directly followed by a digit.
3571 + no blank lines may be included within a math span.
3573 Thanks to Joseph Reagle for noticing the bug.
3575 * Use Data.List's 'intercalate' instead of custom 'joinWithSep'.
3576 Removed 'joinWithSep' from Text.Pandoc.Shared.
3578 * Updated README and man pages. Acknowledge contributors in README.
3579 Added paragraph to README about producing S5 with separate CSS/javascript.
3581 * Updated INSTALL to reflect new build system (including configuration
3582 options) and document new dependencies. Added note to INSTALL that
3583 Cabal >= 1.2 is required for build. Resolves Issue #74.
3585 * Fixed some haddock documentation errors.
3587 * Small fix to markdown2pdf man page: only input needs to be piped through iconv.
3589pandoc (0.46) unstable; urgency=low
3591 [ John MacFarlane ]
3593 * Made -H, -A, and -B options cumulative: if they are specified
3594 multiple times, multiple files will be included.
3596 * Added optional HTML sanitization using a whitelist.
3597 When this option is specified (--sanitize-html on the command line),
3598 unsafe HTML tags will be replaced by HTML comments, and unsafe HTML
3599 attributes will be removed. This option should be especially useful
3600 for those who want to use pandoc libraries in web applications, where
3601 users will provide the input.
3603 + Main.hs: Added --sanitize-html option.
3605 + Text.Pandoc.Shared: Added stateSanitizeHTML to ParserState.
3607 + Text.Pandoc.Readers.HTML:
3608 - Added whitelists of sanitaryTags and sanitaryAttributes.
3609 - Added parsers to check these lists (and state) to see if a given
3610 tag or attribute should be counted unsafe.
3611 - Modified anyHtmlTag and anyHtmlEndTag to replace unsafe tags
3612 with comments.
3613 - Modified htmlAttribute to remove unsafe attributes.
3614 - Modified htmlScript and htmlStyle to remove these elements if
3615 unsafe.
3617 + Modified README and man pages to document new option.
3619 * Improved handling of email addresses in markdown and reStructuredText.
3620 Consolidated uri and email address parsers. (Resolves Issue #37.)
3622 + New emailAddress and uri parsers in Text.Pandoc.Shared.
3623 - uri parser uses parseURI from Network.URI.
3624 - emailAddress parser properly handles email addresses with periods
3625 in them.
3627 + Removed uri and emailAddress parsers from Text.Pandoc.Readers.RST
3628 and Text.Pandoc.Readers.Markdown.
3630 * Markdown reader:
3632 + Fixed emph parser so that "*hi **there***" is parsed as a Strong
3633 nested in an Emph. (A '*' is only recognized as the end of the
3634 emphasis if it's not the beginning of a strong emphasis.)
3636 + Moved blockQuote parser before list parsers for performance.
3638 + Modified 'source' parser to allow backslash-escapes in URLs.
3639 So, for example, [my](/url\(1\)) yields a link to /url(1).
3640 Resolves Issue #34.
3642 + Disallowed links within links. (Resolves Issue #35.)
3643 - Replaced inlinesInBalanced with inlinesInBalancedBrackets, which
3644 instead of hard-coding the inline parser takes an inline parser
3645 as a parameter.
3646 - Modified reference and inlineNote to use inlinesInBalancedBrackets.
3647 - Removed unneeded inlineString function.
3648 - Added inlineNonLink parser, which is now used in the definition of
3649 reference.
3650 - Added inlineParsers list and redefined inline and inlineNonLink parsers
3651 in terms of it.
3652 - Added failIfLink parser.
3654 + Better handling of parentheses in URLs and quotation marks in titles.
3655 - 'source' parser first tries to parse URL with balanced parentheses;
3656 if that doesn't work, it tries to parse everything beginning with
3657 '(' and ending with ')'.
3658 - source parser now uses an auxiliary function source'.
3659 - linkTitle parser simplified and improved, under assumption that it
3660 will be called in context of source'.
3662 + Make 'block' conditional on strictness state, instead of using
3663 failIfStrict in block parsers. Use a different ordering of parsers
3664 in strict mode (raw HTML block before paragraph) for performance.
3665 In non-strict mode use rawHtmlBlocks instead of htmlBlock.
3666 Simplified htmlBlock, since we know it's only called in strict
3667 mode.
3669 + Improved handling of raw HTML. (Resolves Issue #36.)
3670 - Tags that can be either block or inline (e.g. <ins>) should
3671 be treated as block when appropriate and as inline when
3672 appropriate. Thus, for example,
3673 <ins>hi</ins>
3674 should be treated as a paragraph with inline <ins> tags, while
3675 <ins>
3676 hi
3677 </ins>
3678 should be treated as a paragraph within <ins> tags.
3679 - Moved htmlBlock after para in list of block parsers. This ensures
3680 that tags that can be either block or inline get parsed as inline
3681 when appropriate.
3682 - Modified rawHtmlInline' so that block elements aren't treated as
3683 inline.
3684 - Modified para parser so that paragraphs containing only HTML tags and
3685 blank space are not allowed. Treat these as raw HTML blocks instead.
3687 + Fixed bug wherein HTML preceding a code block could cause it to
3688 be parsed as a paragraph. The problem is that the HTML parser
3689 used to eat all blank space after an HTML block, including the
3690 indentation of the code block. (Resolves Issue #39.)
3691 - In Text.Pandoc.Readers.HTML, removed parsing of following space
3692 from rawHtmlBlock.
3693 - In Text.Pandoc.Readers.Markdown, modified rawHtmlBlocks so that
3694 indentation is eaten *only* on the first line after the HTML
3695 block. This means that in
3696 <div>
3697 foo
3698 <div>
3699 the foo won't be treated as a code block, but in
3700 <div>
3702 foo
3704 </div>
3705 it will. This seems the right approach for least surprise.
3707 * RST reader:
3709 + Fixed bug in parsing explicit links (resolves Issue #44).
3710 The problem was that we were looking for inlines until a '<' character
3711 signaled the start of the URL; so, if you hit a reference-style link,
3712 it would keep looking til the end of the document. Fix: change
3713 inline => (notFollowedBy (char '`') >> inline). Note that this won't
3714 allow code inlines in links, but these aren't allowed in resT anyway.
3716 + Cleaned up parsing of reference names in key blocks and links.
3717 Allow nonquoted reference links to contain isolated '.', '-', '_', so
3718 so that strings like 'a_b_' count as links.
3720 + Removed unnecessary check for following link in str.
3721 This is unnecessary now that link is above str in the definition of
3722 'inline'.
3724 * HTML reader:
3726 + Modified rawHtmlBlock so it parses </html> and </body> tags.
3727 This allows these tags to be handled correctly in Markdown.
3728 HTML reader now uses rawHtmlBlock', which excludes </html> and </body>,
3729 since these are handled in parseHtml. (Resolves Issue #38.)
3731 + Fixed bug (emph parser was looking for <IT> tag, not <I>).
3733 + Don't interpret contents of style tags as markdown.
3734 (Resolves Issue #40.)
3735 - Added htmlStyle, analagous to htmlScript.
3736 - Use htmlStyle in htmlBlockElement and rawHtmlInline.
3737 - Moved "script" from the list of tags that can be either block or
3738 inline to the list of block tags.
3740 + Modified rawHtmlBlock to use anyHtmlBlockTag instead of anyHtmlTag
3741 and anyHtmlEndTag. This fixes a bug in markdown parsing, where
3742 inline tags would be included in raw HTML blocks.
3744 + Modified anyHtmlBlockTag to test for (not inline) rather than
3745 directly for block. This allows us to handle e.g. docbook in
3746 the markdown reader.
3748 * LaTeX reader: Properly recognize --parse-raw in rawLaTeXInline.
3749 Updated LaTeX reader test to use --parse-raw.
3751 * HTML writer:
3753 + Modified rules for automatic HTML header identifiers to
3754 ensure that identifiers begin with an alphabetic character.
3755 The new rules are described in README. (Resolves Issue #33.)
3757 + Changed handling of titles in HTML writer so you don't get
3758 "titleprefix - " followed by nothing.
3760 * ConTeXt writer: Use wrappers around Doc elements to ensure proper
3761 spacing. Each block element is wrapped with either Pad or Reg.
3762 Pad'ed elements are guaranteed to have a blank line in between.
3764 * RST writer:
3766 + Refactored RST writer to use a record instead of a tuple for state,
3767 and to include options in state so it doesn't need to be passed as
3768 a parameter.
3770 + Use an interpreted text role to render math in restructuredText.
3771 See http://www.american.edu/econ/itex2mml/mathhack.rst for the
3772 strategy.
3774 [ Recai Oktaş ]
3776 * Debian packaging changes:
3778 + Remove the empty 'include' directory in -dev package, which lintian
3779 complains about.
3780 + Bump Standarts-Version to 3.7.3.
3781 + Use new 'Homepage:' field to specify the upstream URL on suggestion of
3782 lintian.
3784 -- Recai Oktaş <roktas@debian.org> Tue, 08 Jan 2008 05:13:31 +0200
3786pandoc (0.45) unstable; urgency=low
3788 [ John MacFarlane ]
3790 * Simplified parsing of reference keys and notes in markdown and RST
3791 readers: The Reference data structure from Text.Pandoc.Shared is no
3792 longer needed, since referenceKey and noteBlock parses return strings
3793 (as many blank lines as were occupied by the key or note) and update
3794 state themselves. getPosition and setPosition are now used to ensure
3795 that error messages will give the correct line number. This yields
3796 cleaner (and slightly faster) code, with more accurate parsing error
3797 messages.
3799 * Added new Math inline element:
3801 + Markdown and LaTeX readers now convert TeX math into Math elements,
3802 not TeX.
3803 + This allows math to be treated differently from raw TeX in output.
3804 TeX elements are no longer printed in output formats other than
3805 Markdown, LaTeX, and ConTeXt. But Math elements are always printed.
3807 * New default handling of math in writers:
3809 + New module Text.Pandoc.Readers.TeXMath exports readTeXMath, which
3810 parses raw TeX math and outputs a string of Pandoc inlines that
3811 tries to render it as far as possible using unicode characters,
3812 lapsing into literal TeX when needed.
3813 + readTeXMath is now used for default HTML output in HTML, S5, RTF,
3814 and Docbook, if no other method for displaying math in HTML is
3815 specified. Enclosing $'s are no longer printed by default.
3816 + By default, math is put inside <span class="math">. This way it can be
3817 distinguished from the surrounding text, e.g. put in a different
3818 font.
3820 * New --gladtex and --mimetex options for display of math in HTML:
3822 + If --gladtex is specified, math is output between <eq> tags, so
3823 it can be processed by gladTeX.
3824 + If --mimetex is specified, math is put in <img> tags with a link
3825 to the mimetex CGI script (or any other script that takes TeX math
3826 as input and outputs an image). The URL of the script may be
3827 specified, but defaults to /cgi-bin/mimetex.cgi.
3828 + HTMLMathMethod structure in WriterOptions keeps track of how to
3829 display math in HTML output.
3830 + Updated README with a description of the four options for displaying
3831 math in HTML.
3833 * HTML reader:
3835 + Fixed bug: parser for minimized attributes should not swallow
3836 trailing spaces.
3837 + Simplified HTML attribute parsing.
3838 + Changed parsing of code blocks in HTML reader: <code> tag is no
3839 longer needed. <pre> suffices. All HTML tags in the code block
3840 (e.g. for syntax highlighting) are skipped, because they are not
3841 portable to other output formats. A <code>...</code> block not
3842 surrounded by <pre> now counts as inline HTML, not a code block.
3843 + Remove just one leading and one trailing newline from contents of
3844 <pre>...</pre> in codeBlock parser.
3846 * Markdown reader:
3848 + Removed support for box-style block quotes.
3849 + Require space before title in links and references.
3850 This fixes a bug in parsing URLs like http://silly/url(withparen).
3851 + Improved and simplified setextHeader parser.
3852 + Fixed logic in smart quote parsing, adding some needed 'try'
3853 statements.
3854 + Fixed smart quote parsing so that unicode characters 8216 and 8217
3855 are recognized as single quotes, and 8220 and 8221 as double quotes.
3857 * RST reader:
3859 + Fixed bug in parsing of code blocks. Previously a full tab indent
3860 was required, but RST allows code to be indented any amount.
3861 Resolves Issue #27.
3862 + Allow field lists to be indented.
3863 + Parse the contents of field lists instead of treating as a raw string.
3864 + Represent field lists as definition lists instead of blockquotes.
3865 + Fixed bug in which metadata would be overridden if the document
3866 contained multiple field lists.
3867 + Parse fields associated with '.. image::' blocks, and use 'alt'
3868 field, if given, for image alt and title attributes.
3870 * LaTeX reader:
3872 + Modified specialChar so that '"' characters are parsed.
3873 + Fixed a bug in parsing of \[ \] math blocks (thanks to Mark Kalderon).
3875 * HTML writer:
3877 + Changes in handling of math (see above).
3878 + Don't produce HTML for table of contents if there are
3879 no headers. (This would be an empty list, which is invalid XHTML.)
3881 * Markdown writer:
3883 + Don't print title attribute if title is empty. (This differs from
3884 the behavior of Markdown.pl, and agrees with PHP Markdown. But John
3885 Gruber has indicated that he prefers this behavior.) Adjusted test
3886 suite accordingly.
3887 + Fixed incorrect line wrapping in paragraphs including hard line
3888 breaks. Resolves Issue #25.
3889 + Fixed bug in markdown writer: If an ordered list item began with
3890 a marker greater than 3 characters in width, and the item took more
3891 than one line, it would appear on the line after the list marker,
3892 e.g.:
3894 (12)
3895 My list item.
3896 Multiline.
3898 Now it works as follows:
3900 (12) My list item.
3901 Multiline.
3903 * RST writer
3905 + Fixed bug in RST writer's handling of ordered lists. Previously,
3906 list items with multiple lines would not always line up with
3907 single-line list items. Now, list items are nested the length of
3908 the list marker + 1. This looks better and ensures that list items
3909 all line up. (Note that list markers are padded to the length of
3910 the longest list marker in the series.)
3911 + Use 3-space indent for unordered lists.
3912 + If label for a link reference contains a colon, surround it by `
3913 signs so it won't be interpreted as the end of the link label.
3915 * LaTeX writer:
3917 + Cleaner output for footnotes. Footnotes now always begin on a new
3918 line, and the final } is on a line by itself only when it needs to
3919 be (i.e. only when the note ends with a Verbatim environment).
3920 + Added writer options to state, so state doesn't need to be passed as
3921 a parameter.
3922 + Text wrapping now provided, using wrapTeXIfNeeded.
3924 * ConTeXt writer: many improvements for more idiomatic ConTeXt output
3925 (thanks to Idris Samawi Hamid for suggestions).
3927 + PrettyPrint module now used for output.
3928 + Writer options are now in state, so they don't have to be passed as
3929 a parameter.
3930 + Text wrapping now provided, using wrapTeXIfNeeded.
3931 + Better treatment of footnotes: footnotes are always on lines by
3932 themselves, and the final } is on a line by itself only when
3933 it needs to be (after \stoptyping).
3934 + Use \subject, \subsubject, ... or \section, \subsection, ... for headings,
3935 depending on whether --number-sections option is selected.
3936 + Extra blank line inserted after \stopitemize
3937 + Use new, "official" definition of blockquote environment. Also, use
3938 blank line after \startblockquote to balance blank line at the end.
3939 + Both itemized and enumerated lists are now generated using
3940 \start-stopitemize, with appropriate options. Removed definitions
3941 of ltxenum and ltxitem, which are no longer needed. Provided
3942 defaults for itemized lists in the preamble. State keeps track of
3943 ordered list level, so that when default numbering is specified,
3944 the appropriate scheme can be used.
3945 + Changed \useurl to \useURL.
3946 + Changed link color from red to blue.
3947 + Use \subsubsubsubsection etc., since these are supported
3948 (up to at least sub x 5).
3950 * Text.Pandoc.Shared:
3952 + Save and restore position in parseFromString, so that accurate
3953 error messages can be given.
3954 + Improved efficiency of romanNumeral parser.
3955 + Added wrappedTeX and wrapTeXIfNeeded functions. These ensure
3956 that footnotes occur on lines by themselves (to make them
3957 easier to see and move) and do not screw up line wrapping.
3959 * Text.Pandoc.UTF8: modified fromUTF8 to strip out the BOM
3960 if present. Windows Notepad and other applications insert a
3961 BOM at the beginning of a UTF8 file.
3963 * Main.hs (tabFilter): Treat '\r' at end of line as newline (in
3964 addition to "\r\n" and '\n').
3966 * Added a writer option for wrapped text and a command-line option
3967 '--no-wrap', which disables text wrapping and minimizes whitespace
3968 in HTML. (Resolves Issue #26.)
3970 + Added support for '--no-wrap' to Main.hs.
3971 + Added wrapIfNeeded function to Text.Pandoc.Shared.
3972 + Use wrapIfNeeded instead of wrapped in the RST, Man, Docbook, and
3973 Markdown writers.
3974 + Added render and renderFragment helpers to HTML writer.
3976 * Modified html2markdown to run tidy only if the HTML cannot be
3977 parsed. Previously html2markdown piped all input through tidy
3978 before passing it to pandoc. This caused problems on certain pages
3979 (e.g. http://daringfireball.com/markdown) which have well-formed
3980 XHTML that causes tidy to choke. The solution is to pipe through
3981 tidy only if pandoc cannot parse the input by itself. This means
3982 that a temp file is now always used, even when input comes from a
3983 local file or standard input.
3985 * Removed 'version' constant from Main.hs; added 'pandocVersion' to
3986 Text.Pandoc library.
3988 * pandoc.cabal:
3990 + Modified to work with GHC 6.8 and Cabal configurations. (For GHC
3991 6.8, pretty and containers must be added to Build-Depends, and it
3992 is desirable to use the -O2 compiler option.) Cabal configurations
3993 allows one to select options depending on the compiler version.
3994 For GHC 6.6, the splitBase option can be disabled.
3995 + pandoc.cabal.ghc66 is provided for users with older versions of
3996 Cabal, which do not support configurations.
3997 + Use Ghc-Prof-Options to ensure that '-auto-all' is used when
3998 '--enable-(executable|library)-profiling' is specified. Updated
3999 PROFILING instructions accordingly.
4001 * Makefile:
4003 + Makefile now checks GHC version. If GHC is 6.6, pandoc.cabal.ghc66
4004 is copied to pandoc.cabal, and the old pandoc.cabal is copied
4005 to pandoc.cabal.orig. Otherwise, pandoc.cabal is copied to
4006 pandoc.cabal.orig but otherwise unmodified. This way, the Makefile
4007 will work properly with either GHC 6.6 or 6.8.
4008 + Changed BUILDCONF to point to dist/setup-config, not .setup-config.
4009 This is where current versions of Cabal put it.
4010 + Added $(BUILDCMD) target, so setup doesn't get compiled every time.
4011 + Removed dependency of templates on ./templates, which is circular
4012 now that templates is a subdirectory of the top-level.
4014 * MacPorts Portfile:
4016 + Modified to install the pandoc library in addition to programs.
4017 + Installation must be done manually rather than using Makefile's
4018 install-all.
4019 + Note that the library must be registered in the activate phase,
4020 after the library files have been copied out of the destroot.
4021 Cabal generates a 'register.sh' script that will do this.
4023 * debian/control: Added libghc6-network-dev, libghc6-xhtml-dev, and
4024 libghc6-mtl-dev as dependencies for libghc6-pandoc-dev.
4025 Closes: #445235
4027 * debian/rules: Converted to UTF-8.
4029 * Changed pandoc home page to http://johnmacfarlane.net/pandoc/.
4031 * Updated ASCIIMathML.js to latest version.
4033 * Directory structure:
4035 + Moved everything from src into the top-level directory.
4036 + Changed references to source directory in Makefile and
4037 pandoc.cabal.*.
4038 + Moved ASCIIMathML.js, headers, and ui into templates directory.
4039 + Modified fillTemplates.pl to reflect new paths.
4041 [ Recai Oktaş ]
4043 * Makefile: Fixed the issue of having two copies of the library
4044 documentation under some usage scenarios.
4046 * Replaced 'ghc' with '$(GHC)' in Makefile, and made GHC
4047 and GHC_PKG configurable through the environment, to support
4048 unusual ghc installations. For example:
4049 GHC=/opt/ghc/bin/ghc GHC_PKG=/opt/ghc/bin/ghc-pkg make
4051 -- Recai Oktaş <roktas@debian.org> Sun, 07 Oct 2007 20:51:43 +0300
4053pandoc (0.44) unstable; urgency=low
4055 [ John MacFarlane ]
4057 * Fixed bug in HTML writer: when --toc was used, anchors were put around
4058 headers, which is invalid XHTML (block content within inline element).
4059 Now the anchors are put inside the header tags. Resolves Issue #23.
4061 * Added xmlns attribute to html element in html writer tests.
4062 This attribute is added by more recent versions of the
4063 xhtml library (>= 3000), and is required for valid XHTML.
4065 [ Recai Oktaş ]
4067 * On configure, compile 'Setup.hs' to 'setup' and use 'setup' as the build
4068 command instead of 'runhaskell', which, on some platforms (such as s390,
4069 alpha, m68k), throws the following error:
4071 runhaskell Setup.hs configure --prefix=/usr
4072 ghc-6.6.1: not built for interactive use
4074 This causes a serious FTBFS bug. Closes: #440668.
4076 -- Recai Oktaş <roktas@debian.org> Mon, 03 Sep 2007 18:24:02 +0300
4078pandoc (0.43) unstable; urgency=low
4080 [ John MacFarlane ]
4082 * The focus of this release is performance. The markdown parser
4083 is about five times faster than in 0.42, based on benchmarks
4084 with the TextMate manual.
4086 * Main.hs: Replaced CRFilter and tabFilter with single function
4087 tabFilter, which operates on the whole string rather than breaking
4088 it into lines, and handles dos-style line-endings as well as tabs.
4090 * Added separate LaTeX reader and native reader tests; removed
4091 round-trip tests.
4093 * Text.Pandoc.Shared:
4095 + Removed tabsToSpaces and tabsInLine (they were used only in Main.hs.)
4096 + General code cleanup (to elimante warnings when compiling with -Wall.)
4097 + Added 'wrapped' function, which helps wrap text into paragraphs,
4098 using the prettyprinting library.
4099 + Rewrote charsInBalanced and charsInBalanced'.
4100 - Documented restriction: open and close must be distinct characters.
4101 - Rearranged options for greater efficiency.
4102 - Bug fix: Changed inner call to charsInBalanced inside
4103 charsInBalanced' to charsInBalanced'.
4104 + anyLine now requires that the line end with a newline (not eof).
4105 This is a harmless assumption, since we always add newlines to the
4106 end of a block before parsing with anyLine, and it yields a 10% speed
4107 boost.
4108 + Removed unnecessary 'try' in anyLine.
4109 + Removed unneeded 'try' from romanNumeral parser.
4110 + Use notFollowedBy instead of notFollowedBy' in charsInBalanced.
4111 + Removed unneeded 'try' in parseFromString.
4112 + Removed unneeded 'try' from stringAnyCase. (Now it behaves
4113 like 'string'.)
4114 + Changed definition of 'enclosed' in Text.Pandoc.Shared so that
4115 'try' is not automatically applied to the 'end' parser. Added
4116 'try' in calls to 'enclosed' where needed. Slight speed increase.
4118 * Writers:
4120 + Replaced individual wrapping routines in RST, Man, and Markdown
4121 writers with 'wrapped' from Text.Pandoc.Shared.
4122 + Rewrote LaTeX writer to use the prettyprinting library,
4123 so we get word wrapping, etc.
4124 + Modified latex writer tests for new latex writer using prettyprinter.
4125 + Fixed bug in LaTeX writer: autolinks would not cause
4126 '\usepackage{url}' to be put in the document header. Also, changes
4127 to state in enumerated list items would be overwritten.
4128 + In Markdown writer, escape paragraphs that begin with ordered list
4129 markers, so they don't get interpreted as ordered lists.
4131 * Text.Pandoc.Reades.LaTeX:
4133 + Fixed bug in LaTeX reader, which wrongly assumed that the roman
4134 numeral after "enum" in "setcounter" would consist entirely of
4135 "i"s. 'enumiv' is legitimate.
4136 + LaTeX command and environment names can't contain numbers.
4137 + Rearranged order of parsers in inline for slight speed improvement.
4138 + Added '`' to special characters and 'unescapedChar'.
4140 * Text.Pandoc.Readers.RST:
4142 + Removed unneeded try's in RST reader; also minor code cleanup.
4143 + Removed tabchar.
4144 + Rearranged parsers in inline (doubled speed).
4146 * Text.Pandoc.Readers.Markdown:
4148 + Skip notes parsing if running in strict mode. (This yields a nice
4149 speed improvement in strict mode.)
4150 + Simplify autolink parsing code, using Network.URI to test for
4151 URIs. Added dependency on network library to debian/control and
4152 pandoc.cabal.
4153 + More perspicuous definition of nonindentSpaces.
4154 + Removed unneeded 'try' in 'rawLine'.
4155 + Combined linebreak and whitespace into a new whitespace parser, to
4156 avoid unnecessary reparsing of space characters.
4157 + Removed unnecessary 'try' in 'codeBlock', 'ellipses', 'noteMarker',
4158 'multilineRow', 'dashedLine', 'rawHtmlBlocks'.
4159 + Use lookAhead in parsers for setext headers and definition lists
4160 to see if the next line begins appropriately; if not, don't waste
4161 any more time parsing.
4162 + Don't require blank lines after code block. (It's sufficient to
4163 end code block with a nonindented line.)
4164 + Changed definition of 'emph': italics with '_' must not
4165 be followed by an alphanumeric character. This is to help
4166 prevent interpretation of e.g. [LC_TYPE]: my_type as
4167 '[LC<em>TYPE]:my</em>type'.
4168 + Improved Markdown.pl-compatibility in referenceLink: the two parts
4169 of a reference-style link may be separated by one space, but not
4170 more... [a] [link], [not] [a link].
4171 + Fixed markdown inline code parsing so it better accords with
4172 Markdown.pl: the marker for the end of the code section is a clump
4173 of the same number of `'s with which the section began, followed
4174 by a non-` character. So, for example,
4175 ` h ``` i ` -> <code>h ``` i</code>.
4176 + Split 'title' into 'linkTitle' and 'referenceTitle', since the
4177 rules are slightly different.
4178 + Rewrote 'para' for greater efficiency.
4179 + Rewrote link parsers for greater efficiency.
4180 + Removed redundant 'referenceLink' in definition of inline (it's
4181 already in 'link').
4182 + Refactored escapeChar so it doesn't need 'try'.
4183 + Refactored hrule for performance in Markdown reader.
4184 + More intelligent rearranging of 'inline' so that most frequently
4185 used parsers are tried first.
4186 + Removed tabchar parser, as whitespace handles tabs anyway.
4188 * Text.Pandoc.CharacterReferences:
4190 + Refactored.
4191 + Removed unnecessary 'try's for a speed improvement.
4192 + Removed unnecessary '&' and ';' from the entity table.
4194 * Build process:
4196 + Makefile: Get VERSION from cabal file, not Main.hs.
4197 + Modified MacPorts Portfile:
4198 - Depend on haddock
4199 - Build and install libraries and library documentation in
4200 addition to pandoc executable
4201 - Added template item for md5 sum in Portfile.in.
4202 - Incorporated changes from MacPorts repository (r28278).
4203 + FreeBSD port: Don't try to generate distinfo in Makefile.
4204 It can be made using 'make makesum' in FreeBSD.
4205 + Make both freebsd and macports targets depend on tarball.
4207 * Website and documentation:
4209 + Updated INSTALL instructions.
4210 + Added pandocwiki demo to website.
4211 + Removed local references to Portfile, since pandoc is now in the
4212 MacPorts repository.
4214 -- Recai Oktaş <roktas@debian.org> Sun, 02 Sep 2007 15:50:11 +0300
4216pandoc (0.42) unstable; urgency=low
4218 [ John MacFarlane ]
4220 * Main.hs: Use utf8 conversion on the extra files loaded with
4221 the -H, -C, -B, and -A options. This fixes problems with unicode
4222 characters in these files.
4224 * Exposed Text.Pandoc.ASCIIMathML, since it is imported in
4225 Text.Pandoc.Readers.HTML and without it we get a linking error when
4226 using the library.
4228 * Markdown reader:
4230 + Added new rule for enhanced markdown ordered lists: if the list
4231 marker is a capital letter followed by a period (including a
4232 single-letter capital roman numeral), then it must be followed by
4233 at least two spaces. The point of this is to avoid accidentally
4234 treating people's initials as list markers: a paragraph might begin,
4235 "B. Russell was an English philosopher," and this shouldn't be
4236 treated as a list. Documented change in README.
4237 + Blocks that start with "p. " and a digit are no longer treated
4238 as ordered lists (it's a page number).
4239 + Added a needed 'try' to listItem.
4240 + Removed check for a following setext header in endline.
4241 A full test is too inefficient (doubles benchmark time), and the
4242 substitute we had before is not 100% accurate.
4243 + Don't use Code elements for autolinks if --strict specified.
4245 * LaTeX writer: When a footnote ends with a Verbatim environment, the
4246 close } of the footnote cannot occur on the same line or an error occurs.
4247 Fixed this by adding a newline before the closing } of every footnote.
4249 * HTML writer:
4250 + Removed incorrect "{}" around style information in HTML tables.
4251 Column widths now work properly in HTML.
4252 + If --strict option is specified (and --toc is not), don't include
4253 identifiers in headers, for better Markdown compatibility.
4255 * Build process:
4257 + Separated $(web_dest) and website targets.
4258 + In website, index.txt is now constructed from template index.txt.in.
4259 + Added freebsd target to Markefile. This creates the freebsd Makefile
4260 from Makefile.in, and creates distinfo. Removed Makefile and distinfo
4261 from the repository.
4262 + Added macport target to Makefile. Portfile is built from template
4263 Portfile.in.
4264 + Removed OSX package targets. (Too many difficulties involving
4265 dependencies on dynamic libraries.)
4266 + More complete INSTALL instructions for all architectures.
4268 * Website:
4269 + Added a programming demo, pandocwiki.
4271 [ Recai Oktaş ]
4273 * Do not forget to close pandoc's ITP. Closes: #391666
4275 -- Recai Oktaş <roktas@debian.org> Sun, 26 Aug 2007 22:51:32 +0300
4277pandoc (0.41) unstable; urgency=low
4279 [ John MacFarlane ]
4281 * Fixed bugs in HTML reader:
4282 + Skip material at end *only if* </html> is present (previously,
4283 only part of the document would be parsed if an error was
4284 found; now a proper error message is given).
4285 + Added new constant eitherBlockOrInline with elements that may
4286 count either as block-level or as inline. Modified isInline and
4287 isBlock to take this into account.
4288 + Modified rawHtmlBlock to accept any tag (even an inline tag):
4289 this is innocuous, because rawHtmlBlock is tried only if a regular
4290 inline element can't be parsed.
4291 + Added a necessary 'try' in definition of 'para'.
4293 * Fixed bug in markdown ordered list parsing. The problem was that
4294 anyOrderedListStart did not check for a space following the
4295 ordered list marker. So in 'A.B. 2007' the parser would be
4296 expecting a list item, but would not find one, causing an error.
4297 Fixed a similar bug in the RST reader. Resolves Issue #22.
4299 * Refactored RST and Markdown readers using parseFromString.
4301 * LaTeX reader will now skip anything after \end{document}.
4303 * Fixed blockquote output in markdown writer: previously, block
4304 quotes in indented contexts would be indented only in the first
4305 line.
4307 * Added note to INSTALL about variations in versions of the xhtml
4308 library that can lead to failed tests (thanks to Leif LeBaron).
4310 -- Recai Oktaş <roktas@debian.org> Sun, 19 Aug 2007 23:26:07 +0300
4312pandoc (0.4) unstable; urgency=low
4314 [ John MacFarlane ]
4316 * Added two new output formats: groff man pages and ConTeXt. By
4317 default, output files with extensions ".ctx" and ".context" are
4318 assumed to be ConTeXt, and output files with single-digit extensions
4319 are assumed to be man pages.
4321 * Enhanced ordered lists (documented in README, under Lists):
4322 + The OrderedList block element now stores information about
4323 list number style, list number delimiter, and starting number.
4324 + The readers parse this information when possible.
4325 + The writers use this information to style ordered lists.
4326 + The enhancement can be disabled using the --strict option.
4328 * Added support for tables (with a new Table block element). Two kinds
4329 of tables are supported: a simple table with one-line rows, and a
4330 more complex variety with multiline rows. All output formats are
4331 supported, but only markdown tables are parsed at the moment. The
4332 syntax is documented in README.
4334 * Added support for definition lists (with a new DefinitionList block
4335 element). All output and input formats are supported. The syntax is
4336 documented in README.
4338 * Added support for superscripts and subscripts (with new Superscript
4339 and Subscript inline elements). All input and output
4340 formats. The syntax is documented in README.
4342 * Added support for strikeout (with a new Strikeout inline element).
4343 All input and output formats are supported. Thanks to Bradley Kuhn,
4344 who contributed a patch. The syntax is documented in README. Resolves
4345 Issue #18.
4347 * Added a --toc|--table-of-contents option. This causes an automatically
4348 generated table of contents (or an instruction that creates one) to
4349 be inserted at the beginning of the document. Not supported in S5,
4350 DocBook, or man page writers.
4352 * Modified the -m|--asciimathml option:
4354 + If an optional URL argument is provided, a link is inserted
4355 instead of the contents of the ASCIIMathML.js script.
4356 + Nothing is inserted unless the document actually contains
4357 LaTeX math.
4359 * Removed Blank block element as unnecessary.
4361 * Removed Key and Note blocks from the Pandoc data structure. All
4362 links are now stored as explicit links, and note contents are
4363 stored with the (inline) notes.
4365 + All link Targets are now explicit (URL, title) pairs; there
4366 is no longer a 'Ref' target.
4367 + Markdown and RST parsers now need to extract data from key and
4368 note blocks and insert them into the relevant inline elements.
4369 Other parsers have been simplified, since there is no longer any need
4370 to construct separate key and note blocks.
4371 + Markdown, RST, and HTML writers need to construct lists of
4372 notes; Markdown and RST writers need to construct lists of link
4373 references (when the --reference-links option is specified); and
4374 the RST writer needs to construct a list of image substitution
4375 references. All writers have been rewritten to use the State monad
4376 when state is required.
4377 + Several functions (generateReference, keyTable,
4378 replaceReferenceLinks, replaceRefLinksBlockList, and some auxiliaries
4379 used by them) have been removed from Text.Pandoc.Shared, since
4380 they are no longer needed. New functions and data structures
4381 (Reference, isNoteBlock, isKeyBlock, isLineClump) have been
4382 added. The functions inTags, selfClosingTag, inTagsSimple, and
4383 inTagsIndented have been moved to the DocBook writer, since that
4384 is now the only module that uses them. NoteTable is now exported
4385 in Text.Pandoc.Shared.
4386 + Added stateKeys and stateNotes to ParserState; removed stateKeyBlocks,
4387 stateKeysUsed, stateNoteBlocks, stateNoteIdentifiers, stateInlineLinks.
4388 + Added writerNotes and writerReferenceLinks to WriterOptions.
4390 * Added Text.Pandoc module that exports basic readers, writers,
4391 definitions, and utility functions. This should export everything
4392 needed for most uses of Pandoc libraries. The haddock documentation
4393 includes a short example program.
4395 * Text.Pandoc.ASCIIMathML is no longer an exported module.
4397 * Added Text.Pandoc.Blocks module to help in printing markdown
4398 and RST tables. This module provides functions for working with
4399 fixed-width blocks of text--e.g., placing them side by side, as
4400 in a table row.
4402 * Refactored to avoid reliance on Haskell's Text.Regex library, which
4403 (a) is slow, and (b) does not properly handle unicode. This fixed
4404 some strange bugs, e.g. in parsing S-cedilla, and improved performance.
4406 + Replaced 'gsub' with a general list function 'substitute'
4407 that does not rely on Text.Regex.
4408 + Rewrote extractTagType in HTML reader so that it doesn't use
4409 regexs.
4410 + In Markdown reader, replaced email regex test with a custom email
4411 autolink parser (autoLinkEmail). Also replaced selfClosingTag regex
4412 with a custom function isSelfClosingTag.
4413 + Modified Docbook writer so that it doesn't rely on Text.Regex for
4414 detecting 'mailto' links.
4415 + Removed escapePreservingRegex and reamped entity-handling
4416 functions in Text.Pandoc.Shared and Text.Pandoc.CharacterReferences to
4417 avoid reliance on Text.Regex (see below on character reference
4418 handling changes).
4420 * Renamed Text.Pandoc.Entities as Text.Pandoc.CharacterReferences.
4422 * Changed handling of XML entities. Entities are now parsed (and unicode
4423 characters returned) in the Markdown and HTML readers, rather than being
4424 handled in the writers. In HTML and Docbook writers, UTF-8 is now used
4425 instead of entities for characters above 128. This makes the HTML and
4426 DocBook output much more readable and more easily editable.
4428 + Removed sgmlHexEntity, sgmlDecimalEntity, sgmlNamedEntity, and
4429 sgmlCharacterEntity regexes from Text.Pandoc.Shared.
4430 + Renamed escapeSGMLChar to escapeCharForXML. Added escapeStringForXML.
4431 Moved both functions to Text.Pandoc.Writers.Docbook.
4432 + Added characterReference parser to Text.Pandoc.CharacterReferences.
4433 This parses a string and return a unicode character.
4434 + Rewrote decodeCharacterReferences to use the new parser instead of
4435 Text.Regex.
4436 + Added new charRef parser for Markdown and HTML, which replaces the
4437 old 'entity' parser. Added '&' as a special character in Markdown reader.
4438 + Modified HTML and Markdown readers to call decodeEntities on all raw
4439 strings (e.g. authors, dates, link titles), to ensure that no
4440 unprocessed entities are included in the native representation of
4441 the document. (In the HTML reader, most of this work is done by a
4442 change in extractAttributeName.)
4443 + In XML and Markdown output, escape unicode nonbreaking space as '&nbsp;',
4444 since a unicode non-breaking space is impossible to distinguish visually
4445 from a regular space. (Resolves Issue #3.)
4446 + Removed encodeEntitiesNumerical.
4447 + Use Data.Map for entityTable and (new) reverseEntityTable, for a
4448 slight performance boost over the old association list.
4449 + Removed unneeded decodeEntities from 'str' parser in HTML and
4450 Markdown readers.
4452 * Text.Pandoc.UTF8: Renamed encodeUTF8 to toUTF8, decodeUTF8 to
4453 fromUTF8, for clarity.
4455 * Replaced old haskell98 module names replaced by hierarchical module
4456 names, e.g. List by Data.List. Removed haskell98 from dependencies
4457 in pandoc.cabal, and added mtl (needed for state monad). Substituted
4458 xhtml for html.
4460 * Refactored and cleaned up character escaping in writers, using
4461 backslashEscapes and escapeStringUsing functions.
4463 * Instead of adding "\n\n" to the end of an input string in Main.hs,
4464 this is now done in the readers. This makes the libraries behave
4465 the way you'd expect from the pandoc program. Resolves Issue #10.
4467 * URLs and email addresses in autolinks are now typeset as Code.
4469 * In Main.hs, changed putStr to putStrLn -- mainly because MacOS X
4470 doesn't display the whole output unless there's a line ending.
4472 * Major code cleanup in all modules, for greater consistency, concision,
4473 and readability.
4475 * HTML reader:
4477 + Fixed several bugs (extractTagType, attribute parsing).
4478 + Remove Null blocks in lists of blocks when possible.
4479 + Allow HTML comments as raw HTML inline.
4481 * Markdown reader:
4483 + Ordered list items may no longer begin with uppercase letters, or
4484 letters greater than 'n'. (This prevents first initials and page
4485 reference, e.g. 'p. 400', from being parsed as beginning lists.)
4486 Also, numbers beginning list items may no longer end with ')',
4487 which is now allowed only after letters. Note: These changes
4488 may cause documents to be parsed differently. Users should take
4489 care in upgrading.
4490 + Changed autoLink parsing to conform better to Markdown.pl's
4491 behavior. <google.com> is not treated as a link, but
4492 <http://google.com>, <ftp://google.com>, and <mailto:google@google.com>
4493 are.
4494 + Cleaned up handling of embedded quotes in link titles. Now these are
4495 stored as a '"' character, not as '&quot;'.
4496 + Use lookAhead parser for the 'first pass' (looking for reference keys),
4497 instead of parsing normally, then using setInput to reset input. This
4498 yields a slight performance boost.
4499 + Fixed several bugs in smart quote recognition.
4500 + Fixed bug in indentSpaces (which didn't properly handle
4501 cases with mixed spaces and tabs).
4502 + Consolidated 'text', 'special', and 'inline' into 'inline'.
4503 + Fixed bug which allowed URL and title to be separated by multiple blank
4504 lines in links and reference keys. They can be on separate lines but
4505 can't have blank lines between them.
4506 + Correctly handle bracketed text inside inline footnotes and links,using
4507 new function inlinesInBalanced. Resolves Issue #14.
4508 + Fixed bug in footnotes: links in footnotes were not being
4509 processed. Solution: three-stage parse. First, get all the
4510 reference keys and add information to state. Next, get all the
4511 notes and add information to state. (Reference keys may be needed
4512 at this stage.) Finally, parse everything else.
4513 + Replaced named constants like 'emphStart' with literals.
4514 + Removed an extra occurance of escapedChar in definition of inline.
4516 * RST reader:
4518 + Allow the URI in a RST hyperlink target to start on the line
4519 after the reference key.
4520 + Added 'try' in front of 'string', where needed, or used a different
4521 parser. This fixes a bug where ````` would not be correctly parsed as
4522 a verbatim `.
4523 + Fixed slow performance in parsing inline literals in RST reader. The
4524 problem was that ``#`` was seen by 'inline' as a potential link or image.
4525 Fix: inserted 'notFollowedBy (char '`')' in link parsers.
4526 Resolves Issue #8.
4527 + Use lookAhead instead of getInput/setInput in RST reader. Removed
4528 unneeded getState call, since lookAhead automatically saves and
4529 restores the parser state.
4530 + Allow hyperlink target URIs to be split over multiple lines, and
4531 to start on the line after the reference. Resolves Issue #7.
4532 + Fixed handling of autolinks.
4534 * LaTeX reader:
4536 + Replaced 'choice [(try (string ...), ...]' idiom with 'oneOfStrings',
4537 for clarity.
4538 + Added clauses for tilde and caret. Tilde is \ensuremath{\sim}, and
4539 caret is \^{}, not \^ as before.
4540 + Added parsing for \url.
4541 + Parse \texttt{} as code, provided there's nothing fancy inside.
4543 * HTML writer:
4545 + Modified HTML writer to use the Text.XHtml library. This results
4546 in cleaner, faster code, and it makes it easier to use Pandoc in
4547 other projects, like wikis, which use Text.XHtml. Two functions are
4548 now provided, writeHtml and writeHtmlString: the former outputs an
4549 Html structure, the latter a rendered string. The S5 writer is also
4550 changed, in parallel ways (writeS5, writeS5String).
4551 + The Html header is now written programmatically, so it has been
4552 removed from the 'headers' directory. The S5 header is still
4553 needed, but the doctype and some of the meta declarations have
4554 been removed, since they are written programatically. This change
4555 introduces a new dependency on the xhtml package.
4556 + Fixed two bugs in email obfuscation involving improper escaping
4557 of '&' in the <noscript> section and in --strict mode. Resolves
4558 Issue #9.
4559 + Fixed another bug in email obfuscation: If the text to be obfuscated
4560 contains an entity, this needs to be decoded before obfuscation.
4561 Thanks to thsutton for the patch. Resolves Issue #15.
4562 + Changed the way the backlink is displayed in HTML footnotes.
4563 Instead of appearing on a line by itself, it now generally
4564 appears on the last line of the note. (Exception: when the
4565 note does not end with a Plain or Para block.) This saves space
4566 and looks better.
4567 + Added automatic unique identifiers to headers:
4568 - The identifier is derived from the header via a scheme
4569 documented in README.
4570 - WriterState now includes a list of header identifiers and a table
4571 of contents in addition to notes.
4572 - The function uniqueIdentifiers creates a list of unique identifiers
4573 from a list of inline lists (e.g. headers).
4574 - This list is part of WriterState and gets consumed by blockToHtml
4575 each time a header is encountered.
4576 + Include CSS for .strikethrough class in header only if strikethrough
4577 text appears in the document.
4578 + If the 'strict' option is specified, elements that do not appear in
4579 standard markdown (like definition lists) are passed through as
4580 raw HTML.
4581 + Simplified treatment of autolinks, using pattern matching instead of
4582 conditionals.
4584 * Markdown writer:
4586 + Links in markdown output are now printed as inline links by default,
4587 rather than reference links. A --reference-links option has been added
4588 that forces links to be printed as reference links. Resolves Issue #4.
4589 + Use autolinks when possible. Instead of [site.com](site.com),
4590 use <site.com>.
4592 * LaTeX writer:
4594 + Rewrote to use the State monad. The preamble now includes only those
4595 packages that are actually required, given the document's content.
4596 Thus, for example, if strikeout is not used, ulem is not required.
4597 Modified LaTeXHeader accordingly.
4598 + Modified LaTeX writer to insert '\,' between consecutive quotes.
4599 + Removed unused function tableRowColumnWidths.
4600 + Simplified code for escaping special characters.
4601 + Leave extra blank line after \maketitle.
4602 + Include empty '\author{}' when no author specified to avoid LaTeX
4603 errors.
4604 + Include fancyvrb code in header only if needed -- that is, only
4605 if there is actually code in a footnote.
4606 + Use \url{} for autolinks.
4607 + Include [mathletters] option in ucs package, so that basic unicode
4608 Greek letters will work correctly.
4610 * RST writer: Force blank line before lists, so that sublists will
4611 be handled correctly.
4613 * Docbook writer: Fixed a bug: email links with text, like
4614 [foo](me@bar.baz), were being incorrectly treated as autolinks.
4616 * Removed Text.ParserCombinators.Pandoc and moved all its functions to
4617 Text.Pandoc.Shared.
4619 * Text.Pandoc.Shared:
4621 + Added defaultWriterOptions.
4622 + Added writerTableOfContents to WriterOptions.
4623 + Added writerIgnoreNotes option to WriterOptions. This is needed
4624 for processing header blocks for a table of contents, since notes on
4625 headers should not appear in the TOC.
4626 + Added prettyprinting for native Table format.
4627 + Removed some unneeded imports.
4628 + Moved escape and nullBlock parsers from
4629 Text.ParserCombinators.Pandoc, since the latter is for
4630 general-purpose parsers that don't depend on Text.Pandoc.Definition.
4631 + Moved isHeaderBlock from Text.Pandoc.Writers.HTML.
4632 + Moved Element, headerAtLeast, and hierarchicalize from Docbook
4633 writer, because HTML writer now uses these in constructing a table
4634 of contents.
4635 + Added clauses for new inline elements (Strikeout, Superscript,
4636 Subscript) to refsMatch.
4637 + Removed backslashEscape; added new functions escapeStringUsing and
4638 backslashEscapes.
4639 + Moved failIfStrict from markdown reader, since it is now used also
4640 by the HTML reader.
4641 + Added a 'try' to the definition of indentSpaces.
4642 + In definition of 'reference', added check to make sure it's not a note
4643 reference.
4644 + Added functions: camelCaseToHyphenated, toRomanNumeral,
4645 anyOrderedListMarker, orderedListmarker, orderedListMarkers,
4646 charsInBalanced', withHorizDisplacement, romanNumeral
4647 + Fixed a bug in the anyLine parser. Previously it would parse an empty
4648 string "", but it should fail on an empty string, or we get an error
4649 when it is used inside "many" combinators.
4650 + Removed followedBy' parser, replacing it with the lookAhead parser from
4651 Parsec.
4652 + Added some needed 'try's before multicharacter parsers, especially in
4653 'option' contexts.
4654 + Removed the 'try' from the 'end' parser in 'enclosed', so that
4655 'enclosed' behaves like 'option', 'manyTill', etc.
4656 + Added lineClump parser, which parses a raw line block up to and
4657 including any following blank lines.
4658 + Renamed parseFromStr to parseFromString.
4659 + Added a 'try' to the 'end' parser in 'enclosed'. This makes errors in
4660 the use of 'enclosed' less likely. Removed some now-unnecessary 'try's
4661 in calling code.
4662 + Removed unneeded 'try' in blanklines.
4663 + Removed endsWith function and rewrote calling functions to use
4664 isSuffixOf instead.
4665 + Added >>~ combinator.
4666 + Fixed bug in normalizeSpaces: Space:Str "":Space should compress to
4667 Space.
4669 * Refactored runtests.pl; added separate tests for tables.
4671 * Shell scripts:
4673 + Added -asxhtml flag to tidy in html2markdown. This will
4674 perhaps help the parser, which expects closing tags.
4675 + Modified markdown2pdf to run pdflatex a second time if --toc or
4676 --table-of-contents was specified; otherwise the table of
4677 contents won't appear.
4678 + Modified markdown2pdf to print a helpful message if the 'ulem'
4679 LaTeX package is required and not found.
4681 * Changes to build process:
4683 + Dropped support for compilation with GHC 6.4. GHC 6.6 or higher
4684 is now required.
4685 + Removed cabalize and Pandoc.cabal.in. The repository now contains
4686 pandoc.cabal itself.
4687 + Pandoc.cabal has been changed to pandoc.cabal, because HackageDB
4688 likes the cabal file to have the same name as the tarball.
4689 + Expanded and revised the package description in pandoc.cabal.
4690 Revised the package synopsis.
4691 + The tarball built by 'make tarball' now contains files built from
4692 templates (including man pages and shell scripts), so pandoc can
4693 be built directly using Cabal tools, without preprocessing.
4694 + Executable binaries are now stripped before installing.
4695 + Man pages are now generated from markdown sources, using pandoc's
4696 man page writer.
4697 + Use HTML version of README (instead of RTF) in Mac OS X installer.
4698 + Instead of testing for the existence of a pandoc symlink in build-exec,
4699 use ln -f.
4701 * Documentation:
4703 + Updated README and man pages with information on new features.
4704 + Updated INSTALL instructions with some useful clarifications and
4705 links.
4706 + Updated web content.
4708 * Added FreeBSD port.
4710 [ Recai Oktaş ]
4712 * debian/control:
4714 + Changed pandoc's Build-Depends to include libghc6-mtl-dev and
4715 libghc6-xhtml-dev. Removed libghc6-html-dev.
4716 + Suggest texlive-latex-recommended | tetex-extra instead of
4717 tetex-bin. This brings in fancyvrb and unicode support.
4719 -- Recai Oktaş <roktas@debian.org> Tue, 16 Jan 2007 00:37:21 +0200
4721pandoc (0.3) unstable; urgency=low
4723 [ John MacFarlane ]
4725 * Changes in pandoc options:
4727 + Allow options to follow or precede arguments.
4728 + Changed '--smartypants' to '--smart' and adjusted symbols accordingly.
4729 + Added '--strict' option.
4730 + Added '-o/--output' option.
4731 + Added '--dump-args' and '--ignore-args' options (for use in wrappers).
4732 + Modified '-v' and '-h' output to go to STDERR, not STDOUT, and return
4733 error conditions. This is helpful for writing wrappers.
4734 + Added copyright message to '-v' output, modeled after FSF messages.
4735 + Reformatted usage message so that it doesn't wrap illegibly.
4736 + Removed extra blanks after '-h' and '-D' output.
4738 * Added docbook writer.
4740 * Added implicit setting of default input and output format based
4741 on input and output filename extensions. These defaults are
4742 overridden if explicit input and output formats are specified using
4743 '-t', '-f', '-r', or '-w' options. Documented in pandoc(1) man page
4744 and README.
4746 * Allow ordered list items to begin with (single) letters, as well
4747 as numbers. The list item marker may now be terminated either by
4748 '.' or by ')'. This extension to standard markdown is documented
4749 in README.
4751 * Revised footnote syntax. (See README for full details.) The
4752 '[^1]' format now standard in markdown extensions is supported,
4753 as are inline footnotes with this syntax: '^[My note.]'.
4754 The earlier footnote syntax '^(1)' is no longer supported.
4756 * Improved HTML representation of footnotes. All footnotes
4757 are now auto-numbered and appear in an ordered list at the
4758 end of the HTML document. Since the default appearance is now
4759 acceptable, the old footnote styles have been removed from the
4760 HTML header.
4762 * Bug fixes:
4764 + Fixed a serious bug in the markdown, LaTeX, and RST readers.
4765 These readers ran 'runParser' on processed chunks of text to handle
4766 embedded block lists in lists and quotation blocks. But then
4767 any changes made to the parser state in these chunks was lost,
4768 as the state is local to the parser. So, for example, footnotes
4769 didn't work in quotes or list items. The fix: instead of calling
4770 runParser on some raw text, use setInput to make it the input, then
4771 parse it, then use setInput to restore the input to what it was
4772 before. This is shorter and more elegant, and it fixes the problem.
4773 + Fixed bug in notFollowedBy' combinator (adding 'try' before
4774 'parser'). Adjusted code that uses this combinator accordingly.
4775 + Fixed bug in RTF writer that caused improper indentation on
4776 footnotes occurring in indented blocks like lists.
4777 + Fixed parsing of metadata in LaTeX reader. Now the title, author,
4778 and date are parsed correctly. Everything else in the preamble
4779 is skipped.
4780 + Modified escapedChar in LaTeX reader to allow a '\' at the end of a
4781 line to count as escaped whitespace.
4782 + Modified LaTeX reader to produce inline links rather than reference
4783 links. Otherwise, links in footnotes aren't handled properly.
4784 + Fixed handling of titles in links in Markdown reader, so that
4785 embedded quotation marks are now handled properly.
4786 + Fixed Markdown reader's handling of embedded brackets in links.
4787 + Fixed Markdown reader so that it only parses bracketed material
4788 as a reference link if there is actually a corresponding key.
4789 + Revised inline code parsing in Markdown reader to conform to
4790 markdown standard. Now any number of `s can begin inline code,
4791 which will end with the same number of `s. For example, to
4792 have two backticks as code, write ``` `` ```. Modified Markdown
4793 writer accordingly.
4794 + Fixed bug in text-wrapping routine in Markdown and RST writers.
4795 Now LineBreaks no longer cause wrapping problems.
4796 + Supported hexadecimal numerical entity references as well as
4797 decimal ones.
4798 + Fixed bug in Markdown reader's handling of underscores and other
4799 inline formatting markers inside reference labels: for example,
4800 in '[A_B]: /url/a_b', the material between underscores was being
4801 parsed as emphasized inlines.
4802 + Changed Markdown reader's handling of backslash escapes so that
4803 only non-alphanumeric characters can be escaped. Strict mode
4804 follows Markdown.pl in only allowing a select group of punctuation
4805 characters to be escaped.
4806 + Modified HTML reader to skip a newline following a <br> tag.
4807 Otherwise the newline will be treated as a space at the beginning
4808 of the next line.
4810 * Made handling of code blocks more consistent. Previously, some
4811 readers allowed trailing newlines, while others stripped them.
4812 Now, all readers strip trailing newlines in code blocks. Writers
4813 insert a newline at the end of code blocks as needed.
4815 * Modified readers to make spacing at the end of output more consistent.
4817 * Minor improvements to LaTeX reader:
4819 + '\thanks' now treated like a footnote.
4820 + Simplified parsing of LaTeX command arguments and options.
4821 commandArgs now returns a list of arguments OR options (in
4822 whatever order they appear). The brackets are included, and
4823 a new stripFirstAndLast function is provided to strip them off
4824 when needed. This fixes a problem in dealing with \newcommand
4825 and \newenvironment.
4827 * Revised RTF writer:
4829 + Default font is now Helvetica.
4830 + An '\f0' is added to each '\pard', so that font resizing works
4831 correctly.
4833 * Moved handling of "smart typography" from the writers to the Markdown
4834 and LaTeX readers. This allows great simplification of the writers
4835 and more accurate smart quotes, dashes, and ellipses. DocBook can
4836 now use '<quote>'. The '--smart' option now toggles an option in
4837 the parser state rather than a writer option. Several new kinds
4838 of inline elements have been added: Quoted, Ellipses, Apostrophe,
4839 EmDash, EnDash.
4841 * Changes in HTML writer:
4843 + Include title block in header even when title is null.
4844 + Made javascript obfuscation of emails even more obfuscatory,
4845 by combining it with entity obfuscation.
4847 * Changed default ASCIIMathML text color to black.
4849 * Test suite:
4851 + Added --strip-trailing-cr option to diff in runtests.pl, for
4852 compatibility with Windows.
4853 + Added regression tests with footnotes in quote blocks and lists.
4855 * Makefile changes:
4857 + osx-pkg target creates a Mac OS X package (directory). New osx
4858 directory contains files needed for construction of the package.
4859 + osx-dmg target creates a compressed disk image containing the package.
4860 + win-pkg target creates Windows binary package.
4861 + tarball target creates distribution source tarball.
4862 + website target generates pandoc's website automatically, including
4863 demos. New 'web' directory containts files needed for construction
4864 of the website (which will be created as the 'pandoc' subdirectory
4865 of 'web').
4866 + Makefile checks to see if we're running Windows/Cygwin; if so,
4867 a '.exe' extension is added to each executable in EXECS.
4869 * Removed all wrappers except markdown2pdf and html2markdown.
4871 * Added new wrapper hsmarkdown, to be used as a drop-in replacement
4872 for Markdown.pl. hsmarkdown calls pandoc with the '--strict'
4873 option and disables other options.
4875 * Added code to html2markdown that tries to determine the character
4876 encoding of an HTML file, by parsing the "Content-type" meta tag.
4878 + If the encoding can't be determined, then if the content is local,
4879 the local encoding is used; if it comes from a URL, UTF-8 is used
4880 by default.
4881 + If input is from STDIN, don't try to determine character encoding.
4882 + Encoding can be specified explicitly using '-e' option.
4884 * Improved warning messages in wrappers:
4886 + Print warning if iconv not available
4887 + More user-friendly error messages in markdown2pdf, when
4888 pdflatex fails.
4890 * Code cleanup:
4892 + Renamed 'Text/Pandoc/HtmlEntities' module to
4893 'Text/Pandoc/Entities'. Also changed function names so as
4894 not to be HTML-specific.
4895 + Refactored SGML string escaping functions from HTML and Docbook
4896 writers into Text/Pandoc/Shared. (escapeSGML, stringToSGML)
4897 + Removed 'BlockQuoteContext' from ParserContext, as it isn't
4898 used anywhere.
4899 + Removed splitBySpace and replaced it with a general, polymorphic
4900 splitBy function.
4901 + Refactored LaTeX reader for clarity (added isArg function).
4902 + Converted some CR's to LF's in src/ui/default/print.css.
4903 + Added license text to top of source files.
4904 + Added module data for haddock to source files.
4905 + Reformatted code for consistency.
4907 * Rewrote documentation and man pages. Split README into INSTALL
4908 and README.
4910 * Split LICENSE into COPYING and COPYRIGHT.
4912 * Removed TODO, since we now maintain ToDo on the wiki.
4914 * Made COPYRIGHT in top level a symlink to debian/copyright, to avoid
4915 duplication.
4917 [ Recai Oktaş ]
4919 * Revamped build process to conform to debian standards and created
4920 a proper debian package. Closes: #391666.
4922 * Modified build process to support GHC 6.6.
4924 + The package can still be compiled using GHC 6.4.2, though because
4925 of dependencies the "make deb" target works only with GHC 6.6+.
4926 + The script 'cabalize' is used to create an appropriate
4927 'Pandoc.cabal' from 'Pandoc.cabal.in', depending on the GHC and
4928 Cabal versions.
4930 * Refactored template processing (fillTemplates.pl).
4932 * Modified wrapper scripts to make them more robust and portable.
4933 To avoid code duplication and ensure consistency, wrappers are
4934 generated via a templating system from templates in src/wrappers.
4936 + Wrappers now accept multiple filenames, when appropriate.
4937 + Spaces and tabs allowed in filenames.
4938 + getopts shell builtin is used for portable option parsing.
4939 + Improved html2markdown's web grabber code, making it more robust,
4940 configurable and verbose. Added '-e', '-g' options.
4942 -- Recai Oktaş <roktas@debian.org> Fri, 05 Jan 2007 09:41:19 +0200
4944pandoc (0.2) unstable; urgency=low
4946 * Fixed unicode/utf-8 translation
4948 -- John MacFarlane <jgm@berkeley.edu> Mon, 14 Aug 2006 00:00:00 -0400
4950pandoc (0.1) unstable; urgency=low
4952 * Initial creation of debian package
4954 -- John MacFarlane <jgm@berkeley.edu> Mon, 14 Aug 2006 00:00:00 -0400