git.iko.soy/typeable/pandoc
on mallard help sign in
typeable/pandoc/changelog
9568 lines 398 kB history raw
1pandoc (1.17.0.3)
3 * LaTeX writer: Fixed position of label in figures (#2813).
4 Previously the label wasn't in the right place, and `\ref`
5 wouldn't work properly.
6 * Added .tei test files to pandoc.cabal so they'll be included
7 in tarball (#2811).
8 * Updated copyright dates.
10pandoc (1.17.0.2)
12 * Fixed serious regression in `htmlInBalanced`, which caused
13 newlines to be omitted in some raw HTML blocks in Markdown
14 (#2804).
16pandoc (1.17.0.1)
18 * File scope is no longer used when there are no input files (i.e.,
19 when input comes from stdin). Previously file scope was triggered
20 when the `json` reader was specified and input came from `stdin`,
21 and this caused no output to be produced. (Fix due to Jesse Rosenthal;
22 thanks to Fedor Sheremetyev for calling the bug to our attention.)
23 * Improved documentation of templates (#2797).
25pandoc (1.17)
27 * Added `--file-scope` option (Jesse Rosenthal).
28 By default pandoc operates on multiple files by first concatenating
29 them (around extra line breaks) and then processing the joined file. So
30 it only parses a multi-file document at the document scope. This has the
31 benefit that footnotes and links can be in different files, but for
32 some purposes it is useful to parse the individual files first
33 and then combine their outputs (e.g. when the files use footnotes
34 or links with the same labels). The `--file-scope` option causes
35 pandoc to parse the files first, and then combine the parsed output,
36 instead of combining before parsing. `--file-scope` is selected
37 automatically for binary input files (which cannot be concatenated)
38 and for pandoc json.
40 * Add TEI Writer (Chris Forster) and `tei` output format.
42 * Added a general `ByteStringReader` with warnings, used by the docx
43 reader (API change, Jesse Rosenthal).
45 * Add `readDocxWithWarnings` (API change, Jesse Rosenthal).
47 * Changed type of `Shared.uniqueIdent`'s argument from `[String]`
48 to `Set String.` This avoids performance problems in documents with
49 many identically named headers (API change, #2671).
51 * Removed `tex_math_single_backslash` from `markdown_github` options
52 (#2707).
54 * Make language extensions as well as full language names
55 trigger syntax highlighting. For example, `py` will now work as
56 well as `python` (jgm/highlighting-kate#83).
58 * Added `institute` variable to latex, beamer templates (Fraser
59 Tweedale, Josef Svenningsson).
61 * Docx reader (Jesse Rosenthal):
63 + Handle alternate content. Some word functions (especially graphics)
64 give various choices for content so there can be backwards compatibility.
65 + Don't turn numbered headers into lists.
66 + Docx Reader: Add state to the parser, for warnings
67 + Update feature checklist in source code.
68 + Get rid of `Modifiable` typeclass.
69 + Add tests for adjacent hyperlinks.
70 + Add a "Link" modifier to `Reducible`. We want to make sure that
71 links have their spaces removed, and are appropriately smushed
72 together (#2689).
74 * HTML reader:
76 + Fixed behavior of base tag (#2777).
77 If the base path does not end with slash, the last component
78 will be replaced. E.g. base = `http://example.com/foo`
79 combines with `bar.html` to give `http://example.com/bar.html`.
80 If the href begins with a slash, the whole path of the base
81 is replaced. E.g. base = `http://example.com/foo/` combines
82 with `/bar.html` to give `http://example.com/bar.html`.
83 + Rewrote `htmlInBalanced`. This version avoids an exponential
84 performance problem with `<script>` tags, and it should be faster
85 in general (#2730).
86 + Properly handle an empty cell in a simple table (#2718).
87 + Handle multiple `<meta>` tags with same name. Put them in a list
88 in the metadata so they are all preserved, rather than (as before)
89 throwing out all but one..
91 * Markdown reader:
93 + Improved pipe table parsing (#2765).
94 + Allow `+` separators in pipe table cells. We already allowed
95 them in the header, but not in the body rows, for some reason.
96 This gives compatibility with org-mode tables.
97 + Don't cross line boundary parsing pipe table row.
98 Previously an Emph element could be parsed across the newline
99 at the end of the pipe table row.
100 + Use `htmlInBalanced` for `rawVerbatimBlock`, for better
101 performance (#2730).
102 + Fixed bug with smart quotes around tex math.
104 * LaTeX reader:
106 + Handle interior `$` characters in math (#2743). For example,
107 `$$\hbox{$i$}$$`.
108 + `inlineCommand` now gobbles an empty `{}` after any command (#2687).
109 This gives better results when people write e.g. `\TeX{}` in Markdown.
110 + Properly handle LaTeX "math" environment as inline math (#2171).
112 * Textile reader: Support `>`, `<`, `=`, `<>` text alignment attributes.
113 Closes #2674.
115 * Org reader (Albert Krewinkel):
117 + Prefix even empty figure names with "fig:" (#2643). The
118 convention used by pandoc for figures is to mark them by prefixing
119 the name with `fig:`. The org reader failed to do this if a figure
120 had no name.
121 + Refactor link-target processing (#2684).
123 * ConTeXt writer: Fix whitespace at line beginning in line blocks (#2744).
124 Thanks to @c-foster.
126 * HTML writer: Don't include alignment attribute for default table columns.
127 Previously these were given "left" alignment. Better to leave off
128 alignment attributes altogether (#2694).
130 * Markdown writer: Use hyphens for YAML metadata block bottom line, for
131 better compatibility with other Markdown flavors (Henrik Tramberend).
133 * LaTeX writer:
135 + Use image identifier to create a label and hypertarget for
136 figures (Mauro Bieg).
137 + Avoid double toprule in headerless table with caption (#2742).
138 + Clean up options parser (Jesse Rosenthal).
139 + Treat `memoir` template with `article` option as article, instead
140 of treating all `memoir` templates as books.
141 + Allow more flexible table alignment (Henrik Tramberend, #2665).
142 New default is not to include `[c]` option (which is the default
143 anyway if no positioning is specified). Now LaTeX emplates can
144 control the overall table alignment in a document by setting the
145 longtable length variables `LTleft` and `LTright`. For example,
146 `\setlength\LTleft\parindent\setlength\LTright\fill`
147 will create left-aligned tables that respect paragraph indentation.
149 * Docx writer: Handle image alt text (#2754, Mauro Bieg).
151 * Org writer - pass through RawInline with format "org".
153 * DokuWiki writer: use `$$` for display math.
155 * Custom writer: Pass attributes parameter to CaptionedImage (#2697).
157 * Make protocol-relative URIs work again (#2737).
159 * make_osx_package.sh: Use env variable for developer id certs.
161 * Raise `tagsoup` lower bound to 0.13.7 to fix entity-related
162 problems (#2734).
164 * Allow `zip-archive` 0.3.
166 * Allow `aeson` 0.11.
168pandoc (1.16.0.2)
170 * Depend on deepseq rather than deepseq-generics (fpco/stackage#1096).
172 * Fixed regression in latex smart quote parsing (#2645).
173 In cases where a match was not found for a quote, everything
174 from the open quote to the end of the paragraph was being dropped.
176pandoc (1.16.0.1)
178 * Fixed regression with `--latex-engine` (#2618). In 1.16 `--latex-engine`
179 raises an error if a full path is given.
181 * Org reader: Fix function dropping subtrees tagged `:noexport`
182 (Albert Krewinkel, #2628):
184 * Markdown reader: renormalize table column widths if they exceed 100%
185 (#2626).
187 * Textile reader: don't allow block HTML tags in inline contexts.
188 The reader previously did allow this, following redcloth,
189 which happily parses
191 Html blocks can be <div>inlined</div> as well.
193 as
195 <p>Html blocks can be <div>inlined</div> as well.</p>
197 This is invalid HTML. The above sample now produces;
199 <p>Html blocks can be</p>
200 <div>
201 <p>inlined</p>
202 </div>
203 <p>as well.</p>
205 * Improved default template lookup for custom lua scripts (#2625).
206 Previously, if you tried to do `pandoc -s -t /path/to/lua/script.lua`,
207 pandoc would look for the template in
208 `~/.pandoc/templates/default./path/to/lua/script.lua`.
209 With this change it will look in the more reasonable
210 `~/.pandoc/templates/default.script.lua`. This makes it possible to
211 store default templates for custom writers.
213 * RST, Markdown writers: Fixed rendering of grid tables with blank rows
214 (#2615).
216 * LaTeX writer: restore old treatment of Span (#2624). A Span is
217 now rendered with surrounding `{}`, as it was before 1.16.
219 * Entity handling fixes: improved handling of entities like
220 `&lang;` that require a trailing semicolon. Allow uppercase
221 `x` in numerical hexidecimal character references, working
222 around a tagsoup bug.
224 * `stack.yaml` - use lts-4.0, but with older aeson to avoid excessive
225 memory use on compile. With aeson 0.10 we were getting an out of
226 memory error on a 2GB Ubuntu 64-bit VM.
228 * Improved deb package creation script. Made `DPKGVER` work.
229 Renamed `COMMIT` to `TREE`. You should now be able to do
230 `TREE=1.16.0.1 DPKGVER=2 make deb`.
233pandoc (1.16)
235 * Added `Attr` field to `Link` and `Image` (Mauro Bieg, #261, API change).
237 + Added syntax for link and image attributes to pandoc's Markdown.
238 + Updated readers and writers to use link and image attributes
239 when appropriate.
240 + Support image attributes in Docx, Textile, RST readers.
242 * Renamed link attribute extensions. The old `link_attributes` is
243 now `mmd_link_attributes`, and `link_attributes` now enables the
244 new pandoc-style link and image attributes (API change).
245 Note: this change could break some existing workflows.
247 * Implemented `SoftBreak` and new `--wrap` option (#1701, API change).
248 Added threefold wrapping option.
250 + Command line option: deprecated `--no-wrap`, added
251 `--wrap=[auto|none|preserve]`
252 + Added `WrapOption`, exported from `Text.Pandoc.Options`
253 + Changed type of `writerWrapText` in `WriterOptions` from
254 `Bool` to `WrapOption`.
255 + Modified `Text.Pandoc.Shared` functions to allow `SoftBreak`.
256 + Supported `SoftBreak` in readers and writers.
258 * Text.Pandoc.Options: Added `writerDpi` to `WriterOptions` (API
259 change, Mauro Bieg).
261 * Added `--dpi` command-line option (Mauro Bieg).
263 * Rationalized behavior of `--no-tex-ligatures` and `--smart` (#2541).
264 This change makes `--no-tex-ligatures` affect the LaTeX reader
265 as well as the LaTeX and ConTeXt writers. If it is used,
266 the LaTeX reader will parse characters `` ` ``, `'`, and `-`
267 literally, rather than parsing ligatures for quotation marks
268 and dashes. And the LaTeX writer will print unicode quotation
269 mark and dash characters literally, rather than converting
270 them to the standard ASCII ligatures. Note that `--smart` has
271 no effect on the LaTeX reader. `--smart` is still the default
272 for all input formats when LaTeX or ConTeXt is the output format,
273 *unless* `--no-tex-ligatures` is used.
275 Some examples to illustrate the logic:
277 ```
278 % echo "'hi'" | pandoc -t latex
279 `hi'
280 % echo "'hi'" | pandoc -t latex --no-tex-ligatures
281 'hi'
282 % echo "'hi'" | pandoc -t latex --no-tex-ligatures --smart
283 ‘hi’
284 % echo "'hi'" | pandoc -f latex --no-tex-ligatures
285 <p>'hi'</p>
286 % echo "'hi'" | pandoc -f latex
287 <p>’hi’</p>
288 ```
290 * Removed deprecated options `--offline` and `--html5`.
292 * Fixed language code for Czech (`cs` not `cz`) (#2597).
294 * Implemented `east_asian_line_breaks` extension (#2586).
295 In `Text.Pandoc.Options`, added `Ext_east_asian_line_breaks` constructor
296 to `Extension` (API change). This extension is like
297 `ignore_line_breaks`, but smarter -- it only ignores line breaks
298 between two East Asian wide characters. This makes it better suited
299 for writing with a mix of East Asian and non-East Asian scripts.
301 * Added support for PDF creation via `wkhtmltopdf`.
302 To use this: `pandoc -t html5 -o result.pdf` (and add `--mathjax`
303 if you have math.) Margins can be set using the variables
304 `margin-top`, `margin-bottom`, `margin-left`, `margin-right`.
305 Other styling can be done through CSS.
307 * Fixed cite key parsing regression (jgm/pandoc-citeproc#201).
308 We were capturing final colons as in `[@foo: bar]`; the citation id
309 was being parsed as `@foo:`.
311 * ICML writer:
313 + Fixed image syntax for local files (#2589).
314 + Changed type of `writeICML` (Mauro Bieg).
315 API change: It is now `WriterOptions -> Pandoc -> IO String`.
316 Also handle new image attributes.
317 + Intersperse line breaks instead of appending them to
318 every `ParagraphStyleRange` (Mauro Bieg, #2501).
319 + Add `Cite` style to citations (Mauro Bieg).
320 + Added figure handling (#2590, Mauro Bieg).
321 + Better handling of math. Instead of just printing the raw tex,
322 we now try to fake it with unicode characters.
324 * HTML writer: Include `example` class for example lists (#2524).
326 * ODT/OpenDocument writer: improved image attributes (Mauro Bieg).
328 + Support for percentage widths/heights
329 + Use `Attr` instead of title to get dimensions from ODT walker
330 to `writeOpenDocument`.
332 * AsciiDoc writer:
334 + Support anchors in spans and divs with id elements
335 (jgm/pandoc-citeproc#143).
336 + Fixed code blocks (#1861).
338 * Haddock writer: omit formatting inside links, which isn't supported
339 by Haddock (#2515).
341 * MediaWiki writer: Fixed spacing issues in table cells.
343 + Start cell on new line unless it's a single Para or Plain
344 (#2606).
345 + For single Para or Plain, insert a space after the `|` to
346 avoid problems when the text begins with a character like
347 `-` (#2604).
349 * Beamer writer: mark frame as fragile when it contains verbatim (#1613).
351 * LaTeX writer:
353 + Add support for GAP highlighting using listings (Raniere Silva).
354 + Consider `header-includes` content as well as templates
355 when determining whether to use csquotes (Andreas Lööw).
356 + Create defaults for geometry using `margin-left` etc.
357 If `geometry` has no value, but `margin-left`, `margin-right`,
358 `margin-top`, and/or `-margin-bottom` are given, a default value
359 for `geometry` is created from these. Note that these variables
360 already affect PDF production via HTML5 with `wkhtmltopdf`.
362 * ConTeXt writer: set default layout based on `margin-left`, etc.
363 This sets up `\setuplayout` based on the variables `margin-left`,
364 `margin-right`, `margin-bottom`, and `margin-top`, if no layout
365 is given.
367 * Docx writer: better handling of PDF images. Previously we tried
368 to get the image size from the image even if an explicit size was
369 specified. Since we still can't get image size for PDFs, this made
370 it impossible to use PDF images in docx. Now we don't try to get
371 the image size when a size is already explicitly specified.
373 * Markdown writer: use raw HTML for link/image attributes when
374 the `link_attributes` extension is unset and `raw_html` is set (#2554).
376 * MediaWiki reader: interpret markup inside `<tt>`, `<code>` (#2607).
378 * LaTeX reader:
380 + Improved smart quote parsing (#2555). This fixes redering of
381 unmatched quotes.
382 + Use curly quotes for unmatched ` (#2555).
383 + Allow blank space between braced arguments of commands (#2592).
385 * Markdown reader:
387 + Improved pipe table relative widths. Previously pipe table
388 columns got relative widths (based on the header underscore lines)
389 when the source of one of the rows was greater in width than the
390 column width. This gave bad results in some cases where much of
391 the width of the row was due to nonprinting material (e.g. link
392 URLs). Now pandoc only looks at printable width (the width of a
393 plain string version of the source), which should give better results.
394 Thanks to John Muccigrosso for bringing up the issue.
395 + Fixed parsing bug with macros. Previously macro definitions in
396 indented code blocks were being parsed as macro definitions, not code.
398 * Textile reader: skip over attribute in image source (#2515).
399 We don't have a place yet for styles or sizes on images, but
400 we can skip the attributes rather than incorrectly taking them
401 to be part of the filename.
403 * Docx reader: Handle dummy list items (Jesse Rosenthal).
404 These come up when people create a list item and then delete the
405 bullet. It doesn't refer to any real list item, and we used to ignore
406 it.
408 * CommonMark reader/writer rewritten to use latest `cmark`.
410 * Fixed Emoji character definitions (#2523). There were many bugs in the
411 definitions.
413 * `Text.Pandoc.CSS`:
415 + Added `pickStylesToKVs` function to extract multiple properties at
416 once (API change, Mauro Bieg).
417 + Parse CSS that doesn't contain the optional semicolon (Mauro Bieg).
419 * `trypandoc`: sort drop-down lists.
421 * Beamer template:
423 + Made `\euro` conditional on presence of character.
424 for xelatex and lualatex, as it is for pdflatex (Andrew Dunning).
425 + Moved `header-includes` before setting of title (Thomas Hodgson),
426 to match the LaTeX template (jgm/pandoc-templates#168).
427 + Added `section-titles` variable (defaults to true)
428 to enable/suppress section title pages in beamer
429 slide shows (Thomas Hodgson).
430 + Moved beamer themes after fonts, so that themes can
431 change fonts. (Previously the fonts set were being
432 clobbered by lmodern.sty.) (Thomas Hodgson).
434 * Beamer/LaTeX template changes (Thomas Hodgson):
435 + Added `thanks` variable
436 + Use `parskip.sty` when `indent` isn't set (fall back to using
437 `setlength` as before if `parskip.sty` isn't available).
438 + Use `biblio-style` with biblatex.
439 + Added `biblatexoptions` variable.
441 * LaTeX template changes:
443 + Added `paper` after `$papersize$` variable in latex template.
444 Thus you can say `papersize: a4` and the latex will contain
445 `a4paper`. This change may break some existing workflows; if
446 you currently specify `a4paper`, you'll get `a4paperpaper` which
447 is meaningless. However, the change seems worth it, as it will
448 make the `papersize` variable work uniformly across ConTeXt, LaTeX,
449 and html->pdf via wkhtmltopdf.
450 + Only pass options to color package if `colorlinks` is set
451 (Andrew Dunning).
452 + Make definition of `\euro` conditional in xelatex/lualatex,
453 as it is already for pdflatex (Andrew Dunning).
454 + Removed setting of `subject` in PDF metadata.
455 This used to be set to the subtitle, but really the subtitle
456 need not give the subject. Also, `subtitle` can contain formatting,
457 so we'd need, at least, a plain text version for this.
458 + Moved `header-includes` before setting of `\title`, `\author`,
459 etc. This allows these macros to be redefined.
460 + Use `\subtitle` command for `subtitle`, instead of tacking it
461 on to the title as before. We give a no-op fallback definition if it
462 is not defined. This change should produce much better results
463 in classes that support `\subtitle`. With the default article
464 class, which does not define `\subtitle`, subtitles will no
465 longer be printed unless the user defines `\subtitle` and
466 redefines `\maketitle`.
467 + Moved redefinitions of `\paragraph` and `\subparagraph` to
468 before header-includes.
470 * Context template:
472 + Use `simplefonts` for font loading (Paolo Rodríguez). This is
473 needed for things to work on ConTeXt stable from TeXLive 2015.
474 + Revert use of `\setuphead` in title block (Andrew Dunning,
475 Rik Kabel).
477 * Update LaTeX/ConTeXt link colour usage (Andrew Dunning).
479 * Fixed man template so disabling hyphenation actually works.
480 The command needs to come after .TH.
482 * Added 'navigation' variable to beamer template (#2543).
483 Valid values are `empty` (the default), `horizontal`, `vertical`,
484 and `frame`. Note that this changes the default behavior from
485 `horizontal` to `empty`. Closes #2543.
487 * Added `toc` to HTML slide format templates (Andrew Dunning),
488 so that `--toc` creates a contents slide.
490 * Added `stack.full.yaml` to build `pandoc-citeproc` as well.
492 * Allow pipe tables with no body rows (#2556).
493 Previously this raised a runtime error.
495 * Shared: Improved `fetchItem` so that `C:/Blah/Blah.jpg` isn't treated
496 as URL. The Haskell URI parsing routines will accept "C:" as a
497 scheme, so we rule that out manually. This helps with
498 `--self-contained` and absolute Windows paths.
500 * Define a `meta-json` variable for all writers (#2019). This contains
501 a JSON version of all the metadata, in the format selected for the
502 writer. So, for example, to get just the YAML metadata, you can run
503 pandoc with the following custom template: `$meta-json$`. The intent
504 is to make it easier for static site generators and other tools to get
505 at the metadata.
507 * Document limitations of --self-contained (#2553).
509 * Improved Citations section of README (#2551). Added information
510 about `link-citations` and a link to the pandoc-citeproc man page.
512 * `ImageSize`: use `safeRead` instead of `readMaybe`, which isn't
513 in base < 4.6.
515 * Allow .adoc file extension for AsciiDoc (Andrew Dunning).
517 * Improved implicit pandoc-citeproc inclusion.
518 The filter pandoc-citeproc is automatically used when
519 `--bibliography` is specified on the command line, unless
520 `--natbib` or `--biblatex` is used. However, previously this
521 only worked if `--bibliography` was spelled out in full, and not
522 if `--biblio` was used.
524 * reveal.js: Interpret pauses correctly for all headers (#2530).
525 Previously, when using headers below the slide level, pauses are left
526 uninterpreted into pauses. In my opinion, unexpected behavior but
527 intentional looking at the code.
529 * Remove redundant `center` variable for reveal.js (Andrew Dunning).
531 * Parsing: Add `extractIdClass`, modified type of `KeyTable` (Mauro
532 Bieg, API change).
534 * ImageSize: Added functions for converting between image dimensions
535 (Mauro Bieg).
537 * Use lts-3.18 in stack.yaml. This avoids Windows build
538 issues with the HTTP library.
540 * Bump version bounds for dependencies.
542pandoc (1.15.2.1)
544 * Added two missing test files, and `stack.yaml`, to
545 `extra-source-files` so they're included in the source tarball.
547 * reveal.js template: Fixed parallaxBackground options.
548 `parallaxBackgroundHorizontal` and `parallaxBackgroundVertical`
549 need integer values, not strings. (Vaughn Iverson)
551pandoc (1.15.2)
553 * `pandoc my.md -t context -o my.pdf` will now create a PDF using
554 ConTeXt rather than LaTeX (#2463).
556 * Fixed omitted `url(...)` in CSS data-uri with `--self-contained` (#2489).
558 * Added `emoji` Markdown extension, enabled by default in `markdown_github`
559 (#2523). Added `Ext_emoji` to `Extension` in `Text.Pandoc.Options`
560 (API change).
562 * `Text.Pandoc.Readers.HTML.parseTags`: Fixed over-eager raw HTML inline
563 parsing (#2469). Tightened up the inline HTML parser so it disallows
564 TagWarnings.
566 * Derive `Generic` instances for the types in `Text.Pandoc.Options`.
568 * Org reader:
570 + Fix paragraph/list interaction (Albert Krewinkel, #2464).
571 Paragraphs can be followed by lists, even if there is no blank line
572 between the two blocks. However, this should only be true if the
573 paragraph is not within a list, were the preceding block should be
574 parsed as a plain instead of paragraph (to allow for compact lists).
575 Thanks to @rgaiacs for bringing this up.
576 + Allow toggling header args (Albert Krewinkel, #2269).
577 Org-mode allows to skip the argument of a code block header argument if
578 it's toggling a value. Argument-less headers are now recognized,
579 avoiding weird parsing errors.
580 + Fix markup parsing in headers (Albert Krewinkel, #2504).
581 Markup as the very first item in a header wasn't recognized. This was
582 caused by an incorrect parser state: positions at which inline markup
583 can start need to be marked explicitly by changing the parser state.
584 This wasn't done for headers. The proper function to update the state
585 is now called at the beginning of the header parser, fixing this issue.
586 + Fix emphasis rules for smart parsing (Albert Krewinkel, #2513).
587 Smart quotes, ellipses, and dashes should behave like normal quotes,
588 single dashes, and dots with respect to text markup parsing.
589 + Require whitespace around definition list markers (#2518).
590 This rule was not checked before, resulting in bugs with footnotes
591 and some link types.
593 * Markdown reader:
595 + Pipe tables with long lines now get relative cell widths (#2471).
596 If a pipe table contains a line longer than the column width (as set by
597 `--columns` or 80 by default), relative widths are computed based on the
598 widths of the separator lines relative to the column width. This should
599 solve persistent problems with long pipe tables in LaTeX/PDF output, and
600 give more flexibility for determining relative column widths in other
601 formats, too. For narrower pipe tables, column widths of 0 are used,
602 telling pandoc not to specify widths explicitly in output formats that
603 permit this.
604 + Improved parser for `mmd_title_block`. We now allow blank metadata
605 fields. These were explicitly disallowed before.
606 + Citation keys can now contain `://`, so URLs and DOIs can be used
607 as citation keys (jgm/pandoc-citeproc#166).
609 * Beamer template: fix incompatibility of section slides with natbib.
610 Natbib (and presumably biblatex) bibliography commands create
611 their own section. Since these are in frame environments,
612 we have an incompatibility with the `\AtBeginSection` macro
613 which creates a special frame when a new section occurs.
614 (We can't have a frame inside another frame.) This change disables
615 `\AtBeginSection` inside bibliography slides. Thinks to Yihui Xie for
616 bringing the problem to my attention. This supersedes #145. See
617 discussion there.
619 * Textile reader: don't do smart punctuation unless explicitly asked
620 (#2480). Note that although smart punctuation is part of the textile
621 spec, it's not always wanted when converting from textile
622 to, say, Markdown. So it seems better to make this an option.
624 * LaTeX reader: Handle `comment` environment (Arata Mizuki).
625 The `comment` environment is handled in a similar way to the
626 `verbatim` environment, except that its content is discarded.
628 * Docx reader: Follow relationships correctly in foot/endnotes (#2258,
629 Jesse Rosenthal). This fixes a problem with links in notes.
631 * LaTeX and ConTeXt writers: support `lang` attribute on divs and spans
632 (Mauro Bieg). For LaTeX, also collect `lang` and `dir` attributes on
633 spans and divs to set the `lang`, `otherlangs` and `dir` variables if
634 they aren’t set already. See #895.
636 * LaTeX writer:
638 + Use proper command for `\textarabic` (Mauro Bieg).
639 + Added `de-CH-1901`, fixed `el-polyton` in `toPloyglossia` (Nick Bart).
640 + Use `\hypertarget` and `\hyperlink` for links. This works correctly
641 to link to Div or Span elements. We now don't bother defining `\label`
642 for Div or Span elements. Closes jgm/pandoc-citeproc#174.
643 + Avoid footnotes in list of figures (#1506).
644 + Properly handle footnotes in captions (#1506).
645 + Add `\protect` to `\hyperlink` (#2490). Thanks to Hadrien Mary.
646 + Set `colorlinks` if `linkcolor`, `urlcolor`, `citecolor`, or
647 `toccolor` is set (#2508).
649 * Textile writer: support start number in ordered lists (#2465).
651 * OpenDocument writer: Allow customization of opendocument
652 automatic styles. Automatic styles can now be inserted in the
653 template, which now provides the enclosing `<office:automatic-styles>`
654 tags (#2520).
656 * Docx writer: insert space between footnote reference and note (#2527).
657 This matches Word's default behavior.
659 * EPUB writer: don't download linked media when `data-external` attribute
660 set (#2473). By default pandoc downloads all linked media and includes it
661 in the EPUB container. This can be disabled by setting `data-external` on
662 the tags linking to media that should not be downloaded. Example:
664 <audio controls="1">
665 <source src="http://example.com/music/toccata.mp3"
666 data-external="1" type="audio/mpeg">
667 </source>
668 </audio>
670 * HTML writer: use width on whole table if col widths sum to < 100%.
671 Otherwise some browsers display the table with the columns
672 separated far apart.
674 * AsciiDoc template: Fix `author` and `date`; add `keywords`,
675 `abstract` (Andrew Dunning).
677 * HTML-based templates (Andrew Dunning):
679 + Use en dash instead of hyphen between title prefix and title.
680 + Add `keywords` to metadata.
681 + Add `lang`, `dir`, `quotes` where missing.
682 + Always make author and date display conditional.
683 + Updated dzslides template from source.
685 * Man template: make "generated by" comment conditional.
687 * LaTeX, Beamer templates:
689 + Add `babel-otherlangs` for language divs/spans; `babel-newcommands`,
690 filled by commands that make babel understand the polyglossia-style
691 language directives (Mauro Bieg, #137).
692 + Improved formatting of conditionals; `$for$` is always provided to allow
693 multiple options (Andrew Dunning, #141).
694 + Use `Ligatures=TeX` rather than `Mapping=tex-text` with `fontspec`
695 to improve support for LuaTeX (Andrew Dunning, #135).
696 + Revise `hyperref` usage (Andrew Dunning, #139, #141):
697 - use same options for all LaTeX engines;
698 - add `subtitle` and `keywords` to PDF metadata;
699 - do not override `hyperref` link coloring without user input, effectively making
700 the `hidelinks` option the default (removed as a separate variable);
701 - link colors can be enabled (using a slightly darker version of the old
702 defaults) using a new `colorlinks` variable, automatically used by
703 the LaTeX writer when custom colors are specified;
704 - `pdfborder={0 0 0}` is automatically set by `hyperref` with
705 `colorlinks`, and is only applied if `colorlinks` is disabled.
707 * ConTeXt template (Andrew Dunning):
709 + New variables for controlling styles: `linkstyle`, `linkcolor`,
710 `linkcontrastcolor`, `layout`, `pagenumbering`, `whitespace`, `indenting`,
711 `interlinespace`, `headertext`, `footertext`, `mainfont`, `sansfont`,
712 `monofont`, `mathfont`, `fontsize`.
713 + Default template no longer supports MkII.
714 + Improve writing of title block (suppressing numbering of first page).
715 + Add `title` `subtitle`, `author`, `date`, `keywords` to PDF metadata.
716 + Support `subtitle`, `abstract`.
717 + Support list of figures (`lof`), list of tables (`lot`).
718 + Disable link styling by default.
719 + Define styles for all section types.
720 + Enable microtype.
721 + Improved formatting of conditionals.
723 * Beamer template: added code to prevent slide breaks inside paragraphs
724 (#2422, thanks to Nick Bart). This will matter, in practice, only when
725 `allowframebreaks` is used. It is especially helpful for bibliography
726 slides.
728 * OpenDocument template: Add `<office:automatic-styles>` tag around
729 automatic styles. The writer now longer provides this (see #2520).
731 * Restored Text.Pandoc.Compat.Monoid.
733 * Do not export (<>) from custom Prelude. The Prelude now matches
734 base 4.8 Prelude's API.
736 * Don't use custom prelude with ghc 7.10. Use the custom prelude
737 only for earlier versions. This change makes `stack ghci` and
738 `cabal repl` work (#2503), at least with ghc 7.10.
740 * Changed § to % in operators from Odt.Arrows.Utils (#2457).
741 This prevents problems building haddocks with "C" locale.
743 * Change default for old-locale flag to False.
745 * Use stack in deb, osx, and Windows package generators.
747 * Added Vagrantfile for building deb in vm.
748 This should help in automating binary package creation. 'make package'
749 will make the package. 'make package COMMIT=blah' will make the package
750 from commit blah.
752 * README:
754 + Consistent capitalization for pandoc and Markdown.
755 + Fixed `auto_identifiers` examples (Benoit Schweblin).
756 + Improved documentation of template variables (Andrew Dunning).
758pandoc (1.15.1.1)
760 * `Text.Pandoc.Data`: store paths in dataFiles using posix separators.
761 This way we have uniform separators, whether on Windows or Linux.
762 This should solve a problem where on some Windows versions
763 the data files weren't being found (#2459).
765pandoc (1.15.1)
767 * `pandocVersion` is now defined in `Text.Pandoc.Shared`
768 and reexported from `Text.Pandoc` (Alex Vong). This allows
769 writers to access it. (Alex Vong) (API change)
771 * For `markdown_mmd`, add: `implicit_figures`, `superscripts`,
772 `subscripts` (#2401).
774 * Added `odt` as input format (Martin Linnemann). Added new module
775 `Text.Pandoc.Reader.ODT` (API change). Fully implemented features:
776 Paragraphs, Headers, Basic styling, Unordered lists, Ordered lists,
777 External Links, Internal Links, Footnotes, Endnotes, Blockquotes.
778 Partly implemented features: Citations, Tables.
780 * Markdown Reader:
782 + Add basic tests for each header style (Ophir Lifshitz).
783 + Add implicit header ref tests for headers with spaces (Ophir Lifshitz).
784 + Skip spaces in headers (Ophir Lifshitz).
785 + Handle 'id' and 'class' in parsing key/value attributes (#2396).
786 `# Header {id="myid" class="foo bar"}`
787 is now equivalent to `# Header {#myid .foo .bar}`.
788 + Use '=' instead of '#' for atx-style headers in markdown+lhs.
789 (Kristof Bastiaensen)
790 + Pipe tables: allow indented columns. Previously the left-hand column
791 could not start with 4 or more spaces indent. This was inconvenient
792 for right-aligned left columns. Note that the first (header column)
793 must still have 3 or fewer spaces indentation, or the table will be
794 treated as an indented code block.
795 + Fix regression: allow HTML comments containing `--`.
796 Technically this isn't allowed in an HTML comment, but
797 we've always allowed it, and so do most other implementations.
798 It is handy if e.g. you want to put command line arguments
799 in HTML comments.
801 * LaTeX reader:
803 + Don't eat excess whitespace after macros with only optional
804 arguments (#2446).
805 + Support longtable (#2411).
806 + Implement `\Cite` (#2335).
807 + Support abstract environment. The abstract populates an
808 `abstract` metadata field.
809 + Properly handle booktabs lines. Lines aren't part of the
810 pandoc table model, so we just ignore them (#2307).
812 * HTML reader:
814 + Handle type attribute on ol, e.g. `<ol type="i">` (#2313).
815 + Updated for new automatic header attributes.
816 + Add auto identifiers if not present on headers. This makes
817 TOC linking work properly.
818 + Detect `font-variant` with `pickStyleAttrProps` (Ophir Lifshitz).
819 + Test `<ol>` type, class, and inline list-style(-type) CSS
820 (Ophir Lifshitz).
821 + Better handling of "section" elements (#2438). Previously
822 `<section>` tags were just parsed as raw HTML blocks. With
823 this change, section elements are parsed as Div elements with
824 the class "section".
826 * MediaWiki reader: handle unquoted table attributes (#2355).
828 * DocBook reader:
830 + Added proper support for DocBook `xref` elements (Frerich Raabe).
831 Added `dbContent` field to reader state, so we can lookup
832 cross refs.
833 + Handle `informalexample` (#2319).
835 * Docx Reader:
837 + Create special punctuation test (Ophir Lifshitz).
838 + Parse soft, no-break hyphen elements (Ophir Lifshitz).
839 + Updated headers test (Ophir Lifshitz). Replaced `styles.xml`
840 in `headers.docx` with pandoc's current `styles.xml`, which
841 contains styles for Heading 1 through 6. Added Heading 4
842 through 7 to the test document. Note that Heading 7 is not
843 parsed as a Heading because there is no Heading 7 style.
845 * RST reader: better handling of indirect roles.
846 Previously the parser failed on this kind of case
848 .. role:: indirect(code)
850 .. role:: py(indirect)
851 :language: python
853 :py:`hi`
855 Now it correctly recognizes `:py:` as a code role.
857 * Org reader:
859 + Add auto identifiers if not present on headers
860 (#2354, Juliusz Gonera).
861 + Allow verse blocks to contain empty lines (#2402,
862 Albert Krewinkel).
864 * EPUB reader: stop mangling external URLs (#2284).
866 * RST writer:
868 + Don't insert `\ ` when complex expression in matched pairs.
869 E.g. `` [:sup:`3`] `` is okay; you don't need `` [:sup:`3`\ ] ``.
870 + Ensure that `\ ` is inserted when needed before Cite and Span
871 elements that begin with a "complex" element (jgm/pandoc-citeproc#157).
872 + Normalize headers only in "standalone" mode (#2394).
874 * Haddock writer: escape `*` and `^` (G. Bataille).
876 * Markdown writer:
878 + In TOC, add links to headers (#829).
879 + Use unicode super/subscripts for digits in plain output
880 (when the `superscripts` and `subscripts` extensions are
881 not enabled).
883 * Docx writer:
885 + Moved invalid character stripping to `formattedString`.
886 This avoids an inefficient generic traversal (#2356).
887 + Use user data directory for `reference.docx` archive.
888 This allows the test suite to work without installing pandoc first.
889 It also brings the docx writer in line with the odt writer.
890 + Tests: docx writer tests now use `../data` for data directory.
891 This allows tests to be run without installing first.
892 + Tests: Use real jpg (not empty) for docx tests to avoid warning.
894 * LaTeX writer:
896 + Fixed detection of 'chapters' from template.
897 If a documentclass isn't specified in metadata, but the
898 template has a hardwired bookish documentclass, act as if
899 `--chapters` was used. This was the default in earlier
900 versions, but it has been broken for a little while.
901 + Correctly recognize book documentclass in metadata (#2395).
902 + Set language-related variables automatically, depending
903 on the value of the `lang` field, which is now always
904 assumed to be in BCP47 format (Mauro Bieg, #1614, #2437).
905 + Add `\protect` to `\hyperdef` in inline context. This way we
906 don't get an error when this is used as a moveable argument (#2136).
907 + Support all frame attributes in Beamer.
908 + Percent-encode more special characters in URLs (#1640, #2377).
909 The special characters are '<','>','|','"','{','}','[',']','^', '`'.
911 * HTML writer:
913 + Update KaTeX JS and CSS versions (Emily Eisenberg).
914 + For dzslides, add `role="note"` for speaker notes (#1693).
915 + Percent-encode more special characters in URLs (#1640, #2377).
916 The special characters are '<','>','|','"','{','}','[',']','^', '`'.
917 + Render Div with class `section` as `<section>` in HTML5.
919 * EPUB writer:
921 + In TOC, replace literal `<br/>` with space (#2105).
922 + With `--webtex`, include image file rather than `data:` URI (#2363).
924 * Native writer: format Div properly, with blocks separated.
926 * Support bidirectional text output with XeLaTeX, ConTeXt and HTML
927 (#2191, Mauro Bieg).
929 * Reference Docx:
931 + Add missing Header 6 style (steel blue) (Ophir Lifshitz).
932 + Correct `outlineLvl` for Header styles (Ophir Lifshitz).
934 * Templates
936 + Beamer: Add `innertheme`, `outertheme` variables
937 (Guilhem Bonnefille, #121). Add space after colon in figure caption.
938 Integrate recent font and language updates from LaTeX template;
939 allow use of `mainfont` variable for changing the slide text
940 in XeTeX and LuaTeX (Andrew Dunning, #131).
941 + LaTeX: Add `mainfontoptions`, `sansfontoptions`,
942 `monofontoptions`, `mathfontoptions`, `fontfamilyoptions`
943 (Andrew Dunning, #122). Support handling of bidirectional
944 text (Mauro Bieg, #120). Improve reliability of superscripts/subscripts
945 under XeTeX and prevent letters and numbers from appearing on a
946 different baseline by removing use of the `realscripts` package
947 (via `xltxtra`). To restore use of OpenType characters for these
948 features under XeTeX or LuaTeX, add `\usepackage{realscripts}` to
949 `header-includes` (Andrew Dunning, #130). Remove redundant
950 reference to `xunicode` (Andrew Dunning, #130). Add `fontenc`,
951 `indent`, `subparagraph` variables (Andrew Dunning).
952 Allow use of `hidelinks` variable for `hyperref` package (Hugo Roy,
953 #113). Prevent package clash with `tufte-latex` and other classes that
954 include `hyperref` or `color` (Xavier Olive, #115).
955 + ConTeXt: Support handling of bidirectional text (Mauro Bieg, #120).
956 + LaTeX and ConTeXt: Use more specific language variables.
957 Instead of directly using `lang`, we now use `babel-lang` and
958 `polyglossia-lang` and `context-lang`. These variables are set by
959 the writers to the necessary values, based on the `lang` variable
960 (which now always takes a value in BCP47 format). (Mauro Bieg, #114,
961 #129).
962 + HTML: Support handling of bidirectional text (Mauro Bieg, #120).
963 Move HTML5 shiv after CSS and fix URL (Andrew Dunning).
964 Add dir attribute in html5 (Andrew Dunning).
965 + reveal.js: Add `controls`, `progress` variables (Grégoire Pineau, #127).
966 Add `width`, `height` variables (Andrew Dunning). Update template
967 from 3.1 source (Andrew Dunning). All configuration options are now
968 available as variables, but are only be included if set (reveal.js
969 uses defaults otherwise).
970 + man: Added comment stating that the page is autogenerated by pandoc,
971 giving version. Added `adjusting` and `hyphenate` variables
972 (Alex Vong, #123).
974 * epub.css: added selectors for nested emphasis (Pablo Rodriguez).
976 * MediaBag: ensure that `/` is always used as path separator.
978 * `sample.lua`: define `CaptionedImage`, add newline at end (#2393).
980 * Added `--bash-completion` option. This generates a bash completion
981 script. To use: `eval "$(pandoc --bash-completion)"`.
983 * Text.Pandoc.Error: Define Typeable and Exception instances
984 for PandocError (#2386).
986 * Text.Pandoc.Parsing: `toKey`: strip off outer brackets.
987 This makes keys with extra space at the beginning and end
988 work: e.g.
990 [foo]: bar
992 [ foo ]
994 will now be a link to bar (it wasn't before).
996 * Text.Pandoc: disable `auto_identifiers` for epub.
997 The epub writer inserts its own auto identifiers;
998 this is more complex due to splitting into "chapter" files.
1000 * Renamed Text.Pandoc.Compat.Locale -> Text.Pandoc.Compat.Time.
1001 It now reexports Data.Time.
1003 * Use custom Prelude to avoid compiler warnings.
1005 + The (non-exported) prelude is in prelude/Prelude.hs.
1006 + It exports Monoid and Applicative, like base 4.8 prelude,
1007 but works with older base versions.
1008 + It exports (<>) for mappend.
1009 + It hides 'catch' on older base versions.
1011 * Added a `stack.ymal` and stack install instructions to INSTALL.
1013 * Clarified what is "out of scope" in README and CONTRIBUTING.md.
1015 * Added note to CONTRIBUTING.md about ghc versions and travis.
1017 * Clarify docs on block quotes. The space after `>` is optional (#2346).
1019 * Removed obsolete reference to default.csl (#2372).
1021 * List all styles in manual for `--reference-docx` (Chris Black)
1023 * Don't capitalize header links in man page.
1025 * Added section on repl to CONTRIBUTING.md.
1027 * README: Added space after backslash in image example (#2329).
1029 * Document details of citation locator terms (Nick Bart).
1031 * Fixed some internal links in README (#2309).
1033 * Improve CSL documentation, variables documentations,
1034 links, and cross-references in README. (Andrew Dunning)
1036 * Fix build failure with `--flags=-https` (Sergei Trofimovich).
1038 * Use `newManager` instead of `withManager` in recent `http-client`.
1039 This avoids a deprecation warning.
1041 * Allow building with latest versions of http-types,
1042 HUnit, criterion, syb, aeson.
1044 * Updated benchmark program for new criterion API.
1046 * Setup.hs: rewrite so as not to use process, directory, filepath.
1047 Using anything outside base is dangerous, since older
1048 versions of ghc may link against two different versions.
1050 * Added appveyor (Windows continuous integration) builds.
1052 * New `.travis.yml`. Autgenerated using `make_travis_yml.hs`.
1053 This script has been modified in a few ways, e.g. to add `GHCOPTS`.
1054 `make .travis.yml` regenerates it based on the tested-with
1055 field of the cabal file.
1057pandoc (1.15.0.6)
1059 * `--self-contained`: Fixed overaggressive CSS minimization (#2301, 2286).
1060 Previously `--self-contained` wiped out all spaces in CSS,
1061 including semantically significant spaces. This was a regression
1062 from 1.14.x.
1064 * Markdown reader: don't allow bare URI links or autolinks in link
1065 label (#2300). Added test cases.
1067 * `Text.Pandoc.Parsing`, `uri`: Improved bare autolink detection (#2299).
1068 Previously we disallowed `-` at the end of an autolink,
1069 and disallowed the combination `=-`. This commit liberalizes the
1070 rules for allowing punctuation in a bare URI, and adds test cases.
1071 One potential drawback is that you can no longer put a bare
1072 URI in em dashes like this:
1073 `this uri---http://example.com---is an example.`
1074 But in this respect we now match github's treatment of bare URIs.
1076 * HTML writer: support speaker notes in dzslides.
1077 With this change `<div class="notes">` and also `<div class="notes"
1078 role="note">` will be output if `-t dzslides` is used. So we can
1079 have speaker notes in dzslides too. Thanks to maybegeek.
1081 * Updated dzslides template.
1083 * Improved documentation of options to print system default files (#2298).
1084 `--print-default-data-file` and `--print-default-template`.
1086 * DokuWiki writer: use `$..$` for Math instead of `<math>..</math>`
1087 (Tiziano Müller). MathJax seems currently to be the only maintained
1088 math rendering extension for DokuWiki.
1090 * `Text.Pandoc.Shared`: Changed `hierarchicalize` so it treats references
1091 div as top-level header (#2294). This fixes a bug with `--section-divs`,
1092 where the final references section added by pandoc-citeproc, enclosed in
1093 its own div, got nested in the div for the section previous to it.
1095 * Allow vector 0.11.
1097 * Require cmark > 0.4.
1099pandoc (1.15.0.5)
1101 * HTML writer: Fixed email javascript obfuscation with `mailto:`
1102 URLs (#2280). This fixes a potential security issue. Because
1103 single quotes weren't being escaped in the link portion, a
1104 specially crafted email address could allow javascript code injection.
1106 * Markdown/HTML readers: Avoid parsing partial URLs like
1107 `<www.pandoc.org/blah#foo>` as HTML tags (#2277).
1109 * RST reader: allow inline formatting in definition list field
1110 names (Lars-Dominik Braun).
1112 * PDF: Make sure `--latex-engine-opt` goes before the filename
1113 on the command line. LaTeX needs the argument to come after
1114 the options (#1779).
1116 * CommonMark writer: fixed tags used for super/subscript.
1118 * ConTeXt template: activate hanging indent for definition lists
1119 (Mauro Bieg).
1121 * Make cabal require `hsb2hs` >= 0.3.1 if `embed_data_files` specified.
1122 This is done by adding `hookedPrograms` in `Setup.hs`, which allows us
1123 to include `hsb2hs` in Build-Tools in cabal.
1125 * Improved Windows installer (thanks to nkalvi).
1127 + When per-machine installation is chosen, the system path
1128 is updated instead of the user's.
1129 + An appropriate default is used for per-machine installation
1130 directory.
1131 + Admin privileges are no longer required for a per-user install
1133 * Travis: unpack sdist for build to catch packaging bugs.
1135 * Improved documentation on where user templates go (#2272).
1137pandoc (1.15.0.4)
1139 * Added pandoc.1 man page to the repository. It is no longer
1140 built as part of the cabal build process. (This proved too
1141 fragile.) pandoc.1 can be regenerated (`make man/pandoc.1`)
1142 when `README` is changed.
1144 * Copying of the man page now respects `--destdir` (#2262).
1146 * Improved error messages for filters. User is now informed if
1147 the filter requires an interpreter that isn't found in the path,
1148 or if the filter returns an error status.
1150pandoc (1.15.0.3)
1152 * Ensure target directory is created when installing man page.
1154pandoc (1.15.0.2)
1156 * Added files needed for building man page to Extra-Source-Files.
1158pandoc (1.15.0.1)
1160 * Man page is now built and installed as part of the cabal build
1161 process. Removed Makefile target for man page.
1163pandoc (1.15)
1165 * Man page changes:
1167 + Removed `--man1`, `--man5` options (breaking change).
1168 + Removed `Text.Pandoc.ManPages` module (breaking API change).
1169 + Makefile target for `man/man1/pandoc.1`. This uses pandoc to
1170 create the man page from README using a custom template and filters.
1171 + Added `man/` directory with template and filters needed to build
1172 man page.
1173 + We no longer have two man pages: `pandoc.1` and `pandoc_markdown.5`.
1174 Now there is just pandoc.1, which has all the content from README.
1175 This change was needed because of the extensive cross-references
1176 between parts of the README.
1177 + Removed old `data/pandoc.1.template` and
1178 `data/pandoc_markdown.5.template`.
1180 * OpenDocument writer: Do not add a carriage return after a hard
1181 line break (Michael Chladek).
1183 * ConTeXt writer:
1185 + use `\goto` for internal links.
1186 + Added a `%` at end for `\reference` to avoid spurious space.
1188 * Ignore sandbox on 'make quick'
1190pandoc (1.14.1)
1192 * Added `--man1` and `--man5` options to pandoc, allowing pandoc
1193 to generate its own man pages. Man pages are no longer automatically
1194 generated in the build process (the process for this was too complex
1195 and prone to failure, #2190). The `make-pandoc-man-pages` executable
1196 has been removed. The `man/` directory has been removed, and man page
1197 templates have been moved to `data/`. NOTE TO PACKAGERS: You will no
1198 longer find pandoc's man pages in `man/`, but you can generate them using
1199 `pandoc --man1 > pandoc.1` and `pandoc --man5 > pandoc_markdown.5`.
1201 * Added new unexported module: `Text.Pandoc.ManPages`.
1203 * `README` now acts like a data file (even though it isn't in
1204 `data/`). So, for example, `pandoc --print-default-data-file README`
1205 will produce the README.) This change was required for the `--man1`
1206 and `--man5` options, since the man pages are produced from the
1207 README, but it may be useful for other purposes as well.
1209 * Allow `reference.docx` and `reference.odt` to be used with
1210 `--print-default-data-file` and to shadow defaults if placed in
1211 the user data directory. Note that as of 1.14, we no longer
1212 include these files as data files; instead, we include their
1213 components. This change causes pandoc to behave as if it has
1214 these data files; they are constructed on demand when needed
1215 using `getDefaultReferenceDocx` and `getDefaultReferenceODT`.
1217 * Fixed regression in CSS parsing with `--self-contained` (#2224).
1218 Pandoc 1.14.0.x used css-text to parse the CSS, but its parser
1219 silently drops big sections of CSS. This commit replaces the
1220 use of css-text with a small but principled CSS preprocessor,
1221 which removes whitespace and comments and replaces `url()` with
1222 base 64 data when possible.
1224 * Use `https://` instead of `//` for MathJax and KaTeX CDN URLs (#1920).
1225 This will allow math to work when pages are being viewed locally.
1227 * `Text.Pandoc.Options`: Export `plainExtensions`.
1228 These are the extensions used in `plain` output.
1230 * LaTeX reader: Don't parse `_` and `^` as sub/superscript outside of
1231 math mode; treat them as regular inline text. Normally these will
1232 cause an error in LaTeX, but there are contexts (e.g. `alltt`
1233 environments) where they are allowed.
1235 * HTML reader: allow `<body>` to close `<head>`.
1237 * DocBook reader: support `mediaobject`s and `figures` (#2184, Mauro Bieg).
1239 * RST reader: Fix reference names with special characters
1240 (Lars-Dominik Braun).
1242 * Textile writer: escape `+` and `-` as entities (#2225).
1244 * DokuWiki writer: Use proper `<code>` tags for code blocks (#2213).
1246 * Plain writer: don't use symbols for super/subscript (#2237).
1247 Simplified code by using `plainExtensions`.
1249 * InDesign writer: Properly escape URLs containing more than one
1250 colon character (gohai).
1252 * Docx writer: Make sure we use dist version of `reference.docx`
1253 (and not the user's version) for certain settings. Taking some
1254 settings values from a user-supplied reference.docx can lead to
1255 corruption. This fixes a regression from the last release (#2249).
1257 * `Text.Pandoc.Shared`: exports `getDefaultReferenceDocx` and
1258 `getDefaultReferenceODT` (API change). These functions have been
1259 removed from the Docx and ODT writers.
1261 * LaTeX template (Xavier Olive):
1262 + Added `CJKmainfont` and `CJKoptions` variables.
1263 + Allow dvipsnames (e.g. `MidnightBlue`) for colors (Xavier Olive).
1265 * Epub templates: use `author.role`, not `author.type`.
1267 * Bump cmark version to >= 0.3.4.
1269 * Improved Windows installer (#2205, thanks to nkalvi).
1270 Users can now select a per-user or systemwide install, and can set
1271 the installation path. At the end of installation, the install location
1272 is given. The install location is also now given in the list of
1273 installed programs in Control Panel. Cleaner WiX syntax is used for
1274 setting the path.
1276 * Added `download_stats` target to Makefile.
1278pandoc (1.14.0.4)
1280 * Added missing commonmark template.
1282 * Improved try pandoc (moved button, show raw command).
1284pandoc (1.14.0.3)
1286 * Allow compilation with syb 0.5.*.
1288 * Custom writer: fixed some compiler warnings for ghc < 7.10.
1290pandoc (1.14.0.2)
1292 * Allow building with hslua 0.4.
1294pandoc (1.14.0.1)
1296 * Fixed problem with building of `reference.docx` and `reference.odt`
1297 when the `embed_data_files` flag is used. Instead of having a phase
1298 of the build where `reference.docx` and `reference.odt` are created
1299 from their constituent data files, we now construct these archives
1300 from their constituents when a `docx` or `odt` is built. The
1301 constituent files have been moved from `extra-source-files` to
1302 `data-files`, and `reference.docx` and `reference.odt` have been
1303 removed. Users can create their own `reference.docx` or
1304 `reference.odt` by using pandoc to create a simple `docx` or `odt`.
1305 `make-reference-files.hs` has been removed, simplifying the build
1306 process (#2187)
1308 * Don't include generated man pages in extra-source-files (#2189).
1310 * Bumped upper bound for aeson.
1312 * ConTeXt writer: create internal link anchors for Div elements with
1313 identifiers. (This is needed for linked citations to work.)
1315pandoc (1.14)
1317 [new features]
1319 * Added `commonmark` as input and output format.
1321 * Added `--verbose` flag for debugging output in PDF production (#1840,
1322 #1653).
1324 * Allow wildcards in `--epub-embed-font` arguments (#1939).
1326 * Added `--latex-engine-opt` option (#969, #1779, Sumit Sahrawat).
1328 * Added `shortcut_reference_links` extension (Konstantin Zudov, #1977).
1329 This is enabled by default for those markdown flavors that
1330 support reading shortcut reference links, namely: `markdown`,
1331 `markdown_strict`, `markdown_github`, `markdown_php`.
1332 If the extension is enabled, the reader parses shortcut reference
1333 links like `[foo]`, and the writer creates such links unless doing
1334 so would cause problems. Users of markdown flavors that support
1335 shortcut reference links should not notice a difference in reading
1336 markdown, but the markdown pandoc produces may differ.
1337 If shortcut links are not desired, the extension can be disabled
1338 in the normal way.
1340 [behavior changes]
1342 * `--toc` is now supported for `docx` output (#458, Nikolay Yakimov).
1343 A "dirty" TOC is created at the beginning of document.
1344 It can be regenerated after the document has been opened.
1346 * An implicit `--filter pandoc-citeproc` is now triggered only when the
1347 `--bibliography` option is used, and not when the `bibliography`
1348 field in metadata is specified (#1849).
1350 * Markdown reader:
1352 + Reference links with `implicit_header_references` are no longer
1353 case-sensitive (#1606).
1354 + Definition lists no longer require indentation for first line (#2087).
1355 Previously the body of the definition (after the `:` or `~` marker)
1356 needed to be in column 4. This commit relaxes that requirement,
1357 to better match the behavior of PHP Markdown Extra. So, now
1358 this is a valid definition list:
1360 foo
1361 : bar
1362 + Resolve a potentially ambiguity with table captions:
1364 foo
1366 : bar
1368 -----
1369 table
1370 -----
1372 Is "bar" a definition, or the caption for the table? We'll count
1373 it as a caption for the table.
1374 + Disallow headerless pipe tables (#1996), to conform to GFM and PHP
1375 Markdown Extra. Note: If you have been using headerless pipe tables,
1376 this change may cause existing tables to break.
1377 + Allow pipe tables with header but no body (#2017).
1378 + Allow a digit as first character of a citation key (Matthias Troffaes).
1379 See https://github.com/jgm/pandoc-citeproc/issues/97
1381 * LaTeX reader:
1383 + Don't limit includes to `.tex` extension (#1882).
1384 If the extension is not `.tex`, it must be given explicitly in
1385 the `\input` or `\include`.
1387 * Docx reader:
1389 + Allow numbering in the style file. This allows inherited styles
1390 with numbering (lists) (Jesse Rosenthal).
1392 * Org reader:
1394 + Support smart punctuation (Craig Bosma).
1395 + Drop trees with a :noexport: tag (Albert Krewinkel). Trees having a
1396 `:noexport:` tag set are not exported. This mirrors org-mode.
1397 + Put header tags into empty spans (Albert Krewinkel, #2160).
1398 Org mode allows headers to be tagged: `* Headline :TAG1:TAG2`.
1399 Instead of being interpreted as part of the headline, the tags are now
1400 put into the attributes of empty spans. Spans without textual content
1401 won't be visible by default, but they are detectable by filters. They
1402 can also be styled using CSS when written as HTML.
1403 + Generalize code block result parsing (Albert Krewinkel).
1404 Previously, only code blocks were recognized as result blocks;
1405 now, any kind of block can be the result.
1407 * Append newline to the LineBreak in Dokuwiki, HTML, EPUB,
1408 LaTeX, MediaWiki, OpenDocument, Texinfo writers (#1924, Tim Lin).
1410 * HTML writer:
1412 + Add "inline" or "display" class to math spans (#1914).
1413 This allows inline and display math to be styled differently.
1414 + Include raw latex blocks if `--mathjax` specified (#1938).
1415 + Require highlighting-kate >= 0.5.14 (#1903).
1416 This ensures that all code blocks will be wrapped in a `div`
1417 with class `sourceCode`. Also, the default highlighting CSS
1418 now adds `div.sourceCode { x-overflow: auto; }`, which means
1419 that code blocks (even with line numbers) will acquire a scroll
1420 bar on screens too small to display them (e.g. mobile phones).
1421 See also jgm/highlighting-kate#65.
1423 * LaTeX writer:
1425 + Use a declaration for tight lists (Jose Luis Duran, Joseph
1426 Harriott). Previously, pandoc hard-coded some commands to make
1427 tight lists in LaTeX. Now we use a custom command instead,
1428 allowing the styling to be changed in a macro in the header.
1429 (Note: existing templates may need to be modified to include
1430 the definition of this macro. See the current template.)
1431 + Beamer output: if the header introducing a slide has the
1432 class `fragile`, add the `[fragile]` option to the slide (#2119).
1434 * MediaWiki writer:
1436 + Use `File:` instead of the deprecated `Image:` for images and
1437 other media files (Greg Rundlett).
1439 * DocBook writer:
1441 + Render a `Div (id,_,_) [Para _]` element as a `para` element
1442 with an `id` attribute. This makes links to citations work in
1443 DocBook with pandoc-citeproc.
1445 * RST writer:
1447 + Normalize headings to sequential levels (Nikolay Yakimov).
1448 This is pretty much required by docutils.
1449 + Treat headings in block quotes, etc as rubrics (Nikolay Yakimov).
1450 + Better handling of raw latex inline (#1961). We use
1451 `` :raw-latex:`...` `` and add a definition for this role to
1452 the template.
1454 * EPUB writer:
1456 + Remove `linear=no` from cover `itemref` (#1609).
1457 + Don't use `sup` element for epub footnotes (#1995).
1458 Instead, just use an a element with class `footnoteRef`.
1459 This allows more styling options, and provides better results
1460 in some readers (e.g. iBooks, where anything inside the a
1461 tag breaks popup footnotes).
1462 + Take TOC title from `toc-title` metadata field.
1464 * Docx writer:
1466 + Implemented `FirstParagraph` style (Jesse Rosenthal).
1467 Following the ODT writer, we add the `FirstParagraph` style to the
1468 first text paragraph following an image, blockquote, table, heading,
1469 or beginning of document. This allows it to be styled differently.
1470 The default is for it to be the same as `Normal`.
1471 + Added `BodyText` style (Jesse Rosenthal).
1472 We apply a `BodyText` style to all unstyled paragraphs. This is,
1473 essentially, the same as `Normal`, except that since not everything
1474 inherits from `BodyText` (the metadata won't, for example, or
1475 the headers or footnote numbers), we can change the text in the body
1476 without having to make exceptions for everything. If we do want to
1477 change *everything*, we can still do it through `Normal`.
1478 + Altered `Blockquote` style slightly (Jesse Rosenthal).
1479 Since `BlockQuote` derives from `BodyText`, we just want to specify
1480 by default that it won't indent, regardless of what `BodyText` does.
1481 Note that this will not produce any visible difference in the default
1482 configuration.
1483 + Take TOC title from `toc-title` metadata field (Nikolay Yakimov).
1484 + Added a style to figure images (Nikolay Yakimov).
1485 Figures with empty captions use style `Figure`.
1486 Figures with nonempty captions use style `Figure with Caption`, which
1487 is based on `Figure`, and additionally has `keepNext` set.
1489 * ODT writer:
1491 + Added figure captions (Nikolay Yakimov). The following styles are
1492 used for figures:
1493 `Figure` -- for figure with empty caption),
1494 `FigureWithCaption` (based on `Figure`) -- for figure with caption,
1495 `FigureCaption` (based on `Caption`) -- for figure captions.
1496 Also, `TableCaption` (based on `Caption`) is used for table captions.
1498 [API changes]
1500 * New `Text.Pandoc.Error` module with `PandocError` type
1501 (Matthew Pickering).
1503 * All readers now return `Either PandocError Pandoc` instead of `Pandoc`
1504 (Matthew Pickering). This allows better handling of errors.
1506 * Added `Text.Pandoc.Writers.CommonMark`, exporting `writeCommonMark`.
1508 * Added `Text.Pandoc.Readers.CommonMark`, exporting `readCommonMark`.
1510 * Derive `Data` and `Typeable` instances for `MediaBag`, `Extension`,
1511 `ReaderOptions`, `EPUBVersion`, `CiteMethod`, `ObfuscationMethod`,
1512 `HTMLSlideVariant`, `TrackChanges`, `WriterOptions` (Shabbaz
1513 Youssefi).
1515 * New `Ext_shortcut_reference_links` constructor for `Extension`
1516 (Konstantin Zudov).
1518 [bug fixes]
1520 * Markdown reader:
1522 + Allow smart `'` after inline math (#1909, Nikolay Yakimov).
1523 + Check for tex macros after indented code (#1973).
1524 + Rewrote `charsInBalancedBrackets` for efficiency.
1525 + Make sure a closing `</div>` doesn't get included in a
1526 definition list item (#2127).
1527 + Don't parse bracketed text as citation if it might be a link,
1528 image, or footnote (Nikolay Yakimov).
1529 + Require space after key in mmd title block (#2026, Nikolay
1530 Yakimov). Require space after key-value delimiter colon in mmd title
1531 block.
1532 + Require nonempty value in mmd title block (Nikolay Yakimov).
1533 + Disable all metadata block extensions when parsing
1534 metadata field values (#2026, Nikolay Yakimov). Otherwise we
1535 could get a mmd title block inside YAML metadata, for example.
1537 * HTML reader:
1539 + Improve self-closing tag detection in `htmlInBalanced` (#2146).
1540 + Handle tables with `<th>` in body rows (#1859, Mauro Bieg).
1541 + Fixed `htmlTag` (#1820). If the tag parses as a comment, we check
1542 to see if the input starts with `<!--`. If not, it's bogus comment
1543 mode and we fail `htmlTag`.
1544 + Handle `base` tag; if it has an `href` value, this is added to
1545 all relative URLs in links and images.
1547 * DocBook reader:
1549 + Look inside "info" elements for section titles (#1931).
1551 * Docx reader:
1553 + Parse images in deprecated vml format (Jesse Rosenthal).
1554 + Allow sub/superscript verbatims (Jesse Rosenthal).
1555 Verbatim usually shuts off all other run styles, but we don't want it
1556 to shut off sub/superscript.
1558 * LaTeX reader:
1560 + Handle `tabular*` environment (#1850).
1561 Note that the table width is not actually parsed or taken into
1562 account, but pandoc no longer chokes on it.
1563 + Ignore options in `\lstinline` rather than raising error (#1997).
1564 + Add some test cases for simple tables (Mathias Schenner).
1565 + Handle valign argument in tables (Mathias Schenner) (currently
1566 we just ignore this).
1567 + Allow non-empty colsep in tables (Mathias Schenner).
1568 The `tabular` environment allows non-empty column separators
1569 with the "@{...}" syntax. Previously, pandoc would fail to
1570 parse tables if a non-empty colsep was present. With this
1571 commit, these separators are still ignored, but the table gets
1572 parsed. A test case is included.
1573 + Recognize `\newpage` as a block command.
1574 + Allow block content in \title{} (#2001).
1575 + Check for block-level newcommand aliases in blockCommand (Nikolay
1576 Yakimov).
1577 + Guard against paragraph starting with inline macro (Nikolay Yakimov).
1578 + Properly gobble spaces after `\\` (#2007).
1580 * Textile reader:
1582 + Handle newlines in table cells, and empty cells (#1919).
1584 * Org reader:
1586 + Allow image links with non-image targets (Hans-Peter Deifel).
1587 This matches behavior of Org-Mode for links like
1588 `[[http://example.com][https://www.haskell.org/static/img/logo.png]]`.
1590 * Docbook writer:
1592 + Don't print empty id attributes (thanks to Steve Horne).
1594 * HTML writer:
1596 + Fixed list-style-type for numbered example lists.
1597 Should be "decimal," not "example" (#1902).
1598 + Do not omit missing `alt` attribute on `img` tag (#1131,
1599 Konstantin Zudov).
1600 + Allow multiple colgroups in table (#2122).
1601 + In revealjs, ensure that lists in speaker notes don't add "fragment"
1602 classes, which can cause additional keypresses to be needed to
1603 advance a slide (#1394).
1605 * LaTeX writer:
1607 + Don't escape `$` in URL (#1913).
1608 + Don't use listings in headers (Matthew Pickering, #1963).
1609 + Recognize book documentclass if set in metadata (#1971).
1610 This sets `--chapters` implicitly if the documentclass in metadata
1611 is a book documentclass. Previously this was done only if a book
1612 documentclass was set in a variable.
1613 + Add a `\label` in `\hyperdef` for Div, Span (or links don't work).
1614 + Make `mainlang` work when `lang` is in metadata (#2174).
1616 * Texinfo writer:
1618 + Fix wrapping by using breakable spaces (Tim Lin).
1620 * RST writer:
1622 + Fixed toc depth in RST writer. Previously the depth was being
1623 rendered as a floating point number with a decimal point.
1625 * Markdown writer:
1627 + Improved escaping (#2086). `<` should not be escaped as `\<`, for
1628 compatibility with original Markdown. We now escape `<` and `>`
1629 with entities. Also, we now backslash-escape square brackets.
1630 + Avoid introducing spurious list items through wrapping (#1946).
1631 + Don't emit span tags if plain or raw HTML disabled.
1633 * MediaWiki writer:
1635 + Convert spaces to underscores in wikilink URL (#1982), like MediaWiki.
1637 * AsciiDoc writer:
1639 + Insert some needed blank lines (#1860).
1640 + Avoid wrapping after list marker (#1858).
1642 * EPUB writer:
1644 + Properly handle internal links to IDs in spans, divs (#1884).
1645 + Use plain writer for metadata dc: fields (#2121).
1646 This gives better results when we have, e.g. multiple paragraphs.
1647 Note that tags aren't allowed in these fields.
1648 + Properly handle image links without an extension (#1855).
1649 + Improved chapter splitting and internal link rewriting (#1887,
1650 #2162, #2163). This will ensure that internal links work and
1651 that the references section produced by pandoc-citeproc is
1652 in its own chapter.
1653 + Fixed handling of svg images (#2183).
1655 * ICML writer:
1657 + Better handling of raw blocks and inlines (#1951).
1658 Previously these were always escaped and printed verbatim.
1659 Now they are ignored unless the format is `icml`, in which
1660 case they are passed through unescaped.
1661 + Fixed image URIs in ICML output (gohai).
1663 * Custom writer:
1665 + Raise error if loadstring returns an error status.
1666 + Raise `PandocLuaException` instead of using 'error'.
1667 Eventually we'll change the return type so that no exception
1668 is involved, but at least this can be trapped.
1669 + Use UTF-8 aware bytestring conversion.
1670 + Set foreign encoding to UTF-8 (Nikolay Yakimov, #2101, #1634).
1671 Also factored out ByteString, since it's only used as an intermediate
1672 representation.
1674 * Docx writer:
1676 + Copy hyphenation settings from reference.docx (Nikolay Yakimov).
1677 + Filter out illegal XML characters (#1992, Matthew Pickering).
1678 + Added `noProof` to docx syntax highlighting `SourceCode` style.
1679 + Added footnotes id -1 and 0 (Jesse Rosenthal).
1680 Word uses, by default, footnotes with id -1 and 0 for separators. If a
1681 user modifies `reference.docx`, they will end up with a `settings.xml`
1682 file that references these footnotes, but no such footnotes in the
1683 document. This will produce a corruption error. Here we add these to the
1684 document and `settings.xml` file, so future modifications won't break
1685 the file.
1686 + Handle lists correctly inside table cells (Jesse Rosenthal).
1687 Previously we didn't transform lists inside table cells.
1688 + Set firstRow information in tables (Nikolay Yakimov).
1689 + Don't replace `SourceCode` style in `reference.docx` if it is defined
1690 there (Nikolay Yakimov, #1872). If `--no-highlight` specified, remove
1691 any `SourceCode` and `*Tok` styles in `reference.docx`.
1692 + Attempt to match international style names (#1607, Nikolay Yakimov).
1693 + Set these styles as custom (Nikolay Yakimov): `Author`, `Abstract`,
1694 `Compact`, `Image Caption`, `Table Caption`, `Definition Term`,
1695 `Definition`, `First Paragraph`.
1696 + Rename these styles to correspond with Word `Normal.dotm` (Nikolay
1697 Yakimov): `Block Quote -> Block Text`, `Link -> Hyperlink`,
1698 `Footnote Ref -> Footnote Reference`.
1699 + Added `Caption` style (Nikolay Yakimov).
1700 + Changed these styles' inheritance (Nikolay Yakimov):
1701 `Image Caption <- Caption`, `Table Caption <- Caption`.
1702 + Remove `SourceCode` style from `reference.docx` (#1872).
1703 This is added automatically by the docx writer.
1704 + Added toc heading style to `reference.docx` (Nikolay Yakimov).
1706 * `Text.Pandoc.PDF`
1708 + Don't suggest "Try xelatex" if xelatex already in use (Mauro Bieg,
1709 #1832).
1710 + More comprehensible errors on image conversion (#2067).
1711 EPS can't be supported without shelling out to something like
1712 ImageMagick, but at least we can avoid mysterious error messages.
1714 * `Text.Pandoc.Shared`:
1716 + Make safeRead safe (#1801, Matthew Pickering).
1717 + Addded `mapLeft`, `hush` (Matthew Pickering).
1719 * `Text.Pandoc.Pretty`:
1721 + Remove partial function (Matthew Pickering).
1723 * `Text.Pandoc.SelfContained`:
1725 + Add `;charset=utf-8` to script mime type if missing (#1842).
1726 + Improved building of data URIs (#1940). Now base64 is used except
1727 for `text/*` mime types.
1728 + `cssURLs` no longer tries to fetch fragment URLs (#2121).
1729 + Properly handle data URIs in css urls (#2129).
1730 Use a proper CSS parser (adds dependency on `text-css`).
1732 * `Text.Pandoc.UTF8`:
1734 + Better handling of bare CRs in input files (#2132).
1735 Previously we just stripped them out; now we convert
1736 other line ending styles to LF line endings.
1738 * `Text.Pandoc.ImageSize`:
1740 + Fixed some exif header parsing bugs (#1834).
1741 + Make imageSize return an Either, not a Maybe (#1834).
1742 Use `runGetOrFail` (with `binary >= 0.7`) to return `Left` on
1743 parse failure (rather than `error`).
1744 + Improved warnings when image size can't be determined.
1745 + Removed error landmines (Matthew Pickering).
1747 * Added woff2 to MIME types (Alfred Wechselberger).
1749 * pandoc: When a binary input format is used, warn that file
1750 arguments past the first one are being ignored (Matthew Pickering).
1752 [template changes]
1754 * LaTeX template:
1756 + Degrade gracefully if `\paragraph` not defined.
1757 + Include `grffile` together with `graphicx` (#2074).
1758 This properly handles filenames containing spaces and dots.
1759 + Redefine `\paragraph`, `\subparagraph`... to behave more
1760 like section headers (#1658).
1761 + Import hyperref before polyglossia to avoid an error with xelatex,
1762 "please load package hyperref before bidi package" (Nick Bart).
1763 + Added `toccolor` variable to control link color in toc (Kaixhin).
1765 * LaTeX, Beamer templates:
1767 + Provide `\tightlist`, which is now used by the LaTeX writer.
1768 + Use polyglossia in beamer (#85).
1769 + Use `bibliography` instead of `biblio-files`
1770 (#1661). Also use `\addbibresource` instead of `\bibliography` for
1771 biblatex.
1772 + Added `setotherlanguages` in polyglossia. This uses an `otherlang`
1773 variable that is derived from a comma-separated list in `lang`;
1774 the last language is `mainlang` and the others are `otherlang`.
1776 * EPUB templates:
1778 + Use `div`, not `p`, for "rights" on title page.
1779 + Added header-includes, include-before, include-after (#1987).
1781 * OpenDocument template:
1783 + Use `text:p` instead of `text:h` for title.
1784 Using `text:h` causes problems with numbering. Closes #2059.
1785 Thansk to @nkalvi for diagnosing this.
1787 * reveal.js template:
1789 + Link to non-minified css, js. The minified versions no longer
1790 ship with the library.
1791 + Correctly include style CSS (#1949).
1792 + New configurable options options: `center`, `maxScale`, `slideNuber`
1793 (Dmitry Smirnov, pandoc-templates#89).
1794 + Moved custom CSS after theme. This allows custom CSS to modify
1795 themes, instead of being replaced by them.
1796 + Allow `center` to be set to false.
1798 [under the hood improvements]
1800 * Removed pre-built `reference.docx` and `reference.odt` (Nikolay
1801 Yakimov). Instead the repository now includes the component text files,
1802 and the zipped binaries are built from these using a helper
1803 program, `make-reference-files`. This should make maintenance of
1804 these components easier going forward.
1806 * `Text.Pandoc.Parsing`:
1808 + Added new `<+?>` combinator (Nikolay Yakimov).
1809 + Added `stateHeaderKeys` to `ParserState`.
1811 * `make_deb.sh` fixes:
1813 + Detect architecture.
1814 + Add Installed-Size to debian package control file (#1900).
1815 + Use `fakeroot` to get permissions right.
1816 + Use `mkdir` and `cp` instead of `install`.
1817 + Set permissions of directories to 755.
1818 + Install in `/usr` rather than `/usr/local`.
1819 + Compress man pages.
1820 + Combine copyright files for `pandoc`, `pandoc-citeproc`.
1822 * Added `Text.Pandoc.Compat.Locale` and `old-locale` flag
1823 to assist with transition to `time` 1.5.
1825 * Updated CONTRIBUTING.md with information about issue tags (Matthew
1826 Pickering).
1828 * Updated travis installs to the new sudo-less syntax (Tim Lin).
1830 * Updated dependency version bounds.
1832 * EPUB tests: don't use `joinPath`, which varies across platforms.
1833 Instead, use a forward-slash to join paths, regardless of the
1834 platform. This matches the way `MediaBag` now works.
1836 * Clarify JSON input and output in usage message (Caleb McDaniel).
1838 * Improved INSTALL instructions.
1840 * Always build man pages. Removed make-pandoc-man-pages flag.
1842 * Makefile: removed man target, now that we generate man pages by default.
1844 * README:
1846 + Fixed typos (J. Lewis Muir).
1847 + Added documentation on backtick_code_blocks (#2135, Nikolay Yakimov).
1848 + Added note on in-field markup in biblio databases (Nick Bart).
1849 + Fixed misleading example of raw HTML block.
1850 + Various minor formatting and consistency fixes for the program
1851 options (Andreas Lööw).
1852 + Made definition lists for options all "loose" for consistency.
1853 + Added YAML biblio format to table, and note on `pandoc-citeproc`'s
1854 `--bib2json` and `--bib2yaml` options (Nick Bart).
1855 + Removed obsolete reference to `mods2yaml` (Nick Bart).
1856 + Added section on syntax highlighting.
1857 + Documented `toccolor` variable.
1859pandoc (1.13.2.1)
1861 * Updated to build with ghc 7.10.1.
1863 * Bumped package upper bounds for filepath, blaze-html,
1864 blaze-markup.
1866pandoc (1.13.2)
1868 * TWiki Reader: add new new twiki reader (API chaneg, Alexander Sulfrian).
1870 * Markdown reader:
1872 + Better handling of paragraph in div (#1591).
1873 Previously text that ended a div would be parsed as Plain
1874 unless there was a blank line before the closing div tag.
1875 + Don't treat a citation as a reference link label (#1763).
1876 + Fix autolinks with following punctuation (#1811).
1877 The price of this is that autolinked bare URIs can no longer
1878 contain `>` characters, but this is not a big issue.
1879 + Fix `Ext_lists_without_preceding_blankline` bug (#1636, Artyom).
1880 + Allow `startnum` to work without `fancy_lists`. Formerly
1881 `pandoc -f markdown-fancy_lists+startnum` did not work properly.
1883 * RST reader (all Daniel Bergey):
1885 + Parse quoted literal blocks (#65). RST quoted literal blocks are
1886 the same as indented literal blocks (which pandoc already supports)
1887 except that the quote character is preserved in each line.
1888 + Parse RST class directives. The class directive accepts one or more
1889 class names, and creates a Div value with those classes. If the
1890 directive has an indented body, the body is parsed as the children of
1891 the Div. If not, the first block folowing the directive is made a
1892 child of the Div. This differs from the behavior of rst2xml, which
1893 does not create a Div element. Instead, the specified classes are
1894 applied to each child of the directive. However, most Pandoc Block
1895 constructors to not take an Attr argument, so we can't duplicate this
1896 behavior.
1897 + Warn about skipped directives.
1898 + Literal role now produces Code. Code role should have "code" class.
1899 + Improved support for custom roles
1901 - Added `sourceCode` to classes for `:code:` role, and anything
1902 inheriting from it.
1903 - Add the name of the custom role to classes if the Inline
1904 constructor supports Attr.
1905 - If the custom role directive does not specify a parent role,
1906 inherit from the `:span:` role.
1908 This differs somewhat from the `rst2xml.py` behavior. If a custom
1909 role inherits from another custom role, Pandoc will attach both
1910 roles' names as classes. `rst2xml.py` will only use the class of
1911 the directly invoked role (though in the case of inheriting from a
1912 `:code:` role with a `:language:` defined, it will also provide the
1913 inherited language as a class).
1914 + Warn about ignored fields in role directives.
1916 * LaTeX reader:
1918 + Parse label after caption into a span instead of
1919 inserting an additional paragraph of bracketed text (#1747).
1920 + Parse math environments as inline when possible (#1821).
1921 + Better handling of `\noindent` and `\greektext` (#1783).
1922 + Handle `\texorpdfstring` more gracefully.
1923 + Handle `\cref` and `\sep` (Wikiwide).
1924 + Support `\smartcite` and `\Smartcite` from biblatex.
1926 * HTML reader:
1928 + Retain display type of MathML output (#1719, Matthew Pickering).
1929 + Recognise `<br>` tags inside `<pre>` blocks (#1620, Matthew Pickering).
1930 + Make `embed` tag either block or inline (#1756).
1932 * DocBook reader:
1934 + Handle `keycombo`, `keycap` (#1815).
1935 + Get string content in inner tags for literal elements (#1816).
1936 + Handle `menuchoice` elements better, with a `>` between (#1817).
1937 + Include `id` on section headers (#1818).
1938 + Document/test "type" as implemented (Brian O'Sullivan).
1939 + Add support for calloutlist and callout (Brian O'Sullivan).
1940 We treat a calloutlist as a bulleted list. This works well in practice.
1941 + Add support for `classname` (Bryan O'Sullivan).
1943 * Docx reader:
1945 + Fix window path for image lookup (Jesse Rosenthal).
1946 Don't use os-sensitive "combine", since we always want the paths in our
1947 zip-archive to use forward-slashes.
1948 + Single-item headers in ordered lists are headers (Jesse Rosenthal).
1949 When users number their headers, Word understands that as a single item
1950 enumerated list. We make the assumption that such a list is, in fact,
1951 a header.
1952 + Rewrite rewriteLink to work with new headers (Jesse Rosenthal).
1953 There could be new top-level headers after making lists, so we have to
1954 rewrite links after that.
1955 + Use polyglot header list (Jesse Rosenthal).
1956 We're just keeping a list of header formats that different languages
1957 use as their default styles. At the moment, we have English, German,
1958 Danish, and French. We can continue to add to this.
1959 This is simpler than parsing the styles file, and perhaps less
1960 error-prone, since there seems to be some variations, even within a
1961 language, of how a style file will define headers.
1962 + Remove header class properly in other langs (Jesse Rosenthal).
1963 When we encounter one of the polyglot header styles, we want to remove
1964 that from the par styles after we convert to a header. To do that, we
1965 have to keep track of the style name, and remove it appropriately.
1966 + Account for external link URLs with anchors. Previously, if a URL
1967 had an anchor, the reader would incorrectly identify it as an
1968 internal link and return only the anchor as URL. (Caleb McDaniel)
1969 + Fix for Issue #1692 (i18n styles) (Nikolay Yakimov).
1971 * Org reader:
1973 + Added state changing blanklines (Jesse Rosenthal).
1974 This allows us to emphasize at the beginning of a new paragraph (or, in
1975 general, after blank lines).
1976 + Fixed bug with bulleted lists:
1978 - a
1979 - b
1980 * c
1982 was being parsed as a list, even though an unindented `*`
1983 should make a heading. See
1984 <http://orgmode.org/manual/Plain-lists.html#fn-1>.
1985 + Org reader: absolute, relative paths in link (#1741, Albert
1986 Krewinkel). The org reader was too restrictive when parsing links;
1987 some relative links and links to files given as absolute paths
1988 were not recognized correctly.
1989 + Org reader: allow empty links (jgm/gitit#471, Albert Krewinkel).
1990 This is important for use in gitit, which uses empty links
1991 for wikilinks.
1992 + Respect indent when parsing Org bullet lists (#1650, Timothy
1993 Humphries). Fixes issue with top-level bullet list parsing.
1994 + Fix indent issue for definition lists (Timothy Humphries,
1995 see #1650, #1698, #1680).
1996 + Parse multi-inline terms correctly in definition list (#1649,
1997 Matthew Pickering).
1998 + Fix rules for emphasis recognition (Albert Krewinkel).
1999 Things like `/hello,/` or `/hi'/` were falsy recognized as emphasised
2000 strings. This is wrong, as `,` and `'` are forbidden border chars and
2001 may not occur on the inner border of emphasized text.
2002 + Drop COMMENT document trees (Albert Krewinkel).
2003 Document trees under a header starting with the word `COMMENT` are
2004 comment trees and should not be exported. Those trees are dropped
2005 silently (#1678).
2006 + Properly handle links to `file:target` (Albert Krewinkel).
2007 Org links like `[[file:target][title]]` were not handled correctly,
2008 parsing the link target verbatim. The org reader is changed such that
2009 the leading `file:` is dropped from the link target (see #756, #1812).
2010 + Parse LaTeX-style MathML entities (#1657, Albert Krewinkel).
2011 Org supports special symbols which can be included using LaTeX syntax,
2012 but are actually MathML entities. Examples for this are
2013 `\nbsp` (non-breaking space), `\Aacute` (the letter A with accent acute)
2014 or `\copy` (the copyright sign ©)
2016 * EPUB reader:
2018 + URI handling improvements. Now we outsource most of the work to
2019 `fetchItem'`. Also, do not include queries in file extensions (#1671).
2021 * LaTeX writer:
2023 + Use `\texorpdfstring` for section captions when needed (Vaclav Zeman).
2024 + Handle consecutive linebreaks (#1733).
2025 + Protect graphics in headers (Jesse Rosenthal).
2026 Graphics in `\section`/`\subsection` etc titles need to be `\protect`ed.
2027 + Put `~` before header in list item text (Jesse Rosenthal).
2028 Because of the built-in line skip, LaTeX can't handle a section header
2029 as the first element in a list item.
2030 + Avoid using reserved characters as `\lstinline` delimiters (#1595).
2031 + Better handling of display math in simple tables (#1754).
2032 We convert display math to inline math in simple tables,
2033 since LaTeX can't deal with display math in simple tables.
2034 + Escape spaces in code (#1694, Bjorn Buckwalter).
2036 * MediaWiki writer:
2038 + Fixed links with URL = text. Previously these were rendered as bare
2039 words, even if the URL was not an absolute URL (#1825).
2041 * ICML writer:
2043 + Don't force all citations into footnotes.
2045 * RTF writer:
2047 + Add blankline at end of output (#1732, Matthew Pickering).
2049 * RST writer:
2051 + Ensure blank line after figure.
2052 + Avoid exces whitespace after last list item (#1777).
2053 + Wrap line blocks with spaces before continuations (#1656).
2054 + Fixed double-rendering of footnotes in RST tables (#1769).
2056 * DokuWiki writer:
2058 + Better handling of block quotes. This change ensures that
2059 multiple paragraph blockquotes are rendered using native `>`
2060 rather than as HTML (#1738).
2061 + Fix external images (#1739). Preface relative links with ":",
2062 absolute URIs without. (Timothy Humphries)
2064 * HTML writer:
2066 + Use protocol-relative URL for mathjax.
2067 + Put newline btw img and caption paragraph.
2068 + MathML now outputted with tex annotation (#1635, Matthew Pickering).
2069 + Add support for KaTeX HTML math (#1626, Matthew Pickering).
2070 This adds `KaTeX` to `HTMLMathMethod` (API change).
2071 + Don't double render when `email-obfuscation=none` (#1625, Matthew
2072 Pickering).
2073 + Make header attributes work outside top level (#1711).
2074 Previously they only appeared on top level header elements.
2075 Now they work e.g. in blockquotes.
2077 * ODT writer:
2079 + Correctly handle images without extensions (#1729).
2080 + Strip querystring in ODT write (#1682, Todd Sifleet).
2082 * FB2 writer:
2084 + Add newline to output.
2086 * EPUB writer:
2088 + Don't add `sourceURL` to absolute URIs (#1669).
2089 + Don't use unsupported `opf:title-type` for epub2.
2090 + Include "landmarks" section in nav document for epub3 (#1757).
2091 + Removed playOrder from navpoint elements in ncx file (#1760).
2092 These aren't required, and they make manual modification of epubs
2093 difficult.
2094 + Extract title even from structured title.
2095 + Don't include nav node in spine unless `--toc` was requested.
2096 Previously we included it in the spine with `linear="no"`, leading
2097 to odd results in some readers (#1593).
2098 + Fixed absolute URI detection (#1672).
2099 + Correctly resolve relative URIs (#1671).
2100 + Use regular page template for `nav.xhtml`, including doctype (#1759).
2102 * Docx writer:
2104 + Put docx table captions above tables (#1641, Nikolay Yakimov).
2105 + Get the page width from the reference docx file, and use
2106 it to scale images that are too large to fit (Grégory Bataille).
2107 + Partial fix for #1607 (Nikolay Yakimov). International heading styles
2108 are inferred based on `<w:name val="heading #">` fallback, if there
2109 are no en-US "Heading#" styles
2110 + Look in user data dir for archive `reference.docx`.
2111 + Renumber header and footer relationships to avoid collisions (Jesse
2112 Rosenthal). We previously took the old relationship names of the
2113 headers and footer in secptr. That led to collisions. We now make
2114 a map of availabl names in the relationships file, and then rename
2115 in secptr.
2117 * ConTeXt writer:
2119 + Add function toLabel (Mark Szepieniec).
2120 This function can be used to sanitize reference labels so that
2121 they do not contain any of the illegal characters \#[]",{}%()|= .
2122 Currently only Links have their labels sanitized, because they
2123 are the only Elements that use passed labels.
2125 * `Text.Pandoc.Shared`:
2127 + Moved import of `toChunks` outside of CPP conditional (#1590).
2128 + Fix `inDirectory` to reset to the original directory in case
2129 an exception occurs (Freiric Barral).
2131 * Templates:
2133 + LaTeX template: load polyglossia before bibtex (jgm/pandoc-templates#70).
2134 Thanks to bluebirch.
2135 + LaTeX template: Added `\VerbatimFootnotes` if there is verbatim in notes
2136 (#1616).
2137 + LaTeX template: Add shorthands=off to babel options (#1648).
2138 + EPUB, EPUB3 templates: Added `id="cover"` to body of cover page.
2139 This aids styling, making it possible for example to set 0 margins
2140 on the title page (#1758).
2141 + EPUB, EPUB3 templates: Handle structured metadata on titlepage.
2142 Previously we just expected 'title', 'subtitle', 'author', 'date'.
2143 Now we still support those, but also support the format recommended
2144 for epub metadata in the pandoc README:
2146 ---
2147 title:
2148 - type: main
2149 text: My Book
2150 - type: subtitle
2151 text: An investigation of metadata
2152 creator:
2153 - role: author
2154 text: John Smith
2155 - role: editor
2156 text: Sarah Jones
2157 identifier:
2158 - scheme: DOI
2159 text: doi:10.234234.234/33
2160 publisher: My Press
2161 rights: (c) 2007 John Smith, CC BY-NC
2162 ...
2164 * `Text.Pandoc.Templates.getDefaultTemplate`:
2165 don't fail when called with "fb2" (#1660).
2167 * `Text.Pandoc.Parsing`:
2169 + Fixed `inlineMath` so it handles `\text{..}` containing `$`.
2170 For example: `$x = \text{the $n$th root of $y$}` (#1677).
2171 + Change `parseFromString` to fail if not all input is consumed.
2172 (Matthew Pickering)
2173 + Moved `addWarning` from Markdown reader to `Parsing`, so it can be
2174 used by more readers (API change, Daniel Bergey).
2176 * `Text.Pandoc.Pretty`:
2178 + Improve performance of `realLength` (Matthew Pickering).
2179 + Make CR + BLANKLINE = BLANKLINE. This fixes an extra blank line we
2180 were getting at the end of markdown fragments (as well as rst, org,
2181 etc.) (#1705).
2183 * `Text.Pandoc.MIME`:
2185 + Add mime type for WebVTT (Jason Ronallo).
2186 + Changed mime type for `otf` to `application/vnd.ms-opentype` (#1761).
2187 This is needed for epub3 validation.
2189 * `Text.Pandoc.MediaBag`:
2191 + Fix Windows specific path problems (#1597).
2193 * `Text.Pandoc.Shared`:
2195 + Make `collapseFilePath` OS-agnostic (Matthew Pickering).
2197 * Link the test suite using `-threaded`.
2198 This allows the test suite to be run using `+RTS -N`.
2200 * Added `network` dependency under `network-uri` flag in test section.
2202 * Give better error messages when someone tries to convert from
2203 pdf, doc, odt (#1683).
2205 * Added `track` to list of tags treated by `--self-contained` (#1664).
2207pandoc (1.13.1)
2209 * Fixed `--self-contained` with Windows paths (#1558).
2210 Previously `C:\foo.js` was being wrongly interpreted as a URI.
2212 * HTML reader: improved handling of tags that can be block or inline.
2213 Previously a section like this would be enclosed in a paragraph,
2214 with RawInline for the video tags (since video is a tag that can
2215 be either block or inline):
2217 <video controls="controls">
2218 <source src="../videos/test.mp4" type="video/mp4" />
2219 <source src="../videos/test.webm" type="video/webm" />
2220 <p>
2221 The videos can not be played back on your system.<br/>
2222 Try viewing on Youtube (requires Internet connection):
2223 <a href="http://youtu.be/etE5urBps_w">Relative Velocity on
2224 Youtube</a>.
2225 </p>
2226 </video>
2228 This change will cause the video and source tags to be parsed
2229 as RawBlock instead, giving better output.
2230 The general change is this: when we're parsing a "plain" sequence
2231 of inlines, we don't parse anything that COULD be a block-level tag.
2233 * Docx reader:
2235 + Be sensitive to user styles. Note that "Hyperlink" is
2236 "blacklisted," as we don't want the default underline styling to be
2237 inherited by all links by default (Jesse Rosenthal).
2238 + Read single paragraph in table cell as `Plain` (Jesse Rosenthal).
2239 This makes to docx reader's native output fit with the way the markdown
2240 reader understands its markdown output.
2242 * Textile writer: Extended the range of cases where native textile
2243 tables will be used (as opposed to raw HTML): we now handle any
2244 alignment type, but only for simple tables with no captions.
2246 * Txt2Tags reader:
2248 + Header is now parsed only if standalone flag is set (Matthew Pickering).
2249 + The header is now parsed as meta information. The first line is the
2250 `title`, the second is the `author` and third line is the `date`
2251 (Matthew Pickering).
2252 + Corrected formatting of `%%mtime` macro (Matthew Pickering).
2253 + Fixed crash when reading from stdin.
2255 * EPUB writer: Don't use page-progression-direction in EPUB2, which
2256 doesn't support it. Also, if page-progression-direction not specified
2257 in metadata, don't include the attribute even in EPUB3; not including it
2258 is the same as including it with the value "default", as we did before.
2259 (#1550)
2261 * Org writer: Accept example lines with indentation at the beginning
2262 (Calvin Beck).
2264 * DokuWiki writer:
2266 + Refactor to use Reader monad (Matthew Pickering).
2267 + Avoid using raw HTML in table cells; instead, use `\\`
2268 instead of newlines (Jesse Rosenthal).
2269 + Properly handle HTML table cell alignments, and use spacing
2270 to make the tables look prettier (#1566).
2272 * Docx writer:
2274 + Bibliography entries get `Bibliography` style (#1559).
2275 + Implement change tracking (Jesse Rosenthal).
2277 * LaTeX writer:
2279 + Fixed a bug that caused a table caption to repeat across all pages
2280 (Jose Luis Duran).
2281 + Improved vertical spacing in tables and made it customizable using
2282 standard lengths set by booktab. See
2283 <https://groups.google.com/forum/#!msg/pandoc-discuss/qMu6_5lYy0o/ZAU7lzAIKw0J>
2284 (Jose Luis Duran).
2285 + Added `\strut` to fix spacing in multiline tables (Jose Luis Duran).
2286 + Use `\tabularnewline` instead of `\\` in table cells (Jose Luis Duran).
2287 + Made horizontal rules more flexible (Jose Luis Duran).
2289 * Text.Pandoc.MIME:
2291 + Added `MimeType` (type synonym for `String`) and `getMimeTypeDef`.
2292 Code cleanups (Artyom Kazak).
2294 * Templates:
2296 + LaTeX template: disable microtype protrusion for typewriter font (#1549,
2297 thanks lemzwerg).
2299 * Improved OSX build procedure.
2301 * Added `network-uri` flag, to deal with split of `network-uri` from
2302 `network`.
2304 * Fix build dependencies for the `trypandoc` flag, so that they are
2305 ignored if `trypandoc` flag is set to False (Gabor Pali).
2307 * Updated README to remove outdated claim that `--self-contained`
2308 looks in the user data directory for missing files.
2310pandoc (1.13.0.1)
2312 * Docx writer:
2314 + Fixed regression which bungled list numbering (#1544), causing
2315 all lists to appear as basic ordered lists.
2316 + Include row width in table rows (Christoffer Ackelman, Viktor Kronvall).
2317 Added a property to all table rows where the sum of column widths
2318 is specified in pct (fraction of 5000). This helps persuade Word
2319 to lay out the table with the widths we specify.
2321 * Fixed a bug in Windows 8 which caused pandoc not to find the
2322 `pandoc-citeproc` filter (#1542).
2324 * Docx reader: miscellaneous under-the-hood improvements (Jesse Rosenthal).
2325 Most significantly, the reader now uses Builder, leading to some
2326 performance improvements.
2328 * HTML reader: Parse appropriately styled span as SmallCaps.
2330 * Markdown writer: don't escape `$`, `^`, `~` when `tex_math_dollars`,
2331 `superscript`, and `subscript` extensions, respectively, are
2332 deactivated (#1127).
2334 * Added `trypandoc` flag to build CGI executable used in the online
2335 demo.
2337 * Makefile: Added 'quick', 'osxpkg' targets.
2339 * Updated README in templates to indicate templates license.
2340 The templates are dual-licensed, BSD3 and GPL2+.
2342pandoc (1.13)
2344 [new features]
2346 * Added `docx` as an input format (Jesse Rosenthal). The docx
2347 reader includes conversion of native Word equations to pandoc
2348 LaTeX `Math` elements. Metadata is taken from paragraphs at the
2349 beginning of the document with styles `Author`, `Title`, `Subtitle`,
2350 `Date`, and `Abstract`.
2352 * Added `epub` as an input format (Matthew Pickering). The epub
2353 reader includes conversion of MathML to pandoc LaTeX `Math`
2354 elements.
2356 * Added `t2t` (Txt2Tags) as an input format (Matthew Pickering).
2357 Txt2tags is a lightweight markup format described at
2358 <http://txt2tags.org/>.
2360 * Added `dokuwiki` as an output format (Clare Macrae).
2362 * Added `haddock` as an output format.
2364 * Added `--extract-media` option to extract media contained in a zip
2365 container (docx or epub) while adjusting image paths to point to the
2366 extracted images.
2368 * Added a new markdown extension, `compact_definition_lists`, that
2369 restores the syntax for definition lists of pandoc 1.12.x, allowing
2370 tight definition lists with no blank space between items, and
2371 disallowing lazy wrapping. (See below under behavior changes.)
2373 * Added an extension `epub_html_exts` for parsing HTML in EPUBs.
2375 * Added extensions `native_spans` and `native_divs` to activate
2376 parsing of material in HTML span or div tags as Pandoc Span
2377 inlines or Div blocks.
2379 * `--trace` now works with the Markdown, HTML, Haddock, EPUB,
2380 Textile, and MediaWiki readers. This is an option intended
2381 for debugging parsing problems; ordinary users should not need
2382 to use it.
2384 [behavior changes]
2386 * Changed behavior of the `markdown_attribute` extension, to bring
2387 it in line with PHP markdown extra and multimarkdown. Setting
2388 `markdown="1"` on an outer tag affects all contained tags,
2389 recursively, until it is reversed with `markdown="0"` (#1378).
2391 * Revised markdown definition list syntax (#1429). Both the reader
2392 and writer are affected. This change brings pandoc's definition list
2393 syntax into alignment with that used in PHP markdown extra and
2394 multimarkdown (with the exception that pandoc is more flexible about
2395 the definition markers, allowing tildes as well as colons). Lazily
2396 wrapped definitions are now allowed. Blank space is required
2397 between list items. The space before a definition is used to determine
2398 whether it is a paragraph or a "plain" element. **WARNING: This change
2399 may break existing documents!** Either check your documents for
2400 definition lists without blank space between items, or use
2401 `markdown+compact_definition_lists` for the old behavior.
2403 * `.numberLines` now works in fenced code blocks even if no language
2404 is given (#1287, jgm/highlighting-kate#40).
2406 * Improvements to `--filter`:
2408 + Don't search PATH for a filter with an explicit path.
2409 This fixed a bug wherein `--filter ./caps.py` would run `caps.py` from
2410 the system path, even if there was a `caps.py` in the working directory.
2411 + Respect shebang if filter is executable (#1389).
2412 + Don't print misleading error message.
2413 Previously pandoc would say that a filter was not found,
2414 even in a case where the filter had a syntax error.
2416 * HTML reader:
2418 + Parse `div` and `span` elements even without `--parse-raw`,
2419 provided `native_divs` and `native_spans` extensions are set.
2420 Motivation: these now generate native pandoc Div and Span
2421 elements, not raw HTML.
2422 + Parse EPUB-specific elements if the `epub_html_exts`
2423 extension is enabled. These include `switch`, `footnote`,
2424 `rearnote`, `noteref`.
2426 * Org reader:
2428 + Support for inline LaTeX. Inline LaTeX is now accepted and parsed by the
2429 org-mode reader. Both math symbols (like `\tau`) and LaTeX commands (like
2430 `\cite{Coffee}`), can be used without any further escaping (Albert
2431 Krewinkel).
2433 * Textile reader and writer:
2435 + The `raw_tex` extension is no longer set by default. You can
2436 enable it with `textile+raw_tex`.
2438 * DocBook reader:
2440 + Support `equation`, `informalequation`, `inlineequation` elements with
2441 `mml:math` content. This is converted into LaTeX and put into a Pandoc
2442 Math inline.
2444 * Revised `plain` output, largely following the style of Project
2445 Gutenberg:
2447 + Emphasis is rendered with `_underscores_`, strong emphasis
2448 with ALL CAPS.
2449 + Headings are rendered differently, with space to set them off,
2450 not with setext style underlines. Level 1 headers are ALL CAPS.
2451 + Math is rendered using unicode when possible, but without the
2452 distracting emphasis markers around variables.
2453 + Footnotes use a regular `[n]` style.
2455 * Markdown writer:
2457 + Horizontal rules are now a line across the whole page.
2458 + Prettier pipe tables. Columns are now aligned (#1323).
2459 + Respect the `raw_html` extension. `pandoc -t markdown-raw_html`
2460 no longer emits any raw HTML, including span and div tags
2461 generated by Span and Div elements.
2462 + Use span with style for `SmallCaps` (#1360).
2464 * HTML writer:
2466 + Autolinks now have class `uri`, and email autolinks have class
2467 `email`, so they can be styled.
2469 * Docx writer:
2471 + Document formatting is carried over from `reference.docx`.
2472 This includes margins, page size, page orientation, header,
2473 and footer, including images in headers and footers.
2474 + Include abstract (if present) with `Abstract` style (#1451).
2475 + Include subtitle (if present) with `Subtitle` style, rather
2476 than tacking it on to the title (#1451).
2478 * Org writer:
2480 + Write empty span elements with an id attribute as org anchors.
2481 For example `Span ("uid",[],[]) []` becomes `<<uid>>`.
2483 * LaTeX writer:
2485 + Put table captions above tables, to match the conventional
2486 standard. (Previously they appeared below tables.)
2487 + Use `\(..\)` instead of `$..$` for inline math (#1464).
2488 + Use `\nolinkurl` in email autolinks. This allows them to be styled
2489 using `\urlstyle{tt}`. Thanks to Ulrike Fischer for the solution.
2490 + Use `\textquotesingle` for `'` in inline code. Otherwise we get
2491 curly quotes in the PDF output (#1364).
2492 + Use `\footnote<.>{..}` for notes in beamer, so that footnotes
2493 do not appear before the overlays in which their markers appear
2494 (#1525).
2495 + Don't produce a `\label{..}` for a Div or Span element. Do produce
2496 a `\hyperdef{..}` (#1519).
2498 * EPUB writer:
2500 + If the metadata includes `page-progression-direction` (which can be
2501 `ltr` or `rtl`, the `page-progression-direction` attribute will
2502 be set in the EPUB spine (#1455).
2504 * Custom lua writers:
2506 + Custom writers now work with `--template`.
2507 + Removed HTML header scaffolding from `sample.lua`.
2508 + Made citation information available in lua writers.
2510 * `--normalize` and `Text.Pandoc.Shared.normalize` now consolidate
2511 adjacent `RawBlock`s when possible.
2513 [API changes]
2515 * Added `Text.Pandoc.Readers.Docx`, exporting `readDocx` (Jesse Rosenthal).
2517 * Added `Text.Pandoc.Readers.EPUB`, exporting `readEPUB` (Matthew
2518 Pickering).
2520 * Added `Text.Pandoc.Readers.Txt2Tags`, exporting `readTxt2Tags` (Matthew
2521 Pickering).
2523 * Added `Text.Pandoc.Writers.DokuWiki`, exporting `writeDokuWiki`
2524 (Clare Macrae).
2526 * Added `Text.Pandoc.Writers.Haddock`, exporting `writeHaddock`.
2528 * Added `Text.Pandoc.MediaBag`, exporting `MediaBag`, `lookupMedia`,
2529 `insertMedia`, `mediaDirectory`, `extractMediaBag`. The docx and epub
2530 readers return a pair of a `Pandoc` document and a `MediaBag` with
2531 the media resources they contain. This can be extracted using
2532 `--extract-media`. Writers that incorporate media (PDF, Docx,
2533 ODT, EPUB, RTF, or HTML formats with `--self-contained`) will look
2534 for resources in the `MediaBag` generated by the reader, in addition to
2535 the file system or web.
2537 * `Text.Pandoc.Readers.TexMath`: Removed deprecated `readTeXMath`.
2538 Renamed `readTeXMath'` to `texMathToInlines`.
2540 * `Text.Pandoc`: Added `Reader` data type (Matthew Pickering).
2541 `readers` now associates names of readers with `Reader`
2542 structures. This allows inclusion of readers, like the docx
2543 reader, that take binary rather than textual input.
2545 * `Text.Pandoc.Shared`:
2547 + Added `capitalize` (Artyom Kazak), and replaced uses of
2548 `map toUpper` (which give bad results for many languages).
2549 + Added `collapseFilePath`, which removes intermediate `.` and
2550 `..` from a path (Matthew Pickering).
2551 + Added `fetchItem'`, which works like `fetchItem` but searches
2552 a `MediaBag` before looking on the net or file system.
2553 + Added `withTempDir`.
2554 + Added `removeFormatting`.
2555 + Added `extractSpaces` (from HTML reader) and generalized its type
2556 so that it can be used by the docx reader (Matthew Pickering).
2557 + Added `ordNub`.
2558 + Added `normalizeInlines`, `normalizeBlocks`.
2559 + `normalize` is now `Pandoc -> Pandoc` instead of
2560 `Data a :: a -> a`. Some users may need to change their uses of
2561 `normalize` to the newly exported `normalizeInlines` or
2562 `normalizeBlocks`.
2564 * `Text.Pandoc.Options`:
2566 + Added `writerMediaBag` to `WriterOptions`.
2567 + Removed deprecated and no longer used `readerStrict` in
2568 `ReaderOptions`. This is handled by `readerExtensions` now.
2569 + Added `Ext_compact_definition_lists`.
2570 + Added `Ext_epub_html_exts`.
2571 + Added `Ext_native_divs` and `Ext_native_spans`.
2572 This allows users to turn off the default pandoc behavior of
2573 parsing contents of div and span tags in markdown and HTML
2574 as native pandoc Div blocks and Span inlines.
2576 * `Text.Pandoc.Parsing`:
2578 + Generalized `readWith` to `readWithM` (Matthew Pickering).
2579 + Export `runParserT` and `Stream` (Matthew Pickering).
2580 + Added `HasQuoteContext` type class (Matthew Pickering).
2581 + Generalized types of `mathInline`, `smartPunctuation`, `quoted`,
2582 `singleQuoted`, `doubleQuoted`, `failIfInQuoteContext`,
2583 `applyMacros` (Matthew Pickering).
2584 + Added custom `token` (Matthew Pickering).
2585 + Added `stateInHtmlBlock` to `ParserState`. This is used to keep
2586 track of the ending tag we're waiting for when we're parsing inside
2587 HTML block tags.
2588 + Added `stateMarkdownAttribute` to `ParserState`. This is used
2589 to keep track of whether the markdown attribute has been set in
2590 an enclosing tag.
2591 + Generalized type of `registerHeader`, using new type classes
2592 `HasReaderOptions`, `HasIdentifierList`, `HasHeaderMap` (Matthew
2593 Pickering). These allow certain common functions to be reused
2594 even in parsers that use custom state (instead of `ParserState`),
2595 such as the MediaWiki reader.
2596 + Moved `inlineMath`, `displayMath` from Markdown reader to Parsing,
2597 and generalized their types (Matthew Pickering).
2599 * `Text.Pandoc.Pretty`:
2601 + Added `nestle`.
2602 + Added `blanklines`, which guarantees a certain number of blank lines
2603 (and no more).
2605 [bug fixes]
2607 * Markdown reader:
2609 + Fixed parsing of indented code in list items. Indented code
2610 at the beginning of a list item must be indented eight spaces
2611 from the margin (or edge of the container), or four spaces
2612 from the list marker, whichever is greater.
2613 + Fixed small bug in HTML parsing with `markdown_attribute`, which
2614 caused incorrect tag nesting for input like
2615 `<aside markdown="1">*hi*</aside>`.
2616 + Fixed regression with intraword underscores (#1121).
2617 + Improved parsing of inline links containing quote characters (#1534).
2618 + Slight rewrite of `enclosure`/`emphOrStrong` code.
2619 + Revamped raw HTML block parsing in markdown (#1330).
2620 We no longer include trailing spaces and newlines in the
2621 raw blocks. We look for closing tags for elements (but without
2622 backtracking). Each block-level tag is its own `RawBlock`;
2623 we no longer try to consolidate them (though `--normalize` will do so).
2624 + Combine consecutive latex environments. This helps when you have
2625 two minipages which can't have blank lines between them (#690, #1196).
2626 + Support smallcaps through span.
2627 `<span style="font-variant:small-caps;">foo</span>` will be
2628 parsed as a `SmallCaps` inline, and will work in all output
2629 formats that support small caps (#1360).
2630 + Prevent spurious line breaks after list items (#1137). When the
2631 `hard_line_breaks` option was specified, pandoc would formerly
2632 produce a spurious line break after a tight list item.
2633 + Fixed table parsing bug (#1333).
2634 + Handle `c++` and `objective-c` as language identifiers in
2635 github-style fenced blocks (#1318).
2636 + Inline math must have nonspace before final `$` (#1313).
2638 * LaTeX reader:
2640 + Handle comments at the end of tables. This resolves the issue
2641 illustrated in <http://stackoverflow.com/questions/24009489>.
2642 + Correctly handle table rows with too few cells. LaTeX seems to
2643 treat them as if they have empty cells at the end (#241).
2644 + Handle leading/trailing spaces in `\emph` better.
2645 `\emph{ hi }` gets parsed as `[Space, Emph [Str "hi"], Space]`
2646 so that we don't get things like `* hi *` in markdown output.
2647 Also applies to `\textbf` and some other constructions (#1146).
2648 + Don't assume preamble doesn't contain environments (#1338).
2649 + Allow (and discard) optional argument for `\caption` (James Aspnes).
2651 * HTML reader:
2653 + Fixed major parsing problem with HTML tables. Table cells were
2654 being combined into one cell (#1341).
2655 + Fixed performance issue with malformed HTML tables.
2656 We let a `</table>` tag close an open `<tr>` or `<td>` (#1167).
2657 + Allow space between `<col>` and `</col>`.
2658 + Added `audio` and `source` in `eitherBlockOrInline`.
2659 + Moved `video`, `svg`, `progress`, `script`, `noscript`, `svg` from
2660 `blockTags` to `eitherBlockOrInline`.
2661 + `map` and `object` were mistakenly in both lists; they have been removed
2662 from `blockTags`.
2663 + Ignore `DOCTYPE` and `xml` declarations.
2665 * MediaWiki reader:
2667 + Don't parse backslash escapes inside `<source>` (#1445).
2668 + Tightened up template parsing.
2669 The opening `{{` must be followed by an alphanumeric or `:`.
2670 This prevents the exponential slowdown in #1033.
2671 + Support "Bild" for images.
2673 * DocBook reader:
2675 + Better handle elements inside code environments. Pandoc's document
2676 model does not allow structure inside code blocks, but at least this way
2677 we preserve the text (#1449).
2678 + Support `<?asciidoc-br?>` (#1236).
2680 * Textile reader:
2682 + Fixed list parsing. Lists can now start without an intervening
2683 blank line (#1513).
2684 + HTML block-level tags that do not start a line are parsed as
2685 inline HTML and do not interrupt paragraphs (as in RedCloth).
2687 * Org reader:
2689 + Make tildes create inline code (#1345). Also relabeled `code` and
2690 `verbatim` parsers to accord with the org-mode manual.
2691 + Respect `:exports` header argument in code blocks (Craig Bosma).
2692 + Fixed tight lists with sublists (#1437).
2694 * EPUB writer:
2696 + Avoid excess whitespace in `nav.xhtml`. This should improve
2697 TOC view in iBooks (#1392).
2698 + Fixed regression on cover image.
2699 In 1.12.4 and 1.12.4.2, the cover image would not appear properly,
2700 because the metadata id was not correct. Now we derive the id from the
2701 actual cover image filename, which we preserve rather than using
2702 "cover-image."
2703 + Keep newlines between block elements. This allows
2704 easier diff-ability (#1424).
2705 + Use `stringify` instead of custom `plainify`.
2706 + Use `renderTags'` for all tag rendering. This properly handles tags
2707 that should be self-closing. Previously `<hr/>` would appear in EPUB
2708 output as `<hr></hr>` (#1420).
2709 + Better handle HTML media tags.
2710 + Handle multiple dates with OPF `event` attributes. Note: in EPUB3 we
2711 can have only one dc:date, so only the first one is used.
2713 * LaTeX writer:
2715 + Correctly handle figures in notes. Notes can't contain figures in
2716 LaTeX, so we fake it to avoid an error (#1053).
2717 + Fixed strikeout + highlighted code (#1294).
2718 Previously strikeout highlighted code caused an error.
2720 * ConTeXt writer:
2722 + Improved detection of autolinks with URLs containing escapes.
2724 * RTF writer:
2726 + Improved image embedding: `fetchItem'` is now used to get the
2727 images, and calculated image sizes are indicated in the RTF.
2728 + Avoid extra paragraph tags in metadata (#1421).
2730 * HTML writer:
2732 + Deactivate "incremental" inside slide speaker notes (#1394).
2733 + Don't include empty items in the table of contents for
2734 slide shows. (These would result from creating a slide
2735 using a horizontal rule.)
2737 * MediaWiki writer:
2739 + Minor renaming of `st` prefixed names.
2741 * AsciiDoc writer:
2743 + Double up emphasis and strong emphasis markers in intraword
2744 contexts, as required by asciidoc (#1441).
2746 * Markdown writer:
2748 + Avoid wrapping that might start a list, blockquote, or header (#1013).
2749 + Use Span instead of (hackish) `SmallCaps` in `plainify`.
2750 + Don't use braced attributes for fenced code (#1416).
2751 If `Ext_fenced_code_attributes` is not set, the first class
2752 attribute will be printed after the opening fence as a bare word.
2753 + Separate adjacent lists of the same kind with an HTML comment (#1458).
2755 * PDF writer:
2757 + Fixed treatment of data uris for images (#1062).
2759 * Docx writer:
2761 + Use Compact style for empty table cells (#1353).
2762 Otherwise we get overly tall lines when there are empty
2763 table cells and the other cells are compact.
2764 + Create overrides per-image for `media/` in reference docx.
2765 This should be somewhat more robust and cover more types of images.
2766 + Improved `entryFromArchive` to avoid an unneeded parse.
2767 + Section numbering carries over from reference.docx (#1305).
2768 + Simplified `abstractNumId` numbering. Instead of sequential numbering,
2769 we assign numbers based on the list marker styles.
2771 * `Text.Pandoc.Options`:
2773 + Removed `Ext_fenced_code_attributes` from `markdown_github`
2774 extensions.
2776 * `Text.Pandoc.ImageSize`:
2778 + Use default instead of failing if image size not found
2779 in exif header (#1358).
2780 + ignore unknown exif header tag rather than crashing.
2781 Some images seem to have tag type of 256, which was causing
2782 a runtime error.
2784 * `Text.Pandoc.Shared`:
2786 + `fetchItem`: unescape URI encoding before reading local file (#1427).
2787 + `fetchItem`: strip a fragment like `?#iefix` from the extension before
2788 doing mime lookup, to improve mime type guessing.
2789 + Improved logic of `fetchItem`: absolute URIs are fetched from the net;
2790 other things are treated as relative URIs if `sourceURL` is `Just _`,
2791 otherwise as file paths on the local file system.
2792 + `fetchItem` now properly handles links without a protocol (#1477).
2793 + `fetchItem` now escapes characters not allowed in URIs before trying
2794 to parse the URIs.
2795 + Fixed runtime error with `compactify'DL` on certain lists (#1452).
2797 * `pandoc.hs`: Don't strip path off of `writerSourceURL`: the path is
2798 needed to resolve relative URLs when we fetch resources (#750).
2800 * `Text.Pandoc.Parsing`
2802 + Simplified `dash` and `ellipsis` (#1419).
2803 + Removed `(>>~)` in favor of the equivalent `(<*)` (Matthew Pickering).
2804 + Generalized functions to use `ParsecT` (Matthew Pickering).
2805 + Added `isbn` and `pmid` to list of recognized schemes (Matthew
2806 Pickering).
2808 [template changes]
2810 * Added haddock template.
2811 * EPUB3: Added `type` attribute to `link` tags. They are supposed to
2812 be "advisory" in HTML5, but kindlegen seems to require them.
2813 * EPUB3: Put title page in section with `epub:type="titlepage"`.
2814 * LaTeX: Made `\subtitle` work properly (#1327).
2815 * LaTeX/Beamer: remove conditional around date (#1321).
2816 * LaTeX: Added `lot` and `lof` variables, which can be set to
2817 get `\listoftables` and `\listoffigures` (#1407). Note that
2818 these variables can be set at the command line with `-Vlot -Vlof`
2819 or in YAML metadata.
2821 [under the hood improvements]
2823 * Rewrote normalize for efficiency (#1385).
2825 * Rewrote Haddock reader to use `haddock-library` (#1346).
2827 + This brings pandoc's rendering of haddock markup in line
2828 with the new haddock.
2829 + Fixed line breaks in `@` code blocks.
2830 + alex and happy are no longer build-depends.
2832 * Added `Text.Pandoc.Compat.Directory` to allow building against
2833 different versions of the `directory` library.
2835 + Added `Text.Pandoc.Compat.Except` to allow building against
2836 different verions of `mtl`.
2838 * Code cleanup in some writers, using Reader monad to avoid
2839 passing options parameter around (Matej Kollar).
2841 * Improved readability in `pandoc.hs`.
2843 * Miscellaneous code cleanups (Artyom Kazak).
2845 * Avoid `import Prelude hiding (catch)` (#1309, thanks to Michael
2846 Thompson).
2848 * Changed `http-conduit` flag to `https`. Depend on `http-client`
2849 and `http-client-tls` instead of `http-conduit`. (Note: pandoc still
2850 depends on `conduit` via `yaml`.)
2852 * Require `highlighting-kate >= 0.5.8.5` (#1271, #1317, Debian #753299).
2853 This change to highlighting-kate means that PHP fragments no longer need
2854 to start with `<?php`. It also fixes a serious bug causing failures with
2855 ocaml and fsharp.
2857 * Require latest `texmath`. This fixes `\tilde{E}` and allows
2858 `\left` to be used with `]`, `)` etc. (#1319), among many other
2859 improvements.
2861 * Require latest `zip-archive`. This has fixes for unicode path names.
2863 * Added tests for plain writer.
2865 * `Text.Pandoc.Templates`:
2867 + Fail informatively on template syntax errors.
2868 With the move from parsec to attoparsec, we lost good error
2869 reporting. In fact, since we weren't testing for end of input,
2870 malformed templates would fail silently. Here we revert back to
2871 Parsec for better error messages.
2872 + Use `ordNub` (#1022).
2874 * Benchmarks:
2876 + Made benchmarks compile again (Artyom Kazak).
2877 + Fixed so that the failure of one benchmark does not prevent others
2878 from running (Artyom Kazak).
2879 + Use `nfIO` instead of the `getLength` trick to force full evaluation.
2880 + Changed benchmark to use only the test suite, so that benchmarks
2881 run more quickly.
2883 * Windows build script:
2885 + Add `-windows` to file name.
2886 + Use one install command for pandoc, pandoc-citeproc.
2887 + Force install of pandoc-citeproc.
2889 * `make_osx_package`: Call zip file `pandoc-VERSION-osx.zip`.
2890 The zip should not be named `SOMETHING.pkg.zip`, or OSX finder
2891 will extract it into a folder named `SOMETHING.pkg`, which it
2892 will interpret as a defective package (#1308).
2894 * `README`:
2896 + Made headers for all extensions so they have IDs and can be
2897 linked to (Beni Cherniavsky-Paskin).
2898 + Fixed typos (Phillip Alday).
2899 + Fixed documentation of attributes (#1315).
2900 + Clarified documentation on small caps (#1360).
2901 + Better documentation for `fenced_code_attributes` extension
2902 (Caleb McDaniel).
2903 + Documented fact that you can put YAML metadata in a separate file
2904 (#1412).
2907pandoc (1.12.4.2)
2909 * Require highlighting-kate >= 0.5.8. Fixes a performance regression.
2911 * Shared: `addMetaValue` now behaves slightly differently:
2912 if both the new and old values are lists, it concatenates their
2913 contents to form a new list.
2915 * LaTeX reader:
2917 + Set `bibliography` in metadata from `\bibliography` or
2918 `\addbibresource` command.
2919 + Don't error on `%foo` with no trailing newline.
2921 * Org reader:
2923 + Support code block headers (`#+BEGIN_SRC ...`) (Albert Krewinkel).
2924 + Fix parsing of blank lines within blocks (Albert Krewinkel).
2925 + Support pandoc citation extension (Albert Krewinkel). This can
2926 be turned off by specifying `org-citations` as the input format.
2928 * Markdown reader:
2930 + `citeKey` moved to `Text.Pandoc.Parsing` so it can be used by
2931 other readers (Albert Krewinkel).
2933 * `Text.Pandoc.Parsing`:
2935 + Added `citeKey` (see above).
2936 + Added `HasLastStrPosition` type class and `updateLastStrPos`
2937 and `notAfterString` functions.
2939 * Updated copyright notices (Albert Krewinkel).
2941 * Added default.icml to data files so it installs with the package.
2943 * OSX package:
2945 + The binary is now built with options to ensure that it can be
2946 used with OSX 10.6+.
2947 + Moved OSX package materials to osx directory.
2948 + Added OSX package uninstall script, included in the zip container
2949 (thanks to Daniel T. Staal).
2951pandoc (1.12.4)
2953 * Made it possible to run filters that aren't executable (#1096).
2954 Pandoc first tries to find the executable (searching the path
2955 if path isn't given). If it fails, but the file exists and has
2956 a `.py`, `.pl`, `.rb`, `.hs`, or `.php` extension, pandoc runs the filter
2957 using the appropriate interpreter. This should make it easier to
2958 use filters on Windows, and make it more convenient for everyone.
2960 * Added Emacs org-mode reader (Albert Krewinkel).
2962 * Added InDesign ICML Writer (Mauro Bieg).
2964 * MediaWiki reader:
2966 + Accept image links in more languages (Jaime Marquínez Ferrándiz).
2967 + Fixed bug in certain nested lists (#1213). If a level 2 list was
2968 followed by a level 1 list, the first item of the level 1 list
2969 would be lost.
2970 + Handle table rows containing just an HTML comment (#1230).
2972 * LaTeX reader:
2974 + Give better location information on errors, pointing to line
2975 numbers within included files (#1274).
2976 + LaTeX reader: Better handling of `table` environment (#1204).
2977 Positioning options no longer rendered verbatim.
2978 + Better handling of figure and table with caption (#1204).
2979 + Handle `@{}` and `p{length}` in tabular. The length is not actually
2980 recorded, but at least we get a table (#1180).
2981 + Properly handle `\nocite`. It now adds a `nocite` metadata
2982 field. Citations there will appear in the bibliography but not
2983 in the text (unless you explicitly put a `$nocite$` variable
2984 in your template).
2986 * Markdown reader:
2988 + Ensure that whole numbers in YAML metadata are rendered without
2989 decimal points. (This became necessary with changes to aeson
2990 and yaml libraries. aeson >= 0.7 and yaml >= 0.8.8.2 are now required.)
2991 + Fixed regression on line breaks in strict mode (#1203).
2992 + Small efficiency improvements.
2993 + Improved parsing of nested `div`s. Formerly a closing `div` tag
2994 would be missed if it came right after other block-level tags.
2995 + Avoid backtracking when closing `</div>` not found.
2996 + Fixed bug in reference link parsing in `markdown_mmd`.
2997 + Fixed a bug in list parsing (#1154). When reading a raw list
2998 item, we now strip off up to 4 spaces.
2999 + Fixed parsing of empty reference link definitions (#1186).
3000 + Made one-column pipe tables work (#1218).
3002 * Textile reader:
3004 + Better support for attributes. Instead of being ignored, attributes
3005 are now parsed and included in Span inlines. The output will be a bit
3006 different from stock textile: e.g. for `*(foo)hi*`, we'll get
3007 `<em><span class="foo">hi</span></em>` instead of
3008 `<em class="foo">hi</em>`. But at least the data is not lost.
3009 + Improved treatment of HTML spans (%) (#1115).
3010 + Improved link parsing. In particular we now pick up on attributes.
3011 Since pandoc links can't have attributes, we enclose the whole link in
3012 a span if there are attributes (#1008).
3013 + Implemented correct parsing rules for inline markup (#1175, Matthew
3014 Pickering).
3015 + Use Builder (Matthew Pickering).
3016 + Fixed list parsing bug (#1500).
3017 + Don't allow inline formatting to extend over newlines.
3018 This matches the behavior of RedCarpet, avoids some ugly bugs,
3019 and improves performance.
3021 * DocBook reader:
3023 + Better treatment of `formalpara`. We now emit the title (if present)
3024 as a separate paragraph with boldface text (#1215).
3025 + Set metadata `author` not `authors`.
3026 + Added recognition of `authorgroup` and `releaseinfo` elements (#1214,
3027 Matthew Pickering).
3028 + Converted current meta information parsing in DocBook to a more
3029 extensible version which is aware of the more recent meta
3030 representation (Matthew Pickering).
3032 * HTML reader:
3034 + Require tagsoup 0.13.1, to fix a bug with parsing of script tags
3035 (#1248).
3036 + Treat processing instructions & declarations as block. Previously
3037 these were treated as inline, and included in paragraph tags in HTML
3038 or DocBook output, which is generally not what is wanted (#1233).
3039 + Updated `closes` with rules from HTML5 spec.
3040 + Use Builder (Matthew Pickering, #1162).
3042 * RST reader:
3044 + Remove duplicate `http` in PEP links (Albert Krewinkel).
3045 + Make rst figures true figures (#1168, CasperVector)
3046 + Enhanced Pandoc's support for rST roles (Merijn Verstaaten).
3047 rST parser now supports: all built-in rST roles, new role definition,
3048 role inheritance, though with some limitations.
3049 + Use `author` rather than `authors` in metadata.
3050 + Better handling of directives. We now correctly handle field
3051 lists that are indented more than three spaces. We treat an
3052 `aafig` directive as a code block with attributes, so it can be
3053 processed in a filter (#1212).
3055 * LaTeX writer:
3057 + Mark span contents with label if span has an ID (Albert Krewinkel).
3058 + Made `--toc-depth` work well with books in latex/pdf output (#1210).
3059 + Handle line breaks in simple table cells (#1217).
3060 + Workaround for level 4-5 headers in quotes. These previously produced
3061 invalid LaTeX: `\paragraph` or `\subparagraph` in a `quote` environment.
3062 This adds an `mbox{}` in these contexts to work around the problem.
3063 See <http://tex.stackexchange.com/a/169833/22451> (#1221).
3064 + Use `\/` to avoid en-dash ligature instead of `-{}-` (Vaclav Zeman).
3065 This is to fix LuaLaTeX output. The `-{}-` sequence does not avoid the
3066 ligature with LuaLaTeX but `\/` does.
3067 + Fixed string escaping in `hyperref` and `hyperdef` (#1130).
3069 * ConTeXt writer: Improved autolinks (#1270).
3071 * DocBook writer:
3073 + Improve handling of hard line breaks in Docbook writer
3074 (Neil Mayhew). Use a `<literallayout>` for the entire paragraph, not
3075 just for the newline character.
3076 + Don't let line breaks inside footnotes influence the enclosing
3077 paragraph (Neil Mayhew).
3078 + Distinguish tight and loose lists in DocBook output, using
3079 `spacing="compact"` (Neil Mayhew, #1250).
3081 * Docx writer: When needed files are not present in the user's
3082 `reference.docx`, fall back on the versions in the `reference.docx`
3083 in pandoc's data files. This fixes a bug that occurs when a
3084 `reference.docx` saved by LibreOffice is used. (#1185)
3086 * EPUB writer:
3088 + Include extension in epub ids. This fixes a problem with duplicate
3089 extensions for fonts and images with the same base name but different
3090 extensions (#1254).
3091 + Handle files linked in raw `img` tags (#1170).
3092 + Handle media in `audio` source tags (#1170).
3093 Note that we now use a `media` directory rather than `images`.
3094 + Incorporate files linked in `video` tags (#1170). `src` and `poster`
3095 will both be incorporated into `content.opf` and the epub container.
3097 * HTML writer:
3099 + Add colgroup around col tags (#877). Also affects EPUB writer.
3100 + Fixed bug with unnumbered section headings. Unnumbered section
3101 headings (with class `unnumbered`) were getting numbers.
3102 + Improved detection of image links. Previously image links with
3103 queries were not recognized, causing `<embed>` to be used instead
3104 of `<img>`.
3106 * Man writer: Ensure that terms in definition lists aren't line wrapped
3107 (#1195).
3109 * Markdown writer:
3111 + Use proper escapes to avoid unwanted lists (#980). Previously we used
3112 0-width spaces, an ugly hack.
3113 + Use longer backtick fences if needed (#1206). If the content contains a
3114 backtick fence and there are attributes, make sure longer fences are
3115 used to delimit the code. Note: This works well in pandoc, but github
3116 markdown is more limited, and will interpret the first string of three
3117 or more backticks as ending the code block.
3119 * RST writer: Avoid stack overflow with certain tables (#1197).
3121 * RTF writer: Fixed table cells containing paragraphs.
3123 * Custom writer:
3125 + Correctly handle UTF-8 in custom lua scripts (#1189).
3126 + Fix bugs with lua scripts with mixed-case filenames and
3127 paths containing `+` or `-` (#1267). Note that `getWriter`
3128 in `Text.Pandoc` no longer returns a custom writer on input
3129 `foo.lua`.
3131 * AsciiDoc writer: Handle multiblock and empty table cells
3132 (#1245, #1246). Added tests.
3134 * `Text.Pandoc.Options`: Added `readerTrace` to `ReaderOptions`
3136 * `Text.Pandoc.Shared`:
3138 + Added `compactify'DL` (formerly in markdown reader) (Albert Krewinkel).
3139 + Fixed bug in `toRomanNumeral`: numbers ending with '9' would
3140 be rendered as Roman numerals ending with 'IXIV' (#1249). Thanks to
3141 Jesse Rosenthal.
3142 + `openURL`: set proxy with value of http_proxy env variable (#1211).
3143 Note: proxies with non-root paths are not supported, due to
3144 limitations in `http-conduit`.
3146 * `Text.Pandoc.PDF`:
3148 + Ensure that temp directories deleted on Windows (#1192). The PDF is
3149 now read as a strict bytestring, ensuring that process ownership will
3150 be terminated, so the temp directory can be deleted.
3151 + Use `/` as path separators in a few places, even on Windows.
3152 This seems to be necessary for texlive (#1151, thanks to Tim Lin).
3153 + Use `;` for `TEXINPUTS` separator on Windows (#1151).
3154 + Changes to error reporting, to handle non-UTF8 error output.
3156 * `Text.Pandoc.Templates`:
3158 + Removed unneeded datatype context (Merijn Verstraaten).
3160 + YAML objects resolve to "true" in conditionals (#1133).
3161 Note: If `address` is a YAML object and you just have `$address$`
3162 in your template, the word `true` will appear, which may be
3163 unexpected. (Previously nothing would appear.)
3165 * `Text.Pandoc.SelfContained`:
3167 + `mkSelfContained` now takes just two arguments, `WriterOptions` and
3168 the string.
3169 * It no longer looks in data files. This only made sense when we
3170 had copies of slidy and S5 code there.
3171 * `fetchItem'` is used instead of the nearly duplicate `getItem`.
3172 + Handle `poster` attribute in `video` tags (#1188).
3174 * `Text.Pandoc.Parsing`:
3176 + Made `F` an instance of Applicative (#1138).
3177 + Added `stateCaption`.
3178 + Added `HasMacros`, simplified other typeclasses.
3179 Removed `updateHeaderMap`, `setHeaderMap`, `getHeaderMap`,
3180 `updateIdentifierList`, `setIdentifierList`, `getIdentifierList`.
3181 + Changed the smart punctuation parser to return `Inlines`
3182 rather than `Inline` (Matthew Pickering).
3183 + Changed `HasReaderOptions`, `HasHeaderMap`, `HasIdentifierList`
3184 from typeclasses of monads to typeclasses of states. This simplifies
3185 the instance definitions and provides more flexibility. Generalized
3186 type of `getOption` and added a default definition. Removed
3187 `askReaderOption`. Added `extractReaderOption`. Added
3188 `extractHeaderMap` and `updateHeaderMap` in `HasHeaderMap`.
3189 Gave default definitions for `getHeaderMap`, `putHeaderMap`,
3190 `modifyHeaderMap`. Added `extractIdentifierList` and
3191 `updateIdentifierList` in `HasIdentifierList`. Gave defaults
3192 for `getIdentifierList`, `putIdentifierList`, and
3193 `modifyIdentifierList`. The ultimate goal here is to allow different
3194 parsers to use their own, tailored parser states (instead of
3195 `ParserState`) while still using shared functions.
3197 * Template changes:
3199 + LaTeX template: Use `fontenc` package only with `pdflatex` (#1164).
3200 + LaTeX template: Add `linestretch` and `fontfamily` variables.
3201 + LaTeX template: Conditionalize author and date commands.
3202 + Beamer template: Consistent styles for figure and table captions
3203 (aaronwolen).
3204 + LaTeX and beamer template: Adjust widths correctly for oversized
3205 images. Use `\setkeys{Gin}{}` to set appropriate defaults for
3206 `\includegraphics` (Yihui Xie, Garrick Aden-Buie). Load
3207 `upquote` only after `fontenc` (Yihui Xie).
3208 + Beamer template: Added caption package (#1200).
3209 + Beamer template: changes for better unicode handling (KarolS).
3210 + DocBook template: use `authorgroup` if there are authors.
3211 + revealjs template: Move `include-after` to end (certainlyakey).
3212 + revealjs template: Fixed PDF print function (#1220, kevinkenan).
3214 * Bumped version bounds of dependencies.
3216 * Added a `--trace` command line option, for debugging backtracking
3217 bugs. So far this only works with the markdown reader.
3219 * MathMLinHTML: Fixed deprecation warning (#362, gwern, Albert Krewinkel).
3221 * Updated travis script to test with multiple GHC versions.
3223 * Force failure of a Travis build if GHC produces warnings (Albert
3224 Krewinkel).
3226 * Add `.editorconfig` (Albert Krewinkel).
3227 See <http://editorconfig.org/> for details.
3229 * Give more useful error message if '-t pdf' is specified (#1155).
3231 * Added `Cite`, `SmallCaps` to `Arbitrary` instance (#1269).
3233 * Allow `html4` as a synonym of `html` as a reader (it already works
3234 as a writer).
3236 * README:
3238 + Added an explanation of how to use YAML metadata to
3239 force items to appear in the bibliography without citations in
3240 the text (like LaTeX `\nocite`).
3241 + Added note to `--bibtex/--natbib`: not for use in making PDF
3242 (#1194, thanks to nahoj).
3243 + Added explanatory notes about `--natbib` and `--biblatex`.
3244 + Added specification of legal syntax for citation keys.
3245 + Fixed variable defaults documentation (Albert Krewinkel).
3247 * Removed copyright statements for files that have been removed
3248 (Albert Krewinkel).
3250 * Moved some doc files from `data-files` to `extra-source-files` (#1123).
3251 They aren't needed at runtime. We keep README and COPYRIGHT in data
3252 to ensure that they'll be available on all systems on which pandoc
3253 is installed.
3255 * Use cabal sandboxes in Windows build script.
3257pandoc (1.12.3.3)
3259 * To changes to source; recompiled tarball with latest alex and
3260 happy, so they will work with GHC 7.8.
3262pandoc (1.12.3.2)
3264 * Bumped version bounds for blaze-html, blaze-markup.
3266 * ImageSize: Avoid use of lookAhead, which is not in binary >= 0.6
3267 (#1124).
3269 * Fixed mediawiki ordered list parsing (#1122).
3271 * HTML reader: Fixed bug reading inline math with `$$` (#225).
3273 * Added support for LaTeX style literate Haskell code blocks in rST
3274 (Merijn Verstraaten).
3276pandoc (1.12.3.1)
3278 * Relaxed version constraint on binary, allowing the use of binary 0.5.
3280pandoc (1.12.3)
3282 * The `--bibliography` option now sets the `biblio-files` variable.
3283 So, if you're using `--natbib` or `--biblatex`, you can just use
3284 `--bibliography=foo.bib` instead of `-V bibliofiles=foo`.
3286 * Don't run pandoc-citeproc filter if `--bibliography` is
3287 used together with `--natbib` or `--biblatex` (Florian Eitel).
3289 * Template changes:
3291 + Updated beamer template to include booktabs.
3292 + Added `abstract` variable to LaTeX template.
3293 + Put `header-includes` after `title` in LaTeX template (#908).
3294 + Allow use of `\includegraphics[size]` in beamer.
3295 This just required porting a macro definition from the default
3296 LaTeX template to the default beamer template.
3298 * `reference.docx`: Include `FootnoteText` style.
3299 Otherwise Word ignores the style, even when specified in the `pPr`.
3300 (#901)
3302 * `reference.odt`: Tidied `styles.xml`.
3304 * Relaxed version bounds for dependencies.
3306 * Added `withSocketsDo` around http conduit code in `openURL`,
3307 so it works on Windows (#1080).
3309 * Added `Cite` function to `sample.lua`.
3311 * Markdown reader:
3313 + Fixed regression in title blocks (#1089).
3314 If author field was empty, date was being ignored.
3315 + Allow backslash-newline hard line breaks in grid and
3316 multiline table cells.
3317 + Citation keys may now start with underscores, and may contain
3318 underscores adjacent to internal punctuation.
3320 * LaTeX reader:
3322 + Add support for `Verb` macro (jrnold) (#1090).
3323 + Support babel-style quoting: `` "`..."' ``.
3325 * Properly handle script blocks in strict mode. (That is,
3326 `markdown-markdown_in_html_blocks`.) Previously a spurious
3327 `<p>` tag was being added (#1093).
3329 * Docbook reader: Avoid failure if `tbody` contains no `tr` or `row`
3330 elements.
3332 * LaTeX writer:
3334 + Factored out function for table cell creation.
3335 + Better treatment of footnotes in tables.
3336 Notes now appear in the regular sequence, rather than in the
3337 table cell. (This was a regression in 1.10.)
3339 * HTML reader: Parse name/content pairs from meta tags as metadata.
3340 Closes #1106.
3342 * Moved `fixDisplayMath` from Docx writer to `Writer.Shared`.
3344 * OpenDocument writer: Fixed `RawInline`, `RawBlock` so they don't escape.
3346 * ODT writer: Use mathml for proper rendering of formulas.
3347 Note: LibreOffice's support for this seems a bit buggy. But
3348 it should be better than what we had before.
3350 * RST writer: Ensure no blank line after def in definition list (#992).
3352 * Markdown writer: Don't use tilde code blocks with braced attributes in
3353 `markdown_github` output. A consequence of this change is that the
3354 backtick form will be preferred in general if both are enabled. That
3355 is good, as it is much more widespread than the tilde form. (#1084)
3357 * Docx writer: Fixed problem with some modified reference docx files.
3358 Include `word/_rels/settings.xml.rels` if it exists, as well as other
3359 `rels` files besides the ones pandoc generates explicitly.
3361 * HTML writer:
3363 + With `--toc`, headers no longer link to themselves (#1081).
3364 + Omit footnotes from TOC entries. Otherwise we get doubled
3365 footnotes when headers have notes!
3367 * EPUB writer:
3369 + Avoid duplicate notes when headings contain notes.
3370 This arose because the headings are copied into the metadata
3371 "title" field, and the note gets rendered twice. We strip the
3372 note now before putting the heading in "title".
3373 + Strip out footnotes from toc entries.
3374 + Fixed bug with `--epub-stylesheet`. Now the contents of
3375 `writerEpubStylesheet` (set by `--epub-stylesheet`)
3376 should again work, and take precedence over a stylesheet specified
3377 in the metadata.
3379 * `Text.Pandoc.MIME`: Added `wmf`, `emf`.
3381 * `Text.Pandoc.Shared`: `fetchItem` now handles image URLs beginning
3382 with `//`.
3384 * `Text.Pandoc.ImageSize`: Parse EXIF format JPEGs. Previously
3385 we could only get size information for JFIF format, which led
3386 to squished images in Word documents. Closes #976.
3388 * Removed old `MarkdownTest_1.0.3` directory (#1104).
3390pandoc (1.12.2.1)
3392 * Markdown reader: Fixed regression in list parser, involving
3393 continuation lines containing raw HTML (or even verbatim raw HTML).
3395pandoc (1.12.2)
3397 * Metadata may now be included in YAML blocks in a markdown document.
3398 For example,
3400 ---
3401 title:
3402 - type: main
3403 text: My Book
3404 - type: subtitle
3405 text: An investigation of metadata
3406 creator:
3407 - role: author
3408 text: John Smith
3409 - role: editor
3410 text: Sarah Jones
3411 identifier:
3412 - scheme: DOI
3413 text: doi:10.234234.234/33
3414 publisher: My Press
3415 rights: (c) 2007 John Smith, CC BY-NC
3416 cover-image: img/mypic.jpg
3417 ...
3419 Metadata may still be provided using `--epub-metadata`; it will
3420 be merged with the metadata in YAML blocks.
3422 * EPUB writer:
3424 + `meta` tags are now used instead of `opf` attributes for EPUB3.
3425 + Insert "svg" property as needed in opf (EPUB 3).
3426 + Simplify `imageTypeOf` using `getMimeType`.
3427 + Add properties attribute to `cover-image` item for EPUB 3.
3428 + Don't include node for `cover.xhtml` if no cover!
3429 + Ensure that same identifier is used throughout (#1044).
3430 If an identifier is given in metadata, we use that; otherwise
3431 we generate a random uuid.
3432 + Add cover reference to guide element (EPUB 2) (Shaun Attfield).
3433 Fixes an issue with Calibre putting the cover at the end of the book
3434 if the spine has `linear="no"`. Apparently this is best practice
3435 for other converters as well:
3436 <http://www.idpf.org/epub/20/spec/OPF_2.0.1_draft.htm#Section2.6>.
3437 + Allow `stylesheet` in metadata. The value is a path to the stylesheet.
3438 + Allow partial dates: `YYYY`, `YYYY-MM`.
3440 * Markdown writer: Fix rendering of tight sublists (#1050).
3441 Previously a spurious blank line was included after a tight sublist.
3443 * ODT writer: Add `draw:name` attribute to `draw:frame` elements (#1069).
3444 This is reported to be necessary to avoid an error from recent
3445 versions of Libre Office when files contain more than one image
3446 Thanks to wmanley for reporting and diagnosing the problem.
3448 * ConTeXt writer: Don't hardcode figure/table placement and numbering.
3449 Instead, let this be set in the template, using `\setupfloat`.
3450 Thanks to on4aa and Aditya Mahajan for the suggestion (#1067).
3452 * Implemented CSL flipflopping spans in DOCX, LaTeX, and HTML writers.
3454 * Fixed bug with markdown intraword emphasis. Closes #1066.
3456 * Docbook writer: Hierarchicalize block content in metadata.
3457 Previously headers just disappeared from block-level metadata
3458 when it was used in templates. Now we apply the 'hierarchicalize'
3459 transformation. Note that a block headed by a level-2 header will
3460 turn into a `<sect1>` element.
3462 * OpenDocument writer: Skip raw HTML (#1035).
3463 Previously it was erroneously included as verbatim text.
3465 * HTML/EPUB writer, footnotes: Put `<sup>` tag inside `<a>` tags.
3466 This allows better control of formatting, since the `<a>`
3467 tags have a distinguishing class (#1049).
3469 * Docx writer:
3471 + Use mime type info returned by fetchItem.
3472 + Fixed core metadata (#1046).
3473 Don't create empty date nodes if no date given.
3474 Don't create multiple `dc:creator` nodes; instead separate by
3475 semicolons.
3476 + Fix URL for core-properties in `_rels/.rels` (#1046).
3478 * Plain writer: don't print `<span>` tags.
3480 * LaTeX writer:
3482 + Fix definition lists with internal links in terms (#1032).
3483 This fix puts braces around a term that contains an internal
3484 link, to avoid problems with square brackets.
3485 + Properly escape pdftitle, pdfauthor (#1059).
3486 + Use booktabs package for tables (thanks to Jose Luis Duran).
3488 * Updated beamer template. Now references should work properly
3489 (in a slide) when `--biblatex` or `--natbib` is used.
3491 * LaTeX reader:
3493 + Parse contents of curly quotes or matched `"` as quotes.
3494 + Support `\textnormal` as span with class `nodecor`.
3495 This is needed for pandoc-citeproc.
3496 + Improved citation parsing. This fixes a run-time error that occured
3497 with `\citet{}` (empty list of keys). It also ensures that empty keys
3498 don't get produced.
3500 * MediaWiki reader: Add automatic header identifiers.
3502 * HTML reader:
3504 + Use pandoc `Div` and `Span` for raw `<div>`, `<span>` when
3505 `--parse-raw`.
3506 + Recognize `svg` tags as block level content (thanks to MinRK).
3507 + Parse LaTeX math if appropriate options are set.
3509 * Markdown reader:
3511 + Yaml block must start immediately after `---`. If there's a blank
3512 line after `---`, we interpreted it as a horizontal rule.
3513 + Correctly handle empty bullet list items.
3514 + Stop parsing "list lines" when we hit a block tag.
3515 This fixes exponential slowdown in certain input, e.g.
3516 a series of lists followed by `</div>`.
3518 * Slides: Preserve `<div class="references">` in references slide.
3520 * `Text.Pandoc.Writer.Shared`:
3522 + Fixed bug in `tagWithAttrs`. A space was omitted before key-value
3523 attributes, leading to invalid HTML.
3524 + `normalizeDate`: Allow dates with year only (thanks to Shaun Attfield).
3525 + Fixed bug in `openURL` with `data:` URIs. Previously the base-64
3526 encoded bytestring was returned. We now decode it so it's a proper
3527 image!
3529 * DocBook reader: Handle numerical attributes starting with decimal.
3530 Also use `safeRead` instead of `read`.
3532 * `Text.Pandoc.Readers.TexMath`: Export `readTeXMath'`, which attends
3533 to display/inline. Deprecate `readTeXMath`, and use `readTeXMath'`
3534 in all the writers. Require `texmath >= 0.6.5.2`.
3536 * `Text.Pandoc.MIME`:
3538 + Add entry for `jfif`.
3539 + In looking up extensions, drop the encoding info.
3540 E.g. for 'image/jpg;base64' we should lookup 'image/jpg'.
3542 * Templates: Changed how array variables are resolved. Previously if
3543 `foo` is an array (which might be because multiple values were set on
3544 the command line), `$foo$` would resolve to the concatenation of the
3545 elements of foo. This is rarely useful behavior. It has been changed
3546 so that the first value is rendered. Of course, you can still iterate
3547 over the values using `$for(foo)$`. This has the result that you can
3548 override earlier settings using `-V` by putting new values later on the
3549 command line, which is useful for many purposes.
3551 * `Text.Pandoc`: Don't default to `pandocExtensions` for all writers.
3553 * Allow "epub2" as synonym for "epub", "html4" for "html".
3555 * Don't look for slidy files in data files with `--self-contained`.
3557 * Allow `https:` command line arguments to be downloaded.
3559 * Fixed `make_osx_package.sh` so data files embedded in `pandoc-citeproc`.
3561pandoc (1.12.1)
3563 * `Text.Pandoc.Definition`: Changed default JSON serialization format.
3564 Instead of `{"Str": "foo"}`, for example, we now have `{"t": "Str",
3565 "c": "foo"}`. This new format is easier to work with outside of Haskell.
3566 Incidentally, "t" stands for "tag", "c" for "contents".
3568 * MediaWiki reader: Trim contents of `<math>` tags, to avoid problems
3569 when converting to markdown (#1027).
3571 * LaTeX reader:
3573 + Ensure that preamble doesn't contribute to the text of
3574 the document.
3575 + Fixed character escaping in \url{}. Previously `\~` wasn't handled
3576 properly, among others.
3577 + Parse `{groups}` as `Span`. This is needed for accurate conversion of
3578 bibtex titles, since we need to know what was protected from
3579 titlecase conversions.
3581 * LaTeX writer:
3583 + Specially escape non-ascii characters in labels.
3584 Otherwise we can get compile errors and other bugs when
3585 compiled with pdflatex (#1007). Thanks to begemotv2718 for the fix.
3586 + Add link anchors for code blocks with identifiers (#1025).
3588 * Throughout the code, use `isURI` instead of `isAbsoluteURI`.
3589 It allows fragments identifiers.
3591 * Slide formats:
3593 + A Div element with class "notes" is treated as speaker
3594 notes. Currently beamer goes to `\note{}`, revealjs to
3595 `<aside class="notes">`, and the notes are simply suppressed in
3596 other formats (#925).
3597 + Fixed `. . .` (pause) on HTML slide formats. Closes #1029.
3598 The old version caused a pause to be inserted before the first
3599 material on a slide. This has been fixed.
3600 + Removed data files for s5, slideous, slidy.
3601 Users of s5 and slideous will have to download the needed
3602 files, as has been documented for some time in the README.
3603 By default, slidy code will be sought on the web, as before.
3605 * HTML writer: Insert command to typeset mathjax only in slideous output
3606 (#966, #1012).
3608 * RST writer: Skip spaces after display math. Otherwise we get indentation
3609 problems, and part of the next paragraph may be rendered as part of the
3610 math.
3612 * OpenDocument writer: Fix formatting of strikeout code (#995),
3613 thanks to wilx. don't use `font-face-decls` variable.
3615 * Fixed test suite so it works with cabal sandboxes.
3617pandoc (1.12.0.2)
3619 * Removed `stringable` dependency.
3621pandoc (1.12.0.1)
3623 * Allow `--metadata` to be repeated for the same key to form a list.
3624 This also has the effect that `--bibliography` can be repeated,
3625 as before.
3627 * Handle boolean values in `--metadata`. Note that anything not parseable
3628 as a YAML boolean or string is treated as a literal string.
3629 You can get a string value with "yes", or any of the strings interpretable
3630 as booleans, by quoting it:
3632 -M boolvalue=yes -M stringvalue='"yes"'
3634 * LaTeX writer: Don't print references if `--natbib` or `--biblatex`
3635 option used.
3637 * DOCX writer: Add `settings.xml` to the zip container. Fixes a bug
3638 in which docx files could not be read by some versions of Word
3639 and LibreOffice (#990).
3641 * Fixed a regression involving slide shows with bibliographies.
3642 The Div container around references messed up the procedure for carving
3643 a document into slides. So we now remove the surrounding Div in
3644 `prepSlides`.
3646 * More informative error message when a filter is not found in path.
3648 * Depend on pandoc-types 1.12.1. This provide `ToJSONFilter`
3649 instances for `Data a => a -> [a]` and `Data a => a -> IO [a]`.
3651 * Don't use unicode_collation in building OSX package:
3652 it adds something like 50MB of dependencies to the package.
3654 * Declare alex and happy as build-tools (#986).
3656pandoc (1.12)
3658 [new features]
3660 * Much more flexible metadata, including arbitrary fields and structured
3661 values. Metadata can be specified flexibly in pandoc markdown using
3662 YAML metadata blocks, which may occur anywhere in the document:
3664 ---
3665 title: Here is my title.
3666 abstract: |
3667 This is the abstract.
3669 1. It can contain
3670 2. block content
3671 and *inline markup*
3673 tags: [cat, dog, animal]
3674 ...
3676 Metadata fields automatically populate template variables.
3678 * Added `opml` (OPML) as input and output format. The `_note` attribute,
3679 used in OmniOutliner and supported by multimarkdown, is supported.
3680 We treat the contents as markdown blocks under a section header.
3682 * Added `haddock` (Haddock markup) as input format (David Lazar).
3684 * Added `revealjs` output format, for reveal.js HTML 5 slide shows.
3685 (Thanks to Jamie F. Olson for the initial patch.)
3686 Nested vertical stacks are used for hierarchical structure.
3687 Results for more than one level of nesting may be odd.
3689 * Custom writers can now be written in lua.
3691 pandoc -t data/sample.lua
3693 will load the script sample.lua and use it as a custom writer.
3694 (For a sample, do `pandoc --print-default-data-file sample.lua`.)
3695 Note that pandoc embeds a lua interpreter, so lua need not be
3696 installed separately.
3698 * New `--filter/-F` option to make it easier to run "filters"
3699 (Pandoc AST transformations that operate on JSON serializations).
3700 Filters are always passed the name of the output format, so their
3701 behavior can be tailored to it. The repository
3702 <https://github.com/jgm/pandocfilters> contains
3703 a python module for writing pandoc filters in python, with
3704 a number of examples.
3706 * Added `--metadata/-M` option.
3707 This is like `--variable/-V`, but actually adds to metadata, not
3708 just variables.
3710 * Added `--print-default-data-file` option, which allows printing
3711 of any of pandoc's data files. (For example,
3712 `pandoc --print-default-data-file reference.odt` will print
3713 `reference.odt`.)
3715 * Added syntax for "pauses" in slide shows:
3717 This gives
3719 . . .
3721 me pause.
3723 * New markdown extensions:
3725 + `ignore_line_breaks`: causes intra-paragraph line breaks to be ignored,
3726 rather than being treated as hard line breaks or spaces. This is useful
3727 for some East Asian languages, where spaces aren't used between words,
3728 but text is separated into lines for readability.
3729 + `yaml_metadata_block`: Parse YAML metadata blocks. (Default.)
3730 + `ascii_identifiers`: This will force `auto_identifiers` to use ASCII
3731 only. (Default for `markdown_github`.) (#807)
3732 + `lists_without_preceding_blankline`: Allow lists to start without
3733 preceding blank space. (Default for `markdown_github`.) (#972)
3735 [behavior changes]
3737 * `--toc-level` no longer implies `--toc`.
3738 Reason: EPUB users who don't want a visible TOC may still want
3739 to set the TOC level for in the book navigation.
3741 * `--help` now prints in and out formats in alphabetical order, and
3742 says something about PDF output (#720).
3744 * `--self-contained` now returns less verbose output (telling you
3745 which URLs it is fetching, but not giving the full header). In
3746 addition, there are better error messages when fetching a URL fails.
3748 * Citation support is no longer baked in to core pandoc. Users who
3749 need citations will need to install and use a separate filter
3750 (`--filter pandoc-citeproc`). This filter will take `bibliography`,
3751 `csl`, and `citation-abbreviations` from the metadata, though it
3752 may still be specified on the command line as before.
3754 * A `Cite` element is now created in parsing markdown whether or not
3755 there is a matching reference.
3757 * The `pandoc-citeproc` script will put the bibliography at the
3758 end of the document, as before. However, it will be put inside a `Div`
3759 element with class "references", allowing users some control
3760 over the styling of references. A final header, if any, will
3761 be included in the `Div`.
3763 * The markdown writer will not print a bibliography if the
3764 `citations` extension is enabled. (If the citations are formatted
3765 as markdown citations, it is redundant to have a bibliography,
3766 since one will be generated automatically.)
3768 * Previously we used to store the directory of the first input file,
3769 even if it was local, and used this as a base directory for finding
3770 images in ODT, EPUB, Docx, and PDF. This has been confusing to many
3771 users. So we now look for images relative to the current
3772 working directory, even if the first file argument is in another
3773 directory. Note that this change may break some existing workflows.
3774 If you have been assuming that relative links will be interpreted
3775 relative to the directory of the first file argument, you'll need
3776 to make that the current directory before running pandoc. (#942)
3778 * Better error reporting in some readers, due to changes in `readWith`:
3779 the line in which the error occured is printed, with a caret pointing
3780 to the column.
3782 * All slide formats now support incremental slide view for definition lists.
3784 * Parse `\(..\)` and `\[..\]` as math in MediaWiki reader.
3785 Parse `:<math>...</math>` as display math. These notations are used with
3786 the MathJax MediaWiki extension.
3788 * All writers: template variables are set automatically from metadata
3789 fields. However, variables specified on the command line with
3790 `--variable` will completely shadow metadata fields.
3792 * If `--variable` is used to set many variables with the same name,
3793 a list is created.
3795 * Man writer: The `title`, `section`, `header`, and `footer` can now
3796 all be set individually in metadata. The `description` variable has been
3797 removed. Quotes have been added so that spaces are allowed in the
3798 title. If you have a title that begins
3800 COMMAND(1) footer here | header here
3802 pandoc will still parse it into a title, section, header, and
3803 footer. But you can also specify these elements explicitly (#885).
3805 * Markdown reader
3807 + Added support for YAML metadata blocks, which can come anywhere
3808 in the document (not just at the beginning). A document can contain
3809 multiple YAML metadata blocks.
3810 + HTML span and div tags are parsed as pandoc Span and Div elements.
3812 * Markdown writer
3814 + Allow simple tables to be printed as grid tables,
3815 if other table options are disabled. This means you can do
3816 `pandoc -t markdown-pipe_tables-simple_tables-multiline_tables`
3817 and all tables will render as grid tables.
3818 + Support YAML title block (render fields in alphabetical order
3819 to make output predictable).
3821 [API changes]
3823 * `Meta` in `Text.Pandoc.Definition` has been changed to allow
3824 structured metadata. (Note: existing code that pattern-matches
3825 on `Meta` will have to be revised.) Metadata can now contain
3826 indefinitely many fields, with content that can be a string,
3827 a Boolean, a list of `Inline` elements, a list of `Block`
3828 elements, or a map or list of these.
3830 * A new generic block container (`Div`) has been added to `Block`,
3831 and a generic inline container (`Span`) has been added to `Inline`.
3832 These can take attributes. They will render in HTML, Textile,
3833 MediaWiki, Org, RST and and Markdown (with `markdown_in_html`
3834 extension) as HTML `<div>` and `<span>` elements; in other formats
3835 they will simply pass through their contents. But they can be
3836 targeted by scripts.
3838 * `Format` is now a newtype, not an alias for String.
3839 Equality comparisons are case-insensitive.
3841 * Added `Text.Pandoc.Walk`, which exports hand-written tree-walking
3842 functions that are much faster than the SYB functions from
3843 `Text.Pandoc.Generic`. These functions are now used where possible
3844 in pandoc's code. (`Tests.Walk` verifies that `walk` and `query`
3845 match the generic traversals `bottomUp` and `queryWith`.)
3847 * Added `Text.Pandoc.JSON`, which provides `ToJSON` and `FromJSON`
3848 instances for the basic pandoc types. They use GHC generics and
3849 should be faster than the old JSON serialization using
3850 `Data.Aeson.Generic`.
3852 * Added `Text.Pandoc.Process`, exporting `pipeProcess`.
3853 This is a souped-up version of `readProcessWithErrorcode` that
3854 uses lazy bytestrings instead of strings and allows setting
3855 environment variables. (Used in `Text.Pandoc.PDF`.)
3857 * New module `Text.Pandoc.Readers.OPML`.
3859 * New module `Text.Pandoc.Writers.OPML`.
3861 * New module `Text.Pandoc.Readers.Haddock` (David Lazar).
3862 This is based on Haddock's own lexer/parser.
3864 * New module `Text.Pandoc.Writers.Custom`.
3866 * In `Text.Pandoc.Shared`, `openURL` and `fetchItem` now return an
3867 Either, for better error handling.
3869 * Made `stringify` polymorphic in `Text.Pandoc.Shared`.
3871 * Removed `stripTags` from `Text.Pandoc.XML`.
3873 * `Text.Pandoc.Templates`:
3875 + Simplified `Template` type to a newtype.
3876 + Removed `Empty`.
3877 + Changed type of `renderTemplate`: it now takes a JSON context
3878 and a compiled template.
3879 + Export `compileTemplate`.
3880 + Export `renderTemplate'` that takes a string instead of a compiled
3881 template.
3882 + Export `varListToJSON`.
3884 * `Text.Pandoc.PDF` exports `makePDF` instead of `tex2pdf`.
3886 * `Text.Pandoc`:
3888 + Made `toJsonFilter` an alias for `toJSONFilter` from `Text.Pandoc.JSON`.
3889 + Removed `ToJsonFilter` typeclass. `ToJSONFilter` from
3890 `Text.Pandoc.JSON` should be used instead. (Compiling against
3891 pandoc-types instead of pandoc will also produce smaller executables.)
3892 * Removed the deprecated `jsonFilter` function.
3893 + Added `readJSON`, `writeJSON` to the API (#817).
3895 * `Text.Pandoc.Options`:
3897 + Added `Ext_lists_without_preceding_blankline`,
3898 `Ext_ascii_identifiers`, `Ext_ignore_line_breaks`,
3899 `Ext_yaml_metadataBlock` to `Extension`.
3900 + Changed `writerSourceDirectory` to `writerSourceURL` and changed the
3901 type to a `Maybe`. `writerSourceURL` is set to 'Just url' when the
3902 first command-line argument is an absolute URL. (So, relative links
3903 will be resolved in relation to the first page.) Otherwise, 'Nothing'.
3904 + All bibliography-related fields have been removed from
3905 `ReaderOptions` and `WriterOptions`: `writerBiblioFiles`,
3906 `readerReferences`, `readerCitationStyle`.
3908 * The `Text.Pandoc.Biblio` module has been removed. Users of the
3909 pandoc library who want citation support will need to use
3910 `Text.CSL.Pandoc` from `pandoc-citeproc`.
3913 [bug fixes]
3915 * In markdown, don't autolink a bare URI that is followed by `</a>`
3916 (#937).
3918 * `Text.Pandoc.Shared`
3920 + `openURL` now follows redirects (#701), properly handles `data:`
3921 URIs, and prints diagnostic output to stderr rather than stdout.
3922 + `readDefaultDataFile`: normalize the paths. This fixes bugs in
3923 `--self-contained` on pandoc compiled with `embed_data_files` (#833).
3924 + Fixed `readDefaultDataFile` so it works on Windows.
3925 + Better error messages for `readDefaultDataFile`. Instead of
3926 listing the last path tried, which can confuse people who are
3927 using `--self-contained`, so now we just list the data file name.
3928 + URL-escape pipe characters. Even though these are legal, `Network.URI`
3929 doesn't regard them as legal in URLs. So we escape them first (#535).
3931 * Mathjax in HTML slide shows: include explicit "Typeset" call.
3932 This seems to be needed for some formats (e.g. slideous) and won't
3933 hurt in others (#966).
3935 * `Text.Pandoc.PDF`
3937 + On Windows, create temdir in working directory, since the system
3938 temp directory path may contain tildes, which can cause
3939 problems in LaTeX (#777).
3940 + Put temporary output directory in `TEXINPUTS` (see #917).
3941 + `makePDF` tries to download images that are not found locally,
3942 if the first argument is a URL (#917).
3943 + If compiling with `pdflatex` yields an encoding error, offer
3944 the suggestion to use `--latex-engine=xelatex`.
3946 * Produce automatic header identifiers in parsing textile, RST,
3947 and LaTeX, unless `auto_identifiers` extension is disabled (#967).
3949 * `Text.Pandoc.SelfContained`: Strip off fragment, query of relative URL
3950 before treating as a filename. This fixes `--self-contained` when used
3951 with CSS files that include web fonts using the method described here:
3952 <http://paulirish.com/2009/bulletproof-font-face-implementation-syntax/>
3953 (#739). Handle `src` in `embed`, `audio`, `source`, `input` tags.
3955 * `Text.Pandoc.Parsing`: `uri` parser no longer treats punctuation before
3956 percent-encoding, or a `+` character, as final punctuation.
3958 * `Text.Pandoc.ImageSize`: Handle EPS (#903). This change will make
3959 EPS images properly sized on conversion to Word.
3961 * Slidy: Use slidy.js rather than slidy.js.gz.
3962 Reason: some browsers have trouble with the gzipped js file,
3963 at least on the local file system (#795).
3965 * Markdown reader
3967 + Properly handle blank line at beginning of input (#882).
3968 + Fixed bug in unmatched reference links. The input
3969 `[*infile*] [*outfile*]` was getting improperly parsed:
3970 "infile" was emphasized, but "*outfile*" was literal (#883).
3971 + Allow internal `+` in citation identifiers (#856).
3972 + Allow `.` or `)` after `#` in ATX headers if no `fancy_lists`.
3973 + Do not generate blank title, author, or date metadata elements.
3974 Leave these out entirely if they aren't present.
3975 + Allow backtick code blocks not to be preceded by blank line (#975).
3977 * Textile reader:
3979 + Correctly handle entities.
3980 + Improved handling of `<pre>` blocks (#927). Remove internal HTML tags
3981 in code blocks, rather than printing them verbatim. Parse attributes
3982 on `<pre>` tag for code blocks.
3984 * HTML reader: Handle non-simple tables (#893). Column widths are read from
3985 `col` tags if present, otherwise divided equally.
3987 * LaTeX reader
3989 + Support alltt environment (#892).
3990 + Support `\textasciitilde`, `\textasciicircum` (#810).
3991 + Treat `\textsl` as emphasized text reader (#850).
3992 + Skip positional options after `\begin{figure}`.
3993 + Support `\v{}` for hacek (#926).
3994 + Don't add spurious ", " to citation suffixes.
3995 This is added when needed in pandoc-citeproc.
3996 + Allow spaces in alignment spec in tables, e.g. `{ l r c }`.
3997 + Improved support for accented characters (thanks to Scott Morrison).
3998 + Parse label after section command and set id (#951).
4000 * RST reader:
4002 + Don't insert paragraphs where docutils doesn't.
4003 `rst2html` doesn't add `<p>` tags to list items (even when they are
4004 separated by blank lines) unless there are multiple paragraphs in the
4005 list. This commit changes the RST reader to conform more closely to
4006 what docutils does (#880).
4007 + Improved metadata. Treat initial field list as metadata when
4008 standalone specified. Previously ALL fields "title", "author",
4009 "date" in field lists were treated as metadata, even if not at
4010 the beginning. Use `subtitle` metadata field for subtitle.
4011 + Fixed 'authors' metadata parsing in reST. Semicolons separate
4012 different authors.
4014 * MediaWiki reader
4016 + Allow space before table rows.
4017 + Fixed regression for `<ref>URL</ref>`.
4018 `<` is no longer allowed in URLs, according to the uri parser
4019 in `Text.Pandoc.Parsing`. Added a test case.
4020 + Correctly handle indented preformatted text without preceding
4021 or following blank line.
4022 + Fixed `|` links inside table cells. Improved attribute parsing.
4023 + Skip attributes on table rows. Previously we just crashed if
4024 rows had attributes, now we ignore them.
4025 + Ignore attributes on headers.
4026 + Allow `Image:` for images (#971).
4027 + Parse an image with caption in a paragraph by itself as a figure.
4029 * LaTeX writer
4031 + Don't use ligatures in escaping inline code.
4032 + Fixed footnote numbers in LaTeX/PDF tables. This fixes a bug
4033 wherein notes were numbered incorrectly in tables (#827).
4034 + Always create labels for sections. Previously the labels were only
4035 created when there were links to the section in the document (#871).
4036 + Stop escaping `|` in LaTeX math.
4037 This caused problems with array environments (#891).
4038 + Change `\` to `/` in paths. `/` works even on Windows in LaTeX.
4039 `\` will cause major problems if unescaped.
4040 + Write id for code block to label attribute in LaTeX when listings
4041 is used (thanks to Florian Eitel).
4042 + Scale LaTeX tables so they don't exceed columnwidth.
4043 + Avoid problem with footnotes in unnumbered headers (#940).
4045 * Beamer writer: when creating beamer slides, add `allowframebreaks` option
4046 to the slide if it is one of the header classes. It is recommended
4047 that your bibliography slide have this attribute:
4049 # References {.allowframebreaks}
4051 This causes multiple slides to be created if necessary, depending
4052 on the length of the bibliography.
4054 * ConTeXt writer: Properly handle tables without captions. The old output
4055 only worked in MkII. This should work in MkIV as well (#837).
4057 * MediaWiki writer: Use native mediawiki tables instead of HTML (#720).
4059 * HTML writer:
4061 + Fixed `--no-highlight` (Alexander Kondratskiy).
4062 + Don't convert to lowercase in email obfuscation (#839).
4063 + Ensure proper escaping in `<title>` and `<meta>` fields.
4065 * AsciiDoc writer:
4067 + Support `--atx-headers` (Max Rydahl Andersen).
4068 + Don't print empty identifier blocks `([[]])` on headers (Max
4069 Rydahl Andersen).
4071 * ODT writer:
4073 + Fixing wrong numbered-list indentation in open document format
4074 (Alexander Kondratskiy) (#369).
4075 + `reference.odt`: Added pandoc as "generator" in `meta.xml`.
4076 + Minor changes for ODF 1.2 conformance (#939). We leave the
4077 nonconforming `contextual-spacing` attribute, which is provided by
4078 LibreOffice itself and seems well supported.
4080 * Docx writer:
4082 + Fixed rendering of display math in lists.
4083 In 1.11 and 1.11.1, display math in lists rendered as a new list
4084 item. Now it always appears centered, just as outside of lists,
4085 and in proper display math style, no matter how far indented the
4086 containing list item is (#784).
4087 + Use `w:br` with `w:type` `textWrapping` for linebreaks.
4088 Previously we used `w:cr` (#873).
4089 + Use Compact style for Plain block elements, to
4090 differentiate between tight and loose lists (#775).
4091 + Ignore most components of `reference.docx`.
4092 We take the `word/styles.xml`, `docProps/app.xml`,
4093 `word/theme/theme1.xml`, and `word/fontTable.xml` from
4094 `reference.docx`, ignoring everything else. This should help
4095 with the corruption problems caused when different versions of
4096 Word resave the reference.docx and reorganize things.
4097 + Made `--no-highlight` work properly.
4099 * EPUB writer
4101 + Don't add `dc:creator` tags if present in EPUB metadata.
4102 + Add `id="toc-title"` to `h1` in `nav.xhtml` (#799).
4103 + Don't put blank title page in reading sequence.
4104 Set `linear="no"` if no title block. Addresses #797.
4105 + Download webtex images and include as data URLs.
4106 This allows you to use `--webtex` in creating EPUBs.
4107 Math with `--webtex` is automatically made self-contained.
4108 + In `data/epub.css`, removed highlighting styles (which
4109 are no longer needed, since styles are added by the HTML
4110 writer according to `--highlighting-style`). Simplified
4111 margin fields.
4112 + If resource not found, skip it, as in Docx writer (#916).
4114 * RTF writer:
4116 + Properly handle characters above the 0000-FFFF range.
4117 Uses surrogate pairs. Thanks to Hiromi Ishii for the patch.
4118 + Fixed regression with RTF table of contents.
4119 + Only autolink absolute URIs. This fixes a regression, #830.
4121 * Markdown writer:
4123 + Only autolink absolute URIs. This fixes a regression, #830.
4124 + Don't wrap attributes in fenced code blocks.
4125 + Write full metadata in MMD style title blocks.
4126 + Put multiple authors on separate lines in pandoc titleblock.
4127 Also, don't wrap long author entries, as new lines get treated
4128 as new authors.
4130 * `Text.Pandoc.Templates`:
4132 + Fixed bug retrieving default template for markdown variants.
4133 + Templates can now contain "record lookups" in variables;
4134 for example, `author.institution` will retrieve the `institution`
4135 field of the `author` variable.
4136 + More consistent behavior of `$for$`. When `foo` is not a list,
4137 `$for(foo)$...$endfor$` should behave like $if(foo)$...$endif$.
4138 So if `foo` resolves to "", no output should be produced.
4139 See pandoc-templates#39.
4141 * Citation processing improvements (now part of pandoc-citeproc):
4143 + Fixed `endWithPunct` The new version correctly sees a sentence
4144 ending in '.)' as ending with punctuation. This fixes a bug which
4145 led such sentences to receive an extra period at the end: '.).'.
4146 Thanks to Steve Petersen for reporting.
4147 + Don't interfere with Notes that aren't citation notes.
4148 This fixes a bug in which notes not generated from citations were
4149 being altered (e.g. first letter capitalized) (#898).
4150 + Only capitalize footnote citations when they have a prefix.
4151 + Changes in suffix parsing. A suffix beginning with a digit gets 'p'
4152 inserted before it before passing to citeproc-hs, so that bare numbers
4153 are treated as page numbers by default. A suffix not beginning with
4154 punctuation has a space added at the beginning (rather than a comma and
4155 space, as was done before for not-author-in-text citations).
4156 The result is that `\citep[23]{item1}` in LaTeX will be interpreted
4157 properly, with '23' treated as a locator of type 'page'.
4158 + Many improvements to citation rendering, due to fixes in citeproc-hs
4159 (thanks to Andrea Rossato).
4160 + Warnings are issued for undefined citations, which are rendered
4161 as `???`.
4162 + Fixed hanging behavior when locale files cannot be found.
4164 [template changes]
4166 * DocBook: Use DocBook 4.5 doctype.
4168 * Org: '#+TITLE:' is inserted before the title.
4169 Previously the writer did this.
4171 * LaTeX: Changes to make mathfont work with xelatex.
4172 We need the mathspec library, not just fontspec, for this.
4173 We also need to set options for setmathfont (#734).
4175 * LaTeX: Use `tex-ansi` mapping for `monofont`.
4176 This ensures that straight quotes appear as straight, rather than
4177 being treated as curly. See #889.
4179 * Made `\includegraphics` more flexible in LaTeX template.
4180 Now it can be used with options, if needed. Thanks to Bernhard Weichel.
4182 * LaTeX/Beamer: Added `classoption` variable.
4183 This is intended for class options like `oneside`; it may
4184 be repeated with different options. (Thanks to Oliver Matthews.)
4186 * Beamer: Added `fonttheme` variable. (Thanks to Luis Osa.)
4188 * LaTeX: Added `biblio-style` variable (#920).
4190 * DZSlides: title attribute on title section.
4192 * HTML5: add meta tag to allow scaling by user (Erik Evenson)
4194 [under-the-hood improvements]
4196 * Markdown reader:Improved strong/emph parsing, using the strategy of
4197 <https://github.com/jgm/Markdown>. The new parsing algorithm requires
4198 no backtracking, and no keeping track of nesting levels. It will give
4199 different results in some edge cases, but these should not affect normal
4200 uses.
4202 * Added `Text.Pandoc.Compat.Monoid`.
4203 This allows pandoc to compile with `base` < 4.5, where `Data.Monoid`
4204 doesn't export `<>`. Thanks to Dirk Ullirch for the patch.
4206 * Added `Text.Pandoc.Compat.TagSoupEntity`.
4207 This allows pandoc to compile with `tagsoup` 0.13.x.
4208 Thanks to Dirk Ullrich for the patch.
4210 * Most of `Text.Pandoc.Readers.TeXMath` has been moved to the
4211 `texmath` module (0.6.4). (This allows `pandoc-citeproc` to
4212 handle simple math in bibliography fields.)
4214 * Added `Text.Pandoc.Writers.Shared` for shared functions used
4215 only in writers. `metaToJSON` is used in writers to create a
4216 JSON object for use in the templates from the pandoc metadata
4217 and variables. `getField`, `setField`, and `defField` are
4218 for working with JSON template contexts.
4220 * Added `Text.Pandoc.Asciify` utility module.
4221 This exports functions to create ASCII-only versions of identifiers.
4223 * `Text.Pandoc.Parsing`
4225 + Generalized state type on `readWith` (API change).
4226 + Specialize readWith to `String` input. (API change).
4227 + In `ParserState`, replace `stateTitle`, `stateAuthors`, `stateDate`
4228 with `stateMeta` and `stateMeta'`.
4230 * `Text.Pandoc.UTF8`: use strict bytestrings in reading. The use of lazy
4231 bytestrings seemed to cause problems using pandoc on 64-bit Windows
4232 7/8 (#874).
4234 * Factored out `registerHeader` from markdown reader, added to
4235 `Text.Pandoc.Parsing`.
4237 * Removed `blaze_html_0_5` flag, require `blaze-html` >= 0.5.
4238 Reason: < 0.5 does not provide a monoid instance for Attribute,
4239 which is now needed by the HTML writer (#803).
4241 * Added `http-conduit` flag, which allows fetching https resources.
4242 It also brings in a large number of dependencies (`http-conduit`
4243 and its dependencies), which is why for now it is an optional flag
4244 (#820).
4246 * Added CONTRIBUTING.md.
4248 * Improved INSTALL instructions.
4250 * `make-windows-installer.bat`: Removed explicit paths for executables.
4252 * `aeson` is now used instead of `json` for JSON.
4254 * Set default stack size to 16M. This is needed for some large
4255 conversions, esp. if pandoc is compiled with 64-bit ghc.
4257 * Various small documentation improvements.
4258 Thanks to achalddave and drothlis for patches.
4260 * Removed comment that chokes recent versions of CPP (#933).
4262 * Removed support for GHC version < 7.2, since pandoc-types now
4263 requires at least GHC 7.2 for GHC generics.
4266pandoc (1.11.1)
4268 * Markdown reader:
4270 + Fixed regression in which parentheses were lost in link URLs.
4271 Added tests. Closes #786.
4272 + Better handling of unmatched double quotes in `--smart` mode.
4273 These occur frequently in fiction, since it is customary not to
4274 close quotes in dialogue if the speaker does not change between
4275 paragraphs. The unmatched quotes now get turned into literal
4276 left double quotes. (No `Quoted` inline is generated, however.)
4277 Closes #99 (again).
4279 * HTML writer: Fixed numbering mismatch between TOC and sections.
4280 `--number-offset` now affects TOC numbering as well
4281 as section numbering, as it should have all along. Closes #789.
4283 * Markdown writer: Reverted 1.11 change that caused citations to be rendered
4284 as markdown citations, even if `--bibliography` was specified, unless
4285 `citation` extension is disabled. Now, formatted citations are always
4286 printed if `--bibliography` was specified. If you want to reformat
4287 markdown keeping pandoc markdown citations intact, don't use
4288 `--bibliography`. Note that citations parsed from LaTeX documents will
4289 be rendered as pandoc markdown citations when `--bibliography` is not
4290 specified.
4292 * ODT writer: Fixed regression leading to corrupt ODTs.
4293 This was due to a change in the `Show` instance for
4294 `Text.Pandoc.Pretty.Doc`. Closes #780.
4296 * Fixed spacing bugs involving code block attributes in
4297 RST reader and Markdown writer. Closes #763.
4299 * Windows package: Various improvements due to Fyodor Sheremetyev.
4301 + Automatically set installation path (Program Files or Local App Data).
4302 + Set system PATH environment variable when installing for all users.
4303 + Pandoc can installed for all users using the following command.
4304 `msiexec /i pandoc-1.11.msi ALLUSERS=1`.
4306 * Bumped QuickCheck version bound.
4308pandoc (1.11)
4310 * Added `--number-offset` option. (See README for description.)
4312 * Added `--default-image-extension` option. (See README for description.)
4314 * `--number-sections` behavior change: headers with class `unnumbered`
4315 will not be numbered.
4317 * `--version` now reports the default data directory.
4319 * `Text.Pandoc.Parsing` is no longer exposed. (API change.)
4321 * `Text.Pandoc.Highlighting` is no longer exposed. (API change.)
4323 * `Text.Pandoc.Shared`: Changed type of `Element`. `Sec` now includes
4324 a field for `Attr` rather than just `String`. (API change.)
4326 * Added `markdown_github` as input format. This was an accidental
4327 omission in 1.10.
4329 * Added `readerDefaultImageExtension` field to `ReaderOptions`. (API
4330 change.)
4332 * Added `writerNumberOffset` field in `WriterOptions`. (API change.)
4334 * Beamer template:
4336 + Fixed captions with longtable. Thanks to Joost Kremers.
4337 + Provide `\Oldincludegraphics` as in LaTeX template (Benjamin Bannier).
4339 * LaTeX template:
4341 + Load microtype after fonts. Microtype needs to know
4342 what fonts are being used. Thanks to dfc for the patch.
4343 + Set `secnumdepth` to 5 if `--number-sections` specified.
4344 This yields behavior equivalent to the other writers, numbering
4345 level 4 and 5 headers too. Closes #753.
4347 * HTML reader:
4349 + Handle `<colgroup>` tag.
4350 + Preserve all header attributes.
4352 * LaTeX reader:
4354 + Parse `\hrule` as `HorizontalRule`. Closes #746.
4355 + Parse starred variants of `\section` etc. as headers with
4356 attribute `unnumbered`.
4357 + Read optional attributes in `lstlisting` and `Verbatim` environments.
4358 We convert these to pandoc standard names, e.g. `numberLines`
4359 for `numbers=left`, `startFrom=100` from `firstnumber=100`.
4360 + Handle language attribute for lstlistings.
4361 + Better support for Verbatim and minted environments. Closes #763.
4363 * Markdown reader:
4365 + `-` in an attribute context = `.unnumbered`. The point of this
4366 is to provide a way to specify unnumbered headers in non-English
4367 documents.
4368 + Fixed bug parsing key/value attributes. Parsing failed if you
4369 had an unquoted attribute immediately before the final '}'.
4370 + Make backslash escape work in attributes.
4371 + Fix title block parsing. Now if `mmd_title_blocks` is specified,
4372 pandoc will parse a MMD title block if it sees one, even if
4373 `pandoc_title_blocks` is enabled.
4374 + Refactoring: `litChar` now includes entities, so we don't need
4375 to use `fromEntities` e.g. on titles.
4376 + Allow spaces around borders in pipe tables. Closes #772.
4377 + Allow all punctuation in angle-bracket autolinks. Previously
4378 things like `----` were disallowed, because the uri parser
4379 treated them as trailing punctuation. Closes #768.
4380 + Make `implicit_header_references` work properly when
4381 headers are given explicit identifiers.
4382 + Check for tables before line blocks. Otherwise some pipe
4383 tables get treated as line blocks.
4384 + Allow `&` in emails (for entities).
4385 + Properly handle entities in titles and links. A markdown link
4386 `<http://g&ouml;ogle.com>` should be a link to `http://göogle.com`.
4387 Closes #723.
4389 * Textile reader:
4391 + Handle attributes on headers.
4393 * LaTeX reader:
4395 + Add `fig:` as title for images with captions.
4396 This is needed for them to be rendered as figures. Closes #766.
4397 + Never emit an empty paragraph. See #761.
4398 + Handle `\caption` for images in figures. Closes #766.
4399 + Parse `\section*`, etc. as unnumbered sections.
4401 * HTML writer:
4403 + Support header attributes. The attributes go on
4404 the enclosing `section` or `div` tag if `--section-divs` is specified.
4405 + Fixed a regression (only now noticed) in html+lhs output.
4406 Previously the bird tracks were being omitted.
4408 * LaTeX writer:
4410 + Omit lists with no items to avoid LaTeX errors.
4411 + Support line numbering with `--listings`.
4412 If `numberLines` class is present, we add `numbers=left`;
4413 if `startFrom` is present, we add `firstnumber=`. (#763)
4415 * ConTeXt writer:
4417 + Removed `\placecontent`. This produced a duplicate toc,
4418 in conjunction with `\placelist`.
4419 + Use `\title`, `\subject` etc. for headers with
4420 `unnumbered` class.
4422 * Textile writer:
4424 + Support header attributes.
4426 * Markdown writer:
4428 + Use grid tables when needed, and if enabled. Closes #740.
4429 + Render citations as pandoc-markdown citations.
4430 Previously citations were rendered as citeproc-formatted citations
4431 by default. Now we render them as pandoc citations, e.g. `[@item1]`,
4432 unless the `citations` extension is disabled.
4433 If you still want formatted citations in your markdown output,
4434 use `pandoc -t markdown-citations`.
4436 * RST writer:
4438 + Support `:number-lines:` in code blocks.
4440 * Docx writer:
4442 + Better treatment of display math. Display math inside a
4443 paragraph is now put in a separate paragraph, so it will render
4444 properly (centered and without extra blank lines around it).
4445 Partially addresses #742.
4446 + Content types and document rels xml files are now created from
4447 scratch, rather than being taken over from `reference.docx`.
4448 This fixes problems that arise when you edit the `reference.docx`
4449 with Word.
4450 + We also now encode mime types for each individual image rather
4451 than using defaults. This should allow us to handle a wider
4452 range of image types (including PDF). Closes #414.
4453 + Changed style names in `reference docx`.
4454 `FootnoteReference` -> `FootnoteRef`, `Hyperlink` -> `Link`.
4455 The old names got changed by Word when the `reference.docx` was
4456 edited. Closes #414.
4458 * EPUB writer:
4460 + Fix section numbering. Previously the numbering restarted from 1
4461 in each chapter (with `--number-sections`), though the numbers in
4462 the table of contents were correct.
4463 + Headers with "unnumbered" attribute are not numbered. (Nor do they
4464 cause an increment in running numbering.) Section numbers now work
4465 properly, even when there is material before the first numbered section.
4466 + Include HTML TOC, even in epub2. The TOC is included in `<spine>`,
4467 but `linear` is set to `no` unless the `--toc` option is specified.
4468 Include `<guide>` element in OPF. This should allow the TOC to
4469 be useable in Kindles when converted with kindlegen. Closes #773.
4471 * `Text.Pandoc.Parsing`: Optimized `oneOfStringsCI`.
4472 This dramatically reduces the speed penalty that comes from enabling the
4473 `autolink_bare_uris` extension. The penalty is still substantial (in one
4474 test, from 0.33s to 0.44s), but nowhere near what it used to be.
4475 The RST reader is also much faster now, as it autodetects URIs.
4477 * `Text.Pandoc.Shared`: `hierarchicalize` will not number section
4478 with class "unnumbered". Unnumbered sections get `[]` for their
4479 section number.
4481 * `Text.Pandoc.Pretty`:
4483 + Fixed `chomp` so it works inside `Prefixed` elements.
4484 + Changed `Show` instance so it is better for debugging.
4486 * `Text.Pandoc.ImageSize`: Added `Pdf` to `ImageType`.
4488 * `Text.Pandoc.UTF8`: Strip off BOM if present. Closes #743.
4490 * Windows installer improvements:
4492 + The installer is now signed with a certificate (thanks to
4493 Fyodor Sheremetyev).
4494 + WiX is used instead of InnoSetup. The installer is now a
4495 standard msi file.
4496 + The version number is now auto-detected, and need not be
4497 updated separately.
4499 * OSX installer improvements:
4501 + The package and pandoc executable are now signed with a
4502 certificate (thanks to Fyodor Sheremetyev).
4503 + RTF version of license is used.
4504 + Use full path for sysctl in `InstallationCheck` script (jonahbull).
4505 Closes #580.
4507 * Converted COPYING to markdown.
4509 * pandoc.cabal: Require latest versions of highlighting-kate,
4510 texmath, citeproc-hs, zip-archive.
4512pandoc (1.10.1)
4514 * Markdown reader: various optimizations, leading to a
4515 significant performance boost.
4517 * RST reader: Allow anonymous form of inline links:
4518 `` `hello <url>`__ `` Closes #724.
4520 * Mediawiki reader: Don't require newlines after tables.
4521 Thanks to jrunningen for the patch. Closes #733.
4523 * Fixed LaTeX macro parsing. Now LaTeX macro definitions are preserved
4524 when output is LaTeX, and applied when it is another format.
4525 Partially addresses #730.
4527 * Markdown and RST readers: Added parser to `block` that skips blank
4528 lines. This fixes a subtle regression involving grid tables with
4529 empty cells. Also added test for grid table with empty cells.
4530 Closes #732.
4532 * RST writer: Use `.. code:: language` for code blocks with language.
4533 Closes #721.
4535 * DocBook writer: Fixed output for hard line breaks, adding a newline
4536 between `<literallayout>` tags.
4538 * Markdown writer: Use an autolink when link text matches url.
4539 Previously we also checked for a null title, but this
4540 test fails for links produced by citeproc-hs in bibliographies.
4541 So, if the link has a title, it will be lost on conversion
4542 to an autolink, but that seems okay.
4544 * Markdown writer: Set title, author, date variables as before.
4545 These are no longer used in the default template, since we use
4546 titleblock, but we set them anyway for those who use custom templates.
4548 * LaTeX writer: Avoid extra space at start/end of table cell.
4549 Thanks to Nick Bart for the suggestion of using @{}.
4551 * `Text.Pandoc.Parsing`:
4553 + More efficient version of `anyLine`.
4554 + Type of `macro` has changed; the parser now returns `Blocks`
4555 instead of `Block`.
4557 * Relaxed old-time version bound, allowing 1.0.*.
4559 * Removed obsolete `hsmarkdown` script. Those who need `hsmarkdown`
4560 should create a symlink as described in the README.
4562pandoc (1.10.0.5)
4564 * Markdown reader: Try `lhsCodeBlock` before `rawTeXBlock`. Otherwise
4565 `\begin{code}...\end{code}` isn't handled properly in markdown+lhs.
4566 Thanks to Daniel Miot for noticing the bug and suggesting the fix.
4568 * Markdown reader: Fixed bug with headerless grid tables.
4569 The 1.10 code assumed that each table header cell contains exactly one
4570 block. That failed for headerless tables (0) and also for tables with
4571 multiple blocks in a header cell. The code is fixed and tests provided.
4572 Thanks to Andrew Lee for pointing out the bug.
4574 * Markdown reader: Fixed regressions in fenced code blocks. Closes #722.
4576 + Tilde code fences can again take a bare language string
4577 (`~~~ haskell`), not just curly-bracketed attributes
4578 (`~~~ {.haskell}`).
4579 + Backtick code blocks can take the curly-bracketed attributes.
4580 + Backtick code blocks don't *require* a language.
4581 + Consolidated code for the two kinds of fenced code blocks.
4583 * LaTeX template: Use `\urlstyle{same}` to avoid monospace URLs.
4585 * Markdown writer: Use proportional font for email autolinks with
4586 obfuscation. Closes #714.
4588 * Corrected name of `blank_before_blockquote` in README. Closes #718.
4590 * `Text.Pandoc.Shared`: Fixed bug in `uri` parser.
4591 The bug prevented an autolink at the end of a string (e.g.
4592 at the end of a line block line) from counting as a link. Closes #711.
4594 * Use the `hsb2hs` preprocessor instead of TH for embed_data_files.
4595 This should work on Windows, unlike the TH solution with
4596 file-embed.
4598 * Eliminated use of TH in test suite.
4600 * Added `Text.Pandoc.Data` (non-exported) to hold the association
4601 list of embedded data files, if the `embed_data_files` flag is selected.
4602 This isolates the code that needs special treatment with file-embed or
4603 `hsb2hs`.
4605 * Changes to `make-windows-installer.bat`.
4607 + Exit batch file if any of the cabal-dev installs fail.
4608 + There's no longer any need to reinstall `highlighting-kate`.
4609 + Don't start with a `cabal update`; leave that to the user.
4610 + Force reinstall of pandoc.
4612 * Fixed EPUB writer so it builds with blaze-html 0.4.x. Thanks to
4613 Jens Petersen.
4615pandoc (1.10.0.4)
4617 * Fixed bug with escaped % in LaTeX reader. Closes #710.
4619pandoc (1.10.0.3)
4621 * Added further missing fb2 tests to cabal file.
4623pandoc (1.10.0.2)
4625 * Added fb2 tests to cabal file's extra-source-files.
4627pandoc (1.10.0.1)
4629 * Bump version bounds on test-framework packages.
4631pandoc (1.10)
4633 [new features]
4635 * New input formats: `mediawiki` (MediaWiki markup).
4637 * New output formats: `epub3` (EPUB v3 with MathML),
4638 `fb2` (FictionBook2 ebooks).
4640 * New `--toc-depth` option, specifying how many levels of
4641 headers to include in a table of contents.
4643 * New `--epub-chapter-level` option, specifying the header
4644 level at which to divide EPUBs into separate files.
4645 Note that this normally affects only performance, not the
4646 visual presentation of the EPUB in a reader.
4648 * Removed the `--strict` option. Instead of using `--strict`,
4649 one can now use the format name `markdown_strict` for either input
4650 or output. This gives more fine-grained control that `--strict`
4651 did, allowing one to convert from pandoc's markdown to strict
4652 markdown or vice versa.
4654 * It is now possible to enable or disable specific syntax
4655 extensions by appending them (with `+` or `-`) to the writer
4656 or reader name. For example,
4658 pandoc -f markdown-footnotes+hard_line_breaks
4660 disables footnotes and enables treating newlines as hard
4661 line breaks. The literate Haskell extensions are now implemented
4662 this way as well, using either `+lhs` or `+literate_haskell`.
4663 For a list of extension names, see the README under
4664 "Pandoc's Markdown."
4666 * The following aliases have been introduced for specific
4667 combinations of markdown extensions: `markdown_phpextra`,
4668 `markdown_github`, `markdown_mmd`, `markdown_strict`. These aliases
4669 work just like regular reader and writer names, and can be modified
4670 with extension modifiers as described above. (Note that conversion
4671 from one markdown dialect to another does not work perfectly,
4672 because there are differences in markdown parsers besides
4673 just the extensions, and because pandoc's internal document model is
4674 not rich enough to capture all of the extensions.)
4676 * New `--html-q-tags` option. The previous default was to use `<q>`
4677 tags for smart quotes in HTML5. But `<q>` tags are also valid HTML4.
4678 Moreover, they are not a robust way of typesetting quotes, since
4679 some user agents don't support them, and some CSS resets (e.g.
4680 bootstrap) prevent pandoc's quotes CSS from working properly.
4681 We now just insert literal quote characters by default in both
4682 `html` and `html5` output, but this option is provided for
4683 those who still want `<q>` tags.
4685 * The markdown reader now prints warnings (to stderr) about
4686 duplicate link and note references. Closes #375.
4688 * Markdown syntax extensions:
4690 + Added pipe tables. Thanks to François Gannaz for the initial patch.
4691 These conform to PHP Markdown Extra's pipe table syntax. A subset
4692 of org-mode table syntax is also supported, which means that you can
4693 use org-mode's nice table editor to create tables.
4695 + Added support for RST-style line blocks. These are
4696 useful for verse and addresses.
4698 + Attributes can now be specified for headers, using the same
4699 syntax as in code blocks. (However, currently only the
4700 identifier has any effect in most writers.) For example,
4702 # My header {#foo}
4704 See [the header above](#foo).
4706 + Pandoc will now act as if link references have been defined
4707 for all headers without explicit identifiers.
4708 So, you can do this:
4710 # My header
4712 Link to [My header].
4713 Another link to [it][My header].
4715 Closes #691.
4717 * LaTeX reader:
4719 + Command macros now work everywhere, including non-math.
4720 Environment macros still not supported.
4721 + `\input` now works, as well as `\include`. TEXINPUTS is used.
4722 Pandoc looks recursively into included files for more included files.
4724 [behavior changes]
4726 * The Markdown reader no longer puts the text of autolinks in a
4727 `Code` inline. This means that autolinks will no longer appear
4728 in a monospace font.
4730 * The character `/` can now appear in markdown citation keys.
4732 * HTML blocks in strict_markdown are no longer required to begin
4733 at the left margin. Technically this is required, according to
4734 the markdown syntax document, but `Markdown.pl` and other markdown
4735 processors are more liberal.
4737 * The `-V` option has been changed so that if there are duplicate
4738 variables, those specified later on the command line take precedence.
4740 * Tight lists now work in LaTeX and ConTeXt output.
4742 * The LaTeX writer no longer relien on the `enumerate` package.
4743 Instead, it uses standard LaTeX commands to change the list numbering
4744 style.
4746 * The LaTeX writer now uses `longtable` instead of `ctable`. This allows
4747 tables to be split over page boundaries.
4749 * The RST writer now uses a line block to render paragraphs containing
4750 linebreaks (which previously weren't supported at all).
4752 * The markdown writer now applies the `--id-prefix` to footnote IDs.
4753 Closes #614.
4755 * The plain writer no longer uses backslash-escaped line breaks
4756 (which are not very "plain").
4758 * `Text.Pandoc.UTF8`: Better error message for invalid UTF8.
4759 Read bytestring and use `Text`'s decodeUtf8 instead of using
4760 `System.IO.hGetContents`. This way you get a message saying
4761 "invalid UTF-8 stream" instead of "invalid byte sequence."
4762 You are also told which byte caused the problem.
4764 * Docx, ODT, and EPUB writers now download images specified by a URL
4765 instead of skipping them or raising an error.
4767 * EPUB writer:
4769 + The default CSS now left-aligns headers by default, instead of
4770 centering. This is more consistent with the rest of the writers.
4771 + A proper multi-level table of contents is now used in `toc.ncx`.
4772 There is no longer a subsidiary table of contents at the beginning
4773 of each chapter.
4774 + Code highlighting now works by default.
4775 + Section divs are used by default for better semantic markup.
4776 + The title is used instead of "Title Page" in the table of contents.
4777 Otherwise we have a hard-coded English string, which looks
4778 strange in ebooks written in other languages. Closes #572.
4780 * HTML writer:
4782 + Put mathjax in span with class "math". Closes #562.
4783 + Put citations in a span with class "citation." In HTML5, also include
4784 a `data-cite` attribute with a space-separated list of citation
4785 keys.
4787 * `Text.Pandoc.UTF8`: use universalNewlineMode in reading.
4788 This treats both `\r\n` and `\n` as `\n` on input, no matter
4789 what platform we're running on.
4791 * Citation processing is now done in the Markdown and LaTeX
4792 readers, not in `pandoc.hs`. This makes it easier for library users
4793 to use citations.
4795 [template changes]
4797 * HTML: Added css to template to preserve spaces in `<code>` tags.
4798 Thanks to Dirk Laurie.
4800 * Beamer: Remove English-centric strings in section pages.
4801 Section pages used to have "Section" and a number as well as the
4802 section title. Now they just have the title. Similarly for part
4803 and subsection. Closes #566.
4805 * LaTeX, ConTeXt: Added papersize variable.
4807 * LaTeX, Beamer templates: Use longtable instead of ctable.
4809 * LaTeX, Beamer templates: Don't require 'float' package for tables.
4810 We don't actually seem to use the '[H]' option.
4812 * LaTeX: Use `upquote` package if it is available. This fixes
4813 straight quotes in verbatim environments.
4815 * Markdown, plain: Fixed titleblock so it is just a single string.
4816 Previously separate title, author, and date variables were used,
4817 but this didn't allow different kinds of title blocks.
4819 * EPUB:
4821 + Rationalized templates. Previously there were three different
4822 templates involved in epub production. There is now just one
4823 template, `default.epub` or `default.epub3`. It can now be
4824 overridden using `--template`, just like other templates.
4825 The titlepage is now folded into the default template.
4826 A `titlepage` variable selects it.
4827 + UTF-8, lang tag, meta tags, title element.
4829 * Added scale-to-width feature to beamer template
4831 [API changes]
4833 * `Text.Pandoc.Definition`: Added `Attr` field to `Header`.
4834 Previously header identifers were autogenerated by the writers.
4835 Now they are added in the readers (either automatically or explicitly).
4837 * `Text.Pandoc.Builder`:
4839 + `Inlines` and `Blocks` are now synonyms for `Many Inline` and
4840 `Many Block`. `Many` is a newtype wrapper around `Seq`, with
4841 custom Monoid instances for `Many Inline` and `Many Block. This
4842 allows `Many` to be made an instance of `Foldable` and `Traversable`.
4843 + The old `Listable` class has been removed.
4844 + The module now exports `isNull`, `toList`, `fromList`.
4845 + The old `Read` and `Show` instances have been removed; derived
4846 instances are now used.
4847 + Added `headerWith`.
4849 * The readers now take a `ReaderOptions` rather than a `ParserState`
4850 as a parameter. Indeed, not all parsers use the `ParserState` type;
4851 some have a custom state. The motivation for this change was to separate
4852 user-specifiable options from the accounting functions of parser state.
4854 * New module `Text.Pandoc.Options`. This includes the `WriterOptions`
4855 formerly in `Text.Pandoc.Shared`, and its associated
4856 data types. It also includes a new type `ReaderOptions`, which
4857 contains many options formerly in `ParserState`, and its associated
4858 data types:
4860 + `ParserState.stateParseRaw` -> `ReaderOptions.readerParseRaw`.
4861 + `ParserState.stateColumns` -> `ReaderOptions.readerColumns`.
4862 + `ParserState.stateTabStop` -> `ReaderOptions.readerTabStop`.
4863 + `ParserState.stateOldDashes` -> `ReaderOptions.readerOldDashes`.
4864 + `ParserState.stateLiterateHaskell` -> `ReaderOptions.readerLiterateHaskell`.
4865 + `ParserState.stateCitations` -> `ReaderOptions.readerReferences`.
4866 + `ParserState.stateApplyMacros` -> `ReaderOptions.readerApplyMacros`.
4867 + `ParserState.stateIndentedCodeClasses` ->
4868 `ReaderOptions.readerIndentedCodeClasses`.
4869 + Added `ReaderOptions.readerCitationStyle`.
4871 * `WriterOptions` now includes `writerEpubVersion`, `writerEpubChapterLevel`,
4872 `writerEpubStylesheet`, `writerEpubFonts`, `writerReferenceODT`,
4873 `writerReferenceDocx`, and `writerTOCDepth`. `writerEPUBMetadata` has
4874 been renamed `writerEpubMetadata` for consistency.
4876 * Changed signatures of `writeODT`, `writeDocx`, `writeEPUB`, since they no
4877 longer stylesheet, fonts, reference files as separate parameters.
4879 * Removed `writerLiterateHaskell` from `WriterOptions`, and
4880 `readerLiterateHaskell` from `ReaderOptions`. LHS is now handled
4881 by an extension (`Ext_literate_haskell`).
4883 * Removed deprecated `writerXeTeX`.
4885 * Removed `writerStrict` from `WriterOptions`. Added `writerExtensions`.
4886 Strict is now handled through extensions.
4888 * `Text.Pandoc.Options` exports `pandocExtensions`, `strictExtensions`,
4889 `phpMarkdownExtraExtensions`, `githubMarkdownExtensions`,
4890 and `multimarkdownExtensions`, as well as the `Extensions` type.
4892 * New `Text.Pandoc.Readers.MediaWiki` module, exporting
4893 `readMediaWiki`.
4895 * New `Text.Pandoc.Writers.FB2` module, exporting `writeFB2`
4896 (thanks to Sergey Astanin).
4898 * `Text.Pandoc`:
4900 + Added `getReader`, `getWriter` to `Text.Pandoc`.
4901 + `writers` is now an association list `(String, Writer)`.
4902 A `Writer` can be a `PureStringWriter`, an `IOStringWriter`, or
4903 an `IOByteStringWriter`. ALL writers are now in the 'writers'
4904 list, including the binary writers and FB2 writer. This allows
4905 code in `pandoc.hs` to be simplified.
4906 + Changed type of `readers`, so all readers are in IO.
4907 Users who want pure readers can still get them form the reader
4908 modules; this just affects the function `getReader` that looks up
4909 a reader based on the format name. The point of this change is to
4910 make it possible to print warnings from the parser.
4912 * `Text.Pandoc.Parsing`:
4914 + `Text.Parsec` now exports all Parsec functions used in pandoc code.
4915 No other module directly imports Parsec. This will make it easier
4916 to change the parsing backend in the future, if we want to.
4917 + `Text.Parsec` is used instead of `Text.ParserCombinators.Parsec`.
4918 + Export the type synonym `Parser`.
4919 + Export `widthsFromIndices`, `NoteTable'`, `KeyTable'`, `Key'`, `toKey'`,
4920 `withQuoteContext`, `singleQuoteStart`, `singleQuoteEnd`,
4921 `doubleQuoteStart`, `doubleQuoteEnd`, `ellipses`, `apostrophe`,
4922 `dash`, `nested`, `F(..)`, `askF`, `asksF`, `runF`, `lineBlockLines`.
4923 + `ParserState` is no longer an instance of `Show`.
4924 + Added `stateSubstitutions` and `stateWarnings` to `ParserState`.
4925 + Generalized type of `withQuoteContext`.
4926 + Added `guardEnabled`, `guardDisabled`, `getOption`.
4927 + Removed `failIfStrict`.
4928 + `lookupKeySrc` and `fromKey` are no longer exported.
4930 * `Data.Default` instances are now provided for `ReaderOptions`,
4931 `WriterOptions`, and `ParserState`. `Text.Pandoc` re-exports `def`.
4932 Now you can use `def` (which is re-exported by `Text.Pandoc`) instead
4933 of `defaultWriterOptions` (which is still defined). Closes #546.
4935 * `Text.Pandoc.Shared`:
4937 + Added `safeRead`.
4938 + Renamed `removedLeadingTrailingSpace` to `trim`,
4939 `removeLeadingSpace` to `triml`, and `removeTrailingSpace` to `trimr`.
4940 + Count `\r` as space in `trim` functions.
4941 + Moved `renderTags'` from HTML reader and `Text.Pandoc.SelfContained`
4942 to `Shared`.
4943 + Removed `failUnlessLHS`.
4944 + Export `compactify'`, formerly in Markdown reader.
4945 + Export `isTightList`.
4946 + Do not export `findDataFile`.
4947 + `readDataFile` now returns a strict ByteString.
4948 + Export `readDataFileUTF8` which returns a String, like the
4949 old `readDataFile`.
4950 + Export `fetchItem` and `openURL`.
4952 * `Text.Pandoc.ImageSize`: Use strict, not lazy bytestrings.
4953 Removed `readImageSize`.
4955 * `Text.Pandoc.UTF8`: Export `encodePath`, `decodePath`,
4956 `decodeArg`, `toString`, `fromString`, `toStringLazy`,
4957 `fromStringLazy`.
4959 * `Text.Pandoc.UTF8` is now an exposed module.
4961 * `Text.Pandoc.Biblio`:
4963 + csl parameter now a `String` rather than a `FilePath`.
4964 + Changed type of `processBiblio`. It is no longer in the IO monad.
4965 It now takes a `Maybe Style` argument rather than parameters for CSL
4966 and abbrev filenames. (`pandoc.hs` now calls the functions to parse
4967 the style file and add abbreviations.)
4969 * Markdown reader now exports `readMarkdownWithWarnings`.
4971 * `Text.Pandoc.RTF` now exports `writeRTFWithEmbeddedImages` instead of
4972 `rtfEmbedImage`.
4974 [bug fixes]
4976 * Make `--ascii` work properly with `--self-contained`. Closes #568.
4978 * Markdown reader:
4980 + Fixed link parser to avoid exponential slowdowns. Closes #620.
4981 Previously the parser would hang on input like this:
4983 [[[[[[[[[[[[[[[[[[hi
4985 We fixed this by making the link parser parser characters
4986 between balanced brackets (skipping brackets in inline code spans),
4987 then parsing the result as an inline list. One change is that
4989 [hi *there]* bud](/url)
4991 is now no longer parsed as a link. But in this respect pandoc behaved
4992 differently from most other implementations anyway, so that seems okay.
4994 + Look for raw html/latex blocks before tables.
4995 Otherwise the following gets parsed as a table:
4997 \begin{code}
4998 --------------
4999 -- My comment.
5000 \end{code}
5002 Closes #578.
5004 * RST reader:
5006 + Added support for `:target:` on `.. image::` blocks
5007 and substitutions.
5008 + Field list fixes:
5010 - Fixed field lists items with body beginning after a new line
5011 (Denis Laxalde).
5012 - Allow any char but ':' in names of field lists in RST reader
5013 (Denis Laxalde).
5014 - Don't allow line breaks in field names.
5015 - Require whitespace after field list field names.
5016 - Don't create empty definition list for metadata field lists.
5017 Previously a field list consisting only of metadata fields (author,
5018 title, date) would be parsed as an empty DefinitionList, which is
5019 not legal in LaTeX and not needed in any format.
5021 + Don't recognize inline-markup starts inside words.
5022 For example, `2*2 = 4*1` should not contain an emphasized
5023 section. Added test case for "Literal symbols". Closes #569.
5024 + Allow dashes as separator in simple tables. Closes #555.
5025 + Added support for `container`, `compound`, `epigraph`,
5026 `rubric`, `highlights`, `pull-quote`.
5027 + Added support for `.. code::`.
5028 + Made directive labels case-insensitive.
5029 + Removed requirement that directives begin at left margin.
5030 This was (correctly) not in earlier releases; docutils doesn't
5031 make the requirement.
5032 + Added support for `replace::` and `unicode::` substitutions.
5033 + Ignore unknown interpreted roles.
5034 + Renamed image parser to `subst`, since it now handles all
5035 substitution references.
5037 * Textile reader:
5039 + Allow newlines before pipes in table. Closes #654.
5040 + Fixed bug with list items containing line breaks.
5041 Now pandoc correctly handles hard line breaks inside list items.
5042 Previously they broke list parsing.
5043 + Implemented comment blocks.
5044 + Fixed bug affected words ending in hyphen.
5045 + Properly handle links with surrounding brackets.
5046 Square brackets need to be used when the link isn't surrounded by
5047 spaces or punctuation, or when the URL ending may be ambiguous.
5048 Closes #564.
5049 + Removed nullBlock. Better to know about parsing problems than
5050 to skip stuff when we get stuck.
5051 + Allow ID attributes on headers.
5052 + Textile reader: Avoid parsing dashes as strikeout.
5053 Previously the input
5055 text--
5056 text--
5057 text--
5058 text--
5060 would be parsed with strikeouts rather than dashes. This fixes
5061 the problem by requiring that a strikeout delimiting - not be
5062 followed by a -. Closes #631.
5063 + Expanded list of `stringBreakers`.
5064 This fixes a bug on input like "(_hello_)" which should
5065 be a parenthesized emphasized "hello".
5066 The new list is taken from the PHP source of textile 2.4.
5067 + Fixed autolinks. Previously the textile reader and writer
5068 incorrectly implented RST-style autolinks for URLs and email
5069 addresses. This has been fixed. Now an autolink is done this way:
5070 `"$":http://myurl.com`.
5071 + Fixed footnotes bug in textile. This affected notes occuring
5072 before punctuation, e.g. `foo[1].`. Closes #518.
5074 * LaTeX reader:
5076 + Better handling of citation commands.
5077 + Better handling of `\noindent`.
5078 + Added a 'try' in rawLaTeXBlock, so we can handle `\begin` without `{`.
5079 Closes #622.
5080 + Made `rawLaTeXInline` try to parse block commands as well. This
5081 is usually what we want, given how `rawLaTeXInline` is used in
5082 the markdown and textile readers. If a block-level LaTeX command
5083 is used in the middle of a paragraph (e.g. `\subtitle` inside a title),
5084 we can treat it as raw inline LaTeX.
5085 + Handle \slash command. Closes #605.
5086 + Basic `\enquote` support.
5087 + Fixed parsing of paragraphs beginning with a group. Closes #606.
5088 + Use curly quotes for bare straight quotes.
5089 + Support obeylines environment. Closes #604.
5090 + Guard against "begin", "end" in inlineCommand and
5091 blockCommand.
5092 + Better error messages for environments. Now it should tell you that
5093 it was looking for \end{env}, instead of giving "unknown parse error."
5095 * HTML reader:
5097 + Added HTML 5 tags to list of block-level tags.
5098 + HTML reader: Fixed bug in `htmlBalanced`, which
5099 caused hangs in parsing certain markdown input using
5100 strict mode.
5101 + Parse `<q>` as `Quoted DoubleQuote`.
5102 + Handle nested `<q>` tags properly.
5103 + Modified `htmlTag` for fewer false positives.
5104 A tag must start with `<` followed by `!`,`?`, `/`, or a letter.
5105 This makes it more useful in the wikimedia and markdown parsers.
5107 * DocBook reader: Support title in "figure" element. Closes #650.
5109 * MediaWiki writer:
5111 + Remove newline after `<br/>` in translation of `LineBreak`
5112 There's no particular need for a newline (other than making the
5113 generated MediaWiki source look nice to a human), and in fact
5114 sometimes it is incorrect: in particular, inside an enumeration, list
5115 items cannot have embedded newline characters. (Brent Yorgey)
5116 + Use `<code>` not `<tt>` for Code.
5118 * Man writer: Escape `-` as `\-`.
5119 Unescaped `-`'s become hyphens, while `\-`'s are left as ascii minus
5120 signs. That is preferable for use with command-line options. See
5121 <http://lintian.debian.org/tags/hyphen-used-as-minus-sign.html>. Thanks
5122 to Andrea Bolognani for bringing the issue to our attention.
5124 * RST writer:
5126 + Improved line block output. Use nonbreaking spaces for
5127 initial indent (otherwise lost in HTML and LaTeX).
5128 Allow multiple paragraphs in a single line block.
5129 Allow soft breaks w continuations in line blocks.
5130 + Properly handle images with no alt text. Closes #678.
5131 + Fixed bug with links with duplicate text. We now (a) use anonymous
5132 links for links with inline URLs, and (b) use an inline link instead
5133 of a reference link if the reference link would require a label that
5134 has already been used for a different link. Closes #511.
5135 + Fixed hyperlinked images. Closes #611. Use `:target:`
5136 field when you have a simple linked image.
5137 + Don't add `:align: center` to figures.
5139 * Texinfo writer: Fixed internal cross-references.
5140 Now we insert anchors after each header, and use `@ref` instead of `@uref`
5141 for links. Commas are now escaped as `@comma{}` only when needed;
5142 previously all commas were escaped. (This change is needed, in part,
5143 because `@ref` commands must be followed by a real comma or period.) Also
5144 insert a blank line in from of `@verbatim` environments.
5146 * DocBook writer:
5148 + Made --id-prefix work in DocBook as well as HTML.
5149 Closes #607.
5150 + Don't include empty captions in figures. Closes #581.
5152 * LaTeX writer:
5154 + Use `\hspace*` for nonbreaking space after line break,
5155 since `~` spaces after a line break are just ignored.
5156 Closes #687.
5157 + Don't escape `_` in URLs or hyperref identifiers.
5158 + Properly escape strings inside \url{}. Closes #576.
5159 + Use `[fragile]` only for slides containing code rendered
5160 using listings. Closes #649.
5161 + Escape `|` as `\vert` in LaTeX math. This avoids a clash with
5162 highlighting-kate's macros, which redefine `|` as a short verbatim
5163 delimiter. Thanks to Björn Peemöller for raising this issue.
5164 + Use minipage rather than parbox for block containers in tables.
5165 This allows verbatim code to be included in grid tables.
5166 Closes #663.
5167 + Prevent paragraphs containing only linebreaks or spaces.
5169 * HTML writer:
5171 + Included `highlighting-css` for code spans, too.
5172 Previously it was only included if used in a code block. Closes #653.
5173 + Improved line breaks with `<dd>` tags. We now put a newline between
5174 `</dd>` and `<dd>` when there are multiple definitions.
5175 + Changed mathjax cdn url so it doesn't use https. (This caused
5176 problems when used with `--self-contained`.) See #609.
5178 * EPUB writer:
5180 + `--number-sections` now works properly.
5181 + Don't strip meta and link elements in epub metadata.
5182 Patch from aberrancy. Closes #589.
5183 + Fixed a couple validation bugs.
5184 + Use ch001, ch002, etc. for chapter filenames. This improves sorting
5185 of chapters in some readers, which apparently sort ch2 after ch10.
5186 Closes #610.
5188 * ODT writer: properly set title property (Arlo O'Keeffe).
5190 * Docx writer:
5192 + Fixed bug with nested lists. Previously a list like
5194 1. one
5195 - a
5196 - b
5197 2. two
5199 would come out with a bullet instead of "2."
5200 Thanks to Russell Allen for reporting the bug.
5201 + Use `w:cr` in `w:r` instead of `w:br` for linebreaks.
5202 This seems to fix a problem viewing pandoc-generated
5203 docx files in LibreOffice.
5204 + Use integer ids for bookmarks. Closes #626.
5205 + Added nsid to abstractNum elements. This helps when merging
5206 word documents with numbered or bulleted lists. Closes #627.
5207 + Use separate footnotes.xml for notes.
5208 This seems to help LibreOffice convert the file, even though
5209 it was valid docx before. Closes #637.
5210 + Use rIdNN identifiers for r:embed in images.
5211 + Avoid reading image files again when we've already processed them.
5212 + Fixed typo in `referenc.docx` that prevented image captions from
5213 working. Thanks to Huashan Chen.
5215 * `Text.Pandoc.Parsing`:
5217 + Fixed bug in `withRaw`, which didn't correctly handle the case
5218 where nothing is parsed.
5219 + Made `emailAddress` parser more correct. Now it is based on RFC 822,
5220 though it still doesn't implement quoted strings in email addresses.
5221 + Revised URI parser. It now allows many more schemes, allows
5222 uppercase URIs, and better handles trailing punctuation and
5223 trailing slashes in bare URIs. Added many tests.
5224 + Simplified and improved singleQuoteStart. This makes `'s'`, `'l'`,
5225 etc. parse properly. Formerly we had some English-centric heuristics,
5226 but they are no longer needed. Closes #698.
5228 * `Text.Pandoc.Pretty`: Added wide punctuation range to `charWidth`.
5229 This fixes bug with Chinese commas in markdown and reST tables, and
5230 a bug that caused combining characters to be dropped.
5232 * `Text.Pandoc.MIME`: Added MIME types for .wof and .eot. Closes #640.
5234 * `Text.Pandoc.Biblio`:
5236 + Run `mvPunc` and `deNote` on metadata too.
5237 This fixed a bug with notes on titles using footnote styles.
5238 + Fixed bug in fetching CSL files from CSL data directory.
5240 * `pandoc.hs`: Give correct value to `writerSourceDirectory` when a URL
5241 is provided. It should be the URL up to the path.
5243 * Fixed/simplified diff output for tests.
5244 Biblio: Make sure mvPunc and deNote run on metadata too.
5245 This fixed a bug with notes on titles using footnote styles.
5247 [under the hood improvements]
5249 * We no longer depend on `utf8-string`. Instead we use functions
5250 defined in `Text.Pandoc.UTF8` that use `Data.Text`'s conversions.
5252 * Use `safeRead` instead of using `reads` directly (various modules).
5254 * "Implicit figures" (images alone in a paragraph) are now handled
5255 differently. The markdown reader gives their titles the prefix `fig:`; the
5256 writers look for this before treating the image as a figure. Though this
5257 is a bit of a hack, it has two advantages: (i) implicit figures can be
5258 limited to the markdown reader, and (ii) they can be deactivated by turning
5259 off the `implicit_figures` extension.
5261 * `catch` from `Control.Exception` is now used instead of the
5262 old Preface `catch`.
5264 * `Text.Pandoc.Shared`: Improved algorithm for `normalizeSpaces`
5265 and `oneOfStrings` (which is now non-backtracking).
5267 * `Text.Pandoc.Biblio`: Remove workaround for `toCapital`.
5268 Now citeproc-hs is fixed upstream, so this is no longer needed.
5269 Closes #531.
5271 * Textile reader: Improved speed of `hyphenedWords`.
5272 This speeds up the textile reader by about a factor of 4.
5274 * Use `Text.Pandoc.Builder` in RST reader, for more flexibility,
5275 better performance, and automatic normalization.
5277 * Major rewrite of markdown reader:
5279 + Use `Text.Pandoc.Builder` instead of lists. This also
5280 means that everything is normalized automatically.
5281 + Move to a one-pass parsing strategy, returning values in the reader
5282 monad, which are then run (at the end of parsing) against the final
5283 parser state.
5285 * In HTML writer, we now use `toHtml` instead of pre-escaping.
5286 We work around the problem that blaze-html unnecessarily escapes `'`
5287 by pre-escaping just the `'` characters, instead of the whole string.
5288 If blaze-html later stops escaping `'` characters, we can simplify
5289 `strToHtml` to `toHtml`. Closes #629.
5291 * Moved code for embedding images in RTFs from `pandoc.hs` to the
5292 RTF writer (which now exports `writeRTFWithEmbeddedImages`).
5294 * Moved citation processing from `pandoc.hs` into the readers.
5295 This makes things more convenient for library users.
5297 * The man pages are now built by an executable `make-pandoc-man-pages`,
5298 which has its own stanza in the cabal file so that dependencies can be
5299 handled by Cabal. Special treatment in `Setup.hs` ensures that this
5300 executable never gets installed; it is only used to create the man pages.
5302 * The cabal file has been modified so that the pandoc library is used
5303 in building the pandoc executable. (This required moving `pandoc.hs`
5304 from `src` to `.`.) This cuts compile time in half.
5306 * `-O2` is no longer used in building pandoc. The performance improvement
5307 it yields is so slight that it is not worth it. (Measured with
5308 benchmarks on ghc 7.4.)
5310 * The `executable` and `library` flags have been removed.
5312 * `-threaded` has been removed from ghc-options.
5314 * Version bounds of dependencies have been raised, and the
5315 `blaze_html_0_5` flag now defaults to True. Pandoc now compiles on
5316 GHC 7.6.
5318 * We now require base >= 4.2.
5320 * Integrated the benchmark program into cabal. One can now do:
5322 cabal configure --enable-benchmarks && cabal build
5323 cabal bench --benchmark-option='markdown' --benchmark-option='-s 20'
5325 The benchmark now uses README + testsuite, so benchmark results
5326 from older versions aren't comparable.
5328 * Integrated test suite with cabal.
5329 To run tests, configure with `--enable-tests`, then `cabal test`.
5330 You can specify particular tests using `--test-options='-t markdown'`.
5331 No output is shown unless tests fail. The Haskell test modules
5332 have been moved from `src/` to `tests/`.
5334 * Moved all data files and templates to the `data/` subdirectory.
5336 * Added an `embed_data_files` cabal flag. This causes all
5337 data files to be embedded in the binary, so that the binary
5338 is self-sufficient and can be relocated anywhere, copied on
5339 a USB key, etc. The Windows installer now uses this.
5340 (Since we no longer have the option to build the executable
5341 without the library, this is the only way to get a relocatable
5342 binary on Windows.)
5344 * Removed pcre3.dll from windows package.
5345 It isn't needed unless highlighting-kate is compilled with the
5346 `pcre-light` flag. By default, regex-prce-builtin is used.
5349pandoc (1.9.4.2)
5351 * Don't encode/decode file paths if base >= 4.4.
5352 Prior to base 4.4, filepaths and command line arguments were treated
5353 as unencoded lists of bytes, not unicode strings, so we had to work
5354 around that by encoding and decoding them. This commit adds CPP
5355 checks for the base version that intelligibly enable encoding/decoding
5356 when needed. Fixes a bug with multilingual filenames when pandoc was
5357 compiled with ghc 7.4 (#540).
5359 * Don't generate an empty H1 after hrule slide breaks.
5360 We now use a slide-level header with contents `[Str "\0"]` to mark
5361 an hrule break. This avoids creation of an empty H1 in these
5362 contexts. Closes #484.
5364 * Docbook reader: Added support for "bold" emphasis. Thanks to Mauro Bieg.
5366 * In make_osx_package.sh, ensure citeproc-hs is built with the
5367 embed_data_files flag.
5369 * MediaWiki writer: Avoid extra blank lines after sublists (Gavin Beatty).
5371 * ConTeXt writer: Don't escape `&`, `^`, `<`, `>`, `_`,
5372 simplified escapes for `}` and `{` to `\{` and `\}` (Aditya Mahajan).
5374 * Fixed handling of absolute URLs in CSS imports with `--self-contained`.
5375 Closes #535.
5377 * Added webm to mime types. Closes #543.
5379 * Added some missing exports and tests to the cabal file
5380 (Alexander V Vershilov).
5382 * Compile with `-rtsopts` and `-threaded` by default.
5384pandoc (1.9.4.1)
5386 * Markdown reader: Added `cf.` and `cp.` to list of likely abbreviations.
5388 * LaTeX template: Added `linkcolor`, `urlcolor` and `links-as-notes`
5389 variables. Make TOC links black.
5391 * LaTeX template improvements.
5393 + Don't print date unless one is given explicitly in the document.
5394 + Simplified templates.
5395 + Use fontenc [T1] by default, and lmodern.
5396 + Use microtype if available.
5398 * Biblio:
5400 + Add comma to beginning of bare suffix, e.g. `@item1 [50]`.
5401 Motivation: `@item1 [50]` should be as close as possible to
5402 `[@item1, 50]`.
5403 + Added workaround for a bug in citeproc-hs 0.3.4 that causes footnotes
5404 beginning with a citation to be empty. Closes #531.
5406 * Fixed documentation on mixed lists. Closes #533.
5408pandoc (1.9.4)
5410 * Simplified `Text.Pandoc.Biblio` and fixed bugs with citations inside
5411 footnotes and captions. We now handle note citations by inserting
5412 footnotes during initial citation processing, and doing a separate
5413 pass later to remove notes inside notes.
5415 * Added 'zenburn' highlight style from highlighting-kate.
5417 * Added Slideous writer. Slideous is an HTML + javascript slide show
5418 format, similar to Slidy, but works with IE 7. (Jonas Smedegaard)
5420 * LaTeX writer:
5422 + Ensure we don't have extra blank lines at ends of cells.
5423 This can cause LaTeX errors, as they are interpreted as new paragraphs.
5424 + More consistent interblock spacing.
5425 + Require highlighting-kate >= 0.5.1, for proper highlighted inline
5426 code in LaTeX. Closes #527.
5427 + Ensure that a Verbatim at the end of a footnote is followed by
5428 a newline. (Fixes a regression in the previous version.)
5429 + In default template, use black for internal links and TOC.
5430 Added commented-out code to use footnotes for links, as would
5431 be suitable in print output.
5433 * Beamer writer: When `--incremental` is used, lists inside
5434 a block quote should appear all at once. (This makes Beamer
5435 output consistent with the HTML slide show formats.)
5437 * ConTeXt writer:
5439 + Escape `%` as `\letterpercent{}` not `\letterpercent `,
5440 to avoid gobbling spaces after the `%` sign.
5441 + Ensure space after `\stopformula`.
5443 * Markdown writer:
5445 + Use `:` form instead of `~` in definition lists, for better
5446 compatibility with other markdown implementations.
5447 + Don't wrap the term, because it breaks definition lists.
5448 + Use a nonzero space to prevent false recognition
5449 of list marker in ordered lists. Closes #516.
5451 * Org writer: Add space before language name. Closes #523.
5453 * Docx writer: Simplified bullet characters so they work properly
5454 with Word 2007. Closes #520.
5456 * LaTeX reader: Support `\centerline`.
5458 * RST reader: handle figures. Closes #522.
5460 * Textile reader: fix for `<notextile>` and `==`. Closes #517.
5461 (Paul Rivier)
5463pandoc (1.9.3)
5465 * Fixed bug in `fromEntities`. The previous version would turn
5466 `hi & low you know;` into `hi &`.
5468 * HTML reader:
5470 + Don't skip nonbreaking spaces.
5471 Previously a paragraph containing just `&nbsp;` would be rendered
5472 as an empty paragraph. Thanks to Paul Vorbach for pointing out the bug.
5473 + Support `<col>` and `<caption>` in tables. Closes #486.
5475 * Markdown reader:
5477 + Don't recognize references inside delimited code blocks.
5478 + Allow list items to begin with lists.
5480 * Added basic docbook reader (John MacFarlane and Mauro Bieg).
5482 * LaTeX reader:
5484 + Handle `\bgroup`, `\egroup`, `\begingroup`, `\endgroup`.
5485 + Control sequences can't be followed by a letter.
5486 This fixes a bug where `\begingroup` was parsed as `\begin`
5487 followed by `group`.
5488 + Parse 'dimension' arguments to unknown commands. e.g. `\parindent0pt`
5489 + Make `\label` and `\ref` sensitive to `--parse-raw`.
5490 If `--parse-raw` is selected, these will be parsed as raw latex
5491 inlines, rather than bracketed text.
5492 + Don't crash on unknown block commands (like `\vspace{10pt}`)
5493 inside `\author`; just skip them. Closes #505.
5495 * Textile reader:
5497 + Implemented literal escapes with `==` and `<notextile>`. Closes #473.
5498 + Added support for LaTeX blocks and inlines (Paul Rivier).
5499 + Better conformance to RedCloth inline parsing (Paul Rivier).
5500 + Parse '+text+' as emphasized (should be underlined, but this
5501 is better than leaving literal plus characters in the output.
5503 * Docx writer: Fixed multi-paragraph list items. Previously they each
5504 got a list marker. Closes #457.
5506 * LaTeX writer:
5508 + Added `--no-tex-ligatures` option to avoid replacing
5509 quotation marks and dashes with TeX ligatures.
5510 + Use `fixltx2e` package to provide '\textsubscript'.
5511 + Improve spacing around LaTeX block environments:
5512 quote, verbatim, itemize, description, enumerate.
5513 Closes #502.
5514 + Use blue instead of pink for URL links in latex/pdf output.
5516 * ConTeXt writer: Fixed escaping of `%`.
5517 In text, `%` needs to be escaped as `\letterpercent`, not `\%`
5518 Inside URLs, `%` needs to be escaped as `\%`
5519 Thanks to jmarca and adityam for the fix. Closes #492.
5521 * Texinfo writer: Escape special characters in node titles.
5522 This fixes a problem pointed out by Joost Kremers. Pandoc used
5523 to escape an '@' in a chapter title, but not in the corresponding
5524 node title, leading to invalid texinfo.
5526 * Fixed document encoding in texinfo template.
5527 Resolves Debian Bug #667816.
5529 * Markdown writer:
5531 + Don't force delimited code blocks to be flush left.
5532 Fixes bug with delimited code blocks inside lists etc.
5533 + Escape `<` and `$`.
5535 * LaTeX writer: Use `\hyperref[ident]{text}` for internal links.
5536 Previously we used `\href{\#ident}{text}`, which didn't work on
5537 all systems. Thanks to Dirk Laurie.
5539 * RST writer: Don't wrap link references. Closes #487.
5541 * Updated to use latest versions of blaze-html, mtl.
5544pandoc (1.9.2)
5546 * LaTeX reader:
5548 + Made `lstlisting` work as a proper verbatim environment.
5549 + Fixed bug parsing LaTeX tables with one column.
5551 * LaTeX writer:
5553 + Use `{}` around `ctable` caption, so that formatting can be used.
5554 + Don't require eurosym package unless document has a €.
5556 * LaTeX template: Added variables for `geometry`, `romanfont`,
5557 `sansfont`, `mathfont`, `mainfont` so users can more easily
5558 customize fonts.
5560 * PDF writer:
5562 + Run latex engine at least two times, to ensure
5563 that PDFs will have hyperlinked bookmarks.
5564 + Added PDF metadata (title,author) in LaTeX standalone + PDF output.
5566 * Texinfo writer: retain directories in image paths. (Peter Wang)
5568 * RST writer: Better handling of inline formatting, in accord
5569 with docutils' "inline markup recognition rules" (though we don't
5570 implement the unicode rules fully). Now `hi*there*hi` gets
5571 rendered properly as `hi\ *there*\ hi`, and unnecessary
5572 `\ ` are avoided around `:math:`, `:sub:`, `:sup:`.
5574 * RST reader:
5576 + Parse `\ ` as null, not escaped space.
5577 + Allow `` :math:`...` `` even when not followed by blank
5578 or `\`. This does not implement the complex rule docutils follows,
5579 but it should be good enough for most purposes.
5580 + Add support for the rST default-role directive. (Greg Maslov)
5582 * Text.Pandoc.Parsing: Added `stateRstDefaultRole` field to `ParserState`.
5583 (Greg Maslov)
5585 * Markdown reader: Properly handle citations nested in other inline
5586 elements.
5588 * Markdown writer: don't replace empty alt in image with "image".
5590 * DZSlides: Updated template.html and styles in default template.
5591 Removed bizarre CSS for `q` in dzslides template.
5593 * Avoid repeated `id` attribute in section and header in HTML slides.
5595 * README improvements: new instructions on internal links,
5596 removed misleading note on reST math.
5598 * Build system:
5600 + Fixed Windows installer so that dzslides works.
5601 + Removed stripansi.sh.
5602 + Added .travis.yml for Travis continuous integration support..
5603 + Fixed upper bound for zlib (Sergei Trofimovich).
5604 + Fixed upper bound for test-framework.
5605 + Updated haddocks for haddock-2.10 (Sergei Trofimovich).
5607pandoc (1.9.1.2)
5609 * Added `beamer+lhs` as output format.
5611 * Don't escape `<` in `<style>` tags with `--self-contained`.
5612 This fixes a bug which prevented highlighting from working
5613 when using `--self-contained`.
5615 * PDF: run latex engine three times if `--toc` specified.
5616 This fixes page numbers in the table of contents.
5618 * Docx writer: Added TableNormal style to tables.
5620 * LaTeX math environment fixes. `aligned` is now used instead of
5621 the nonexistent `aligned*`. `multline` instead of the nonexistent
5622 `multiline`.
5624 * LaTeX writer: Use `\textasciitilde` for literal `~`.
5626 * HTML writer: Don't escape contents of EQ tags with --gladtex.
5627 This fixes a regression from 1.8.
5629 * Use `<q>` tags for Quoted items for HTML5 output.
5630 The quote style can be changed by modifying the template
5631 or including a css file. A default quote style is included.
5633 * LaTeX reader: Fixed accents (\~{a}, `\c{c}`).
5634 Correctly handle \^{}. Support "minted" as a LaTeX verbatim block.
5636 * Updated LaTeX template for better language support.
5637 Use `polyglossia` instead of `babel` with xetex.
5638 Set `lang` as documentclass option.
5639 `\setmainlanguage` will use the last of a comma-separated
5640 list of languages. Thanks to François Gannaz.
5642 * Fixed default LaTeX template so `\euro` and `€` work. The
5643 `eurosym` package is needed if you are using pdflatex.
5645 * Fixed escaping of period in man writer (thanks to Michael Thompson).
5647 * Fixed list label positions in beamer.
5649 * Set `mainlang` variable in context writer.
5650 This parallels behavior of latex writer. `mainlang` is the last
5651 of a comma-separated list of languages in lang.
5653 * EPUB language metadat: convert e.g. `en_US` from locale to `en-US`.
5655 * Changed `-V` so that you can specify a key without a value.
5656 Such keys get the value `true`.
5658 * Fixed permissions on installed man pages - thanks Magnus Therning.
5660 * Windows installer: require XP or higher. The installer is
5661 now compiled on a Windows 7 machine, which fixes a problem
5662 using citation functions on Windows 7.
5664 * OSX package: Check for 64-bit Intel CPU before installing.
5666pandoc (1.9.1.1)
5668 * Better handling of raw latex environments in markdown. Now
5670 \begin{equation}
5671 a_1
5672 \end{equation}
5674 turns into a raw latex block as expected.
5676 * Improvements to LaTeX reader:
5678 + Skip options after block commands.
5679 + Correctly handle `{\\}` in braced.
5680 + Added a needed 'try'.
5681 + Citations: add `, ` to suffix if it doesn't start with space or
5682 punctuation. Otherwise we get no space between the year and the
5683 suffix in author-date styles.
5685 * Added two needed data files for S5. This fixes a problem with
5686 `pandoc -t s5 --self-contained`. Also removed `slides.min.js`,
5687 which was no longer being used.
5689 * Fixed some minor problems in `reference.docx`:
5690 name on "Date" style, `xCs` instead of `xIs`.
5692 * Fixed a problem creating docx files using a reference docx
5693 modified using Word. The problem seems to be that Word
5694 modifies `_rels/.rels`, changing the Type of the Relationship to
5695 `docProps/core.xml`. Pandoc now changes this back to the correct
5696 value if it has been altered, fixing the problem.
5698 * Fixed html5 template so it works properly with highlighting.
5700pandoc (1.9.1)
5702 * LaTeX reader:
5704 + Fixed regression in 1.9; properly handle escaped $ in latex math.
5705 + Put LaTeX verse environments in blockquotes.
5707 * Markdown reader:
5709 + Limit nesting of strong/emph. This avoids exponential lookahead
5710 in parasitic cases, like `a**a*a**a*a**a*a**a*a**a*a**a*a**a*a**`.
5711 + Improved attributes syntax (inn code blocks/spans):
5712 (1) Attributes can contain line breaks. (2) Values in key-value
5713 attributes can be surrounded by either double or single quotes, or
5714 left unquoted if they contain no spaces.
5716 * Don't wrap headers in markdown or RST writers.
5718 * Added `stateMaxNestingLevel` to `ParserState`.
5719 We set this to 6, so you can still have `Emph` inside `Emph`,
5720 just not indefinitely.
5722 * More efficient implementation of `nowrap` in `Text.Pandoc.Pretty`.
5724 * `Text.Pandoc.PDF`: Only run latex twice if `\tableofcontents`
5725 is present.
5727 * Require highlighting-kate >= 0.5.0.2, texmath >= 0.6.0.2.
5729pandoc (1.9.0.5)
5731 * Changed cabal file so that build-depends for the test program
5732 are not required unless the tests flag is used.
5734 * LaTeX writer: insert `{}` between adjacent hyphens so they don't
5735 form ligatures (dashes) in code spans.
5737pandoc (1.9.0.4)
5739 * Raised version bound on test-framework to avoid problems
5740 compiling tests on GHC 7.4.1.
5742 * LaTeX reader: Use raw LaTeX as fallback inline text for Cites,
5743 so citations don't just disappear unless you process with
5744 citeproc. Ignore `\bibliographystyle`, `\nocite`.
5746 * Simplified tex2pdf; it will always run latex twice to
5747 resolve table of contents and hyperrefs.
5749pandoc (1.9.0.3)
5751 * Require Cabal >= 1.10.
5752 * Tweaked cabal file to meet Cabal 1.10 requirements.
5754pandoc (1.9.0.2)
5756 * Allow build with json 0.4 or 0.5. Otherwise we can't build with
5757 ghc 6.12.
5759pandoc (1.9)
5761 [new features]
5763 * Added a Microsoft Word `docx` writer. The writer includes support
5764 for highlighted code and for math (which is converted from TeX to OMML,
5765 Office's native math markup language, using texmath's new OMML module).
5766 A new option `--reference-docx` allows the user to customize the
5767 styles.
5769 * Added an `asciidoc` writer (<http://www.methods.co.nz/asciidoc/>).
5771 * Better support for slide shows:
5773 + Added a `dzslides` writer. DZSlides is a lightweight HTML5/javascript
5774 slide show format due to Paul Rouget (<http://paulrouget.com/dzslides/>).
5776 + Added a LaTeX `beamer` writer. Beamer is a LaTeX package for creating
5777 slide presentations.
5779 + New, flexible rules for dividing documents into sections and slides
5780 (see the "Structuring the slide show" in the User's Guide). These
5781 are backward-compatible with the old rules, but they allow slide
5782 shows to be organized into sections and subsections containing
5783 multiple slides.
5785 + A new `--slide-level` option allows users to override defaults
5786 and select a slide level below the first header level with content.
5788 * A new `--self-contained` option produces HTML output that does not
5789 depend on an internet connection or the presence of any external
5790 files. Linked images, CSS, and javascript is downloaded (or fetched
5791 locally) and encoded in `data:` URIs. This is useful for making portable
5792 `HTML slide shows. The --offline` option has been deprecated and is now
5793 `treated as a synonym or --self-contained`.
5795 * Support for PDF output:
5797 + Removed the old `markdown2pdf`.
5798 + `pandoc` can now create PDFs (assuming you have latex and a set of
5799 appropriate packages installed): just specify an output file with the
5800 `.pdf` extension.
5801 + A new option `--latex-engine` allows you to specify `pdflatex`,
5802 `xelatex`, or `lualatex` as the processor.
5804 * Highlighting changes:
5806 + Syntax highlighting is now a standard feature; the `highlighting`
5807 flag is no longer needed when compiling.
5808 + A new `--no-highlight` option allows highlighting to be disabled.
5809 + Highlighting now works in `docx`, `latex`, and `epub`, as well as
5810 `html`, `html5`, `dzslides`, `s5`, and `slidy`.
5811 + A new `--highlight-style` option selects between various highlighting
5812 color themes.
5814 * Internal links to sections now work in ConTeXt and LaTeX as well as HTML.
5816 * LaTeX `\include` and `\usepackage` commands are now processed,
5817 provided the files are in the working directory.
5819 * EPUB improvements:
5821 + Internal and external links now work in EPUB.
5822 + Raw HTML is allowed.
5823 + New `--epub-embed-font` option.
5824 + Customizable templates for EPUB pages offer more control over
5825 formatting: `epub-page.html`, `epub-coverimage.html`,
5826 `epub-titlepage.html`.
5828 * `--mathml` now works with DocBook.
5830 * Added support for math in RST reader and writer. Inline math uses the
5831 `` :math:`...` `` construct. Display math uses
5833 .. math:: ...
5835 or if the math is multiline,
5837 .. math::
5839 ...
5841 These constructions are now supported now by `rst2latex.py`.
5843 * GitHub syntax for fenced code blocks is supported in pandoc's
5844 markdown. You can now write
5846 ```ruby
5847 x = 2
5848 ```
5850 instead of
5852 ~~~ {.ruby}
5853 x = 2
5854 ~~~~
5856 * Easier scripting: a new `toJsonFilter` function makes it easier to
5857 write Haskell scripts to manipulate the Pandoc AST.
5859 [behavior changes]
5861 * Fixed parsing of consecutive lists in markdown.
5862 Pandoc previously behaved like Markdown.pl for consecutive
5863 lists of different styles. Thus, the following would be parsed
5864 as a single ordered list, rather than an ordered list followed
5865 by an unordered list:
5867 1. one
5868 2. two
5870 - one
5871 - two
5873 This change makes pandoc behave more sensibly, parsing this as
5874 two lists. Any change in list type (ordered/unordered) or in
5875 list number style will trigger a new list. Thus, the following
5876 will also be parsed as two lists:
5878 1. one
5879 2. two
5881 a. one
5882 b. two
5884 Since we regard this as a bug in Markdown.pl, and not something
5885 anyone would ever rely on, we do not preserve the old behavior
5886 even when `--strict` is selected.
5888 * Dashes work differently with `--smart`: `---` is always em-dash,
5889 and `--` is always en-dash. Pandoc no longer tries to guess when
5890 `-` should be en-dash. *Note:* This may change how existing documents
5891 look when processed with pandoc. A new option, `--old-dashes`,
5892 is provided for legacy documents.
5894 * The markdown writer now uses setext headers for levels 1-2.
5895 The old behavior (ATX headers for all levels) can be restored
5896 using the new `--atx-headers` option.
5898 * Links are now allowed in markdown image captions. They are also
5899 allowed in links, but will appear there as regular text. So,
5901 [link with [link](/url)](/url)
5903 will turn into
5905 <p><a href="/url">link with link</a></p>
5907 * Improved handling of citations using `citeproc-hs-0.3.4`.
5908 Added `--citation-abbreviations` option.
5910 * Citation keys can no longer end with a punctuation character.
5911 This means that `@item1.` will be parsed as a citation with key
5912 'item1', followed by a period, instead of a citation with key
5913 'item1.', as was the case previously.
5915 * In HTML output, citations are now put in a span with class `citation`.
5917 * The markdown reader now recognizes DocBook block and inline tags.
5918 It was always possible to include raw DocBook tags in a markdown
5919 document, but now pandoc will be able to distinguish block from
5920 inline tags and behave accordingly. Thus, for example,
5922 <sidebar>
5923 hello
5924 </sidebar>
5926 will not be wrapped in `<para>` tags.
5928 * The LaTeX parser has been completely rewritten; it is now much more
5929 accurate, robust, and extensible. However, there are two important
5930 changes in how it treats unknown LaTeX. (1) Previously, unknown
5931 environments became BlockQuote elements; now, they are treated
5932 as "transparent", so `\begin{unknown}xyz\end{unknown}` is the
5933 same as `xyz`. (2) Previously, arguments of unknown commands
5934 were passed through with their braces; now the braces are stripped
5935 off.
5937 * `--smart` is no longer selected automatically with `man` output.
5939 * The deprecated `--xetex` option has been removed.
5941 * The `--html5`/`-5` option has been deprecated. Use `-t html5`
5942 instead. `html5` and `html5+lhs` are now separate output formats.
5944 * Single quotes are no longer escaped in HTML output. They do not
5945 need to be escaped outside of attributes.
5947 * Pandoc will no longer transform leading newlines in code
5948 blocks to `<br/>` tags.
5950 * The ODT writer now sizes images appropriately, using the image
5951 size and DPI information embedded in the image.
5953 * `--standalone` is once again implicitly for a non-text output format
5954 (ODT, EPUB). You can again do `pandoc test.txt -o test.odt`
5955 and get a standalone ODT file.
5957 * The Docbook writer now uses `<sect1>`, `<sect2>`, etc. instead of
5958 `<section>`.
5960 * The HTML writer now uses `<del>` for strikeout.
5962 * In HTML output with `--section-divs`, the classes `section` and
5963 `level[1,2,..6]` are put on the `div` tags so they can be styled.
5964 In HTML 5 output with `--section-divs`, the classes
5965 `level[1,2,...6]` are put on `section` tags.
5967 * EPUB writer changes:
5969 + The `lang` variable now sets the language
5970 in the metadata (if it is not set, we default to the locale).
5971 + EPUB: UTF-8 is used rather than decimal entities.
5973 * Added `titleslide` class to title slide in S5 template.
5975 * In HTML, EPUB, and docx metadata, the date is normalized into
5976 YYYY-MM-DD format if possible. (This is required for validation.)
5978 * Attributes in highlighted code blocks are now preserved in HTML.
5979 The container element will have the classes, id, and key-value attributes
5980 you specified in the delimited code block. Previously these were stripped
5981 off.
5983 * The reference backlink in the HTML writer no longer has a special
5984 `footnoteBacklink` class.
5986 * The HTML template has been split into `html` and `html5` templates.
5988 * Author and date are treated more consistently in HTML templates.
5989 Authors are now `<h2>`, date `<h3>`.
5991 * URLs are hyphenated in the ConTeXt writer (B. Scott Michel).
5993 * In `Text.Pandoc.Builder`, `+++` has been replaced by `<>`.
5995 [bug fixes]
5997 * Better support for combining characters and East Asian wide characters
5998 in markdown and reST.
6000 * Better handling of single quotes with `--smart`.
6001 Previously `D'oh l'*aide*` would be parsed with left and right single
6002 quotes instead of apostrophes. This kind of error is now fixed.
6004 * Highlighting: Use `reads` instead of `read` for better error handling.
6005 Fixes crash on `startNum="abc"`.
6007 * Added blank comment after directives in rst template.
6009 * Unescape entities in citation `refId`. The `refId`s coming
6010 from citeproc contain XML numeric entities, and these don't match with the
6011 citation keys parsed by pandoc. Solution is to unescape them.
6013 * HTML reader: Fixed bug parsing tables with both thead and tbody.
6015 * Markdown reader:
6017 + Better handling of escapes in link URLs and titles.
6018 + Fixed backslash escapes in reference links.
6019 + Fixed bug in table/hrule parsing, by checking that the top
6020 line of a table is not followed by a blank line. This bug caused
6021 slowdowns on some files with hrules and tables, as pandoc tried to
6022 interpret the hrules as the tops of multiline tables.
6023 + Fixed bug in code block attribute parser. Previously the ID attribute
6024 got lost if it didn't come first. Now attributes can come in any order.
6026 * RST reader: allow footnotes followed by newline without space characters.
6028 * LaTeX reader:
6030 + Ignore empty groups {}, { }.
6031 + LaTeX reader: Handle \@.
6032 + LaTeX reader: Don't crash on commands like `\itemsep`.
6033 + LaTeX reader: Better handling of letter environments.
6035 * RST writer: Fixed bug involving empty table cells. isSimple was being
6036 calculated in a way that assumed there were no non-empty cells.
6038 * ConTeXt writer:
6040 + Made `--toc` work even without `--number-sections`.
6041 + Escape # in link URLs.
6042 + Use buffering for footnotes containing code blocks.
6043 + Changed 'descr' to 'description', fixed alignment.
6045 * LaTeX writer:
6047 + Escape euro character.
6048 + Don't escape ~ inside href{...}.
6049 + Escape # in href URLs.
6050 + Improved detection of book classes. We now check the
6051 `documentclass` variable, and if that is not set, we look through
6052 the template itself. Also, we have added the KOMA classes scrreprt
6053 and scrbook. You can now make a book using
6054 `pandoc -V documentclass:book mybook.txt -o mybook.pdf`
6055 + LHS files now set the "listings" variable, so that the definition
6056 of the `code` environment will be included in the template.
6057 + Links are colored blue by default (this can be changed by
6058 modifying `hyperref` settings in the template).
6059 + Added `lang` variable to LaTeX template.
6061 * HTML writer:
6063 + Fixed bug in HTML template with html5 and mathml.
6064 + Don't use self-closing img, br, hr tags for HTML5.
6065 + Use `<section>` for footnotes if HTML5.
6066 + Update HTML templates to use Content-Style-Type meta tag.
6067 + Use separate variables for meta-date, meta-author.
6068 This makes footnotes work in author and date fields.
6069 + Use 'vertical-align:middle' in WebTeX math for better alignment.
6071 * S5/slidy writer: Make footnotes appear on separate slide at end.
6073 * MIME: Added 'layout-cache' to getMimeType. This ensures that the
6074 META-INF/manifest.xml for ODT files will have everything it needs, so
6075 that ODT files modified by LibreOffice can be used as `--reference-odt`.
6077 * `Text.Pandoc.Templates`: Return empty string for json template.
6079 * `Text.Pandoc.Biblio`:
6081 + Expand citations recursively inside nested inlines.
6082 + Treat `\160` as space when parsing locator and suffix.
6083 This fixes a bug with "p. 33" when `--smart` is used. Previously
6084 the whole "p. 33" would be included in the suffix, with no locator.
6085 + Put whole author-in-text citation in a Cite. Previously just the
6086 date and other info went in the Cite.
6087 + Don't add comma+space to prefix if it ends in punctuation.
6089 * Updated chicago-author-date.csl. The old version did not work
6090 properly for edited volumes with no author.
6092 * EPUB writer:
6094 + Add date to EPUB titlepage and metadata.
6095 + Added TOC identifier in EPUB page template.
6096 + Don't generate superfluous file `cover-image.jpg`.
6098 [under the hood improvements]
6100 * Modified `make_osx_package.sh` to use cabal-dev.
6101 Items are no longer installed as root.
6102 Man pages are zipped and given proper permissions.
6104 * Modified windows installer generater to use cabal-dev.
6106 * Setup: Making man pages now works with cabal-dev (at least on OSX). In
6107 Setup.hs we now invoke 'runghc' in a way that points it to the correct
6108 package databases, instead of always falling back to the default user
6109 package db.
6111 * Updated to work with GHC 7.4.1.
6113 * Removed dependency on old-time.
6115 * Removed dependency on dlist.
6117 * New slidy directory for "self-contained."
6119 * TeXMath writer: Use unicode thin spaces for thin spaces.
6121 * Markdown citations: don't strip off initial space in locator.
6123 [API changes]
6125 * Removed `Apostrophe`, `EmDash`, `EnDash`, and `Ellipses`
6126 from the native `Inline` type in pandoc-types. Now we use `Str`
6127 elements with unicode.
6129 * Improvements to `Text.Pandoc.Builder`:
6131 + `Inlines` and `Blocks` are now newtypes (not synonyms for
6132 sequences).
6133 + Instances are defined for `IsString`, `Show`, `Read`, `Monoid`,
6134 and a new `Listable` class, which allows these to be manipulated
6135 to some extent like lists. Monoid append includes automatic
6136 normalization.
6137 + `+++` has been replaced by `<>` (mappend).
6139 * Use blaze-html instead of xhtml for HTML generation.
6140 This changes the type of `writeHtml`.
6142 * `Text.Pandoc.Shared`:
6144 + Added `warn` and `err`.
6145 + Removed `unescapeURI`, modified `escapeURI`.
6146 (See under [behavior changes], above.)
6148 * Changes in URI escaping: Previously the readers escaped URIs by
6149 converting unicode characters to octets and then percent encoding.
6150 Now unicode characters are left as they are, and `escapeURI` only
6151 percent-encodes space characters. This gives more readable
6152 URIs, and works well with modern user agents. URIs are no longer unescaped
6153 at all on conversion to `markdown`, `asciidoc`, `rst`, `org`.
6155 * New module `Text.Pandoc.SelfContained`.
6157 * New module `Text.Pandoc.Docx`.
6159 * New module `Text.Pandoc.PDF`.
6161 * Added `writerBeamer` to `WriterOptions`.
6163 * Added `normalizeDate` to `Text.Pandoc.Shared`.
6165 * Added `splitStringWithIndices` in `Text.Pandoc.Shared`.
6166 This is like `splitWithIndices`, but it is sensitive to distinctions
6167 between wide, combining, and regular characters.
6169 * `Text.Pandoc.Pretty`:
6171 + Added `chomp` combinator.
6172 + Added `beforeNonBreak` combinator. This allows you to include
6173 something conditionally on it being before a nonblank.
6174 Used for RST inline math.
6175 + Added `charWidth` function. All characters marked W or F in the unicode
6176 spec EastAsianWidth.txt get width 2.
6177 + Added `realLength`, based on `charWidth`. `realLength` is now
6178 used in calculating offsets.
6180 * New module `Text.Pandoc.Slides`, for common functions for breaking
6181 a document into slides.
6183 * Removed `Text.Pandoc.S5`, which is no longer needed.
6185 * Removed `Text.Pandoc.CharacterReferences`. Moved
6186 `characterReference` to `Text.Pandoc.Parsing`.
6187 `decodeCharacterReferences` is replaced by `fromEntities`
6188 in `Text.Pandoc.XML`.
6190 * Added `Text.Pandoc.ImageSize`. This is intened for use
6191 in `docx` and `odt` writers, so the size and dpi of images
6192 can be calculated.
6194 * Removed `writerAscii` in `WriterOptions`.
6196 * Added `writerHighlight` to `WriterOptions`.
6198 * Added `DZSlides` to `HTMLSlideVariant`.
6200 * `writeEPUB` has a new argument for font files to embed.
6202 * Added `stateLastStrPos` to `ParserState`. This lets us keep track
6203 of whether we're parsing the position immediately after a regular
6204 (non-space, non-symbol) string, which is useful for distinguishing
6205 apostrophes from single quote starts.
6207 * `Text.Pandoc.Parsing`:
6209 + `escaped` now returns a `Char`.
6210 + Removed `charsInBalanced'`, added a character parser as
6211 a parameter of `charsInBalanced`. This is needed for
6212 proper handling of escapes, etc.
6213 + Added `withRaw`.
6215 * Added `toEntities` to `Text.Pandoc.XML`.
6217 * `Text.Pandoc.Readers.LaTeX`:
6219 + Export `handleIncludes`.
6220 + Export `rawLaTeXBlock` instead of `rawLaTeXEnvironment'`.
6222 * Added `ToJsonFilter` class and `toJsonFilter` function to
6223 `Text.Pandoc`, deprecating the old `jsonFilter` function.
6225 * `Text.Pandoc.Highlighting`:
6227 + Removed `highlightHtml`, `defaultHighlightingCss`.
6228 + Export `formatLaTeXInline`, `formatLaTeXBlock`, and `highlight`, plus
6229 key functions from highlighting-kate.
6230 + Changed types of highlighting function. `highlight` returns a
6231 `Maybe`, not an `Either`.
6233pandoc (1.8.2.1)
6235 * Relaxed cabal consntraints for test-framework (S. Trofimovich).
6237 * Relaxed cabal constraints for pandoc-types.
6239 * Adjusted Arbitrary instance to help avoid timeouts in tests.
6241 * Added `Tests.Writers.Markdown` to cabal file.
6243pandoc (1.8.2)
6245 * Added script to produce OS X package.
6247 * Made `templates` directory a git submodule. This should make it
6248 easier for people to revise their custom templates when the default
6249 templates change.
6251 * Changed template naming scheme: `FORMAT.template` -> `default.FORMAT`.
6252 **Note:** If you have existing templates in `~/.pandoc/templates`, you
6253 must rename them to conform to the new scheme!
6255 * Fixed smart quotes bug, now handling `'...hi'` properly.
6257 * RST reader:
6259 + Partial support for labeled footnotes.
6260 + Improved accuracy of `simpleReferenceName` parser.
6262 * HTML reader:
6264 + Substitute correct unicode characters for
6265 characters in the 128..159 range, which are often found even in
6266 HTML that purports to be UTF-8.
6268 * LaTeX reader: Handle `\subtitle` command (a subtitle is added
6269 to the title, after a colon and linebreak). Closes #280.
6271 * Leaner `reference.odt`.
6273 * Added unexported module `Text.Pandoc.MIME` for use in
6274 the ODT writer.
6276 * ODT writer: Construct `manifest.xml` based on archive contents.
6277 This fixes a bug in ODTs containing images. Recent versions of
6278 LibreOffice would reject these as corrupt, because `manifest.xml`
6279 did not contain a reference to the image files.
6281 * LaTeX writer:
6283 + Make verbatim environments flush to avoid spurious
6284 blank lines. Closes #277.
6285 + Use `\texttt` and escapes insntead of `\verb!...!`, which
6286 is too fragile (doesn't work in command arguments).
6287 + Use `\enquote{}` for quotes if the template includes
6288 the `csquotes` package. This provides better support for
6289 local quoting styles. (Thanks to Andreas Wagner for the idea.)
6291 * ConTeXt writer: Make `\starttyping`/`\stoptyping` flush with
6292 margin, preventing spurious blank lines.
6294 * Slidy writer:
6296 + Use non-minimized version of `slidy.css` with `--offline`
6297 option, so users can more easily edit it.
6298 + Also fixed a bug in the CSS that prevented proper centering
6299 of title (now reported and fixed upstream).
6301 * S5 writer:
6303 + Replaced `s5/default/slides.js.{comment,packed}` with
6304 new compressed `s5/default/slides.min.js`.
6305 + Use `data:` protocol to embed S5 CSS in `<link>` tags,
6306 when `--offline` is specified. Using inline CSS didn't
6307 work with Chrome or Safari. This fixes offline
6308 S5 on those browsers.
6310 * HTML writer: Removed English title on footnote backlinks.
6311 This is incongrous in non-English documents.
6313 * Docbook writer:
6315 + Use CALS tables. (Some older docbook software does not work
6316 well with XHTML tables.) Closes #77.
6317 + Use `programlisting` tags (instead of `screen`) for code blocks.
6319 * `markdown2pdf`:
6321 + Calls latex with `-halt-on-error -interaction nonstopmode` instead
6322 of `-interaction=batchmode`, which essentially just ignored errors,
6323 leading to bad results. Better to know when something is wrong.
6324 + Fixed issues with non-UTF-8 output of `pdflatex`.
6325 + Better error reporting.
6327 * `--mathjax` now takes an optional URL argument. If it is not
6328 provided, pandoc links directly to the (secure) mathjax CDN,
6329 as now recommended (thanks to dsanson).
6331 * Deprecated `--xetex` option in `pandoc`. It is no longer needed,
6332 since the LaTeX writer now produces a file that can be processed by
6333 `latex`, `pdflatex`, `lualatex`, or `xelatex`.
6335 * Introduced `--luatex` option to `markdown2pdf`. This causes `lualatex`
6336 to be used to create the PDF.
6338 * If a template specified with `--template` is not found, look for it
6339 in `datadir`. Also, if no extension is provided, supply one based
6340 on the writer. So now you can put your `special.latex` template in
6341 `~/.pandoc/templates`, and use it from any directory via
6342 `pandoc -t latex --template special`.
6344 * Default template improvements:
6346 + HTML: Display author and date after title.
6347 + HTML: Made table of contents more customizable. The container
6348 for the TOC is now in the template, so users can insert a header
6349 or other styling. (Thanks to Bruce D'Arcus for the suggestion.)
6350 + HTML, Slidy, S5: Enclose scripts in CDATA tags.
6351 + Slidy, S5: Added `s5-url` and `slidy-url` variables, instead of
6352 hard-coding. If you want to put your slidy files in the slidy
6353 subdirectory, for example, you can do
6354 `pandoc -t slidy -V slidy-url=slidy -s`.
6355 + LaTeX: Use `\and` to separate authors in LaTeX documents (reader
6356 & writer). Closes #279.
6357 + LaTeX: Use different `hyperref` options for `xetex`, fixing
6358 problems with unicode bookmarks (thanks to CircleCode).
6359 + LaTeX: Removed `ucs` package, use `utf8` rather than `utf8x`
6360 with `inputenc`. This covers fewer characters but is more
6361 robust with other packages, and `ucs` is unmaintained. Users
6362 who need better unicode support should use xelatex or lualatex.
6364pandoc (1.8.1.2)
6366 * Added `--epub-cover-image` option.
6368 * Documented `--biblatex` and `--natbib` options.
6370 * Allow `--section-divs` with slidy output. Resolves Issue #296.
6372 * Disallow notes within notes in reST and markdown.
6373 These previously caused infinite looping and stack overflows.
6374 For example:
6376 [^1]
6378 [^1]: See [^1]
6380 Note references are allowed in reST notes, so this isn't a full
6381 implementation of reST. That can come later. For now we need to
6382 prevent the stack overflows. Partially resolves Issue #297.
6384 * EPUB writer: Allow non-plain math methods.
6386 * Forbid ()s in citation item keys. Resolves Issue #304: problems with
6387 `(@item1; @item2)` because the final paren was being parsed as part of
6388 the item key.
6390 * Changed URI parser so it doesn't include trailing punctuation.
6391 So, in RST, `http://google.com.` should be parsed as a link followed by a
6392 period. The parser is smart enough to recognize balanced parentheses, as
6393 often occur in wikipedia links: `http://foo.bar/baz_(bam)`.
6395 * Markdown+lhs reader: Require space after inverse bird tracks, so that
6396 HTML tags can be used freely at the left margin of a markdown+lhs document.
6397 Thanks to Conal Elliot for the suggestion.
6399 * Markdown reader:
6401 + Improved emph/strong parsing; fixes bug found by Perry Wagle.
6402 + Fixed bug in footnote order (reported by CircleCode).
6404 * RST reader:
6405 + Fixed bug in in field lists with multi-line items at the
6406 end of the list.
6407 + Added parentheses to RST `specialChars`, so
6408 `(http://google.com)` will be parsed as a link in parens.
6409 Resolves Issue #291.
6410 + Allow `|` followed by newline in RST line block.
6412 * LaTeX reader:
6413 + Support `\dots`.
6414 + Gobble option & space after linebreak `\\[10pt]`.
6416 * Textile reader:
6417 + Make it possible to have colons after links. (qerub)
6418 + Make it possible to have colons after links. (Christoffer Sawicki)
6420 * HTML reader:
6421 + Skip spaces after `<b>`, `<emph>`, etc.
6422 + Handle tbody, thead in simple tables. Closes #274.
6423 + Implicit `Para`s instead of `Plains` in some contexts.
6425 * OpenDocument writer: Use special `First paragraph` style for
6426 first paragraph after most non-paragraph blocks. This allows users to
6427 specify e.g. that only paragraphs after the first paragraph of a block are
6428 to be indented. Thanks to Andrea Rossato for the patch. Closes #20.
6430 * LaTeX writer: use `deVerb` on table and picture captions.
6431 Otherwise LaTeX complains about `\verb` inside command argument.
6432 Thanks to bbanier for reporting the bug.
6434 * Markdown writer: Insert HTML comment btw list and indented code block.
6435 This prevents the code block from being interpreted as part of the list.
6437 * EPUB writer: Add a meta element specify the cover.
6438 Some EPUB e-readers, such as the Nook, require a meta element inside the
6439 OPF metadata block to ensure the cover image is properly displayed.
6440 (Kelsey Hightower)
6442 * HTML writer: Use embed tag for images with non-image extensions.
6443 (e.g. PDFs). Closes #264.
6445 * LaTeX writer: Improved tables.
6447 + More space between lines, top-align cells.
6448 + Use ctable package, which allows footnotes and
6449 provides additional options.
6450 + Made cell alignments work in multiline tables.
6451 + Closes #271, #272.
6453 * Un-URI-escape image filenames in LaTeX, ConTeXt, RTF, Texinfo.
6454 Also do this when copying image files into EPUBs and ODTs.
6455 Closes #263.
6457 * Changed to github issue tracker.
6459 * Added failing emph/strong markdown test case due to Perry Wagle.
6461 * Slidy improvements:
6462 + Updated to use Slidy2.
6463 + Fixed bug, unclosed div tag.
6464 + Added `duration` variable in template.
6465 Setting this activates the timer.
6466 + Use 'titlepage' instead of 'cover' for title div.
6468pandoc (1.8.1.1)
6470 * `markdown2pdf`: Removed some debugging lines accidentally included
6471 in the 1.8.1 release. With those lines, the temp directory is created
6472 in the working directory, and it is not deleted. This fix restores
6473 the original behavior.
6475pandoc (1.8.1)
6477 * Added `--ascii` option. Currently supported only in HTML writer,
6478 which it causes to use numerical entities instead of UTF-8.
6480 * EPUB writer: `--toc` now works to provide a table of contents
6481 at the beginning of each chapter.
6483 * LaTeX writer: Change figure defaults to `htbp`.
6484 This prevents "too many unprocessed floats." Resolves
6485 Issue #285.
6487 * `Text.Pandoc.UTF8`: Encode filenames even when using recent
6488 base.
6490 * `markdown2pdf`: Fixed filename encoding issues. With help from Paulo
6491 Tanimoto. Resolves Issue #286.
6493 * HTML writer: Put line breaks in section divs.
6495 * `Text.Pandoc.Shared`: Make `writerSectionDivs` default to False.
6497pandoc (1.8.0.3)
6499 * Fixed Source-repository stanza in cabal file.
6501pandoc (1.8.0.2)
6503 * HTML writer:
6505 + Stringify alt text instead of converting to HTML.
6506 + Break lines after block elements, not inside tags.
6507 HTML output now closely resembles that of tidy. Resolves Issue #134.
6509 * Markdown reader: Fixed bug in footnote block parser (pointed out
6510 by Jesse Rosenthal). The problem arose when the blank line
6511 at the end of a footnote block contained indenting spaces.
6513 * Shared: Improved 'normalize' function so it normalizes Spaces too.
6514 In normal form, Space elements only occur to separate two non-Space
6515 elements. So, we never have [Space], or [, ..., Space].
6517 * Tests:
6519 + Improved Arbitrary instance.
6520 + Added timeout for test instances.
6522 * README:
6524 + Added section on four-space rule for lists. Resolves Issue #283.
6525 + Clarified optional arguments on math options.
6527 * markdown2pdf: Fixed bug with output file extensions.
6528 Previously `markdown2pdf test.txt -o test.en.pdf` would produce
6529 `test.pdf`, not `test.en.pdf`. Thanks to Paolo Tanimoto for the fix.
6531pandoc (1.8.0.1)
6533 * Revised Interact.hs so that it works with the CPP macros
6534 in the UTF8 module.
6536 * Revised Setup.hs so that we don't call MakeManPage.hs unless
6537 the man pages are out of date.
6539pandoc (1.8)
6541 [new features]
6543 * Support for citations using Andrea Rossato's `citeproc-hs` 0.3.
6544 You can now write, for example,
6546 Water is wet [see @doe99, pp. 33-35; also @smith04, ch. 1].
6548 and, when you process your document using `pandoc`, specifying
6549 a citation style using `--csl` and a bibliography using `--bibliography`,
6550 the citation will be replaced by an appropriately formatted
6551 citation, and a list of works cited will be added to the end
6552 of the document.
6554 This means that you can switch effortlessly between different citation
6555 and bibliography styles, including footnote, numerical, and author-date
6556 formats. The bibliography can be in any of the following formats: MODS,
6557 BibTeX, BibLaTeX, RIS, EndNote, EndNote XML, ISI, MEDLINE, Copac, or JSON.
6558 See the README for further details.
6560 Citations are supported in the markdown reader, using a special
6561 syntax, and in the LaTeX reader, using natbib or biblatex syntax.
6562 (Thanks to Nathan Gass for the natbib and biblatex support.)
6564 * New `textile` reader and writer. Thanks to Paul Rivier for contributing
6565 the `textile` reader, an almost complete implementation of the textile
6566 syntax used by the ruby [RedCloth library](http://redcloth.org/textile).
6567 Resolves Issue #51.
6569 * New `org` writer, for Emacs Org-mode, contributed by Puneeth Chaganti.
6571 * New `json` reader and writer, for reading and writing a JSON
6572 representation of the native Pandoc AST. These are much faster
6573 than the `native` reader and writer, and should be used for
6574 serializing Pandoc to text. To convert between the JSON representation
6575 and native Pandoc, use `encodeJSON` and `decodeJSON` from
6576 `Text.JSON.Generic`.
6578 * A new `jsonFilter` function in `Text.Pandoc` makes it easy
6579 to write scripts that transform a JSON-encoded pandoc document.
6580 For example:
6582 -- removelinks.hs - removes links from document
6583 import Text.Pandoc
6584 main = interact $ jsonFilter $ bottomUp removeLink
6585 where removeLink (Link xs _) = Emph xs
6586 removeLink x = x
6588 To use this to remove links while translating markdown to LaTeX:
6590 pandoc -t json | runghc removelinks.hs | pandoc -f json -t latex
6592 * Attributes are now allowed in inline `Code` elements, for example:
6594 In this code, `ulist ! [theclass "special"] << elts`{.haskell} is...
6596 The attribute syntax is the same as for delimited code blocks.
6597 `Code` inline has an extra argument place for attributes, just like
6598 `CodeBlock`. Inline code will be highlighted in HTML output, if pandoc
6599 is compiled with highlighting support. Resolves Issue #119.
6601 * New `RawBlock` and `RawInline` elements (replacing `RawHtml`,
6602 `HtmlInline`, and `TeX`) provide lots of flexibility in writing
6603 scripts to transform Pandoc documents. Scripts can now change
6604 how each element is rendered in each output format.
6606 * You can now define LaTeX macros in markdown documents, and pandoc
6607 will apply them to TeX math. For example,
6609 \newcommand{\plus}[2]{#1 + #2}
6610 $\plus{3}{4}$
6612 yields `3+4`. Since the macros are applied in the reader, they
6613 will work in every output format, not just LaTeX.
6615 * LaTeX macros can also be used in LaTeX documents (both in math
6616 and in non-math contexts).
6618 * A new `--mathjax` option has been added for displaying
6619 math in HTML using MathJax. Resolves issue #259.
6621 * Footnotes are now supported in the RST reader. (Note, however,
6622 that unlike docutils, pandoc ignores the numeral or symbol used in
6623 the note; footnotes are put in an auto-numbered ordered list.)
6624 Resolves Issue #258.
6626 * A new `--normalize` option causes pandoc to normalize the AST
6627 before writing the document. This means that, for example,
6628 `*hi**there*` will be rendered as `<em>hithere</em>`
6629 instead of `<em>hi</em><em>there</em>`. This is not the default,
6630 because there is a significant performance penalty.
6632 * A new `--chapters` command-line option causes headers
6633 in DocBook, LaTeX, and ConTeXt to start with "chapter" (level one).
6634 Resolves Issue #265.
6636 * In DocBook output, `<chapter>` is now used for top-level
6637 headers if the template contains `<book>`. Resolves Issue #265.
6639 * A new `--listings` option in `pandoc` and `markdown2pdf` causes
6640 the LaTeX writer to use the listings package for code blocks.
6641 (Thanks to Josef Svennigsson for the pandoc patch, and Etienne
6642 Millon for the markdown2pdf patch.)
6644 * `markdown2pdf` now supports `--data-dir`.
6646 * URLs in autolinks now have class "url" so they can be styled.
6648 * Improved prettyprinting in most formats. Lines will be wrapped
6649 more evenly and duplicate blank lines avoided.
6651 * New `--columns` command-line option sets the column width for
6652 line wrapping and relative width calculations for tables.
6654 * Made `--smart` work in HTML, RST, and Textile readers, as well
6655 as markdown.
6657 * Added `--html5` option for HTML5 output.
6659 * Added support for listings package in LaTeX reader
6660 (Puneeth Chaganti).
6662 * Added support for simple tables in the LaTeX reader.
6664 * Added support for simple tables in the HTML reader.
6666 * Significant performance improvements in many readers and writers.
6668 [API and program changes]
6670 * Moved `Text.Pandoc.Definition` from the `pandoc` package to a new
6671 auxiliary package, `pandoc-types`. This will make it possible for other
6672 programs to supply output in Pandoc format, without depending on the whole
6673 pandoc package.
6675 * Added `Attr` field to `Code`.
6677 * Removed `RawHtml`, `HtmlInline`, and `TeX` elements; added generic
6678 `RawBlock` and `RawInline`.
6680 * Moved generic functions to `Text.Pandoc.Generic`. Deprecated
6681 `processWith`, replacing it with two functions, `bottomUp` and `topDown`.
6682 Removed previously deprecated functions `processPandoc` and `queryPandoc`.
6684 * Added `Text.Pandoc.Builder`, for building `Pandoc` structures.
6686 * `Text.Pandoc` now exports association lists `readers` and `writers`.
6688 * Added `Text.Pandoc.Readers.Native`, which exports `readNative`.
6689 `readNative` can now read full pandoc documents, block lists, blocks,
6690 inline lists, or inlines. It will interpret `Str "hi"`
6691 as if it were `Pandoc (Meta [] [] []) [Plain [Str "hi"]]`.
6692 This should make testing easier.
6694 * Removed deprecated `-C/--custom-header` option.
6695 Use `--template` instead.
6697 * `--biblio-file` has been replaced by `--bibliography`.
6698 `--biblio-format` has been removed; pandoc now guesses the format
6699 from the file extension (see README).
6701 * pandoc will treat an argument as a URI only if it has an
6702 `http(s)` scheme. Previously pandoc would treat some
6703 Windows pathnames beginning with `C:/` as URIs.
6705 * The `--sanitize-html` option and the `stateSanitize` field in
6706 `ParserState` have been removed. Sanitization is better done in the
6707 resulting HTML using `xss-sanitize`, which is based on pandoc's
6708 sanitization, but improved.
6710 * pandoc now adds a newline to the end of its output in fragment
6711 mode (= not `--standalone`).
6713 * Added support for `lang` in `html` tag in the HTML template,
6714 so you can do `pandoc -s -V lang=es`, for example.
6716 * `highlightHtml` in `Text.Pandoc.Highlighting` now takes
6717 a boolean argument that selects between "inline" and
6718 "block" HTML.
6720 * `Text.Pandoc.Writers.RTF` now exports `rtfEmbedImage`.
6721 Images are embedded in RTF output when possible (png, jpeg).
6722 Resolves Issue #275.
6724 * Added `Text.Pandoc.Pretty`. This is better suited for pandoc than the
6725 `pretty` package. Changed all writers that used
6726 `Text.PrettyPrint.HughesPJ` to use `Text.Pandoc.Pretty` instead.
6728 * Rewrote `writeNative` using the new prettyprinting module. It is
6729 now much faster. The output has been made more consistent and compressed.
6730 `writeNative` is also now sensitive to writerStandalone`, and will simply
6731 `print a block list if writerStandalone` is False.
6733 * Removed `Text.Pandoc.Blocks`. `Text.Pandoc.Pretty` allows you to define
6734 blocks and concatenate them, so a separate module is no longer needed.
6736 * `Text.Pandoc.Shared`:
6738 + Added `writerColumns`, `writerChapters`, and `writerHtml5` to
6739 `WriterOptions`.
6740 + Added `normalize`.
6741 + Removed unneeded prettyprinting functions:
6742 `wrapped`, `wrapIfNeeded`, `wrappedTeX`, `wrapTeXIfNeeded`, `hang'`,
6743 `BlockWrapper`, `wrappedBlocksToDoc`.
6744 + Made `splitBy` take a test instead of an element.
6745 + Added `findDataFile`, refactored `readDataFile`.
6746 + Added `stringify`. Rewrote `inlineListToIdentifier` using `stringify`.
6747 + Fixed `inlineListToIdentifier` to treat '\160' as ' '.
6749 * `Text.Pandoc.Readers.HTML`:
6751 + Removed `rawHtmlBlock`, `anyHtmlBlockTag`, `anyHtmlInlineTag`,
6752 `anyHtmlTag`, `anyHtmlEndTag`, `htmlEndTag`, `extractTagType`,
6753 `htmlBlockElement`, `htmlComment`
6754 + Added `htmlTag`, `htmlInBalanced`, `isInlineTag`, `isBlockTag`,
6755 `isTextTag`
6757 * Moved `smartPunctuation` from `Text.Pandoc.Readers.Markdown`
6758 to `Text.Pandoc.Readers.Parsing`, and parameterized it with
6759 an inline parser.
6761 * Added `nonspaceChar` to `Text.Pandoc.Parsing`.
6763 * Ellipses are no longer allowed to contain spaces.
6764 Previously we allowed '. . .', ' . . . ', etc. This caused
6765 too many complications, and removed author's flexibility in
6766 combining ellipses with spaces and periods.
6768 * Allow linebreaks in URLs (treat as spaces). Also, a string of
6769 consecutive spaces or tabs is now parsed as a single space. If you have
6770 multiple spaces in your URL, use `%20%20`.
6772 * `Text.Pandoc.Parsing`:
6774 + Removed `refsMatch`.
6775 + Hid `Key` constructor.
6776 + Removed custom `Ord` and `Eq` instances for `Key`.
6777 + Added `toKey` and `fromKey` to convert between `Key` and `[Inline]`.
6778 + Generalized type on `readWith`.
6780 * Small change in calculation of relative widths of table columns.
6781 If the size of the header > the specified column width, use
6782 the header size as 100% for purposes of calculating
6783 relative widths of columns.
6785 * Markdown writer now uses some pandoc-specific features when `--strict`
6786 is not specified: `\` newline is used for a hard linebreak instead of
6787 two spaces then a newline. And delimited code blocks are used when
6788 there are attributes.
6790 * HTML writer: improved gladTeX output by setting ENV appropriately
6791 for display or inline math (Jonathan Daugherty).
6793 * LaTeX writer: Use `\paragraph`, `\subparagraph` for level 4,5 headers.
6795 * LaTeX reader:
6797 + `\label{foo}` and `\ref{foo}` now become `{foo}` instead of `(foo)`.
6798 + `\index{}` commands are skipped.
6800 * Added `fontsize` variable to default LaTeX template.
6801 This makes it easy to set the font size using `markdown2pdf`:
6802 `markdown2pdf -V fontsize=12pt input.txt`.
6804 * Fixed problem with strikeout in LaTeX headers when using
6805 hyperref, by adding a command to the default LaTeX template
6806 that disables `\sout` inside pdf strings. Thanks to Joost Kremers
6807 for the fix.
6809 * The `COLUMNS` environment variable no longer has any effect.
6811 [under-the-hood improvements]
6813 * Pandoc now compiles with GHC 7. (This alone leads to a
6814 significant performance improvement, 15-20%.)
6816 * Completely rewrote HTML reader using tagsoup as a lexer. The
6817 new reader is faster and more accurate. Unlike the
6818 old reader, it does not get bogged down on some input
6819 (Issues #277, 255). And it handles namespaces in tags
6820 (Issue #274).
6822 * Replaced `escapeStringAsXML` with a faster version.
6824 * Rewrote `spaceChar` and some other parsers in Text.Pandoc.Parsing
6825 for a significant performance boost.
6827 * Improved performance of all readers by rewriting parsers.
6829 * Simplified Text.Pandoc.CharacterReferences by using
6830 entity lookup functions from TagSoup.
6832 * `Text.Pandoc.UTF8` now uses the unicode-aware IO functions
6833 from `System.IO` if base >= 4.2. This gives support for
6834 windows line endings on windows.
6836 * Remove duplications in documentation by generating the
6837 pandoc man page from README, using `MakeManPage.hs`.
6839 * README now includes a full description of markdown syntax,
6840 including non-pandoc-specific parts. A new `pandoc_markdown`
6841 man page is extracted from this, so you can look up markdown
6842 syntax by doing `man pandoc_markdown`.
6844 * Completely revised test framework (with help from Nathan Gass).
6845 The new test framework is built when the `tests` Cabal flag is set. It
6846 includes the old integration tests, but also some new unit and quickcheck
6847 tests. Test output has been much improved, and you can now specify a glob
6848 pattern after `cabal test` to indicate which tests should be run;
6849 for example `cabal test citations` will run all the citation tests.
6851 * Added a shell script, `stripansi.sh`, for filtering ANSI control
6852 sequences from test output: `cabal test | ./stripansi.sh > test.log`.
6854 * Added `Interact.hs` to make it easier to use ghci while developing.
6855 `Interact.hs` loads `ghci` from the `src` directory, specifying
6856 all the options needed to load pandoc modules (including
6857 specific package dependencies, which it gets by parsing
6858 dist/setup-config).
6860 * Added `Benchmark.hs`, testing all readers + writers using criterion.
6862 * Added `stats.sh`, to make it easier to collect and archive
6863 benchmark and lines-of-code stats.
6865 * Added upper bounds to all cabal dependencies.
6867 * Include man pages in extra-source-files. This allows users to
6868 install pandoc from the tarball without needing to build the man
6869 pages.
6871 [bug fixes]
6873 * Filenames are encoded as UTF8. Resolves Issue #252.
6875 * Handle curly quotes better in `--smart` mode. Previously, curly quotes
6876 were just parsed literally, leading to problems in some output formats.
6877 Now they are parsed as `Quoted` inlines, if `--smart` is specified.
6878 Resolves Issue #270.
6880 * Text.Pandoc.Parsing: Fixed bug in grid table parser.
6881 Spaces at end of line were not being stripped properly,
6882 resulting in unintended LineBreaks.
6884 * Markdown reader:
6886 + Allow HTML comments as inline elements in markdown.
6887 So, `aaa <!-- comment --> bbb` can be a single paragraph.
6888 + Fixed superscripts with links: `^[link](/foo)^` gets
6889 recognized as a superscripted link, not an inline note followed by
6890 garbage.
6891 + Fixed regression, making markdown reference keys case-insensitive again.
6892 Resolves Issue #272.
6893 + Properly handle abbreviations (like `Mr.`) at the end of a line.
6894 + Better handling of intraword underscores, avoiding exponential
6895 slowdowns in some cases. Resolves Issue #182.
6896 + Fixed bug in alignments in tables with blank rows in the header.
6898 * RST reader:
6900 + Field lists now allow spaces in field names, and
6901 block content in field values. (Thanks to Lachlan Musicman
6902 for pointing out the bug.)
6903 + Definition list items are now always `Para` instead of
6904 `Plain`, matching behavior of `rst2xml.py`.
6905 + In image blocks, the description is parsed properly and
6906 used for the alt attribute, not also the title.
6907 + Skip blank lines at beginning of file. Resolves
6908 Debian #611328.
6910 * LaTeX reader:
6912 + Improved parsing of preamble.
6913 Previously you'd get unexpected behavior on a document that
6914 contained `\begin{document}` in, say, a verbatim block.
6915 + Allow spaces between `\begin` or `\end` and `{`.
6916 + Support `\L` and `\l`.
6917 + Skip comments inside paragraphs.
6919 * LaTeX writer:
6921 + Escape strings in `\href{..}`.
6922 + In nonsimple tables, put cells in `\parbox`.
6924 * OpenDocument writer: don't print raw TeX.
6926 * Markdown writer:
6928 + Fixed bug in `Image`. URI was getting unescaped twice!
6929 + Avoid printing extra blank lines at the end if there are
6930 no notes or references.
6932 * LaTeX and ConTeXt: Escape `[` and `]` as `{[}` and `{]}`.
6933 This avoids unwanted interpretation as an optional argument.
6935 * ConTeXt writer: Fixed problem with inline code. Previously
6936 `}` would be rendered `\type{}}`. Now we check the string for '}' and '{'.
6937 If it contains neither, use `\type{}`; otherwise use `\mono{}`
6938 with an escaped version of the string.
6940 * `:` now allowed in HTML tags. Resolves Issue #274.
6942pandoc (1.6)
6944 [ John MacFarlane ]
6946 * New EPUB and HTML Slidy writers. (Issue #122)
6948 - EPUB is a standard ebook format, used in Apple's iBooks for
6949 the iPad and iPhone, Barnes and Noble's nook reader, the Sony
6950 reader, and many other devices.
6951 - Slidy, like S5, is a system for producing HTML+javascript slide
6952 shows.
6954 * All input is assumed to be UTF-8, no matter what the locale and ghc
6955 version, and all output is UTF-8. This reverts to pre-1.5 behavior.
6956 Also, a BOM, if present, is stripped from the input.
6958 * Markdown now supports grid tables, whose cells can contain
6959 arbitrary block elements. (Issue #43)
6961 * Sequentially numbered example lists in markdown with `@` marker.
6963 * Markdown table captions can begin with a bare colon and no longer need
6964 to include the English word "table." Also, a caption can now occur
6965 either before or after the table. (Issue #227)
6967 * New command-line options:
6969 - `--epub-stylesheet` allows you to specify a CSS file that will
6970 be used to style your ebook.
6971 - `--epub-metadata` allows you to specify metadata for the ebook.
6972 - `--offline` causes the generated HTML slideshow to include all
6973 needed scripts and stylesheets.
6974 - `--webtex` causes TeX math to be converted to images using the
6975 Google Charts API (unless a different URL is specified).
6976 - `--section-divs` causes div tags to be added around each section
6977 in an HTML document. (Issue #230, 239)
6979 * Default behavior of S5 writer in standalone mode has changed:
6980 previously, it would include all needed scripts and stylesheets
6981 in the generated HTML; now, only links are included unless
6982 the `--offline` option is used.
6984 * Default behavior of HTML writer has changed. Between 1.2 and 1.5,
6985 pandoc would enclose sections in div tags with identifiers on the
6986 div tags, so that the sections can be manipulated in javascript.
6987 This caused undesirable interactions with raw HTML div tags. So,
6988 starting with 1.6, the default is to put the identifiers directly
6989 on the header tags, and not to include the divs. The `--section-divs`
6990 option selects the 1.2-1.5 behavior.
6992 * API changes:
6994 - `HTMLMathMethod`: Added `WebTeX`, removed `MimeTeX`.
6995 - `WriterOptions`: Added `writerUserDataDir`, `writerSourceDirectory`,
6996 `writerEPUBMetadata` fields. Removed `writerIncludeBefore`,
6997 `writerIncludeAfter`.
6998 - Added `headerShift` to `Text.Pandoc.Shared`.
6999 - Moved parsing code and `ParserState` from `Text.Pandoc.Shared`
7000 to a new module, `Text.Pandoc.Parsing`.
7001 - Added `stateHasChapters` to `ParserState`.
7002 - Added `HTMLSlideVariant`.
7003 - Made `KeyTable` a map instead of an association list.
7004 - Added accessors for `Meta` fields (`docTitle`, `docAuthors`,
7005 `docDate`).
7006 - `Pandoc`, `Meta`, `Inline`, and `Block` have been given `Ord`
7007 instances.
7008 - Reference keys now have a type of their own (`Key`), with its
7009 own `Ord` instance for case-insensitive comparison.
7010 - Added `Text.Pandoc.Writers.EPUB`.
7011 - Added `Text.Pandoc.UUID`.
7012 - Removed `Text.Pandoc.ODT`, added `Text.Pandoc.Writers.ODT`.
7013 Removed `saveOpenDocumentAsODT`, added `writeODT`.
7014 - Added `Text.Pandoc.Writers.Native` and `writeNative`.
7015 Removed `prettyPandoc`.
7016 - Added `Text.Pandoc.UTF8` for portable UTF8 string IO.
7017 - Removed `Text.Pandoc.Writers.S5` and the `writeS5` function.
7018 Moved `s5Includes` to a new module, `Text.Pandoc.S5`.
7019 To write S5, you now use `writeHtml` with `writerSlideVariant`
7020 set to `S5Slides` or `SlidySlides`.
7022 * Template changes. If you use custom templates, please update them,
7023 particularly if you use syntax highlighting with pandoc. The old HTML
7024 templates hardcoded highlighting CSS that will no longer work with
7025 the most recent version of highlighting-kate.
7027 - HTML template: avoid empty meta tag if no date.
7028 - HTML template: Use default highlighting CSS from highlighting-kate
7029 instead of hard-coding the CSS into the template.
7030 - HTML template: insert-before text goes before the title, and
7031 immediately after the <body> tag, as documented. (Issue #241)
7032 - Added slidy and s5 templates.
7033 - Added amssymb to preamble of latex template. (github Issue 1)
7035 * Removed excess newlines at the end of output. Note: because output
7036 will not contain an extra newline, you may need to make adjustments
7037 if you are inserting pandoc's output into a template.
7039 * In S5 and slidy, horizontal rules now cause a new slide, so you
7040 are no longer limited to one slide per section.
7042 * Improved handling of code in man writer. Inline code is now monospace,
7043 not bold, and code blocks now use .nf (no fill) and .IP (indented para).
7045 * HTML reader parses `<tt>` as Code. (Issue #247)
7047 * html+lhs output now contains bird tracks, even when compiled without
7048 highlighting support. (Issue #242)
7050 * Colons are now no longer allowed in autogenerated XML/HTML identifiers,
7051 since they have a special meaning in XML.
7053 * Code improvements in ODT writer. Remote images are now replaced with
7054 their alt text rather than a broken link.
7056 * LaTeX reader improvements:
7058 - Made latex `\section`, `\chapter` parsers more forgiving of
7059 whitespace.
7060 - Parse `\chapter{}` in latex.
7061 - Changed `rawLaTeXInline` to accept `\section`, `\begin`, etc.
7062 - Use new `rawLaTeXInline'` in LaTeX reader, and export `rawLaTeXInline`
7063 for use in markdown reader.
7064 - Fixes bug wherein `\section{foo}` was not recognized as raw TeX
7065 in markdown document.
7067 * LaTeX writer: images are automatically shrunk if they would extend
7068 beyond the page margin.
7070 * Plain, markdown, RST writers now use unicode for smart punctuation.
7072 * Man writer converts math to unicode when possible, as in other writers.
7074 * `markdown2pdf` can now recognize citeproc options.
7076 * Command-line arguments are converted to UTF-8. (Issue #234)
7078 * `Text.Pandoc.TeXMath` has been rewritten to use texmath's parser.
7079 This allows it to handle a wider range of formulas. Also, if a formula
7080 cannot be converted, it is left in raw TeX; formulas are no longer
7081 partially converted.
7083 * Unicode curly quotes are left alone when parsing smart quotes. (Issue
7084 #143)
7086 * Cabal file changes:
7088 - Removed parsec < 3 restriction.
7089 - Added 'threaded' flag for architectures where GHC lacks a threaded
7090 runtime.
7091 - Use 'threaded' only for markdown2pdf; it is not needed for pandoc.
7092 - Require highlighting-kate 0.2.7.
7094 * Use explicit imports from `Data.Generics`. Otherwise we have a
7095 conflict with the 'empty' symbol, introduced in syb >= 0.2. (Issue #237)
7097 * New data files: slidy/slidy.min.js, slidy/slidy.min.css, epub.css.
7099pandoc (1.5.1.1)
7101 [ John MacFarlane ]
7103 * Fixed uniqueIdent in Shared so that header identifiers work as
7104 advertized in the README and are are valid XHTML names.
7106pandoc (1.5.1)
7108 [ John MacFarlane ]
7110 * Fixed treatment of unicode characters in URIs.
7111 + Shared now exports escapeURI and unescapeURI. These handle
7112 UTF8 encoding and decoding as well as URI escaping/unescaping.
7113 + Shared: uri and emailAddress now return a pair of the original
7114 parsed text and the escaped URI (in the latter case, with
7115 the mailto: prefix).
7116 + HTML reader: unsanitaryURI has been modified to allow unicode
7117 high characters in a URI.
7118 + Readers: All link and image URIs are now escaped using
7119 escapeURI.
7120 + Markdown and RST writers: unescapeURI is used so that URIs
7121 in these formats are human-readable.
7123 * Setup.hs: Don't assume that the build directory is "dist".
7124 Instead, get it from localBuildInfo.
7126 * OpenDocument writer: Use a Map for stTextStyleAttr.
7127 This avoids duplicates (and invalid xml). Resolves Issue #222.
7129pandoc (1.5.0.1)
7131 [ John MacFarlane ]
7133 * HTML writer: Fixed error in math writer (with MathML option)
7134 that caused an infinite loop for unparsable MathML.
7136pandoc (1.5)
7138 [ John MacFarlane ]
7140 * Added --mathml option. When this is selected, pandoc will convert
7141 TeX math into MathML.
7142 + Added data/MathMLinHTML.js, which is included when no URL is
7143 provided for --mathml. This allows MathML to be displayed (in
7144 better browsers) as text/html.
7145 + Removed Text.Pandoc.LaTeXMathML. The module was no longer
7146 necessary; it was replaced by two lines in pandoc.hs.
7147 + Replaced LaTeXMathML.js.commend and LaTeXMathML.js.packed with a
7148 single combined file, LaTeXMathML.js.
7150 * Added --data-dir option.
7151 This specifies a user data directory. If not specified, will default
7152 to ~/.pandoc on unix or Application Data\pandoc on Windows.
7153 Files placed in the user data directory will override system default
7154 data files.
7156 * Added Maybe datadir parameter to readDataFile, saveOpenDocumentAsODT,
7157 latexMathMLScript, s5HeaderIncludes, and getDefaultTemplate. If
7158 Nothing, no user directory is searched for an override.
7160 * Added 'plain' output format. This is similar to markdown, but
7161 removes links, pictures, inline formatting, and most anything that
7162 looks even vaguely markupish. The function writePlain is exported by
7163 Text.Pandoc.Writers.Markdown, with which it shares most of its code.
7165 * Allow multi-line titles and authors in meta block.
7166 Titles may span multiple lines, provided continuation lines
7167 begin with a space character. Separate authors may be put on
7168 multiple lines, provided each line after the first begins with
7169 a space character. Each author must fit on one line. Multiple
7170 authors on a single line may still be separated by a semicolon.
7171 Based on a patch by Justin Bogner.
7173 * When given an absolute URI as parameter, pandoc will try to fetch
7174 the content via HTTP. So you can do:
7175 'pandoc -r html -w markdown http://www.fsf.org'
7176 Adds dependency on HTTP.
7178 * Made HTML reader much more forgiving.
7179 + Incorporated idea (from HXT) that an element can be closed
7180 by an open tag for another element.
7181 + Javascript is partially parsed to make sure that a <script>
7182 section is not closed by a </script> in a comment or string.
7183 + More lenient non-quoted attribute values.
7184 Now we accept anything but a space character, quote, or <>.
7185 This helps in parsing e.g. www.google.com!
7186 + Bare & signs are now parsed as a string. This is a common
7187 HTML mistake.
7188 + Skip a bare < in malformed HTML.
7190 * Removed html2markdown and hsmarkdown.
7191 + html2markdown is no longer needed, since you can now pass URI
7192 arguments to pandoc and directly convert web pages. (Note,
7193 however, that pandoc assumes the pages are UTF8. html2markdown
7194 made an attempt to guess the encoding and convert them.)
7195 + hsmarkdown is pointless -- a large executable that could be
7196 replaced by 'pandoc --strict'.
7198 * In most writers, an image in a paragraph by itself is now rendered
7199 as a figure, with the alt text as the caption. (Texinfo, HTML, RST,
7200 MediaWiki, Docbook, LaTeX, ConTeXt, HTML.) Other images are
7201 rendered inline.
7203 * Depend on extensible-exceptions. This allows pandoc to be compiled
7204 on GHC 6.8.
7206 * Added --base-header-level option. For example, --base-header-level=2
7207 will change level 1 headers to level 2, level 2 to level 3, etc.
7208 Closes Debian #563416.
7210 * Incomplete support for RST tables (simple and grid).
7211 Thanks to Eric Kow. Colspans and rowspans not yet supported.
7213 * Added accessors (docTitle, docAuthors, docDate) to Meta type.
7215 * MediaWiki writer: format links with relative URLs as wikilinks.
7216 The new rule: If the link target is an absolute URL, an external
7217 link is created. Otherwise, a wikilink is created.
7219 * Text.Pandoc.Shared: Export uniqueIdent, and don't allow tilde in
7220 identifier. Note: This may break links to sections that involve
7221 tildes.
7223 * Markdown(+lhs) reader: handle "inverse bird tracks."
7224 Inverse bird tracks (<) are used for haskell example code that is not
7225 part of the literate Haskell program. Resolves Issue #211.
7227 * LaTeX reader:
7228 + Recognize '\ ' (interword space).
7229 + Recognize nonbreaking space '~'.
7230 + Ignore \section, \pdfannot, \pdfstringdef. Ignore alt title in
7231 section headers. Don't treat \section as inline LaTeX.
7232 Resolves Issue #202.
7233 + LaTeX reader: allow any special character to be escaped.
7234 Resolves Issue #221.
7235 + LaTeX reader: treat \paragraph and \subparagraph as level 4, 5
7236 headers. Resolves Issue #207.
7238 * Use template variables for include-before/after.
7239 + These options now imply -s; previously they worked also in fragment
7240 mode.
7241 + Users can now adjust position of include-before and include-after
7242 text in the templates.
7243 + Default position of include-before moved back (as it was before 1.4)
7244 before table of contents.
7245 + Resolves Issue #217.
7247 * Don't print an empty table header: (all writers).
7248 Resolves Issue #210.
7250 * HTML, Docbook writer: Use tbody, thead, and cols in tables.
7252 * HTML writer: Don't include TOC div if table of contents is empty.
7254 * Markdown writer: Fixed citations.
7255 Previously the markdown writer printed raw citation codes, e.g.
7256 [geach1970], rather than the expanded citations provided by
7257 citeproc, e.g. (Geach 1970). Now it prints the expanded citations.
7258 This means that the document produced can be processed as a markdown
7259 document without citeproc. Thanks to dsanson for reporting, and
7260 Andrea Rossato for the patch.
7262 * Improved and simplified title block in context template.
7263 Previously it caused an error if there was no title.
7264 This method should also be easier for users to customize.
7266 * Markdown reader:
7267 + Treat p., pp., sec., ch., as abbreviations in smart mode.
7268 + Disallow blank lines in inline code span.
7269 + Allow footnotes to be indented < 4 spaces.
7270 This fixes a regression. A test case has been added.
7271 + Escape spaces in URLs as %20. Previously they were incorrectly
7272 escaped as +, which is appropriate only for the query part of
7273 a URL. Resolves Issue #220.
7274 + Require two spaces after capital letter + period for list item.
7275 Otherwise "E. coli" starts a list. This might change the semantics
7276 of some existing documents, since previously the two-space
7277 requirement was only enforced when the second word started
7278 with a capital letter. But it is consistent with the existing
7279 documentation and follows the principle of least surprise.
7280 Resolves Issue #212.
7282 * LaTeX template: redefine labelwidth when using enumerate package.
7283 Otherwise the list labels (numbers) often extend past the left
7284 margin, which looks bad.
7286 * Mediawiki writer: Don't print a "== Notes ==" header before
7287 references. This is too English-centric. Writers can provide their
7288 own header at the end of the document.
7290 * Promoted mediawiki headers. '= head =' is now level 1, '== head =='
7291 level 2, etc. This seems to be correct; it's only by convention
7292 that wikipedia articles have level 2 headers at most.
7293 Patch due to Eric Kow.
7295 * RunTests.hs: Set LANG to a UTF-8 locale. Use 'pandoc --data-dir=' so
7296 data files don't need to have been installed. This removes the need to
7297 set HOME.
7299 * HTML reader:
7300 + Handle spaces before <html>. Resolves Issue #216.
7301 + Be forgiving in parsing a bare list within a list.
7302 The following is not valid xhtml, but the intent is clear:
7303 <ol>
7304 <li>one</li>
7305 <ol><li>sub</li></ol>
7306 <li>two</li>
7307 </ol>
7308 We'll treat the <ol> as if it's in a <li>. Resolves Issue #215.
7310 * Updated INSTALL instructions. cabal method is now promoted.
7312 * Updated markdown2pdf man page. It no longer says all pandoc options
7313 are accepted.
7315 * README/man pages: Removed advice to pipe through tidy before HTML
7316 reader. This is obsolete, now that we have a forgiving HTML parser.
7318 * LaTeX writer: set numbersections template variable, so
7319 the section numbering options work again.
7321 * Removed obsolete Makefile.
7323 * Website: renamed index.txt.in -> index.txt.
7325 * New batch file to make-windows-installer.
7326 + Removed old Makefile.windows
7327 + Added make-windows-installer.bat
7328 + Modified default installer name in pandoc-setup.iss
7330 * Removed freebsd and macports directories.
7331 They are no longer up to date.
7333 * Setup.hs:
7334 + Made man page building sensitive to build verbosity.
7335 + Improved detection of highlighting support in test hook.
7336 + Install wrapper scripts into cabal bin directory.
7337 + Also simplified installManpages.
7338 + Setup.hs: install manpages to mandir. Code borrowed from darcs.
7340 * Changed default of writerXeTeX to False.
7342 * HTML writer: don't include empty UL if --toc but no sections.
7343 Resolves Issue #199.
7345 * LaTeX writer:
7347 + If book, report, or memoir documentclass, use \chapter{}
7348 for first-level headers. Otherwise use \section{}.
7349 + Removed stLink, link template variable. Reason: we now always
7350 include hyperref in the template.
7352 * LaTeX template:
7354 + Only show \author if there are some.
7355 + Always include hyperref package. It is used not just for links but
7356 for toc, section heading bookmarks, footnotes, etc. Also added
7357 unicode=true on hyperref options.
7359 * markdown2pdf: always do at least two runs. hyperref bookmarks
7360 require this.
7362 * cabal file: Removed unneeded dependency on template-haskell.
7364 * Windows installer - fixed bug in data file locations.
7365 Resolves Issue #197.
7367 * Deprecated --custom-header in documentation.
7368 Removed old "Custom Headers" section in README.
7370pandoc (1.4)
7372 [ John MacFarlane ]
7374 * Pandoc will now compile with either GHC 6.10 or 6.12.
7375 + Don't use System.IO.UTF8 when compiling with 6.12
7376 + Use -fno-warn-unused-do-bind option when compiling with 6.12
7378 * Replaced old headers with templates. Now users have much more
7379 control over the way documents appear in --standalone mode,
7380 and writer code is simplified. Resolves Issues #59, 147.
7381 Every effort has been made to retain backwards compatibilty.
7382 So, the --custom-header option should still work as before.
7384 + Added Text.Pandoc.Templates. This provides functions for
7385 retrieving default templates and for rendering templates.
7386 + System templates (in the pandoc data directory) can be
7387 overridden by user templates in $HOME/.pandoc/templates.
7388 + Removed Text.Pandoc.DefaultHeaders.
7389 + Removed data/headers directory.
7390 + Added templates directory.
7391 + Added writerTemplate and writerVariables fields to WriterOptions.
7392 + Removed writerTitlePrefix, writerHeader fields from WriterOptions.
7393 + Changed --print-default-header to --print-default-template.
7394 + Added --template option.
7395 + Added -V/--variable option to set custom template variables.
7397 * Pandoc no longer requires Template Haskell. Resolves Issue #186.
7399 + Removed need for TH in ODT module. Instead get reference.odt from
7400 data file at run time.
7401 + Removed TH dependency from S5 module. S5 module now exports
7402 s5HeaderIncludes, which pandoc.hs includes if writer is s5 and
7403 standalone.
7404 + Refactored LaTeXMathML not to use TH.
7406 * Meta is now Meta [Inline] [[Inline]] [Inline] rather than
7407 Meta [Inline] [String] String. Authors and date in Meta are now lists
7408 of Inline elements rather than raw strings. This means that they can
7409 be formatted and can include footnotes. NOTE: This may be a breaking
7410 change for those using pandoc as a library.
7412 * Added readDataFile to Text.Pandoc.Shared. This retrieves
7413 a data file from the user pandoc data directory (~/.pandoc
7414 on unix), or, if not found there, from the system data
7415 directory ($CABALDIR/shared/pandoc-VERSION/). All data
7416 files, including templates, LaTeXMathML.js, s5 styles,
7417 and reference.odt, can be overridden by the user.
7419 * s5 files moved from data/ui/default to s5/default.
7421 * Use unicode instead of entities in HTML and XML output. Resolves
7422 Issue #163.
7424 * Prettier HTML footnote references: put anchor inside sup,
7425 instead of other way. Resolves Issue #191. Thanks to
7426 infinity0x.
7428 * Added --xetex option to pandoc and markdown2pdf.
7429 If --xetex is specified, pandoc produces latex suitable for
7430 processing by xelatex, and markdown2pdf uses xelatex to create
7431 the PDF. Resolves Issue #185.
7433 * RTF writer: multiple authors now occupy multiple paragraphs rather
7434 than using a line break.
7436 * Man writer: now the "--after-body" will come after the "AUTHORS"
7437 section, whereas before it would come before it. This is a
7438 slight break from backwards compatibility.
7440 * Added --reference-odt option, so users may customize the styles
7441 used in pandoc-generated ODT files. Users may also place a
7442 default reference.odt in the ~\.pandoc directory.
7444 * ODT writer:
7445 + Indented and line-broke styles.xml so it can be modified more easily.
7446 + Omitted some unnecessary style declarations.
7447 + Don't wrap text in OpenDocument writer. The tags are too long, making
7448 wrapping ugly and pointless.
7450 * LaTeX reader: use \\ to separate multiple authors.
7452 * Markdown reader: use ; as separator between authors.
7453 This allows you to use ',' within author names: e.g. "John Jones, Jr."
7455 * S5 writer: use linebreak to separate authors in title page.
7457 * RST reader: Allow :: before lhs code block. The RST spec requires the
7458 :: before verbatim blocks. This :: should not be treated as literal
7459 colons. Resolves Issue #189.
7461 * Documented pandoc 1.3's new definition list syntax in README.
7462 (An oversight in the last release.)
7464 * markdown2pdf.hs:
7465 + interpret ! in a log as an error line.
7466 + --toc now works properly.
7468 * Changes in RunTests.hs:
7469 + Use the Diff library rather than a local copy of Diff.hs.
7470 (This vastly increases performance.) This change means that 'cabal
7471 test' presupposes that the Diff library is installed.
7472 + Removed tests/Diff.hs from cabal file.
7473 + Changed RunTests to use local environment. We need at least HOME, so
7474 pandoc can find its data directory.
7476 * Updated windows installer to install data files in the app directory.
7478 * Windows installer now installs portable wrappers hsmarkdown and
7479 markdown2pdf.
7481pandoc (1.3)
7483 [ John MacFarlane ]
7485 * Added --id-prefix option (Issue #41). This adds a prefix to all
7486 automatically generated HTML identifiers, which helps prevent
7487 duplicate identifiers when you're generating a fragment (say a blog
7488 post).
7490 * Added --indented-code-classes option. This specifies classes
7491 to use for indented code blocks. (Patch due to buttock; Issue #87.)
7493 * --number-sections now affects HTML output as well as ConTeXt and LaTeX
7494 (Issue #150).
7496 * Improved syntax for markdown definition lists (Issue #24).
7497 Definition lists are now more compatible with PHP Markdown Extra.
7498 + You can have multiple definitions for a term (but still not
7499 multiple terms).
7500 + Multi-block definitions no longer need a column before each block
7501 (indeed, this will now cause multiple definitions).
7502 + The marker no longer needs to be flush with the left margin,
7503 but can be indented at or two spaces. Also, ~ as well as :
7504 can be used as the marker (this suggestion due to David
7505 Wheeler.)
7506 + There can now be a blank line between the term and the
7507 definitions.
7509 * Better looking simple tables. Resolves Issue #180.
7510 + Markdown reader: simple tables are now given column widths of 0.
7511 + Column width of 0 is interpreted as meaning: use default column width.
7512 + Writers now include explicit column width information only
7513 for multiline tables. (Exception: RTF writer, which requires
7514 column widths. In this case, columns are given equal widths,
7515 adding up to the text width.)
7516 + Simple tables should now look better in most output formats.
7518 * Allow markdown tables without headers (Issue #50).
7519 The new syntax is described in README. Also allow optional line of
7520 dashes at bottom of simple tables.
7522 * Compensate for width of final table column (Issue #144).
7524 * Treat a backslash followed by a newline as a hard line break
7525 in markdown. Resolves Issue #154. This is a nice alternative
7526 to markdown's "invisible" way of indicating hardline breaks
7527 using lines that end with two spaces.
7529 * Improved performance of markdown reader by ~10% by eliminating the
7530 need for a separate parsing pass for notes. Raw notes are now stored
7531 on the first pass (which parses references), then parsed when the
7532 note is inserted into the AST. The stateNotes field in ParserState
7533 is now a list of [(String, String)] pairs instead of [(String,
7534 [Block])].
7536 * In markdown reader, treat 4 or more * or _ in a row as literal
7537 text. (Trying to parse long strings of * or _ as strong or emph
7538 leads to exponential performance problems.)
7540 * Markdown reader: Use + rather than %20 for spaces in URLs.
7542 * Fixed htmlComment parser, adding a needed 'try'.
7544 * Don't print raw HTML in man output.
7546 * Allow . _ and ~ in header identifiers.
7548 * Specially mark code blocks that were "literate" in the input.
7549 They can then be treated differently in the writers. This allows
7550 authors to distinguish bits of the literate program they are writing
7551 from source code examples, even if the examples are marked as
7552 Haskell for highlighting. (Issue #174.)
7554 * Modified html+lhs output to use "haskell" highlighter instead
7555 of "literateHaskell". The highlighting module now adds bird tracks
7556 after highlighting (for HTML output), if the code block has the
7557 "literate" class. This gives better results, because kate's
7558 haskell highlighter is much better than the literateHaskell
7559 highlighter.
7561 * Fixed handling of footnotes in titles (HTML) and headers (LaTeX).
7562 (Issue #137.)
7564 * Support for "..code-block" directive in RST reader. Not core
7565 RST, but used in Sphinx for code blocks annotated with syntax
7566 information. Thanks to Luke Plant for the patch.
7568 * Added "head" to list of block-level HTML tags. Resolves
7569 Issue #108.
7571 * Added stripTags to Text.Pandoc.XML. This is used in the HTML writer.
7573 * Set utf-8 encoding in texinfo headers.
7575 * Docbook writer: add ids to sections. Use link for internal links.
7576 (Issue #60.)
7578 * Blank lines after lists in MediaWiki writer.
7580 * Properly handle commented-out list items in markdown.
7581 Resolves Issue #142. Example:
7583 - a
7584 <!--
7585 - b
7586 -->
7587 - c
7589 * Changed heuristic in compactify. compactify has to decide whether a
7590 Para that ends a list is a Para intentionally, or just because of
7591 the blank lines at the end of every list. In the latter case the
7592 Para is turned to a Plain. The old heuristic was: change final Para
7593 to Plain iff the other items all end in Plain. This produces bad
7594 results when, for example, an item contains just a Plain and an HTML
7595 comment, as it does in the list above. The new heuristic: change
7596 final Para to Plain iff the other items don't contain a Para.
7598 * Added % as an rst underline character. Resolves Issue #173.
7600 * Fix inline math parser so that \$ is allowed in math.
7601 Resolves Issue #169.
7603 * Translate \int (integral) into unicode when using unicode math
7604 method. Resolves Issue #177.
7606 * markdown2pdf.hs improvements:
7607 + Use System.IO.UTF8.
7608 + Print error messages on last attempt.
7609 + Do not create a backup when overwriting a PDF (Issue #166).
7610 + Accept --longopt=val options.
7611 + Added man/man1/markdown2pdf.1 to extra-tmp-files in cabal, so that
7612 it is properly cleaned.
7614 * Added haddock comments warning that readers assume \n line endings.
7616 * Updated COPYRIGHT file.
7618 * Makefile: Changed EXECSBASE so it doesn't pull in hsmarkdown &
7619 markdown2pdf. Otherwise strip tries to strip shell scripts when you
7620 install using 'make'.
7622 * Changed Makefile so it doesn't build Haskell wrappers.
7624 * Fixed Makefile so it doesn't try to build man pages in build-doc.
7626 * Install pcre3.dll in Windows install script; this allows us to
7627 package a version of pandoc with highlighting support.
7629pandoc (1.2.1)
7631 [ John MacFarlane ]
7633 * Fixed regression with --preserveTabs. Brought back optPreserveTabs.
7634 The trick of setting tabStop to 0 to mean "preserve tabs" had a bad
7635 side effect: strings of 0 spaces were interpreted as indentation.
7636 So, with --preserve-tabs, unindented paragraphs were treated as
7637 code. Resolves Issue #138.
7639 * HTML writer: wrap sections in divs. Resolves Issue #70.
7641 + hierarchicalize has been rationalized; it builds a hierarchical
7642 representation of the document from the headers, and simultaneously
7643 gives each section a unique identifier based on the heading title.
7644 + Identifiers are now attached to the divs rather than
7645 to the headers themselves.
7646 + Table of content backlinks go to the beginning of the table, rather
7647 than to the section reference that was clicked.
7648 + Code for constructing identifiers has been moved to Text.Pandoc.Shared
7649 from the HTML writer, since it is now consumed only by
7650 hierarchicalize.
7651 + In --strict mode, pandoc just prints bare headings, as before
7652 (unless --toc has been specified).
7653 + In s5 output, it does not wrap sections in divs, as that seems to
7654 confuse the s5 javascript.
7656 * Man writer: break lines at end of each sentence. groff expects this
7657 and treats '.' and '?' differently when followed by line ending as
7658 opposed to ordinary space. Also, don't escape periods. Instead, use
7659 zero-width character \& to avoid unwanted interpretation of periods
7660 at start of line. Resolves Issue #148.
7662 * Markdown writer: Added '#' and '>' to list of characters to be
7663 escaped in markdown output. Removed '<', as it is not an officially
7664 escapable character. This partially resolves Issue #96.
7666 * Make --smart the default for man output format. Otherwise we have
7667 trouble dividing lists of endlines into sentences.
7669 * DocBook writer: Use language attribute to indicate source language
7670 in code blocks.
7672 * RST reader:
7674 + Allow # to continue list, even if the list was started with an
7675 explicit marker. For example:
7677 A. my list
7678 #. continued
7680 Resolves Issue #140.
7681 + Allow continuation lines in line blocks. Also added test cases for
7682 line blocks for RST reader. Resolves Issue #149.
7683 + Allow explicit links with spaces in URL: `link <to this>`_
7685 * Improved LaTeX reader's coverage of math modes. Remove displaymath*
7686 (which is not in LaTeX) and recognize all the amsmath environments
7687 that are alternatives to eqnarray, namely equation, equation*,
7688 gather, gather*, gathered, multline, multline*, align, align*,
7689 alignat, alignat*, aligned, alignedat, split. Resolves Issue #103.
7690 Thanks to shreevatsa.public for the patch.
7692 * Markdown reader:
7694 + Allow -, _, :, . in markdown attribute names. These are legal in
7695 XML attribute names.
7696 + Use non-breaking spaces in abbreviations.
7697 + Markdown reader: improved efficiency of abbreviation parsing.
7698 Instead of a separate abbrev parser, we just check for
7699 abbreviations each time we parse a string. This gives a huge
7700 performance boost with -S. Resolves Issue #141.
7702 * Improved efficiency of shared parsers: hexNum, htmlComment,
7703 whitespace, indentSpaces.
7705 * Export HTMLMathMethod in Text.Pandoc.
7707 * Export languagesByExtension in Text.Pandoc.Highlighting.
7709 * Added new Haskell version of markdown2pdf, due to
7710 Paulo Tanimoto. This should be more portable than the old
7711 shell script.
7713 * Made 'pandoc -v' more explicit about compiler options.
7714 Resolves Issue #139.
7716 * pandoc.hs: Made --strict compatible with --standalone, --toc.
7718 * Use Paths_pandoc to get version number, instead of hard-coding it
7719 into Text/Pandoc.hs.
7721pandoc (1.2)
7723 [ John MacFarlane ]
7725 * Added support for literate Haskell. lhs support is triggered by
7726 '+lhs' suffixes in formats. For example, 'latex+lhs' is literate
7727 Haskell LaTeX. '.lhs' files are treated by default as literate
7728 markdown.
7730 + Added stateLiterateHaskell to parser state.
7731 + Added parser for lhsCodeBlock to Markdown, RST, LaTeX readers.
7732 + Added parser for |inline lhs| to LaTeX reader.
7733 + Added writerLiterateHaskell to WriterOptions.
7734 + Added lhs support to Markdown, RST, LaTeX, HTML writers.
7735 + Added definition of code environment to LaTeX header.
7736 + Added tests (run only if highlighting support compiled in).
7737 + Documented lhs features in man page and README.
7739 * In Text.Pandoc.Definition, added processWith, processWithM,
7740 and queryWith, and deprecated processPandoc and queryPandoc
7741 for these more general functions.
7743 * Fixed bug in mediawiki writer: improper closing tags in tables.
7744 Thanks to Benct Philip Jonsson for reporting the bug.
7746 * Added --email-obfuscation option.
7748 + Added writer option for email obfuscation.
7749 + Implemented email obfuscation options in HTML writer.
7750 + Added option to option parser.
7751 + Documented in README and pandoc man page.
7752 + Resolves Issue #97.
7754 * LaTeX writer: fixed bug with empty table cells.
7755 Resolves Issue #107. Thanks to rodja.trappe for the patch.
7757 * Fixed bug with header spacing in Markdown and RST writers.
7758 A null header (Meta [] [] []) should not cause a blank line
7759 at the beginning of output. But a blank line is needed between
7760 a non-null header and the main text.
7762 * Markdown reader: Relax spacing rules for $$ in display math. Now
7763 space and newlines are allowed after the opening $$ and before the
7764 closing $$. However, the display math cannot contain an entirely
7765 blank line. Resolves Issue #105.
7767 * Markdown reader: Gobble space after Plain blocks containing only
7768 raw html inline. Otherwise following header blocks are not parsed
7769 correctly, since the parser sees blank space before them. Resolves
7770 Issue #124.
7772 * Markdown reader: Allow " as well as '' to end a latex double-quote.
7774 * Conditionally depend on syb and base >= 4 if ghc >= 6.10.
7775 Resolves Issue #109.
7777 * Fixed problems in RST and markdown output due to bug in pretty-1.0.1.0
7779 + Added hang' function to Text.Pandoc.Shared; this will be used instead
7780 of hang, which doesn't work properly in pretty-1.0.1.0. When pretty
7781 is upgraded, we can go back to hang.
7782 See http://article.gmane.org/gmane.comp.lang.haskell.general/16687
7783 + Use hang' (and some different techniques) in RST and markdown writers.
7784 Some output is now a bit different.
7786 * Brought citeproc support up to date for citeproc-hs-0.2.
7787 (Patch by Andrea Rossato.)
7789 * Moved all haskell source to src subdirectory. Renamed Main.hs to
7790 pandoc.hs.
7792 * Rewrote hsmarkdown in Haskell for portability (src/hsmarkdown.hs).
7793 For now, keeping the old shell script too.
7795 * Added TemplateHaskell to Extensions for executable, removed
7796 -threaded for library. Thanks to duncan.coutts for the bug report.
7797 Resolves Issue #121.
7799 * Moved some Extra-Source-Files to Data-Files.
7801 * Moved tabFilter to Shared.
7803 * In pandoc.hs, removed optPreserveTabs; instead, tabstop of 0 means
7804 preserve tabs.
7806 * Minor code cleanup based on hlint suggestions.
7808pandoc (1.1)
7810 [ John MacFarlane ]
7812 * Main.hs:
7814 + Changed date on copyright message in Main.hs.
7815 + Have the '-v' option print syntax highlighting languages
7816 separated by commas, and wrapped in lines, instead of in five
7817 columns as before.
7819 * Added --jsmath option. Resolves Issue #68.
7821 + Added --jsmath option to Main.hs
7822 + Added JsMath to HTMLMathMethod in Text.Pandoc.Shared.
7823 + Handle math appropriately in HTML writer when JsMath selected.
7824 + Documented the option in README and man page.
7826 * Text.Pandoc.Shared: Changed compactify to use a better heuristic
7827 for tight and loose lists. Final Para is changed to Plain if all
7828 other list items *end* with a Plain block. Addresses Issue #99.
7830 * HTML reader:
7832 + Added colons to protocols in unsanitaryURI. Closes Issue #88.
7833 + HTML reader: Don't interpret contents of <pre> blocks as markdown.
7834 Added rawVerbatimBlock parser. Resolves Issue #94.
7836 * Markdown reader:
7838 + Allow URLs with spaces in them in links and references, but escape
7839 them as "%20".
7840 + Allow blank space at the end of horizontal rules.
7842 * RST reader: Modified 'unknownDirective' parser to handle comment
7843 blocks correctly, and added tests for comment blocks. Resolves Issue
7844 #86. Closes Debian Bug #500662.
7846 * HTML writer:
7848 + Include classes on tr elements in HTML output:
7849 "header", "odd", "even". This allows tables to be styled with
7850 lines in alternating colors. Resolves Issue #91.
7851 + Enclose all LaTeXMathML bits in <span class="LaTeX">.
7852 This prevents parts of the document that are not math from being
7853 interpreted as math by LaTeXMathML.js.
7855 * OpenDocument and ODT writers: Added support for HorizontalRule elements,
7856 which were formerly ignored. Resolves Issue #95.
7858 * Text.Pandoc.Shared: Modified wrappedTeX to eliminate the line break
7859 between a footnote and immediately following nonspace characters in
7860 LaTeX and ConTeXt output. (This gets interpreted as a space, which
7861 is not desired in cases like "text^[note]---".) Resolves Issue #93.
7863 * Windows installer: Don't require admin privileges to run
7864 installer. Modified pandoc-setup.iss, and changed modpath.iss to
7865 modify HKCU path if user lacks admin privileges. Also fixed case
7866 where oldpath is empty (previously this led to the new path
7867 beginning with a semicolon).
7869 * Updated INSTALL instructions for Arch packages and OS X install using
7870 cabal-install.
7872 * Removed the (now unneeded) debian directory.
7873 Removed empty Codec and System directories.
7875 * Moved odt-styles/ to data/. Removed unneeded variable in Makefile.
7877 * Modified Setup.hs so that the "test" target returns an error status
7878 when tests fail, and "build" returns a success status if
7879 the build succeeds. Resolves Issue #100.
7881 * Added BUGS to files in tarball.
7884pandoc (1.0.0.1)
7886 [ John MacFarlane ]
7888 * Removed spurious reference to pdf output format from pandoc(1) man page.
7890pandoc (1.0)
7892 [ Andrea Rossato ]
7894 * Added new OpenDocument writer.
7896 * Added support for SmallCaps inline element.
7898 * Added support for integrating pandoc with citeproc-hs.
7900 + Added Cite element to definition and writers.
7901 + Added Text.Pandoc.Biblio module
7902 + Note: This support is included only if the 'citeproc'
7903 Cabal configuration flag is set.
7905 * Made Pandoc data structure an instance of Typeable.
7906 Added new processPandoc and queryPandoc functions, to query
7907 or transform matching elements in a Pandoc structure.
7909 [ Peter Wang ]
7911 * Added new Texinfo writer.
7913 [ John MacFarlane ]
7915 * Changes to Texinfo writer:
7917 + No space between paragraph and following @verbatim (provides more
7918 pleasing appearance in text formats)
7919 + Blank line consistently after list environments.
7920 + Removed deVerb.
7921 + Use @code instead of @verb for inline code (this solves the character
7922 escaping problem for texi2dvi and texi2pdf).
7923 + Added news of Texinfo writer to README.
7924 + Added Texinfo to list of formats in man page, and removed extra 'groff'.
7925 + Added texi & texinfo extensions to Main.hs, and fixed bug in determining
7926 default output extension.
7927 + Modified disallowedInNode in Texinfo writer to correct list of disallowed characters.
7929 * Added tests for OpenDocument writer.
7931 * Added ODT writer (using zip-archive library to package output of
7932 OpenDocument writer). Added odt-styles directory with default ODT styles.
7934 * Added new mediawiki writer and tests.
7936 * Markdown reader: Added support for delimited code blocks, with optional
7937 syntax highlighting using highlighting-kate (if the 'highlighting'
7938 configuration option is selected).
7940 + Currently highlighting is supported only in the HTML writer.
7941 + Delimited code blocks can have attributes; using the language name as
7942 class triggers highlighting.
7943 + New Attributes parameter in CodeBlock structure.
7944 + --version now indicates whether syntax highlighting support is compiled
7945 in, and prints a list of supported languages
7947 * Removed debian directory. Pandoc is no longer a native debian package.
7949 * Changes to build process: pandoc can now be built from the repository
7950 using Cabal. No unix tools are needed (so, pandoc can be built on Windows
7951 without Cygwin).
7953 + Include shell scripts themselves in repo, rather than generating from wrappers.
7954 Removed wrappers directory and wrappers Makefile target.
7955 + Text/Pandoc/ASCIIMathML.hs, Text/Pandoc/DefaultHeaders.hs,
7956 and Text/Pandoc/Writers/S5.hs are no longer built in Makefile
7957 from templates in the templates/ directory. Instead, they use template
7958 haskell to read data at compile time from the relevant files in data/.
7959 Template haskell functions go in a new module, Text.Pandoc.TH.
7960 + man pages are now generated in Setup.hs hook, not by Makefile
7961 + Makefile 'tarball' target now calls Cabal's 'sdist'
7962 + Added "Extra-Source-Files" to pandoc.cabal, so sdist contains everything needed
7963 + Added "Build-Type" field to pandoc.cabal to avoid warning.
7964 + Added to "Extra-source-files" and "Extra-tmp-files" in pandoc.cabal,
7965 so 'sdist' and 'clean' will work properly.
7966 + Setup.hs now generates man pages in a postbuild hook.
7967 + Added dependency-checking to Setup.hs, so it only rebuilds things
7968 that need rebuilding.
7969 + Added 'library' and 'executable' configuration flags.
7970 Cabal can now be told to build just the library or just the executable.
7971 + CABALOPTS may now be specified with 'make' to pass Cabal configuration flags.
7972 For example: CABALOPTS=-fhighlighting make
7974 * Rewrote test suite so it doesn't depend on perl or unix tools.
7976 + Replaced old runtests.pl with a Haskell script RunTests.hs.
7977 + Added Diff.hs module to be used by RunTests.hs instead of unix 'diff'.
7978 + Added test hook to Setup.hs, so tests may be run from cabal.
7979 + Changed Makefile's 'test' target to run tests via cabal.
7980 + Removed old generate.sh.
7981 + Since we no longer have 'sed' to filter out raw HTML sections
7982 from the docbook writer test, or raw LaTeX sections from the
7983 context writer test, we now just include these sections.
7984 They can be taken out if it is necessary to process the files.
7985 + Updated latex and context writer tests to remove extra spaces
7986 after '\\item'
7987 + Added a markdown table reader test.
7988 + Added markdown-reader-more.txt to test suite, for additional test cases
7989 for raw ConTeXt environments and more.
7991 * Compatibility fixes for CPP, Cabal, and haddock:
7993 + Use CPP in "Extensions" field in pandoc.cabal.
7994 + Removed use of backslash string continuations in source files.
7996 * Removed pandoc.cabal.ghc66. We now require Cabal >= 1.2, GHC >= 6.8,
7997 base >= 3.
7999 * Require parsec < 3.
8000 The compatibility module in parsec 3.0.0 gives far worse performance than
8001 parsec 2.1. Eventually pandoc will be upgraded to use the new bytestring
8002 version of parsec, and then we'll go to parsec 3.0.0.
8004 * Removed Text.Regex dependencies by rewriting using plain Haskell
8005 (Text.Pandoc.Writers.RTF, Text.Pandoc.Writers.HTML, Main.hs)
8007 * Moved Text.Pandoc.Writers.DefaultHeaders -> Text.Pandoc.DefaultHeaders.
8009 * Makefile:
8011 + Added 'configure' as dependency of 'uninstall-all'.
8012 (It uses the Cabal build program.)
8013 + Makefile: only use --with-hc-pkg if GHC_PKG is defined.
8014 Note that Cabal will automatically choose the ghc-pkg appropriate
8015 for the compiler selected, so normally specifying GHC by itself
8016 is sufficient.
8018 * Removed Text.Pandoc.UTF8 module; instead, depend on utf8-string and use
8019 its IO and conversion functions.
8021 * Added -Wall to ghc-options in pandoc.cabal. Cleaned up modules so that
8022 everything is -Wall clean.
8024 + Added pragma to HTML writer to avoid deprecation warning for use of "start" attribute.
8025 + Added pragma to Text/Pandoc/Shared.hs to get rid of "orphan instance" warnings.
8026 (These are caused by the Lift instance for ByteString.)
8028 * Changed the comment used to replace unsafe HTML if sanitize-html option
8029 selected.
8031 * Made -c/--css option repeatable on the command line (like -H, -A, -B).
8033 * Moved XML-formatting functions to new unexported module Text.Pandoc.XML.
8035 * Escape '\160' as "&#160;", not "&nbsp;" in XML.
8036 "nbsp" isn't a predefined XML entity.
8038 * Fixed bug in RST reader, which would choke on: "p. one\ntwo\n".
8039 Added some try's in ordered list parsers.
8041 * Man writer: don't escape " as \".
8043 * Allow newline before URL in markdown link references. Resolves Issue #81.
8044 Added tests for this issue in new "markdown-reader-more" tests.
8045 Changed RunTests.hs to run these tests.
8047 * Support for display math. Resolves Issue #47.
8049 + Added a DisplayMath/InlineMath selector to Math inlines.
8050 + Markdown parser yields DisplayMath for $$...$$.
8051 + LaTeX parser yields DisplayMath when appropriate. Removed
8052 mathBlock parsers, since the same effect is achieved by the math
8053 inline parsers, now that they handle display math.
8054 + Writers handle DisplayMath as appropriate for the format.
8055 + Modified tests accordingly; added new tests for display math.
8057 * Use LaTeXMathML instead of ASCIIMathML. LaTeXMathML is closer
8058 to LaTeX in its display of math, and supports many non-math LaTeX environments.
8060 + Changed -m option to use LaTeXMathML rather than ASCIIMathML.
8061 + Modified HTML writer to print raw TeX when LaTeXMathML is
8062 being used instead of suppressing it.
8063 + Removed ASCIIMathML files from data/ and added LaTeXMathML.
8064 + Replaced ASCIIMathML with LaTeXMathML in source files.
8065 + Modified README and pandoc man page source.
8066 + Added --latexmathml option (kept --asciimathml as a synonym
8067 for backwards compatibility)
8069 * Markdown reader: Parse setext headers before atx headers.
8070 Test case:
8071 # hi
8072 ====
8073 parsed by Markdown.pl as an H1 header with contents "# hi".
8075 * Markdown reader: Treat "mixed" lists the same way as Markdown.pl does.
8076 The marker on the first list item determines the type of the whole
8077 list. Thus, a list like
8078 1. one
8079 - two
8080 * three
8081 gets parsed as a single ordered list. (Previous versions of pandoc
8082 treated this as an ordered list with an unordered sublist.)
8084 * Markdown smart typography:
8086 + Em dashes no longer eat surrounding whitespace. Resolves Issue #69.
8087 + Use nonbreaking spaces after known abbreviations in markdown parser.
8088 Thus, for example, "Mr. Brown" comes out as "Mr.~Brown" in LaTeX, and does
8089 not produce a sentence-separating space. Resolves Issue #75.
8091 * Markdown writer: Print unicode \160 literally, rather than as &nbsp;.
8093 * Treat '\ ' in (extended) markdown as nonbreaking space.
8094 Print nonbreaking space appropriately in each writer (e.g. ~ in LaTeX).
8096 * The '--sanitize-html' option now examines URIs in markdown links
8097 and images, and in HTML href and src attributes. If the URI scheme
8098 is not on a whitelist of safe schemes, it is rejected. The main point
8099 is to prevent cross-site scripting attacks using 'javascript:' URIs.
8100 See http://www.mail-archive.com/markdown-discuss@six.pairlist.net/msg01186.html
8101 and http://ha.ckers.org/xss.html. Resolves Issue #62.
8103 * HTML writer:
8105 + Override Text.XHtml's stringToHtml function,
8106 so that characters below 0xff are not converted to numerical entity
8107 references. Also convert '\160' to "&nbsp;". This should aid readability
8108 and editability of the HTML source. It does presuppose that the HTML
8109 will be served as UTF-8.
8110 + In code blocks, change leading newlines to <br /> tags.
8111 (Some browsers ignore them.) Resolves Issue #71.
8112 See http://six.pairlist.net/pipermail/markdown-discuss/2008-May/001297.html
8113 + Use style attributes rather than css classes for strikethrough
8114 and ordered list styles. This works better when fragments, rather than
8115 standalone documents, are generated.
8117 * HTML reader: Count anything that isn't a known block (HTML) tag as an
8118 inline tag (rather than the other way around). Added "html", "head", and
8119 "body" to list of block tags. Resolves Issue #66, allowing
8120 <lj> to count as an inline tag.
8122 * RTF writer: Fixed bug. Extra spaces were being printed after emphasized,
8123 boldface, and other inline elements. Resolves Issue #64.
8125 * LaTeX reader: improvements in raw LaTeX parsing.
8127 + "loose punctuation" (like {}) parsed as Space
8128 + Para elements must contain more than Str "" and Space elements
8129 + Added parser for "\ignore" command used in literate haskell.
8130 + Reworked unknownCommand and rawLaTeXInline: when not in "parse raw"
8131 mode, these parsers simply strip off the command part and allow
8132 the arguments to be parsed normally. So, for example,
8133 \blorg{\emph{hi}} will be parsed as Emph "hi" rather than
8134 Str "{\\emph{hi}}".
8135 + Parse lhs "code" environments as verbatim.
8136 Refactored parsers for verbatim environments.
8137 + Removed specialEnvironment parser.
8138 + parse '{}', if present, after \textless, \textgreater,
8139 \textbar, \textbackslash, \ldots.
8140 + Parse unescaped special characters verbatim rather than
8141 changing them to spaces. This way arguments of unknown
8142 commands will appear in braces.
8144 * Parse raw ConTeXt environments as TeX in markdown reader.
8145 Resolves Issue #73.
8147 * Moved BlockWrapper and wrappedBlocksToDoc from ConTeXt writer to Shared.
8149 * Made some structural changes to parsing of raw LaTeX environments.
8150 Previously there was a special block parser for LaTeX environments.
8151 It returned a Para element containing the raw TeX inline. This has
8152 been removed, and the raw LaTeX environment parser is now used in the
8153 rawLaTeXInline parser. The effect is exactly the same, except that we
8154 can now handle consecutive LaTeX and ConTeXt environments not separated
8155 by spaces. This new flexibility is required by the example in
8156 Issue #73:
8158 \placeformula \startformula
8159 L_{1} = L_{2}
8160 \stopformula
8162 API change: The LaTeX reader now exports rawLaTeXEnvironment' (which
8163 returns a string) rather than rawLaTeXEnvironment (which returns a block
8164 element). This is more likely to be useful in other applications.
8166 * Use \textsubscr instead of \textsubscript for LaTeX subscript macro.
8167 \textsubscript conflicts with a definition in the memoir class.
8168 Resolves Issue #65.
8170 * Removed unneeded space after "\\item" in LaTeX and ConTeXt output.
8172 * Added amsmath package to default LaTeX header. Resolves Issue #48.
8174 * Added \setupitemize[autointro] to ConTeXt header, to prevent orphaned
8175 list introduction lines.
8177 * Changed Float to Double in definition of Table element.
8178 (Double is more efficient in GHC.)
8180 * Fixed bug in Markdown parser: regular $s triggering math mode.
8181 For example: "shoes ($20) and socks ($5)."
8182 The fix consists in two new restrictions:
8184 + the $ that ends a math span may not be directly followed by a digit.
8185 + no blank lines may be included within a math span.
8187 Thanks to Joseph Reagle for noticing the bug.
8189 * Use Data.List's 'intercalate' instead of custom 'joinWithSep'.
8190 Removed 'joinWithSep' from Text.Pandoc.Shared.
8192 * Updated README and man pages. Acknowledge contributors in README.
8193 Added paragraph to README about producing S5 with separate CSS/javascript.
8195 * Updated INSTALL to reflect new build system (including configuration
8196 options) and document new dependencies. Added note to INSTALL that
8197 Cabal >= 1.2 is required for build. Resolves Issue #74.
8199 * Fixed some haddock documentation errors.
8201 * Small fix to markdown2pdf man page: only input needs to be piped through iconv.
8203pandoc (0.46) unstable; urgency=low
8205 [ John MacFarlane ]
8207 * Made -H, -A, and -B options cumulative: if they are specified
8208 multiple times, multiple files will be included.
8210 * Added optional HTML sanitization using a whitelist.
8211 When this option is specified (--sanitize-html on the command line),
8212 unsafe HTML tags will be replaced by HTML comments, and unsafe HTML
8213 attributes will be removed. This option should be especially useful
8214 for those who want to use pandoc libraries in web applications, where
8215 users will provide the input.
8217 + Main.hs: Added --sanitize-html option.
8219 + Text.Pandoc.Shared: Added stateSanitizeHTML to ParserState.
8221 + Text.Pandoc.Readers.HTML:
8222 - Added whitelists of sanitaryTags and sanitaryAttributes.
8223 - Added parsers to check these lists (and state) to see if a given
8224 tag or attribute should be counted unsafe.
8225 - Modified anyHtmlTag and anyHtmlEndTag to replace unsafe tags
8226 with comments.
8227 - Modified htmlAttribute to remove unsafe attributes.
8228 - Modified htmlScript and htmlStyle to remove these elements if
8229 unsafe.
8231 + Modified README and man pages to document new option.
8233 * Improved handling of email addresses in markdown and reStructuredText.
8234 Consolidated uri and email address parsers. (Resolves Issue #37.)
8236 + New emailAddress and uri parsers in Text.Pandoc.Shared.
8237 - uri parser uses parseURI from Network.URI.
8238 - emailAddress parser properly handles email addresses with periods
8239 in them.
8241 + Removed uri and emailAddress parsers from Text.Pandoc.Readers.RST
8242 and Text.Pandoc.Readers.Markdown.
8244 * Markdown reader:
8246 + Fixed emph parser so that "*hi **there***" is parsed as a Strong
8247 nested in an Emph. (A '*' is only recognized as the end of the
8248 emphasis if it's not the beginning of a strong emphasis.)
8250 + Moved blockQuote parser before list parsers for performance.
8252 + Modified 'source' parser to allow backslash-escapes in URLs.
8253 So, for example, [my](/url\(1\)) yields a link to /url(1).
8254 Resolves Issue #34.
8256 + Disallowed links within links. (Resolves Issue #35.)
8257 - Replaced inlinesInBalanced with inlinesInBalancedBrackets, which
8258 instead of hard-coding the inline parser takes an inline parser
8259 as a parameter.
8260 - Modified reference and inlineNote to use inlinesInBalancedBrackets.
8261 - Removed unneeded inlineString function.
8262 - Added inlineNonLink parser, which is now used in the definition of
8263 reference.
8264 - Added inlineParsers list and redefined inline and inlineNonLink parsers
8265 in terms of it.
8266 - Added failIfLink parser.
8268 + Better handling of parentheses in URLs and quotation marks in titles.
8269 - 'source' parser first tries to parse URL with balanced parentheses;
8270 if that doesn't work, it tries to parse everything beginning with
8271 '(' and ending with ')'.
8272 - source parser now uses an auxiliary function source'.
8273 - linkTitle parser simplified and improved, under assumption that it
8274 will be called in context of source'.
8276 + Make 'block' conditional on strictness state, instead of using
8277 failIfStrict in block parsers. Use a different ordering of parsers
8278 in strict mode (raw HTML block before paragraph) for performance.
8279 In non-strict mode use rawHtmlBlocks instead of htmlBlock.
8280 Simplified htmlBlock, since we know it's only called in strict
8281 mode.
8283 + Improved handling of raw HTML. (Resolves Issue #36.)
8284 - Tags that can be either block or inline (e.g. <ins>) should
8285 be treated as block when appropriate and as inline when
8286 appropriate. Thus, for example,
8287 <ins>hi</ins>
8288 should be treated as a paragraph with inline <ins> tags, while
8289 <ins>
8290 hi
8291 </ins>
8292 should be treated as a paragraph within <ins> tags.
8293 - Moved htmlBlock after para in list of block parsers. This ensures
8294 that tags that can be either block or inline get parsed as inline
8295 when appropriate.
8296 - Modified rawHtmlInline' so that block elements aren't treated as
8297 inline.
8298 - Modified para parser so that paragraphs containing only HTML tags and
8299 blank space are not allowed. Treat these as raw HTML blocks instead.
8301 + Fixed bug wherein HTML preceding a code block could cause it to
8302 be parsed as a paragraph. The problem is that the HTML parser
8303 used to eat all blank space after an HTML block, including the
8304 indentation of the code block. (Resolves Issue #39.)
8305 - In Text.Pandoc.Readers.HTML, removed parsing of following space
8306 from rawHtmlBlock.
8307 - In Text.Pandoc.Readers.Markdown, modified rawHtmlBlocks so that
8308 indentation is eaten *only* on the first line after the HTML
8309 block. This means that in
8310 <div>
8311 foo
8312 <div>
8313 the foo won't be treated as a code block, but in
8314 <div>
8316 foo
8318 </div>
8319 it will. This seems the right approach for least surprise.
8321 * RST reader:
8323 + Fixed bug in parsing explicit links (resolves Issue #44).
8324 The problem was that we were looking for inlines until a '<' character
8325 signaled the start of the URL; so, if you hit a reference-style link,
8326 it would keep looking til the end of the document. Fix: change
8327 inline => (notFollowedBy (char '`') >> inline). Note that this won't
8328 allow code inlines in links, but these aren't allowed in resT anyway.
8330 + Cleaned up parsing of reference names in key blocks and links.
8331 Allow nonquoted reference links to contain isolated '.', '-', '_', so
8332 so that strings like 'a_b_' count as links.
8334 + Removed unnecessary check for following link in str.
8335 This is unnecessary now that link is above str in the definition of
8336 'inline'.
8338 * HTML reader:
8340 + Modified rawHtmlBlock so it parses </html> and </body> tags.
8341 This allows these tags to be handled correctly in Markdown.
8342 HTML reader now uses rawHtmlBlock', which excludes </html> and </body>,
8343 since these are handled in parseHtml. (Resolves Issue #38.)
8345 + Fixed bug (emph parser was looking for `<IT>` tag, not `<I>`).
8347 + Don't interpret contents of style tags as markdown.
8348 (Resolves Issue #40.)
8349 - Added htmlStyle, analagous to htmlScript.
8350 - Use htmlStyle in htmlBlockElement and rawHtmlInline.
8351 - Moved "script" from the list of tags that can be either block or
8352 inline to the list of block tags.
8354 + Modified rawHtmlBlock to use anyHtmlBlockTag instead of anyHtmlTag
8355 and anyHtmlEndTag. This fixes a bug in markdown parsing, where
8356 inline tags would be included in raw HTML blocks.
8358 + Modified anyHtmlBlockTag to test for (not inline) rather than
8359 directly for block. This allows us to handle e.g. docbook in
8360 the markdown reader.
8362 * LaTeX reader: Properly recognize --parse-raw in rawLaTeXInline.
8363 Updated LaTeX reader test to use --parse-raw.
8365 * HTML writer:
8367 + Modified rules for automatic HTML header identifiers to
8368 ensure that identifiers begin with an alphabetic character.
8369 The new rules are described in README. (Resolves Issue #33.)
8371 + Changed handling of titles in HTML writer so you don't get
8372 "titleprefix - " followed by nothing.
8374 * ConTeXt writer: Use wrappers around Doc elements to ensure proper
8375 spacing. Each block element is wrapped with either Pad or Reg.
8376 Pad'ed elements are guaranteed to have a blank line in between.
8378 * RST writer:
8380 + Refactored RST writer to use a record instead of a tuple for state,
8381 and to include options in state so it doesn't need to be passed as
8382 a parameter.
8384 + Use an interpreted text role to render math in restructuredText.
8385 See http://www.american.edu/econ/itex2mml/mathhack.rst for the
8386 strategy.
8388 [ Recai Oktaş ]
8390 * Debian packaging changes:
8392 + Remove the empty 'include' directory in -dev package, which lintian
8393 complains about.
8394 + Bump Standarts-Version to 3.7.3.
8395 + Use new 'Homepage:' field to specify the upstream URL on suggestion of
8396 lintian.
8398 -- Recai Oktaş <roktas@debian.org> Tue, 08 Jan 2008 05:13:31 +0200
8400pandoc (0.45) unstable; urgency=low
8402 [ John MacFarlane ]
8404 * Simplified parsing of reference keys and notes in markdown and RST
8405 readers: The Reference data structure from Text.Pandoc.Shared is no
8406 longer needed, since referenceKey and noteBlock parses return strings
8407 (as many blank lines as were occupied by the key or note) and update
8408 state themselves. getPosition and setPosition are now used to ensure
8409 that error messages will give the correct line number. This yields
8410 cleaner (and slightly faster) code, with more accurate parsing error
8411 messages.
8413 * Added new Math inline element:
8415 + Markdown and LaTeX readers now convert TeX math into Math elements,
8416 not TeX.
8417 + This allows math to be treated differently from raw TeX in output.
8418 TeX elements are no longer printed in output formats other than
8419 Markdown, LaTeX, and ConTeXt. But Math elements are always printed.
8421 * New default handling of math in writers:
8423 + New module Text.Pandoc.Readers.TeXMath exports readTeXMath, which
8424 parses raw TeX math and outputs a string of Pandoc inlines that
8425 tries to render it as far as possible using unicode characters,
8426 lapsing into literal TeX when needed.
8427 + readTeXMath is now used for default HTML output in HTML, S5, RTF,
8428 and Docbook, if no other method for displaying math in HTML is
8429 specified. Enclosing $'s are no longer printed by default.
8430 + By default, math is put inside `<span class="math">`. This way it can be
8431 distinguished from the surrounding text, e.g. put in a different
8432 font.
8434 * New --gladtex and --mimetex options for display of math in HTML:
8436 + If --gladtex is specified, math is output between `<eq>` tags, so
8437 it can be processed by gladTeX.
8438 + If --mimetex is specified, math is put in `<img>` tags with a link
8439 to the mimetex CGI script (or any other script that takes TeX math
8440 as input and outputs an image). The URL of the script may be
8441 specified, but defaults to /cgi-bin/mimetex.cgi.
8442 + HTMLMathMethod structure in WriterOptions keeps track of how to
8443 display math in HTML output.
8444 + Updated README with a description of the four options for displaying
8445 math in HTML.
8447 * HTML reader:
8449 + Fixed bug: parser for minimized attributes should not swallow
8450 trailing spaces.
8451 + Simplified HTML attribute parsing.
8452 + Changed parsing of code blocks in HTML reader: `<code>` tag is no
8453 longer needed. `<pre>` suffices. All HTML tags in the code block
8454 (e.g. for syntax highlighting) are skipped, because they are not
8455 portable to other output formats. A `<code>...</code>` block not
8456 surrounded by `<pre>` now counts as inline HTML, not a code block.
8457 + Remove just one leading and one trailing newline from contents of
8458 `<pre>...</pre>` in codeBlock parser.
8460 * Markdown reader:
8462 + Removed support for box-style block quotes.
8463 + Require space before title in links and references.
8464 This fixes a bug in parsing URLs like http://silly/url(withparen).
8465 + Improved and simplified setextHeader parser.
8466 + Fixed logic in smart quote parsing, adding some needed 'try'
8467 statements.
8468 + Fixed smart quote parsing so that unicode characters 8216 and 8217
8469 are recognized as single quotes, and 8220 and 8221 as double quotes.
8471 * RST reader:
8473 + Fixed bug in parsing of code blocks. Previously a full tab indent
8474 was required, but RST allows code to be indented any amount.
8475 Resolves Issue #27.
8476 + Allow field lists to be indented.
8477 + Parse the contents of field lists instead of treating as a raw string.
8478 + Represent field lists as definition lists instead of blockquotes.
8479 + Fixed bug in which metadata would be overridden if the document
8480 contained multiple field lists.
8481 + Parse fields associated with '.. image::' blocks, and use 'alt'
8482 field, if given, for image alt and title attributes.
8484 * LaTeX reader:
8486 + Modified specialChar so that '"' characters are parsed.
8487 + Fixed a bug in parsing of \[ \] math blocks (thanks to Mark Kalderon).
8489 * HTML writer:
8491 + Changes in handling of math (see above).
8492 + Don't produce HTML for table of contents if there are
8493 no headers. (This would be an empty list, which is invalid XHTML.)
8495 * Markdown writer:
8497 + Don't print title attribute if title is empty. (This differs from
8498 the behavior of Markdown.pl, and agrees with PHP Markdown. But John
8499 Gruber has indicated that he prefers this behavior.) Adjusted test
8500 suite accordingly.
8501 + Fixed incorrect line wrapping in paragraphs including hard line
8502 breaks. Resolves Issue #25.
8503 + Fixed bug in markdown writer: If an ordered list item began with
8504 a marker greater than 3 characters in width, and the item took more
8505 than one line, it would appear on the line after the list marker,
8506 e.g.:
8508 (12)
8509 My list item.
8510 Multiline.
8512 Now it works as follows:
8514 (12) My list item.
8515 Multiline.
8517 * RST writer
8519 + Fixed bug in RST writer's handling of ordered lists. Previously,
8520 list items with multiple lines would not always line up with
8521 single-line list items. Now, list items are nested the length of
8522 the list marker + 1. This looks better and ensures that list items
8523 all line up. (Note that list markers are padded to the length of
8524 the longest list marker in the series.)
8525 + Use 3-space indent for unordered lists.
8526 + If label for a link reference contains a colon, surround it by `
8527 signs so it won't be interpreted as the end of the link label.
8529 * LaTeX writer:
8531 + Cleaner output for footnotes. Footnotes now always begin on a new
8532 line, and the final } is on a line by itself only when it needs to
8533 be (i.e. only when the note ends with a Verbatim environment).
8534 + Added writer options to state, so state doesn't need to be passed as
8535 a parameter.
8536 + Text wrapping now provided, using wrapTeXIfNeeded.
8538 * ConTeXt writer: many improvements for more idiomatic ConTeXt output
8539 (thanks to Idris Samawi Hamid for suggestions).
8541 + PrettyPrint module now used for output.
8542 + Writer options are now in state, so they don't have to be passed as
8543 a parameter.
8544 + Text wrapping now provided, using wrapTeXIfNeeded.
8545 + Better treatment of footnotes: footnotes are always on lines by
8546 themselves, and the final } is on a line by itself only when
8547 it needs to be (after \stoptyping).
8548 + Use \subject, \subsubject, ... or \section, \subsection, ... for headings,
8549 depending on whether --number-sections option is selected.
8550 + Extra blank line inserted after \stopitemize
8551 + Use new, "official" definition of blockquote environment. Also, use
8552 blank line after \startblockquote to balance blank line at the end.
8553 + Both itemized and enumerated lists are now generated using
8554 \start-stopitemize, with appropriate options. Removed definitions
8555 of ltxenum and ltxitem, which are no longer needed. Provided
8556 defaults for itemized lists in the preamble. State keeps track of
8557 ordered list level, so that when default numbering is specified,
8558 the appropriate scheme can be used.
8559 + Changed \useurl to \useURL.
8560 + Changed link color from red to blue.
8561 + Use \subsubsubsubsection etc., since these are supported
8562 (up to at least sub x 5).
8564 * Text.Pandoc.Shared:
8566 + Save and restore position in parseFromString, so that accurate
8567 error messages can be given.
8568 + Improved efficiency of romanNumeral parser.
8569 + Added wrappedTeX and wrapTeXIfNeeded functions. These ensure
8570 that footnotes occur on lines by themselves (to make them
8571 easier to see and move) and do not screw up line wrapping.
8573 * Text.Pandoc.UTF8: modified fromUTF8 to strip out the BOM
8574 if present. Windows Notepad and other applications insert a
8575 BOM at the beginning of a UTF8 file.
8577 * Main.hs (tabFilter): Treat '\r' at end of line as newline (in
8578 addition to "\r\n" and '\n').
8580 * Added a writer option for wrapped text and a command-line option
8581 '--no-wrap', which disables text wrapping and minimizes whitespace
8582 in HTML. (Resolves Issue #26.)
8584 + Added support for '--no-wrap' to Main.hs.
8585 + Added wrapIfNeeded function to Text.Pandoc.Shared.
8586 + Use wrapIfNeeded instead of wrapped in the RST, Man, Docbook, and
8587 Markdown writers.
8588 + Added render and renderFragment helpers to HTML writer.
8590 * Modified html2markdown to run tidy only if the HTML cannot be
8591 parsed. Previously html2markdown piped all input through tidy
8592 before passing it to pandoc. This caused problems on certain pages
8593 (e.g. http://daringfireball.com/markdown) which have well-formed
8594 XHTML that causes tidy to choke. The solution is to pipe through
8595 tidy only if pandoc cannot parse the input by itself. This means
8596 that a temp file is now always used, even when input comes from a
8597 local file or standard input.
8599 * Removed 'version' constant from Main.hs; added 'pandocVersion' to
8600 Text.Pandoc library.
8602 * pandoc.cabal:
8604 + Modified to work with GHC 6.8 and Cabal configurations. (For GHC
8605 6.8, pretty and containers must be added to Build-Depends, and it
8606 is desirable to use the -O2 compiler option.) Cabal configurations
8607 allows one to select options depending on the compiler version.
8608 For GHC 6.6, the splitBase option can be disabled.
8609 + pandoc.cabal.ghc66 is provided for users with older versions of
8610 Cabal, which do not support configurations.
8611 + Use Ghc-Prof-Options to ensure that '-auto-all' is used when
8612 '--enable-(executable|library)-profiling' is specified. Updated
8613 PROFILING instructions accordingly.
8615 * Makefile:
8617 + Makefile now checks GHC version. If GHC is 6.6, pandoc.cabal.ghc66
8618 is copied to pandoc.cabal, and the old pandoc.cabal is copied
8619 to pandoc.cabal.orig. Otherwise, pandoc.cabal is copied to
8620 pandoc.cabal.orig but otherwise unmodified. This way, the Makefile
8621 will work properly with either GHC 6.6 or 6.8.
8622 + Changed BUILDCONF to point to dist/setup-config, not .setup-config.
8623 This is where current versions of Cabal put it.
8624 + Added $(BUILDCMD) target, so setup doesn't get compiled every time.
8625 + Removed dependency of templates on ./templates, which is circular
8626 now that templates is a subdirectory of the top-level.
8628 * MacPorts Portfile:
8630 + Modified to install the pandoc library in addition to programs.
8631 + Installation must be done manually rather than using Makefile's
8632 install-all.
8633 + Note that the library must be registered in the activate phase,
8634 after the library files have been copied out of the destroot.
8635 Cabal generates a 'register.sh' script that will do this.
8637 * debian/control: Added libghc6-network-dev, libghc6-xhtml-dev, and
8638 libghc6-mtl-dev as dependencies for libghc6-pandoc-dev.
8639 Closes: #445235
8641 * debian/rules: Converted to UTF-8.
8643 * Changed pandoc home page to http://johnmacfarlane.net/pandoc/.
8645 * Updated ASCIIMathML.js to latest version.
8647 * Directory structure:
8649 + Moved everything from src into the top-level directory.
8650 + Changed references to source directory in Makefile and
8651 pandoc.cabal.*.
8652 + Moved ASCIIMathML.js, headers, and ui into templates directory.
8653 + Modified fillTemplates.pl to reflect new paths.
8655 [ Recai Oktaş ]
8657 * Makefile: Fixed the issue of having two copies of the library
8658 documentation under some usage scenarios.
8660 * Replaced 'ghc' with '$(GHC)' in Makefile, and made GHC
8661 and GHC_PKG configurable through the environment, to support
8662 unusual ghc installations. For example:
8663 GHC=/opt/ghc/bin/ghc GHC_PKG=/opt/ghc/bin/ghc-pkg make
8665 -- Recai Oktaş <roktas@debian.org> Sun, 07 Oct 2007 20:51:43 +0300
8667pandoc (0.44) unstable; urgency=low
8669 [ John MacFarlane ]
8671 * Fixed bug in HTML writer: when --toc was used, anchors were put around
8672 headers, which is invalid XHTML (block content within inline element).
8673 Now the anchors are put inside the header tags. Resolves Issue #23.
8675 * Added xmlns attribute to html element in html writer tests.
8676 This attribute is added by more recent versions of the
8677 xhtml library (>= 3000), and is required for valid XHTML.
8679 [ Recai Oktaş ]
8681 * On configure, compile 'Setup.hs' to 'setup' and use 'setup' as the build
8682 command instead of 'runhaskell', which, on some platforms (such as s390,
8683 alpha, m68k), throws the following error:
8685 runhaskell Setup.hs configure --prefix=/usr
8686 ghc-6.6.1: not built for interactive use
8688 This causes a serious FTBFS bug. Closes: #440668.
8690 -- Recai Oktaş <roktas@debian.org> Mon, 03 Sep 2007 18:24:02 +0300
8692pandoc (0.43) unstable; urgency=low
8694 [ John MacFarlane ]
8696 * The focus of this release is performance. The markdown parser
8697 is about five times faster than in 0.42, based on benchmarks
8698 with the TextMate manual.
8700 * Main.hs: Replaced CRFilter and tabFilter with single function
8701 tabFilter, which operates on the whole string rather than breaking
8702 it into lines, and handles dos-style line-endings as well as tabs.
8704 * Added separate LaTeX reader and native reader tests; removed
8705 round-trip tests.
8707 * Text.Pandoc.Shared:
8709 + Removed tabsToSpaces and tabsInLine (they were used only in Main.hs.)
8710 + General code cleanup (to elimante warnings when compiling with -Wall.)
8711 + Added 'wrapped' function, which helps wrap text into paragraphs,
8712 using the prettyprinting library.
8713 + Rewrote charsInBalanced and charsInBalanced'.
8714 - Documented restriction: open and close must be distinct characters.
8715 - Rearranged options for greater efficiency.
8716 - Bug fix: Changed inner call to charsInBalanced inside
8717 charsInBalanced' to charsInBalanced'.
8718 + anyLine now requires that the line end with a newline (not eof).
8719 This is a harmless assumption, since we always add newlines to the
8720 end of a block before parsing with anyLine, and it yields a 10% speed
8721 boost.
8722 + Removed unnecessary 'try' in anyLine.
8723 + Removed unneeded 'try' from romanNumeral parser.
8724 + Use notFollowedBy instead of notFollowedBy' in charsInBalanced.
8725 + Removed unneeded 'try' in parseFromString.
8726 + Removed unneeded 'try' from stringAnyCase. (Now it behaves
8727 like 'string'.)
8728 + Changed definition of 'enclosed' in Text.Pandoc.Shared so that
8729 'try' is not automatically applied to the 'end' parser. Added
8730 'try' in calls to 'enclosed' where needed. Slight speed increase.
8732 * Writers:
8734 + Replaced individual wrapping routines in RST, Man, and Markdown
8735 writers with 'wrapped' from Text.Pandoc.Shared.
8736 + Rewrote LaTeX writer to use the prettyprinting library,
8737 so we get word wrapping, etc.
8738 + Modified latex writer tests for new latex writer using prettyprinter.
8739 + Fixed bug in LaTeX writer: autolinks would not cause
8740 '\usepackage{url}' to be put in the document header. Also, changes
8741 to state in enumerated list items would be overwritten.
8742 + In Markdown writer, escape paragraphs that begin with ordered list
8743 markers, so they don't get interpreted as ordered lists.
8745 * Text.Pandoc.Reades.LaTeX:
8747 + Fixed bug in LaTeX reader, which wrongly assumed that the roman
8748 numeral after "enum" in "setcounter" would consist entirely of
8749 "i"s. 'enumiv' is legitimate.
8750 + LaTeX command and environment names can't contain numbers.
8751 + Rearranged order of parsers in inline for slight speed improvement.
8752 + Added '`' to special characters and 'unescapedChar'.
8754 * Text.Pandoc.Readers.RST:
8756 + Removed unneeded try's in RST reader; also minor code cleanup.
8757 + Removed tabchar.
8758 + Rearranged parsers in inline (doubled speed).
8760 * Text.Pandoc.Readers.Markdown:
8762 + Skip notes parsing if running in strict mode. (This yields a nice
8763 speed improvement in strict mode.)
8764 + Simplify autolink parsing code, using Network.URI to test for
8765 URIs. Added dependency on network library to debian/control and
8766 pandoc.cabal.
8767 + More perspicuous definition of nonindentSpaces.
8768 + Removed unneeded 'try' in 'rawLine'.
8769 + Combined linebreak and whitespace into a new whitespace parser, to
8770 avoid unnecessary reparsing of space characters.
8771 + Removed unnecessary 'try' in 'codeBlock', 'ellipses', 'noteMarker',
8772 'multilineRow', 'dashedLine', 'rawHtmlBlocks'.
8773 + Use lookAhead in parsers for setext headers and definition lists
8774 to see if the next line begins appropriately; if not, don't waste
8775 any more time parsing.
8776 + Don't require blank lines after code block. (It's sufficient to
8777 end code block with a nonindented line.)
8778 + Changed definition of 'emph': italics with '_' must not
8779 be followed by an alphanumeric character. This is to help
8780 prevent interpretation of e.g. `[LC_TYPE]: my_type` as
8781 `[LC<em>TYPE]:my</em>type`.
8782 + Improved Markdown.pl-compatibility in referenceLink: the two parts
8783 of a reference-style link may be separated by one space, but not
8784 more... [a] [link], [not] [a link].
8785 + Fixed markdown inline code parsing so it better accords with
8786 Markdown.pl: the marker for the end of the code section is a clump
8787 of the same number of `'s with which the section began, followed
8788 by a non-` character. So, for example,
8789 ` h ``` i ` -> `<code>h ``` i</code>`.
8790 + Split 'title' into 'linkTitle' and 'referenceTitle', since the
8791 rules are slightly different.
8792 + Rewrote 'para' for greater efficiency.
8793 + Rewrote link parsers for greater efficiency.
8794 + Removed redundant 'referenceLink' in definition of inline (it's
8795 already in 'link').
8796 + Refactored escapeChar so it doesn't need 'try'.
8797 + Refactored hrule for performance in Markdown reader.
8798 + More intelligent rearranging of 'inline' so that most frequently
8799 used parsers are tried first.
8800 + Removed tabchar parser, as whitespace handles tabs anyway.
8802 * Text.Pandoc.CharacterReferences:
8804 + Refactored.
8805 + Removed unnecessary 'try's for a speed improvement.
8806 + Removed unnecessary '&' and ';' from the entity table.
8808 * Build process:
8810 + Makefile: Get VERSION from cabal file, not Main.hs.
8811 + Modified MacPorts Portfile:
8812 - Depend on haddock
8813 - Build and install libraries and library documentation in
8814 addition to pandoc executable
8815 - Added template item for md5 sum in Portfile.in.
8816 - Incorporated changes from MacPorts repository (r28278).
8817 + FreeBSD port: Don't try to generate distinfo in Makefile.
8818 It can be made using 'make makesum' in FreeBSD.
8819 + Make both freebsd and macports targets depend on tarball.
8821 * Website and documentation:
8823 + Updated INSTALL instructions.
8824 + Added pandocwiki demo to website.
8825 + Removed local references to Portfile, since pandoc is now in the
8826 MacPorts repository.
8828 -- Recai Oktaş <roktas@debian.org> Sun, 02 Sep 2007 15:50:11 +0300
8830pandoc (0.42) unstable; urgency=low
8832 [ John MacFarlane ]
8834 * Main.hs: Use utf8 conversion on the extra files loaded with
8835 the -H, -C, -B, and -A options. This fixes problems with unicode
8836 characters in these files.
8838 * Exposed Text.Pandoc.ASCIIMathML, since it is imported in
8839 Text.Pandoc.Readers.HTML and without it we get a linking error when
8840 using the library.
8842 * Markdown reader:
8844 + Added new rule for enhanced markdown ordered lists: if the list
8845 marker is a capital letter followed by a period (including a
8846 single-letter capital roman numeral), then it must be followed by
8847 at least two spaces. The point of this is to avoid accidentally
8848 treating people's initials as list markers: a paragraph might begin,
8849 "B. Russell was an English philosopher," and this shouldn't be
8850 treated as a list. Documented change in README.
8851 + Blocks that start with "p. " and a digit are no longer treated
8852 as ordered lists (it's a page number).
8853 + Added a needed 'try' to listItem.
8854 + Removed check for a following setext header in endline.
8855 A full test is too inefficient (doubles benchmark time), and the
8856 substitute we had before is not 100% accurate.
8857 + Don't use Code elements for autolinks if --strict specified.
8859 * LaTeX writer: When a footnote ends with a Verbatim environment, the
8860 close } of the footnote cannot occur on the same line or an error occurs.
8861 Fixed this by adding a newline before the closing } of every footnote.
8863 * HTML writer:
8864 + Removed incorrect "{}" around style information in HTML tables.
8865 Column widths now work properly in HTML.
8866 + If --strict option is specified (and --toc is not), don't include
8867 identifiers in headers, for better Markdown compatibility.
8869 * Build process:
8871 + Separated $(web_dest) and website targets.
8872 + In website, index.txt is now constructed from template index.txt.in.
8873 + Added freebsd target to Markefile. This creates the freebsd Makefile
8874 from Makefile.in, and creates distinfo. Removed Makefile and distinfo
8875 from the repository.
8876 + Added macport target to Makefile. Portfile is built from template
8877 Portfile.in.
8878 + Removed OSX package targets. (Too many difficulties involving
8879 dependencies on dynamic libraries.)
8880 + More complete INSTALL instructions for all architectures.
8882 * Website:
8883 + Added a programming demo, pandocwiki.
8885 [ Recai Oktaş ]
8887 * Do not forget to close pandoc's ITP. Closes: #391666
8889 -- Recai Oktaş <roktas@debian.org> Sun, 26 Aug 2007 22:51:32 +0300
8891pandoc (0.41) unstable; urgency=low
8893 [ John MacFarlane ]
8895 * Fixed bugs in HTML reader:
8896 + Skip material at end *only if* `</html>` is present (previously,
8897 only part of the document would be parsed if an error was
8898 found; now a proper error message is given).
8899 + Added new constant eitherBlockOrInline with elements that may
8900 count either as block-level or as inline. Modified isInline and
8901 isBlock to take this into account.
8902 + Modified rawHtmlBlock to accept any tag (even an inline tag):
8903 this is innocuous, because rawHtmlBlock is tried only if a regular
8904 inline element can't be parsed.
8905 + Added a necessary 'try' in definition of 'para'.
8907 * Fixed bug in markdown ordered list parsing. The problem was that
8908 anyOrderedListStart did not check for a space following the
8909 ordered list marker. So in 'A.B. 2007' the parser would be
8910 expecting a list item, but would not find one, causing an error.
8911 Fixed a similar bug in the RST reader. Resolves Issue #22.
8913 * Refactored RST and Markdown readers using parseFromString.
8915 * LaTeX reader will now skip anything after \end{document}.
8917 * Fixed blockquote output in markdown writer: previously, block
8918 quotes in indented contexts would be indented only in the first
8919 line.
8921 * Added note to INSTALL about variations in versions of the xhtml
8922 library that can lead to failed tests (thanks to Leif LeBaron).
8924 -- Recai Oktaş <roktas@debian.org> Sun, 19 Aug 2007 23:26:07 +0300
8926pandoc (0.4) unstable; urgency=low
8928 [ John MacFarlane ]
8930 * Added two new output formats: groff man pages and ConTeXt. By
8931 default, output files with extensions ".ctx" and ".context" are
8932 assumed to be ConTeXt, and output files with single-digit extensions
8933 are assumed to be man pages.
8935 * Enhanced ordered lists (documented in README, under Lists):
8936 + The OrderedList block element now stores information about
8937 list number style, list number delimiter, and starting number.
8938 + The readers parse this information when possible.
8939 + The writers use this information to style ordered lists.
8940 + The enhancement can be disabled using the --strict option.
8942 * Added support for tables (with a new Table block element). Two kinds
8943 of tables are supported: a simple table with one-line rows, and a
8944 more complex variety with multiline rows. All output formats are
8945 supported, but only markdown tables are parsed at the moment. The
8946 syntax is documented in README.
8948 * Added support for definition lists (with a new DefinitionList block
8949 element). All output and input formats are supported. The syntax is
8950 documented in README.
8952 * Added support for superscripts and subscripts (with new Superscript
8953 and Subscript inline elements). All input and output
8954 formats. The syntax is documented in README.
8956 * Added support for strikeout (with a new Strikeout inline element).
8957 All input and output formats are supported. Thanks to Bradley Kuhn,
8958 who contributed a patch. The syntax is documented in README. Resolves
8959 Issue #18.
8961 * Added a --toc|--table-of-contents option. This causes an automatically
8962 generated table of contents (or an instruction that creates one) to
8963 be inserted at the beginning of the document. Not supported in S5,
8964 DocBook, or man page writers.
8966 * Modified the -m|--asciimathml option:
8968 + If an optional URL argument is provided, a link is inserted
8969 instead of the contents of the ASCIIMathML.js script.
8970 + Nothing is inserted unless the document actually contains
8971 LaTeX math.
8973 * Removed Blank block element as unnecessary.
8975 * Removed Key and Note blocks from the Pandoc data structure. All
8976 links are now stored as explicit links, and note contents are
8977 stored with the (inline) notes.
8979 + All link Targets are now explicit (URL, title) pairs; there
8980 is no longer a 'Ref' target.
8981 + Markdown and RST parsers now need to extract data from key and
8982 note blocks and insert them into the relevant inline elements.
8983 Other parsers have been simplified, since there is no longer any need
8984 to construct separate key and note blocks.
8985 + Markdown, RST, and HTML writers need to construct lists of
8986 notes; Markdown and RST writers need to construct lists of link
8987 references (when the --reference-links option is specified); and
8988 the RST writer needs to construct a list of image substitution
8989 references. All writers have been rewritten to use the State monad
8990 when state is required.
8991 + Several functions (generateReference, keyTable,
8992 replaceReferenceLinks, replaceRefLinksBlockList, and some auxiliaries
8993 used by them) have been removed from Text.Pandoc.Shared, since
8994 they are no longer needed. New functions and data structures
8995 (Reference, isNoteBlock, isKeyBlock, isLineClump) have been
8996 added. The functions inTags, selfClosingTag, inTagsSimple, and
8997 inTagsIndented have been moved to the DocBook writer, since that
8998 is now the only module that uses them. NoteTable is now exported
8999 in Text.Pandoc.Shared.
9000 + Added stateKeys and stateNotes to ParserState; removed stateKeyBlocks,
9001 stateKeysUsed, stateNoteBlocks, stateNoteIdentifiers, stateInlineLinks.
9002 + Added writerNotes and writerReferenceLinks to WriterOptions.
9004 * Added Text.Pandoc module that exports basic readers, writers,
9005 definitions, and utility functions. This should export everything
9006 needed for most uses of Pandoc libraries. The haddock documentation
9007 includes a short example program.
9009 * Text.Pandoc.ASCIIMathML is no longer an exported module.
9011 * Added Text.Pandoc.Blocks module to help in printing markdown
9012 and RST tables. This module provides functions for working with
9013 fixed-width blocks of text--e.g., placing them side by side, as
9014 in a table row.
9016 * Refactored to avoid reliance on Haskell's Text.Regex library, which
9017 (a) is slow, and (b) does not properly handle unicode. This fixed
9018 some strange bugs, e.g. in parsing S-cedilla, and improved performance.
9020 + Replaced 'gsub' with a general list function 'substitute'
9021 that does not rely on Text.Regex.
9022 + Rewrote extractTagType in HTML reader so that it doesn't use
9023 regexs.
9024 + In Markdown reader, replaced email regex test with a custom email
9025 autolink parser (autoLinkEmail). Also replaced selfClosingTag regex
9026 with a custom function isSelfClosingTag.
9027 + Modified Docbook writer so that it doesn't rely on Text.Regex for
9028 detecting 'mailto' links.
9029 + Removed escapePreservingRegex and reamped entity-handling
9030 functions in Text.Pandoc.Shared and Text.Pandoc.CharacterReferences to
9031 avoid reliance on Text.Regex (see below on character reference
9032 handling changes).
9034 * Renamed Text.Pandoc.Entities as Text.Pandoc.CharacterReferences.
9036 * Changed handling of XML entities. Entities are now parsed (and unicode
9037 characters returned) in the Markdown and HTML readers, rather than being
9038 handled in the writers. In HTML and Docbook writers, UTF-8 is now used
9039 instead of entities for characters above 128. This makes the HTML and
9040 DocBook output much more readable and more easily editable.
9042 + Removed sgmlHexEntity, sgmlDecimalEntity, sgmlNamedEntity, and
9043 sgmlCharacterEntity regexes from Text.Pandoc.Shared.
9044 + Renamed escapeSGMLChar to escapeCharForXML. Added escapeStringForXML.
9045 Moved both functions to Text.Pandoc.Writers.Docbook.
9046 + Added characterReference parser to Text.Pandoc.CharacterReferences.
9047 This parses a string and return a unicode character.
9048 + Rewrote decodeCharacterReferences to use the new parser instead of
9049 Text.Regex.
9050 + Added new charRef parser for Markdown and HTML, which replaces the
9051 old 'entity' parser. Added '&' as a special character in Markdown reader.
9052 + Modified HTML and Markdown readers to call decodeEntities on all raw
9053 strings (e.g. authors, dates, link titles), to ensure that no
9054 unprocessed entities are included in the native representation of
9055 the document. (In the HTML reader, most of this work is done by a
9056 change in extractAttributeName.)
9057 + In XML and Markdown output, escape unicode nonbreaking space as '&nbsp;',
9058 since a unicode non-breaking space is impossible to distinguish visually
9059 from a regular space. (Resolves Issue #3.)
9060 + Removed encodeEntitiesNumerical.
9061 + Use Data.Map for entityTable and (new) reverseEntityTable, for a
9062 slight performance boost over the old association list.
9063 + Removed unneeded decodeEntities from 'str' parser in HTML and
9064 Markdown readers.
9066 * Text.Pandoc.UTF8: Renamed encodeUTF8 to toUTF8, decodeUTF8 to
9067 fromUTF8, for clarity.
9069 * Replaced old haskell98 module names replaced by hierarchical module
9070 names, e.g. List by Data.List. Removed haskell98 from dependencies
9071 in pandoc.cabal, and added mtl (needed for state monad). Substituted
9072 xhtml for html.
9074 * Refactored and cleaned up character escaping in writers, using
9075 backslashEscapes and escapeStringUsing functions.
9077 * Instead of adding "\n\n" to the end of an input string in Main.hs,
9078 this is now done in the readers. This makes the libraries behave
9079 the way you'd expect from the pandoc program. Resolves Issue #10.
9081 * URLs and email addresses in autolinks are now typeset as Code.
9083 * In Main.hs, changed putStr to putStrLn -- mainly because MacOS X
9084 doesn't display the whole output unless there's a line ending.
9086 * Major code cleanup in all modules, for greater consistency, concision,
9087 and readability.
9089 * HTML reader:
9091 + Fixed several bugs (extractTagType, attribute parsing).
9092 + Remove Null blocks in lists of blocks when possible.
9093 + Allow HTML comments as raw HTML inline.
9095 * Markdown reader:
9097 + Ordered list items may no longer begin with uppercase letters, or
9098 letters greater than 'n'. (This prevents first initials and page
9099 reference, e.g. 'p. 400', from being parsed as beginning lists.)
9100 Also, numbers beginning list items may no longer end with ')',
9101 which is now allowed only after letters. Note: These changes
9102 may cause documents to be parsed differently. Users should take
9103 care in upgrading.
9104 + Changed autoLink parsing to conform better to Markdown.pl's
9105 behavior. `<google.com>` is not treated as a link, but
9106 `<http://google.com>`, `<ftp://google.com>`, and
9107 `<mailto:google@google.com>` are.
9108 + Cleaned up handling of embedded quotes in link titles. Now these are
9109 stored as a '"' character, not as '&quot;'.
9110 + Use lookAhead parser for the 'first pass' (looking for reference keys),
9111 instead of parsing normally, then using setInput to reset input. This
9112 yields a slight performance boost.
9113 + Fixed several bugs in smart quote recognition.
9114 + Fixed bug in indentSpaces (which didn't properly handle
9115 cases with mixed spaces and tabs).
9116 + Consolidated 'text', 'special', and 'inline' into 'inline'.
9117 + Fixed bug which allowed URL and title to be separated by multiple blank
9118 lines in links and reference keys. They can be on separate lines but
9119 can't have blank lines between them.
9120 + Correctly handle bracketed text inside inline footnotes and links,using
9121 new function inlinesInBalanced. Resolves Issue #14.
9122 + Fixed bug in footnotes: links in footnotes were not being
9123 processed. Solution: three-stage parse. First, get all the
9124 reference keys and add information to state. Next, get all the
9125 notes and add information to state. (Reference keys may be needed
9126 at this stage.) Finally, parse everything else.
9127 + Replaced named constants like 'emphStart' with literals.
9128 + Removed an extra occurance of escapedChar in definition of inline.
9130 * RST reader:
9132 + Allow the URI in a RST hyperlink target to start on the line
9133 after the reference key.
9134 + Added 'try' in front of 'string', where needed, or used a different
9135 parser. This fixes a bug where ````` would not be correctly parsed as
9136 a verbatim `.
9137 + Fixed slow performance in parsing inline literals in RST reader. The
9138 problem was that ``#`` was seen by 'inline' as a potential link or image.
9139 Fix: inserted 'notFollowedBy (char '`')' in link parsers.
9140 Resolves Issue #8.
9141 + Use lookAhead instead of getInput/setInput in RST reader. Removed
9142 unneeded getState call, since lookAhead automatically saves and
9143 restores the parser state.
9144 + Allow hyperlink target URIs to be split over multiple lines, and
9145 to start on the line after the reference. Resolves Issue #7.
9146 + Fixed handling of autolinks.
9148 * LaTeX reader:
9150 + Replaced 'choice [(try (string ...), ...]' idiom with 'oneOfStrings',
9151 for clarity.
9152 + Added clauses for tilde and caret. Tilde is \ensuremath{\sim}, and
9153 caret is \^{}, not \^ as before.
9154 + Added parsing for \url.
9155 + Parse \texttt{} as code, provided there's nothing fancy inside.
9157 * HTML writer:
9159 + Modified HTML writer to use the Text.XHtml library. This results
9160 in cleaner, faster code, and it makes it easier to use Pandoc in
9161 other projects, like wikis, which use Text.XHtml. Two functions are
9162 now provided, writeHtml and writeHtmlString: the former outputs an
9163 Html structure, the latter a rendered string. The S5 writer is also
9164 changed, in parallel ways (writeS5, writeS5String).
9165 + The Html header is now written programmatically, so it has been
9166 removed from the 'headers' directory. The S5 header is still
9167 needed, but the doctype and some of the meta declarations have
9168 been removed, since they are written programatically. This change
9169 introduces a new dependency on the xhtml package.
9170 + Fixed two bugs in email obfuscation involving improper escaping
9171 of '&' in the `<noscript>` section and in `--strict` mode. Resolves
9172 Issue #9.
9173 + Fixed another bug in email obfuscation: If the text to be obfuscated
9174 contains an entity, this needs to be decoded before obfuscation.
9175 Thanks to thsutton for the patch. Resolves Issue #15.
9176 + Changed the way the backlink is displayed in HTML footnotes.
9177 Instead of appearing on a line by itself, it now generally
9178 appears on the last line of the note. (Exception: when the
9179 note does not end with a Plain or Para block.) This saves space
9180 and looks better.
9181 + Added automatic unique identifiers to headers:
9182 - The identifier is derived from the header via a scheme
9183 documented in README.
9184 - WriterState now includes a list of header identifiers and a table
9185 of contents in addition to notes.
9186 - The function uniqueIdentifiers creates a list of unique identifiers
9187 from a list of inline lists (e.g. headers).
9188 - This list is part of WriterState and gets consumed by blockToHtml
9189 each time a header is encountered.
9190 + Include CSS for .strikethrough class in header only if strikethrough
9191 text appears in the document.
9192 + If the 'strict' option is specified, elements that do not appear in
9193 standard markdown (like definition lists) are passed through as
9194 raw HTML.
9195 + Simplified treatment of autolinks, using pattern matching instead of
9196 conditionals.
9198 * Markdown writer:
9200 + Links in markdown output are now printed as inline links by default,
9201 rather than reference links. A --reference-links option has been added
9202 that forces links to be printed as reference links. Resolves Issue #4.
9203 + Use autolinks when possible. Instead of `[site.com](site.com)`,
9204 use `<site.com>`.
9206 * LaTeX writer:
9208 + Rewrote to use the State monad. The preamble now includes only those
9209 packages that are actually required, given the document's content.
9210 Thus, for example, if strikeout is not used, ulem is not required.
9211 Modified LaTeXHeader accordingly.
9212 + Modified LaTeX writer to insert '\,' between consecutive quotes.
9213 + Removed unused function tableRowColumnWidths.
9214 + Simplified code for escaping special characters.
9215 + Leave extra blank line after \maketitle.
9216 + Include empty '\author{}' when no author specified to avoid LaTeX
9217 errors.
9218 + Include fancyvrb code in header only if needed -- that is, only
9219 if there is actually code in a footnote.
9220 + Use \url{} for autolinks.
9221 + Include [mathletters] option in ucs package, so that basic unicode
9222 Greek letters will work correctly.
9224 * RST writer: Force blank line before lists, so that sublists will
9225 be handled correctly.
9227 * Docbook writer: Fixed a bug: email links with text, like
9228 [foo](me@bar.baz), were being incorrectly treated as autolinks.
9230 * Removed Text.ParserCombinators.Pandoc and moved all its functions to
9231 Text.Pandoc.Shared.
9233 * Text.Pandoc.Shared:
9235 + Added defaultWriterOptions.
9236 + Added writerTableOfContents to WriterOptions.
9237 + Added writerIgnoreNotes option to WriterOptions. This is needed
9238 for processing header blocks for a table of contents, since notes on
9239 headers should not appear in the TOC.
9240 + Added prettyprinting for native Table format.
9241 + Removed some unneeded imports.
9242 + Moved escape and nullBlock parsers from
9243 Text.ParserCombinators.Pandoc, since the latter is for
9244 general-purpose parsers that don't depend on Text.Pandoc.Definition.
9245 + Moved isHeaderBlock from Text.Pandoc.Writers.HTML.
9246 + Moved Element, headerAtLeast, and hierarchicalize from Docbook
9247 writer, because HTML writer now uses these in constructing a table
9248 of contents.
9249 + Added clauses for new inline elements (Strikeout, Superscript,
9250 Subscript) to refsMatch.
9251 + Removed backslashEscape; added new functions escapeStringUsing and
9252 backslashEscapes.
9253 + Moved failIfStrict from markdown reader, since it is now used also
9254 by the HTML reader.
9255 + Added a 'try' to the definition of indentSpaces.
9256 + In definition of 'reference', added check to make sure it's not a note
9257 reference.
9258 + Added functions: camelCaseToHyphenated, toRomanNumeral,
9259 anyOrderedListMarker, orderedListmarker, orderedListMarkers,
9260 charsInBalanced', withHorizDisplacement, romanNumeral
9261 + Fixed a bug in the anyLine parser. Previously it would parse an empty
9262 string "", but it should fail on an empty string, or we get an error
9263 when it is used inside "many" combinators.
9264 + Removed followedBy' parser, replacing it with the lookAhead parser from
9265 Parsec.
9266 + Added some needed 'try's before multicharacter parsers, especially in
9267 'option' contexts.
9268 + Removed the 'try' from the 'end' parser in 'enclosed', so that
9269 'enclosed' behaves like 'option', 'manyTill', etc.
9270 + Added lineClump parser, which parses a raw line block up to and
9271 including any following blank lines.
9272 + Renamed parseFromStr to parseFromString.
9273 + Added a 'try' to the 'end' parser in 'enclosed'. This makes errors in
9274 the use of 'enclosed' less likely. Removed some now-unnecessary 'try's
9275 in calling code.
9276 + Removed unneeded 'try' in blanklines.
9277 + Removed endsWith function and rewrote calling functions to use
9278 isSuffixOf instead.
9279 + Added >>~ combinator.
9280 + Fixed bug in normalizeSpaces: Space:Str "":Space should compress to
9281 Space.
9283 * Refactored runtests.pl; added separate tests for tables.
9285 * Shell scripts:
9287 + Added -asxhtml flag to tidy in html2markdown. This will
9288 perhaps help the parser, which expects closing tags.
9289 + Modified markdown2pdf to run pdflatex a second time if --toc or
9290 --table-of-contents was specified; otherwise the table of
9291 contents won't appear.
9292 + Modified markdown2pdf to print a helpful message if the 'ulem'
9293 LaTeX package is required and not found.
9295 * Changes to build process:
9297 + Dropped support for compilation with GHC 6.4. GHC 6.6 or higher
9298 is now required.
9299 + Removed cabalize and Pandoc.cabal.in. The repository now contains
9300 pandoc.cabal itself.
9301 + Pandoc.cabal has been changed to pandoc.cabal, because HackageDB
9302 likes the cabal file to have the same name as the tarball.
9303 + Expanded and revised the package description in pandoc.cabal.
9304 Revised the package synopsis.
9305 + The tarball built by 'make tarball' now contains files built from
9306 templates (including man pages and shell scripts), so pandoc can
9307 be built directly using Cabal tools, without preprocessing.
9308 + Executable binaries are now stripped before installing.
9309 + Man pages are now generated from markdown sources, using pandoc's
9310 man page writer.
9311 + Use HTML version of README (instead of RTF) in Mac OS X installer.
9312 + Instead of testing for the existence of a pandoc symlink in build-exec,
9313 use ln -f.
9315 * Documentation:
9317 + Updated README and man pages with information on new features.
9318 + Updated INSTALL instructions with some useful clarifications and
9319 links.
9320 + Updated web content.
9322 * Added FreeBSD port.
9324 [ Recai Oktaş ]
9326 * debian/control:
9328 + Changed pandoc's Build-Depends to include libghc6-mtl-dev and
9329 libghc6-xhtml-dev. Removed libghc6-html-dev.
9330 + Suggest texlive-latex-recommended | tetex-extra instead of
9331 tetex-bin. This brings in fancyvrb and unicode support.
9333 -- Recai Oktaş <roktas@debian.org> Tue, 16 Jan 2007 00:37:21 +0200
9335pandoc (0.3) unstable; urgency=low
9337 [ John MacFarlane ]
9339 * Changes in pandoc options:
9341 + Allow options to follow or precede arguments.
9342 + Changed '--smartypants' to '--smart' and adjusted symbols accordingly.
9343 + Added '--strict' option.
9344 + Added '-o/--output' option.
9345 + Added '--dump-args' and '--ignore-args' options (for use in wrappers).
9346 + Modified '-v' and '-h' output to go to STDERR, not STDOUT, and return
9347 error conditions. This is helpful for writing wrappers.
9348 + Added copyright message to '-v' output, modeled after FSF messages.
9349 + Reformatted usage message so that it doesn't wrap illegibly.
9350 + Removed extra blanks after '-h' and '-D' output.
9352 * Added docbook writer.
9354 * Added implicit setting of default input and output format based
9355 on input and output filename extensions. These defaults are
9356 overridden if explicit input and output formats are specified using
9357 '-t', '-f', '-r', or '-w' options. Documented in pandoc(1) man page
9358 and README.
9360 * Allow ordered list items to begin with (single) letters, as well
9361 as numbers. The list item marker may now be terminated either by
9362 '.' or by ')'. This extension to standard markdown is documented
9363 in README.
9365 * Revised footnote syntax. (See README for full details.) The
9366 '[^1]' format now standard in markdown extensions is supported,
9367 as are inline footnotes with this syntax: '^[My note.]'.
9368 The earlier footnote syntax '^(1)' is no longer supported.
9370 * Improved HTML representation of footnotes. All footnotes
9371 are now auto-numbered and appear in an ordered list at the
9372 end of the HTML document. Since the default appearance is now
9373 acceptable, the old footnote styles have been removed from the
9374 HTML header.
9376 * Bug fixes:
9378 + Fixed a serious bug in the markdown, LaTeX, and RST readers.
9379 These readers ran 'runParser' on processed chunks of text to handle
9380 embedded block lists in lists and quotation blocks. But then
9381 any changes made to the parser state in these chunks was lost,
9382 as the state is local to the parser. So, for example, footnotes
9383 didn't work in quotes or list items. The fix: instead of calling
9384 runParser on some raw text, use setInput to make it the input, then
9385 parse it, then use setInput to restore the input to what it was
9386 before. This is shorter and more elegant, and it fixes the problem.
9387 + Fixed bug in notFollowedBy' combinator (adding 'try' before
9388 'parser'). Adjusted code that uses this combinator accordingly.
9389 + Fixed bug in RTF writer that caused improper indentation on
9390 footnotes occurring in indented blocks like lists.
9391 + Fixed parsing of metadata in LaTeX reader. Now the title, author,
9392 and date are parsed correctly. Everything else in the preamble
9393 is skipped.
9394 + Modified escapedChar in LaTeX reader to allow a '\' at the end of a
9395 line to count as escaped whitespace.
9396 + Modified LaTeX reader to produce inline links rather than reference
9397 links. Otherwise, links in footnotes aren't handled properly.
9398 + Fixed handling of titles in links in Markdown reader, so that
9399 embedded quotation marks are now handled properly.
9400 + Fixed Markdown reader's handling of embedded brackets in links.
9401 + Fixed Markdown reader so that it only parses bracketed material
9402 as a reference link if there is actually a corresponding key.
9403 + Revised inline code parsing in Markdown reader to conform to
9404 markdown standard. Now any number of `s can begin inline code,
9405 which will end with the same number of `s. For example, to
9406 have two backticks as code, write ``` `` ```. Modified Markdown
9407 writer accordingly.
9408 + Fixed bug in text-wrapping routine in Markdown and RST writers.
9409 Now LineBreaks no longer cause wrapping problems.
9410 + Supported hexadecimal numerical entity references as well as
9411 decimal ones.
9412 + Fixed bug in Markdown reader's handling of underscores and other
9413 inline formatting markers inside reference labels: for example,
9414 in '[A_B]: /url/a_b', the material between underscores was being
9415 parsed as emphasized inlines.
9416 + Changed Markdown reader's handling of backslash escapes so that
9417 only non-alphanumeric characters can be escaped. Strict mode
9418 follows Markdown.pl in only allowing a select group of punctuation
9419 characters to be escaped.
9420 + Modified HTML reader to skip a newline following a `<br>` tag.
9421 Otherwise the newline will be treated as a space at the beginning
9422 of the next line.
9424 * Made handling of code blocks more consistent. Previously, some
9425 readers allowed trailing newlines, while others stripped them.
9426 Now, all readers strip trailing newlines in code blocks. Writers
9427 insert a newline at the end of code blocks as needed.
9429 * Modified readers to make spacing at the end of output more consistent.
9431 * Minor improvements to LaTeX reader:
9433 + '\thanks' now treated like a footnote.
9434 + Simplified parsing of LaTeX command arguments and options.
9435 commandArgs now returns a list of arguments OR options (in
9436 whatever order they appear). The brackets are included, and
9437 a new stripFirstAndLast function is provided to strip them off
9438 when needed. This fixes a problem in dealing with \newcommand
9439 and \newenvironment.
9441 * Revised RTF writer:
9443 + Default font is now Helvetica.
9444 + An '\f0' is added to each '\pard', so that font resizing works
9445 correctly.
9447 * Moved handling of "smart typography" from the writers to the Markdown
9448 and LaTeX readers. This allows great simplification of the writers
9449 and more accurate smart quotes, dashes, and ellipses. DocBook can
9450 now use `<quote>`. The '--smart' option now toggles an option in
9451 the parser state rather than a writer option. Several new kinds
9452 of inline elements have been added: Quoted, Ellipses, Apostrophe,
9453 EmDash, EnDash.
9455 * Changes in HTML writer:
9457 + Include title block in header even when title is null.
9458 + Made javascript obfuscation of emails even more obfuscatory,
9459 by combining it with entity obfuscation.
9461 * Changed default ASCIIMathML text color to black.
9463 * Test suite:
9465 + Added --strip-trailing-cr option to diff in runtests.pl, for
9466 compatibility with Windows.
9467 + Added regression tests with footnotes in quote blocks and lists.
9469 * Makefile changes:
9471 + osx-pkg target creates a Mac OS X package (directory). New osx
9472 directory contains files needed for construction of the package.
9473 + osx-dmg target creates a compressed disk image containing the package.
9474 + win-pkg target creates Windows binary package.
9475 + tarball target creates distribution source tarball.
9476 + website target generates pandoc's website automatically, including
9477 demos. New 'web' directory containts files needed for construction
9478 of the website (which will be created as the 'pandoc' subdirectory
9479 of 'web').
9480 + Makefile checks to see if we're running Windows/Cygwin; if so,
9481 a '.exe' extension is added to each executable in EXECS.
9483 * Removed all wrappers except markdown2pdf and html2markdown.
9485 * Added new wrapper hsmarkdown, to be used as a drop-in replacement
9486 for Markdown.pl. hsmarkdown calls pandoc with the '--strict'
9487 option and disables other options.
9489 * Added code to html2markdown that tries to determine the character
9490 encoding of an HTML file, by parsing the "Content-type" meta tag.
9492 + If the encoding can't be determined, then if the content is local,
9493 the local encoding is used; if it comes from a URL, UTF-8 is used
9494 by default.
9495 + If input is from STDIN, don't try to determine character encoding.
9496 + Encoding can be specified explicitly using '-e' option.
9498 * Improved warning messages in wrappers:
9500 + Print warning if iconv not available
9501 + More user-friendly error messages in markdown2pdf, when
9502 pdflatex fails.
9504 * Code cleanup:
9506 + Renamed 'Text/Pandoc/HtmlEntities' module to
9507 'Text/Pandoc/Entities'. Also changed function names so as
9508 not to be HTML-specific.
9509 + Refactored SGML string escaping functions from HTML and Docbook
9510 writers into Text/Pandoc/Shared. (escapeSGML, stringToSGML)
9511 + Removed 'BlockQuoteContext' from ParserContext, as it isn't
9512 used anywhere.
9513 + Removed splitBySpace and replaced it with a general, polymorphic
9514 splitBy function.
9515 + Refactored LaTeX reader for clarity (added isArg function).
9516 + Converted some CR's to LF's in src/ui/default/print.css.
9517 + Added license text to top of source files.
9518 + Added module data for haddock to source files.
9519 + Reformatted code for consistency.
9521 * Rewrote documentation and man pages. Split README into INSTALL
9522 and README.
9524 * Split LICENSE into COPYING and COPYRIGHT.
9526 * Removed TODO, since we now maintain ToDo on the wiki.
9528 * Made COPYRIGHT in top level a symlink to debian/copyright, to avoid
9529 duplication.
9531 [ Recai Oktaş ]
9533 * Revamped build process to conform to debian standards and created
9534 a proper debian package. Closes: #391666.
9536 * Modified build process to support GHC 6.6.
9538 + The package can still be compiled using GHC 6.4.2, though because
9539 of dependencies the "make deb" target works only with GHC 6.6+.
9540 + The script 'cabalize' is used to create an appropriate
9541 'Pandoc.cabal' from 'Pandoc.cabal.in', depending on the GHC and
9542 Cabal versions.
9544 * Refactored template processing (fillTemplates.pl).
9546 * Modified wrapper scripts to make them more robust and portable.
9547 To avoid code duplication and ensure consistency, wrappers are
9548 generated via a templating system from templates in src/wrappers.
9550 + Wrappers now accept multiple filenames, when appropriate.
9551 + Spaces and tabs allowed in filenames.
9552 + getopts shell builtin is used for portable option parsing.
9553 + Improved html2markdown's web grabber code, making it more robust,
9554 configurable and verbose. Added '-e', '-g' options.
9556 -- Recai Oktaş <roktas@debian.org> Fri, 05 Jan 2007 09:41:19 +0200
9558pandoc (0.2) unstable; urgency=low
9560 * Fixed unicode/utf-8 translation
9562 -- John MacFarlane <jgm@berkeley.edu> Mon, 14 Aug 2006 00:00:00 -0400
9564pandoc (0.1) unstable; urgency=low
9566 * Initial creation of debian package
9568 -- John MacFarlane <jgm@berkeley.edu> Mon, 14 Aug 2006 00:00:00 -0400