git.iko.soy/typeable/pandoc
on 1.15.2.1 help sign in
typeable/pandoc/changelog
9025 lines 376 kB history raw
1pandoc (1.15.2.1)
3 * Added two missing test files, and `stack.yaml`, to
4 `extra-source-files` so they're included in the source tarball.
6 * reveal.js template: Fixed parallaxBackground options.
7 `parallaxBackgroundHorizontal` and `parallaxBackgroundVertical`
8 need integer values, not strings. (Vaughn Iverson)
10pandoc (1.15.2)
12 * `pandoc my.md -t context -o my.pdf` will now create a PDF using
13 ConTeXt rather than LaTeX (#2463).
15 * Fixed omitted `url(...)` in CSS data-uri with `--self-contained` (#2489).
17 * Added `emoji` Markdown extension, enabled by default in `markdown_github`
18 (#2523). Added `Ext_emoji` to `Extension` in `Text.Pandoc.Options`
19 (API change).
21 * `Text.Pandoc.Readers.HTML.parseTags`: Fixed over-eager raw HTML inline
22 parsing (#2469). Tightened up the inline HTML parser so it disallows
23 TagWarnings.
25 * Derive `Generic` instances for the types in `Text.Pandoc.Options`.
27 * Org reader:
29 + Fix paragraph/list interaction (Albert Krewinkel, #2464).
30 Paragraphs can be followed by lists, even if there is no blank line
31 between the two blocks. However, this should only be true if the
32 paragraph is not within a list, were the preceding block should be
33 parsed as a plain instead of paragraph (to allow for compact lists).
34 Thanks to @rgaiacs for bringing this up.
35 + Allow toggling header args (Albert Krewinkel, #2269).
36 Org-mode allows to skip the argument of a code block header argument if
37 it's toggling a value. Argument-less headers are now recognized,
38 avoiding weird parsing errors.
39 + Fix markup parsing in headers (Albert Krewinkel, #2504).
40 Markup as the very first item in a header wasn't recognized. This was
41 caused by an incorrect parser state: positions at which inline markup
42 can start need to be marked explicitly by changing the parser state.
43 This wasn't done for headers. The proper function to update the state
44 is now called at the beginning of the header parser, fixing this issue.
45 + Fix emphasis rules for smart parsing (Albert Krewinkel, #2513).
46 Smart quotes, ellipses, and dashes should behave like normal quotes,
47 single dashes, and dots with respect to text markup parsing.
48 + Require whitespace around definition list markers (#2518).
49 This rule was not checked before, resulting in bugs with footnotes
50 and some link types.
52 * Markdown reader:
54 + Pipe tables with long lines now get relative cell widths (#2471).
55 If a pipe table contains a line longer than the column width (as set by
56 `--columns` or 80 by default), relative widths are computed based on the
57 widths of the separator lines relative to the column width. This should
58 solve persistent problems with long pipe tables in LaTeX/PDF output, and
59 give more flexibility for determining relative column widths in other
60 formats, too. For narrower pipe tables, column widths of 0 are used,
61 telling pandoc not to specify widths explicitly in output formats that
62 permit this.
63 + Improved parser for `mmd_title_block`. We now allow blank metadata
64 fields. These were explicitly disallowed before.
65 + Citation keys can now contain `://`, so URLs and DOIs can be used
66 as citation keys (jgm/pandoc-citeproc#166).
68 * Beamer template: fix incompatibility of section slides with natbib.
69 Natbib (and presumably biblatex) bibliography commands create
70 their own section. Since these are in frame environments,
71 we have an incompatibility with the `\AtBeginSection` macro
72 which creates a special frame when a new section occurs.
73 (We can't have a frame inside another frame.) This change disables
74 `\AtBeginSection` inside bibliography slides. Thinks to Yihui Xie for
75 bringing the problem to my attention. This supersedes #145. See
76 discussion there.
78 * Textile reader: don't do smart punctuation unless explicitly asked
79 (#2480). Note that although smart punctuation is part of the textile
80 spec, it's not always wanted when converting from textile
81 to, say, Markdown. So it seems better to make this an option.
83 * LaTeX reader: Handle `comment` environment (Arata Mizuki).
84 The `comment` environment is handled in a similar way to the
85 `verbatim` environment, except that its content is discarded.
87 * Docx reader: Follow relationships correctly in foot/endnotes (#2258,
88 Jesse Rosenthal). This fixes a problem with links in notes.
90 * LaTeX and ConTeXt writers: support `lang` attribute on divs and spans
91 (mb21). For LaTeX, also collect `lang` and `dir` attributes on spans and
92 divs to set the `lang`, `otherlangs` and `dir` variables if they aren’t set
93 already. See #895.
95 * LaTeX writer:
97 + Use proper command for `\textarabic` (mb21).
98 + Added `de-CH-1901`, fixed `el-polyton` in `toPloyglossia` (Nick Bart).
99 + Use `\hypertarget` and `\hyperlink` for links. This works correctly
100 to link to Div or Span elements. We now don't bother defining `\label`
101 for Div or Span elements. Closes jgm/pandoc-citeproc#174.
102 + Avoid footnotes in list of figures (#1506).
103 + Properly handle footnotes in captions (#1506).
104 + Add `\protect` to `\hyperlink` (#2490). Thanks to Hadrien Mary.
105 + Set `colorlinks` if `linkcolor`, `urlcolor`, `citecolor`, or
106 `toccolor` is set (#2508).
108 * Textile writer: support start number in ordered lists (#2465).
110 * OpenDocument writer: Allow customization of opendocument
111 automatic styles. Automatic styles can now be inserted in the
112 template, which now provides the enclosing `<office:automatic-styles>`
113 tags (#2520).
115 * Docx writer: insert space between footnote reference and note (#2527).
116 This matches Word's default behavior.
118 * EPUB writer: don't download linked media when `data-external` attribute
119 set (#2473). By default pandoc downloads all linked media and includes it
120 in the EPUB container. This can be disabled by setting `data-external` on
121 the tags linking to media that should not be downloaded. Example:
123 <audio controls="1">
124 <source src="http://example.com/music/toccata.mp3"
125 data-external="1" type="audio/mpeg">
126 </source>
127 </audio>
129 * HTML writer: use width on whole table if col widths sum to < 100%.
130 Otherwise some browsers display the table with the columns
131 separated far apart.
133 * AsciiDoc template: Fix `author` and `date`; add `keywords`,
134 `abstract` (Andrew Dunning).
136 * HTML-based templates (Andrew Dunning):
138 + Use en dash instead of hyphen between title prefix and title.
139 + Add `keywords` to metadata.
140 + Add `lang`, `dir`, `quotes` where missing.
141 + Always make author and date display conditional.
142 + Updated dzslides template from source.
144 * Man template: make "generated by" comment conditional.
146 * LaTeX, Beamer templates:
148 + Add `babel-otherlangs` for language divs/spans; `babel-newcommands`,
149 filled by commands that make babel understand the polyglossia-style
150 language directives (mb21, #137).
151 + Improved formatting of conditionals; `$for$` is always provided to allow
152 multiple options (Andrew Dunning, #141).
153 + Use `Ligatures=TeX` rather than `Mapping=tex-text` with `fontspec`
154 to improve support for LuaTeX (Andrew Dunning, #135).
155 + Revise `hyperref` usage (Andrew Dunning, #139, #141):
156 - use same options for all LaTeX engines;
157 - add `subtitle` and `keywords` to PDF metadata;
158 - do not override `hyperref` link coloring without user input, effectively making
159 the `hidelinks` option the default (removed as a separate variable);
160 - link colors can be enabled (using a slightly darker version of the old
161 defaults) using a new `colorlinks` variable, automatically used by
162 the LaTeX writer when custom colors are specified;
163 - `pdfborder={0 0 0}` is automatically set by `hyperref` with
164 `colorlinks`, and is only applied if `colorlinks` is disabled.
166 * ConTeXt template (Andrew Dunning):
168 + New variables for controlling styles: `linkstyle`, `linkcolor`,
169 `linkcontrastcolor`, `layout`, `pagenumbering`, `whitespace`, `indenting`,
170 `interlinespace`, `headertext`, `footertext`, `mainfont`, `sansfont`,
171 `monofont`, `mathfont`, `fontsize`.
172 + Default template no longer supports MkII.
173 + Improve writing of title block (suppressing numbering of first page).
174 + Add `title` `subtitle`, `author`, `date`, `keywords` to PDF metadata.
175 + Support `subtitle`, `abstract`.
176 + Support list of figures (`lof`), list of tables (`lot`).
177 + Disable link styling by default.
178 + Define styles for all section types.
179 + Enable microtype.
180 + Improved formatting of conditionals.
182 * Beamer template: added code to prevent slide breaks inside paragraphs
183 (#2422, thanks to Nick Bart). This will matter, in practice, only when
184 `allowframebreaks` is used. It is especially helpful for bibliography
185 slides.
187 * OpenDocument template: Add `<office:automatic-styles>` tag around
188 automatic styles. The writer now longer provides this (see #2520).
190 * Restored Text.Pandoc.Compat.Monoid.
192 * Do not export (<>) from custom Prelude. The Prelude now matches
193 base 4.8 Prelude's API.
195 * Don't use custom prelude with ghc 7.10. Use the custom prelude
196 only for earlier versions. This change makes `stack ghci` and
197 `cabal repl` work (#2503), at least with ghc 7.10.
199 * Changed § to % in operators from Odt.Arrows.Utils (#2457).
200 This prevents problems building haddocks with "C" locale.
202 * Change default for old-locale flag to False.
204 * Use stack in deb, osx, and Windows package generators.
206 * Added Vagrantfile for building deb in vm.
207 This should help in automating binary package creation. 'make package'
208 will make the package. 'make package COMMIT=blah' will make the package
209 from commit blah.
211 * README:
213 + Consistent capitalization for pandoc and Markdown.
214 + Fixed `auto_identifiers` examples (Benoit Schweblin).
215 + Improved documentation of template variables (Andrew Dunning).
217pandoc (1.15.1.1)
219 * `Text.Pandoc.Data`: store paths in dataFiles using posix separators.
220 This way we have uniform separators, whether on Windows or Linux.
221 This should solve a problem where on some Windows versions
222 the data files weren't being found (#2459).
224pandoc (1.15.1)
226 * `pandocVersion` is now defined in `Text.Pandoc.Shared`
227 and reexported from `Text.Pandoc` (Alex Vong). This allows
228 writers to access it. (Alex Vong) (API change)
230 * For `markdown_mmd`, add: `implicit_figures`, `superscripts`,
231 `subscripts` (#2401).
233 * Added `odt` as input format (Martin Linnemann). Added new module
234 `Text.Pandoc.Reader.ODT` (API change). Fully implemented features:
235 Paragraphs, Headers, Basic styling, Unordered lists, Ordered lists,
236 External Links, Internal Links, Footnotes, Endnotes, Blockquotes.
237 Partly implemented features: Citations, Tables.
239 * Markdown Reader:
241 + Add basic tests for each header style (Ophir Lifshitz).
242 + Add implicit header ref tests for headers with spaces (Ophir Lifshitz).
243 + Skip spaces in headers (Ophir Lifshitz).
244 + Handle 'id' and 'class' in parsing key/value attributes (#2396).
245 `# Header {id="myid" class="foo bar"}`
246 is now equivalent to `# Header {#myid .foo .bar}`.
247 + Use '=' instead of '#' for atx-style headers in markdown+lhs.
248 (Kristof Bastiaensen)
249 + Pipe tables: allow indented columns. Previously the left-hand column
250 could not start with 4 or more spaces indent. This was inconvenient
251 for right-aligned left columns. Note that the first (header column)
252 must still have 3 or fewer spaces indentation, or the table will be
253 treated as an indented code block.
254 + Fix regression: allow HTML comments containing `--`.
255 Technically this isn't allowed in an HTML comment, but
256 we've always allowed it, and so do most other implementations.
257 It is handy if e.g. you want to put command line arguments
258 in HTML comments.
260 * LaTeX reader:
262 + Don't eat excess whitespace after macros with only optional
263 arguments (#2446).
264 + Support longtable (#2411).
265 + Implement `\Cite` (#2335).
266 + Support abstract environment. The abstract populates an
267 `abstract` metadata field.
268 + Properly handle booktabs lines. Lines aren't part of the
269 pandoc table model, so we just ignore them (#2307).
271 * HTML reader:
273 + Handle type attribute on ol, e.g. `<ol type="i">` (#2313).
274 + Updated for new automatic header attributes.
275 + Add auto identifiers if not present on headers. This makes
276 TOC linking work properly.
277 + Detect `font-variant` with `pickStyleAttrProps` (Ophir Lifshitz).
278 + Test `<ol>` type, class, and inline list-style(-type) CSS
279 (Ophir Lifshitz).
280 + Better handling of "section" elements (#2438). Previously
281 `<section>` tags were just parsed as raw HTML blocks. With
282 this change, section elements are parsed as Div elements with
283 the class "section".
285 * MediaWiki reader: handle unquoted table attributes (#2355).
287 * DocBook reader:
289 + Added proper support for DocBook `xref` elements (Frerich Raabe).
290 Added `dbContent` field to reader state, so we can lookup
291 cross refs.
292 + Handle `informalexample` (#2319).
294 * Docx Reader:
296 + Create special punctuation test (Ophir Lifshitz).
297 + Parse soft, no-break hyphen elements (Ophir Lifshitz).
298 + Updated headers test (Ophir Lifshitz). Replaced `styles.xml`
299 in `headers.docx` with pandoc's current `styles.xml`, which
300 contains styles for Heading 1 through 6. Added Heading 4
301 through 7 to the test document. Note that Heading 7 is not
302 parsed as a Heading because there is no Heading 7 style.
304 * RST reader: better handling of indirect roles.
305 Previously the parser failed on this kind of case
307 .. role:: indirect(code)
309 .. role:: py(indirect)
310 :language: python
312 :py:`hi`
314 Now it correctly recognizes `:py:` as a code role.
316 * Org reader:
318 + Add auto identifiers if not present on headers
319 (#2354, Juliusz Gonera).
320 + Allow verse blocks to contain empty lines (#2402,
321 Albert Krewinkel).
323 * EPUB reader: stop mangling external URLs (#2284).
325 * RST writer:
327 + Don't insert `\ ` when complex expression in matched pairs.
328 E.g. `` [:sup:`3`] `` is okay; you don't need `` [:sup:`3`\ ] ``.
329 + Ensure that `\ ` is inserted when needed before Cite and Span
330 elements that begin with a "complex" element (jgm/pandoc-citeproc#157).
331 + Normalize headers only in "standalone" mode (#2394).
333 * Haddock writer: escape `*` and `^` (G. Bataille).
335 * Markdown writer:
337 + In TOC, add links to headers (#829).
338 + Use unicode super/subscripts for digits in plain output
339 (when the `superscripts` and `subscripts` extensions are
340 not enabled).
342 * Docx writer:
344 + Moved invalid character stripping to `formattedString`.
345 This avoids an inefficient generic traversal (#2356).
346 + Use user data directory for `reference.docx` archive.
347 This allows the test suite to work without installing pandoc first.
348 It also brings the docx writer in line with the odt writer.
349 + Tests: docx writer tests now use `../data` for data directory.
350 This allows tests to be run without installing first.
351 + Tests: Use real jpg (not empty) for docx tests to avoid warning.
353 * LaTeX writer:
355 + Fixed detection of 'chapters' from template.
356 If a documentclass isn't specified in metadata, but the
357 template has a hardwired bookish documentclass, act as if
358 `--chapters` was used. This was the default in earlier
359 versions, but it has been broken for a little while.
360 + Correctly recognize book documentclass in metadata (#2395).
361 + Set language-related variables automatically, depending
362 on the value of the `lang` field, which is now always
363 assumed to be in BCP47 format (mb21, #1614, #2437).
364 + Add `\protect` to `\hyperdef` in inline context. This way we
365 don't get an error when this is used as a moveable argument (#2136).
366 + Support all frame attributes in Beamer.
367 + Percent-encode more special characters in URLs (#1640, #2377).
368 The special characters are '<','>','|','"','{','}','[',']','^', '`'.
370 * HTML writer:
372 + Update KaTeX JS and CSS versions (Emily Eisenberg).
373 + For dzslides, add `role="note"` for speaker notes (#1693).
374 + Percent-encode more special characters in URLs (#1640, #2377).
375 The special characters are '<','>','|','"','{','}','[',']','^', '`'.
376 + Render Div with class `section` as `<section>` in HTML5.
378 * EPUB writer:
380 + In TOC, replace literal `<br/>` with space (#2105).
381 + With `--webtex`, include image file rather than `data:` URI (#2363).
383 * Native writer: format Div properly, with blocks separated.
385 * Support bidirectional text output with XeLaTeX, ConTeXt and HTML
386 (#2191, mb21).
388 * Reference Docx:
390 + Add missing Header 6 style (steel blue) (Ophir Lifshitz).
391 + Correct `outlineLvl` for Header styles (Ophir Lifshitz).
393 * Templates
395 + Beamer: Add `innertheme`, `outertheme` variables
396 (Guilhem Bonnefille, #121). Add space after colon in figure caption.
397 Integrate recent font and language updates from LaTeX template;
398 allow use of `mainfont` variable for changing the slide text
399 in XeTeX and LuaTeX (Andrew Dunning, #131).
400 + LaTeX: Add `mainfontoptions`, `sansfontoptions`,
401 `monofontoptions`, `mathfontoptions`, `fontfamilyoptions`
402 (Andrew Dunning, #122). Support handling of bidirectional
403 text (mb21, #120). Improve reliability of superscripts/subscripts
404 under XeTeX and prevent letters and numbers from appearing on a
405 different baseline by removing use of the `realscripts` package
406 (via `xltxtra`). To restore use of OpenType characters for these
407 features under XeTeX or LuaTeX, add `\usepackage{realscripts}` to
408 `header-includes` (Andrew Dunning, #130). Remove redundant
409 reference to `xunicode` (Andrew Dunning, #130). Add `fontenc`,
410 `indent`, `subparagraph` variables (Andrew Dunning).
411 Allow use of `hidelinks` variable for `hyperref` package (Hugo Roy,
412 #113). Prevent package clash with `tufte-latex` and other classes that
413 include `hyperref` or `color` (Xavier Olive, #115).
414 + ConTeXt: Support handling of bidirectional text (mb21, #120).
415 + LaTeX and ConTeXt: Use more specific language variables.
416 Instead of directly using `lang`, we now use `babel-lang` and
417 `polyglossia-lang` and `context-lang`. These variables are set by
418 the writers to the necessary values, based on the `lang` variable
419 (which now always takes a value in BCP47 format). (mb21, #114, #129).
420 + HTML: Support handling of bidirectional text (mb21, #120).
421 Move HTML5 shiv after CSS and fix URL (Andrew Dunning).
422 Add dir attribute in html5 (Andrew Dunning).
423 + reveal.js: Add `controls`, `progress` variables (Grégoire Pineau, #127).
424 Add `width`, `height` variables (Andrew Dunning). Update template
425 from 3.1 source (Andrew Dunning). All configuration options are now
426 available as variables, but are only be included if set (reveal.js
427 uses defaults otherwise).
428 + man: Added comment stating that the page is autogenerated by pandoc,
429 giving version. Added `adjusting` and `hyphenate` variables
430 (Alex Vong, #123).
432 * epub.css: added selectors for nested emphasis (Pablo Rodriguez).
434 * MediaBag: ensure that `/` is always used as path separator.
436 * `sample.lua`: define `CaptionedImage`, add newline at end (#2393).
438 * Added `--bash-completion` option. This generates a bash completion
439 script. To use: `eval "$(pandoc --bash-completion)"`.
441 * Text.Pandoc.Error: Define Typeable and Exception instances
442 for PandocError (#2386).
444 * Text.Pandoc.Parsing: `toKey`: strip off outer brackets.
445 This makes keys with extra space at the beginning and end
446 work: e.g.
448 [foo]: bar
450 [ foo ]
452 will now be a link to bar (it wasn't before).
454 * Text.Pandoc: disable `auto_identifiers` for epub.
455 The epub writer inserts its own auto identifiers;
456 this is more complex due to splitting into "chapter" files.
458 * Renamed Text.Pandoc.Compat.Locale -> Text.Pandoc.Compat.Time.
459 It now reexports Data.Time.
461 * Use custom Prelude to avoid compiler warnings.
463 + The (non-exported) prelude is in prelude/Prelude.hs.
464 + It exports Monoid and Applicative, like base 4.8 prelude,
465 but works with older base versions.
466 + It exports (<>) for mappend.
467 + It hides 'catch' on older base versions.
469 * Added a `stack.ymal` and stack install instructions to INSTALL.
471 * Clarified what is "out of scope" in README and CONTRIBUTING.md.
473 * Added note to CONTRIBUTING.md about ghc versions and travis.
475 * Clarify docs on block quotes. The space after `>` is optional (#2346).
477 * Removed obsolete reference to default.csl (#2372).
479 * List all styles in manual for `--reference-docx` (Chris Black)
481 * Don't capitalize header links in man page.
483 * Added section on repl to CONTRIBUTING.md.
485 * README: Added space after backslash in image example (#2329).
487 * Document details of citation locator terms (Nick Bart).
489 * Fixed some internal links in README (#2309).
491 * Improve CSL documentation, variables documentations,
492 links, and cross-references in README. (Andrew Dunning)
494 * Fix build failure with `--flags=-https` (Sergei Trofimovich).
496 * Use `newManager` instead of `withManager` in recent `http-client`.
497 This avoids a deprecation warning.
499 * Allow building with latest versions of http-types,
500 HUnit, criterion, syb, aeson.
502 * Updated benchmark program for new criterion API.
504 * Setup.hs: rewrite so as not to use process, directory, filepath.
505 Using anything outside base is dangerous, since older
506 versions of ghc may link against two different versions.
508 * Added appveyor (Windows continuous integration) builds.
510 * New `.travis.yml`. Autgenerated using `make_travis_yml.hs`.
511 This script has been modified in a few ways, e.g. to add `GHCOPTS`.
512 `make .travis.yml` regenerates it based on the tested-with
513 field of the cabal file.
515pandoc (1.15.0.6)
517 * `--self-contained`: Fixed overaggressive CSS minimization (#2301, 2286).
518 Previously `--self-contained` wiped out all spaces in CSS,
519 including semantically significant spaces. This was a regression
520 from 1.14.x.
522 * Markdown reader: don't allow bare URI links or autolinks in link
523 label (#2300). Added test cases.
525 * `Text.Pandoc.Parsing`, `uri`: Improved bare autolink detection (#2299).
526 Previously we disallowed `-` at the end of an autolink,
527 and disallowed the combination `=-`. This commit liberalizes the
528 rules for allowing punctuation in a bare URI, and adds test cases.
529 One potential drawback is that you can no longer put a bare
530 URI in em dashes like this:
531 `this uri---http://example.com---is an example.`
532 But in this respect we now match github's treatment of bare URIs.
534 * HTML writer: support speaker notes in dzslides.
535 With this change `<div class="notes">` and also `<div class="notes"
536 role="note">` will be output if `-t dzslides` is used. So we can
537 have speaker notes in dzslides too. Thanks to maybegeek.
539 * Updated dzslides template.
541 * Improved documentation of options to print system default files (#2298).
542 `--print-default-data-file` and `--print-default-template`.
544 * DokuWiki writer: use `$..$` for Math instead of `<math>..</math>`
545 (Tiziano Müller). MathJax seems currently to be the only maintained
546 math rendering extension for DokuWiki.
548 * `Text.Pandoc.Shared`: Changed `hierarchicalize` so it treats references
549 div as top-level header (#2294). This fixes a bug with `--section-divs`,
550 where the final references section added by pandoc-citeproc, enclosed in
551 its own div, got nested in the div for the section previous to it.
553 * Allow vector 0.11.
555 * Require cmark > 0.4.
557pandoc (1.15.0.5)
559 * HTML writer: Fixed email javascript obfuscation with `mailto:`
560 URLs (#2280). This fixes a potential security issue. Because
561 single quotes weren't being escaped in the link portion, a
562 specially crafted email address could allow javascript code injection.
564 * Markdown/HTML readers: Avoid parsing partial URLs like
565 `<www.pandoc.org/blah#foo>` as HTML tags (#2277).
567 * RST reader: allow inline formatting in definition list field
568 names (Lars-Dominik Braun).
570 * PDF: Make sure `--latex-engine-opt` goes before the filename
571 on the command line. LaTeX needs the argument to come after
572 the options (#1779).
574 * CommonMark writer: fixed tags used for super/subscript.
576 * ConTeXt template: activate hanging indent for definition lists
577 (mb21).
579 * Make cabal require `hsb2hs` >= 0.3.1 if `embed_data_files` specified.
580 This is done by adding `hookedPrograms` in `Setup.hs`, which allows us
581 to include `hsb2hs` in Build-Tools in cabal.
583 * Improved Windows installer (thanks to nkalvi).
585 + When per-machine installation is chosen, the system path
586 is updated instead of the user's.
587 + An appropriate default is used for per-machine installation
588 directory.
589 + Admin privileges are no longer required for a per-user install
591 * Travis: unpack sdist for build to catch packaging bugs.
593 * Improved documentation on where user templates go (#2272).
595pandoc (1.15.0.4)
597 * Added pandoc.1 man page to the repository. It is no longer
598 built as part of the cabal build process. (This proved too
599 fragile.) pandoc.1 can be regenerated (`make man/pandoc.1`)
600 when `README` is changed.
602 * Copying of the man page now respects `--destdir` (#2262).
604 * Improved error messages for filters. User is now informed if
605 the filter requires an interpreter that isn't found in the path,
606 or if the filter returns an error status.
608pandoc (1.15.0.3)
610 * Ensure target directory is created when installing man page.
612pandoc (1.15.0.2)
614 * Added files needed for building man page to Extra-Source-Files.
616pandoc (1.15.0.1)
618 * Man page is now built and installed as part of the cabal build
619 process. Removed Makefile target for man page.
621pandoc (1.15)
623 * Man page changes:
625 + Removed `--man1`, `--man5` options (breaking change).
626 + Removed `Text.Pandoc.ManPages` module (breaking API change).
627 + Makefile target for `man/man1/pandoc.1`. This uses pandoc to
628 create the man page from README using a custom template and filters.
629 + Added `man/` directory with template and filters needed to build
630 man page.
631 + We no longer have two man pages: `pandoc.1` and `pandoc_markdown.5`.
632 Now there is just pandoc.1, which has all the content from README.
633 This change was needed because of the extensive cross-references
634 between parts of the README.
635 + Removed old `data/pandoc.1.template` and
636 `data/pandoc_markdown.5.template`.
638 * OpenDocument writer: Do not add a carriage return after a hard
639 line break (Michael Chladek).
641 * ConTeXt writer:
643 + use `\goto` for internal links.
644 + Added a `%` at end for `\reference` to avoid spurious space.
646 * Ignore sandbox on 'make quick'
648pandoc (1.14.1)
650 * Added `--man1` and `--man5` options to pandoc, allowing pandoc
651 to generate its own man pages. Man pages are no longer automatically
652 generated in the build process (the process for this was too complex
653 and prone to failure, #2190). The `make-pandoc-man-pages` executable
654 has been removed. The `man/` directory has been removed, and man page
655 templates have been moved to `data/`. NOTE TO PACKAGERS: You will no
656 longer find pandoc's man pages in `man/`, but you can generate them using
657 `pandoc --man1 > pandoc.1` and `pandoc --man5 > pandoc_markdown.5`.
659 * Added new unexported module: `Text.Pandoc.ManPages`.
661 * `README` now acts like a data file (even though it isn't in
662 `data/`). So, for example, `pandoc --print-default-data-file README`
663 will produce the README.) This change was required for the `--man1`
664 and `--man5` options, since the man pages are produced from the
665 README, but it may be useful for other purposes as well.
667 * Allow `reference.docx` and `reference.odt` to be used with
668 `--print-default-data-file` and to shadow defaults if placed in
669 the user data directory. Note that as of 1.14, we no longer
670 include these files as data files; instead, we include their
671 components. This change causes pandoc to behave as if it has
672 these data files; they are constructed on demand when needed
673 using `getDefaultReferenceDocx` and `getDefaultReferenceODT`.
675 * Fixed regression in CSS parsing with `--self-contained` (#2224).
676 Pandoc 1.14.0.x used css-text to parse the CSS, but its parser
677 silently drops big sections of CSS. This commit replaces the
678 use of css-text with a small but principled CSS preprocessor,
679 which removes whitespace and comments and replaces `url()` with
680 base 64 data when possible.
682 * Use `https://` instead of `//` for MathJax and KaTeX CDN URLs (#1920).
683 This will allow math to work when pages are being viewed locally.
685 * `Text.Pandoc.Options`: Export `plainExtensions`.
686 These are the extensions used in `plain` output.
688 * LaTeX reader: Don't parse `_` and `^` as sub/superscript outside of
689 math mode; treat them as regular inline text. Normally these will
690 cause an error in LaTeX, but there are contexts (e.g. `alltt`
691 environments) where they are allowed.
693 * HTML reader: allow `<body>` to close `<head>`.
695 * DocBook reader: support `mediaobject`s and `figures` (#2184, mb21).
697 * RST reader: Fix reference names with special characters
698 (Lars-Dominik Braun).
700 * Textile writer: escape `+` and `-` as entities (#2225).
702 * DokuWiki writer: Use proper `<code>` tags for code blocks (#2213).
704 * Plain writer: don't use symbols for super/subscript (#2237).
705 Simplified code by using `plainExtensions`.
707 * InDesign writer: Properly escape URLs containing more than one
708 colon character (gohai).
710 * Docx writer: Make sure we use dist version of `reference.docx`
711 (and not the user's version) for certain settings. Taking some
712 settings values from a user-supplied reference.docx can lead to
713 corruption. This fixes a regression from the last release (#2249).
715 * `Text.Pandoc.Shared`: exports `getDefaultReferenceDocx` and
716 `getDefaultReferenceODT` (API change). These functions have been
717 removed from the Docx and ODT writers.
719 * LaTeX template (Xavier Olive):
720 + Added `CJKmainfont` and `CJKoptions` variables.
721 + Allow dvipsnames (e.g. `MidnightBlue`) for colors (Xavier Olive).
723 * Epub templates: use `author.role`, not `author.type`.
725 * Bump cmark version to >= 0.3.4.
727 * Improved Windows installer (#2205, thanks to nkalvi).
728 Users can now select a per-user or systemwide install, and can set
729 the installation path. At the end of installation, the install location
730 is given. The install location is also now given in the list of
731 installed programs in Control Panel. Cleaner WiX syntax is used for
732 setting the path.
734 * Added `download_stats` target to Makefile.
736pandoc (1.14.0.4)
738 * Added missing commonmark template.
740 * Improved try pandoc (moved button, show raw command).
742pandoc (1.14.0.3)
744 * Allow compilation with syb 0.5.*.
746 * Custom writer: fixed some compiler warnings for ghc < 7.10.
748pandoc (1.14.0.2)
750 * Allow building with hslua 0.4.
752pandoc (1.14.0.1)
754 * Fixed problem with building of `reference.docx` and `reference.odt`
755 when the `embed_data_files` flag is used. Instead of having a phase
756 of the build where `reference.docx` and `reference.odt` are created
757 from their constituent data files, we now construct these archives
758 from their constituents when a `docx` or `odt` is built. The
759 constituent files have been moved from `extra-source-files` to
760 `data-files`, and `reference.docx` and `reference.odt` have been
761 removed. Users can create their own `reference.docx` or
762 `reference.odt` by using pandoc to create a simple `docx` or `odt`.
763 `make-reference-files.hs` has been removed, simplifying the build
764 process (#2187)
766 * Don't include generated man pages in extra-source-files (#2189).
768 * Bumped upper bound for aeson.
770 * ConTeXt writer: create internal link anchors for Div elements with
771 identifiers. (This is needed for linked citations to work.)
773pandoc (1.14)
775 [new features]
777 * Added `commonmark` as input and output format.
779 * Added `--verbose` flag for debugging output in PDF production (#1840,
780 #1653).
782 * Allow wildcards in `--epub-embed-font` arguments (#1939).
784 * Added `--latex-engine-opt` option (#969, #1779, Sumit Sahrawat).
786 * Added `shortcut_reference_links` extension (Konstantin Zudov, #1977).
787 This is enabled by default for those markdown flavors that
788 support reading shortcut reference links, namely: `markdown`,
789 `markdown_strict`, `markdown_github`, `markdown_php`.
790 If the extension is enabled, the reader parses shortcut reference
791 links like `[foo]`, and the writer creates such links unless doing
792 so would cause problems. Users of markdown flavors that support
793 shortcut reference links should not notice a difference in reading
794 markdown, but the markdown pandoc produces may differ.
795 If shortcut links are not desired, the extension can be disabled
796 in the normal way.
798 [behavior changes]
800 * `--toc` is now supported for `docx` output (#458, Nikolay Yakimov).
801 A "dirty" TOC is created at the beginning of document.
802 It can be regenerated after the document has been opened.
804 * An implicit `--filter pandoc-citeproc` is now triggered only when the
805 `--bibliography` option is used, and not when the `bibliography`
806 field in metadata is specified (#1849).
808 * Markdown reader:
810 + Reference links with `implicit_header_references` are no longer
811 case-sensitive (#1606).
812 + Definition lists no longer require indentation for first line (#2087).
813 Previously the body of the definition (after the `:` or `~` marker)
814 needed to be in column 4. This commit relaxes that requirement,
815 to better match the behavior of PHP Markdown Extra. So, now
816 this is a valid definition list:
818 foo
819 : bar
820 + Resolve a potentially ambiguity with table captions:
822 foo
824 : bar
826 -----
827 table
828 -----
830 Is "bar" a definition, or the caption for the table? We'll count
831 it as a caption for the table.
832 + Disallow headerless pipe tables (#1996), to conform to GFM and PHP
833 Markdown Extra. Note: If you have been using headerless pipe tables,
834 this change may cause existing tables to break.
835 + Allow pipe tables with header but no body (#2017).
836 + Allow a digit as first character of a citation key (Matthias Troffaes).
837 See https://github.com/jgm/pandoc-citeproc/issues/97
839 * LaTeX reader:
841 + Don't limit includes to `.tex` extension (#1882).
842 If the extension is not `.tex`, it must be given explicitly in
843 the `\input` or `\include`.
845 * Docx reader:
847 + Allow numbering in the style file. This allows inherited styles
848 with numbering (lists) (Jesse Rosenthal).
850 * Org reader:
852 + Support smart punctuation (Craig Bosma).
853 + Drop trees with a :noexport: tag (Albert Krewinkel). Trees having a
854 `:noexport:` tag set are not exported. This mirrors org-mode.
855 + Put header tags into empty spans (Albert Krewinkel, #2160).
856 Org mode allows headers to be tagged: `* Headline :TAG1:TAG2`.
857 Instead of being interpreted as part of the headline, the tags are now
858 put into the attributes of empty spans. Spans without textual content
859 won't be visible by default, but they are detectable by filters. They
860 can also be styled using CSS when written as HTML.
861 + Generalize code block result parsing (Albert Krewinkel).
862 Previously, only code blocks were recognized as result blocks;
863 now, any kind of block can be the result.
865 * Append newline to the LineBreak in Dokuwiki, HTML, EPUB,
866 LaTeX, MediaWiki, OpenDocument, Texinfo writers (#1924, Tim Lin).
868 * HTML writer:
870 + Add "inline" or "display" class to math spans (#1914).
871 This allows inline and display math to be styled differently.
872 + Include raw latex blocks if `--mathjax` specified (#1938).
873 + Require highlighting-kate >= 0.5.14 (#1903).
874 This ensures that all code blocks will be wrapped in a `div`
875 with class `sourceCode`. Also, the default highlighting CSS
876 now adds `div.sourceCode { x-overflow: auto; }`, which means
877 that code blocks (even with line numbers) will acquire a scroll
878 bar on screens too small to display them (e.g. mobile phones).
879 See also jgm/highlighting-kate#65.
881 * LaTeX writer:
883 + Use a declaration for tight lists (Jose Luis Duran, Joseph
884 Harriott). Previously, pandoc hard-coded some commands to make
885 tight lists in LaTeX. Now we use a custom command instead,
886 allowing the styling to be changed in a macro in the header.
887 (Note: existing templates may need to be modified to include
888 the definition of this macro. See the current template.)
889 + Beamer output: if the header introducing a slide has the
890 class `fragile`, add the `[fragile]` option to the slide (#2119).
892 * MediaWiki writer:
894 + Use `File:` instead of the deprecated `Image:` for images and
895 other media files (Greg Rundlett).
897 * DocBook writer:
899 + Render a `Div (id,_,_) [Para _]` element as a `para` element
900 with an `id` attribute. This makes links to citations work in
901 DocBook with pandoc-citeproc.
903 * RST writer:
905 + Normalize headings to sequential levels (Nikolay Yakimov).
906 This is pretty much required by docutils.
907 + Treat headings in block quotes, etc as rubrics (Nikolay Yakimov).
908 + Better handling of raw latex inline (#1961). We use
909 `` :raw-latex:`...` `` and add a definition for this role to
910 the template.
912 * EPUB writer:
914 + Remove `linear=no` from cover `itemref` (#1609).
915 + Don't use `sup` element for epub footnotes (#1995).
916 Instead, just use an a element with class `footnoteRef`.
917 This allows more styling options, and provides better results
918 in some readers (e.g. iBooks, where anything inside the a
919 tag breaks popup footnotes).
920 + Take TOC title from `toc-title` metadata field.
922 * Docx writer:
924 + Implemented `FirstParagraph` style (Jesse Rosenthal).
925 Following the ODT writer, we add the `FirstParagraph` style to the
926 first text paragraph following an image, blockquote, table, heading,
927 or beginning of document. This allows it to be styled differently.
928 The default is for it to be the same as `Normal`.
929 + Added `BodyText` style (Jesse Rosenthal).
930 We apply a `BodyText` style to all unstyled paragraphs. This is,
931 essentially, the same as `Normal`, except that since not everything
932 inherits from `BodyText` (the metadata won't, for example, or
933 the headers or footnote numbers), we can change the text in the body
934 without having to make exceptions for everything. If we do want to
935 change *everything*, we can still do it through `Normal`.
936 + Altered `Blockquote` style slightly (Jesse Rosenthal).
937 Since `BlockQuote` derives from `BodyText`, we just want to specify
938 by default that it won't indent, regardless of what `BodyText` does.
939 Note that this will not produce any visible difference in the default
940 configuration.
941 + Take TOC title from `toc-title` metadata field (Nikolay Yakimov).
942 + Added a style to figure images (Nikolay Yakimov).
943 Figures with empty captions use style `Figure`.
944 Figures with nonempty captions use style `Figure with Caption`, which
945 is based on `Figure`, and additionally has `keepNext` set.
947 * ODT writer:
949 + Added figure captions (Nikolay Yakimov). The following styles are
950 used for figures:
951 `Figure` -- for figure with empty caption),
952 `FigureWithCaption` (based on `Figure`) -- for figure with caption,
953 `FigureCaption` (based on `Caption`) -- for figure captions.
954 Also, `TableCaption` (based on `Caption`) is used for table captions.
956 [API changes]
958 * New `Text.Pandoc.Error` module with `PandocError` type
959 (Matthew Pickering).
961 * All readers now return `Either PandocError Pandoc` instead of `Pandoc`
962 (Matthew Pickering). This allows better handling of errors.
964 * Added `Text.Pandoc.Writers.CommonMark`, exporting `writeCommonMark`.
966 * Added `Text.Pandoc.Readers.CommonMark`, exporting `readCommonMark`.
968 * Derive `Data` and `Typeable` instances for `MediaBag`, `Extension`,
969 `ReaderOptions`, `EPUBVersion`, `CiteMethod`, `ObfuscationMethod`,
970 `HTMLSlideVariant`, `TrackChanges`, `WriterOptions` (Shabbaz
971 Youssefi).
973 * New `Ext_shortcut_reference_links` constructor for `Extension`
974 (Konstantin Zudov).
976 [bug fixes]
978 * Markdown reader:
980 + Allow smart `'` after inline math (#1909, Nikolay Yakimov).
981 + Check for tex macros after indented code (#1973).
982 + Rewrote `charsInBalancedBrackets` for efficiency.
983 + Make sure a closing `</div>` doesn't get included in a
984 definition list item (#2127).
985 + Don't parse bracketed text as citation if it might be a link,
986 image, or footnote (Nikolay Yakimov).
987 + Require space after key in mmd title block (#2026, Nikolay
988 Yakimov). Require space after key-value delimiter colon in mmd title
989 block.
990 + Require nonempty value in mmd title block (Nikolay Yakimov).
991 + Disable all metadata block extensions when parsing
992 metadata field values (#2026, Nikolay Yakimov). Otherwise we
993 could get a mmd title block inside YAML metadata, for example.
995 * HTML reader:
997 + Improve self-closing tag detection in `htmlInBalanced` (#2146).
998 + Handle tables with `<th>` in body rows (#1859, mb21).
999 + Fixed `htmlTag` (#1820). If the tag parses as a comment, we check
1000 to see if the input starts with `<!--`. If not, it's bogus comment
1001 mode and we fail `htmlTag`.
1002 + Handle `base` tag; if it has an `href` value, this is added to
1003 all relative URLs in links and images.
1005 * DocBook reader:
1007 + Look inside "info" elements for section titles (#1931).
1009 * Docx reader:
1011 + Parse images in deprecated vml format (Jesse Rosenthal).
1012 + Allow sub/superscript verbatims (Jesse Rosenthal).
1013 Verbatim usually shuts off all other run styles, but we don't want it
1014 to shut off sub/superscript.
1016 * LaTeX reader:
1018 + Handle `tabular*` environment (#1850).
1019 Note that the table width is not actually parsed or taken into
1020 account, but pandoc no longer chokes on it.
1021 + Ignore options in `\lstinline` rather than raising error (#1997).
1022 + Add some test cases for simple tables (Mathias Schenner).
1023 + Handle valign argument in tables (Mathias Schenner) (currently
1024 we just ignore this).
1025 + Allow non-empty colsep in tables (Mathias Schenner).
1026 The `tabular` environment allows non-empty column separators
1027 with the "@{...}" syntax. Previously, pandoc would fail to
1028 parse tables if a non-empty colsep was present. With this
1029 commit, these separators are still ignored, but the table gets
1030 parsed. A test case is included.
1031 + Recognize `\newpage` as a block command.
1032 + Allow block content in \title{} (#2001).
1033 + Check for block-level newcommand aliases in blockCommand (Nikolay
1034 Yakimov).
1035 + Guard against paragraph starting with inline macro (Nikolay Yakimov).
1036 + Properly gobble spaces after `\\` (#2007).
1038 * Textile reader:
1040 + Handle newlines in table cells, and empty cells (#1919).
1042 * Org reader:
1044 + Allow image links with non-image targets (Hans-Peter Deifel).
1045 This matches behavior of Org-Mode for links like
1046 `[[http://example.com][https://www.haskell.org/static/img/logo.png]]`.
1048 * Docbook writer:
1050 + Don't print empty id attributes (thanks to Steve Horne).
1052 * HTML writer:
1054 + Fixed list-style-type for numbered example lists.
1055 Should be "decimal," not "example" (#1902).
1056 + Do not omit missing `alt` attribute on `img` tag (#1131,
1057 Konstantin Zudov).
1058 + Allow multiple colgroups in table (#2122).
1059 + In revealjs, ensure that lists in speaker notes don't add "fragment"
1060 classes, which can cause additional keypresses to be needed to
1061 advance a slide (#1394).
1063 * LaTeX writer:
1065 + Don't escape `$` in URL (#1913).
1066 + Don't use listings in headers (Matthew Pickering, #1963).
1067 + Recognize book documentclass if set in metadata (#1971).
1068 This sets `--chapters` implicitly if the documentclass in metadata
1069 is a book documentclass. Previously this was done only if a book
1070 documentclass was set in a variable.
1071 + Add a `\label` in `\hyperdef` for Div, Span (or links don't work).
1072 + Make `mainlang` work when `lang` is in metadata (#2174).
1074 * Texinfo writer:
1076 + Fix wrapping by using breakable spaces (Tim Lin).
1078 * RST writer:
1080 + Fixed toc depth in RST writer. Previously the depth was being
1081 rendered as a floating point number with a decimal point.
1083 * Markdown writer:
1085 + Improved escaping (#2086). `<` should not be escaped as `\<`, for
1086 compatibility with original Markdown. We now escape `<` and `>`
1087 with entities. Also, we now backslash-escape square brackets.
1088 + Avoid introducing spurious list items through wrapping (#1946).
1089 + Don't emit span tags if plain or raw HTML disabled.
1091 * MediaWiki writer:
1093 + Convert spaces to underscores in wikilink URL (#1982), like MediaWiki.
1095 * AsciiDoc writer:
1097 + Insert some needed blank lines (#1860).
1098 + Avoid wrapping after list marker (#1858).
1100 * EPUB writer:
1102 + Properly handle internal links to IDs in spans, divs (#1884).
1103 + Use plain writer for metadata dc: fields (#2121).
1104 This gives better results when we have, e.g. multiple paragraphs.
1105 Note that tags aren't allowed in these fields.
1106 + Properly handle image links without an extension (#1855).
1107 + Improved chapter splitting and internal link rewriting (#1887,
1108 #2162, #2163). This will ensure that internal links work and
1109 that the references section produced by pandoc-citeproc is
1110 in its own chapter.
1111 + Fixed handling of svg images (#2183).
1113 * ICML writer:
1115 + Better handling of raw blocks and inlines (#1951).
1116 Previously these were always escaped and printed verbatim.
1117 Now they are ignored unless the format is `icml`, in which
1118 case they are passed through unescaped.
1119 + Fixed image URIs in ICML output (gohai).
1121 * Custom writer:
1123 + Raise error if loadstring returns an error status.
1124 + Raise `PandocLuaException` instead of using 'error'.
1125 Eventually we'll change the return type so that no exception
1126 is involved, but at least this can be trapped.
1127 + Use UTF-8 aware bytestring conversion.
1128 + Set foreign encoding to UTF-8 (Nikolay Yakimov, #2101, #1634).
1129 Also factored out ByteString, since it's only used as an intermediate
1130 representation.
1132 * Docx writer:
1134 + Copy hyphenation settings from reference.docx (Nikolay Yakimov).
1135 + Filter out illegal XML characters (#1992, Matthew Pickering).
1136 + Added `noProof` to docx syntax highlighting `SourceCode` style.
1137 + Added footnotes id -1 and 0 (Jesse Rosenthal).
1138 Word uses, by default, footnotes with id -1 and 0 for separators. If a
1139 user modifies `reference.docx`, they will end up with a `settings.xml`
1140 file that references these footnotes, but no such footnotes in the
1141 document. This will produce a corruption error. Here we add these to the
1142 document and `settings.xml` file, so future modifications won't break
1143 the file.
1144 + Handle lists correctly inside table cells (Jesse Rosenthal).
1145 Previously we didn't transform lists inside table cells.
1146 + Set firstRow information in tables (Nikolay Yakimov).
1147 + Don't replace `SourceCode` style in `reference.docx` if it is defined
1148 there (Nikolay Yakimov, #1872). If `--no-highlight` specified, remove
1149 any `SourceCode` and `*Tok` styles in `reference.docx`.
1150 + Attempt to match international style names (#1607, Nikolay Yakimov).
1151 + Set these styles as custom (Nikolay Yakimov): `Author`, `Abstract`,
1152 `Compact`, `Image Caption`, `Table Caption`, `Definition Term`,
1153 `Definition`, `First Paragraph`.
1154 + Rename these styles to correspond with Word `Normal.dotm` (Nikolay
1155 Yakimov): `Block Quote -> Block Text`, `Link -> Hyperlink`,
1156 `Footnote Ref -> Footnote Reference`.
1157 + Added `Caption` style (Nikolay Yakimov).
1158 + Changed these styles' inheritance (Nikolay Yakimov):
1159 `Image Caption <- Caption`, `Table Caption <- Caption`.
1160 + Remove `SourceCode` style from `reference.docx` (#1872).
1161 This is added automatically by the docx writer.
1162 + Added toc heading style to `reference.docx` (Nikolay Yakimov).
1164 * `Text.Pandoc.PDF`
1166 + Don't suggest "Try xelatex" if xelatex already in use (mb21, #1832).
1167 + More comprehensible errors on image conversion (#2067).
1168 EPS can't be supported without shelling out to something like
1169 ImageMagick, but at least we can avoid mysterious error messages.
1171 * `Text.Pandoc.Shared`:
1173 + Make safeRead safe (#1801, Matthew Pickering).
1174 + Addded `mapLeft`, `hush` (Matthew Pickering).
1176 * `Text.Pandoc.Pretty`:
1178 + Remove partial function (Matthew Pickering).
1180 * `Text.Pandoc.SelfContained`:
1182 + Add `;charset=utf-8` to script mime type if missing (#1842).
1183 + Improved building of data URIs (#1940). Now base64 is used except
1184 for `text/*` mime types.
1185 + `cssURLs` no longer tries to fetch fragment URLs (#2121).
1186 + Properly handle data URIs in css urls (#2129).
1187 Use a proper CSS parser (adds dependency on `text-css`).
1189 * `Text.Pandoc.UTF8`:
1191 + Better handling of bare CRs in input files (#2132).
1192 Previously we just stripped them out; now we convert
1193 other line ending styles to LF line endings.
1195 * `Text.Pandoc.ImageSize`:
1197 + Fixed some exif header parsing bugs (#1834).
1198 + Make imageSize return an Either, not a Maybe (#1834).
1199 Use `runGetOrFail` (with `binary >= 0.7`) to return `Left` on
1200 parse failure (rather than `error`).
1201 + Improved warnings when image size can't be determined.
1202 + Removed error landmines (Matthew Pickering).
1204 * Added woff2 to MIME types (Alfred Wechselberger).
1206 * pandoc: When a binary input format is used, warn that file
1207 arguments past the first one are being ignored (Matthew Pickering).
1209 [template changes]
1211 * LaTeX template:
1213 + Degrade gracefully if `\paragraph` not defined.
1214 + Include `grffile` together with `graphicx` (#2074).
1215 This properly handles filenames containing spaces and dots.
1216 + Redefine `\paragraph`, `\subparagraph`... to behave more
1217 like section headers (#1658).
1218 + Import hyperref before polyglossia to avoid an error with xelatex,
1219 "please load package hyperref before bidi package" (Nick Bart).
1220 + Added `toccolor` variable to control link color in toc (Kaixhin).
1222 * LaTeX, Beamer templates:
1224 + Provide `\tightlist`, which is now used by the LaTeX writer.
1225 + Use polyglossia in beamer (#85).
1226 + Use `bibliography` instead of `biblio-files`
1227 (#1661). Also use `\addbibresource` instead of `\bibliography` for
1228 biblatex.
1229 + Added `setotherlanguages` in polyglossia. This uses an `otherlang`
1230 variable that is derived from a comma-separated list in `lang`;
1231 the last language is `mainlang` and the others are `otherlang`.
1233 * EPUB templates:
1235 + Use `div`, not `p`, for "rights" on title page.
1236 + Added header-includes, include-before, include-after (#1987).
1238 * OpenDocument template:
1240 + Use `text:p` instead of `text:h` for title.
1241 Using `text:h` causes problems with numbering. Closes #2059.
1242 Thansk to @nkalvi for diagnosing this.
1244 * reveal.js template:
1246 + Link to non-minified css, js. The minified versions no longer
1247 ship with the library.
1248 + Correctly include style CSS (#1949).
1249 + New configurable options options: `center`, `maxScale`, `slideNuber`
1250 (Dmitry Smirnov, pandoc-templates#89).
1251 + Moved custom CSS after theme. This allows custom CSS to modify
1252 themes, instead of being replaced by them.
1253 + Allow `center` to be set to false.
1255 [under the hood improvements]
1257 * Removed pre-built `reference.docx` and `reference.odt` (Nikolay
1258 Yakimov). Instead the repository now includes the component text files,
1259 and the zipped binaries are built from these using a helper
1260 program, `make-reference-files`. This should make maintenance of
1261 these components easier going forward.
1263 * `Text.Pandoc.Parsing`:
1265 + Added new `<+?>` combinator (Nikolay Yakimov).
1266 + Added `stateHeaderKeys` to `ParserState`.
1268 * `make_deb.sh` fixes:
1270 + Detect architecture.
1271 + Add Installed-Size to debian package control file (#1900).
1272 + Use `fakeroot` to get permissions right.
1273 + Use `mkdir` and `cp` instead of `install`.
1274 + Set permissions of directories to 755.
1275 + Install in `/usr` rather than `/usr/local`.
1276 + Compress man pages.
1277 + Combine copyright files for `pandoc`, `pandoc-citeproc`.
1279 * Added `Text.Pandoc.Compat.Locale` and `old-locale` flag
1280 to assist with transition to `time` 1.5.
1282 * Updated CONTRIBUTING.md with information about issue tags (Matthew
1283 Pickering).
1285 * Updated travis installs to the new sudo-less syntax (Tim Lin).
1287 * Updated dependency version bounds.
1289 * EPUB tests: don't use `joinPath`, which varies across platforms.
1290 Instead, use a forward-slash to join paths, regardless of the
1291 platform. This matches the way `MediaBag` now works.
1293 * Clarify JSON input and output in usage message (Caleb McDaniel).
1295 * Improved INSTALL instructions.
1297 * Always build man pages. Removed make-pandoc-man-pages flag.
1299 * Makefile: removed man target, now that we generate man pages by default.
1301 * README:
1303 + Fixed typos (J. Lewis Muir).
1304 + Added documentation on backtick_code_blocks (#2135, Nikolay Yakimov).
1305 + Added note on in-field markup in biblio databases (Nick Bart).
1306 + Fixed misleading example of raw HTML block.
1307 + Various minor formatting and consistency fixes for the program
1308 options (Andreas Lööw).
1309 + Made definition lists for options all "loose" for consistency.
1310 + Added YAML biblio format to table, and note on `pandoc-citeproc`'s
1311 `--bib2json` and `--bib2yaml` options (Nick Bart).
1312 + Removed obsolete reference to `mods2yaml` (Nick Bart).
1313 + Added section on syntax highlighting.
1314 + Documented `toccolor` variable.
1316pandoc (1.13.2.1)
1318 * Updated to build with ghc 7.10.1.
1320 * Bumped package upper bounds for filepath, blaze-html,
1321 blaze-markup.
1323pandoc (1.13.2)
1325 * TWiki Reader: add new new twiki reader (API chaneg, Alexander Sulfrian).
1327 * Markdown reader:
1329 + Better handling of paragraph in div (#1591).
1330 Previously text that ended a div would be parsed as Plain
1331 unless there was a blank line before the closing div tag.
1332 + Don't treat a citation as a reference link label (#1763).
1333 + Fix autolinks with following punctuation (#1811).
1334 The price of this is that autolinked bare URIs can no longer
1335 contain `>` characters, but this is not a big issue.
1336 + Fix `Ext_lists_without_preceding_blankline` bug (#1636, Artyom).
1337 + Allow `startnum` to work without `fancy_lists`. Formerly
1338 `pandoc -f markdown-fancy_lists+startnum` did not work properly.
1340 * RST reader (all Daniel Bergey):
1342 + Parse quoted literal blocks (#65). RST quoted literal blocks are
1343 the same as indented literal blocks (which pandoc already supports)
1344 except that the quote character is preserved in each line.
1345 + Parse RST class directives. The class directive accepts one or more
1346 class names, and creates a Div value with those classes. If the
1347 directive has an indented body, the body is parsed as the children of
1348 the Div. If not, the first block folowing the directive is made a
1349 child of the Div. This differs from the behavior of rst2xml, which
1350 does not create a Div element. Instead, the specified classes are
1351 applied to each child of the directive. However, most Pandoc Block
1352 constructors to not take an Attr argument, so we can't duplicate this
1353 behavior.
1354 + Warn about skipped directives.
1355 + Literal role now produces Code. Code role should have "code" class.
1356 + Improved support for custom roles
1358 - Added `sourceCode` to classes for `:code:` role, and anything
1359 inheriting from it.
1360 - Add the name of the custom role to classes if the Inline
1361 constructor supports Attr.
1362 - If the custom role directive does not specify a parent role,
1363 inherit from the `:span:` role.
1365 This differs somewhat from the `rst2xml.py` behavior. If a custom
1366 role inherits from another custom role, Pandoc will attach both
1367 roles' names as classes. `rst2xml.py` will only use the class of
1368 the directly invoked role (though in the case of inheriting from a
1369 `:code:` role with a `:language:` defined, it will also provide the
1370 inherited language as a class).
1371 + Warn about ignored fields in role directives.
1373 * LaTeX reader:
1375 + Parse label after caption into a span instead of
1376 inserting an additional paragraph of bracketed text (#1747).
1377 + Parse math environments as inline when possible (#1821).
1378 + Better handling of `\noindent` and `\greektext` (#1783).
1379 + Handle `\texorpdfstring` more gracefully.
1380 + Handle `\cref` and `\sep` (Wikiwide).
1381 + Support `\smartcite` and `\Smartcite` from biblatex.
1383 * HTML reader:
1385 + Retain display type of MathML output (#1719, Matthew Pickering).
1386 + Recognise `<br>` tags inside `<pre>` blocks (#1620, Matthew Pickering).
1387 + Make `embed` tag either block or inline (#1756).
1389 * DocBook reader:
1391 + Handle `keycombo`, `keycap` (#1815).
1392 + Get string content in inner tags for literal elements (#1816).
1393 + Handle `menuchoice` elements better, with a `>` between (#1817).
1394 + Include `id` on section headers (#1818).
1395 + Document/test "type" as implemented (Brian O'Sullivan).
1396 + Add support for calloutlist and callout (Brian O'Sullivan).
1397 We treat a calloutlist as a bulleted list. This works well in practice.
1398 + Add support for `classname` (Bryan O'Sullivan).
1400 * Docx reader:
1402 + Fix window path for image lookup (Jesse Rosenthal).
1403 Don't use os-sensitive "combine", since we always want the paths in our
1404 zip-archive to use forward-slashes.
1405 + Single-item headers in ordered lists are headers (Jesse Rosenthal).
1406 When users number their headers, Word understands that as a single item
1407 enumerated list. We make the assumption that such a list is, in fact,
1408 a header.
1409 + Rewrite rewriteLink to work with new headers (Jesse Rosenthal).
1410 There could be new top-level headers after making lists, so we have to
1411 rewrite links after that.
1412 + Use polyglot header list (Jesse Rosenthal).
1413 We're just keeping a list of header formats that different languages
1414 use as their default styles. At the moment, we have English, German,
1415 Danish, and French. We can continue to add to this.
1416 This is simpler than parsing the styles file, and perhaps less
1417 error-prone, since there seems to be some variations, even within a
1418 language, of how a style file will define headers.
1419 + Remove header class properly in other langs (Jesse Rosenthal).
1420 When we encounter one of the polyglot header styles, we want to remove
1421 that from the par styles after we convert to a header. To do that, we
1422 have to keep track of the style name, and remove it appropriately.
1423 + Account for external link URLs with anchors. Previously, if a URL
1424 had an anchor, the reader would incorrectly identify it as an
1425 internal link and return only the anchor as URL. (Caleb McDaniel)
1426 + Fix for Issue #1692 (i18n styles) (Nikolay Yakimov).
1428 * Org reader:
1430 + Added state changing blanklines (Jesse Rosenthal).
1431 This allows us to emphasize at the beginning of a new paragraph (or, in
1432 general, after blank lines).
1433 + Fixed bug with bulleted lists:
1435 - a
1436 - b
1437 * c
1439 was being parsed as a list, even though an unindented `*`
1440 should make a heading. See
1441 <http://orgmode.org/manual/Plain-lists.html#fn-1>.
1442 + Org reader: absolute, relative paths in link (#1741, Albert
1443 Krewinkel). The org reader was too restrictive when parsing links;
1444 some relative links and links to files given as absolute paths
1445 were not recognized correctly.
1446 + Org reader: allow empty links (jgm/gitit#471, Albert Krewinkel).
1447 This is important for use in gitit, which uses empty links
1448 for wikilinks.
1449 + Respect indent when parsing Org bullet lists (#1650, Timothy
1450 Humphries). Fixes issue with top-level bullet list parsing.
1451 + Fix indent issue for definition lists (Timothy Humphries,
1452 see #1650, #1698, #1680).
1453 + Parse multi-inline terms correctly in definition list (#1649,
1454 Matthew Pickering).
1455 + Fix rules for emphasis recognition (Albert Krewinkel).
1456 Things like `/hello,/` or `/hi'/` were falsy recognized as emphasised
1457 strings. This is wrong, as `,` and `'` are forbidden border chars and
1458 may not occur on the inner border of emphasized text.
1459 + Drop COMMENT document trees (Albert Krewinkel).
1460 Document trees under a header starting with the word `COMMENT` are
1461 comment trees and should not be exported. Those trees are dropped
1462 silently (#1678).
1463 + Properly handle links to `file:target` (Albert Krewinkel).
1464 Org links like `[[file:target][title]]` were not handled correctly,
1465 parsing the link target verbatim. The org reader is changed such that
1466 the leading `file:` is dropped from the link target (see #756, #1812).
1467 + Parse LaTeX-style MathML entities (#1657, Albert Krewinkel).
1468 Org supports special symbols which can be included using LaTeX syntax,
1469 but are actually MathML entities. Examples for this are
1470 `\nbsp` (non-breaking space), `\Aacute` (the letter A with accent acute)
1471 or `\copy` (the copyright sign ©)
1473 * EPUB reader:
1475 + URI handling improvements. Now we outsource most of the work to
1476 `fetchItem'`. Also, do not include queries in file extensions (#1671).
1478 * LaTeX writer:
1480 + Use `\texorpdfstring` for section captions when needed (Vaclav Zeman).
1481 + Handle consecutive linebreaks (#1733).
1482 + Protect graphics in headers (Jesse Rosenthal).
1483 Graphics in `\section`/`\subsection` etc titles need to be `\protect`ed.
1484 + Put `~` before header in list item text (Jesse Rosenthal).
1485 Because of the built-in line skip, LaTeX can't handle a section header
1486 as the first element in a list item.
1487 + Avoid using reserved characters as `\lstinline` delimiters (#1595).
1488 + Better handling of display math in simple tables (#1754).
1489 We convert display math to inline math in simple tables,
1490 since LaTeX can't deal with display math in simple tables.
1491 + Escape spaces in code (#1694, Bjorn Buckwalter).
1493 * MediaWiki writer:
1495 + Fixed links with URL = text. Previously these were rendered as bare
1496 words, even if the URL was not an absolute URL (#1825).
1498 * ICML writer:
1500 + Don't force all citations into footnotes.
1502 * RTF writer:
1504 + Add blankline at end of output (#1732, Matthew Pickering).
1506 * RST writer:
1508 + Ensure blank line after figure.
1509 + Avoid exces whitespace after last list item (#1777).
1510 + Wrap line blocks with spaces before continuations (#1656).
1511 + Fixed double-rendering of footnotes in RST tables (#1769).
1513 * DokuWiki writer:
1515 + Better handling of block quotes. This change ensures that
1516 multiple paragraph blockquotes are rendered using native `>`
1517 rather than as HTML (#1738).
1518 + Fix external images (#1739). Preface relative links with ":",
1519 absolute URIs without. (Timothy Humphries)
1521 * HTML writer:
1523 + Use protocol-relative URL for mathjax.
1524 + Put newline btw img and caption paragraph.
1525 + MathML now outputted with tex annotation (#1635, Matthew Pickering).
1526 + Add support for KaTeX HTML math (#1626, Matthew Pickering).
1527 This adds `KaTeX` to `HTMLMathMethod` (API change).
1528 + Don't double render when `email-obfuscation=none` (#1625, Matthew
1529 Pickering).
1530 + Make header attributes work outside top level (#1711).
1531 Previously they only appeared on top level header elements.
1532 Now they work e.g. in blockquotes.
1534 * ODT writer:
1536 + Correctly handle images without extensions (#1729).
1537 + Strip querystring in ODT write (#1682, Todd Sifleet).
1539 * FB2 writer:
1541 + Add newline to output.
1543 * EPUB writer:
1545 + Don't add `sourceURL` to absolute URIs (#1669).
1546 + Don't use unsupported `opf:title-type` for epub2.
1547 + Include "landmarks" section in nav document for epub3 (#1757).
1548 + Removed playOrder from navpoint elements in ncx file (#1760).
1549 These aren't required, and they make manual modification of epubs
1550 difficult.
1551 + Extract title even from structured title.
1552 + Don't include nav node in spine unless `--toc` was requested.
1553 Previously we included it in the spine with `linear="no"`, leading
1554 to odd results in some readers (#1593).
1555 + Fixed absolute URI detection (#1672).
1556 + Correctly resolve relative URIs (#1671).
1557 + Use regular page template for `nav.xhtml`, including doctype (#1759).
1559 * Docx writer:
1561 + Put docx table captions above tables (#1641, Nikolay Yakimov).
1562 + Get the page width from the reference docx file, and use
1563 it to scale images that are too large to fit (Grégory Bataille).
1564 + Partial fix for #1607 (Nikolay Yakimov). International heading styles
1565 are inferred based on `<w:name val="heading #">` fallback, if there
1566 are no en-US "Heading#" styles
1567 + Look in user data dir for archive `reference.docx`.
1568 + Renumber header and footer relationships to avoid collisions (Jesse
1569 Rosenthal). We previously took the old relationship names of the
1570 headers and footer in secptr. That led to collisions. We now make
1571 a map of availabl names in the relationships file, and then rename
1572 in secptr.
1574 * ConTeXt writer:
1576 + Add function toLabel (Mark Szepieniec).
1577 This function can be used to sanitize reference labels so that
1578 they do not contain any of the illegal characters \#[]",{}%()|= .
1579 Currently only Links have their labels sanitized, because they
1580 are the only Elements that use passed labels.
1582 * `Text.Pandoc.Shared`:
1584 + Moved import of `toChunks` outside of CPP conditional (#1590).
1585 + Fix `inDirectory` to reset to the original directory in case
1586 an exception occurs (Freiric Barral).
1588 * Templates:
1590 + LaTeX template: load polyglossia before bibtex (jgm/pandoc-templates#70).
1591 Thanks to bluebirch.
1592 + LaTeX template: Added `\VerbatimFootnotes` if there is verbatim in notes
1593 (#1616).
1594 + LaTeX template: Add shorthands=off to babel options (#1648).
1595 + EPUB, EPUB3 templates: Added `id="cover"` to body of cover page.
1596 This aids styling, making it possible for example to set 0 margins
1597 on the title page (#1758).
1598 + EPUB, EPUB3 templates: Handle structured metadata on titlepage.
1599 Previously we just expected 'title', 'subtitle', 'author', 'date'.
1600 Now we still support those, but also support the format recommended
1601 for epub metadata in the pandoc README:
1603 ---
1604 title:
1605 - type: main
1606 text: My Book
1607 - type: subtitle
1608 text: An investigation of metadata
1609 creator:
1610 - role: author
1611 text: John Smith
1612 - role: editor
1613 text: Sarah Jones
1614 identifier:
1615 - scheme: DOI
1616 text: doi:10.234234.234/33
1617 publisher: My Press
1618 rights: (c) 2007 John Smith, CC BY-NC
1619 ...
1621 * `Text.Pandoc.Templates.getDefaultTemplate`:
1622 don't fail when called with "fb2" (#1660).
1624 * `Text.Pandoc.Parsing`:
1626 + Fixed `inlineMath` so it handles `\text{..}` containing `$`.
1627 For example: `$x = \text{the $n$th root of $y$}` (#1677).
1628 + Change `parseFromString` to fail if not all input is consumed.
1629 (Matthew Pickering)
1630 + Moved `addWarning` from Markdown reader to `Parsing`, so it can be
1631 used by more readers (API change, Daniel Bergey).
1633 * `Text.Pandoc.Pretty`:
1635 + Improve performance of `realLength` (Matthew Pickering).
1636 + Make CR + BLANKLINE = BLANKLINE. This fixes an extra blank line we
1637 were getting at the end of markdown fragments (as well as rst, org,
1638 etc.) (#1705).
1640 * `Text.Pandoc.MIME`:
1642 + Add mime type for WebVTT (Jason Ronallo).
1643 + Changed mime type for `otf` to `application/vnd.ms-opentype` (#1761).
1644 This is needed for epub3 validation.
1646 * `Text.Pandoc.MediaBag`:
1648 + Fix Windows specific path problems (#1597).
1650 * `Text.Pandoc.Shared`:
1652 + Make `collapseFilePath` OS-agnostic (Matthew Pickering).
1654 * Link the test suite using `-threaded`.
1655 This allows the test suite to be run using `+RTS -N`.
1657 * Added `network` dependency under `network-uri` flag in test section.
1659 * Give better error messages when someone tries to convert from
1660 pdf, doc, odt (#1683).
1662 * Added `track` to list of tags treated by `--self-contained` (#1664).
1664pandoc (1.13.1)
1666 * Fixed `--self-contained` with Windows paths (#1558).
1667 Previously `C:\foo.js` was being wrongly interpreted as a URI.
1669 * HTML reader: improved handling of tags that can be block or inline.
1670 Previously a section like this would be enclosed in a paragraph,
1671 with RawInline for the video tags (since video is a tag that can
1672 be either block or inline):
1674 <video controls="controls">
1675 <source src="../videos/test.mp4" type="video/mp4" />
1676 <source src="../videos/test.webm" type="video/webm" />
1677 <p>
1678 The videos can not be played back on your system.<br/>
1679 Try viewing on Youtube (requires Internet connection):
1680 <a href="http://youtu.be/etE5urBps_w">Relative Velocity on
1681 Youtube</a>.
1682 </p>
1683 </video>
1685 This change will cause the video and source tags to be parsed
1686 as RawBlock instead, giving better output.
1687 The general change is this: when we're parsing a "plain" sequence
1688 of inlines, we don't parse anything that COULD be a block-level tag.
1690 * Docx reader:
1692 + Be sensitive to user styles. Note that "Hyperlink" is
1693 "blacklisted," as we don't want the default underline styling to be
1694 inherited by all links by default (Jesse Rosenthal).
1695 + Read single paragraph in table cell as `Plain` (Jesse Rosenthal).
1696 This makes to docx reader's native output fit with the way the markdown
1697 reader understands its markdown output.
1699 * Textile writer: Extended the range of cases where native textile
1700 tables will be used (as opposed to raw HTML): we now handle any
1701 alignment type, but only for simple tables with no captions.
1703 * Txt2Tags reader:
1705 + Header is now parsed only if standalone flag is set (Matthew Pickering).
1706 + The header is now parsed as meta information. The first line is the
1707 `title`, the second is the `author` and third line is the `date`
1708 (Matthew Pickering).
1709 + Corrected formatting of `%%mtime` macro (Matthew Pickering).
1710 + Fixed crash when reading from stdin.
1712 * EPUB writer: Don't use page-progression-direction in EPUB2, which
1713 doesn't support it. Also, if page-progression-direction not specified
1714 in metadata, don't include the attribute even in EPUB3; not including it
1715 is the same as including it with the value "default", as we did before.
1716 (#1550)
1718 * Org writer: Accept example lines with indentation at the beginning
1719 (Calvin Beck).
1721 * DokuWiki writer:
1723 + Refactor to use Reader monad (Matthew Pickering).
1724 + Avoid using raw HTML in table cells; instead, use `\\`
1725 instead of newlines (Jesse Rosenthal).
1726 + Properly handle HTML table cell alignments, and use spacing
1727 to make the tables look prettier (#1566).
1729 * Docx writer:
1731 + Bibliography entries get `Bibliography` style (#1559).
1732 + Implement change tracking (Jesse Rosenthal).
1734 * LaTeX writer:
1736 + Fixed a bug that caused a table caption to repeat across all pages
1737 (Jose Luis Duran).
1738 + Improved vertical spacing in tables and made it customizable using
1739 standard lengths set by booktab. See
1740 <https://groups.google.com/forum/#!msg/pandoc-discuss/qMu6_5lYy0o/ZAU7lzAIKw0J>
1741 (Jose Luis Duran).
1742 + Added `\strut` to fix spacing in multiline tables (Jose Luis Duran).
1743 + Use `\tabularnewline` instead of `\\` in table cells (Jose Luis Duran).
1744 + Made horizontal rules more flexible (Jose Luis Duran).
1746 * Text.Pandoc.MIME:
1748 + Added `MimeType` (type synonym for `String`) and `getMimeTypeDef`.
1749 Code cleanups (Artyom Kazak).
1751 * Templates:
1753 + LaTeX template: disable microtype protrusion for typewriter font (#1549,
1754 thanks lemzwerg).
1756 * Improved OSX build procedure.
1758 * Added `network-uri` flag, to deal with split of `network-uri` from
1759 `network`.
1761 * Fix build dependencies for the `trypandoc` flag, so that they are
1762 ignored if `trypandoc` flag is set to False (Gabor Pali).
1764 * Updated README to remove outdated claim that `--self-contained`
1765 looks in the user data directory for missing files.
1767pandoc (1.13.0.1)
1769 * Docx writer:
1771 + Fixed regression which bungled list numbering (#1544), causing
1772 all lists to appear as basic ordered lists.
1773 + Include row width in table rows (Christoffer Ackelman, Viktor Kronvall).
1774 Added a property to all table rows where the sum of column widths
1775 is specified in pct (fraction of 5000). This helps persuade Word
1776 to lay out the table with the widths we specify.
1778 * Fixed a bug in Windows 8 which caused pandoc not to find the
1779 `pandoc-citeproc` filter (#1542).
1781 * Docx reader: miscellaneous under-the-hood improvements (Jesse Rosenthal).
1782 Most significantly, the reader now uses Builder, leading to some
1783 performance improvements.
1785 * HTML reader: Parse appropriately styled span as SmallCaps.
1787 * Markdown writer: don't escape `$`, `^`, `~` when `tex_math_dollars`,
1788 `superscript`, and `subscript` extensions, respectively, are
1789 deactivated (#1127).
1791 * Added `trypandoc` flag to build CGI executable used in the online
1792 demo.
1794 * Makefile: Added 'quick', 'osxpkg' targets.
1796 * Updated README in templates to indicate templates license.
1797 The templates are dual-licensed, BSD3 and GPL2+.
1799pandoc (1.13)
1801 [new features]
1803 * Added `docx` as an input format (Jesse Rosenthal). The docx
1804 reader includes conversion of native Word equations to pandoc
1805 LaTeX `Math` elements. Metadata is taken from paragraphs at the
1806 beginning of the document with styles `Author`, `Title`, `Subtitle`,
1807 `Date`, and `Abstract`.
1809 * Added `epub` as an input format (Matthew Pickering). The epub
1810 reader includes conversion of MathML to pandoc LaTeX `Math`
1811 elements.
1813 * Added `t2t` (Txt2Tags) as an input format (Matthew Pickering).
1814 Txt2tags is a lightweight markup format described at
1815 <http://txt2tags.org/>.
1817 * Added `dokuwiki` as an output format (Clare Macrae).
1819 * Added `haddock` as an output format.
1821 * Added `--extract-media` option to extract media contained in a zip
1822 container (docx or epub) while adjusting image paths to point to the
1823 extracted images.
1825 * Added a new markdown extension, `compact_definition_lists`, that
1826 restores the syntax for definition lists of pandoc 1.12.x, allowing
1827 tight definition lists with no blank space between items, and
1828 disallowing lazy wrapping. (See below under behavior changes.)
1830 * Added an extension `epub_html_exts` for parsing HTML in EPUBs.
1832 * Added extensions `native_spans` and `native_divs` to activate
1833 parsing of material in HTML span or div tags as Pandoc Span
1834 inlines or Div blocks.
1836 * `--trace` now works with the Markdown, HTML, Haddock, EPUB,
1837 Textile, and MediaWiki readers. This is an option intended
1838 for debugging parsing problems; ordinary users should not need
1839 to use it.
1841 [behavior changes]
1843 * Changed behavior of the `markdown_attribute` extension, to bring
1844 it in line with PHP markdown extra and multimarkdown. Setting
1845 `markdown="1"` on an outer tag affects all contained tags,
1846 recursively, until it is reversed with `markdown="0"` (#1378).
1848 * Revised markdown definition list syntax (#1429). Both the reader
1849 and writer are affected. This change brings pandoc's definition list
1850 syntax into alignment with that used in PHP markdown extra and
1851 multimarkdown (with the exception that pandoc is more flexible about
1852 the definition markers, allowing tildes as well as colons). Lazily
1853 wrapped definitions are now allowed. Blank space is required
1854 between list items. The space before a definition is used to determine
1855 whether it is a paragraph or a "plain" element. **WARNING: This change
1856 may break existing documents!** Either check your documents for
1857 definition lists without blank space between items, or use
1858 `markdown+compact_definition_lists` for the old behavior.
1860 * `.numberLines` now works in fenced code blocks even if no language
1861 is given (#1287, jgm/highlighting-kate#40).
1863 * Improvements to `--filter`:
1865 + Don't search PATH for a filter with an explicit path.
1866 This fixed a bug wherein `--filter ./caps.py` would run `caps.py` from
1867 the system path, even if there was a `caps.py` in the working directory.
1868 + Respect shebang if filter is executable (#1389).
1869 + Don't print misleading error message.
1870 Previously pandoc would say that a filter was not found,
1871 even in a case where the filter had a syntax error.
1873 * HTML reader:
1875 + Parse `div` and `span` elements even without `--parse-raw`,
1876 provided `native_divs` and `native_spans` extensions are set.
1877 Motivation: these now generate native pandoc Div and Span
1878 elements, not raw HTML.
1879 + Parse EPUB-specific elements if the `epub_html_exts`
1880 extension is enabled. These include `switch`, `footnote`,
1881 `rearnote`, `noteref`.
1883 * Org reader:
1885 + Support for inline LaTeX. Inline LaTeX is now accepted and parsed by the
1886 org-mode reader. Both math symbols (like `\tau`) and LaTeX commands (like
1887 `\cite{Coffee}`), can be used without any further escaping (Albert
1888 Krewinkel).
1890 * Textile reader and writer:
1892 + The `raw_tex` extension is no longer set by default. You can
1893 enable it with `textile+raw_tex`.
1895 * DocBook reader:
1897 + Support `equation`, `informalequation`, `inlineequation` elements with
1898 `mml:math` content. This is converted into LaTeX and put into a Pandoc
1899 Math inline.
1901 * Revised `plain` output, largely following the style of Project
1902 Gutenberg:
1904 + Emphasis is rendered with `_underscores_`, strong emphasis
1905 with ALL CAPS.
1906 + Headings are rendered differently, with space to set them off,
1907 not with setext style underlines. Level 1 headers are ALL CAPS.
1908 + Math is rendered using unicode when possible, but without the
1909 distracting emphasis markers around variables.
1910 + Footnotes use a regular `[n]` style.
1912 * Markdown writer:
1914 + Horizontal rules are now a line across the whole page.
1915 + Prettier pipe tables. Columns are now aligned (#1323).
1916 + Respect the `raw_html` extension. `pandoc -t markdown-raw_html`
1917 no longer emits any raw HTML, including span and div tags
1918 generated by Span and Div elements.
1919 + Use span with style for `SmallCaps` (#1360).
1921 * HTML writer:
1923 + Autolinks now have class `uri`, and email autolinks have class
1924 `email`, so they can be styled.
1926 * Docx writer:
1928 + Document formatting is carried over from `reference.docx`.
1929 This includes margins, page size, page orientation, header,
1930 and footer, including images in headers and footers.
1931 + Include abstract (if present) with `Abstract` style (#1451).
1932 + Include subtitle (if present) with `Subtitle` style, rather
1933 than tacking it on to the title (#1451).
1935 * Org writer:
1937 + Write empty span elements with an id attribute as org anchors.
1938 For example `Span ("uid",[],[]) []` becomes `<<uid>>`.
1940 * LaTeX writer:
1942 + Put table captions above tables, to match the conventional
1943 standard. (Previously they appeared below tables.)
1944 + Use `\(..\)` instead of `$..$` for inline math (#1464).
1945 + Use `\nolinkurl` in email autolinks. This allows them to be styled
1946 using `\urlstyle{tt}`. Thanks to Ulrike Fischer for the solution.
1947 + Use `\textquotesingle` for `'` in inline code. Otherwise we get
1948 curly quotes in the PDF output (#1364).
1949 + Use `\footnote<.>{..}` for notes in beamer, so that footnotes
1950 do not appear before the overlays in which their markers appear
1951 (#1525).
1952 + Don't produce a `\label{..}` for a Div or Span element. Do produce
1953 a `\hyperdef{..}` (#1519).
1955 * EPUB writer:
1957 + If the metadata includes `page-progression-direction` (which can be
1958 `ltr` or `rtl`, the `page-progression-direction` attribute will
1959 be set in the EPUB spine (#1455).
1961 * Custom lua writers:
1963 + Custom writers now work with `--template`.
1964 + Removed HTML header scaffolding from `sample.lua`.
1965 + Made citation information available in lua writers.
1967 * `--normalize` and `Text.Pandoc.Shared.normalize` now consolidate
1968 adjacent `RawBlock`s when possible.
1970 [API changes]
1972 * Added `Text.Pandoc.Readers.Docx`, exporting `readDocx` (Jesse Rosenthal).
1974 * Added `Text.Pandoc.Readers.EPUB`, exporting `readEPUB` (Matthew
1975 Pickering).
1977 * Added `Text.Pandoc.Readers.Txt2Tags`, exporting `readTxt2Tags` (Matthew
1978 Pickering).
1980 * Added `Text.Pandoc.Writers.DokuWiki`, exporting `writeDokuWiki`
1981 (Clare Macrae).
1983 * Added `Text.Pandoc.Writers.Haddock`, exporting `writeHaddock`.
1985 * Added `Text.Pandoc.MediaBag`, exporting `MediaBag`, `lookupMedia`,
1986 `insertMedia`, `mediaDirectory`, `extractMediaBag`. The docx and epub
1987 readers return a pair of a `Pandoc` document and a `MediaBag` with
1988 the media resources they contain. This can be extracted using
1989 `--extract-media`. Writers that incorporate media (PDF, Docx,
1990 ODT, EPUB, RTF, or HTML formats with `--self-contained`) will look
1991 for resources in the `MediaBag` generated by the reader, in addition to
1992 the file system or web.
1994 * `Text.Pandoc.Readers.TexMath`: Removed deprecated `readTeXMath`.
1995 Renamed `readTeXMath'` to `texMathToInlines`.
1997 * `Text.Pandoc`: Added `Reader` data type (Matthew Pickering).
1998 `readers` now associates names of readers with `Reader`
1999 structures. This allows inclusion of readers, like the docx
2000 reader, that take binary rather than textual input.
2002 * `Text.Pandoc.Shared`:
2004 + Added `capitalize` (Artyom Kazak), and replaced uses of
2005 `map toUpper` (which give bad results for many languages).
2006 + Added `collapseFilePath`, which removes intermediate `.` and
2007 `..` from a path (Matthew Pickering).
2008 + Added `fetchItem'`, which works like `fetchItem` but searches
2009 a `MediaBag` before looking on the net or file system.
2010 + Added `withTempDir`.
2011 + Added `removeFormatting`.
2012 + Added `extractSpaces` (from HTML reader) and generalized its type
2013 so that it can be used by the docx reader (Matthew Pickering).
2014 + Added `ordNub`.
2015 + Added `normalizeInlines`, `normalizeBlocks`.
2016 + `normalize` is now `Pandoc -> Pandoc` instead of
2017 `Data a :: a -> a`. Some users may need to change their uses of
2018 `normalize` to the newly exported `normalizeInlines` or
2019 `normalizeBlocks`.
2021 * `Text.Pandoc.Options`:
2023 + Added `writerMediaBag` to `WriterOptions`.
2024 + Removed deprecated and no longer used `readerStrict` in
2025 `ReaderOptions`. This is handled by `readerExtensions` now.
2026 + Added `Ext_compact_definition_lists`.
2027 + Added `Ext_epub_html_exts`.
2028 + Added `Ext_native_divs` and `Ext_native_spans`.
2029 This allows users to turn off the default pandoc behavior of
2030 parsing contents of div and span tags in markdown and HTML
2031 as native pandoc Div blocks and Span inlines.
2033 * `Text.Pandoc.Parsing`:
2035 + Generalized `readWith` to `readWithM` (Matthew Pickering).
2036 + Export `runParserT` and `Stream` (Matthew Pickering).
2037 + Added `HasQuoteContext` type class (Matthew Pickering).
2038 + Generalized types of `mathInline`, `smartPunctuation`, `quoted`,
2039 `singleQuoted`, `doubleQuoted`, `failIfInQuoteContext`,
2040 `applyMacros` (Matthew Pickering).
2041 + Added custom `token` (Matthew Pickering).
2042 + Added `stateInHtmlBlock` to `ParserState`. This is used to keep
2043 track of the ending tag we're waiting for when we're parsing inside
2044 HTML block tags.
2045 + Added `stateMarkdownAttribute` to `ParserState`. This is used
2046 to keep track of whether the markdown attribute has been set in
2047 an enclosing tag.
2048 + Generalized type of `registerHeader`, using new type classes
2049 `HasReaderOptions`, `HasIdentifierList`, `HasHeaderMap` (Matthew
2050 Pickering). These allow certain common functions to be reused
2051 even in parsers that use custom state (instead of `ParserState`),
2052 such as the MediaWiki reader.
2053 + Moved `inlineMath`, `displayMath` from Markdown reader to Parsing,
2054 and generalized their types (Matthew Pickering).
2056 * `Text.Pandoc.Pretty`:
2058 + Added `nestle`.
2059 + Added `blanklines`, which guarantees a certain number of blank lines
2060 (and no more).
2062 [bug fixes]
2064 * Markdown reader:
2066 + Fixed parsing of indented code in list items. Indented code
2067 at the beginning of a list item must be indented eight spaces
2068 from the margin (or edge of the container), or four spaces
2069 from the list marker, whichever is greater.
2070 + Fixed small bug in HTML parsing with `markdown_attribute`, which
2071 caused incorrect tag nesting for input like
2072 `<aside markdown="1">*hi*</aside>`.
2073 + Fixed regression with intraword underscores (#1121).
2074 + Improved parsing of inline links containing quote characters (#1534).
2075 + Slight rewrite of `enclosure`/`emphOrStrong` code.
2076 + Revamped raw HTML block parsing in markdown (#1330).
2077 We no longer include trailing spaces and newlines in the
2078 raw blocks. We look for closing tags for elements (but without
2079 backtracking). Each block-level tag is its own `RawBlock`;
2080 we no longer try to consolidate them (though `--normalize` will do so).
2081 + Combine consecutive latex environments. This helps when you have
2082 two minipages which can't have blank lines between them (#690, #1196).
2083 + Support smallcaps through span.
2084 `<span style="font-variant:small-caps;">foo</span>` will be
2085 parsed as a `SmallCaps` inline, and will work in all output
2086 formats that support small caps (#1360).
2087 + Prevent spurious line breaks after list items (#1137). When the
2088 `hard_line_breaks` option was specified, pandoc would formerly
2089 produce a spurious line break after a tight list item.
2090 + Fixed table parsing bug (#1333).
2091 + Handle `c++` and `objective-c` as language identifiers in
2092 github-style fenced blocks (#1318).
2093 + Inline math must have nonspace before final `$` (#1313).
2095 * LaTeX reader:
2097 + Handle comments at the end of tables. This resolves the issue
2098 illustrated in <http://stackoverflow.com/questions/24009489>.
2099 + Correctly handle table rows with too few cells. LaTeX seems to
2100 treat them as if they have empty cells at the end (#241).
2101 + Handle leading/trailing spaces in `\emph` better.
2102 `\emph{ hi }` gets parsed as `[Space, Emph [Str "hi"], Space]`
2103 so that we don't get things like `* hi *` in markdown output.
2104 Also applies to `\textbf` and some other constructions (#1146).
2105 + Don't assume preamble doesn't contain environments (#1338).
2106 + Allow (and discard) optional argument for `\caption` (James Aspnes).
2108 * HTML reader:
2110 + Fixed major parsing problem with HTML tables. Table cells were
2111 being combined into one cell (#1341).
2112 + Fixed performance issue with malformed HTML tables.
2113 We let a `</table>` tag close an open `<tr>` or `<td>` (#1167).
2114 + Allow space between `<col>` and `</col>`.
2115 + Added `audio` and `source` in `eitherBlockOrInline`.
2116 + Moved `video`, `svg`, `progress`, `script`, `noscript`, `svg` from
2117 `blockTags` to `eitherBlockOrInline`.
2118 + `map` and `object` were mistakenly in both lists; they have been removed
2119 from `blockTags`.
2120 + Ignore `DOCTYPE` and `xml` declarations.
2122 * MediaWiki reader:
2124 + Don't parse backslash escapes inside `<source>` (#1445).
2125 + Tightened up template parsing.
2126 The opening `{{` must be followed by an alphanumeric or `:`.
2127 This prevents the exponential slowdown in #1033.
2128 + Support "Bild" for images.
2130 * DocBook reader:
2132 + Better handle elements inside code environments. Pandoc's document
2133 model does not allow structure inside code blocks, but at least this way
2134 we preserve the text (#1449).
2135 + Support `<?asciidoc-br?>` (#1236).
2137 * Textile reader:
2139 + Fixed list parsing. Lists can now start without an intervening
2140 blank line (#1513).
2141 + HTML block-level tags that do not start a line are parsed as
2142 inline HTML and do not interrupt paragraphs (as in RedCloth).
2144 * Org reader:
2146 + Make tildes create inline code (#1345). Also relabeled `code` and
2147 `verbatim` parsers to accord with the org-mode manual.
2148 + Respect `:exports` header argument in code blocks (Craig Bosma).
2149 + Fixed tight lists with sublists (#1437).
2151 * EPUB writer:
2153 + Avoid excess whitespace in `nav.xhtml`. This should improve
2154 TOC view in iBooks (#1392).
2155 + Fixed regression on cover image.
2156 In 1.12.4 and 1.12.4.2, the cover image would not appear properly,
2157 because the metadata id was not correct. Now we derive the id from the
2158 actual cover image filename, which we preserve rather than using
2159 "cover-image."
2160 + Keep newlines between block elements. This allows
2161 easier diff-ability (#1424).
2162 + Use `stringify` instead of custom `plainify`.
2163 + Use `renderTags'` for all tag rendering. This properly handles tags
2164 that should be self-closing. Previously `<hr/>` would appear in EPUB
2165 output as `<hr></hr>` (#1420).
2166 + Better handle HTML media tags.
2167 + Handle multiple dates with OPF `event` attributes. Note: in EPUB3 we
2168 can have only one dc:date, so only the first one is used.
2170 * LaTeX writer:
2172 + Correctly handle figures in notes. Notes can't contain figures in
2173 LaTeX, so we fake it to avoid an error (#1053).
2174 + Fixed strikeout + highlighted code (#1294).
2175 Previously strikeout highlighted code caused an error.
2177 * ConTeXt writer:
2179 + Improved detection of autolinks with URLs containing escapes.
2181 * RTF writer:
2183 + Improved image embedding: `fetchItem'` is now used to get the
2184 images, and calculated image sizes are indicated in the RTF.
2185 + Avoid extra paragraph tags in metadata (#1421).
2187 * HTML writer:
2189 + Deactivate "incremental" inside slide speaker notes (#1394).
2190 + Don't include empty items in the table of contents for
2191 slide shows. (These would result from creating a slide
2192 using a horizontal rule.)
2194 * MediaWiki writer:
2196 + Minor renaming of `st` prefixed names.
2198 * AsciiDoc writer:
2200 + Double up emphasis and strong emphasis markers in intraword
2201 contexts, as required by asciidoc (#1441).
2203 * Markdown writer:
2205 + Avoid wrapping that might start a list, blockquote, or header (#1013).
2206 + Use Span instead of (hackish) `SmallCaps` in `plainify`.
2207 + Don't use braced attributes for fenced code (#1416).
2208 If `Ext_fenced_code_attributes` is not set, the first class
2209 attribute will be printed after the opening fence as a bare word.
2210 + Separate adjacent lists of the same kind with an HTML comment (#1458).
2212 * PDF writer:
2214 + Fixed treatment of data uris for images (#1062).
2216 * Docx writer:
2218 + Use Compact style for empty table cells (#1353).
2219 Otherwise we get overly tall lines when there are empty
2220 table cells and the other cells are compact.
2221 + Create overrides per-image for `media/` in reference docx.
2222 This should be somewhat more robust and cover more types of images.
2223 + Improved `entryFromArchive` to avoid an unneeded parse.
2224 + Section numbering carries over from reference.docx (#1305).
2225 + Simplified `abstractNumId` numbering. Instead of sequential numbering,
2226 we assign numbers based on the list marker styles.
2228 * `Text.Pandoc.Options`:
2230 + Removed `Ext_fenced_code_attributes` from `markdown_github`
2231 extensions.
2233 * `Text.Pandoc.ImageSize`:
2235 + Use default instead of failing if image size not found
2236 in exif header (#1358).
2237 + ignore unknown exif header tag rather than crashing.
2238 Some images seem to have tag type of 256, which was causing
2239 a runtime error.
2241 * `Text.Pandoc.Shared`:
2243 + `fetchItem`: unescape URI encoding before reading local file (#1427).
2244 + `fetchItem`: strip a fragment like `?#iefix` from the extension before
2245 doing mime lookup, to improve mime type guessing.
2246 + Improved logic of `fetchItem`: absolute URIs are fetched from the net;
2247 other things are treated as relative URIs if `sourceURL` is `Just _`,
2248 otherwise as file paths on the local file system.
2249 + `fetchItem` now properly handles links without a protocol (#1477).
2250 + `fetchItem` now escapes characters not allowed in URIs before trying
2251 to parse the URIs.
2252 + Fixed runtime error with `compactify'DL` on certain lists (#1452).
2254 * `pandoc.hs`: Don't strip path off of `writerSourceURL`: the path is
2255 needed to resolve relative URLs when we fetch resources (#750).
2257 * `Text.Pandoc.Parsing`
2259 + Simplified `dash` and `ellipsis` (#1419).
2260 + Removed `(>>~)` in favor of the equivalent `(<*)` (Matthew Pickering).
2261 + Generalized functions to use `ParsecT` (Matthew Pickering).
2262 + Added `isbn` and `pmid` to list of recognized schemes (Matthew
2263 Pickering).
2265 [template changes]
2267 * Added haddock template.
2268 * EPUB3: Added `type` attribute to `link` tags. They are supposed to
2269 be "advisory" in HTML5, but kindlegen seems to require them.
2270 * EPUB3: Put title page in section with `epub:type="titlepage"`.
2271 * LaTeX: Made `\subtitle` work properly (#1327).
2272 * LaTeX/Beamer: remove conditional around date (#1321).
2273 * LaTeX: Added `lot` and `lof` variables, which can be set to
2274 get `\listoftables` and `\listoffigures` (#1407). Note that
2275 these variables can be set at the command line with `-Vlot -Vlof`
2276 or in YAML metadata.
2278 [under the hood improvements]
2280 * Rewrote normalize for efficiency (#1385).
2282 * Rewrote Haddock reader to use `haddock-library` (#1346).
2284 + This brings pandoc's rendering of haddock markup in line
2285 with the new haddock.
2286 + Fixed line breaks in `@` code blocks.
2287 + alex and happy are no longer build-depends.
2289 * Added `Text.Pandoc.Compat.Directory` to allow building against
2290 different versions of the `directory` library.
2292 + Added `Text.Pandoc.Compat.Except` to allow building against
2293 different verions of `mtl`.
2295 * Code cleanup in some writers, using Reader monad to avoid
2296 passing options parameter around (Matej Kollar).
2298 * Improved readability in `pandoc.hs`.
2300 * Miscellaneous code cleanups (Artyom Kazak).
2302 * Avoid `import Prelude hiding (catch)` (#1309, thanks to Michael
2303 Thompson).
2305 * Changed `http-conduit` flag to `https`. Depend on `http-client`
2306 and `http-client-tls` instead of `http-conduit`. (Note: pandoc still
2307 depends on `conduit` via `yaml`.)
2309 * Require `highlighting-kate >= 0.5.8.5` (#1271, #1317, Debian #753299).
2310 This change to highlighting-kate means that PHP fragments no longer need
2311 to start with `<?php`. It also fixes a serious bug causing failures with
2312 ocaml and fsharp.
2314 * Require latest `texmath`. This fixes `\tilde{E}` and allows
2315 `\left` to be used with `]`, `)` etc. (#1319), among many other
2316 improvements.
2318 * Require latest `zip-archive`. This has fixes for unicode path names.
2320 * Added tests for plain writer.
2322 * `Text.Pandoc.Templates`:
2324 + Fail informatively on template syntax errors.
2325 With the move from parsec to attoparsec, we lost good error
2326 reporting. In fact, since we weren't testing for end of input,
2327 malformed templates would fail silently. Here we revert back to
2328 Parsec for better error messages.
2329 + Use `ordNub` (#1022).
2331 * Benchmarks:
2333 + Made benchmarks compile again (Artyom Kazak).
2334 + Fixed so that the failure of one benchmark does not prevent others
2335 from running (Artyom Kazak).
2336 + Use `nfIO` instead of the `getLength` trick to force full evaluation.
2337 + Changed benchmark to use only the test suite, so that benchmarks
2338 run more quickly.
2340 * Windows build script:
2342 + Add `-windows` to file name.
2343 + Use one install command for pandoc, pandoc-citeproc.
2344 + Force install of pandoc-citeproc.
2346 * `make_osx_package`: Call zip file `pandoc-VERSION-osx.zip`.
2347 The zip should not be named `SOMETHING.pkg.zip`, or OSX finder
2348 will extract it into a folder named `SOMETHING.pkg`, which it
2349 will interpret as a defective package (#1308).
2351 * `README`:
2353 + Made headers for all extensions so they have IDs and can be
2354 linked to (Beni Cherniavsky-Paskin).
2355 + Fixed typos (Phillip Alday).
2356 + Fixed documentation of attributes (#1315).
2357 + Clarified documentation on small caps (#1360).
2358 + Better documentation for `fenced_code_attributes` extension
2359 (Caleb McDaniel).
2360 + Documented fact that you can put YAML metadata in a separate file
2361 (#1412).
2364pandoc (1.12.4.2)
2366 * Require highlighting-kate >= 0.5.8. Fixes a performance regression.
2368 * Shared: `addMetaValue` now behaves slightly differently:
2369 if both the new and old values are lists, it concatenates their
2370 contents to form a new list.
2372 * LaTeX reader:
2374 + Set `bibliography` in metadata from `\bibliography` or
2375 `\addbibresource` command.
2376 + Don't error on `%foo` with no trailing newline.
2378 * Org reader:
2380 + Support code block headers (`#+BEGIN_SRC ...`) (Albert Krewinkel).
2381 + Fix parsing of blank lines within blocks (Albert Krewinkel).
2382 + Support pandoc citation extension (Albert Krewinkel). This can
2383 be turned off by specifying `org-citations` as the input format.
2385 * Markdown reader:
2387 + `citeKey` moved to `Text.Pandoc.Parsing` so it can be used by
2388 other readers (Albert Krewinkel).
2390 * `Text.Pandoc.Parsing`:
2392 + Added `citeKey` (see above).
2393 + Added `HasLastStrPosition` type class and `updateLastStrPos`
2394 and `notAfterString` functions.
2396 * Updated copyright notices (Albert Krewinkel).
2398 * Added default.icml to data files so it installs with the package.
2400 * OSX package:
2402 + The binary is now built with options to ensure that it can be
2403 used with OSX 10.6+.
2404 + Moved OSX package materials to osx directory.
2405 + Added OSX package uninstall script, included in the zip container
2406 (thanks to Daniel T. Staal).
2408pandoc (1.12.4)
2410 * Made it possible to run filters that aren't executable (#1096).
2411 Pandoc first tries to find the executable (searching the path
2412 if path isn't given). If it fails, but the file exists and has
2413 a `.py`, `.pl`, `.rb`, `.hs`, or `.php` extension, pandoc runs the filter
2414 using the appropriate interpreter. This should make it easier to
2415 use filters on Windows, and make it more convenient for everyone.
2417 * Added Emacs org-mode reader (Albert Krewinkel).
2419 * Added InDesign ICML Writer (mb21).
2421 * MediaWiki reader:
2423 + Accept image links in more languages (Jaime Marquínez Ferrándiz).
2424 + Fixed bug in certain nested lists (#1213). If a level 2 list was
2425 followed by a level 1 list, the first item of the level 1 list
2426 would be lost.
2427 + Handle table rows containing just an HTML comment (#1230).
2429 * LaTeX reader:
2431 + Give better location information on errors, pointing to line
2432 numbers within included files (#1274).
2433 + LaTeX reader: Better handling of `table` environment (#1204).
2434 Positioning options no longer rendered verbatim.
2435 + Better handling of figure and table with caption (#1204).
2436 + Handle `@{}` and `p{length}` in tabular. The length is not actually
2437 recorded, but at least we get a table (#1180).
2438 + Properly handle `\nocite`. It now adds a `nocite` metadata
2439 field. Citations there will appear in the bibliography but not
2440 in the text (unless you explicitly put a `$nocite$` variable
2441 in your template).
2443 * Markdown reader:
2445 + Ensure that whole numbers in YAML metadata are rendered without
2446 decimal points. (This became necessary with changes to aeson
2447 and yaml libraries. aeson >= 0.7 and yaml >= 0.8.8.2 are now required.)
2448 + Fixed regression on line breaks in strict mode (#1203).
2449 + Small efficiency improvements.
2450 + Improved parsing of nested `div`s. Formerly a closing `div` tag
2451 would be missed if it came right after other block-level tags.
2452 + Avoid backtracking when closing `</div>` not found.
2453 + Fixed bug in reference link parsing in `markdown_mmd`.
2454 + Fixed a bug in list parsing (#1154). When reading a raw list
2455 item, we now strip off up to 4 spaces.
2456 + Fixed parsing of empty reference link definitions (#1186).
2457 + Made one-column pipe tables work (#1218).
2459 * Textile reader:
2461 + Better support for attributes. Instead of being ignored, attributes
2462 are now parsed and included in Span inlines. The output will be a bit
2463 different from stock textile: e.g. for `*(foo)hi*`, we'll get
2464 `<em><span class="foo">hi</span></em>` instead of
2465 `<em class="foo">hi</em>`. But at least the data is not lost.
2466 + Improved treatment of HTML spans (%) (#1115).
2467 + Improved link parsing. In particular we now pick up on attributes.
2468 Since pandoc links can't have attributes, we enclose the whole link in
2469 a span if there are attributes (#1008).
2470 + Implemented correct parsing rules for inline markup (#1175, Matthew
2471 Pickering).
2472 + Use Builder (Matthew Pickering).
2473 + Fixed list parsing bug (#1500).
2474 + Don't allow inline formatting to extend over newlines.
2475 This matches the behavior of RedCarpet, avoids some ugly bugs,
2476 and improves performance.
2478 * DocBook reader:
2480 + Better treatment of `formalpara`. We now emit the title (if present)
2481 as a separate paragraph with boldface text (#1215).
2482 + Set metadata `author` not `authors`.
2483 + Added recognition of `authorgroup` and `releaseinfo` elements (#1214,
2484 Matthew Pickering).
2485 + Converted current meta information parsing in DocBook to a more
2486 extensible version which is aware of the more recent meta
2487 representation (Matthew Pickering).
2489 * HTML reader:
2491 + Require tagsoup 0.13.1, to fix a bug with parsing of script tags
2492 (#1248).
2493 + Treat processing instructions & declarations as block. Previously
2494 these were treated as inline, and included in paragraph tags in HTML
2495 or DocBook output, which is generally not what is wanted (#1233).
2496 + Updated `closes` with rules from HTML5 spec.
2497 + Use Builder (Matthew Pickering, #1162).
2499 * RST reader:
2501 + Remove duplicate `http` in PEP links (Albert Krewinkel).
2502 + Make rst figures true figures (#1168, CasperVector)
2503 + Enhanced Pandoc's support for rST roles (Merijn Verstaaten).
2504 rST parser now supports: all built-in rST roles, new role definition,
2505 role inheritance, though with some limitations.
2506 + Use `author` rather than `authors` in metadata.
2507 + Better handling of directives. We now correctly handle field
2508 lists that are indented more than three spaces. We treat an
2509 `aafig` directive as a code block with attributes, so it can be
2510 processed in a filter (#1212).
2512 * LaTeX writer:
2514 + Mark span contents with label if span has an ID (Albert Krewinkel).
2515 + Made `--toc-depth` work well with books in latex/pdf output (#1210).
2516 + Handle line breaks in simple table cells (#1217).
2517 + Workaround for level 4-5 headers in quotes. These previously produced
2518 invalid LaTeX: `\paragraph` or `\subparagraph` in a `quote` environment.
2519 This adds an `mbox{}` in these contexts to work around the problem.
2520 See <http://tex.stackexchange.com/a/169833/22451> (#1221).
2521 + Use `\/` to avoid en-dash ligature instead of `-{}-` (Vaclav Zeman).
2522 This is to fix LuaLaTeX output. The `-{}-` sequence does not avoid the
2523 ligature with LuaLaTeX but `\/` does.
2524 + Fixed string escaping in `hyperref` and `hyperdef` (#1130).
2526 * ConTeXt writer: Improved autolinks (#1270).
2528 * DocBook writer:
2530 + Improve handling of hard line breaks in Docbook writer
2531 (Neil Mayhew). Use a `<literallayout>` for the entire paragraph, not
2532 just for the newline character.
2533 + Don't let line breaks inside footnotes influence the enclosing
2534 paragraph (Neil Mayhew).
2535 + Distinguish tight and loose lists in DocBook output, using
2536 `spacing="compact"` (Neil Mayhew, #1250).
2538 * Docx writer: When needed files are not present in the user's
2539 `reference.docx`, fall back on the versions in the `reference.docx`
2540 in pandoc's data files. This fixes a bug that occurs when a
2541 `reference.docx` saved by LibreOffice is used. (#1185)
2543 * EPUB writer:
2545 + Include extension in epub ids. This fixes a problem with duplicate
2546 extensions for fonts and images with the same base name but different
2547 extensions (#1254).
2548 + Handle files linked in raw `img` tags (#1170).
2549 + Handle media in `audio` source tags (#1170).
2550 Note that we now use a `media` directory rather than `images`.
2551 + Incorporate files linked in `video` tags (#1170). `src` and `poster`
2552 will both be incorporated into `content.opf` and the epub container.
2554 * HTML writer:
2556 + Add colgroup around col tags (#877). Also affects EPUB writer.
2557 + Fixed bug with unnumbered section headings. Unnumbered section
2558 headings (with class `unnumbered`) were getting numbers.
2559 + Improved detection of image links. Previously image links with
2560 queries were not recognized, causing `<embed>` to be used instead
2561 of `<img>`.
2563 * Man writer: Ensure that terms in definition lists aren't line wrapped
2564 (#1195).
2566 * Markdown writer:
2568 + Use proper escapes to avoid unwanted lists (#980). Previously we used
2569 0-width spaces, an ugly hack.
2570 + Use longer backtick fences if needed (#1206). If the content contains a
2571 backtick fence and there are attributes, make sure longer fences are
2572 used to delimit the code. Note: This works well in pandoc, but github
2573 markdown is more limited, and will interpret the first string of three
2574 or more backticks as ending the code block.
2576 * RST writer: Avoid stack overflow with certain tables (#1197).
2578 * RTF writer: Fixed table cells containing paragraphs.
2580 * Custom writer:
2582 + Correctly handle UTF-8 in custom lua scripts (#1189).
2583 + Fix bugs with lua scripts with mixed-case filenames and
2584 paths containing `+` or `-` (#1267). Note that `getWriter`
2585 in `Text.Pandoc` no longer returns a custom writer on input
2586 `foo.lua`.
2588 * AsciiDoc writer: Handle multiblock and empty table cells
2589 (#1245, #1246). Added tests.
2591 * `Text.Pandoc.Options`: Added `readerTrace` to `ReaderOptions`
2593 * `Text.Pandoc.Shared`:
2595 + Added `compactify'DL` (formerly in markdown reader) (Albert Krewinkel).
2596 + Fixed bug in `toRomanNumeral`: numbers ending with '9' would
2597 be rendered as Roman numerals ending with 'IXIV' (#1249). Thanks to
2598 Jesse Rosenthal.
2599 + `openURL`: set proxy with value of http_proxy env variable (#1211).
2600 Note: proxies with non-root paths are not supported, due to
2601 limitations in `http-conduit`.
2603 * `Text.Pandoc.PDF`:
2605 + Ensure that temp directories deleted on Windows (#1192). The PDF is
2606 now read as a strict bytestring, ensuring that process ownership will
2607 be terminated, so the temp directory can be deleted.
2608 + Use `/` as path separators in a few places, even on Windows.
2609 This seems to be necessary for texlive (#1151, thanks to Tim Lin).
2610 + Use `;` for `TEXINPUTS` separator on Windows (#1151).
2611 + Changes to error reporting, to handle non-UTF8 error output.
2613 * `Text.Pandoc.Templates`:
2615 + Removed unneeded datatype context (Merijn Verstraaten).
2617 + YAML objects resolve to "true" in conditionals (#1133).
2618 Note: If `address` is a YAML object and you just have `$address$`
2619 in your template, the word `true` will appear, which may be
2620 unexpected. (Previously nothing would appear.)
2622 * `Text.Pandoc.SelfContained`:
2624 + `mkSelfContained` now takes just two arguments, `WriterOptions` and
2625 the string.
2626 * It no longer looks in data files. This only made sense when we
2627 had copies of slidy and S5 code there.
2628 * `fetchItem'` is used instead of the nearly duplicate `getItem`.
2629 + Handle `poster` attribute in `video` tags (#1188).
2631 * `Text.Pandoc.Parsing`:
2633 + Made `F` an instance of Applicative (#1138).
2634 + Added `stateCaption`.
2635 + Added `HasMacros`, simplified other typeclasses.
2636 Removed `updateHeaderMap`, `setHeaderMap`, `getHeaderMap`,
2637 `updateIdentifierList`, `setIdentifierList`, `getIdentifierList`.
2638 + Changed the smart punctuation parser to return `Inlines`
2639 rather than `Inline` (Matthew Pickering).
2640 + Changed `HasReaderOptions`, `HasHeaderMap`, `HasIdentifierList`
2641 from typeclasses of monads to typeclasses of states. This simplifies
2642 the instance definitions and provides more flexibility. Generalized
2643 type of `getOption` and added a default definition. Removed
2644 `askReaderOption`. Added `extractReaderOption`. Added
2645 `extractHeaderMap` and `updateHeaderMap` in `HasHeaderMap`.
2646 Gave default definitions for `getHeaderMap`, `putHeaderMap`,
2647 `modifyHeaderMap`. Added `extractIdentifierList` and
2648 `updateIdentifierList` in `HasIdentifierList`. Gave defaults
2649 for `getIdentifierList`, `putIdentifierList`, and
2650 `modifyIdentifierList`. The ultimate goal here is to allow different
2651 parsers to use their own, tailored parser states (instead of
2652 `ParserState`) while still using shared functions.
2654 * Template changes:
2656 + LaTeX template: Use `fontenc` package only with `pdflatex` (#1164).
2657 + LaTeX template: Add `linestretch` and `fontfamily` variables.
2658 + LaTeX template: Conditionalize author and date commands.
2659 + Beamer template: Consistent styles for figure and table captions
2660 (aaronwolen).
2661 + LaTeX and beamer template: Adjust widths correctly for oversized
2662 images. Use `\setkeys{Gin}{}` to set appropriate defaults for
2663 `\includegraphics` (Yihui Xie, Garrick Aden-Buie). Load
2664 `upquote` only after `fontenc` (Yihui Xie).
2665 + Beamer template: Added caption package (#1200).
2666 + Beamer template: changes for better unicode handling (KarolS).
2667 + DocBook template: use `authorgroup` if there are authors.
2668 + revealjs template: Move `include-after` to end (certainlyakey).
2669 + revealjs template: Fixed PDF print function (#1220, kevinkenan).
2671 * Bumped version bounds of dependencies.
2673 * Added a `--trace` command line option, for debugging backtracking
2674 bugs. So far this only works with the markdown reader.
2676 * MathMLinHTML: Fixed deprecation warning (#362, gwern, Albert Krewinkel).
2678 * Updated travis script to test with multiple GHC versions.
2680 * Force failure of a Travis build if GHC produces warnings (Albert
2681 Krewinkel).
2683 * Add `.editorconfig` (Albert Krewinkel).
2684 See <http://editorconfig.org/> for details.
2686 * Give more useful error message if '-t pdf' is specified (#1155).
2688 * Added `Cite`, `SmallCaps` to `Arbitrary` instance (#1269).
2690 * Allow `html4` as a synonym of `html` as a reader (it already works
2691 as a writer).
2693 * README:
2695 + Added an explanation of how to use YAML metadata to
2696 force items to appear in the bibliography without citations in
2697 the text (like LaTeX `\nocite`).
2698 + Added note to `--bibtex/--natbib`: not for use in making PDF
2699 (#1194, thanks to nahoj).
2700 + Added explanatory notes about `--natbib` and `--biblatex`.
2701 + Added specification of legal syntax for citation keys.
2702 + Fixed variable defaults documentation (Albert Krewinkel).
2704 * Removed copyright statements for files that have been removed
2705 (Albert Krewinkel).
2707 * Moved some doc files from `data-files` to `extra-source-files` (#1123).
2708 They aren't needed at runtime. We keep README and COPYRIGHT in data
2709 to ensure that they'll be available on all systems on which pandoc
2710 is installed.
2712 * Use cabal sandboxes in Windows build script.
2714pandoc (1.12.3.3)
2716 * To changes to source; recompiled tarball with latest alex and
2717 happy, so they will work with GHC 7.8.
2719pandoc (1.12.3.2)
2721 * Bumped version bounds for blaze-html, blaze-markup.
2723 * ImageSize: Avoid use of lookAhead, which is not in binary >= 0.6
2724 (#1124).
2726 * Fixed mediawiki ordered list parsing (#1122).
2728 * HTML reader: Fixed bug reading inline math with `$$` (#225).
2730 * Added support for LaTeX style literate Haskell code blocks in rST
2731 (Merijn Verstraaten).
2733pandoc (1.12.3.1)
2735 * Relaxed version constraint on binary, allowing the use of binary 0.5.
2737pandoc (1.12.3)
2739 * The `--bibliography` option now sets the `biblio-files` variable.
2740 So, if you're using `--natbib` or `--biblatex`, you can just use
2741 `--bibliography=foo.bib` instead of `-V bibliofiles=foo`.
2743 * Don't run pandoc-citeproc filter if `--bibliography` is
2744 used together with `--natbib` or `--biblatex` (Florian Eitel).
2746 * Template changes:
2748 + Updated beamer template to include booktabs.
2749 + Added `abstract` variable to LaTeX template.
2750 + Put `header-includes` after `title` in LaTeX template (#908).
2751 + Allow use of `\includegraphics[size]` in beamer.
2752 This just required porting a macro definition from the default
2753 LaTeX template to the default beamer template.
2755 * `reference.docx`: Include `FootnoteText` style.
2756 Otherwise Word ignores the style, even when specified in the `pPr`.
2757 (#901)
2759 * `reference.odt`: Tidied `styles.xml`.
2761 * Relaxed version bounds for dependencies.
2763 * Added `withSocketsDo` around http conduit code in `openURL`,
2764 so it works on Windows (#1080).
2766 * Added `Cite` function to `sample.lua`.
2768 * Markdown reader:
2770 + Fixed regression in title blocks (#1089).
2771 If author field was empty, date was being ignored.
2772 + Allow backslash-newline hard line breaks in grid and
2773 multiline table cells.
2774 + Citation keys may now start with underscores, and may contain
2775 underscores adjacent to internal punctuation.
2777 * LaTeX reader:
2779 + Add support for `Verb` macro (jrnold) (#1090).
2780 + Support babel-style quoting: `` "`..."' ``.
2782 * Properly handle script blocks in strict mode. (That is,
2783 `markdown-markdown_in_html_blocks`.) Previously a spurious
2784 `<p>` tag was being added (#1093).
2786 * Docbook reader: Avoid failure if `tbody` contains no `tr` or `row`
2787 elements.
2789 * LaTeX writer:
2791 + Factored out function for table cell creation.
2792 + Better treatment of footnotes in tables.
2793 Notes now appear in the regular sequence, rather than in the
2794 table cell. (This was a regression in 1.10.)
2796 * HTML reader: Parse name/content pairs from meta tags as metadata.
2797 Closes #1106.
2799 * Moved `fixDisplayMath` from Docx writer to `Writer.Shared`.
2801 * OpenDocument writer: Fixed `RawInline`, `RawBlock` so they don't escape.
2803 * ODT writer: Use mathml for proper rendering of formulas.
2804 Note: LibreOffice's support for this seems a bit buggy. But
2805 it should be better than what we had before.
2807 * RST writer: Ensure no blank line after def in definition list (#992).
2809 * Markdown writer: Don't use tilde code blocks with braced attributes in
2810 `markdown_github` output. A consequence of this change is that the
2811 backtick form will be preferred in general if both are enabled. That
2812 is good, as it is much more widespread than the tilde form. (#1084)
2814 * Docx writer: Fixed problem with some modified reference docx files.
2815 Include `word/_rels/settings.xml.rels` if it exists, as well as other
2816 `rels` files besides the ones pandoc generates explicitly.
2818 * HTML writer:
2820 + With `--toc`, headers no longer link to themselves (#1081).
2821 + Omit footnotes from TOC entries. Otherwise we get doubled
2822 footnotes when headers have notes!
2824 * EPUB writer:
2826 + Avoid duplicate notes when headings contain notes.
2827 This arose because the headings are copied into the metadata
2828 "title" field, and the note gets rendered twice. We strip the
2829 note now before putting the heading in "title".
2830 + Strip out footnotes from toc entries.
2831 + Fixed bug with `--epub-stylesheet`. Now the contents of
2832 `writerEpubStylesheet` (set by `--epub-stylesheet`)
2833 should again work, and take precedence over a stylesheet specified
2834 in the metadata.
2836 * `Text.Pandoc.MIME`: Added `wmf`, `emf`.
2838 * `Text.Pandoc.Shared`: `fetchItem` now handles image URLs beginning
2839 with `//`.
2841 * `Text.Pandoc.ImageSize`: Parse EXIF format JPEGs. Previously
2842 we could only get size information for JFIF format, which led
2843 to squished images in Word documents. Closes #976.
2845 * Removed old `MarkdownTest_1.0.3` directory (#1104).
2847pandoc (1.12.2.1)
2849 * Markdown reader: Fixed regression in list parser, involving
2850 continuation lines containing raw HTML (or even verbatim raw HTML).
2852pandoc (1.12.2)
2854 * Metadata may now be included in YAML blocks in a markdown document.
2855 For example,
2857 ---
2858 title:
2859 - type: main
2860 text: My Book
2861 - type: subtitle
2862 text: An investigation of metadata
2863 creator:
2864 - role: author
2865 text: John Smith
2866 - role: editor
2867 text: Sarah Jones
2868 identifier:
2869 - scheme: DOI
2870 text: doi:10.234234.234/33
2871 publisher: My Press
2872 rights: (c) 2007 John Smith, CC BY-NC
2873 cover-image: img/mypic.jpg
2874 ...
2876 Metadata may still be provided using `--epub-metadata`; it will
2877 be merged with the metadata in YAML blocks.
2879 * EPUB writer:
2881 + `meta` tags are now used instead of `opf` attributes for EPUB3.
2882 + Insert "svg" property as needed in opf (EPUB 3).
2883 + Simplify `imageTypeOf` using `getMimeType`.
2884 + Add properties attribute to `cover-image` item for EPUB 3.
2885 + Don't include node for `cover.xhtml` if no cover!
2886 + Ensure that same identifier is used throughout (#1044).
2887 If an identifier is given in metadata, we use that; otherwise
2888 we generate a random uuid.
2889 + Add cover reference to guide element (EPUB 2) (Shaun Attfield).
2890 Fixes an issue with Calibre putting the cover at the end of the book
2891 if the spine has `linear="no"`. Apparently this is best practice
2892 for other converters as well:
2893 <http://www.idpf.org/epub/20/spec/OPF_2.0.1_draft.htm#Section2.6>.
2894 + Allow `stylesheet` in metadata. The value is a path to the stylesheet.
2895 + Allow partial dates: `YYYY`, `YYYY-MM`.
2897 * Markdown writer: Fix rendering of tight sublists (#1050).
2898 Previously a spurious blank line was included after a tight sublist.
2900 * ODT writer: Add `draw:name` attribute to `draw:frame` elements (#1069).
2901 This is reported to be necessary to avoid an error from recent
2902 versions of Libre Office when files contain more than one image
2903 Thanks to wmanley for reporting and diagnosing the problem.
2905 * ConTeXt writer: Don't hardcode figure/table placement and numbering.
2906 Instead, let this be set in the template, using `\setupfloat`.
2907 Thanks to on4aa and Aditya Mahajan for the suggestion (#1067).
2909 * Implemented CSL flipflopping spans in DOCX, LaTeX, and HTML writers.
2911 * Fixed bug with markdown intraword emphasis. Closes #1066.
2913 * Docbook writer: Hierarchicalize block content in metadata.
2914 Previously headers just disappeared from block-level metadata
2915 when it was used in templates. Now we apply the 'hierarchicalize'
2916 transformation. Note that a block headed by a level-2 header will
2917 turn into a `<sect1>` element.
2919 * OpenDocument writer: Skip raw HTML (#1035).
2920 Previously it was erroneously included as verbatim text.
2922 * HTML/EPUB writer, footnotes: Put `<sup>` tag inside `<a>` tags.
2923 This allows better control of formatting, since the `<a>`
2924 tags have a distinguishing class (#1049).
2926 * Docx writer:
2928 + Use mime type info returned by fetchItem.
2929 + Fixed core metadata (#1046).
2930 Don't create empty date nodes if no date given.
2931 Don't create multiple `dc:creator` nodes; instead separate by
2932 semicolons.
2933 + Fix URL for core-properties in `_rels/.rels` (#1046).
2935 * Plain writer: don't print `<span>` tags.
2937 * LaTeX writer:
2939 + Fix definition lists with internal links in terms (#1032).
2940 This fix puts braces around a term that contains an internal
2941 link, to avoid problems with square brackets.
2942 + Properly escape pdftitle, pdfauthor (#1059).
2943 + Use booktabs package for tables (thanks to Jose Luis Duran).
2945 * Updated beamer template. Now references should work properly
2946 (in a slide) when `--biblatex` or `--natbib` is used.
2948 * LaTeX reader:
2950 + Parse contents of curly quotes or matched `"` as quotes.
2951 + Support `\textnormal` as span with class `nodecor`.
2952 This is needed for pandoc-citeproc.
2953 + Improved citation parsing. This fixes a run-time error that occured
2954 with `\citet{}` (empty list of keys). It also ensures that empty keys
2955 don't get produced.
2957 * MediaWiki reader: Add automatic header identifiers.
2959 * HTML reader:
2961 + Use pandoc `Div` and `Span` for raw `<div>`, `<span>` when
2962 `--parse-raw`.
2963 + Recognize `svg` tags as block level content (thanks to MinRK).
2964 + Parse LaTeX math if appropriate options are set.
2966 * Markdown reader:
2968 + Yaml block must start immediately after `---`. If there's a blank
2969 line after `---`, we interpreted it as a horizontal rule.
2970 + Correctly handle empty bullet list items.
2971 + Stop parsing "list lines" when we hit a block tag.
2972 This fixes exponential slowdown in certain input, e.g.
2973 a series of lists followed by `</div>`.
2975 * Slides: Preserve `<div class="references">` in references slide.
2977 * `Text.Pandoc.Writer.Shared`:
2979 + Fixed bug in `tagWithAttrs`. A space was omitted before key-value
2980 attributes, leading to invalid HTML.
2981 + `normalizeDate`: Allow dates with year only (thanks to Shaun Attfield).
2982 + Fixed bug in `openURL` with `data:` URIs. Previously the base-64
2983 encoded bytestring was returned. We now decode it so it's a proper
2984 image!
2986 * DocBook reader: Handle numerical attributes starting with decimal.
2987 Also use `safeRead` instead of `read`.
2989 * `Text.Pandoc.Readers.TexMath`: Export `readTeXMath'`, which attends
2990 to display/inline. Deprecate `readTeXMath`, and use `readTeXMath'`
2991 in all the writers. Require `texmath >= 0.6.5.2`.
2993 * `Text.Pandoc.MIME`:
2995 + Add entry for `jfif`.
2996 + In looking up extensions, drop the encoding info.
2997 E.g. for 'image/jpg;base64' we should lookup 'image/jpg'.
2999 * Templates: Changed how array variables are resolved. Previously if
3000 `foo` is an array (which might be because multiple values were set on
3001 the command line), `$foo$` would resolve to the concatenation of the
3002 elements of foo. This is rarely useful behavior. It has been changed
3003 so that the first value is rendered. Of course, you can still iterate
3004 over the values using `$for(foo)$`. This has the result that you can
3005 override earlier settings using `-V` by putting new values later on the
3006 command line, which is useful for many purposes.
3008 * `Text.Pandoc`: Don't default to `pandocExtensions` for all writers.
3010 * Allow "epub2" as synonym for "epub", "html4" for "html".
3012 * Don't look for slidy files in data files with `--self-contained`.
3014 * Allow `https:` command line arguments to be downloaded.
3016 * Fixed `make_osx_package.sh` so data files embedded in `pandoc-citeproc`.
3018pandoc (1.12.1)
3020 * `Text.Pandoc.Definition`: Changed default JSON serialization format.
3021 Instead of `{"Str": "foo"}`, for example, we now have `{"t": "Str",
3022 "c": "foo"}`. This new format is easier to work with outside of Haskell.
3023 Incidentally, "t" stands for "tag", "c" for "contents".
3025 * MediaWiki reader: Trim contents of `<math>` tags, to avoid problems
3026 when converting to markdown (#1027).
3028 * LaTeX reader:
3030 + Ensure that preamble doesn't contribute to the text of
3031 the document.
3032 + Fixed character escaping in \url{}. Previously `\~` wasn't handled
3033 properly, among others.
3034 + Parse `{groups}` as `Span`. This is needed for accurate conversion of
3035 bibtex titles, since we need to know what was protected from
3036 titlecase conversions.
3038 * LaTeX writer:
3040 + Specially escape non-ascii characters in labels.
3041 Otherwise we can get compile errors and other bugs when
3042 compiled with pdflatex (#1007). Thanks to begemotv2718 for the fix.
3043 + Add link anchors for code blocks with identifiers (#1025).
3045 * Throughout the code, use `isURI` instead of `isAbsoluteURI`.
3046 It allows fragments identifiers.
3048 * Slide formats:
3050 + A Div element with class "notes" is treated as speaker
3051 notes. Currently beamer goes to `\note{}`, revealjs to
3052 `<aside class="notes">`, and the notes are simply suppressed in
3053 other formats (#925).
3054 + Fixed `. . .` (pause) on HTML slide formats. Closes #1029.
3055 The old version caused a pause to be inserted before the first
3056 material on a slide. This has been fixed.
3057 + Removed data files for s5, slideous, slidy.
3058 Users of s5 and slideous will have to download the needed
3059 files, as has been documented for some time in the README.
3060 By default, slidy code will be sought on the web, as before.
3062 * HTML writer: Insert command to typeset mathjax only in slideous output
3063 (#966, #1012).
3065 * RST writer: Skip spaces after display math. Otherwise we get indentation
3066 problems, and part of the next paragraph may be rendered as part of the
3067 math.
3069 * OpenDocument writer: Fix formatting of strikeout code (#995),
3070 thanks to wilx. don't use `font-face-decls` variable.
3072 * Fixed test suite so it works with cabal sandboxes.
3074pandoc (1.12.0.2)
3076 * Removed `stringable` dependency.
3078pandoc (1.12.0.1)
3080 * Allow `--metadata` to be repeated for the same key to form a list.
3081 This also has the effect that `--bibliography` can be repeated,
3082 as before.
3084 * Handle boolean values in `--metadata`. Note that anything not parseable
3085 as a YAML boolean or string is treated as a literal string.
3086 You can get a string value with "yes", or any of the strings interpretable
3087 as booleans, by quoting it:
3089 -M boolvalue=yes -M stringvalue='"yes"'
3091 * LaTeX writer: Don't print references if `--natbib` or `--biblatex`
3092 option used.
3094 * DOCX writer: Add `settings.xml` to the zip container. Fixes a bug
3095 in which docx files could not be read by some versions of Word
3096 and LibreOffice (#990).
3098 * Fixed a regression involving slide shows with bibliographies.
3099 The Div container around references messed up the procedure for carving
3100 a document into slides. So we now remove the surrounding Div in
3101 `prepSlides`.
3103 * More informative error message when a filter is not found in path.
3105 * Depend on pandoc-types 1.12.1. This provide `ToJSONFilter`
3106 instances for `Data a => a -> [a]` and `Data a => a -> IO [a]`.
3108 * Don't use unicode_collation in building OSX package:
3109 it adds something like 50MB of dependencies to the package.
3111 * Declare alex and happy as build-tools (#986).
3113pandoc (1.12)
3115 [new features]
3117 * Much more flexible metadata, including arbitrary fields and structured
3118 values. Metadata can be specified flexibly in pandoc markdown using
3119 YAML metadata blocks, which may occur anywhere in the document:
3121 ---
3122 title: Here is my title.
3123 abstract: |
3124 This is the abstract.
3126 1. It can contain
3127 2. block content
3128 and *inline markup*
3130 tags: [cat, dog, animal]
3131 ...
3133 Metadata fields automatically populate template variables.
3135 * Added `opml` (OPML) as input and output format. The `_note` attribute,
3136 used in OmniOutliner and supported by multimarkdown, is supported.
3137 We treat the contents as markdown blocks under a section header.
3139 * Added `haddock` (Haddock markup) as input format (David Lazar).
3141 * Added `revealjs` output format, for reveal.js HTML 5 slide shows.
3142 (Thanks to Jamie F. Olson for the initial patch.)
3143 Nested vertical stacks are used for hierarchical structure.
3144 Results for more than one level of nesting may be odd.
3146 * Custom writers can now be written in lua.
3148 pandoc -t data/sample.lua
3150 will load the script sample.lua and use it as a custom writer.
3151 (For a sample, do `pandoc --print-default-data-file sample.lua`.)
3152 Note that pandoc embeds a lua interpreter, so lua need not be
3153 installed separately.
3155 * New `--filter/-F` option to make it easier to run "filters"
3156 (Pandoc AST transformations that operate on JSON serializations).
3157 Filters are always passed the name of the output format, so their
3158 behavior can be tailored to it. The repository
3159 <https://github.com/jgm/pandocfilters> contains
3160 a python module for writing pandoc filters in python, with
3161 a number of examples.
3163 * Added `--metadata/-M` option.
3164 This is like `--variable/-V`, but actually adds to metadata, not
3165 just variables.
3167 * Added `--print-default-data-file` option, which allows printing
3168 of any of pandoc's data files. (For example,
3169 `pandoc --print-default-data-file reference.odt` will print
3170 `reference.odt`.)
3172 * Added syntax for "pauses" in slide shows:
3174 This gives
3176 . . .
3178 me pause.
3180 * New markdown extensions:
3182 + `ignore_line_breaks`: causes intra-paragraph line breaks to be ignored,
3183 rather than being treated as hard line breaks or spaces. This is useful
3184 for some East Asian languages, where spaces aren't used between words,
3185 but text is separated into lines for readability.
3186 + `yaml_metadata_block`: Parse YAML metadata blocks. (Default.)
3187 + `ascii_identifiers`: This will force `auto_identifiers` to use ASCII
3188 only. (Default for `markdown_github`.) (#807)
3189 + `lists_without_preceding_blankline`: Allow lists to start without
3190 preceding blank space. (Default for `markdown_github`.) (#972)
3192 [behavior changes]
3194 * `--toc-level` no longer implies `--toc`.
3195 Reason: EPUB users who don't want a visible TOC may still want
3196 to set the TOC level for in the book navigation.
3198 * `--help` now prints in and out formats in alphabetical order, and
3199 says something about PDF output (#720).
3201 * `--self-contained` now returns less verbose output (telling you
3202 which URLs it is fetching, but not giving the full header). In
3203 addition, there are better error messages when fetching a URL fails.
3205 * Citation support is no longer baked in to core pandoc. Users who
3206 need citations will need to install and use a separate filter
3207 (`--filter pandoc-citeproc`). This filter will take `bibliography`,
3208 `csl`, and `citation-abbreviations` from the metadata, though it
3209 may still be specified on the command line as before.
3211 * A `Cite` element is now created in parsing markdown whether or not
3212 there is a matching reference.
3214 * The `pandoc-citeproc` script will put the bibliography at the
3215 end of the document, as before. However, it will be put inside a `Div`
3216 element with class "references", allowing users some control
3217 over the styling of references. A final header, if any, will
3218 be included in the `Div`.
3220 * The markdown writer will not print a bibliography if the
3221 `citations` extension is enabled. (If the citations are formatted
3222 as markdown citations, it is redundant to have a bibliography,
3223 since one will be generated automatically.)
3225 * Previously we used to store the directory of the first input file,
3226 even if it was local, and used this as a base directory for finding
3227 images in ODT, EPUB, Docx, and PDF. This has been confusing to many
3228 users. So we now look for images relative to the current
3229 working directory, even if the first file argument is in another
3230 directory. Note that this change may break some existing workflows.
3231 If you have been assuming that relative links will be interpreted
3232 relative to the directory of the first file argument, you'll need
3233 to make that the current directory before running pandoc. (#942)
3235 * Better error reporting in some readers, due to changes in `readWith`:
3236 the line in which the error occured is printed, with a caret pointing
3237 to the column.
3239 * All slide formats now support incremental slide view for definition lists.
3241 * Parse `\(..\)` and `\[..\]` as math in MediaWiki reader.
3242 Parse `:<math>...</math>` as display math. These notations are used with
3243 the MathJax MediaWiki extension.
3245 * All writers: template variables are set automatically from metadata
3246 fields. However, variables specified on the command line with
3247 `--variable` will completely shadow metadata fields.
3249 * If `--variable` is used to set many variables with the same name,
3250 a list is created.
3252 * Man writer: The `title`, `section`, `header`, and `footer` can now
3253 all be set individually in metadata. The `description` variable has been
3254 removed. Quotes have been added so that spaces are allowed in the
3255 title. If you have a title that begins
3257 COMMAND(1) footer here | header here
3259 pandoc will still parse it into a title, section, header, and
3260 footer. But you can also specify these elements explicitly (#885).
3262 * Markdown reader
3264 + Added support for YAML metadata blocks, which can come anywhere
3265 in the document (not just at the beginning). A document can contain
3266 multiple YAML metadata blocks.
3267 + HTML span and div tags are parsed as pandoc Span and Div elements.
3269 * Markdown writer
3271 + Allow simple tables to be printed as grid tables,
3272 if other table options are disabled. This means you can do
3273 `pandoc -t markdown-pipe_tables-simple_tables-multiline_tables`
3274 and all tables will render as grid tables.
3275 + Support YAML title block (render fields in alphabetical order
3276 to make output predictable).
3278 [API changes]
3280 * `Meta` in `Text.Pandoc.Definition` has been changed to allow
3281 structured metadata. (Note: existing code that pattern-matches
3282 on `Meta` will have to be revised.) Metadata can now contain
3283 indefinitely many fields, with content that can be a string,
3284 a Boolean, a list of `Inline` elements, a list of `Block`
3285 elements, or a map or list of these.
3287 * A new generic block container (`Div`) has been added to `Block`,
3288 and a generic inline container (`Span`) has been added to `Inline`.
3289 These can take attributes. They will render in HTML, Textile,
3290 MediaWiki, Org, RST and and Markdown (with `markdown_in_html`
3291 extension) as HTML `<div>` and `<span>` elements; in other formats
3292 they will simply pass through their contents. But they can be
3293 targeted by scripts.
3295 * `Format` is now a newtype, not an alias for String.
3296 Equality comparisons are case-insensitive.
3298 * Added `Text.Pandoc.Walk`, which exports hand-written tree-walking
3299 functions that are much faster than the SYB functions from
3300 `Text.Pandoc.Generic`. These functions are now used where possible
3301 in pandoc's code. (`Tests.Walk` verifies that `walk` and `query`
3302 match the generic traversals `bottomUp` and `queryWith`.)
3304 * Added `Text.Pandoc.JSON`, which provides `ToJSON` and `FromJSON`
3305 instances for the basic pandoc types. They use GHC generics and
3306 should be faster than the old JSON serialization using
3307 `Data.Aeson.Generic`.
3309 * Added `Text.Pandoc.Process`, exporting `pipeProcess`.
3310 This is a souped-up version of `readProcessWithErrorcode` that
3311 uses lazy bytestrings instead of strings and allows setting
3312 environment variables. (Used in `Text.Pandoc.PDF`.)
3314 * New module `Text.Pandoc.Readers.OPML`.
3316 * New module `Text.Pandoc.Writers.OPML`.
3318 * New module `Text.Pandoc.Readers.Haddock` (David Lazar).
3319 This is based on Haddock's own lexer/parser.
3321 * New module `Text.Pandoc.Writers.Custom`.
3323 * In `Text.Pandoc.Shared`, `openURL` and `fetchItem` now return an
3324 Either, for better error handling.
3326 * Made `stringify` polymorphic in `Text.Pandoc.Shared`.
3328 * Removed `stripTags` from `Text.Pandoc.XML`.
3330 * `Text.Pandoc.Templates`:
3332 + Simplified `Template` type to a newtype.
3333 + Removed `Empty`.
3334 + Changed type of `renderTemplate`: it now takes a JSON context
3335 and a compiled template.
3336 + Export `compileTemplate`.
3337 + Export `renderTemplate'` that takes a string instead of a compiled
3338 template.
3339 + Export `varListToJSON`.
3341 * `Text.Pandoc.PDF` exports `makePDF` instead of `tex2pdf`.
3343 * `Text.Pandoc`:
3345 + Made `toJsonFilter` an alias for `toJSONFilter` from `Text.Pandoc.JSON`.
3346 + Removed `ToJsonFilter` typeclass. `ToJSONFilter` from
3347 `Text.Pandoc.JSON` should be used instead. (Compiling against
3348 pandoc-types instead of pandoc will also produce smaller executables.)
3349 * Removed the deprecated `jsonFilter` function.
3350 + Added `readJSON`, `writeJSON` to the API (#817).
3352 * `Text.Pandoc.Options`:
3354 + Added `Ext_lists_without_preceding_blankline`,
3355 `Ext_ascii_identifiers`, `Ext_ignore_line_breaks`,
3356 `Ext_yaml_metadataBlock` to `Extension`.
3357 + Changed `writerSourceDirectory` to `writerSourceURL` and changed the
3358 type to a `Maybe`. `writerSourceURL` is set to 'Just url' when the
3359 first command-line argument is an absolute URL. (So, relative links
3360 will be resolved in relation to the first page.) Otherwise, 'Nothing'.
3361 + All bibliography-related fields have been removed from
3362 `ReaderOptions` and `WriterOptions`: `writerBiblioFiles`,
3363 `readerReferences`, `readerCitationStyle`.
3365 * The `Text.Pandoc.Biblio` module has been removed. Users of the
3366 pandoc library who want citation support will need to use
3367 `Text.CSL.Pandoc` from `pandoc-citeproc`.
3370 [bug fixes]
3372 * In markdown, don't autolink a bare URI that is followed by `</a>`
3373 (#937).
3375 * `Text.Pandoc.Shared`
3377 + `openURL` now follows redirects (#701), properly handles `data:`
3378 URIs, and prints diagnostic output to stderr rather than stdout.
3379 + `readDefaultDataFile`: normalize the paths. This fixes bugs in
3380 `--self-contained` on pandoc compiled with `embed_data_files` (#833).
3381 + Fixed `readDefaultDataFile` so it works on Windows.
3382 + Better error messages for `readDefaultDataFile`. Instead of
3383 listing the last path tried, which can confuse people who are
3384 using `--self-contained`, so now we just list the data file name.
3385 + URL-escape pipe characters. Even though these are legal, `Network.URI`
3386 doesn't regard them as legal in URLs. So we escape them first (#535).
3388 * Mathjax in HTML slide shows: include explicit "Typeset" call.
3389 This seems to be needed for some formats (e.g. slideous) and won't
3390 hurt in others (#966).
3392 * `Text.Pandoc.PDF`
3394 + On Windows, create temdir in working directory, since the system
3395 temp directory path may contain tildes, which can cause
3396 problems in LaTeX (#777).
3397 + Put temporary output directory in `TEXINPUTS` (see #917).
3398 + `makePDF` tries to download images that are not found locally,
3399 if the first argument is a URL (#917).
3400 + If compiling with `pdflatex` yields an encoding error, offer
3401 the suggestion to use `--latex-engine=xelatex`.
3403 * Produce automatic header identifiers in parsing textile, RST,
3404 and LaTeX, unless `auto_identifiers` extension is disabled (#967).
3406 * `Text.Pandoc.SelfContained`: Strip off fragment, query of relative URL
3407 before treating as a filename. This fixes `--self-contained` when used
3408 with CSS files that include web fonts using the method described here:
3409 <http://paulirish.com/2009/bulletproof-font-face-implementation-syntax/>
3410 (#739). Handle `src` in `embed`, `audio`, `source`, `input` tags.
3412 * `Text.Pandoc.Parsing`: `uri` parser no longer treats punctuation before
3413 percent-encoding, or a `+` character, as final punctuation.
3415 * `Text.Pandoc.ImageSize`: Handle EPS (#903). This change will make
3416 EPS images properly sized on conversion to Word.
3418 * Slidy: Use slidy.js rather than slidy.js.gz.
3419 Reason: some browsers have trouble with the gzipped js file,
3420 at least on the local file system (#795).
3422 * Markdown reader
3424 + Properly handle blank line at beginning of input (#882).
3425 + Fixed bug in unmatched reference links. The input
3426 `[*infile*] [*outfile*]` was getting improperly parsed:
3427 "infile" was emphasized, but "*outfile*" was literal (#883).
3428 + Allow internal `+` in citation identifiers (#856).
3429 + Allow `.` or `)` after `#` in ATX headers if no `fancy_lists`.
3430 + Do not generate blank title, author, or date metadata elements.
3431 Leave these out entirely if they aren't present.
3432 + Allow backtick code blocks not to be preceded by blank line (#975).
3434 * Textile reader:
3436 + Correctly handle entities.
3437 + Improved handling of `<pre>` blocks (#927). Remove internal HTML tags
3438 in code blocks, rather than printing them verbatim. Parse attributes
3439 on `<pre>` tag for code blocks.
3441 * HTML reader: Handle non-simple tables (#893). Column widths are read from
3442 `col` tags if present, otherwise divided equally.
3444 * LaTeX reader
3446 + Support alltt environment (#892).
3447 + Support `\textasciitilde`, `\textasciicircum` (#810).
3448 + Treat `\textsl` as emphasized text reader (#850).
3449 + Skip positional options after `\begin{figure}`.
3450 + Support `\v{}` for hacek (#926).
3451 + Don't add spurious ", " to citation suffixes.
3452 This is added when needed in pandoc-citeproc.
3453 + Allow spaces in alignment spec in tables, e.g. `{ l r c }`.
3454 + Improved support for accented characters (thanks to Scott Morrison).
3455 + Parse label after section command and set id (#951).
3457 * RST reader:
3459 + Don't insert paragraphs where docutils doesn't.
3460 `rst2html` doesn't add `<p>` tags to list items (even when they are
3461 separated by blank lines) unless there are multiple paragraphs in the
3462 list. This commit changes the RST reader to conform more closely to
3463 what docutils does (#880).
3464 + Improved metadata. Treat initial field list as metadata when
3465 standalone specified. Previously ALL fields "title", "author",
3466 "date" in field lists were treated as metadata, even if not at
3467 the beginning. Use `subtitle` metadata field for subtitle.
3468 + Fixed 'authors' metadata parsing in reST. Semicolons separate
3469 different authors.
3471 * MediaWiki reader
3473 + Allow space before table rows.
3474 + Fixed regression for `<ref>URL</ref>`.
3475 `<` is no longer allowed in URLs, according to the uri parser
3476 in `Text.Pandoc.Parsing`. Added a test case.
3477 + Correctly handle indented preformatted text without preceding
3478 or following blank line.
3479 + Fixed `|` links inside table cells. Improved attribute parsing.
3480 + Skip attributes on table rows. Previously we just crashed if
3481 rows had attributes, now we ignore them.
3482 + Ignore attributes on headers.
3483 + Allow `Image:` for images (#971).
3484 + Parse an image with caption in a paragraph by itself as a figure.
3486 * LaTeX writer
3488 + Don't use ligatures in escaping inline code.
3489 + Fixed footnote numbers in LaTeX/PDF tables. This fixes a bug
3490 wherein notes were numbered incorrectly in tables (#827).
3491 + Always create labels for sections. Previously the labels were only
3492 created when there were links to the section in the document (#871).
3493 + Stop escaping `|` in LaTeX math.
3494 This caused problems with array environments (#891).
3495 + Change `\` to `/` in paths. `/` works even on Windows in LaTeX.
3496 `\` will cause major problems if unescaped.
3497 + Write id for code block to label attribute in LaTeX when listings
3498 is used (thanks to Florian Eitel).
3499 + Scale LaTeX tables so they don't exceed columnwidth.
3500 + Avoid problem with footnotes in unnumbered headers (#940).
3502 * Beamer writer: when creating beamer slides, add `allowframebreaks` option
3503 to the slide if it is one of the header classes. It is recommended
3504 that your bibliography slide have this attribute:
3506 # References {.allowframebreaks}
3508 This causes multiple slides to be created if necessary, depending
3509 on the length of the bibliography.
3511 * ConTeXt writer: Properly handle tables without captions. The old output
3512 only worked in MkII. This should work in MkIV as well (#837).
3514 * MediaWiki writer: Use native mediawiki tables instead of HTML (#720).
3516 * HTML writer:
3518 + Fixed `--no-highlight` (Alexander Kondratskiy).
3519 + Don't convert to lowercase in email obfuscation (#839).
3520 + Ensure proper escaping in `<title>` and `<meta>` fields.
3522 * AsciiDoc writer:
3524 + Support `--atx-headers` (Max Rydahl Andersen).
3525 + Don't print empty identifier blocks `([[]])` on headers (Max
3526 Rydahl Andersen).
3528 * ODT writer:
3530 + Fixing wrong numbered-list indentation in open document format
3531 (Alexander Kondratskiy) (#369).
3532 + `reference.odt`: Added pandoc as "generator" in `meta.xml`.
3533 + Minor changes for ODF 1.2 conformance (#939). We leave the
3534 nonconforming `contextual-spacing` attribute, which is provided by
3535 LibreOffice itself and seems well supported.
3537 * Docx writer:
3539 + Fixed rendering of display math in lists.
3540 In 1.11 and 1.11.1, display math in lists rendered as a new list
3541 item. Now it always appears centered, just as outside of lists,
3542 and in proper display math style, no matter how far indented the
3543 containing list item is (#784).
3544 + Use `w:br` with `w:type` `textWrapping` for linebreaks.
3545 Previously we used `w:cr` (#873).
3546 + Use Compact style for Plain block elements, to
3547 differentiate between tight and loose lists (#775).
3548 + Ignore most components of `reference.docx`.
3549 We take the `word/styles.xml`, `docProps/app.xml`,
3550 `word/theme/theme1.xml`, and `word/fontTable.xml` from
3551 `reference.docx`, ignoring everything else. This should help
3552 with the corruption problems caused when different versions of
3553 Word resave the reference.docx and reorganize things.
3554 + Made `--no-highlight` work properly.
3556 * EPUB writer
3558 + Don't add `dc:creator` tags if present in EPUB metadata.
3559 + Add `id="toc-title"` to `h1` in `nav.xhtml` (#799).
3560 + Don't put blank title page in reading sequence.
3561 Set `linear="no"` if no title block. Addresses #797.
3562 + Download webtex images and include as data URLs.
3563 This allows you to use `--webtex` in creating EPUBs.
3564 Math with `--webtex` is automatically made self-contained.
3565 + In `data/epub.css`, removed highlighting styles (which
3566 are no longer needed, since styles are added by the HTML
3567 writer according to `--highlighting-style`). Simplified
3568 margin fields.
3569 + If resource not found, skip it, as in Docx writer (#916).
3571 * RTF writer:
3573 + Properly handle characters above the 0000-FFFF range.
3574 Uses surrogate pairs. Thanks to Hiromi Ishii for the patch.
3575 + Fixed regression with RTF table of contents.
3576 + Only autolink absolute URIs. This fixes a regression, #830.
3578 * Markdown writer:
3580 + Only autolink absolute URIs. This fixes a regression, #830.
3581 + Don't wrap attributes in fenced code blocks.
3582 + Write full metadata in MMD style title blocks.
3583 + Put multiple authors on separate lines in pandoc titleblock.
3584 Also, don't wrap long author entries, as new lines get treated
3585 as new authors.
3587 * `Text.Pandoc.Templates`:
3589 + Fixed bug retrieving default template for markdown variants.
3590 + Templates can now contain "record lookups" in variables;
3591 for example, `author.institution` will retrieve the `institution`
3592 field of the `author` variable.
3593 + More consistent behavior of `$for$`. When `foo` is not a list,
3594 `$for(foo)$...$endfor$` should behave like $if(foo)$...$endif$.
3595 So if `foo` resolves to "", no output should be produced.
3596 See pandoc-templates#39.
3598 * Citation processing improvements (now part of pandoc-citeproc):
3600 + Fixed `endWithPunct` The new version correctly sees a sentence
3601 ending in '.)' as ending with punctuation. This fixes a bug which
3602 led such sentences to receive an extra period at the end: '.).'.
3603 Thanks to Steve Petersen for reporting.
3604 + Don't interfere with Notes that aren't citation notes.
3605 This fixes a bug in which notes not generated from citations were
3606 being altered (e.g. first letter capitalized) (#898).
3607 + Only capitalize footnote citations when they have a prefix.
3608 + Changes in suffix parsing. A suffix beginning with a digit gets 'p'
3609 inserted before it before passing to citeproc-hs, so that bare numbers
3610 are treated as page numbers by default. A suffix not beginning with
3611 punctuation has a space added at the beginning (rather than a comma and
3612 space, as was done before for not-author-in-text citations).
3613 The result is that `\citep[23]{item1}` in LaTeX will be interpreted
3614 properly, with '23' treated as a locator of type 'page'.
3615 + Many improvements to citation rendering, due to fixes in citeproc-hs
3616 (thanks to Andrea Rossato).
3617 + Warnings are issued for undefined citations, which are rendered
3618 as `???`.
3619 + Fixed hanging behavior when locale files cannot be found.
3621 [template changes]
3623 * DocBook: Use DocBook 4.5 doctype.
3625 * Org: '#+TITLE:' is inserted before the title.
3626 Previously the writer did this.
3628 * LaTeX: Changes to make mathfont work with xelatex.
3629 We need the mathspec library, not just fontspec, for this.
3630 We also need to set options for setmathfont (#734).
3632 * LaTeX: Use `tex-ansi` mapping for `monofont`.
3633 This ensures that straight quotes appear as straight, rather than
3634 being treated as curly. See #889.
3636 * Made `\includegraphics` more flexible in LaTeX template.
3637 Now it can be used with options, if needed. Thanks to Bernhard Weichel.
3639 * LaTeX/Beamer: Added `classoption` variable.
3640 This is intended for class options like `oneside`; it may
3641 be repeated with different options. (Thanks to Oliver Matthews.)
3643 * Beamer: Added `fonttheme` variable. (Thanks to Luis Osa.)
3645 * LaTeX: Added `biblio-style` variable (#920).
3647 * DZSlides: title attribute on title section.
3649 * HTML5: add meta tag to allow scaling by user (Erik Evenson)
3651 [under-the-hood improvements]
3653 * Markdown reader:Improved strong/emph parsing, using the strategy of
3654 <https://github.com/jgm/Markdown>. The new parsing algorithm requires
3655 no backtracking, and no keeping track of nesting levels. It will give
3656 different results in some edge cases, but these should not affect normal
3657 uses.
3659 * Added `Text.Pandoc.Compat.Monoid`.
3660 This allows pandoc to compile with `base` < 4.5, where `Data.Monoid`
3661 doesn't export `<>`. Thanks to Dirk Ullirch for the patch.
3663 * Added `Text.Pandoc.Compat.TagSoupEntity`.
3664 This allows pandoc to compile with `tagsoup` 0.13.x.
3665 Thanks to Dirk Ullrich for the patch.
3667 * Most of `Text.Pandoc.Readers.TeXMath` has been moved to the
3668 `texmath` module (0.6.4). (This allows `pandoc-citeproc` to
3669 handle simple math in bibliography fields.)
3671 * Added `Text.Pandoc.Writers.Shared` for shared functions used
3672 only in writers. `metaToJSON` is used in writers to create a
3673 JSON object for use in the templates from the pandoc metadata
3674 and variables. `getField`, `setField`, and `defField` are
3675 for working with JSON template contexts.
3677 * Added `Text.Pandoc.Asciify` utility module.
3678 This exports functions to create ASCII-only versions of identifiers.
3680 * `Text.Pandoc.Parsing`
3682 + Generalized state type on `readWith` (API change).
3683 + Specialize readWith to `String` input. (API change).
3684 + In `ParserState`, replace `stateTitle`, `stateAuthors`, `stateDate`
3685 with `stateMeta` and `stateMeta'`.
3687 * `Text.Pandoc.UTF8`: use strict bytestrings in reading. The use of lazy
3688 bytestrings seemed to cause problems using pandoc on 64-bit Windows
3689 7/8 (#874).
3691 * Factored out `registerHeader` from markdown reader, added to
3692 `Text.Pandoc.Parsing`.
3694 * Removed `blaze_html_0_5` flag, require `blaze-html` >= 0.5.
3695 Reason: < 0.5 does not provide a monoid instance for Attribute,
3696 which is now needed by the HTML writer (#803).
3698 * Added `http-conduit` flag, which allows fetching https resources.
3699 It also brings in a large number of dependencies (`http-conduit`
3700 and its dependencies), which is why for now it is an optional flag
3701 (#820).
3703 * Added CONTRIBUTING.md.
3705 * Improved INSTALL instructions.
3707 * `make-windows-installer.bat`: Removed explicit paths for executables.
3709 * `aeson` is now used instead of `json` for JSON.
3711 * Set default stack size to 16M. This is needed for some large
3712 conversions, esp. if pandoc is compiled with 64-bit ghc.
3714 * Various small documentation improvements.
3715 Thanks to achalddave and drothlis for patches.
3717 * Removed comment that chokes recent versions of CPP (#933).
3719 * Removed support for GHC version < 7.2, since pandoc-types now
3720 requires at least GHC 7.2 for GHC generics.
3723pandoc (1.11.1)
3725 * Markdown reader:
3727 + Fixed regression in which parentheses were lost in link URLs.
3728 Added tests. Closes #786.
3729 + Better handling of unmatched double quotes in `--smart` mode.
3730 These occur frequently in fiction, since it is customary not to
3731 close quotes in dialogue if the speaker does not change between
3732 paragraphs. The unmatched quotes now get turned into literal
3733 left double quotes. (No `Quoted` inline is generated, however.)
3734 Closes #99 (again).
3736 * HTML writer: Fixed numbering mismatch between TOC and sections.
3737 `--number-offset` now affects TOC numbering as well
3738 as section numbering, as it should have all along. Closes #789.
3740 * Markdown writer: Reverted 1.11 change that caused citations to be rendered
3741 as markdown citations, even if `--bibliography` was specified, unless
3742 `citation` extension is disabled. Now, formatted citations are always
3743 printed if `--bibliography` was specified. If you want to reformat
3744 markdown keeping pandoc markdown citations intact, don't use
3745 `--bibliography`. Note that citations parsed from LaTeX documents will
3746 be rendered as pandoc markdown citations when `--bibliography` is not
3747 specified.
3749 * ODT writer: Fixed regression leading to corrupt ODTs.
3750 This was due to a change in the `Show` instance for
3751 `Text.Pandoc.Pretty.Doc`. Closes #780.
3753 * Fixed spacing bugs involving code block attributes in
3754 RST reader and Markdown writer. Closes #763.
3756 * Windows package: Various improvements due to Fyodor Sheremetyev.
3758 + Automatically set installation path (Program Files or Local App Data).
3759 + Set system PATH environment variable when installing for all users.
3760 + Pandoc can installed for all users using the following command.
3761 `msiexec /i pandoc-1.11.msi ALLUSERS=1`.
3763 * Bumped QuickCheck version bound.
3765pandoc (1.11)
3767 * Added `--number-offset` option. (See README for description.)
3769 * Added `--default-image-extension` option. (See README for description.)
3771 * `--number-sections` behavior change: headers with class `unnumbered`
3772 will not be numbered.
3774 * `--version` now reports the default data directory.
3776 * `Text.Pandoc.Parsing` is no longer exposed. (API change.)
3778 * `Text.Pandoc.Highlighting` is no longer exposed. (API change.)
3780 * `Text.Pandoc.Shared`: Changed type of `Element`. `Sec` now includes
3781 a field for `Attr` rather than just `String`. (API change.)
3783 * Added `markdown_github` as input format. This was an accidental
3784 omission in 1.10.
3786 * Added `readerDefaultImageExtension` field to `ReaderOptions`. (API
3787 change.)
3789 * Added `writerNumberOffset` field in `WriterOptions`. (API change.)
3791 * Beamer template:
3793 + Fixed captions with longtable. Thanks to Joost Kremers.
3794 + Provide `\Oldincludegraphics` as in LaTeX template (Benjamin Bannier).
3796 * LaTeX template:
3798 + Load microtype after fonts. Microtype needs to know
3799 what fonts are being used. Thanks to dfc for the patch.
3800 + Set `secnumdepth` to 5 if `--number-sections` specified.
3801 This yields behavior equivalent to the other writers, numbering
3802 level 4 and 5 headers too. Closes #753.
3804 * HTML reader:
3806 + Handle `<colgroup>` tag.
3807 + Preserve all header attributes.
3809 * LaTeX reader:
3811 + Parse `\hrule` as `HorizontalRule`. Closes #746.
3812 + Parse starred variants of `\section` etc. as headers with
3813 attribute `unnumbered`.
3814 + Read optional attributes in `lstlisting` and `Verbatim` environments.
3815 We convert these to pandoc standard names, e.g. `numberLines`
3816 for `numbers=left`, `startFrom=100` from `firstnumber=100`.
3817 + Handle language attribute for lstlistings.
3818 + Better support for Verbatim and minted environments. Closes #763.
3820 * Markdown reader:
3822 + `-` in an attribute context = `.unnumbered`. The point of this
3823 is to provide a way to specify unnumbered headers in non-English
3824 documents.
3825 + Fixed bug parsing key/value attributes. Parsing failed if you
3826 had an unquoted attribute immediately before the final '}'.
3827 + Make backslash escape work in attributes.
3828 + Fix title block parsing. Now if `mmd_title_blocks` is specified,
3829 pandoc will parse a MMD title block if it sees one, even if
3830 `pandoc_title_blocks` is enabled.
3831 + Refactoring: `litChar` now includes entities, so we don't need
3832 to use `fromEntities` e.g. on titles.
3833 + Allow spaces around borders in pipe tables. Closes #772.
3834 + Allow all punctuation in angle-bracket autolinks. Previously
3835 things like `----` were disallowed, because the uri parser
3836 treated them as trailing punctuation. Closes #768.
3837 + Make `implicit_header_references` work properly when
3838 headers are given explicit identifiers.
3839 + Check for tables before line blocks. Otherwise some pipe
3840 tables get treated as line blocks.
3841 + Allow `&` in emails (for entities).
3842 + Properly handle entities in titles and links. A markdown link
3843 `<http://g&ouml;ogle.com>` should be a link to `http://göogle.com`.
3844 Closes #723.
3846 * Textile reader:
3848 + Handle attributes on headers.
3850 * LaTeX reader:
3852 + Add `fig:` as title for images with captions.
3853 This is needed for them to be rendered as figures. Closes #766.
3854 + Never emit an empty paragraph. See #761.
3855 + Handle `\caption` for images in figures. Closes #766.
3856 + Parse `\section*`, etc. as unnumbered sections.
3858 * HTML writer:
3860 + Support header attributes. The attributes go on
3861 the enclosing `section` or `div` tag if `--section-divs` is specified.
3862 + Fixed a regression (only now noticed) in html+lhs output.
3863 Previously the bird tracks were being omitted.
3865 * LaTeX writer:
3867 + Omit lists with no items to avoid LaTeX errors.
3868 + Support line numbering with `--listings`.
3869 If `numberLines` class is present, we add `numbers=left`;
3870 if `startFrom` is present, we add `firstnumber=`. (#763)
3872 * ConTeXt writer:
3874 + Removed `\placecontent`. This produced a duplicate toc,
3875 in conjunction with `\placelist`.
3876 + Use `\title`, `\subject` etc. for headers with
3877 `unnumbered` class.
3879 * Textile writer:
3881 + Support header attributes.
3883 * Markdown writer:
3885 + Use grid tables when needed, and if enabled. Closes #740.
3886 + Render citations as pandoc-markdown citations.
3887 Previously citations were rendered as citeproc-formatted citations
3888 by default. Now we render them as pandoc citations, e.g. `[@item1]`,
3889 unless the `citations` extension is disabled.
3890 If you still want formatted citations in your markdown output,
3891 use `pandoc -t markdown-citations`.
3893 * RST writer:
3895 + Support `:number-lines:` in code blocks.
3897 * Docx writer:
3899 + Better treatment of display math. Display math inside a
3900 paragraph is now put in a separate paragraph, so it will render
3901 properly (centered and without extra blank lines around it).
3902 Partially addresses #742.
3903 + Content types and document rels xml files are now created from
3904 scratch, rather than being taken over from `reference.docx`.
3905 This fixes problems that arise when you edit the `reference.docx`
3906 with Word.
3907 + We also now encode mime types for each individual image rather
3908 than using defaults. This should allow us to handle a wider
3909 range of image types (including PDF). Closes #414.
3910 + Changed style names in `reference docx`.
3911 `FootnoteReference` -> `FootnoteRef`, `Hyperlink` -> `Link`.
3912 The old names got changed by Word when the `reference.docx` was
3913 edited. Closes #414.
3915 * EPUB writer:
3917 + Fix section numbering. Previously the numbering restarted from 1
3918 in each chapter (with `--number-sections`), though the numbers in
3919 the table of contents were correct.
3920 + Headers with "unnumbered" attribute are not numbered. (Nor do they
3921 cause an increment in running numbering.) Section numbers now work
3922 properly, even when there is material before the first numbered section.
3923 + Include HTML TOC, even in epub2. The TOC is included in `<spine>`,
3924 but `linear` is set to `no` unless the `--toc` option is specified.
3925 Include `<guide>` element in OPF. This should allow the TOC to
3926 be useable in Kindles when converted with kindlegen. Closes #773.
3928 * `Text.Pandoc.Parsing`: Optimized `oneOfStringsCI`.
3929 This dramatically reduces the speed penalty that comes from enabling the
3930 `autolink_bare_uris` extension. The penalty is still substantial (in one
3931 test, from 0.33s to 0.44s), but nowhere near what it used to be.
3932 The RST reader is also much faster now, as it autodetects URIs.
3934 * `Text.Pandoc.Shared`: `hierarchicalize` will not number section
3935 with class "unnumbered". Unnumbered sections get `[]` for their
3936 section number.
3938 * `Text.Pandoc.Pretty`:
3940 + Fixed `chomp` so it works inside `Prefixed` elements.
3941 + Changed `Show` instance so it is better for debugging.
3943 * `Text.Pandoc.ImageSize`: Added `Pdf` to `ImageType`.
3945 * `Text.Pandoc.UTF8`: Strip off BOM if present. Closes #743.
3947 * Windows installer improvements:
3949 + The installer is now signed with a certificate (thanks to
3950 Fyodor Sheremetyev).
3951 + WiX is used instead of InnoSetup. The installer is now a
3952 standard msi file.
3953 + The version number is now auto-detected, and need not be
3954 updated separately.
3956 * OSX installer improvements:
3958 + The package and pandoc executable are now signed with a
3959 certificate (thanks to Fyodor Sheremetyev).
3960 + RTF version of license is used.
3961 + Use full path for sysctl in `InstallationCheck` script (jonahbull).
3962 Closes #580.
3964 * Converted COPYING to markdown.
3966 * pandoc.cabal: Require latest versions of highlighting-kate,
3967 texmath, citeproc-hs, zip-archive.
3969pandoc (1.10.1)
3971 * Markdown reader: various optimizations, leading to a
3972 significant performance boost.
3974 * RST reader: Allow anonymous form of inline links:
3975 `` `hello <url>`__ `` Closes #724.
3977 * Mediawiki reader: Don't require newlines after tables.
3978 Thanks to jrunningen for the patch. Closes #733.
3980 * Fixed LaTeX macro parsing. Now LaTeX macro definitions are preserved
3981 when output is LaTeX, and applied when it is another format.
3982 Partially addresses #730.
3984 * Markdown and RST readers: Added parser to `block` that skips blank
3985 lines. This fixes a subtle regression involving grid tables with
3986 empty cells. Also added test for grid table with empty cells.
3987 Closes #732.
3989 * RST writer: Use `.. code:: language` for code blocks with language.
3990 Closes #721.
3992 * DocBook writer: Fixed output for hard line breaks, adding a newline
3993 between `<literallayout>` tags.
3995 * Markdown writer: Use an autolink when link text matches url.
3996 Previously we also checked for a null title, but this
3997 test fails for links produced by citeproc-hs in bibliographies.
3998 So, if the link has a title, it will be lost on conversion
3999 to an autolink, but that seems okay.
4001 * Markdown writer: Set title, author, date variables as before.
4002 These are no longer used in the default template, since we use
4003 titleblock, but we set them anyway for those who use custom templates.
4005 * LaTeX writer: Avoid extra space at start/end of table cell.
4006 Thanks to Nick Bart for the suggestion of using @{}.
4008 * `Text.Pandoc.Parsing`:
4010 + More efficient version of `anyLine`.
4011 + Type of `macro` has changed; the parser now returns `Blocks`
4012 instead of `Block`.
4014 * Relaxed old-time version bound, allowing 1.0.*.
4016 * Removed obsolete `hsmarkdown` script. Those who need `hsmarkdown`
4017 should create a symlink as described in the README.
4019pandoc (1.10.0.5)
4021 * Markdown reader: Try `lhsCodeBlock` before `rawTeXBlock`. Otherwise
4022 `\begin{code}...\end{code}` isn't handled properly in markdown+lhs.
4023 Thanks to Daniel Miot for noticing the bug and suggesting the fix.
4025 * Markdown reader: Fixed bug with headerless grid tables.
4026 The 1.10 code assumed that each table header cell contains exactly one
4027 block. That failed for headerless tables (0) and also for tables with
4028 multiple blocks in a header cell. The code is fixed and tests provided.
4029 Thanks to Andrew Lee for pointing out the bug.
4031 * Markdown reader: Fixed regressions in fenced code blocks. Closes #722.
4033 + Tilde code fences can again take a bare language string
4034 (`~~~ haskell`), not just curly-bracketed attributes
4035 (`~~~ {.haskell}`).
4036 + Backtick code blocks can take the curly-bracketed attributes.
4037 + Backtick code blocks don't *require* a language.
4038 + Consolidated code for the two kinds of fenced code blocks.
4040 * LaTeX template: Use `\urlstyle{same}` to avoid monospace URLs.
4042 * Markdown writer: Use proportional font for email autolinks with
4043 obfuscation. Closes #714.
4045 * Corrected name of `blank_before_blockquote` in README. Closes #718.
4047 * `Text.Pandoc.Shared`: Fixed bug in `uri` parser.
4048 The bug prevented an autolink at the end of a string (e.g.
4049 at the end of a line block line) from counting as a link. Closes #711.
4051 * Use the `hsb2hs` preprocessor instead of TH for embed_data_files.
4052 This should work on Windows, unlike the TH solution with
4053 file-embed.
4055 * Eliminated use of TH in test suite.
4057 * Added `Text.Pandoc.Data` (non-exported) to hold the association
4058 list of embedded data files, if the `embed_data_files` flag is selected.
4059 This isolates the code that needs special treatment with file-embed or
4060 `hsb2hs`.
4062 * Changes to `make-windows-installer.bat`.
4064 + Exit batch file if any of the cabal-dev installs fail.
4065 + There's no longer any need to reinstall `highlighting-kate`.
4066 + Don't start with a `cabal update`; leave that to the user.
4067 + Force reinstall of pandoc.
4069 * Fixed EPUB writer so it builds with blaze-html 0.4.x. Thanks to
4070 Jens Petersen.
4072pandoc (1.10.0.4)
4074 * Fixed bug with escaped % in LaTeX reader. Closes #710.
4076pandoc (1.10.0.3)
4078 * Added further missing fb2 tests to cabal file.
4080pandoc (1.10.0.2)
4082 * Added fb2 tests to cabal file's extra-source-files.
4084pandoc (1.10.0.1)
4086 * Bump version bounds on test-framework packages.
4088pandoc (1.10)
4090 [new features]
4092 * New input formats: `mediawiki` (MediaWiki markup).
4094 * New output formats: `epub3` (EPUB v3 with MathML),
4095 `fb2` (FictionBook2 ebooks).
4097 * New `--toc-depth` option, specifying how many levels of
4098 headers to include in a table of contents.
4100 * New `--epub-chapter-level` option, specifying the header
4101 level at which to divide EPUBs into separate files.
4102 Note that this normally affects only performance, not the
4103 visual presentation of the EPUB in a reader.
4105 * Removed the `--strict` option. Instead of using `--strict`,
4106 one can now use the format name `markdown_strict` for either input
4107 or output. This gives more fine-grained control that `--strict`
4108 did, allowing one to convert from pandoc's markdown to strict
4109 markdown or vice versa.
4111 * It is now possible to enable or disable specific syntax
4112 extensions by appending them (with `+` or `-`) to the writer
4113 or reader name. For example,
4115 pandoc -f markdown-footnotes+hard_line_breaks
4117 disables footnotes and enables treating newlines as hard
4118 line breaks. The literate Haskell extensions are now implemented
4119 this way as well, using either `+lhs` or `+literate_haskell`.
4120 For a list of extension names, see the README under
4121 "Pandoc's Markdown."
4123 * The following aliases have been introduced for specific
4124 combinations of markdown extensions: `markdown_phpextra`,
4125 `markdown_github`, `markdown_mmd`, `markdown_strict`. These aliases
4126 work just like regular reader and writer names, and can be modified
4127 with extension modifiers as described above. (Note that conversion
4128 from one markdown dialect to another does not work perfectly,
4129 because there are differences in markdown parsers besides
4130 just the extensions, and because pandoc's internal document model is
4131 not rich enough to capture all of the extensions.)
4133 * New `--html-q-tags` option. The previous default was to use `<q>`
4134 tags for smart quotes in HTML5. But `<q>` tags are also valid HTML4.
4135 Moreover, they are not a robust way of typesetting quotes, since
4136 some user agents don't support them, and some CSS resets (e.g.
4137 bootstrap) prevent pandoc's quotes CSS from working properly.
4138 We now just insert literal quote characters by default in both
4139 `html` and `html5` output, but this option is provided for
4140 those who still want `<q>` tags.
4142 * The markdown reader now prints warnings (to stderr) about
4143 duplicate link and note references. Closes #375.
4145 * Markdown syntax extensions:
4147 + Added pipe tables. Thanks to François Gannaz for the initial patch.
4148 These conform to PHP Markdown Extra's pipe table syntax. A subset
4149 of org-mode table syntax is also supported, which means that you can
4150 use org-mode's nice table editor to create tables.
4152 + Added support for RST-style line blocks. These are
4153 useful for verse and addresses.
4155 + Attributes can now be specified for headers, using the same
4156 syntax as in code blocks. (However, currently only the
4157 identifier has any effect in most writers.) For example,
4159 # My header {#foo}
4161 See [the header above](#foo).
4163 + Pandoc will now act as if link references have been defined
4164 for all headers without explicit identifiers.
4165 So, you can do this:
4167 # My header
4169 Link to [My header].
4170 Another link to [it][My header].
4172 Closes #691.
4174 * LaTeX reader:
4176 + Command macros now work everywhere, including non-math.
4177 Environment macros still not supported.
4178 + `\input` now works, as well as `\include`. TEXINPUTS is used.
4179 Pandoc looks recursively into included files for more included files.
4181 [behavior changes]
4183 * The Markdown reader no longer puts the text of autolinks in a
4184 `Code` inline. This means that autolinks will no longer appear
4185 in a monospace font.
4187 * The character `/` can now appear in markdown citation keys.
4189 * HTML blocks in strict_markdown are no longer required to begin
4190 at the left margin. Technically this is required, according to
4191 the markdown syntax document, but `Markdown.pl` and other markdown
4192 processors are more liberal.
4194 * The `-V` option has been changed so that if there are duplicate
4195 variables, those specified later on the command line take precedence.
4197 * Tight lists now work in LaTeX and ConTeXt output.
4199 * The LaTeX writer no longer relien on the `enumerate` package.
4200 Instead, it uses standard LaTeX commands to change the list numbering
4201 style.
4203 * The LaTeX writer now uses `longtable` instead of `ctable`. This allows
4204 tables to be split over page boundaries.
4206 * The RST writer now uses a line block to render paragraphs containing
4207 linebreaks (which previously weren't supported at all).
4209 * The markdown writer now applies the `--id-prefix` to footnote IDs.
4210 Closes #614.
4212 * The plain writer no longer uses backslash-escaped line breaks
4213 (which are not very "plain").
4215 * `Text.Pandoc.UTF8`: Better error message for invalid UTF8.
4216 Read bytestring and use `Text`'s decodeUtf8 instead of using
4217 `System.IO.hGetContents`. This way you get a message saying
4218 "invalid UTF-8 stream" instead of "invalid byte sequence."
4219 You are also told which byte caused the problem.
4221 * Docx, ODT, and EPUB writers now download images specified by a URL
4222 instead of skipping them or raising an error.
4224 * EPUB writer:
4226 + The default CSS now left-aligns headers by default, instead of
4227 centering. This is more consistent with the rest of the writers.
4228 + A proper multi-level table of contents is now used in `toc.ncx`.
4229 There is no longer a subsidiary table of contents at the beginning
4230 of each chapter.
4231 + Code highlighting now works by default.
4232 + Section divs are used by default for better semantic markup.
4233 + The title is used instead of "Title Page" in the table of contents.
4234 Otherwise we have a hard-coded English string, which looks
4235 strange in ebooks written in other languages. Closes #572.
4237 * HTML writer:
4239 + Put mathjax in span with class "math". Closes #562.
4240 + Put citations in a span with class "citation." In HTML5, also include
4241 a `data-cite` attribute with a space-separated list of citation
4242 keys.
4244 * `Text.Pandoc.UTF8`: use universalNewlineMode in reading.
4245 This treats both `\r\n` and `\n` as `\n` on input, no matter
4246 what platform we're running on.
4248 * Citation processing is now done in the Markdown and LaTeX
4249 readers, not in `pandoc.hs`. This makes it easier for library users
4250 to use citations.
4252 [template changes]
4254 * HTML: Added css to template to preserve spaces in `<code>` tags.
4255 Thanks to Dirk Laurie.
4257 * Beamer: Remove English-centric strings in section pages.
4258 Section pages used to have "Section" and a number as well as the
4259 section title. Now they just have the title. Similarly for part
4260 and subsection. Closes #566.
4262 * LaTeX, ConTeXt: Added papersize variable.
4264 * LaTeX, Beamer templates: Use longtable instead of ctable.
4266 * LaTeX, Beamer templates: Don't require 'float' package for tables.
4267 We don't actually seem to use the '[H]' option.
4269 * LaTeX: Use `upquote` package if it is available. This fixes
4270 straight quotes in verbatim environments.
4272 * Markdown, plain: Fixed titleblock so it is just a single string.
4273 Previously separate title, author, and date variables were used,
4274 but this didn't allow different kinds of title blocks.
4276 * EPUB:
4278 + Rationalized templates. Previously there were three different
4279 templates involved in epub production. There is now just one
4280 template, `default.epub` or `default.epub3`. It can now be
4281 overridden using `--template`, just like other templates.
4282 The titlepage is now folded into the default template.
4283 A `titlepage` variable selects it.
4284 + UTF-8, lang tag, meta tags, title element.
4286 * Added scale-to-width feature to beamer template
4288 [API changes]
4290 * `Text.Pandoc.Definition`: Added `Attr` field to `Header`.
4291 Previously header identifers were autogenerated by the writers.
4292 Now they are added in the readers (either automatically or explicitly).
4294 * `Text.Pandoc.Builder`:
4296 + `Inlines` and `Blocks` are now synonyms for `Many Inline` and
4297 `Many Block`. `Many` is a newtype wrapper around `Seq`, with
4298 custom Monoid instances for `Many Inline` and `Many Block. This
4299 allows `Many` to be made an instance of `Foldable` and `Traversable`.
4300 + The old `Listable` class has been removed.
4301 + The module now exports `isNull`, `toList`, `fromList`.
4302 + The old `Read` and `Show` instances have been removed; derived
4303 instances are now used.
4304 + Added `headerWith`.
4306 * The readers now take a `ReaderOptions` rather than a `ParserState`
4307 as a parameter. Indeed, not all parsers use the `ParserState` type;
4308 some have a custom state. The motivation for this change was to separate
4309 user-specifiable options from the accounting functions of parser state.
4311 * New module `Text.Pandoc.Options`. This includes the `WriterOptions`
4312 formerly in `Text.Pandoc.Shared`, and its associated
4313 data types. It also includes a new type `ReaderOptions`, which
4314 contains many options formerly in `ParserState`, and its associated
4315 data types:
4317 + `ParserState.stateParseRaw` -> `ReaderOptions.readerParseRaw`.
4318 + `ParserState.stateColumns` -> `ReaderOptions.readerColumns`.
4319 + `ParserState.stateTabStop` -> `ReaderOptions.readerTabStop`.
4320 + `ParserState.stateOldDashes` -> `ReaderOptions.readerOldDashes`.
4321 + `ParserState.stateLiterateHaskell` -> `ReaderOptions.readerLiterateHaskell`.
4322 + `ParserState.stateCitations` -> `ReaderOptions.readerReferences`.
4323 + `ParserState.stateApplyMacros` -> `ReaderOptions.readerApplyMacros`.
4324 + `ParserState.stateIndentedCodeClasses` ->
4325 `ReaderOptions.readerIndentedCodeClasses`.
4326 + Added `ReaderOptions.readerCitationStyle`.
4328 * `WriterOptions` now includes `writerEpubVersion`, `writerEpubChapterLevel`,
4329 `writerEpubStylesheet`, `writerEpubFonts`, `writerReferenceODT`,
4330 `writerReferenceDocx`, and `writerTOCDepth`. `writerEPUBMetadata` has
4331 been renamed `writerEpubMetadata` for consistency.
4333 * Changed signatures of `writeODT`, `writeDocx`, `writeEPUB`, since they no
4334 longer stylesheet, fonts, reference files as separate parameters.
4336 * Removed `writerLiterateHaskell` from `WriterOptions`, and
4337 `readerLiterateHaskell` from `ReaderOptions`. LHS is now handled
4338 by an extension (`Ext_literate_haskell`).
4340 * Removed deprecated `writerXeTeX`.
4342 * Removed `writerStrict` from `WriterOptions`. Added `writerExtensions`.
4343 Strict is now handled through extensions.
4345 * `Text.Pandoc.Options` exports `pandocExtensions`, `strictExtensions`,
4346 `phpMarkdownExtraExtensions`, `githubMarkdownExtensions`,
4347 and `multimarkdownExtensions`, as well as the `Extensions` type.
4349 * New `Text.Pandoc.Readers.MediaWiki` module, exporting
4350 `readMediaWiki`.
4352 * New `Text.Pandoc.Writers.FB2` module, exporting `writeFB2`
4353 (thanks to Sergey Astanin).
4355 * `Text.Pandoc`:
4357 + Added `getReader`, `getWriter` to `Text.Pandoc`.
4358 + `writers` is now an association list `(String, Writer)`.
4359 A `Writer` can be a `PureStringWriter`, an `IOStringWriter`, or
4360 an `IOByteStringWriter`. ALL writers are now in the 'writers'
4361 list, including the binary writers and FB2 writer. This allows
4362 code in `pandoc.hs` to be simplified.
4363 + Changed type of `readers`, so all readers are in IO.
4364 Users who want pure readers can still get them form the reader
4365 modules; this just affects the function `getReader` that looks up
4366 a reader based on the format name. The point of this change is to
4367 make it possible to print warnings from the parser.
4369 * `Text.Pandoc.Parsing`:
4371 + `Text.Parsec` now exports all Parsec functions used in pandoc code.
4372 No other module directly imports Parsec. This will make it easier
4373 to change the parsing backend in the future, if we want to.
4374 + `Text.Parsec` is used instead of `Text.ParserCombinators.Parsec`.
4375 + Export the type synonym `Parser`.
4376 + Export `widthsFromIndices`, `NoteTable'`, `KeyTable'`, `Key'`, `toKey'`,
4377 `withQuoteContext`, `singleQuoteStart`, `singleQuoteEnd`,
4378 `doubleQuoteStart`, `doubleQuoteEnd`, `ellipses`, `apostrophe`,
4379 `dash`, `nested`, `F(..)`, `askF`, `asksF`, `runF`, `lineBlockLines`.
4380 + `ParserState` is no longer an instance of `Show`.
4381 + Added `stateSubstitutions` and `stateWarnings` to `ParserState`.
4382 + Generalized type of `withQuoteContext`.
4383 + Added `guardEnabled`, `guardDisabled`, `getOption`.
4384 + Removed `failIfStrict`.
4385 + `lookupKeySrc` and `fromKey` are no longer exported.
4387 * `Data.Default` instances are now provided for `ReaderOptions`,
4388 `WriterOptions`, and `ParserState`. `Text.Pandoc` re-exports `def`.
4389 Now you can use `def` (which is re-exported by `Text.Pandoc`) instead
4390 of `defaultWriterOptions` (which is still defined). Closes #546.
4392 * `Text.Pandoc.Shared`:
4394 + Added `safeRead`.
4395 + Renamed `removedLeadingTrailingSpace` to `trim`,
4396 `removeLeadingSpace` to `triml`, and `removeTrailingSpace` to `trimr`.
4397 + Count `\r` as space in `trim` functions.
4398 + Moved `renderTags'` from HTML reader and `Text.Pandoc.SelfContained`
4399 to `Shared`.
4400 + Removed `failUnlessLHS`.
4401 + Export `compactify'`, formerly in Markdown reader.
4402 + Export `isTightList`.
4403 + Do not export `findDataFile`.
4404 + `readDataFile` now returns a strict ByteString.
4405 + Export `readDataFileUTF8` which returns a String, like the
4406 old `readDataFile`.
4407 + Export `fetchItem` and `openURL`.
4409 * `Text.Pandoc.ImageSize`: Use strict, not lazy bytestrings.
4410 Removed `readImageSize`.
4412 * `Text.Pandoc.UTF8`: Export `encodePath`, `decodePath`,
4413 `decodeArg`, `toString`, `fromString`, `toStringLazy`,
4414 `fromStringLazy`.
4416 * `Text.Pandoc.UTF8` is now an exposed module.
4418 * `Text.Pandoc.Biblio`:
4420 + csl parameter now a `String` rather than a `FilePath`.
4421 + Changed type of `processBiblio`. It is no longer in the IO monad.
4422 It now takes a `Maybe Style` argument rather than parameters for CSL
4423 and abbrev filenames. (`pandoc.hs` now calls the functions to parse
4424 the style file and add abbreviations.)
4426 * Markdown reader now exports `readMarkdownWithWarnings`.
4428 * `Text.Pandoc.RTF` now exports `writeRTFWithEmbeddedImages` instead of
4429 `rtfEmbedImage`.
4431 [bug fixes]
4433 * Make `--ascii` work properly with `--self-contained`. Closes #568.
4435 * Markdown reader:
4437 + Fixed link parser to avoid exponential slowdowns. Closes #620.
4438 Previously the parser would hang on input like this:
4440 [[[[[[[[[[[[[[[[[[hi
4442 We fixed this by making the link parser parser characters
4443 between balanced brackets (skipping brackets in inline code spans),
4444 then parsing the result as an inline list. One change is that
4446 [hi *there]* bud](/url)
4448 is now no longer parsed as a link. But in this respect pandoc behaved
4449 differently from most other implementations anyway, so that seems okay.
4451 + Look for raw html/latex blocks before tables.
4452 Otherwise the following gets parsed as a table:
4454 \begin{code}
4455 --------------
4456 -- My comment.
4457 \end{code}
4459 Closes #578.
4461 * RST reader:
4463 + Added support for `:target:` on `.. image::` blocks
4464 and substitutions.
4465 + Field list fixes:
4467 - Fixed field lists items with body beginning after a new line
4468 (Denis Laxalde).
4469 - Allow any char but ':' in names of field lists in RST reader
4470 (Denis Laxalde).
4471 - Don't allow line breaks in field names.
4472 - Require whitespace after field list field names.
4473 - Don't create empty definition list for metadata field lists.
4474 Previously a field list consisting only of metadata fields (author,
4475 title, date) would be parsed as an empty DefinitionList, which is
4476 not legal in LaTeX and not needed in any format.
4478 + Don't recognize inline-markup starts inside words.
4479 For example, `2*2 = 4*1` should not contain an emphasized
4480 section. Added test case for "Literal symbols". Closes #569.
4481 + Allow dashes as separator in simple tables. Closes #555.
4482 + Added support for `container`, `compound`, `epigraph`,
4483 `rubric`, `highlights`, `pull-quote`.
4484 + Added support for `.. code::`.
4485 + Made directive labels case-insensitive.
4486 + Removed requirement that directives begin at left margin.
4487 This was (correctly) not in earlier releases; docutils doesn't
4488 make the requirement.
4489 + Added support for `replace::` and `unicode::` substitutions.
4490 + Ignore unknown interpreted roles.
4491 + Renamed image parser to `subst`, since it now handles all
4492 substitution references.
4494 * Textile reader:
4496 + Allow newlines before pipes in table. Closes #654.
4497 + Fixed bug with list items containing line breaks.
4498 Now pandoc correctly handles hard line breaks inside list items.
4499 Previously they broke list parsing.
4500 + Implemented comment blocks.
4501 + Fixed bug affected words ending in hyphen.
4502 + Properly handle links with surrounding brackets.
4503 Square brackets need to be used when the link isn't surrounded by
4504 spaces or punctuation, or when the URL ending may be ambiguous.
4505 Closes #564.
4506 + Removed nullBlock. Better to know about parsing problems than
4507 to skip stuff when we get stuck.
4508 + Allow ID attributes on headers.
4509 + Textile reader: Avoid parsing dashes as strikeout.
4510 Previously the input
4512 text--
4513 text--
4514 text--
4515 text--
4517 would be parsed with strikeouts rather than dashes. This fixes
4518 the problem by requiring that a strikeout delimiting - not be
4519 followed by a -. Closes #631.
4520 + Expanded list of `stringBreakers`.
4521 This fixes a bug on input like "(_hello_)" which should
4522 be a parenthesized emphasized "hello".
4523 The new list is taken from the PHP source of textile 2.4.
4524 + Fixed autolinks. Previously the textile reader and writer
4525 incorrectly implented RST-style autolinks for URLs and email
4526 addresses. This has been fixed. Now an autolink is done this way:
4527 `"$":http://myurl.com`.
4528 + Fixed footnotes bug in textile. This affected notes occuring
4529 before punctuation, e.g. `foo[1].`. Closes #518.
4531 * LaTeX reader:
4533 + Better handling of citation commands.
4534 + Better handling of `\noindent`.
4535 + Added a 'try' in rawLaTeXBlock, so we can handle `\begin` without `{`.
4536 Closes #622.
4537 + Made `rawLaTeXInline` try to parse block commands as well. This
4538 is usually what we want, given how `rawLaTeXInline` is used in
4539 the markdown and textile readers. If a block-level LaTeX command
4540 is used in the middle of a paragraph (e.g. `\subtitle` inside a title),
4541 we can treat it as raw inline LaTeX.
4542 + Handle \slash command. Closes #605.
4543 + Basic `\enquote` support.
4544 + Fixed parsing of paragraphs beginning with a group. Closes #606.
4545 + Use curly quotes for bare straight quotes.
4546 + Support obeylines environment. Closes #604.
4547 + Guard against "begin", "end" in inlineCommand and
4548 blockCommand.
4549 + Better error messages for environments. Now it should tell you that
4550 it was looking for \end{env}, instead of giving "unknown parse error."
4552 * HTML reader:
4554 + Added HTML 5 tags to list of block-level tags.
4555 + HTML reader: Fixed bug in `htmlBalanced`, which
4556 caused hangs in parsing certain markdown input using
4557 strict mode.
4558 + Parse `<q>` as `Quoted DoubleQuote`.
4559 + Handle nested `<q>` tags properly.
4560 + Modified `htmlTag` for fewer false positives.
4561 A tag must start with `<` followed by `!`,`?`, `/`, or a letter.
4562 This makes it more useful in the wikimedia and markdown parsers.
4564 * DocBook reader: Support title in "figure" element. Closes #650.
4566 * MediaWiki writer:
4568 + Remove newline after `<br/>` in translation of `LineBreak`
4569 There's no particular need for a newline (other than making the
4570 generated MediaWiki source look nice to a human), and in fact
4571 sometimes it is incorrect: in particular, inside an enumeration, list
4572 items cannot have embedded newline characters. (Brent Yorgey)
4573 + Use `<code>` not `<tt>` for Code.
4575 * Man writer: Escape `-` as `\-`.
4576 Unescaped `-`'s become hyphens, while `\-`'s are left as ascii minus
4577 signs. That is preferable for use with command-line options. See
4578 <http://lintian.debian.org/tags/hyphen-used-as-minus-sign.html>. Thanks
4579 to Andrea Bolognani for bringing the issue to our attention.
4581 * RST writer:
4583 + Improved line block output. Use nonbreaking spaces for
4584 initial indent (otherwise lost in HTML and LaTeX).
4585 Allow multiple paragraphs in a single line block.
4586 Allow soft breaks w continuations in line blocks.
4587 + Properly handle images with no alt text. Closes #678.
4588 + Fixed bug with links with duplicate text. We now (a) use anonymous
4589 links for links with inline URLs, and (b) use an inline link instead
4590 of a reference link if the reference link would require a label that
4591 has already been used for a different link. Closes #511.
4592 + Fixed hyperlinked images. Closes #611. Use `:target:`
4593 field when you have a simple linked image.
4594 + Don't add `:align: center` to figures.
4596 * Texinfo writer: Fixed internal cross-references.
4597 Now we insert anchors after each header, and use `@ref` instead of `@uref`
4598 for links. Commas are now escaped as `@comma{}` only when needed;
4599 previously all commas were escaped. (This change is needed, in part,
4600 because `@ref` commands must be followed by a real comma or period.) Also
4601 insert a blank line in from of `@verbatim` environments.
4603 * DocBook writer:
4605 + Made --id-prefix work in DocBook as well as HTML.
4606 Closes #607.
4607 + Don't include empty captions in figures. Closes #581.
4609 * LaTeX writer:
4611 + Use `\hspace*` for nonbreaking space after line break,
4612 since `~` spaces after a line break are just ignored.
4613 Closes #687.
4614 + Don't escape `_` in URLs or hyperref identifiers.
4615 + Properly escape strings inside \url{}. Closes #576.
4616 + Use `[fragile]` only for slides containing code rendered
4617 using listings. Closes #649.
4618 + Escape `|` as `\vert` in LaTeX math. This avoids a clash with
4619 highlighting-kate's macros, which redefine `|` as a short verbatim
4620 delimiter. Thanks to Björn Peemöller for raising this issue.
4621 + Use minipage rather than parbox for block containers in tables.
4622 This allows verbatim code to be included in grid tables.
4623 Closes #663.
4624 + Prevent paragraphs containing only linebreaks or spaces.
4626 * HTML writer:
4628 + Included `highlighting-css` for code spans, too.
4629 Previously it was only included if used in a code block. Closes #653.
4630 + Improved line breaks with `<dd>` tags. We now put a newline between
4631 `</dd>` and `<dd>` when there are multiple definitions.
4632 + Changed mathjax cdn url so it doesn't use https. (This caused
4633 problems when used with `--self-contained`.) See #609.
4635 * EPUB writer:
4637 + `--number-sections` now works properly.
4638 + Don't strip meta and link elements in epub metadata.
4639 Patch from aberrancy. Closes #589.
4640 + Fixed a couple validation bugs.
4641 + Use ch001, ch002, etc. for chapter filenames. This improves sorting
4642 of chapters in some readers, which apparently sort ch2 after ch10.
4643 Closes #610.
4645 * ODT writer: properly set title property (Arlo O'Keeffe).
4647 * Docx writer:
4649 + Fixed bug with nested lists. Previously a list like
4651 1. one
4652 - a
4653 - b
4654 2. two
4656 would come out with a bullet instead of "2."
4657 Thanks to Russell Allen for reporting the bug.
4658 + Use `w:cr` in `w:r` instead of `w:br` for linebreaks.
4659 This seems to fix a problem viewing pandoc-generated
4660 docx files in LibreOffice.
4661 + Use integer ids for bookmarks. Closes #626.
4662 + Added nsid to abstractNum elements. This helps when merging
4663 word documents with numbered or bulleted lists. Closes #627.
4664 + Use separate footnotes.xml for notes.
4665 This seems to help LibreOffice convert the file, even though
4666 it was valid docx before. Closes #637.
4667 + Use rIdNN identifiers for r:embed in images.
4668 + Avoid reading image files again when we've already processed them.
4669 + Fixed typo in `referenc.docx` that prevented image captions from
4670 working. Thanks to Huashan Chen.
4672 * `Text.Pandoc.Parsing`:
4674 + Fixed bug in `withRaw`, which didn't correctly handle the case
4675 where nothing is parsed.
4676 + Made `emailAddress` parser more correct. Now it is based on RFC 822,
4677 though it still doesn't implement quoted strings in email addresses.
4678 + Revised URI parser. It now allows many more schemes, allows
4679 uppercase URIs, and better handles trailing punctuation and
4680 trailing slashes in bare URIs. Added many tests.
4681 + Simplified and improved singleQuoteStart. This makes `'s'`, `'l'`,
4682 etc. parse properly. Formerly we had some English-centric heuristics,
4683 but they are no longer needed. Closes #698.
4685 * `Text.Pandoc.Pretty`: Added wide punctuation range to `charWidth`.
4686 This fixes bug with Chinese commas in markdown and reST tables, and
4687 a bug that caused combining characters to be dropped.
4689 * `Text.Pandoc.MIME`: Added MIME types for .wof and .eot. Closes #640.
4691 * `Text.Pandoc.Biblio`:
4693 + Run `mvPunc` and `deNote` on metadata too.
4694 This fixed a bug with notes on titles using footnote styles.
4695 + Fixed bug in fetching CSL files from CSL data directory.
4697 * `pandoc.hs`: Give correct value to `writerSourceDirectory` when a URL
4698 is provided. It should be the URL up to the path.
4700 * Fixed/simplified diff output for tests.
4701 Biblio: Make sure mvPunc and deNote run on metadata too.
4702 This fixed a bug with notes on titles using footnote styles.
4704 [under the hood improvements]
4706 * We no longer depend on `utf8-string`. Instead we use functions
4707 defined in `Text.Pandoc.UTF8` that use `Data.Text`'s conversions.
4709 * Use `safeRead` instead of using `reads` directly (various modules).
4711 * "Implicit figures" (images alone in a paragraph) are now handled
4712 differently. The markdown reader gives their titles the prefix `fig:`; the
4713 writers look for this before treating the image as a figure. Though this
4714 is a bit of a hack, it has two advantages: (i) implicit figures can be
4715 limited to the markdown reader, and (ii) they can be deactivated by turning
4716 off the `implicit_figures` extension.
4718 * `catch` from `Control.Exception` is now used instead of the
4719 old Preface `catch`.
4721 * `Text.Pandoc.Shared`: Improved algorithm for `normalizeSpaces`
4722 and `oneOfStrings` (which is now non-backtracking).
4724 * `Text.Pandoc.Biblio`: Remove workaround for `toCapital`.
4725 Now citeproc-hs is fixed upstream, so this is no longer needed.
4726 Closes #531.
4728 * Textile reader: Improved speed of `hyphenedWords`.
4729 This speeds up the textile reader by about a factor of 4.
4731 * Use `Text.Pandoc.Builder` in RST reader, for more flexibility,
4732 better performance, and automatic normalization.
4734 * Major rewrite of markdown reader:
4736 + Use `Text.Pandoc.Builder` instead of lists. This also
4737 means that everything is normalized automatically.
4738 + Move to a one-pass parsing strategy, returning values in the reader
4739 monad, which are then run (at the end of parsing) against the final
4740 parser state.
4742 * In HTML writer, we now use `toHtml` instead of pre-escaping.
4743 We work around the problem that blaze-html unnecessarily escapes `'`
4744 by pre-escaping just the `'` characters, instead of the whole string.
4745 If blaze-html later stops escaping `'` characters, we can simplify
4746 `strToHtml` to `toHtml`. Closes #629.
4748 * Moved code for embedding images in RTFs from `pandoc.hs` to the
4749 RTF writer (which now exports `writeRTFWithEmbeddedImages`).
4751 * Moved citation processing from `pandoc.hs` into the readers.
4752 This makes things more convenient for library users.
4754 * The man pages are now built by an executable `make-pandoc-man-pages`,
4755 which has its own stanza in the cabal file so that dependencies can be
4756 handled by Cabal. Special treatment in `Setup.hs` ensures that this
4757 executable never gets installed; it is only used to create the man pages.
4759 * The cabal file has been modified so that the pandoc library is used
4760 in building the pandoc executable. (This required moving `pandoc.hs`
4761 from `src` to `.`.) This cuts compile time in half.
4763 * `-O2` is no longer used in building pandoc. The performance improvement
4764 it yields is so slight that it is not worth it. (Measured with
4765 benchmarks on ghc 7.4.)
4767 * The `executable` and `library` flags have been removed.
4769 * `-threaded` has been removed from ghc-options.
4771 * Version bounds of dependencies have been raised, and the
4772 `blaze_html_0_5` flag now defaults to True. Pandoc now compiles on
4773 GHC 7.6.
4775 * We now require base >= 4.2.
4777 * Integrated the benchmark program into cabal. One can now do:
4779 cabal configure --enable-benchmarks && cabal build
4780 cabal bench --benchmark-option='markdown' --benchmark-option='-s 20'
4782 The benchmark now uses README + testsuite, so benchmark results
4783 from older versions aren't comparable.
4785 * Integrated test suite with cabal.
4786 To run tests, configure with `--enable-tests`, then `cabal test`.
4787 You can specify particular tests using `--test-options='-t markdown'`.
4788 No output is shown unless tests fail. The Haskell test modules
4789 have been moved from `src/` to `tests/`.
4791 * Moved all data files and templates to the `data/` subdirectory.
4793 * Added an `embed_data_files` cabal flag. This causes all
4794 data files to be embedded in the binary, so that the binary
4795 is self-sufficient and can be relocated anywhere, copied on
4796 a USB key, etc. The Windows installer now uses this.
4797 (Since we no longer have the option to build the executable
4798 without the library, this is the only way to get a relocatable
4799 binary on Windows.)
4801 * Removed pcre3.dll from windows package.
4802 It isn't needed unless highlighting-kate is compilled with the
4803 `pcre-light` flag. By default, regex-prce-builtin is used.
4806pandoc (1.9.4.2)
4808 * Don't encode/decode file paths if base >= 4.4.
4809 Prior to base 4.4, filepaths and command line arguments were treated
4810 as unencoded lists of bytes, not unicode strings, so we had to work
4811 around that by encoding and decoding them. This commit adds CPP
4812 checks for the base version that intelligibly enable encoding/decoding
4813 when needed. Fixes a bug with multilingual filenames when pandoc was
4814 compiled with ghc 7.4 (#540).
4816 * Don't generate an empty H1 after hrule slide breaks.
4817 We now use a slide-level header with contents `[Str "\0"]` to mark
4818 an hrule break. This avoids creation of an empty H1 in these
4819 contexts. Closes #484.
4821 * Docbook reader: Added support for "bold" emphasis. Thanks to mb21.
4823 * In make_osx_package.sh, ensure citeproc-hs is built with the
4824 embed_data_files flag.
4826 * MediaWiki writer: Avoid extra blank lines after sublists (Gavin Beatty).
4828 * ConTeXt writer: Don't escape `&`, `^`, `<`, `>`, `_`,
4829 simplified escapes for `}` and `{` to `\{` and `\}` (Aditya Mahajan).
4831 * Fixed handling of absolute URLs in CSS imports with `--self-contained`.
4832 Closes #535.
4834 * Added webm to mime types. Closes #543.
4836 * Added some missing exports and tests to the cabal file
4837 (Alexander V Vershilov).
4839 * Compile with `-rtsopts` and `-threaded` by default.
4841pandoc (1.9.4.1)
4843 * Markdown reader: Added `cf.` and `cp.` to list of likely abbreviations.
4845 * LaTeX template: Added `linkcolor`, `urlcolor` and `links-as-notes`
4846 variables. Make TOC links black.
4848 * LaTeX template improvements.
4850 + Don't print date unless one is given explicitly in the document.
4851 + Simplified templates.
4852 + Use fontenc [T1] by default, and lmodern.
4853 + Use microtype if available.
4855 * Biblio:
4857 + Add comma to beginning of bare suffix, e.g. `@item1 [50]`.
4858 Motivation: `@item1 [50]` should be as close as possible to
4859 `[@item1, 50]`.
4860 + Added workaround for a bug in citeproc-hs 0.3.4 that causes footnotes
4861 beginning with a citation to be empty. Closes #531.
4863 * Fixed documentation on mixed lists. Closes #533.
4865pandoc (1.9.4)
4867 * Simplified `Text.Pandoc.Biblio` and fixed bugs with citations inside
4868 footnotes and captions. We now handle note citations by inserting
4869 footnotes during initial citation processing, and doing a separate
4870 pass later to remove notes inside notes.
4872 * Added 'zenburn' highlight style from highlighting-kate.
4874 * Added Slideous writer. Slideous is an HTML + javascript slide show
4875 format, similar to Slidy, but works with IE 7. (Jonas Smedegaard)
4877 * LaTeX writer:
4879 + Ensure we don't have extra blank lines at ends of cells.
4880 This can cause LaTeX errors, as they are interpreted as new paragraphs.
4881 + More consistent interblock spacing.
4882 + Require highlighting-kate >= 0.5.1, for proper highlighted inline
4883 code in LaTeX. Closes #527.
4884 + Ensure that a Verbatim at the end of a footnote is followed by
4885 a newline. (Fixes a regression in the previous version.)
4886 + In default template, use black for internal links and TOC.
4887 Added commented-out code to use footnotes for links, as would
4888 be suitable in print output.
4890 * Beamer writer: When `--incremental` is used, lists inside
4891 a block quote should appear all at once. (This makes Beamer
4892 output consistent with the HTML slide show formats.)
4894 * ConTeXt writer:
4896 + Escape `%` as `\letterpercent{}` not `\letterpercent `,
4897 to avoid gobbling spaces after the `%` sign.
4898 + Ensure space after `\stopformula`.
4900 * Markdown writer:
4902 + Use `:` form instead of `~` in definition lists, for better
4903 compatibility with other markdown implementations.
4904 + Don't wrap the term, because it breaks definition lists.
4905 + Use a nonzero space to prevent false recognition
4906 of list marker in ordered lists. Closes #516.
4908 * Org writer: Add space before language name. Closes #523.
4910 * Docx writer: Simplified bullet characters so they work properly
4911 with Word 2007. Closes #520.
4913 * LaTeX reader: Support `\centerline`.
4915 * RST reader: handle figures. Closes #522.
4917 * Textile reader: fix for `<notextile>` and `==`. Closes #517.
4918 (Paul Rivier)
4920pandoc (1.9.3)
4922 * Fixed bug in `fromEntities`. The previous version would turn
4923 `hi & low you know;` into `hi &`.
4925 * HTML reader:
4927 + Don't skip nonbreaking spaces.
4928 Previously a paragraph containing just `&nbsp;` would be rendered
4929 as an empty paragraph. Thanks to Paul Vorbach for pointing out the bug.
4930 + Support `<col>` and `<caption>` in tables. Closes #486.
4932 * Markdown reader:
4934 + Don't recognize references inside delimited code blocks.
4935 + Allow list items to begin with lists.
4937 * Added basic docbook reader (John MacFarlane and Mauro Bieg).
4939 * LaTeX reader:
4941 + Handle `\bgroup`, `\egroup`, `\begingroup`, `\endgroup`.
4942 + Control sequences can't be followed by a letter.
4943 This fixes a bug where `\begingroup` was parsed as `\begin`
4944 followed by `group`.
4945 + Parse 'dimension' arguments to unknown commands. e.g. `\parindent0pt`
4946 + Make `\label` and `\ref` sensitive to `--parse-raw`.
4947 If `--parse-raw` is selected, these will be parsed as raw latex
4948 inlines, rather than bracketed text.
4949 + Don't crash on unknown block commands (like `\vspace{10pt}`)
4950 inside `\author`; just skip them. Closes #505.
4952 * Textile reader:
4954 + Implemented literal escapes with `==` and `<notextile>`. Closes #473.
4955 + Added support for LaTeX blocks and inlines (Paul Rivier).
4956 + Better conformance to RedCloth inline parsing (Paul Rivier).
4957 + Parse '+text+' as emphasized (should be underlined, but this
4958 is better than leaving literal plus characters in the output.
4960 * Docx writer: Fixed multi-paragraph list items. Previously they each
4961 got a list marker. Closes #457.
4963 * LaTeX writer:
4965 + Added `--no-tex-ligatures` option to avoid replacing
4966 quotation marks and dashes with TeX ligatures.
4967 + Use `fixltx2e` package to provide '\textsubscript'.
4968 + Improve spacing around LaTeX block environments:
4969 quote, verbatim, itemize, description, enumerate.
4970 Closes #502.
4971 + Use blue instead of pink for URL links in latex/pdf output.
4973 * ConTeXt writer: Fixed escaping of `%`.
4974 In text, `%` needs to be escaped as `\letterpercent`, not `\%`
4975 Inside URLs, `%` needs to be escaped as `\%`
4976 Thanks to jmarca and adityam for the fix. Closes #492.
4978 * Texinfo writer: Escape special characters in node titles.
4979 This fixes a problem pointed out by Joost Kremers. Pandoc used
4980 to escape an '@' in a chapter title, but not in the corresponding
4981 node title, leading to invalid texinfo.
4983 * Fixed document encoding in texinfo template.
4984 Resolves Debian Bug #667816.
4986 * Markdown writer:
4988 + Don't force delimited code blocks to be flush left.
4989 Fixes bug with delimited code blocks inside lists etc.
4990 + Escape `<` and `$`.
4992 * LaTeX writer: Use `\hyperref[ident]{text}` for internal links.
4993 Previously we used `\href{\#ident}{text}`, which didn't work on
4994 all systems. Thanks to Dirk Laurie.
4996 * RST writer: Don't wrap link references. Closes #487.
4998 * Updated to use latest versions of blaze-html, mtl.
5001pandoc (1.9.2)
5003 * LaTeX reader:
5005 + Made `lstlisting` work as a proper verbatim environment.
5006 + Fixed bug parsing LaTeX tables with one column.
5008 * LaTeX writer:
5010 + Use `{}` around `ctable` caption, so that formatting can be used.
5011 + Don't require eurosym package unless document has a €.
5013 * LaTeX template: Added variables for `geometry`, `romanfont`,
5014 `sansfont`, `mathfont`, `mainfont` so users can more easily
5015 customize fonts.
5017 * PDF writer:
5019 + Run latex engine at least two times, to ensure
5020 that PDFs will have hyperlinked bookmarks.
5021 + Added PDF metadata (title,author) in LaTeX standalone + PDF output.
5023 * Texinfo writer: retain directories in image paths. (Peter Wang)
5025 * RST writer: Better handling of inline formatting, in accord
5026 with docutils' "inline markup recognition rules" (though we don't
5027 implement the unicode rules fully). Now `hi*there*hi` gets
5028 rendered properly as `hi\ *there*\ hi`, and unnecessary
5029 `\ ` are avoided around `:math:`, `:sub:`, `:sup:`.
5031 * RST reader:
5033 + Parse `\ ` as null, not escaped space.
5034 + Allow `` :math:`...` `` even when not followed by blank
5035 or `\`. This does not implement the complex rule docutils follows,
5036 but it should be good enough for most purposes.
5037 + Add support for the rST default-role directive. (Greg Maslov)
5039 * Text.Pandoc.Parsing: Added `stateRstDefaultRole` field to `ParserState`.
5040 (Greg Maslov)
5042 * Markdown reader: Properly handle citations nested in other inline
5043 elements.
5045 * Markdown writer: don't replace empty alt in image with "image".
5047 * DZSlides: Updated template.html and styles in default template.
5048 Removed bizarre CSS for `q` in dzslides template.
5050 * Avoid repeated `id` attribute in section and header in HTML slides.
5052 * README improvements: new instructions on internal links,
5053 removed misleading note on reST math.
5055 * Build system:
5057 + Fixed Windows installer so that dzslides works.
5058 + Removed stripansi.sh.
5059 + Added .travis.yml for Travis continuous integration support..
5060 + Fixed upper bound for zlib (Sergei Trofimovich).
5061 + Fixed upper bound for test-framework.
5062 + Updated haddocks for haddock-2.10 (Sergei Trofimovich).
5064pandoc (1.9.1.2)
5066 * Added `beamer+lhs` as output format.
5068 * Don't escape `<` in `<style>` tags with `--self-contained`.
5069 This fixes a bug which prevented highlighting from working
5070 when using `--self-contained`.
5072 * PDF: run latex engine three times if `--toc` specified.
5073 This fixes page numbers in the table of contents.
5075 * Docx writer: Added TableNormal style to tables.
5077 * LaTeX math environment fixes. `aligned` is now used instead of
5078 the nonexistent `aligned*`. `multline` instead of the nonexistent
5079 `multiline`.
5081 * LaTeX writer: Use `\textasciitilde` for literal `~`.
5083 * HTML writer: Don't escape contents of EQ tags with --gladtex.
5084 This fixes a regression from 1.8.
5086 * Use `<q>` tags for Quoted items for HTML5 output.
5087 The quote style can be changed by modifying the template
5088 or including a css file. A default quote style is included.
5090 * LaTeX reader: Fixed accents (\~{a}, `\c{c}`).
5091 Correctly handle \^{}. Support "minted" as a LaTeX verbatim block.
5093 * Updated LaTeX template for better language support.
5094 Use `polyglossia` instead of `babel` with xetex.
5095 Set `lang` as documentclass option.
5096 `\setmainlanguage` will use the last of a comma-separated
5097 list of languages. Thanks to François Gannaz.
5099 * Fixed default LaTeX template so `\euro` and `€` work. The
5100 `eurosym` package is needed if you are using pdflatex.
5102 * Fixed escaping of period in man writer (thanks to Michael Thompson).
5104 * Fixed list label positions in beamer.
5106 * Set `mainlang` variable in context writer.
5107 This parallels behavior of latex writer. `mainlang` is the last
5108 of a comma-separated list of languages in lang.
5110 * EPUB language metadat: convert e.g. `en_US` from locale to `en-US`.
5112 * Changed `-V` so that you can specify a key without a value.
5113 Such keys get the value `true`.
5115 * Fixed permissions on installed man pages - thanks Magnus Therning.
5117 * Windows installer: require XP or higher. The installer is
5118 now compiled on a Windows 7 machine, which fixes a problem
5119 using citation functions on Windows 7.
5121 * OSX package: Check for 64-bit Intel CPU before installing.
5123pandoc (1.9.1.1)
5125 * Better handling of raw latex environments in markdown. Now
5127 \begin{equation}
5128 a_1
5129 \end{equation}
5131 turns into a raw latex block as expected.
5133 * Improvements to LaTeX reader:
5135 + Skip options after block commands.
5136 + Correctly handle `{\\}` in braced.
5137 + Added a needed 'try'.
5138 + Citations: add `, ` to suffix if it doesn't start with space or
5139 punctuation. Otherwise we get no space between the year and the
5140 suffix in author-date styles.
5142 * Added two needed data files for S5. This fixes a problem with
5143 `pandoc -t s5 --self-contained`. Also removed `slides.min.js`,
5144 which was no longer being used.
5146 * Fixed some minor problems in `reference.docx`:
5147 name on "Date" style, `xCs` instead of `xIs`.
5149 * Fixed a problem creating docx files using a reference docx
5150 modified using Word. The problem seems to be that Word
5151 modifies `_rels/.rels`, changing the Type of the Relationship to
5152 `docProps/core.xml`. Pandoc now changes this back to the correct
5153 value if it has been altered, fixing the problem.
5155 * Fixed html5 template so it works properly with highlighting.
5157pandoc (1.9.1)
5159 * LaTeX reader:
5161 + Fixed regression in 1.9; properly handle escaped $ in latex math.
5162 + Put LaTeX verse environments in blockquotes.
5164 * Markdown reader:
5166 + Limit nesting of strong/emph. This avoids exponential lookahead
5167 in parasitic cases, like `a**a*a**a*a**a*a**a*a**a*a**a*a**a*a**`.
5168 + Improved attributes syntax (inn code blocks/spans):
5169 (1) Attributes can contain line breaks. (2) Values in key-value
5170 attributes can be surrounded by either double or single quotes, or
5171 left unquoted if they contain no spaces.
5173 * Don't wrap headers in markdown or RST writers.
5175 * Added `stateMaxNestingLevel` to `ParserState`.
5176 We set this to 6, so you can still have `Emph` inside `Emph`,
5177 just not indefinitely.
5179 * More efficient implementation of `nowrap` in `Text.Pandoc.Pretty`.
5181 * `Text.Pandoc.PDF`: Only run latex twice if `\tableofcontents`
5182 is present.
5184 * Require highlighting-kate >= 0.5.0.2, texmath >= 0.6.0.2.
5186pandoc (1.9.0.5)
5188 * Changed cabal file so that build-depends for the test program
5189 are not required unless the tests flag is used.
5191 * LaTeX writer: insert `{}` between adjacent hyphens so they don't
5192 form ligatures (dashes) in code spans.
5194pandoc (1.9.0.4)
5196 * Raised version bound on test-framework to avoid problems
5197 compiling tests on GHC 7.4.1.
5199 * LaTeX reader: Use raw LaTeX as fallback inline text for Cites,
5200 so citations don't just disappear unless you process with
5201 citeproc. Ignore `\bibliographystyle`, `\nocite`.
5203 * Simplified tex2pdf; it will always run latex twice to
5204 resolve table of contents and hyperrefs.
5206pandoc (1.9.0.3)
5208 * Require Cabal >= 1.10.
5209 * Tweaked cabal file to meet Cabal 1.10 requirements.
5211pandoc (1.9.0.2)
5213 * Allow build with json 0.4 or 0.5. Otherwise we can't build with
5214 ghc 6.12.
5216pandoc (1.9)
5218 [new features]
5220 * Added a Microsoft Word `docx` writer. The writer includes support
5221 for highlighted code and for math (which is converted from TeX to OMML,
5222 Office's native math markup language, using texmath's new OMML module).
5223 A new option `--reference-docx` allows the user to customize the
5224 styles.
5226 * Added an `asciidoc` writer (<http://www.methods.co.nz/asciidoc/>).
5228 * Better support for slide shows:
5230 + Added a `dzslides` writer. DZSlides is a lightweight HTML5/javascript
5231 slide show format due to Paul Rouget (<http://paulrouget.com/dzslides/>).
5233 + Added a LaTeX `beamer` writer. Beamer is a LaTeX package for creating
5234 slide presentations.
5236 + New, flexible rules for dividing documents into sections and slides
5237 (see the "Structuring the slide show" in the User's Guide). These
5238 are backward-compatible with the old rules, but they allow slide
5239 shows to be organized into sections and subsections containing
5240 multiple slides.
5242 + A new `--slide-level` option allows users to override defaults
5243 and select a slide level below the first header level with content.
5245 * A new `--self-contained` option produces HTML output that does not
5246 depend on an internet connection or the presence of any external
5247 files. Linked images, CSS, and javascript is downloaded (or fetched
5248 locally) and encoded in `data:` URIs. This is useful for making portable
5249 `HTML slide shows. The --offline` option has been deprecated and is now
5250 `treated as a synonym or --self-contained`.
5252 * Support for PDF output:
5254 + Removed the old `markdown2pdf`.
5255 + `pandoc` can now create PDFs (assuming you have latex and a set of
5256 appropriate packages installed): just specify an output file with the
5257 `.pdf` extension.
5258 + A new option `--latex-engine` allows you to specify `pdflatex`,
5259 `xelatex`, or `lualatex` as the processor.
5261 * Highlighting changes:
5263 + Syntax highlighting is now a standard feature; the `highlighting`
5264 flag is no longer needed when compiling.
5265 + A new `--no-highlight` option allows highlighting to be disabled.
5266 + Highlighting now works in `docx`, `latex`, and `epub`, as well as
5267 `html`, `html5`, `dzslides`, `s5`, and `slidy`.
5268 + A new `--highlight-style` option selects between various highlighting
5269 color themes.
5271 * Internal links to sections now work in ConTeXt and LaTeX as well as HTML.
5273 * LaTeX `\include` and `\usepackage` commands are now processed,
5274 provided the files are in the working directory.
5276 * EPUB improvements:
5278 + Internal and external links now work in EPUB.
5279 + Raw HTML is allowed.
5280 + New `--epub-embed-font` option.
5281 + Customizable templates for EPUB pages offer more control over
5282 formatting: `epub-page.html`, `epub-coverimage.html`,
5283 `epub-titlepage.html`.
5285 * `--mathml` now works with DocBook.
5287 * Added support for math in RST reader and writer. Inline math uses the
5288 `` :math:`...` `` construct. Display math uses
5290 .. math:: ...
5292 or if the math is multiline,
5294 .. math::
5296 ...
5298 These constructions are now supported now by `rst2latex.py`.
5300 * GitHub syntax for fenced code blocks is supported in pandoc's
5301 markdown. You can now write
5303 ```ruby
5304 x = 2
5305 ```
5307 instead of
5309 ~~~ {.ruby}
5310 x = 2
5311 ~~~~
5313 * Easier scripting: a new `toJsonFilter` function makes it easier to
5314 write Haskell scripts to manipulate the Pandoc AST.
5316 [behavior changes]
5318 * Fixed parsing of consecutive lists in markdown.
5319 Pandoc previously behaved like Markdown.pl for consecutive
5320 lists of different styles. Thus, the following would be parsed
5321 as a single ordered list, rather than an ordered list followed
5322 by an unordered list:
5324 1. one
5325 2. two
5327 - one
5328 - two
5330 This change makes pandoc behave more sensibly, parsing this as
5331 two lists. Any change in list type (ordered/unordered) or in
5332 list number style will trigger a new list. Thus, the following
5333 will also be parsed as two lists:
5335 1. one
5336 2. two
5338 a. one
5339 b. two
5341 Since we regard this as a bug in Markdown.pl, and not something
5342 anyone would ever rely on, we do not preserve the old behavior
5343 even when `--strict` is selected.
5345 * Dashes work differently with `--smart`: `---` is always em-dash,
5346 and `--` is always en-dash. Pandoc no longer tries to guess when
5347 `-` should be en-dash. *Note:* This may change how existing documents
5348 look when processed with pandoc. A new option, `--old-dashes`,
5349 is provided for legacy documents.
5351 * The markdown writer now uses setext headers for levels 1-2.
5352 The old behavior (ATX headers for all levels) can be restored
5353 using the new `--atx-headers` option.
5355 * Links are now allowed in markdown image captions. They are also
5356 allowed in links, but will appear there as regular text. So,
5358 [link with [link](/url)](/url)
5360 will turn into
5362 <p><a href="/url">link with link</a></p>
5364 * Improved handling of citations using `citeproc-hs-0.3.4`.
5365 Added `--citation-abbreviations` option.
5367 * Citation keys can no longer end with a punctuation character.
5368 This means that `@item1.` will be parsed as a citation with key
5369 'item1', followed by a period, instead of a citation with key
5370 'item1.', as was the case previously.
5372 * In HTML output, citations are now put in a span with class `citation`.
5374 * The markdown reader now recognizes DocBook block and inline tags.
5375 It was always possible to include raw DocBook tags in a markdown
5376 document, but now pandoc will be able to distinguish block from
5377 inline tags and behave accordingly. Thus, for example,
5379 <sidebar>
5380 hello
5381 </sidebar>
5383 will not be wrapped in `<para>` tags.
5385 * The LaTeX parser has been completely rewritten; it is now much more
5386 accurate, robust, and extensible. However, there are two important
5387 changes in how it treats unknown LaTeX. (1) Previously, unknown
5388 environments became BlockQuote elements; now, they are treated
5389 as "transparent", so `\begin{unknown}xyz\end{unknown}` is the
5390 same as `xyz`. (2) Previously, arguments of unknown commands
5391 were passed through with their braces; now the braces are stripped
5392 off.
5394 * `--smart` is no longer selected automatically with `man` output.
5396 * The deprecated `--xetex` option has been removed.
5398 * The `--html5`/`-5` option has been deprecated. Use `-t html5`
5399 instead. `html5` and `html5+lhs` are now separate output formats.
5401 * Single quotes are no longer escaped in HTML output. They do not
5402 need to be escaped outside of attributes.
5404 * Pandoc will no longer transform leading newlines in code
5405 blocks to `<br/>` tags.
5407 * The ODT writer now sizes images appropriately, using the image
5408 size and DPI information embedded in the image.
5410 * `--standalone` is once again implicitly for a non-text output format
5411 (ODT, EPUB). You can again do `pandoc test.txt -o test.odt`
5412 and get a standalone ODT file.
5414 * The Docbook writer now uses `<sect1>`, `<sect2>`, etc. instead of
5415 `<section>`.
5417 * The HTML writer now uses `<del>` for strikeout.
5419 * In HTML output with `--section-divs`, the classes `section` and
5420 `level[1,2,..6]` are put on the `div` tags so they can be styled.
5421 In HTML 5 output with `--section-divs`, the classes
5422 `level[1,2,...6]` are put on `section` tags.
5424 * EPUB writer changes:
5426 + The `lang` variable now sets the language
5427 in the metadata (if it is not set, we default to the locale).
5428 + EPUB: UTF-8 is used rather than decimal entities.
5430 * Added `titleslide` class to title slide in S5 template.
5432 * In HTML, EPUB, and docx metadata, the date is normalized into
5433 YYYY-MM-DD format if possible. (This is required for validation.)
5435 * Attributes in highlighted code blocks are now preserved in HTML.
5436 The container element will have the classes, id, and key-value attributes
5437 you specified in the delimited code block. Previously these were stripped
5438 off.
5440 * The reference backlink in the HTML writer no longer has a special
5441 `footnoteBacklink` class.
5443 * The HTML template has been split into `html` and `html5` templates.
5445 * Author and date are treated more consistently in HTML templates.
5446 Authors are now `<h2>`, date `<h3>`.
5448 * URLs are hyphenated in the ConTeXt writer (B. Scott Michel).
5450 * In `Text.Pandoc.Builder`, `+++` has been replaced by `<>`.
5452 [bug fixes]
5454 * Better support for combining characters and East Asian wide characters
5455 in markdown and reST.
5457 * Better handling of single quotes with `--smart`.
5458 Previously `D'oh l'*aide*` would be parsed with left and right single
5459 quotes instead of apostrophes. This kind of error is now fixed.
5461 * Highlighting: Use `reads` instead of `read` for better error handling.
5462 Fixes crash on `startNum="abc"`.
5464 * Added blank comment after directives in rst template.
5466 * Unescape entities in citation `refId`. The `refId`s coming
5467 from citeproc contain XML numeric entities, and these don't match with the
5468 citation keys parsed by pandoc. Solution is to unescape them.
5470 * HTML reader: Fixed bug parsing tables with both thead and tbody.
5472 * Markdown reader:
5474 + Better handling of escapes in link URLs and titles.
5475 + Fixed backslash escapes in reference links.
5476 + Fixed bug in table/hrule parsing, by checking that the top
5477 line of a table is not followed by a blank line. This bug caused
5478 slowdowns on some files with hrules and tables, as pandoc tried to
5479 interpret the hrules as the tops of multiline tables.
5480 + Fixed bug in code block attribute parser. Previously the ID attribute
5481 got lost if it didn't come first. Now attributes can come in any order.
5483 * RST reader: allow footnotes followed by newline without space characters.
5485 * LaTeX reader:
5487 + Ignore empty groups {}, { }.
5488 + LaTeX reader: Handle \@.
5489 + LaTeX reader: Don't crash on commands like `\itemsep`.
5490 + LaTeX reader: Better handling of letter environments.
5492 * RST writer: Fixed bug involving empty table cells. isSimple was being
5493 calculated in a way that assumed there were no non-empty cells.
5495 * ConTeXt writer:
5497 + Made `--toc` work even without `--number-sections`.
5498 + Escape # in link URLs.
5499 + Use buffering for footnotes containing code blocks.
5500 + Changed 'descr' to 'description', fixed alignment.
5502 * LaTeX writer:
5504 + Escape euro character.
5505 + Don't escape ~ inside href{...}.
5506 + Escape # in href URLs.
5507 + Improved detection of book classes. We now check the
5508 `documentclass` variable, and if that is not set, we look through
5509 the template itself. Also, we have added the KOMA classes scrreprt
5510 and scrbook. You can now make a book using
5511 `pandoc -V documentclass:book mybook.txt -o mybook.pdf`
5512 + LHS files now set the "listings" variable, so that the definition
5513 of the `code` environment will be included in the template.
5514 + Links are colored blue by default (this can be changed by
5515 modifying `hyperref` settings in the template).
5516 + Added `lang` variable to LaTeX template.
5518 * HTML writer:
5520 + Fixed bug in HTML template with html5 and mathml.
5521 + Don't use self-closing img, br, hr tags for HTML5.
5522 + Use `<section>` for footnotes if HTML5.
5523 + Update HTML templates to use Content-Style-Type meta tag.
5524 + Use separate variables for meta-date, meta-author.
5525 This makes footnotes work in author and date fields.
5526 + Use 'vertical-align:middle' in WebTeX math for better alignment.
5528 * S5/slidy writer: Make footnotes appear on separate slide at end.
5530 * MIME: Added 'layout-cache' to getMimeType. This ensures that the
5531 META-INF/manifest.xml for ODT files will have everything it needs, so
5532 that ODT files modified by LibreOffice can be used as `--reference-odt`.
5534 * `Text.Pandoc.Templates`: Return empty string for json template.
5536 * `Text.Pandoc.Biblio`:
5538 + Expand citations recursively inside nested inlines.
5539 + Treat `\160` as space when parsing locator and suffix.
5540 This fixes a bug with "p. 33" when `--smart` is used. Previously
5541 the whole "p. 33" would be included in the suffix, with no locator.
5542 + Put whole author-in-text citation in a Cite. Previously just the
5543 date and other info went in the Cite.
5544 + Don't add comma+space to prefix if it ends in punctuation.
5546 * Updated chicago-author-date.csl. The old version did not work
5547 properly for edited volumes with no author.
5549 * EPUB writer:
5551 + Add date to EPUB titlepage and metadata.
5552 + Added TOC identifier in EPUB page template.
5553 + Don't generate superfluous file `cover-image.jpg`.
5555 [under the hood improvements]
5557 * Modified `make_osx_package.sh` to use cabal-dev.
5558 Items are no longer installed as root.
5559 Man pages are zipped and given proper permissions.
5561 * Modified windows installer generater to use cabal-dev.
5563 * Setup: Making man pages now works with cabal-dev (at least on OSX). In
5564 Setup.hs we now invoke 'runghc' in a way that points it to the correct
5565 package databases, instead of always falling back to the default user
5566 package db.
5568 * Updated to work with GHC 7.4.1.
5570 * Removed dependency on old-time.
5572 * Removed dependency on dlist.
5574 * New slidy directory for "self-contained."
5576 * TeXMath writer: Use unicode thin spaces for thin spaces.
5578 * Markdown citations: don't strip off initial space in locator.
5580 [API changes]
5582 * Removed `Apostrophe`, `EmDash`, `EnDash`, and `Ellipses`
5583 from the native `Inline` type in pandoc-types. Now we use `Str`
5584 elements with unicode.
5586 * Improvements to `Text.Pandoc.Builder`:
5588 + `Inlines` and `Blocks` are now newtypes (not synonyms for
5589 sequences).
5590 + Instances are defined for `IsString`, `Show`, `Read`, `Monoid`,
5591 and a new `Listable` class, which allows these to be manipulated
5592 to some extent like lists. Monoid append includes automatic
5593 normalization.
5594 + `+++` has been replaced by `<>` (mappend).
5596 * Use blaze-html instead of xhtml for HTML generation.
5597 This changes the type of `writeHtml`.
5599 * `Text.Pandoc.Shared`:
5601 + Added `warn` and `err`.
5602 + Removed `unescapeURI`, modified `escapeURI`.
5603 (See under [behavior changes], above.)
5605 * Changes in URI escaping: Previously the readers escaped URIs by
5606 converting unicode characters to octets and then percent encoding.
5607 Now unicode characters are left as they are, and `escapeURI` only
5608 percent-encodes space characters. This gives more readable
5609 URIs, and works well with modern user agents. URIs are no longer unescaped
5610 at all on conversion to `markdown`, `asciidoc`, `rst`, `org`.
5612 * New module `Text.Pandoc.SelfContained`.
5614 * New module `Text.Pandoc.Docx`.
5616 * New module `Text.Pandoc.PDF`.
5618 * Added `writerBeamer` to `WriterOptions`.
5620 * Added `normalizeDate` to `Text.Pandoc.Shared`.
5622 * Added `splitStringWithIndices` in `Text.Pandoc.Shared`.
5623 This is like `splitWithIndices`, but it is sensitive to distinctions
5624 between wide, combining, and regular characters.
5626 * `Text.Pandoc.Pretty`:
5628 + Added `chomp` combinator.
5629 + Added `beforeNonBreak` combinator. This allows you to include
5630 something conditionally on it being before a nonblank.
5631 Used for RST inline math.
5632 + Added `charWidth` function. All characters marked W or F in the unicode
5633 spec EastAsianWidth.txt get width 2.
5634 + Added `realLength`, based on `charWidth`. `realLength` is now
5635 used in calculating offsets.
5637 * New module `Text.Pandoc.Slides`, for common functions for breaking
5638 a document into slides.
5640 * Removed `Text.Pandoc.S5`, which is no longer needed.
5642 * Removed `Text.Pandoc.CharacterReferences`. Moved
5643 `characterReference` to `Text.Pandoc.Parsing`.
5644 `decodeCharacterReferences` is replaced by `fromEntities`
5645 in `Text.Pandoc.XML`.
5647 * Added `Text.Pandoc.ImageSize`. This is intened for use
5648 in `docx` and `odt` writers, so the size and dpi of images
5649 can be calculated.
5651 * Removed `writerAscii` in `WriterOptions`.
5653 * Added `writerHighlight` to `WriterOptions`.
5655 * Added `DZSlides` to `HTMLSlideVariant`.
5657 * `writeEPUB` has a new argument for font files to embed.
5659 * Added `stateLastStrPos` to `ParserState`. This lets us keep track
5660 of whether we're parsing the position immediately after a regular
5661 (non-space, non-symbol) string, which is useful for distinguishing
5662 apostrophes from single quote starts.
5664 * `Text.Pandoc.Parsing`:
5666 + `escaped` now returns a `Char`.
5667 + Removed `charsInBalanced'`, added a character parser as
5668 a parameter of `charsInBalanced`. This is needed for
5669 proper handling of escapes, etc.
5670 + Added `withRaw`.
5672 * Added `toEntities` to `Text.Pandoc.XML`.
5674 * `Text.Pandoc.Readers.LaTeX`:
5676 + Export `handleIncludes`.
5677 + Export `rawLaTeXBlock` instead of `rawLaTeXEnvironment'`.
5679 * Added `ToJsonFilter` class and `toJsonFilter` function to
5680 `Text.Pandoc`, deprecating the old `jsonFilter` function.
5682 * `Text.Pandoc.Highlighting`:
5684 + Removed `highlightHtml`, `defaultHighlightingCss`.
5685 + Export `formatLaTeXInline`, `formatLaTeXBlock`, and `highlight`, plus
5686 key functions from highlighting-kate.
5687 + Changed types of highlighting function. `highlight` returns a
5688 `Maybe`, not an `Either`.
5690pandoc (1.8.2.1)
5692 * Relaxed cabal consntraints for test-framework (S. Trofimovich).
5694 * Relaxed cabal constraints for pandoc-types.
5696 * Adjusted Arbitrary instance to help avoid timeouts in tests.
5698 * Added `Tests.Writers.Markdown` to cabal file.
5700pandoc (1.8.2)
5702 * Added script to produce OS X package.
5704 * Made `templates` directory a git submodule. This should make it
5705 easier for people to revise their custom templates when the default
5706 templates change.
5708 * Changed template naming scheme: `FORMAT.template` -> `default.FORMAT`.
5709 **Note:** If you have existing templates in `~/.pandoc/templates`, you
5710 must rename them to conform to the new scheme!
5712 * Fixed smart quotes bug, now handling `'...hi'` properly.
5714 * RST reader:
5716 + Partial support for labeled footnotes.
5717 + Improved accuracy of `simpleReferenceName` parser.
5719 * HTML reader:
5721 + Substitute correct unicode characters for
5722 characters in the 128..159 range, which are often found even in
5723 HTML that purports to be UTF-8.
5725 * LaTeX reader: Handle `\subtitle` command (a subtitle is added
5726 to the title, after a colon and linebreak). Closes #280.
5728 * Leaner `reference.odt`.
5730 * Added unexported module `Text.Pandoc.MIME` for use in
5731 the ODT writer.
5733 * ODT writer: Construct `manifest.xml` based on archive contents.
5734 This fixes a bug in ODTs containing images. Recent versions of
5735 LibreOffice would reject these as corrupt, because `manifest.xml`
5736 did not contain a reference to the image files.
5738 * LaTeX writer:
5740 + Make verbatim environments flush to avoid spurious
5741 blank lines. Closes #277.
5742 + Use `\texttt` and escapes insntead of `\verb!...!`, which
5743 is too fragile (doesn't work in command arguments).
5744 + Use `\enquote{}` for quotes if the template includes
5745 the `csquotes` package. This provides better support for
5746 local quoting styles. (Thanks to Andreas Wagner for the idea.)
5748 * ConTeXt writer: Make `\starttyping`/`\stoptyping` flush with
5749 margin, preventing spurious blank lines.
5751 * Slidy writer:
5753 + Use non-minimized version of `slidy.css` with `--offline`
5754 option, so users can more easily edit it.
5755 + Also fixed a bug in the CSS that prevented proper centering
5756 of title (now reported and fixed upstream).
5758 * S5 writer:
5760 + Replaced `s5/default/slides.js.{comment,packed}` with
5761 new compressed `s5/default/slides.min.js`.
5762 + Use `data:` protocol to embed S5 CSS in `<link>` tags,
5763 when `--offline` is specified. Using inline CSS didn't
5764 work with Chrome or Safari. This fixes offline
5765 S5 on those browsers.
5767 * HTML writer: Removed English title on footnote backlinks.
5768 This is incongrous in non-English documents.
5770 * Docbook writer:
5772 + Use CALS tables. (Some older docbook software does not work
5773 well with XHTML tables.) Closes #77.
5774 + Use `programlisting` tags (instead of `screen`) for code blocks.
5776 * `markdown2pdf`:
5778 + Calls latex with `-halt-on-error -interaction nonstopmode` instead
5779 of `-interaction=batchmode`, which essentially just ignored errors,
5780 leading to bad results. Better to know when something is wrong.
5781 + Fixed issues with non-UTF-8 output of `pdflatex`.
5782 + Better error reporting.
5784 * `--mathjax` now takes an optional URL argument. If it is not
5785 provided, pandoc links directly to the (secure) mathjax CDN,
5786 as now recommended (thanks to dsanson).
5788 * Deprecated `--xetex` option in `pandoc`. It is no longer needed,
5789 since the LaTeX writer now produces a file that can be processed by
5790 `latex`, `pdflatex`, `lualatex`, or `xelatex`.
5792 * Introduced `--luatex` option to `markdown2pdf`. This causes `lualatex`
5793 to be used to create the PDF.
5795 * If a template specified with `--template` is not found, look for it
5796 in `datadir`. Also, if no extension is provided, supply one based
5797 on the writer. So now you can put your `special.latex` template in
5798 `~/.pandoc/templates`, and use it from any directory via
5799 `pandoc -t latex --template special`.
5801 * Default template improvements:
5803 + HTML: Display author and date after title.
5804 + HTML: Made table of contents more customizable. The container
5805 for the TOC is now in the template, so users can insert a header
5806 or other styling. (Thanks to Bruce D'Arcus for the suggestion.)
5807 + HTML, Slidy, S5: Enclose scripts in CDATA tags.
5808 + Slidy, S5: Added `s5-url` and `slidy-url` variables, instead of
5809 hard-coding. If you want to put your slidy files in the slidy
5810 subdirectory, for example, you can do
5811 `pandoc -t slidy -V slidy-url=slidy -s`.
5812 + LaTeX: Use `\and` to separate authors in LaTeX documents (reader
5813 & writer). Closes #279.
5814 + LaTeX: Use different `hyperref` options for `xetex`, fixing
5815 problems with unicode bookmarks (thanks to CircleCode).
5816 + LaTeX: Removed `ucs` package, use `utf8` rather than `utf8x`
5817 with `inputenc`. This covers fewer characters but is more
5818 robust with other packages, and `ucs` is unmaintained. Users
5819 who need better unicode support should use xelatex or lualatex.
5821pandoc (1.8.1.2)
5823 * Added `--epub-cover-image` option.
5825 * Documented `--biblatex` and `--natbib` options.
5827 * Allow `--section-divs` with slidy output. Resolves Issue #296.
5829 * Disallow notes within notes in reST and markdown.
5830 These previously caused infinite looping and stack overflows.
5831 For example:
5833 [^1]
5835 [^1]: See [^1]
5837 Note references are allowed in reST notes, so this isn't a full
5838 implementation of reST. That can come later. For now we need to
5839 prevent the stack overflows. Partially resolves Issue #297.
5841 * EPUB writer: Allow non-plain math methods.
5843 * Forbid ()s in citation item keys. Resolves Issue #304: problems with
5844 `(@item1; @item2)` because the final paren was being parsed as part of
5845 the item key.
5847 * Changed URI parser so it doesn't include trailing punctuation.
5848 So, in RST, `http://google.com.` should be parsed as a link followed by a
5849 period. The parser is smart enough to recognize balanced parentheses, as
5850 often occur in wikipedia links: `http://foo.bar/baz_(bam)`.
5852 * Markdown+lhs reader: Require space after inverse bird tracks, so that
5853 HTML tags can be used freely at the left margin of a markdown+lhs document.
5854 Thanks to Conal Elliot for the suggestion.
5856 * Markdown reader:
5858 + Improved emph/strong parsing; fixes bug found by Perry Wagle.
5859 + Fixed bug in footnote order (reported by CircleCode).
5861 * RST reader:
5862 + Fixed bug in in field lists with multi-line items at the
5863 end of the list.
5864 + Added parentheses to RST `specialChars`, so
5865 `(http://google.com)` will be parsed as a link in parens.
5866 Resolves Issue #291.
5867 + Allow `|` followed by newline in RST line block.
5869 * LaTeX reader:
5870 + Support `\dots`.
5871 + Gobble option & space after linebreak `\\[10pt]`.
5873 * Textile reader:
5874 + Make it possible to have colons after links. (qerub)
5875 + Make it possible to have colons after links. (Christoffer Sawicki)
5877 * HTML reader:
5878 + Skip spaces after `<b>`, `<emph>`, etc.
5879 + Handle tbody, thead in simple tables. Closes #274.
5880 + Implicit `Para`s instead of `Plains` in some contexts.
5882 * OpenDocument writer: Use special `First paragraph` style for
5883 first paragraph after most non-paragraph blocks. This allows users to
5884 specify e.g. that only paragraphs after the first paragraph of a block are
5885 to be indented. Thanks to Andrea Rossato for the patch. Closes #20.
5887 * LaTeX writer: use `deVerb` on table and picture captions.
5888 Otherwise LaTeX complains about `\verb` inside command argument.
5889 Thanks to bbanier for reporting the bug.
5891 * Markdown writer: Insert HTML comment btw list and indented code block.
5892 This prevents the code block from being interpreted as part of the list.
5894 * EPUB writer: Add a meta element specify the cover.
5895 Some EPUB e-readers, such as the Nook, require a meta element inside the
5896 OPF metadata block to ensure the cover image is properly displayed.
5897 (Kelsey Hightower)
5899 * HTML writer: Use embed tag for images with non-image extensions.
5900 (e.g. PDFs). Closes #264.
5902 * LaTeX writer: Improved tables.
5904 + More space between lines, top-align cells.
5905 + Use ctable package, which allows footnotes and
5906 provides additional options.
5907 + Made cell alignments work in multiline tables.
5908 + Closes #271, #272.
5910 * Un-URI-escape image filenames in LaTeX, ConTeXt, RTF, Texinfo.
5911 Also do this when copying image files into EPUBs and ODTs.
5912 Closes #263.
5914 * Changed to github issue tracker.
5916 * Added failing emph/strong markdown test case due to Perry Wagle.
5918 * Slidy improvements:
5919 + Updated to use Slidy2.
5920 + Fixed bug, unclosed div tag.
5921 + Added `duration` variable in template.
5922 Setting this activates the timer.
5923 + Use 'titlepage' instead of 'cover' for title div.
5925pandoc (1.8.1.1)
5927 * `markdown2pdf`: Removed some debugging lines accidentally included
5928 in the 1.8.1 release. With those lines, the temp directory is created
5929 in the working directory, and it is not deleted. This fix restores
5930 the original behavior.
5932pandoc (1.8.1)
5934 * Added `--ascii` option. Currently supported only in HTML writer,
5935 which it causes to use numerical entities instead of UTF-8.
5937 * EPUB writer: `--toc` now works to provide a table of contents
5938 at the beginning of each chapter.
5940 * LaTeX writer: Change figure defaults to `htbp`.
5941 This prevents "too many unprocessed floats." Resolves
5942 Issue #285.
5944 * `Text.Pandoc.UTF8`: Encode filenames even when using recent
5945 base.
5947 * `markdown2pdf`: Fixed filename encoding issues. With help from Paulo
5948 Tanimoto. Resolves Issue #286.
5950 * HTML writer: Put line breaks in section divs.
5952 * `Text.Pandoc.Shared`: Make `writerSectionDivs` default to False.
5954pandoc (1.8.0.3)
5956 * Fixed Source-repository stanza in cabal file.
5958pandoc (1.8.0.2)
5960 * HTML writer:
5962 + Stringify alt text instead of converting to HTML.
5963 + Break lines after block elements, not inside tags.
5964 HTML output now closely resembles that of tidy. Resolves Issue #134.
5966 * Markdown reader: Fixed bug in footnote block parser (pointed out
5967 by Jesse Rosenthal). The problem arose when the blank line
5968 at the end of a footnote block contained indenting spaces.
5970 * Shared: Improved 'normalize' function so it normalizes Spaces too.
5971 In normal form, Space elements only occur to separate two non-Space
5972 elements. So, we never have [Space], or [, ..., Space].
5974 * Tests:
5976 + Improved Arbitrary instance.
5977 + Added timeout for test instances.
5979 * README:
5981 + Added section on four-space rule for lists. Resolves Issue #283.
5982 + Clarified optional arguments on math options.
5984 * markdown2pdf: Fixed bug with output file extensions.
5985 Previously `markdown2pdf test.txt -o test.en.pdf` would produce
5986 `test.pdf`, not `test.en.pdf`. Thanks to Paolo Tanimoto for the fix.
5988pandoc (1.8.0.1)
5990 * Revised Interact.hs so that it works with the CPP macros
5991 in the UTF8 module.
5993 * Revised Setup.hs so that we don't call MakeManPage.hs unless
5994 the man pages are out of date.
5996pandoc (1.8)
5998 [new features]
6000 * Support for citations using Andrea Rossato's `citeproc-hs` 0.3.
6001 You can now write, for example,
6003 Water is wet [see @doe99, pp. 33-35; also @smith04, ch. 1].
6005 and, when you process your document using `pandoc`, specifying
6006 a citation style using `--csl` and a bibliography using `--bibliography`,
6007 the citation will be replaced by an appropriately formatted
6008 citation, and a list of works cited will be added to the end
6009 of the document.
6011 This means that you can switch effortlessly between different citation
6012 and bibliography styles, including footnote, numerical, and author-date
6013 formats. The bibliography can be in any of the following formats: MODS,
6014 BibTeX, BibLaTeX, RIS, EndNote, EndNote XML, ISI, MEDLINE, Copac, or JSON.
6015 See the README for further details.
6017 Citations are supported in the markdown reader, using a special
6018 syntax, and in the LaTeX reader, using natbib or biblatex syntax.
6019 (Thanks to Nathan Gass for the natbib and biblatex support.)
6021 * New `textile` reader and writer. Thanks to Paul Rivier for contributing
6022 the `textile` reader, an almost complete implementation of the textile
6023 syntax used by the ruby [RedCloth library](http://redcloth.org/textile).
6024 Resolves Issue #51.
6026 * New `org` writer, for Emacs Org-mode, contributed by Puneeth Chaganti.
6028 * New `json` reader and writer, for reading and writing a JSON
6029 representation of the native Pandoc AST. These are much faster
6030 than the `native` reader and writer, and should be used for
6031 serializing Pandoc to text. To convert between the JSON representation
6032 and native Pandoc, use `encodeJSON` and `decodeJSON` from
6033 `Text.JSON.Generic`.
6035 * A new `jsonFilter` function in `Text.Pandoc` makes it easy
6036 to write scripts that transform a JSON-encoded pandoc document.
6037 For example:
6039 -- removelinks.hs - removes links from document
6040 import Text.Pandoc
6041 main = interact $ jsonFilter $ bottomUp removeLink
6042 where removeLink (Link xs _) = Emph xs
6043 removeLink x = x
6045 To use this to remove links while translating markdown to LaTeX:
6047 pandoc -t json | runghc removelinks.hs | pandoc -f json -t latex
6049 * Attributes are now allowed in inline `Code` elements, for example:
6051 In this code, `ulist ! [theclass "special"] << elts`{.haskell} is...
6053 The attribute syntax is the same as for delimited code blocks.
6054 `Code` inline has an extra argument place for attributes, just like
6055 `CodeBlock`. Inline code will be highlighted in HTML output, if pandoc
6056 is compiled with highlighting support. Resolves Issue #119.
6058 * New `RawBlock` and `RawInline` elements (replacing `RawHtml`,
6059 `HtmlInline`, and `TeX`) provide lots of flexibility in writing
6060 scripts to transform Pandoc documents. Scripts can now change
6061 how each element is rendered in each output format.
6063 * You can now define LaTeX macros in markdown documents, and pandoc
6064 will apply them to TeX math. For example,
6066 \newcommand{\plus}[2]{#1 + #2}
6067 $\plus{3}{4}$
6069 yields `3+4`. Since the macros are applied in the reader, they
6070 will work in every output format, not just LaTeX.
6072 * LaTeX macros can also be used in LaTeX documents (both in math
6073 and in non-math contexts).
6075 * A new `--mathjax` option has been added for displaying
6076 math in HTML using MathJax. Resolves issue #259.
6078 * Footnotes are now supported in the RST reader. (Note, however,
6079 that unlike docutils, pandoc ignores the numeral or symbol used in
6080 the note; footnotes are put in an auto-numbered ordered list.)
6081 Resolves Issue #258.
6083 * A new `--normalize` option causes pandoc to normalize the AST
6084 before writing the document. This means that, for example,
6085 `*hi**there*` will be rendered as `<em>hithere</em>`
6086 instead of `<em>hi</em><em>there</em>`. This is not the default,
6087 because there is a significant performance penalty.
6089 * A new `--chapters` command-line option causes headers
6090 in DocBook, LaTeX, and ConTeXt to start with "chapter" (level one).
6091 Resolves Issue #265.
6093 * In DocBook output, `<chapter>` is now used for top-level
6094 headers if the template contains `<book>`. Resolves Issue #265.
6096 * A new `--listings` option in `pandoc` and `markdown2pdf` causes
6097 the LaTeX writer to use the listings package for code blocks.
6098 (Thanks to Josef Svennigsson for the pandoc patch, and Etienne
6099 Millon for the markdown2pdf patch.)
6101 * `markdown2pdf` now supports `--data-dir`.
6103 * URLs in autolinks now have class "url" so they can be styled.
6105 * Improved prettyprinting in most formats. Lines will be wrapped
6106 more evenly and duplicate blank lines avoided.
6108 * New `--columns` command-line option sets the column width for
6109 line wrapping and relative width calculations for tables.
6111 * Made `--smart` work in HTML, RST, and Textile readers, as well
6112 as markdown.
6114 * Added `--html5` option for HTML5 output.
6116 * Added support for listings package in LaTeX reader
6117 (Puneeth Chaganti).
6119 * Added support for simple tables in the LaTeX reader.
6121 * Added support for simple tables in the HTML reader.
6123 * Significant performance improvements in many readers and writers.
6125 [API and program changes]
6127 * Moved `Text.Pandoc.Definition` from the `pandoc` package to a new
6128 auxiliary package, `pandoc-types`. This will make it possible for other
6129 programs to supply output in Pandoc format, without depending on the whole
6130 pandoc package.
6132 * Added `Attr` field to `Code`.
6134 * Removed `RawHtml`, `HtmlInline`, and `TeX` elements; added generic
6135 `RawBlock` and `RawInline`.
6137 * Moved generic functions to `Text.Pandoc.Generic`. Deprecated
6138 `processWith`, replacing it with two functions, `bottomUp` and `topDown`.
6139 Removed previously deprecated functions `processPandoc` and `queryPandoc`.
6141 * Added `Text.Pandoc.Builder`, for building `Pandoc` structures.
6143 * `Text.Pandoc` now exports association lists `readers` and `writers`.
6145 * Added `Text.Pandoc.Readers.Native`, which exports `readNative`.
6146 `readNative` can now read full pandoc documents, block lists, blocks,
6147 inline lists, or inlines. It will interpret `Str "hi"`
6148 as if it were `Pandoc (Meta [] [] []) [Plain [Str "hi"]]`.
6149 This should make testing easier.
6151 * Removed deprecated `-C/--custom-header` option.
6152 Use `--template` instead.
6154 * `--biblio-file` has been replaced by `--bibliography`.
6155 `--biblio-format` has been removed; pandoc now guesses the format
6156 from the file extension (see README).
6158 * pandoc will treat an argument as a URI only if it has an
6159 `http(s)` scheme. Previously pandoc would treat some
6160 Windows pathnames beginning with `C:/` as URIs.
6162 * The `--sanitize-html` option and the `stateSanitize` field in
6163 `ParserState` have been removed. Sanitization is better done in the
6164 resulting HTML using `xss-sanitize`, which is based on pandoc's
6165 sanitization, but improved.
6167 * pandoc now adds a newline to the end of its output in fragment
6168 mode (= not `--standalone`).
6170 * Added support for `lang` in `html` tag in the HTML template,
6171 so you can do `pandoc -s -V lang=es`, for example.
6173 * `highlightHtml` in `Text.Pandoc.Highlighting` now takes
6174 a boolean argument that selects between "inline" and
6175 "block" HTML.
6177 * `Text.Pandoc.Writers.RTF` now exports `rtfEmbedImage`.
6178 Images are embedded in RTF output when possible (png, jpeg).
6179 Resolves Issue #275.
6181 * Added `Text.Pandoc.Pretty`. This is better suited for pandoc than the
6182 `pretty` package. Changed all writers that used
6183 `Text.PrettyPrint.HughesPJ` to use `Text.Pandoc.Pretty` instead.
6185 * Rewrote `writeNative` using the new prettyprinting module. It is
6186 now much faster. The output has been made more consistent and compressed.
6187 `writeNative` is also now sensitive to writerStandalone`, and will simply
6188 `print a block list if writerStandalone` is False.
6190 * Removed `Text.Pandoc.Blocks`. `Text.Pandoc.Pretty` allows you to define
6191 blocks and concatenate them, so a separate module is no longer needed.
6193 * `Text.Pandoc.Shared`:
6195 + Added `writerColumns`, `writerChapters`, and `writerHtml5` to
6196 `WriterOptions`.
6197 + Added `normalize`.
6198 + Removed unneeded prettyprinting functions:
6199 `wrapped`, `wrapIfNeeded`, `wrappedTeX`, `wrapTeXIfNeeded`, `hang'`,
6200 `BlockWrapper`, `wrappedBlocksToDoc`.
6201 + Made `splitBy` take a test instead of an element.
6202 + Added `findDataFile`, refactored `readDataFile`.
6203 + Added `stringify`. Rewrote `inlineListToIdentifier` using `stringify`.
6204 + Fixed `inlineListToIdentifier` to treat '\160' as ' '.
6206 * `Text.Pandoc.Readers.HTML`:
6208 + Removed `rawHtmlBlock`, `anyHtmlBlockTag`, `anyHtmlInlineTag`,
6209 `anyHtmlTag`, `anyHtmlEndTag`, `htmlEndTag`, `extractTagType`,
6210 `htmlBlockElement`, `htmlComment`
6211 + Added `htmlTag`, `htmlInBalanced`, `isInlineTag`, `isBlockTag`,
6212 `isTextTag`
6214 * Moved `smartPunctuation` from `Text.Pandoc.Readers.Markdown`
6215 to `Text.Pandoc.Readers.Parsing`, and parameterized it with
6216 an inline parser.
6218 * Added `nonspaceChar` to `Text.Pandoc.Parsing`.
6220 * Ellipses are no longer allowed to contain spaces.
6221 Previously we allowed '. . .', ' . . . ', etc. This caused
6222 too many complications, and removed author's flexibility in
6223 combining ellipses with spaces and periods.
6225 * Allow linebreaks in URLs (treat as spaces). Also, a string of
6226 consecutive spaces or tabs is now parsed as a single space. If you have
6227 multiple spaces in your URL, use `%20%20`.
6229 * `Text.Pandoc.Parsing`:
6231 + Removed `refsMatch`.
6232 + Hid `Key` constructor.
6233 + Removed custom `Ord` and `Eq` instances for `Key`.
6234 + Added `toKey` and `fromKey` to convert between `Key` and `[Inline]`.
6235 + Generalized type on `readWith`.
6237 * Small change in calculation of relative widths of table columns.
6238 If the size of the header > the specified column width, use
6239 the header size as 100% for purposes of calculating
6240 relative widths of columns.
6242 * Markdown writer now uses some pandoc-specific features when `--strict`
6243 is not specified: `\` newline is used for a hard linebreak instead of
6244 two spaces then a newline. And delimited code blocks are used when
6245 there are attributes.
6247 * HTML writer: improved gladTeX output by setting ENV appropriately
6248 for display or inline math (Jonathan Daugherty).
6250 * LaTeX writer: Use `\paragraph`, `\subparagraph` for level 4,5 headers.
6252 * LaTeX reader:
6254 + `\label{foo}` and `\ref{foo}` now become `{foo}` instead of `(foo)`.
6255 + `\index{}` commands are skipped.
6257 * Added `fontsize` variable to default LaTeX template.
6258 This makes it easy to set the font size using `markdown2pdf`:
6259 `markdown2pdf -V fontsize=12pt input.txt`.
6261 * Fixed problem with strikeout in LaTeX headers when using
6262 hyperref, by adding a command to the default LaTeX template
6263 that disables `\sout` inside pdf strings. Thanks to Joost Kremers
6264 for the fix.
6266 * The `COLUMNS` environment variable no longer has any effect.
6268 [under-the-hood improvements]
6270 * Pandoc now compiles with GHC 7. (This alone leads to a
6271 significant performance improvement, 15-20%.)
6273 * Completely rewrote HTML reader using tagsoup as a lexer. The
6274 new reader is faster and more accurate. Unlike the
6275 old reader, it does not get bogged down on some input
6276 (Issues #277, 255). And it handles namespaces in tags
6277 (Issue #274).
6279 * Replaced `escapeStringAsXML` with a faster version.
6281 * Rewrote `spaceChar` and some other parsers in Text.Pandoc.Parsing
6282 for a significant performance boost.
6284 * Improved performance of all readers by rewriting parsers.
6286 * Simplified Text.Pandoc.CharacterReferences by using
6287 entity lookup functions from TagSoup.
6289 * `Text.Pandoc.UTF8` now uses the unicode-aware IO functions
6290 from `System.IO` if base >= 4.2. This gives support for
6291 windows line endings on windows.
6293 * Remove duplications in documentation by generating the
6294 pandoc man page from README, using `MakeManPage.hs`.
6296 * README now includes a full description of markdown syntax,
6297 including non-pandoc-specific parts. A new `pandoc_markdown`
6298 man page is extracted from this, so you can look up markdown
6299 syntax by doing `man pandoc_markdown`.
6301 * Completely revised test framework (with help from Nathan Gass).
6302 The new test framework is built when the `tests` Cabal flag is set. It
6303 includes the old integration tests, but also some new unit and quickcheck
6304 tests. Test output has been much improved, and you can now specify a glob
6305 pattern after `cabal test` to indicate which tests should be run;
6306 for example `cabal test citations` will run all the citation tests.
6308 * Added a shell script, `stripansi.sh`, for filtering ANSI control
6309 sequences from test output: `cabal test | ./stripansi.sh > test.log`.
6311 * Added `Interact.hs` to make it easier to use ghci while developing.
6312 `Interact.hs` loads `ghci` from the `src` directory, specifying
6313 all the options needed to load pandoc modules (including
6314 specific package dependencies, which it gets by parsing
6315 dist/setup-config).
6317 * Added `Benchmark.hs`, testing all readers + writers using criterion.
6319 * Added `stats.sh`, to make it easier to collect and archive
6320 benchmark and lines-of-code stats.
6322 * Added upper bounds to all cabal dependencies.
6324 * Include man pages in extra-source-files. This allows users to
6325 install pandoc from the tarball without needing to build the man
6326 pages.
6328 [bug fixes]
6330 * Filenames are encoded as UTF8. Resolves Issue #252.
6332 * Handle curly quotes better in `--smart` mode. Previously, curly quotes
6333 were just parsed literally, leading to problems in some output formats.
6334 Now they are parsed as `Quoted` inlines, if `--smart` is specified.
6335 Resolves Issue #270.
6337 * Text.Pandoc.Parsing: Fixed bug in grid table parser.
6338 Spaces at end of line were not being stripped properly,
6339 resulting in unintended LineBreaks.
6341 * Markdown reader:
6343 + Allow HTML comments as inline elements in markdown.
6344 So, `aaa <!-- comment --> bbb` can be a single paragraph.
6345 + Fixed superscripts with links: `^[link](/foo)^` gets
6346 recognized as a superscripted link, not an inline note followed by
6347 garbage.
6348 + Fixed regression, making markdown reference keys case-insensitive again.
6349 Resolves Issue #272.
6350 + Properly handle abbreviations (like `Mr.`) at the end of a line.
6351 + Better handling of intraword underscores, avoiding exponential
6352 slowdowns in some cases. Resolves Issue #182.
6353 + Fixed bug in alignments in tables with blank rows in the header.
6355 * RST reader:
6357 + Field lists now allow spaces in field names, and
6358 block content in field values. (Thanks to Lachlan Musicman
6359 for pointing out the bug.)
6360 + Definition list items are now always `Para` instead of
6361 `Plain`, matching behavior of `rst2xml.py`.
6362 + In image blocks, the description is parsed properly and
6363 used for the alt attribute, not also the title.
6364 + Skip blank lines at beginning of file. Resolves
6365 Debian #611328.
6367 * LaTeX reader:
6369 + Improved parsing of preamble.
6370 Previously you'd get unexpected behavior on a document that
6371 contained `\begin{document}` in, say, a verbatim block.
6372 + Allow spaces between `\begin` or `\end` and `{`.
6373 + Support `\L` and `\l`.
6374 + Skip comments inside paragraphs.
6376 * LaTeX writer:
6378 + Escape strings in `\href{..}`.
6379 + In nonsimple tables, put cells in `\parbox`.
6381 * OpenDocument writer: don't print raw TeX.
6383 * Markdown writer:
6385 + Fixed bug in `Image`. URI was getting unescaped twice!
6386 + Avoid printing extra blank lines at the end if there are
6387 no notes or references.
6389 * LaTeX and ConTeXt: Escape `[` and `]` as `{[}` and `{]}`.
6390 This avoids unwanted interpretation as an optional argument.
6392 * ConTeXt writer: Fixed problem with inline code. Previously
6393 `}` would be rendered `\type{}}`. Now we check the string for '}' and '{'.
6394 If it contains neither, use `\type{}`; otherwise use `\mono{}`
6395 with an escaped version of the string.
6397 * `:` now allowed in HTML tags. Resolves Issue #274.
6399pandoc (1.6)
6401 [ John MacFarlane ]
6403 * New EPUB and HTML Slidy writers. (Issue #122)
6405 - EPUB is a standard ebook format, used in Apple's iBooks for
6406 the iPad and iPhone, Barnes and Noble's nook reader, the Sony
6407 reader, and many other devices.
6408 - Slidy, like S5, is a system for producing HTML+javascript slide
6409 shows.
6411 * All input is assumed to be UTF-8, no matter what the locale and ghc
6412 version, and all output is UTF-8. This reverts to pre-1.5 behavior.
6413 Also, a BOM, if present, is stripped from the input.
6415 * Markdown now supports grid tables, whose cells can contain
6416 arbitrary block elements. (Issue #43)
6418 * Sequentially numbered example lists in markdown with `@` marker.
6420 * Markdown table captions can begin with a bare colon and no longer need
6421 to include the English word "table." Also, a caption can now occur
6422 either before or after the table. (Issue #227)
6424 * New command-line options:
6426 - `--epub-stylesheet` allows you to specify a CSS file that will
6427 be used to style your ebook.
6428 - `--epub-metadata` allows you to specify metadata for the ebook.
6429 - `--offline` causes the generated HTML slideshow to include all
6430 needed scripts and stylesheets.
6431 - `--webtex` causes TeX math to be converted to images using the
6432 Google Charts API (unless a different URL is specified).
6433 - `--section-divs` causes div tags to be added around each section
6434 in an HTML document. (Issue #230, 239)
6436 * Default behavior of S5 writer in standalone mode has changed:
6437 previously, it would include all needed scripts and stylesheets
6438 in the generated HTML; now, only links are included unless
6439 the `--offline` option is used.
6441 * Default behavior of HTML writer has changed. Between 1.2 and 1.5,
6442 pandoc would enclose sections in div tags with identifiers on the
6443 div tags, so that the sections can be manipulated in javascript.
6444 This caused undesirable interactions with raw HTML div tags. So,
6445 starting with 1.6, the default is to put the identifiers directly
6446 on the header tags, and not to include the divs. The `--section-divs`
6447 option selects the 1.2-1.5 behavior.
6449 * API changes:
6451 - `HTMLMathMethod`: Added `WebTeX`, removed `MimeTeX`.
6452 - `WriterOptions`: Added `writerUserDataDir`, `writerSourceDirectory`,
6453 `writerEPUBMetadata` fields. Removed `writerIncludeBefore`,
6454 `writerIncludeAfter`.
6455 - Added `headerShift` to `Text.Pandoc.Shared`.
6456 - Moved parsing code and `ParserState` from `Text.Pandoc.Shared`
6457 to a new module, `Text.Pandoc.Parsing`.
6458 - Added `stateHasChapters` to `ParserState`.
6459 - Added `HTMLSlideVariant`.
6460 - Made `KeyTable` a map instead of an association list.
6461 - Added accessors for `Meta` fields (`docTitle`, `docAuthors`,
6462 `docDate`).
6463 - `Pandoc`, `Meta`, `Inline`, and `Block` have been given `Ord`
6464 instances.
6465 - Reference keys now have a type of their own (`Key`), with its
6466 own `Ord` instance for case-insensitive comparison.
6467 - Added `Text.Pandoc.Writers.EPUB`.
6468 - Added `Text.Pandoc.UUID`.
6469 - Removed `Text.Pandoc.ODT`, added `Text.Pandoc.Writers.ODT`.
6470 Removed `saveOpenDocumentAsODT`, added `writeODT`.
6471 - Added `Text.Pandoc.Writers.Native` and `writeNative`.
6472 Removed `prettyPandoc`.
6473 - Added `Text.Pandoc.UTF8` for portable UTF8 string IO.
6474 - Removed `Text.Pandoc.Writers.S5` and the `writeS5` function.
6475 Moved `s5Includes` to a new module, `Text.Pandoc.S5`.
6476 To write S5, you now use `writeHtml` with `writerSlideVariant`
6477 set to `S5Slides` or `SlidySlides`.
6479 * Template changes. If you use custom templates, please update them,
6480 particularly if you use syntax highlighting with pandoc. The old HTML
6481 templates hardcoded highlighting CSS that will no longer work with
6482 the most recent version of highlighting-kate.
6484 - HTML template: avoid empty meta tag if no date.
6485 - HTML template: Use default highlighting CSS from highlighting-kate
6486 instead of hard-coding the CSS into the template.
6487 - HTML template: insert-before text goes before the title, and
6488 immediately after the <body> tag, as documented. (Issue #241)
6489 - Added slidy and s5 templates.
6490 - Added amssymb to preamble of latex template. (github Issue 1)
6492 * Removed excess newlines at the end of output. Note: because output
6493 will not contain an extra newline, you may need to make adjustments
6494 if you are inserting pandoc's output into a template.
6496 * In S5 and slidy, horizontal rules now cause a new slide, so you
6497 are no longer limited to one slide per section.
6499 * Improved handling of code in man writer. Inline code is now monospace,
6500 not bold, and code blocks now use .nf (no fill) and .IP (indented para).
6502 * HTML reader parses `<tt>` as Code. (Issue #247)
6504 * html+lhs output now contains bird tracks, even when compiled without
6505 highlighting support. (Issue #242)
6507 * Colons are now no longer allowed in autogenerated XML/HTML identifiers,
6508 since they have a special meaning in XML.
6510 * Code improvements in ODT writer. Remote images are now replaced with
6511 their alt text rather than a broken link.
6513 * LaTeX reader improvements:
6515 - Made latex `\section`, `\chapter` parsers more forgiving of
6516 whitespace.
6517 - Parse `\chapter{}` in latex.
6518 - Changed `rawLaTeXInline` to accept `\section`, `\begin`, etc.
6519 - Use new `rawLaTeXInline'` in LaTeX reader, and export `rawLaTeXInline`
6520 for use in markdown reader.
6521 - Fixes bug wherein `\section{foo}` was not recognized as raw TeX
6522 in markdown document.
6524 * LaTeX writer: images are automatically shrunk if they would extend
6525 beyond the page margin.
6527 * Plain, markdown, RST writers now use unicode for smart punctuation.
6529 * Man writer converts math to unicode when possible, as in other writers.
6531 * `markdown2pdf` can now recognize citeproc options.
6533 * Command-line arguments are converted to UTF-8. (Issue #234)
6535 * `Text.Pandoc.TeXMath` has been rewritten to use texmath's parser.
6536 This allows it to handle a wider range of formulas. Also, if a formula
6537 cannot be converted, it is left in raw TeX; formulas are no longer
6538 partially converted.
6540 * Unicode curly quotes are left alone when parsing smart quotes. (Issue
6541 #143)
6543 * Cabal file changes:
6545 - Removed parsec < 3 restriction.
6546 - Added 'threaded' flag for architectures where GHC lacks a threaded
6547 runtime.
6548 - Use 'threaded' only for markdown2pdf; it is not needed for pandoc.
6549 - Require highlighting-kate 0.2.7.
6551 * Use explicit imports from `Data.Generics`. Otherwise we have a
6552 conflict with the 'empty' symbol, introduced in syb >= 0.2. (Issue #237)
6554 * New data files: slidy/slidy.min.js, slidy/slidy.min.css, epub.css.
6556pandoc (1.5.1.1)
6558 [ John MacFarlane ]
6560 * Fixed uniqueIdent in Shared so that header identifiers work as
6561 advertized in the README and are are valid XHTML names.
6563pandoc (1.5.1)
6565 [ John MacFarlane ]
6567 * Fixed treatment of unicode characters in URIs.
6568 + Shared now exports escapeURI and unescapeURI. These handle
6569 UTF8 encoding and decoding as well as URI escaping/unescaping.
6570 + Shared: uri and emailAddress now return a pair of the original
6571 parsed text and the escaped URI (in the latter case, with
6572 the mailto: prefix).
6573 + HTML reader: unsanitaryURI has been modified to allow unicode
6574 high characters in a URI.
6575 + Readers: All link and image URIs are now escaped using
6576 escapeURI.
6577 + Markdown and RST writers: unescapeURI is used so that URIs
6578 in these formats are human-readable.
6580 * Setup.hs: Don't assume that the build directory is "dist".
6581 Instead, get it from localBuildInfo.
6583 * OpenDocument writer: Use a Map for stTextStyleAttr.
6584 This avoids duplicates (and invalid xml). Resolves Issue #222.
6586pandoc (1.5.0.1)
6588 [ John MacFarlane ]
6590 * HTML writer: Fixed error in math writer (with MathML option)
6591 that caused an infinite loop for unparsable MathML.
6593pandoc (1.5)
6595 [ John MacFarlane ]
6597 * Added --mathml option. When this is selected, pandoc will convert
6598 TeX math into MathML.
6599 + Added data/MathMLinHTML.js, which is included when no URL is
6600 provided for --mathml. This allows MathML to be displayed (in
6601 better browsers) as text/html.
6602 + Removed Text.Pandoc.LaTeXMathML. The module was no longer
6603 necessary; it was replaced by two lines in pandoc.hs.
6604 + Replaced LaTeXMathML.js.commend and LaTeXMathML.js.packed with a
6605 single combined file, LaTeXMathML.js.
6607 * Added --data-dir option.
6608 This specifies a user data directory. If not specified, will default
6609 to ~/.pandoc on unix or Application Data\pandoc on Windows.
6610 Files placed in the user data directory will override system default
6611 data files.
6613 * Added Maybe datadir parameter to readDataFile, saveOpenDocumentAsODT,
6614 latexMathMLScript, s5HeaderIncludes, and getDefaultTemplate. If
6615 Nothing, no user directory is searched for an override.
6617 * Added 'plain' output format. This is similar to markdown, but
6618 removes links, pictures, inline formatting, and most anything that
6619 looks even vaguely markupish. The function writePlain is exported by
6620 Text.Pandoc.Writers.Markdown, with which it shares most of its code.
6622 * Allow multi-line titles and authors in meta block.
6623 Titles may span multiple lines, provided continuation lines
6624 begin with a space character. Separate authors may be put on
6625 multiple lines, provided each line after the first begins with
6626 a space character. Each author must fit on one line. Multiple
6627 authors on a single line may still be separated by a semicolon.
6628 Based on a patch by Justin Bogner.
6630 * When given an absolute URI as parameter, pandoc will try to fetch
6631 the content via HTTP. So you can do:
6632 'pandoc -r html -w markdown http://www.fsf.org'
6633 Adds dependency on HTTP.
6635 * Made HTML reader much more forgiving.
6636 + Incorporated idea (from HXT) that an element can be closed
6637 by an open tag for another element.
6638 + Javascript is partially parsed to make sure that a <script>
6639 section is not closed by a </script> in a comment or string.
6640 + More lenient non-quoted attribute values.
6641 Now we accept anything but a space character, quote, or <>.
6642 This helps in parsing e.g. www.google.com!
6643 + Bare & signs are now parsed as a string. This is a common
6644 HTML mistake.
6645 + Skip a bare < in malformed HTML.
6647 * Removed html2markdown and hsmarkdown.
6648 + html2markdown is no longer needed, since you can now pass URI
6649 arguments to pandoc and directly convert web pages. (Note,
6650 however, that pandoc assumes the pages are UTF8. html2markdown
6651 made an attempt to guess the encoding and convert them.)
6652 + hsmarkdown is pointless -- a large executable that could be
6653 replaced by 'pandoc --strict'.
6655 * In most writers, an image in a paragraph by itself is now rendered
6656 as a figure, with the alt text as the caption. (Texinfo, HTML, RST,
6657 MediaWiki, Docbook, LaTeX, ConTeXt, HTML.) Other images are
6658 rendered inline.
6660 * Depend on extensible-exceptions. This allows pandoc to be compiled
6661 on GHC 6.8.
6663 * Added --base-header-level option. For example, --base-header-level=2
6664 will change level 1 headers to level 2, level 2 to level 3, etc.
6665 Closes Debian #563416.
6667 * Incomplete support for RST tables (simple and grid).
6668 Thanks to Eric Kow. Colspans and rowspans not yet supported.
6670 * Added accessors (docTitle, docAuthors, docDate) to Meta type.
6672 * MediaWiki writer: format links with relative URLs as wikilinks.
6673 The new rule: If the link target is an absolute URL, an external
6674 link is created. Otherwise, a wikilink is created.
6676 * Text.Pandoc.Shared: Export uniqueIdent, and don't allow tilde in
6677 identifier. Note: This may break links to sections that involve
6678 tildes.
6680 * Markdown(+lhs) reader: handle "inverse bird tracks."
6681 Inverse bird tracks (<) are used for haskell example code that is not
6682 part of the literate Haskell program. Resolves Issue #211.
6684 * LaTeX reader:
6685 + Recognize '\ ' (interword space).
6686 + Recognize nonbreaking space '~'.
6687 + Ignore \section, \pdfannot, \pdfstringdef. Ignore alt title in
6688 section headers. Don't treat \section as inline LaTeX.
6689 Resolves Issue #202.
6690 + LaTeX reader: allow any special character to be escaped.
6691 Resolves Issue #221.
6692 + LaTeX reader: treat \paragraph and \subparagraph as level 4, 5
6693 headers. Resolves Issue #207.
6695 * Use template variables for include-before/after.
6696 + These options now imply -s; previously they worked also in fragment
6697 mode.
6698 + Users can now adjust position of include-before and include-after
6699 text in the templates.
6700 + Default position of include-before moved back (as it was before 1.4)
6701 before table of contents.
6702 + Resolves Issue #217.
6704 * Don't print an empty table header: (all writers).
6705 Resolves Issue #210.
6707 * HTML, Docbook writer: Use tbody, thead, and cols in tables.
6709 * HTML writer: Don't include TOC div if table of contents is empty.
6711 * Markdown writer: Fixed citations.
6712 Previously the markdown writer printed raw citation codes, e.g.
6713 [geach1970], rather than the expanded citations provided by
6714 citeproc, e.g. (Geach 1970). Now it prints the expanded citations.
6715 This means that the document produced can be processed as a markdown
6716 document without citeproc. Thanks to dsanson for reporting, and
6717 Andrea Rossato for the patch.
6719 * Improved and simplified title block in context template.
6720 Previously it caused an error if there was no title.
6721 This method should also be easier for users to customize.
6723 * Markdown reader:
6724 + Treat p., pp., sec., ch., as abbreviations in smart mode.
6725 + Disallow blank lines in inline code span.
6726 + Allow footnotes to be indented < 4 spaces.
6727 This fixes a regression. A test case has been added.
6728 + Escape spaces in URLs as %20. Previously they were incorrectly
6729 escaped as +, which is appropriate only for the query part of
6730 a URL. Resolves Issue #220.
6731 + Require two spaces after capital letter + period for list item.
6732 Otherwise "E. coli" starts a list. This might change the semantics
6733 of some existing documents, since previously the two-space
6734 requirement was only enforced when the second word started
6735 with a capital letter. But it is consistent with the existing
6736 documentation and follows the principle of least surprise.
6737 Resolves Issue #212.
6739 * LaTeX template: redefine labelwidth when using enumerate package.
6740 Otherwise the list labels (numbers) often extend past the left
6741 margin, which looks bad.
6743 * Mediawiki writer: Don't print a "== Notes ==" header before
6744 references. This is too English-centric. Writers can provide their
6745 own header at the end of the document.
6747 * Promoted mediawiki headers. '= head =' is now level 1, '== head =='
6748 level 2, etc. This seems to be correct; it's only by convention
6749 that wikipedia articles have level 2 headers at most.
6750 Patch due to Eric Kow.
6752 * RunTests.hs: Set LANG to a UTF-8 locale. Use 'pandoc --data-dir=' so
6753 data files don't need to have been installed. This removes the need to
6754 set HOME.
6756 * HTML reader:
6757 + Handle spaces before <html>. Resolves Issue #216.
6758 + Be forgiving in parsing a bare list within a list.
6759 The following is not valid xhtml, but the intent is clear:
6760 <ol>
6761 <li>one</li>
6762 <ol><li>sub</li></ol>
6763 <li>two</li>
6764 </ol>
6765 We'll treat the <ol> as if it's in a <li>. Resolves Issue #215.
6767 * Updated INSTALL instructions. cabal method is now promoted.
6769 * Updated markdown2pdf man page. It no longer says all pandoc options
6770 are accepted.
6772 * README/man pages: Removed advice to pipe through tidy before HTML
6773 reader. This is obsolete, now that we have a forgiving HTML parser.
6775 * LaTeX writer: set numbersections template variable, so
6776 the section numbering options work again.
6778 * Removed obsolete Makefile.
6780 * Website: renamed index.txt.in -> index.txt.
6782 * New batch file to make-windows-installer.
6783 + Removed old Makefile.windows
6784 + Added make-windows-installer.bat
6785 + Modified default installer name in pandoc-setup.iss
6787 * Removed freebsd and macports directories.
6788 They are no longer up to date.
6790 * Setup.hs:
6791 + Made man page building sensitive to build verbosity.
6792 + Improved detection of highlighting support in test hook.
6793 + Install wrapper scripts into cabal bin directory.
6794 + Also simplified installManpages.
6795 + Setup.hs: install manpages to mandir. Code borrowed from darcs.
6797 * Changed default of writerXeTeX to False.
6799 * HTML writer: don't include empty UL if --toc but no sections.
6800 Resolves Issue #199.
6802 * LaTeX writer:
6804 + If book, report, or memoir documentclass, use \chapter{}
6805 for first-level headers. Otherwise use \section{}.
6806 + Removed stLink, link template variable. Reason: we now always
6807 include hyperref in the template.
6809 * LaTeX template:
6811 + Only show \author if there are some.
6812 + Always include hyperref package. It is used not just for links but
6813 for toc, section heading bookmarks, footnotes, etc. Also added
6814 unicode=true on hyperref options.
6816 * markdown2pdf: always do at least two runs. hyperref bookmarks
6817 require this.
6819 * cabal file: Removed unneeded dependency on template-haskell.
6821 * Windows installer - fixed bug in data file locations.
6822 Resolves Issue #197.
6824 * Deprecated --custom-header in documentation.
6825 Removed old "Custom Headers" section in README.
6827pandoc (1.4)
6829 [ John MacFarlane ]
6831 * Pandoc will now compile with either GHC 6.10 or 6.12.
6832 + Don't use System.IO.UTF8 when compiling with 6.12
6833 + Use -fno-warn-unused-do-bind option when compiling with 6.12
6835 * Replaced old headers with templates. Now users have much more
6836 control over the way documents appear in --standalone mode,
6837 and writer code is simplified. Resolves Issues #59, 147.
6838 Every effort has been made to retain backwards compatibilty.
6839 So, the --custom-header option should still work as before.
6841 + Added Text.Pandoc.Templates. This provides functions for
6842 retrieving default templates and for rendering templates.
6843 + System templates (in the pandoc data directory) can be
6844 overridden by user templates in $HOME/.pandoc/templates.
6845 + Removed Text.Pandoc.DefaultHeaders.
6846 + Removed data/headers directory.
6847 + Added templates directory.
6848 + Added writerTemplate and writerVariables fields to WriterOptions.
6849 + Removed writerTitlePrefix, writerHeader fields from WriterOptions.
6850 + Changed --print-default-header to --print-default-template.
6851 + Added --template option.
6852 + Added -V/--variable option to set custom template variables.
6854 * Pandoc no longer requires Template Haskell. Resolves Issue #186.
6856 + Removed need for TH in ODT module. Instead get reference.odt from
6857 data file at run time.
6858 + Removed TH dependency from S5 module. S5 module now exports
6859 s5HeaderIncludes, which pandoc.hs includes if writer is s5 and
6860 standalone.
6861 + Refactored LaTeXMathML not to use TH.
6863 * Meta is now Meta [Inline] [[Inline]] [Inline] rather than
6864 Meta [Inline] [String] String. Authors and date in Meta are now lists
6865 of Inline elements rather than raw strings. This means that they can
6866 be formatted and can include footnotes. NOTE: This may be a breaking
6867 change for those using pandoc as a library.
6869 * Added readDataFile to Text.Pandoc.Shared. This retrieves
6870 a data file from the user pandoc data directory (~/.pandoc
6871 on unix), or, if not found there, from the system data
6872 directory ($CABALDIR/shared/pandoc-VERSION/). All data
6873 files, including templates, LaTeXMathML.js, s5 styles,
6874 and reference.odt, can be overridden by the user.
6876 * s5 files moved from data/ui/default to s5/default.
6878 * Use unicode instead of entities in HTML and XML output. Resolves
6879 Issue #163.
6881 * Prettier HTML footnote references: put anchor inside sup,
6882 instead of other way. Resolves Issue #191. Thanks to
6883 infinity0x.
6885 * Added --xetex option to pandoc and markdown2pdf.
6886 If --xetex is specified, pandoc produces latex suitable for
6887 processing by xelatex, and markdown2pdf uses xelatex to create
6888 the PDF. Resolves Issue #185.
6890 * RTF writer: multiple authors now occupy multiple paragraphs rather
6891 than using a line break.
6893 * Man writer: now the "--after-body" will come after the "AUTHORS"
6894 section, whereas before it would come before it. This is a
6895 slight break from backwards compatibility.
6897 * Added --reference-odt option, so users may customize the styles
6898 used in pandoc-generated ODT files. Users may also place a
6899 default reference.odt in the ~\.pandoc directory.
6901 * ODT writer:
6902 + Indented and line-broke styles.xml so it can be modified more easily.
6903 + Omitted some unnecessary style declarations.
6904 + Don't wrap text in OpenDocument writer. The tags are too long, making
6905 wrapping ugly and pointless.
6907 * LaTeX reader: use \\ to separate multiple authors.
6909 * Markdown reader: use ; as separator between authors.
6910 This allows you to use ',' within author names: e.g. "John Jones, Jr."
6912 * S5 writer: use linebreak to separate authors in title page.
6914 * RST reader: Allow :: before lhs code block. The RST spec requires the
6915 :: before verbatim blocks. This :: should not be treated as literal
6916 colons. Resolves Issue #189.
6918 * Documented pandoc 1.3's new definition list syntax in README.
6919 (An oversight in the last release.)
6921 * markdown2pdf.hs:
6922 + interpret ! in a log as an error line.
6923 + --toc now works properly.
6925 * Changes in RunTests.hs:
6926 + Use the Diff library rather than a local copy of Diff.hs.
6927 (This vastly increases performance.) This change means that 'cabal
6928 test' presupposes that the Diff library is installed.
6929 + Removed tests/Diff.hs from cabal file.
6930 + Changed RunTests to use local environment. We need at least HOME, so
6931 pandoc can find its data directory.
6933 * Updated windows installer to install data files in the app directory.
6935 * Windows installer now installs portable wrappers hsmarkdown and
6936 markdown2pdf.
6938pandoc (1.3)
6940 [ John MacFarlane ]
6942 * Added --id-prefix option (Issue #41). This adds a prefix to all
6943 automatically generated HTML identifiers, which helps prevent
6944 duplicate identifiers when you're generating a fragment (say a blog
6945 post).
6947 * Added --indented-code-classes option. This specifies classes
6948 to use for indented code blocks. (Patch due to buttock; Issue #87.)
6950 * --number-sections now affects HTML output as well as ConTeXt and LaTeX
6951 (Issue #150).
6953 * Improved syntax for markdown definition lists (Issue #24).
6954 Definition lists are now more compatible with PHP Markdown Extra.
6955 + You can have multiple definitions for a term (but still not
6956 multiple terms).
6957 + Multi-block definitions no longer need a column before each block
6958 (indeed, this will now cause multiple definitions).
6959 + The marker no longer needs to be flush with the left margin,
6960 but can be indented at or two spaces. Also, ~ as well as :
6961 can be used as the marker (this suggestion due to David
6962 Wheeler.)
6963 + There can now be a blank line between the term and the
6964 definitions.
6966 * Better looking simple tables. Resolves Issue #180.
6967 + Markdown reader: simple tables are now given column widths of 0.
6968 + Column width of 0 is interpreted as meaning: use default column width.
6969 + Writers now include explicit column width information only
6970 for multiline tables. (Exception: RTF writer, which requires
6971 column widths. In this case, columns are given equal widths,
6972 adding up to the text width.)
6973 + Simple tables should now look better in most output formats.
6975 * Allow markdown tables without headers (Issue #50).
6976 The new syntax is described in README. Also allow optional line of
6977 dashes at bottom of simple tables.
6979 * Compensate for width of final table column (Issue #144).
6981 * Treat a backslash followed by a newline as a hard line break
6982 in markdown. Resolves Issue #154. This is a nice alternative
6983 to markdown's "invisible" way of indicating hardline breaks
6984 using lines that end with two spaces.
6986 * Improved performance of markdown reader by ~10% by eliminating the
6987 need for a separate parsing pass for notes. Raw notes are now stored
6988 on the first pass (which parses references), then parsed when the
6989 note is inserted into the AST. The stateNotes field in ParserState
6990 is now a list of [(String, String)] pairs instead of [(String,
6991 [Block])].
6993 * In markdown reader, treat 4 or more * or _ in a row as literal
6994 text. (Trying to parse long strings of * or _ as strong or emph
6995 leads to exponential performance problems.)
6997 * Markdown reader: Use + rather than %20 for spaces in URLs.
6999 * Fixed htmlComment parser, adding a needed 'try'.
7001 * Don't print raw HTML in man output.
7003 * Allow . _ and ~ in header identifiers.
7005 * Specially mark code blocks that were "literate" in the input.
7006 They can then be treated differently in the writers. This allows
7007 authors to distinguish bits of the literate program they are writing
7008 from source code examples, even if the examples are marked as
7009 Haskell for highlighting. (Issue #174.)
7011 * Modified html+lhs output to use "haskell" highlighter instead
7012 of "literateHaskell". The highlighting module now adds bird tracks
7013 after highlighting (for HTML output), if the code block has the
7014 "literate" class. This gives better results, because kate's
7015 haskell highlighter is much better than the literateHaskell
7016 highlighter.
7018 * Fixed handling of footnotes in titles (HTML) and headers (LaTeX).
7019 (Issue #137.)
7021 * Support for "..code-block" directive in RST reader. Not core
7022 RST, but used in Sphinx for code blocks annotated with syntax
7023 information. Thanks to Luke Plant for the patch.
7025 * Added "head" to list of block-level HTML tags. Resolves
7026 Issue #108.
7028 * Added stripTags to Text.Pandoc.XML. This is used in the HTML writer.
7030 * Set utf-8 encoding in texinfo headers.
7032 * Docbook writer: add ids to sections. Use link for internal links.
7033 (Issue #60.)
7035 * Blank lines after lists in MediaWiki writer.
7037 * Properly handle commented-out list items in markdown.
7038 Resolves Issue #142. Example:
7040 - a
7041 <!--
7042 - b
7043 -->
7044 - c
7046 * Changed heuristic in compactify. compactify has to decide whether a
7047 Para that ends a list is a Para intentionally, or just because of
7048 the blank lines at the end of every list. In the latter case the
7049 Para is turned to a Plain. The old heuristic was: change final Para
7050 to Plain iff the other items all end in Plain. This produces bad
7051 results when, for example, an item contains just a Plain and an HTML
7052 comment, as it does in the list above. The new heuristic: change
7053 final Para to Plain iff the other items don't contain a Para.
7055 * Added % as an rst underline character. Resolves Issue #173.
7057 * Fix inline math parser so that \$ is allowed in math.
7058 Resolves Issue #169.
7060 * Translate \int (integral) into unicode when using unicode math
7061 method. Resolves Issue #177.
7063 * markdown2pdf.hs improvements:
7064 + Use System.IO.UTF8.
7065 + Print error messages on last attempt.
7066 + Do not create a backup when overwriting a PDF (Issue #166).
7067 + Accept --longopt=val options.
7068 + Added man/man1/markdown2pdf.1 to extra-tmp-files in cabal, so that
7069 it is properly cleaned.
7071 * Added haddock comments warning that readers assume \n line endings.
7073 * Updated COPYRIGHT file.
7075 * Makefile: Changed EXECSBASE so it doesn't pull in hsmarkdown &
7076 markdown2pdf. Otherwise strip tries to strip shell scripts when you
7077 install using 'make'.
7079 * Changed Makefile so it doesn't build Haskell wrappers.
7081 * Fixed Makefile so it doesn't try to build man pages in build-doc.
7083 * Install pcre3.dll in Windows install script; this allows us to
7084 package a version of pandoc with highlighting support.
7086pandoc (1.2.1)
7088 [ John MacFarlane ]
7090 * Fixed regression with --preserveTabs. Brought back optPreserveTabs.
7091 The trick of setting tabStop to 0 to mean "preserve tabs" had a bad
7092 side effect: strings of 0 spaces were interpreted as indentation.
7093 So, with --preserve-tabs, unindented paragraphs were treated as
7094 code. Resolves Issue #138.
7096 * HTML writer: wrap sections in divs. Resolves Issue #70.
7098 + hierarchicalize has been rationalized; it builds a hierarchical
7099 representation of the document from the headers, and simultaneously
7100 gives each section a unique identifier based on the heading title.
7101 + Identifiers are now attached to the divs rather than
7102 to the headers themselves.
7103 + Table of content backlinks go to the beginning of the table, rather
7104 than to the section reference that was clicked.
7105 + Code for constructing identifiers has been moved to Text.Pandoc.Shared
7106 from the HTML writer, since it is now consumed only by
7107 hierarchicalize.
7108 + In --strict mode, pandoc just prints bare headings, as before
7109 (unless --toc has been specified).
7110 + In s5 output, it does not wrap sections in divs, as that seems to
7111 confuse the s5 javascript.
7113 * Man writer: break lines at end of each sentence. groff expects this
7114 and treats '.' and '?' differently when followed by line ending as
7115 opposed to ordinary space. Also, don't escape periods. Instead, use
7116 zero-width character \& to avoid unwanted interpretation of periods
7117 at start of line. Resolves Issue #148.
7119 * Markdown writer: Added '#' and '>' to list of characters to be
7120 escaped in markdown output. Removed '<', as it is not an officially
7121 escapable character. This partially resolves Issue #96.
7123 * Make --smart the default for man output format. Otherwise we have
7124 trouble dividing lists of endlines into sentences.
7126 * DocBook writer: Use language attribute to indicate source language
7127 in code blocks.
7129 * RST reader:
7131 + Allow # to continue list, even if the list was started with an
7132 explicit marker. For example:
7134 A. my list
7135 #. continued
7137 Resolves Issue #140.
7138 + Allow continuation lines in line blocks. Also added test cases for
7139 line blocks for RST reader. Resolves Issue #149.
7140 + Allow explicit links with spaces in URL: `link <to this>`_
7142 * Improved LaTeX reader's coverage of math modes. Remove displaymath*
7143 (which is not in LaTeX) and recognize all the amsmath environments
7144 that are alternatives to eqnarray, namely equation, equation*,
7145 gather, gather*, gathered, multline, multline*, align, align*,
7146 alignat, alignat*, aligned, alignedat, split. Resolves Issue #103.
7147 Thanks to shreevatsa.public for the patch.
7149 * Markdown reader:
7151 + Allow -, _, :, . in markdown attribute names. These are legal in
7152 XML attribute names.
7153 + Use non-breaking spaces in abbreviations.
7154 + Markdown reader: improved efficiency of abbreviation parsing.
7155 Instead of a separate abbrev parser, we just check for
7156 abbreviations each time we parse a string. This gives a huge
7157 performance boost with -S. Resolves Issue #141.
7159 * Improved efficiency of shared parsers: hexNum, htmlComment,
7160 whitespace, indentSpaces.
7162 * Export HTMLMathMethod in Text.Pandoc.
7164 * Export languagesByExtension in Text.Pandoc.Highlighting.
7166 * Added new Haskell version of markdown2pdf, due to
7167 Paulo Tanimoto. This should be more portable than the old
7168 shell script.
7170 * Made 'pandoc -v' more explicit about compiler options.
7171 Resolves Issue #139.
7173 * pandoc.hs: Made --strict compatible with --standalone, --toc.
7175 * Use Paths_pandoc to get version number, instead of hard-coding it
7176 into Text/Pandoc.hs.
7178pandoc (1.2)
7180 [ John MacFarlane ]
7182 * Added support for literate Haskell. lhs support is triggered by
7183 '+lhs' suffixes in formats. For example, 'latex+lhs' is literate
7184 Haskell LaTeX. '.lhs' files are treated by default as literate
7185 markdown.
7187 + Added stateLiterateHaskell to parser state.
7188 + Added parser for lhsCodeBlock to Markdown, RST, LaTeX readers.
7189 + Added parser for |inline lhs| to LaTeX reader.
7190 + Added writerLiterateHaskell to WriterOptions.
7191 + Added lhs support to Markdown, RST, LaTeX, HTML writers.
7192 + Added definition of code environment to LaTeX header.
7193 + Added tests (run only if highlighting support compiled in).
7194 + Documented lhs features in man page and README.
7196 * In Text.Pandoc.Definition, added processWith, processWithM,
7197 and queryWith, and deprecated processPandoc and queryPandoc
7198 for these more general functions.
7200 * Fixed bug in mediawiki writer: improper closing tags in tables.
7201 Thanks to Benct Philip Jonsson for reporting the bug.
7203 * Added --email-obfuscation option.
7205 + Added writer option for email obfuscation.
7206 + Implemented email obfuscation options in HTML writer.
7207 + Added option to option parser.
7208 + Documented in README and pandoc man page.
7209 + Resolves Issue #97.
7211 * LaTeX writer: fixed bug with empty table cells.
7212 Resolves Issue #107. Thanks to rodja.trappe for the patch.
7214 * Fixed bug with header spacing in Markdown and RST writers.
7215 A null header (Meta [] [] []) should not cause a blank line
7216 at the beginning of output. But a blank line is needed between
7217 a non-null header and the main text.
7219 * Markdown reader: Relax spacing rules for $$ in display math. Now
7220 space and newlines are allowed after the opening $$ and before the
7221 closing $$. However, the display math cannot contain an entirely
7222 blank line. Resolves Issue #105.
7224 * Markdown reader: Gobble space after Plain blocks containing only
7225 raw html inline. Otherwise following header blocks are not parsed
7226 correctly, since the parser sees blank space before them. Resolves
7227 Issue #124.
7229 * Markdown reader: Allow " as well as '' to end a latex double-quote.
7231 * Conditionally depend on syb and base >= 4 if ghc >= 6.10.
7232 Resolves Issue #109.
7234 * Fixed problems in RST and markdown output due to bug in pretty-1.0.1.0
7236 + Added hang' function to Text.Pandoc.Shared; this will be used instead
7237 of hang, which doesn't work properly in pretty-1.0.1.0. When pretty
7238 is upgraded, we can go back to hang.
7239 See http://article.gmane.org/gmane.comp.lang.haskell.general/16687
7240 + Use hang' (and some different techniques) in RST and markdown writers.
7241 Some output is now a bit different.
7243 * Brought citeproc support up to date for citeproc-hs-0.2.
7244 (Patch by Andrea Rossato.)
7246 * Moved all haskell source to src subdirectory. Renamed Main.hs to
7247 pandoc.hs.
7249 * Rewrote hsmarkdown in Haskell for portability (src/hsmarkdown.hs).
7250 For now, keeping the old shell script too.
7252 * Added TemplateHaskell to Extensions for executable, removed
7253 -threaded for library. Thanks to duncan.coutts for the bug report.
7254 Resolves Issue #121.
7256 * Moved some Extra-Source-Files to Data-Files.
7258 * Moved tabFilter to Shared.
7260 * In pandoc.hs, removed optPreserveTabs; instead, tabstop of 0 means
7261 preserve tabs.
7263 * Minor code cleanup based on hlint suggestions.
7265pandoc (1.1)
7267 [ John MacFarlane ]
7269 * Main.hs:
7271 + Changed date on copyright message in Main.hs.
7272 + Have the '-v' option print syntax highlighting languages
7273 separated by commas, and wrapped in lines, instead of in five
7274 columns as before.
7276 * Added --jsmath option. Resolves Issue #68.
7278 + Added --jsmath option to Main.hs
7279 + Added JsMath to HTMLMathMethod in Text.Pandoc.Shared.
7280 + Handle math appropriately in HTML writer when JsMath selected.
7281 + Documented the option in README and man page.
7283 * Text.Pandoc.Shared: Changed compactify to use a better heuristic
7284 for tight and loose lists. Final Para is changed to Plain if all
7285 other list items *end* with a Plain block. Addresses Issue #99.
7287 * HTML reader:
7289 + Added colons to protocols in unsanitaryURI. Closes Issue #88.
7290 + HTML reader: Don't interpret contents of <pre> blocks as markdown.
7291 Added rawVerbatimBlock parser. Resolves Issue #94.
7293 * Markdown reader:
7295 + Allow URLs with spaces in them in links and references, but escape
7296 them as "%20".
7297 + Allow blank space at the end of horizontal rules.
7299 * RST reader: Modified 'unknownDirective' parser to handle comment
7300 blocks correctly, and added tests for comment blocks. Resolves Issue
7301 #86. Closes Debian Bug #500662.
7303 * HTML writer:
7305 + Include classes on tr elements in HTML output:
7306 "header", "odd", "even". This allows tables to be styled with
7307 lines in alternating colors. Resolves Issue #91.
7308 + Enclose all LaTeXMathML bits in <span class="LaTeX">.
7309 This prevents parts of the document that are not math from being
7310 interpreted as math by LaTeXMathML.js.
7312 * OpenDocument and ODT writers: Added support for HorizontalRule elements,
7313 which were formerly ignored. Resolves Issue #95.
7315 * Text.Pandoc.Shared: Modified wrappedTeX to eliminate the line break
7316 between a footnote and immediately following nonspace characters in
7317 LaTeX and ConTeXt output. (This gets interpreted as a space, which
7318 is not desired in cases like "text^[note]---".) Resolves Issue #93.
7320 * Windows installer: Don't require admin privileges to run
7321 installer. Modified pandoc-setup.iss, and changed modpath.iss to
7322 modify HKCU path if user lacks admin privileges. Also fixed case
7323 where oldpath is empty (previously this led to the new path
7324 beginning with a semicolon).
7326 * Updated INSTALL instructions for Arch packages and OS X install using
7327 cabal-install.
7329 * Removed the (now unneeded) debian directory.
7330 Removed empty Codec and System directories.
7332 * Moved odt-styles/ to data/. Removed unneeded variable in Makefile.
7334 * Modified Setup.hs so that the "test" target returns an error status
7335 when tests fail, and "build" returns a success status if
7336 the build succeeds. Resolves Issue #100.
7338 * Added BUGS to files in tarball.
7341pandoc (1.0.0.1)
7343 [ John MacFarlane ]
7345 * Removed spurious reference to pdf output format from pandoc(1) man page.
7347pandoc (1.0)
7349 [ Andrea Rossato ]
7351 * Added new OpenDocument writer.
7353 * Added support for SmallCaps inline element.
7355 * Added support for integrating pandoc with citeproc-hs.
7357 + Added Cite element to definition and writers.
7358 + Added Text.Pandoc.Biblio module
7359 + Note: This support is included only if the 'citeproc'
7360 Cabal configuration flag is set.
7362 * Made Pandoc data structure an instance of Typeable.
7363 Added new processPandoc and queryPandoc functions, to query
7364 or transform matching elements in a Pandoc structure.
7366 [ Peter Wang ]
7368 * Added new Texinfo writer.
7370 [ John MacFarlane ]
7372 * Changes to Texinfo writer:
7374 + No space between paragraph and following @verbatim (provides more
7375 pleasing appearance in text formats)
7376 + Blank line consistently after list environments.
7377 + Removed deVerb.
7378 + Use @code instead of @verb for inline code (this solves the character
7379 escaping problem for texi2dvi and texi2pdf).
7380 + Added news of Texinfo writer to README.
7381 + Added Texinfo to list of formats in man page, and removed extra 'groff'.
7382 + Added texi & texinfo extensions to Main.hs, and fixed bug in determining
7383 default output extension.
7384 + Modified disallowedInNode in Texinfo writer to correct list of disallowed characters.
7386 * Added tests for OpenDocument writer.
7388 * Added ODT writer (using zip-archive library to package output of
7389 OpenDocument writer). Added odt-styles directory with default ODT styles.
7391 * Added new mediawiki writer and tests.
7393 * Markdown reader: Added support for delimited code blocks, with optional
7394 syntax highlighting using highlighting-kate (if the 'highlighting'
7395 configuration option is selected).
7397 + Currently highlighting is supported only in the HTML writer.
7398 + Delimited code blocks can have attributes; using the language name as
7399 class triggers highlighting.
7400 + New Attributes parameter in CodeBlock structure.
7401 + --version now indicates whether syntax highlighting support is compiled
7402 in, and prints a list of supported languages
7404 * Removed debian directory. Pandoc is no longer a native debian package.
7406 * Changes to build process: pandoc can now be built from the repository
7407 using Cabal. No unix tools are needed (so, pandoc can be built on Windows
7408 without Cygwin).
7410 + Include shell scripts themselves in repo, rather than generating from wrappers.
7411 Removed wrappers directory and wrappers Makefile target.
7412 + Text/Pandoc/ASCIIMathML.hs, Text/Pandoc/DefaultHeaders.hs,
7413 and Text/Pandoc/Writers/S5.hs are no longer built in Makefile
7414 from templates in the templates/ directory. Instead, they use template
7415 haskell to read data at compile time from the relevant files in data/.
7416 Template haskell functions go in a new module, Text.Pandoc.TH.
7417 + man pages are now generated in Setup.hs hook, not by Makefile
7418 + Makefile 'tarball' target now calls Cabal's 'sdist'
7419 + Added "Extra-Source-Files" to pandoc.cabal, so sdist contains everything needed
7420 + Added "Build-Type" field to pandoc.cabal to avoid warning.
7421 + Added to "Extra-source-files" and "Extra-tmp-files" in pandoc.cabal,
7422 so 'sdist' and 'clean' will work properly.
7423 + Setup.hs now generates man pages in a postbuild hook.
7424 + Added dependency-checking to Setup.hs, so it only rebuilds things
7425 that need rebuilding.
7426 + Added 'library' and 'executable' configuration flags.
7427 Cabal can now be told to build just the library or just the executable.
7428 + CABALOPTS may now be specified with 'make' to pass Cabal configuration flags.
7429 For example: CABALOPTS=-fhighlighting make
7431 * Rewrote test suite so it doesn't depend on perl or unix tools.
7433 + Replaced old runtests.pl with a Haskell script RunTests.hs.
7434 + Added Diff.hs module to be used by RunTests.hs instead of unix 'diff'.
7435 + Added test hook to Setup.hs, so tests may be run from cabal.
7436 + Changed Makefile's 'test' target to run tests via cabal.
7437 + Removed old generate.sh.
7438 + Since we no longer have 'sed' to filter out raw HTML sections
7439 from the docbook writer test, or raw LaTeX sections from the
7440 context writer test, we now just include these sections.
7441 They can be taken out if it is necessary to process the files.
7442 + Updated latex and context writer tests to remove extra spaces
7443 after '\\item'
7444 + Added a markdown table reader test.
7445 + Added markdown-reader-more.txt to test suite, for additional test cases
7446 for raw ConTeXt environments and more.
7448 * Compatibility fixes for CPP, Cabal, and haddock:
7450 + Use CPP in "Extensions" field in pandoc.cabal.
7451 + Removed use of backslash string continuations in source files.
7453 * Removed pandoc.cabal.ghc66. We now require Cabal >= 1.2, GHC >= 6.8,
7454 base >= 3.
7456 * Require parsec < 3.
7457 The compatibility module in parsec 3.0.0 gives far worse performance than
7458 parsec 2.1. Eventually pandoc will be upgraded to use the new bytestring
7459 version of parsec, and then we'll go to parsec 3.0.0.
7461 * Removed Text.Regex dependencies by rewriting using plain Haskell
7462 (Text.Pandoc.Writers.RTF, Text.Pandoc.Writers.HTML, Main.hs)
7464 * Moved Text.Pandoc.Writers.DefaultHeaders -> Text.Pandoc.DefaultHeaders.
7466 * Makefile:
7468 + Added 'configure' as dependency of 'uninstall-all'.
7469 (It uses the Cabal build program.)
7470 + Makefile: only use --with-hc-pkg if GHC_PKG is defined.
7471 Note that Cabal will automatically choose the ghc-pkg appropriate
7472 for the compiler selected, so normally specifying GHC by itself
7473 is sufficient.
7475 * Removed Text.Pandoc.UTF8 module; instead, depend on utf8-string and use
7476 its IO and conversion functions.
7478 * Added -Wall to ghc-options in pandoc.cabal. Cleaned up modules so that
7479 everything is -Wall clean.
7481 + Added pragma to HTML writer to avoid deprecation warning for use of "start" attribute.
7482 + Added pragma to Text/Pandoc/Shared.hs to get rid of "orphan instance" warnings.
7483 (These are caused by the Lift instance for ByteString.)
7485 * Changed the comment used to replace unsafe HTML if sanitize-html option
7486 selected.
7488 * Made -c/--css option repeatable on the command line (like -H, -A, -B).
7490 * Moved XML-formatting functions to new unexported module Text.Pandoc.XML.
7492 * Escape '\160' as "&#160;", not "&nbsp;" in XML.
7493 "nbsp" isn't a predefined XML entity.
7495 * Fixed bug in RST reader, which would choke on: "p. one\ntwo\n".
7496 Added some try's in ordered list parsers.
7498 * Man writer: don't escape " as \".
7500 * Allow newline before URL in markdown link references. Resolves Issue #81.
7501 Added tests for this issue in new "markdown-reader-more" tests.
7502 Changed RunTests.hs to run these tests.
7504 * Support for display math. Resolves Issue #47.
7506 + Added a DisplayMath/InlineMath selector to Math inlines.
7507 + Markdown parser yields DisplayMath for $$...$$.
7508 + LaTeX parser yields DisplayMath when appropriate. Removed
7509 mathBlock parsers, since the same effect is achieved by the math
7510 inline parsers, now that they handle display math.
7511 + Writers handle DisplayMath as appropriate for the format.
7512 + Modified tests accordingly; added new tests for display math.
7514 * Use LaTeXMathML instead of ASCIIMathML. LaTeXMathML is closer
7515 to LaTeX in its display of math, and supports many non-math LaTeX environments.
7517 + Changed -m option to use LaTeXMathML rather than ASCIIMathML.
7518 + Modified HTML writer to print raw TeX when LaTeXMathML is
7519 being used instead of suppressing it.
7520 + Removed ASCIIMathML files from data/ and added LaTeXMathML.
7521 + Replaced ASCIIMathML with LaTeXMathML in source files.
7522 + Modified README and pandoc man page source.
7523 + Added --latexmathml option (kept --asciimathml as a synonym
7524 for backwards compatibility)
7526 * Markdown reader: Parse setext headers before atx headers.
7527 Test case:
7528 # hi
7529 ====
7530 parsed by Markdown.pl as an H1 header with contents "# hi".
7532 * Markdown reader: Treat "mixed" lists the same way as Markdown.pl does.
7533 The marker on the first list item determines the type of the whole
7534 list. Thus, a list like
7535 1. one
7536 - two
7537 * three
7538 gets parsed as a single ordered list. (Previous versions of pandoc
7539 treated this as an ordered list with an unordered sublist.)
7541 * Markdown smart typography:
7543 + Em dashes no longer eat surrounding whitespace. Resolves Issue #69.
7544 + Use nonbreaking spaces after known abbreviations in markdown parser.
7545 Thus, for example, "Mr. Brown" comes out as "Mr.~Brown" in LaTeX, and does
7546 not produce a sentence-separating space. Resolves Issue #75.
7548 * Markdown writer: Print unicode \160 literally, rather than as &nbsp;.
7550 * Treat '\ ' in (extended) markdown as nonbreaking space.
7551 Print nonbreaking space appropriately in each writer (e.g. ~ in LaTeX).
7553 * The '--sanitize-html' option now examines URIs in markdown links
7554 and images, and in HTML href and src attributes. If the URI scheme
7555 is not on a whitelist of safe schemes, it is rejected. The main point
7556 is to prevent cross-site scripting attacks using 'javascript:' URIs.
7557 See http://www.mail-archive.com/markdown-discuss@six.pairlist.net/msg01186.html
7558 and http://ha.ckers.org/xss.html. Resolves Issue #62.
7560 * HTML writer:
7562 + Override Text.XHtml's stringToHtml function,
7563 so that characters below 0xff are not converted to numerical entity
7564 references. Also convert '\160' to "&nbsp;". This should aid readability
7565 and editability of the HTML source. It does presuppose that the HTML
7566 will be served as UTF-8.
7567 + In code blocks, change leading newlines to <br /> tags.
7568 (Some browsers ignore them.) Resolves Issue #71.
7569 See http://six.pairlist.net/pipermail/markdown-discuss/2008-May/001297.html
7570 + Use style attributes rather than css classes for strikethrough
7571 and ordered list styles. This works better when fragments, rather than
7572 standalone documents, are generated.
7574 * HTML reader: Count anything that isn't a known block (HTML) tag as an
7575 inline tag (rather than the other way around). Added "html", "head", and
7576 "body" to list of block tags. Resolves Issue #66, allowing
7577 <lj> to count as an inline tag.
7579 * RTF writer: Fixed bug. Extra spaces were being printed after emphasized,
7580 boldface, and other inline elements. Resolves Issue #64.
7582 * LaTeX reader: improvements in raw LaTeX parsing.
7584 + "loose punctuation" (like {}) parsed as Space
7585 + Para elements must contain more than Str "" and Space elements
7586 + Added parser for "\ignore" command used in literate haskell.
7587 + Reworked unknownCommand and rawLaTeXInline: when not in "parse raw"
7588 mode, these parsers simply strip off the command part and allow
7589 the arguments to be parsed normally. So, for example,
7590 \blorg{\emph{hi}} will be parsed as Emph "hi" rather than
7591 Str "{\\emph{hi}}".
7592 + Parse lhs "code" environments as verbatim.
7593 Refactored parsers for verbatim environments.
7594 + Removed specialEnvironment parser.
7595 + parse '{}', if present, after \textless, \textgreater,
7596 \textbar, \textbackslash, \ldots.
7597 + Parse unescaped special characters verbatim rather than
7598 changing them to spaces. This way arguments of unknown
7599 commands will appear in braces.
7601 * Parse raw ConTeXt environments as TeX in markdown reader.
7602 Resolves Issue #73.
7604 * Moved BlockWrapper and wrappedBlocksToDoc from ConTeXt writer to Shared.
7606 * Made some structural changes to parsing of raw LaTeX environments.
7607 Previously there was a special block parser for LaTeX environments.
7608 It returned a Para element containing the raw TeX inline. This has
7609 been removed, and the raw LaTeX environment parser is now used in the
7610 rawLaTeXInline parser. The effect is exactly the same, except that we
7611 can now handle consecutive LaTeX and ConTeXt environments not separated
7612 by spaces. This new flexibility is required by the example in
7613 Issue #73:
7615 \placeformula \startformula
7616 L_{1} = L_{2}
7617 \stopformula
7619 API change: The LaTeX reader now exports rawLaTeXEnvironment' (which
7620 returns a string) rather than rawLaTeXEnvironment (which returns a block
7621 element). This is more likely to be useful in other applications.
7623 * Use \textsubscr instead of \textsubscript for LaTeX subscript macro.
7624 \textsubscript conflicts with a definition in the memoir class.
7625 Resolves Issue #65.
7627 * Removed unneeded space after "\\item" in LaTeX and ConTeXt output.
7629 * Added amsmath package to default LaTeX header. Resolves Issue #48.
7631 * Added \setupitemize[autointro] to ConTeXt header, to prevent orphaned
7632 list introduction lines.
7634 * Changed Float to Double in definition of Table element.
7635 (Double is more efficient in GHC.)
7637 * Fixed bug in Markdown parser: regular $s triggering math mode.
7638 For example: "shoes ($20) and socks ($5)."
7639 The fix consists in two new restrictions:
7641 + the $ that ends a math span may not be directly followed by a digit.
7642 + no blank lines may be included within a math span.
7644 Thanks to Joseph Reagle for noticing the bug.
7646 * Use Data.List's 'intercalate' instead of custom 'joinWithSep'.
7647 Removed 'joinWithSep' from Text.Pandoc.Shared.
7649 * Updated README and man pages. Acknowledge contributors in README.
7650 Added paragraph to README about producing S5 with separate CSS/javascript.
7652 * Updated INSTALL to reflect new build system (including configuration
7653 options) and document new dependencies. Added note to INSTALL that
7654 Cabal >= 1.2 is required for build. Resolves Issue #74.
7656 * Fixed some haddock documentation errors.
7658 * Small fix to markdown2pdf man page: only input needs to be piped through iconv.
7660pandoc (0.46) unstable; urgency=low
7662 [ John MacFarlane ]
7664 * Made -H, -A, and -B options cumulative: if they are specified
7665 multiple times, multiple files will be included.
7667 * Added optional HTML sanitization using a whitelist.
7668 When this option is specified (--sanitize-html on the command line),
7669 unsafe HTML tags will be replaced by HTML comments, and unsafe HTML
7670 attributes will be removed. This option should be especially useful
7671 for those who want to use pandoc libraries in web applications, where
7672 users will provide the input.
7674 + Main.hs: Added --sanitize-html option.
7676 + Text.Pandoc.Shared: Added stateSanitizeHTML to ParserState.
7678 + Text.Pandoc.Readers.HTML:
7679 - Added whitelists of sanitaryTags and sanitaryAttributes.
7680 - Added parsers to check these lists (and state) to see if a given
7681 tag or attribute should be counted unsafe.
7682 - Modified anyHtmlTag and anyHtmlEndTag to replace unsafe tags
7683 with comments.
7684 - Modified htmlAttribute to remove unsafe attributes.
7685 - Modified htmlScript and htmlStyle to remove these elements if
7686 unsafe.
7688 + Modified README and man pages to document new option.
7690 * Improved handling of email addresses in markdown and reStructuredText.
7691 Consolidated uri and email address parsers. (Resolves Issue #37.)
7693 + New emailAddress and uri parsers in Text.Pandoc.Shared.
7694 - uri parser uses parseURI from Network.URI.
7695 - emailAddress parser properly handles email addresses with periods
7696 in them.
7698 + Removed uri and emailAddress parsers from Text.Pandoc.Readers.RST
7699 and Text.Pandoc.Readers.Markdown.
7701 * Markdown reader:
7703 + Fixed emph parser so that "*hi **there***" is parsed as a Strong
7704 nested in an Emph. (A '*' is only recognized as the end of the
7705 emphasis if it's not the beginning of a strong emphasis.)
7707 + Moved blockQuote parser before list parsers for performance.
7709 + Modified 'source' parser to allow backslash-escapes in URLs.
7710 So, for example, [my](/url\(1\)) yields a link to /url(1).
7711 Resolves Issue #34.
7713 + Disallowed links within links. (Resolves Issue #35.)
7714 - Replaced inlinesInBalanced with inlinesInBalancedBrackets, which
7715 instead of hard-coding the inline parser takes an inline parser
7716 as a parameter.
7717 - Modified reference and inlineNote to use inlinesInBalancedBrackets.
7718 - Removed unneeded inlineString function.
7719 - Added inlineNonLink parser, which is now used in the definition of
7720 reference.
7721 - Added inlineParsers list and redefined inline and inlineNonLink parsers
7722 in terms of it.
7723 - Added failIfLink parser.
7725 + Better handling of parentheses in URLs and quotation marks in titles.
7726 - 'source' parser first tries to parse URL with balanced parentheses;
7727 if that doesn't work, it tries to parse everything beginning with
7728 '(' and ending with ')'.
7729 - source parser now uses an auxiliary function source'.
7730 - linkTitle parser simplified and improved, under assumption that it
7731 will be called in context of source'.
7733 + Make 'block' conditional on strictness state, instead of using
7734 failIfStrict in block parsers. Use a different ordering of parsers
7735 in strict mode (raw HTML block before paragraph) for performance.
7736 In non-strict mode use rawHtmlBlocks instead of htmlBlock.
7737 Simplified htmlBlock, since we know it's only called in strict
7738 mode.
7740 + Improved handling of raw HTML. (Resolves Issue #36.)
7741 - Tags that can be either block or inline (e.g. <ins>) should
7742 be treated as block when appropriate and as inline when
7743 appropriate. Thus, for example,
7744 <ins>hi</ins>
7745 should be treated as a paragraph with inline <ins> tags, while
7746 <ins>
7747 hi
7748 </ins>
7749 should be treated as a paragraph within <ins> tags.
7750 - Moved htmlBlock after para in list of block parsers. This ensures
7751 that tags that can be either block or inline get parsed as inline
7752 when appropriate.
7753 - Modified rawHtmlInline' so that block elements aren't treated as
7754 inline.
7755 - Modified para parser so that paragraphs containing only HTML tags and
7756 blank space are not allowed. Treat these as raw HTML blocks instead.
7758 + Fixed bug wherein HTML preceding a code block could cause it to
7759 be parsed as a paragraph. The problem is that the HTML parser
7760 used to eat all blank space after an HTML block, including the
7761 indentation of the code block. (Resolves Issue #39.)
7762 - In Text.Pandoc.Readers.HTML, removed parsing of following space
7763 from rawHtmlBlock.
7764 - In Text.Pandoc.Readers.Markdown, modified rawHtmlBlocks so that
7765 indentation is eaten *only* on the first line after the HTML
7766 block. This means that in
7767 <div>
7768 foo
7769 <div>
7770 the foo won't be treated as a code block, but in
7771 <div>
7773 foo
7775 </div>
7776 it will. This seems the right approach for least surprise.
7778 * RST reader:
7780 + Fixed bug in parsing explicit links (resolves Issue #44).
7781 The problem was that we were looking for inlines until a '<' character
7782 signaled the start of the URL; so, if you hit a reference-style link,
7783 it would keep looking til the end of the document. Fix: change
7784 inline => (notFollowedBy (char '`') >> inline). Note that this won't
7785 allow code inlines in links, but these aren't allowed in resT anyway.
7787 + Cleaned up parsing of reference names in key blocks and links.
7788 Allow nonquoted reference links to contain isolated '.', '-', '_', so
7789 so that strings like 'a_b_' count as links.
7791 + Removed unnecessary check for following link in str.
7792 This is unnecessary now that link is above str in the definition of
7793 'inline'.
7795 * HTML reader:
7797 + Modified rawHtmlBlock so it parses </html> and </body> tags.
7798 This allows these tags to be handled correctly in Markdown.
7799 HTML reader now uses rawHtmlBlock', which excludes </html> and </body>,
7800 since these are handled in parseHtml. (Resolves Issue #38.)
7802 + Fixed bug (emph parser was looking for `<IT>` tag, not `<I>`).
7804 + Don't interpret contents of style tags as markdown.
7805 (Resolves Issue #40.)
7806 - Added htmlStyle, analagous to htmlScript.
7807 - Use htmlStyle in htmlBlockElement and rawHtmlInline.
7808 - Moved "script" from the list of tags that can be either block or
7809 inline to the list of block tags.
7811 + Modified rawHtmlBlock to use anyHtmlBlockTag instead of anyHtmlTag
7812 and anyHtmlEndTag. This fixes a bug in markdown parsing, where
7813 inline tags would be included in raw HTML blocks.
7815 + Modified anyHtmlBlockTag to test for (not inline) rather than
7816 directly for block. This allows us to handle e.g. docbook in
7817 the markdown reader.
7819 * LaTeX reader: Properly recognize --parse-raw in rawLaTeXInline.
7820 Updated LaTeX reader test to use --parse-raw.
7822 * HTML writer:
7824 + Modified rules for automatic HTML header identifiers to
7825 ensure that identifiers begin with an alphabetic character.
7826 The new rules are described in README. (Resolves Issue #33.)
7828 + Changed handling of titles in HTML writer so you don't get
7829 "titleprefix - " followed by nothing.
7831 * ConTeXt writer: Use wrappers around Doc elements to ensure proper
7832 spacing. Each block element is wrapped with either Pad or Reg.
7833 Pad'ed elements are guaranteed to have a blank line in between.
7835 * RST writer:
7837 + Refactored RST writer to use a record instead of a tuple for state,
7838 and to include options in state so it doesn't need to be passed as
7839 a parameter.
7841 + Use an interpreted text role to render math in restructuredText.
7842 See http://www.american.edu/econ/itex2mml/mathhack.rst for the
7843 strategy.
7845 [ Recai Oktaş ]
7847 * Debian packaging changes:
7849 + Remove the empty 'include' directory in -dev package, which lintian
7850 complains about.
7851 + Bump Standarts-Version to 3.7.3.
7852 + Use new 'Homepage:' field to specify the upstream URL on suggestion of
7853 lintian.
7855 -- Recai Oktaş <roktas@debian.org> Tue, 08 Jan 2008 05:13:31 +0200
7857pandoc (0.45) unstable; urgency=low
7859 [ John MacFarlane ]
7861 * Simplified parsing of reference keys and notes in markdown and RST
7862 readers: The Reference data structure from Text.Pandoc.Shared is no
7863 longer needed, since referenceKey and noteBlock parses return strings
7864 (as many blank lines as were occupied by the key or note) and update
7865 state themselves. getPosition and setPosition are now used to ensure
7866 that error messages will give the correct line number. This yields
7867 cleaner (and slightly faster) code, with more accurate parsing error
7868 messages.
7870 * Added new Math inline element:
7872 + Markdown and LaTeX readers now convert TeX math into Math elements,
7873 not TeX.
7874 + This allows math to be treated differently from raw TeX in output.
7875 TeX elements are no longer printed in output formats other than
7876 Markdown, LaTeX, and ConTeXt. But Math elements are always printed.
7878 * New default handling of math in writers:
7880 + New module Text.Pandoc.Readers.TeXMath exports readTeXMath, which
7881 parses raw TeX math and outputs a string of Pandoc inlines that
7882 tries to render it as far as possible using unicode characters,
7883 lapsing into literal TeX when needed.
7884 + readTeXMath is now used for default HTML output in HTML, S5, RTF,
7885 and Docbook, if no other method for displaying math in HTML is
7886 specified. Enclosing $'s are no longer printed by default.
7887 + By default, math is put inside `<span class="math">`. This way it can be
7888 distinguished from the surrounding text, e.g. put in a different
7889 font.
7891 * New --gladtex and --mimetex options for display of math in HTML:
7893 + If --gladtex is specified, math is output between `<eq>` tags, so
7894 it can be processed by gladTeX.
7895 + If --mimetex is specified, math is put in `<img>` tags with a link
7896 to the mimetex CGI script (or any other script that takes TeX math
7897 as input and outputs an image). The URL of the script may be
7898 specified, but defaults to /cgi-bin/mimetex.cgi.
7899 + HTMLMathMethod structure in WriterOptions keeps track of how to
7900 display math in HTML output.
7901 + Updated README with a description of the four options for displaying
7902 math in HTML.
7904 * HTML reader:
7906 + Fixed bug: parser for minimized attributes should not swallow
7907 trailing spaces.
7908 + Simplified HTML attribute parsing.
7909 + Changed parsing of code blocks in HTML reader: `<code>` tag is no
7910 longer needed. `<pre>` suffices. All HTML tags in the code block
7911 (e.g. for syntax highlighting) are skipped, because they are not
7912 portable to other output formats. A `<code>...</code>` block not
7913 surrounded by `<pre>` now counts as inline HTML, not a code block.
7914 + Remove just one leading and one trailing newline from contents of
7915 `<pre>...</pre>` in codeBlock parser.
7917 * Markdown reader:
7919 + Removed support for box-style block quotes.
7920 + Require space before title in links and references.
7921 This fixes a bug in parsing URLs like http://silly/url(withparen).
7922 + Improved and simplified setextHeader parser.
7923 + Fixed logic in smart quote parsing, adding some needed 'try'
7924 statements.
7925 + Fixed smart quote parsing so that unicode characters 8216 and 8217
7926 are recognized as single quotes, and 8220 and 8221 as double quotes.
7928 * RST reader:
7930 + Fixed bug in parsing of code blocks. Previously a full tab indent
7931 was required, but RST allows code to be indented any amount.
7932 Resolves Issue #27.
7933 + Allow field lists to be indented.
7934 + Parse the contents of field lists instead of treating as a raw string.
7935 + Represent field lists as definition lists instead of blockquotes.
7936 + Fixed bug in which metadata would be overridden if the document
7937 contained multiple field lists.
7938 + Parse fields associated with '.. image::' blocks, and use 'alt'
7939 field, if given, for image alt and title attributes.
7941 * LaTeX reader:
7943 + Modified specialChar so that '"' characters are parsed.
7944 + Fixed a bug in parsing of \[ \] math blocks (thanks to Mark Kalderon).
7946 * HTML writer:
7948 + Changes in handling of math (see above).
7949 + Don't produce HTML for table of contents if there are
7950 no headers. (This would be an empty list, which is invalid XHTML.)
7952 * Markdown writer:
7954 + Don't print title attribute if title is empty. (This differs from
7955 the behavior of Markdown.pl, and agrees with PHP Markdown. But John
7956 Gruber has indicated that he prefers this behavior.) Adjusted test
7957 suite accordingly.
7958 + Fixed incorrect line wrapping in paragraphs including hard line
7959 breaks. Resolves Issue #25.
7960 + Fixed bug in markdown writer: If an ordered list item began with
7961 a marker greater than 3 characters in width, and the item took more
7962 than one line, it would appear on the line after the list marker,
7963 e.g.:
7965 (12)
7966 My list item.
7967 Multiline.
7969 Now it works as follows:
7971 (12) My list item.
7972 Multiline.
7974 * RST writer
7976 + Fixed bug in RST writer's handling of ordered lists. Previously,
7977 list items with multiple lines would not always line up with
7978 single-line list items. Now, list items are nested the length of
7979 the list marker + 1. This looks better and ensures that list items
7980 all line up. (Note that list markers are padded to the length of
7981 the longest list marker in the series.)
7982 + Use 3-space indent for unordered lists.
7983 + If label for a link reference contains a colon, surround it by `
7984 signs so it won't be interpreted as the end of the link label.
7986 * LaTeX writer:
7988 + Cleaner output for footnotes. Footnotes now always begin on a new
7989 line, and the final } is on a line by itself only when it needs to
7990 be (i.e. only when the note ends with a Verbatim environment).
7991 + Added writer options to state, so state doesn't need to be passed as
7992 a parameter.
7993 + Text wrapping now provided, using wrapTeXIfNeeded.
7995 * ConTeXt writer: many improvements for more idiomatic ConTeXt output
7996 (thanks to Idris Samawi Hamid for suggestions).
7998 + PrettyPrint module now used for output.
7999 + Writer options are now in state, so they don't have to be passed as
8000 a parameter.
8001 + Text wrapping now provided, using wrapTeXIfNeeded.
8002 + Better treatment of footnotes: footnotes are always on lines by
8003 themselves, and the final } is on a line by itself only when
8004 it needs to be (after \stoptyping).
8005 + Use \subject, \subsubject, ... or \section, \subsection, ... for headings,
8006 depending on whether --number-sections option is selected.
8007 + Extra blank line inserted after \stopitemize
8008 + Use new, "official" definition of blockquote environment. Also, use
8009 blank line after \startblockquote to balance blank line at the end.
8010 + Both itemized and enumerated lists are now generated using
8011 \start-stopitemize, with appropriate options. Removed definitions
8012 of ltxenum and ltxitem, which are no longer needed. Provided
8013 defaults for itemized lists in the preamble. State keeps track of
8014 ordered list level, so that when default numbering is specified,
8015 the appropriate scheme can be used.
8016 + Changed \useurl to \useURL.
8017 + Changed link color from red to blue.
8018 + Use \subsubsubsubsection etc., since these are supported
8019 (up to at least sub x 5).
8021 * Text.Pandoc.Shared:
8023 + Save and restore position in parseFromString, so that accurate
8024 error messages can be given.
8025 + Improved efficiency of romanNumeral parser.
8026 + Added wrappedTeX and wrapTeXIfNeeded functions. These ensure
8027 that footnotes occur on lines by themselves (to make them
8028 easier to see and move) and do not screw up line wrapping.
8030 * Text.Pandoc.UTF8: modified fromUTF8 to strip out the BOM
8031 if present. Windows Notepad and other applications insert a
8032 BOM at the beginning of a UTF8 file.
8034 * Main.hs (tabFilter): Treat '\r' at end of line as newline (in
8035 addition to "\r\n" and '\n').
8037 * Added a writer option for wrapped text and a command-line option
8038 '--no-wrap', which disables text wrapping and minimizes whitespace
8039 in HTML. (Resolves Issue #26.)
8041 + Added support for '--no-wrap' to Main.hs.
8042 + Added wrapIfNeeded function to Text.Pandoc.Shared.
8043 + Use wrapIfNeeded instead of wrapped in the RST, Man, Docbook, and
8044 Markdown writers.
8045 + Added render and renderFragment helpers to HTML writer.
8047 * Modified html2markdown to run tidy only if the HTML cannot be
8048 parsed. Previously html2markdown piped all input through tidy
8049 before passing it to pandoc. This caused problems on certain pages
8050 (e.g. http://daringfireball.com/markdown) which have well-formed
8051 XHTML that causes tidy to choke. The solution is to pipe through
8052 tidy only if pandoc cannot parse the input by itself. This means
8053 that a temp file is now always used, even when input comes from a
8054 local file or standard input.
8056 * Removed 'version' constant from Main.hs; added 'pandocVersion' to
8057 Text.Pandoc library.
8059 * pandoc.cabal:
8061 + Modified to work with GHC 6.8 and Cabal configurations. (For GHC
8062 6.8, pretty and containers must be added to Build-Depends, and it
8063 is desirable to use the -O2 compiler option.) Cabal configurations
8064 allows one to select options depending on the compiler version.
8065 For GHC 6.6, the splitBase option can be disabled.
8066 + pandoc.cabal.ghc66 is provided for users with older versions of
8067 Cabal, which do not support configurations.
8068 + Use Ghc-Prof-Options to ensure that '-auto-all' is used when
8069 '--enable-(executable|library)-profiling' is specified. Updated
8070 PROFILING instructions accordingly.
8072 * Makefile:
8074 + Makefile now checks GHC version. If GHC is 6.6, pandoc.cabal.ghc66
8075 is copied to pandoc.cabal, and the old pandoc.cabal is copied
8076 to pandoc.cabal.orig. Otherwise, pandoc.cabal is copied to
8077 pandoc.cabal.orig but otherwise unmodified. This way, the Makefile
8078 will work properly with either GHC 6.6 or 6.8.
8079 + Changed BUILDCONF to point to dist/setup-config, not .setup-config.
8080 This is where current versions of Cabal put it.
8081 + Added $(BUILDCMD) target, so setup doesn't get compiled every time.
8082 + Removed dependency of templates on ./templates, which is circular
8083 now that templates is a subdirectory of the top-level.
8085 * MacPorts Portfile:
8087 + Modified to install the pandoc library in addition to programs.
8088 + Installation must be done manually rather than using Makefile's
8089 install-all.
8090 + Note that the library must be registered in the activate phase,
8091 after the library files have been copied out of the destroot.
8092 Cabal generates a 'register.sh' script that will do this.
8094 * debian/control: Added libghc6-network-dev, libghc6-xhtml-dev, and
8095 libghc6-mtl-dev as dependencies for libghc6-pandoc-dev.
8096 Closes: #445235
8098 * debian/rules: Converted to UTF-8.
8100 * Changed pandoc home page to http://johnmacfarlane.net/pandoc/.
8102 * Updated ASCIIMathML.js to latest version.
8104 * Directory structure:
8106 + Moved everything from src into the top-level directory.
8107 + Changed references to source directory in Makefile and
8108 pandoc.cabal.*.
8109 + Moved ASCIIMathML.js, headers, and ui into templates directory.
8110 + Modified fillTemplates.pl to reflect new paths.
8112 [ Recai Oktaş ]
8114 * Makefile: Fixed the issue of having two copies of the library
8115 documentation under some usage scenarios.
8117 * Replaced 'ghc' with '$(GHC)' in Makefile, and made GHC
8118 and GHC_PKG configurable through the environment, to support
8119 unusual ghc installations. For example:
8120 GHC=/opt/ghc/bin/ghc GHC_PKG=/opt/ghc/bin/ghc-pkg make
8122 -- Recai Oktaş <roktas@debian.org> Sun, 07 Oct 2007 20:51:43 +0300
8124pandoc (0.44) unstable; urgency=low
8126 [ John MacFarlane ]
8128 * Fixed bug in HTML writer: when --toc was used, anchors were put around
8129 headers, which is invalid XHTML (block content within inline element).
8130 Now the anchors are put inside the header tags. Resolves Issue #23.
8132 * Added xmlns attribute to html element in html writer tests.
8133 This attribute is added by more recent versions of the
8134 xhtml library (>= 3000), and is required for valid XHTML.
8136 [ Recai Oktaş ]
8138 * On configure, compile 'Setup.hs' to 'setup' and use 'setup' as the build
8139 command instead of 'runhaskell', which, on some platforms (such as s390,
8140 alpha, m68k), throws the following error:
8142 runhaskell Setup.hs configure --prefix=/usr
8143 ghc-6.6.1: not built for interactive use
8145 This causes a serious FTBFS bug. Closes: #440668.
8147 -- Recai Oktaş <roktas@debian.org> Mon, 03 Sep 2007 18:24:02 +0300
8149pandoc (0.43) unstable; urgency=low
8151 [ John MacFarlane ]
8153 * The focus of this release is performance. The markdown parser
8154 is about five times faster than in 0.42, based on benchmarks
8155 with the TextMate manual.
8157 * Main.hs: Replaced CRFilter and tabFilter with single function
8158 tabFilter, which operates on the whole string rather than breaking
8159 it into lines, and handles dos-style line-endings as well as tabs.
8161 * Added separate LaTeX reader and native reader tests; removed
8162 round-trip tests.
8164 * Text.Pandoc.Shared:
8166 + Removed tabsToSpaces and tabsInLine (they were used only in Main.hs.)
8167 + General code cleanup (to elimante warnings when compiling with -Wall.)
8168 + Added 'wrapped' function, which helps wrap text into paragraphs,
8169 using the prettyprinting library.
8170 + Rewrote charsInBalanced and charsInBalanced'.
8171 - Documented restriction: open and close must be distinct characters.
8172 - Rearranged options for greater efficiency.
8173 - Bug fix: Changed inner call to charsInBalanced inside
8174 charsInBalanced' to charsInBalanced'.
8175 + anyLine now requires that the line end with a newline (not eof).
8176 This is a harmless assumption, since we always add newlines to the
8177 end of a block before parsing with anyLine, and it yields a 10% speed
8178 boost.
8179 + Removed unnecessary 'try' in anyLine.
8180 + Removed unneeded 'try' from romanNumeral parser.
8181 + Use notFollowedBy instead of notFollowedBy' in charsInBalanced.
8182 + Removed unneeded 'try' in parseFromString.
8183 + Removed unneeded 'try' from stringAnyCase. (Now it behaves
8184 like 'string'.)
8185 + Changed definition of 'enclosed' in Text.Pandoc.Shared so that
8186 'try' is not automatically applied to the 'end' parser. Added
8187 'try' in calls to 'enclosed' where needed. Slight speed increase.
8189 * Writers:
8191 + Replaced individual wrapping routines in RST, Man, and Markdown
8192 writers with 'wrapped' from Text.Pandoc.Shared.
8193 + Rewrote LaTeX writer to use the prettyprinting library,
8194 so we get word wrapping, etc.
8195 + Modified latex writer tests for new latex writer using prettyprinter.
8196 + Fixed bug in LaTeX writer: autolinks would not cause
8197 '\usepackage{url}' to be put in the document header. Also, changes
8198 to state in enumerated list items would be overwritten.
8199 + In Markdown writer, escape paragraphs that begin with ordered list
8200 markers, so they don't get interpreted as ordered lists.
8202 * Text.Pandoc.Reades.LaTeX:
8204 + Fixed bug in LaTeX reader, which wrongly assumed that the roman
8205 numeral after "enum" in "setcounter" would consist entirely of
8206 "i"s. 'enumiv' is legitimate.
8207 + LaTeX command and environment names can't contain numbers.
8208 + Rearranged order of parsers in inline for slight speed improvement.
8209 + Added '`' to special characters and 'unescapedChar'.
8211 * Text.Pandoc.Readers.RST:
8213 + Removed unneeded try's in RST reader; also minor code cleanup.
8214 + Removed tabchar.
8215 + Rearranged parsers in inline (doubled speed).
8217 * Text.Pandoc.Readers.Markdown:
8219 + Skip notes parsing if running in strict mode. (This yields a nice
8220 speed improvement in strict mode.)
8221 + Simplify autolink parsing code, using Network.URI to test for
8222 URIs. Added dependency on network library to debian/control and
8223 pandoc.cabal.
8224 + More perspicuous definition of nonindentSpaces.
8225 + Removed unneeded 'try' in 'rawLine'.
8226 + Combined linebreak and whitespace into a new whitespace parser, to
8227 avoid unnecessary reparsing of space characters.
8228 + Removed unnecessary 'try' in 'codeBlock', 'ellipses', 'noteMarker',
8229 'multilineRow', 'dashedLine', 'rawHtmlBlocks'.
8230 + Use lookAhead in parsers for setext headers and definition lists
8231 to see if the next line begins appropriately; if not, don't waste
8232 any more time parsing.
8233 + Don't require blank lines after code block. (It's sufficient to
8234 end code block with a nonindented line.)
8235 + Changed definition of 'emph': italics with '_' must not
8236 be followed by an alphanumeric character. This is to help
8237 prevent interpretation of e.g. `[LC_TYPE]: my_type` as
8238 `[LC<em>TYPE]:my</em>type`.
8239 + Improved Markdown.pl-compatibility in referenceLink: the two parts
8240 of a reference-style link may be separated by one space, but not
8241 more... [a] [link], [not] [a link].
8242 + Fixed markdown inline code parsing so it better accords with
8243 Markdown.pl: the marker for the end of the code section is a clump
8244 of the same number of `'s with which the section began, followed
8245 by a non-` character. So, for example,
8246 ` h ``` i ` -> `<code>h ``` i</code>`.
8247 + Split 'title' into 'linkTitle' and 'referenceTitle', since the
8248 rules are slightly different.
8249 + Rewrote 'para' for greater efficiency.
8250 + Rewrote link parsers for greater efficiency.
8251 + Removed redundant 'referenceLink' in definition of inline (it's
8252 already in 'link').
8253 + Refactored escapeChar so it doesn't need 'try'.
8254 + Refactored hrule for performance in Markdown reader.
8255 + More intelligent rearranging of 'inline' so that most frequently
8256 used parsers are tried first.
8257 + Removed tabchar parser, as whitespace handles tabs anyway.
8259 * Text.Pandoc.CharacterReferences:
8261 + Refactored.
8262 + Removed unnecessary 'try's for a speed improvement.
8263 + Removed unnecessary '&' and ';' from the entity table.
8265 * Build process:
8267 + Makefile: Get VERSION from cabal file, not Main.hs.
8268 + Modified MacPorts Portfile:
8269 - Depend on haddock
8270 - Build and install libraries and library documentation in
8271 addition to pandoc executable
8272 - Added template item for md5 sum in Portfile.in.
8273 - Incorporated changes from MacPorts repository (r28278).
8274 + FreeBSD port: Don't try to generate distinfo in Makefile.
8275 It can be made using 'make makesum' in FreeBSD.
8276 + Make both freebsd and macports targets depend on tarball.
8278 * Website and documentation:
8280 + Updated INSTALL instructions.
8281 + Added pandocwiki demo to website.
8282 + Removed local references to Portfile, since pandoc is now in the
8283 MacPorts repository.
8285 -- Recai Oktaş <roktas@debian.org> Sun, 02 Sep 2007 15:50:11 +0300
8287pandoc (0.42) unstable; urgency=low
8289 [ John MacFarlane ]
8291 * Main.hs: Use utf8 conversion on the extra files loaded with
8292 the -H, -C, -B, and -A options. This fixes problems with unicode
8293 characters in these files.
8295 * Exposed Text.Pandoc.ASCIIMathML, since it is imported in
8296 Text.Pandoc.Readers.HTML and without it we get a linking error when
8297 using the library.
8299 * Markdown reader:
8301 + Added new rule for enhanced markdown ordered lists: if the list
8302 marker is a capital letter followed by a period (including a
8303 single-letter capital roman numeral), then it must be followed by
8304 at least two spaces. The point of this is to avoid accidentally
8305 treating people's initials as list markers: a paragraph might begin,
8306 "B. Russell was an English philosopher," and this shouldn't be
8307 treated as a list. Documented change in README.
8308 + Blocks that start with "p. " and a digit are no longer treated
8309 as ordered lists (it's a page number).
8310 + Added a needed 'try' to listItem.
8311 + Removed check for a following setext header in endline.
8312 A full test is too inefficient (doubles benchmark time), and the
8313 substitute we had before is not 100% accurate.
8314 + Don't use Code elements for autolinks if --strict specified.
8316 * LaTeX writer: When a footnote ends with a Verbatim environment, the
8317 close } of the footnote cannot occur on the same line or an error occurs.
8318 Fixed this by adding a newline before the closing } of every footnote.
8320 * HTML writer:
8321 + Removed incorrect "{}" around style information in HTML tables.
8322 Column widths now work properly in HTML.
8323 + If --strict option is specified (and --toc is not), don't include
8324 identifiers in headers, for better Markdown compatibility.
8326 * Build process:
8328 + Separated $(web_dest) and website targets.
8329 + In website, index.txt is now constructed from template index.txt.in.
8330 + Added freebsd target to Markefile. This creates the freebsd Makefile
8331 from Makefile.in, and creates distinfo. Removed Makefile and distinfo
8332 from the repository.
8333 + Added macport target to Makefile. Portfile is built from template
8334 Portfile.in.
8335 + Removed OSX package targets. (Too many difficulties involving
8336 dependencies on dynamic libraries.)
8337 + More complete INSTALL instructions for all architectures.
8339 * Website:
8340 + Added a programming demo, pandocwiki.
8342 [ Recai Oktaş ]
8344 * Do not forget to close pandoc's ITP. Closes: #391666
8346 -- Recai Oktaş <roktas@debian.org> Sun, 26 Aug 2007 22:51:32 +0300
8348pandoc (0.41) unstable; urgency=low
8350 [ John MacFarlane ]
8352 * Fixed bugs in HTML reader:
8353 + Skip material at end *only if* `</html>` is present (previously,
8354 only part of the document would be parsed if an error was
8355 found; now a proper error message is given).
8356 + Added new constant eitherBlockOrInline with elements that may
8357 count either as block-level or as inline. Modified isInline and
8358 isBlock to take this into account.
8359 + Modified rawHtmlBlock to accept any tag (even an inline tag):
8360 this is innocuous, because rawHtmlBlock is tried only if a regular
8361 inline element can't be parsed.
8362 + Added a necessary 'try' in definition of 'para'.
8364 * Fixed bug in markdown ordered list parsing. The problem was that
8365 anyOrderedListStart did not check for a space following the
8366 ordered list marker. So in 'A.B. 2007' the parser would be
8367 expecting a list item, but would not find one, causing an error.
8368 Fixed a similar bug in the RST reader. Resolves Issue #22.
8370 * Refactored RST and Markdown readers using parseFromString.
8372 * LaTeX reader will now skip anything after \end{document}.
8374 * Fixed blockquote output in markdown writer: previously, block
8375 quotes in indented contexts would be indented only in the first
8376 line.
8378 * Added note to INSTALL about variations in versions of the xhtml
8379 library that can lead to failed tests (thanks to Leif LeBaron).
8381 -- Recai Oktaş <roktas@debian.org> Sun, 19 Aug 2007 23:26:07 +0300
8383pandoc (0.4) unstable; urgency=low
8385 [ John MacFarlane ]
8387 * Added two new output formats: groff man pages and ConTeXt. By
8388 default, output files with extensions ".ctx" and ".context" are
8389 assumed to be ConTeXt, and output files with single-digit extensions
8390 are assumed to be man pages.
8392 * Enhanced ordered lists (documented in README, under Lists):
8393 + The OrderedList block element now stores information about
8394 list number style, list number delimiter, and starting number.
8395 + The readers parse this information when possible.
8396 + The writers use this information to style ordered lists.
8397 + The enhancement can be disabled using the --strict option.
8399 * Added support for tables (with a new Table block element). Two kinds
8400 of tables are supported: a simple table with one-line rows, and a
8401 more complex variety with multiline rows. All output formats are
8402 supported, but only markdown tables are parsed at the moment. The
8403 syntax is documented in README.
8405 * Added support for definition lists (with a new DefinitionList block
8406 element). All output and input formats are supported. The syntax is
8407 documented in README.
8409 * Added support for superscripts and subscripts (with new Superscript
8410 and Subscript inline elements). All input and output
8411 formats. The syntax is documented in README.
8413 * Added support for strikeout (with a new Strikeout inline element).
8414 All input and output formats are supported. Thanks to Bradley Kuhn,
8415 who contributed a patch. The syntax is documented in README. Resolves
8416 Issue #18.
8418 * Added a --toc|--table-of-contents option. This causes an automatically
8419 generated table of contents (or an instruction that creates one) to
8420 be inserted at the beginning of the document. Not supported in S5,
8421 DocBook, or man page writers.
8423 * Modified the -m|--asciimathml option:
8425 + If an optional URL argument is provided, a link is inserted
8426 instead of the contents of the ASCIIMathML.js script.
8427 + Nothing is inserted unless the document actually contains
8428 LaTeX math.
8430 * Removed Blank block element as unnecessary.
8432 * Removed Key and Note blocks from the Pandoc data structure. All
8433 links are now stored as explicit links, and note contents are
8434 stored with the (inline) notes.
8436 + All link Targets are now explicit (URL, title) pairs; there
8437 is no longer a 'Ref' target.
8438 + Markdown and RST parsers now need to extract data from key and
8439 note blocks and insert them into the relevant inline elements.
8440 Other parsers have been simplified, since there is no longer any need
8441 to construct separate key and note blocks.
8442 + Markdown, RST, and HTML writers need to construct lists of
8443 notes; Markdown and RST writers need to construct lists of link
8444 references (when the --reference-links option is specified); and
8445 the RST writer needs to construct a list of image substitution
8446 references. All writers have been rewritten to use the State monad
8447 when state is required.
8448 + Several functions (generateReference, keyTable,
8449 replaceReferenceLinks, replaceRefLinksBlockList, and some auxiliaries
8450 used by them) have been removed from Text.Pandoc.Shared, since
8451 they are no longer needed. New functions and data structures
8452 (Reference, isNoteBlock, isKeyBlock, isLineClump) have been
8453 added. The functions inTags, selfClosingTag, inTagsSimple, and
8454 inTagsIndented have been moved to the DocBook writer, since that
8455 is now the only module that uses them. NoteTable is now exported
8456 in Text.Pandoc.Shared.
8457 + Added stateKeys and stateNotes to ParserState; removed stateKeyBlocks,
8458 stateKeysUsed, stateNoteBlocks, stateNoteIdentifiers, stateInlineLinks.
8459 + Added writerNotes and writerReferenceLinks to WriterOptions.
8461 * Added Text.Pandoc module that exports basic readers, writers,
8462 definitions, and utility functions. This should export everything
8463 needed for most uses of Pandoc libraries. The haddock documentation
8464 includes a short example program.
8466 * Text.Pandoc.ASCIIMathML is no longer an exported module.
8468 * Added Text.Pandoc.Blocks module to help in printing markdown
8469 and RST tables. This module provides functions for working with
8470 fixed-width blocks of text--e.g., placing them side by side, as
8471 in a table row.
8473 * Refactored to avoid reliance on Haskell's Text.Regex library, which
8474 (a) is slow, and (b) does not properly handle unicode. This fixed
8475 some strange bugs, e.g. in parsing S-cedilla, and improved performance.
8477 + Replaced 'gsub' with a general list function 'substitute'
8478 that does not rely on Text.Regex.
8479 + Rewrote extractTagType in HTML reader so that it doesn't use
8480 regexs.
8481 + In Markdown reader, replaced email regex test with a custom email
8482 autolink parser (autoLinkEmail). Also replaced selfClosingTag regex
8483 with a custom function isSelfClosingTag.
8484 + Modified Docbook writer so that it doesn't rely on Text.Regex for
8485 detecting 'mailto' links.
8486 + Removed escapePreservingRegex and reamped entity-handling
8487 functions in Text.Pandoc.Shared and Text.Pandoc.CharacterReferences to
8488 avoid reliance on Text.Regex (see below on character reference
8489 handling changes).
8491 * Renamed Text.Pandoc.Entities as Text.Pandoc.CharacterReferences.
8493 * Changed handling of XML entities. Entities are now parsed (and unicode
8494 characters returned) in the Markdown and HTML readers, rather than being
8495 handled in the writers. In HTML and Docbook writers, UTF-8 is now used
8496 instead of entities for characters above 128. This makes the HTML and
8497 DocBook output much more readable and more easily editable.
8499 + Removed sgmlHexEntity, sgmlDecimalEntity, sgmlNamedEntity, and
8500 sgmlCharacterEntity regexes from Text.Pandoc.Shared.
8501 + Renamed escapeSGMLChar to escapeCharForXML. Added escapeStringForXML.
8502 Moved both functions to Text.Pandoc.Writers.Docbook.
8503 + Added characterReference parser to Text.Pandoc.CharacterReferences.
8504 This parses a string and return a unicode character.
8505 + Rewrote decodeCharacterReferences to use the new parser instead of
8506 Text.Regex.
8507 + Added new charRef parser for Markdown and HTML, which replaces the
8508 old 'entity' parser. Added '&' as a special character in Markdown reader.
8509 + Modified HTML and Markdown readers to call decodeEntities on all raw
8510 strings (e.g. authors, dates, link titles), to ensure that no
8511 unprocessed entities are included in the native representation of
8512 the document. (In the HTML reader, most of this work is done by a
8513 change in extractAttributeName.)
8514 + In XML and Markdown output, escape unicode nonbreaking space as '&nbsp;',
8515 since a unicode non-breaking space is impossible to distinguish visually
8516 from a regular space. (Resolves Issue #3.)
8517 + Removed encodeEntitiesNumerical.
8518 + Use Data.Map for entityTable and (new) reverseEntityTable, for a
8519 slight performance boost over the old association list.
8520 + Removed unneeded decodeEntities from 'str' parser in HTML and
8521 Markdown readers.
8523 * Text.Pandoc.UTF8: Renamed encodeUTF8 to toUTF8, decodeUTF8 to
8524 fromUTF8, for clarity.
8526 * Replaced old haskell98 module names replaced by hierarchical module
8527 names, e.g. List by Data.List. Removed haskell98 from dependencies
8528 in pandoc.cabal, and added mtl (needed for state monad). Substituted
8529 xhtml for html.
8531 * Refactored and cleaned up character escaping in writers, using
8532 backslashEscapes and escapeStringUsing functions.
8534 * Instead of adding "\n\n" to the end of an input string in Main.hs,
8535 this is now done in the readers. This makes the libraries behave
8536 the way you'd expect from the pandoc program. Resolves Issue #10.
8538 * URLs and email addresses in autolinks are now typeset as Code.
8540 * In Main.hs, changed putStr to putStrLn -- mainly because MacOS X
8541 doesn't display the whole output unless there's a line ending.
8543 * Major code cleanup in all modules, for greater consistency, concision,
8544 and readability.
8546 * HTML reader:
8548 + Fixed several bugs (extractTagType, attribute parsing).
8549 + Remove Null blocks in lists of blocks when possible.
8550 + Allow HTML comments as raw HTML inline.
8552 * Markdown reader:
8554 + Ordered list items may no longer begin with uppercase letters, or
8555 letters greater than 'n'. (This prevents first initials and page
8556 reference, e.g. 'p. 400', from being parsed as beginning lists.)
8557 Also, numbers beginning list items may no longer end with ')',
8558 which is now allowed only after letters. Note: These changes
8559 may cause documents to be parsed differently. Users should take
8560 care in upgrading.
8561 + Changed autoLink parsing to conform better to Markdown.pl's
8562 behavior. `<google.com>` is not treated as a link, but
8563 `<http://google.com>`, `<ftp://google.com>`, and
8564 `<mailto:google@google.com>` are.
8565 + Cleaned up handling of embedded quotes in link titles. Now these are
8566 stored as a '"' character, not as '&quot;'.
8567 + Use lookAhead parser for the 'first pass' (looking for reference keys),
8568 instead of parsing normally, then using setInput to reset input. This
8569 yields a slight performance boost.
8570 + Fixed several bugs in smart quote recognition.
8571 + Fixed bug in indentSpaces (which didn't properly handle
8572 cases with mixed spaces and tabs).
8573 + Consolidated 'text', 'special', and 'inline' into 'inline'.
8574 + Fixed bug which allowed URL and title to be separated by multiple blank
8575 lines in links and reference keys. They can be on separate lines but
8576 can't have blank lines between them.
8577 + Correctly handle bracketed text inside inline footnotes and links,using
8578 new function inlinesInBalanced. Resolves Issue #14.
8579 + Fixed bug in footnotes: links in footnotes were not being
8580 processed. Solution: three-stage parse. First, get all the
8581 reference keys and add information to state. Next, get all the
8582 notes and add information to state. (Reference keys may be needed
8583 at this stage.) Finally, parse everything else.
8584 + Replaced named constants like 'emphStart' with literals.
8585 + Removed an extra occurance of escapedChar in definition of inline.
8587 * RST reader:
8589 + Allow the URI in a RST hyperlink target to start on the line
8590 after the reference key.
8591 + Added 'try' in front of 'string', where needed, or used a different
8592 parser. This fixes a bug where ````` would not be correctly parsed as
8593 a verbatim `.
8594 + Fixed slow performance in parsing inline literals in RST reader. The
8595 problem was that ``#`` was seen by 'inline' as a potential link or image.
8596 Fix: inserted 'notFollowedBy (char '`')' in link parsers.
8597 Resolves Issue #8.
8598 + Use lookAhead instead of getInput/setInput in RST reader. Removed
8599 unneeded getState call, since lookAhead automatically saves and
8600 restores the parser state.
8601 + Allow hyperlink target URIs to be split over multiple lines, and
8602 to start on the line after the reference. Resolves Issue #7.
8603 + Fixed handling of autolinks.
8605 * LaTeX reader:
8607 + Replaced 'choice [(try (string ...), ...]' idiom with 'oneOfStrings',
8608 for clarity.
8609 + Added clauses for tilde and caret. Tilde is \ensuremath{\sim}, and
8610 caret is \^{}, not \^ as before.
8611 + Added parsing for \url.
8612 + Parse \texttt{} as code, provided there's nothing fancy inside.
8614 * HTML writer:
8616 + Modified HTML writer to use the Text.XHtml library. This results
8617 in cleaner, faster code, and it makes it easier to use Pandoc in
8618 other projects, like wikis, which use Text.XHtml. Two functions are
8619 now provided, writeHtml and writeHtmlString: the former outputs an
8620 Html structure, the latter a rendered string. The S5 writer is also
8621 changed, in parallel ways (writeS5, writeS5String).
8622 + The Html header is now written programmatically, so it has been
8623 removed from the 'headers' directory. The S5 header is still
8624 needed, but the doctype and some of the meta declarations have
8625 been removed, since they are written programatically. This change
8626 introduces a new dependency on the xhtml package.
8627 + Fixed two bugs in email obfuscation involving improper escaping
8628 of '&' in the `<noscript>` section and in `--strict` mode. Resolves
8629 Issue #9.
8630 + Fixed another bug in email obfuscation: If the text to be obfuscated
8631 contains an entity, this needs to be decoded before obfuscation.
8632 Thanks to thsutton for the patch. Resolves Issue #15.
8633 + Changed the way the backlink is displayed in HTML footnotes.
8634 Instead of appearing on a line by itself, it now generally
8635 appears on the last line of the note. (Exception: when the
8636 note does not end with a Plain or Para block.) This saves space
8637 and looks better.
8638 + Added automatic unique identifiers to headers:
8639 - The identifier is derived from the header via a scheme
8640 documented in README.
8641 - WriterState now includes a list of header identifiers and a table
8642 of contents in addition to notes.
8643 - The function uniqueIdentifiers creates a list of unique identifiers
8644 from a list of inline lists (e.g. headers).
8645 - This list is part of WriterState and gets consumed by blockToHtml
8646 each time a header is encountered.
8647 + Include CSS for .strikethrough class in header only if strikethrough
8648 text appears in the document.
8649 + If the 'strict' option is specified, elements that do not appear in
8650 standard markdown (like definition lists) are passed through as
8651 raw HTML.
8652 + Simplified treatment of autolinks, using pattern matching instead of
8653 conditionals.
8655 * Markdown writer:
8657 + Links in markdown output are now printed as inline links by default,
8658 rather than reference links. A --reference-links option has been added
8659 that forces links to be printed as reference links. Resolves Issue #4.
8660 + Use autolinks when possible. Instead of `[site.com](site.com)`,
8661 use `<site.com>`.
8663 * LaTeX writer:
8665 + Rewrote to use the State monad. The preamble now includes only those
8666 packages that are actually required, given the document's content.
8667 Thus, for example, if strikeout is not used, ulem is not required.
8668 Modified LaTeXHeader accordingly.
8669 + Modified LaTeX writer to insert '\,' between consecutive quotes.
8670 + Removed unused function tableRowColumnWidths.
8671 + Simplified code for escaping special characters.
8672 + Leave extra blank line after \maketitle.
8673 + Include empty '\author{}' when no author specified to avoid LaTeX
8674 errors.
8675 + Include fancyvrb code in header only if needed -- that is, only
8676 if there is actually code in a footnote.
8677 + Use \url{} for autolinks.
8678 + Include [mathletters] option in ucs package, so that basic unicode
8679 Greek letters will work correctly.
8681 * RST writer: Force blank line before lists, so that sublists will
8682 be handled correctly.
8684 * Docbook writer: Fixed a bug: email links with text, like
8685 [foo](me@bar.baz), were being incorrectly treated as autolinks.
8687 * Removed Text.ParserCombinators.Pandoc and moved all its functions to
8688 Text.Pandoc.Shared.
8690 * Text.Pandoc.Shared:
8692 + Added defaultWriterOptions.
8693 + Added writerTableOfContents to WriterOptions.
8694 + Added writerIgnoreNotes option to WriterOptions. This is needed
8695 for processing header blocks for a table of contents, since notes on
8696 headers should not appear in the TOC.
8697 + Added prettyprinting for native Table format.
8698 + Removed some unneeded imports.
8699 + Moved escape and nullBlock parsers from
8700 Text.ParserCombinators.Pandoc, since the latter is for
8701 general-purpose parsers that don't depend on Text.Pandoc.Definition.
8702 + Moved isHeaderBlock from Text.Pandoc.Writers.HTML.
8703 + Moved Element, headerAtLeast, and hierarchicalize from Docbook
8704 writer, because HTML writer now uses these in constructing a table
8705 of contents.
8706 + Added clauses for new inline elements (Strikeout, Superscript,
8707 Subscript) to refsMatch.
8708 + Removed backslashEscape; added new functions escapeStringUsing and
8709 backslashEscapes.
8710 + Moved failIfStrict from markdown reader, since it is now used also
8711 by the HTML reader.
8712 + Added a 'try' to the definition of indentSpaces.
8713 + In definition of 'reference', added check to make sure it's not a note
8714 reference.
8715 + Added functions: camelCaseToHyphenated, toRomanNumeral,
8716 anyOrderedListMarker, orderedListmarker, orderedListMarkers,
8717 charsInBalanced', withHorizDisplacement, romanNumeral
8718 + Fixed a bug in the anyLine parser. Previously it would parse an empty
8719 string "", but it should fail on an empty string, or we get an error
8720 when it is used inside "many" combinators.
8721 + Removed followedBy' parser, replacing it with the lookAhead parser from
8722 Parsec.
8723 + Added some needed 'try's before multicharacter parsers, especially in
8724 'option' contexts.
8725 + Removed the 'try' from the 'end' parser in 'enclosed', so that
8726 'enclosed' behaves like 'option', 'manyTill', etc.
8727 + Added lineClump parser, which parses a raw line block up to and
8728 including any following blank lines.
8729 + Renamed parseFromStr to parseFromString.
8730 + Added a 'try' to the 'end' parser in 'enclosed'. This makes errors in
8731 the use of 'enclosed' less likely. Removed some now-unnecessary 'try's
8732 in calling code.
8733 + Removed unneeded 'try' in blanklines.
8734 + Removed endsWith function and rewrote calling functions to use
8735 isSuffixOf instead.
8736 + Added >>~ combinator.
8737 + Fixed bug in normalizeSpaces: Space:Str "":Space should compress to
8738 Space.
8740 * Refactored runtests.pl; added separate tests for tables.
8742 * Shell scripts:
8744 + Added -asxhtml flag to tidy in html2markdown. This will
8745 perhaps help the parser, which expects closing tags.
8746 + Modified markdown2pdf to run pdflatex a second time if --toc or
8747 --table-of-contents was specified; otherwise the table of
8748 contents won't appear.
8749 + Modified markdown2pdf to print a helpful message if the 'ulem'
8750 LaTeX package is required and not found.
8752 * Changes to build process:
8754 + Dropped support for compilation with GHC 6.4. GHC 6.6 or higher
8755 is now required.
8756 + Removed cabalize and Pandoc.cabal.in. The repository now contains
8757 pandoc.cabal itself.
8758 + Pandoc.cabal has been changed to pandoc.cabal, because HackageDB
8759 likes the cabal file to have the same name as the tarball.
8760 + Expanded and revised the package description in pandoc.cabal.
8761 Revised the package synopsis.
8762 + The tarball built by 'make tarball' now contains files built from
8763 templates (including man pages and shell scripts), so pandoc can
8764 be built directly using Cabal tools, without preprocessing.
8765 + Executable binaries are now stripped before installing.
8766 + Man pages are now generated from markdown sources, using pandoc's
8767 man page writer.
8768 + Use HTML version of README (instead of RTF) in Mac OS X installer.
8769 + Instead of testing for the existence of a pandoc symlink in build-exec,
8770 use ln -f.
8772 * Documentation:
8774 + Updated README and man pages with information on new features.
8775 + Updated INSTALL instructions with some useful clarifications and
8776 links.
8777 + Updated web content.
8779 * Added FreeBSD port.
8781 [ Recai Oktaş ]
8783 * debian/control:
8785 + Changed pandoc's Build-Depends to include libghc6-mtl-dev and
8786 libghc6-xhtml-dev. Removed libghc6-html-dev.
8787 + Suggest texlive-latex-recommended | tetex-extra instead of
8788 tetex-bin. This brings in fancyvrb and unicode support.
8790 -- Recai Oktaş <roktas@debian.org> Tue, 16 Jan 2007 00:37:21 +0200
8792pandoc (0.3) unstable; urgency=low
8794 [ John MacFarlane ]
8796 * Changes in pandoc options:
8798 + Allow options to follow or precede arguments.
8799 + Changed '--smartypants' to '--smart' and adjusted symbols accordingly.
8800 + Added '--strict' option.
8801 + Added '-o/--output' option.
8802 + Added '--dump-args' and '--ignore-args' options (for use in wrappers).
8803 + Modified '-v' and '-h' output to go to STDERR, not STDOUT, and return
8804 error conditions. This is helpful for writing wrappers.
8805 + Added copyright message to '-v' output, modeled after FSF messages.
8806 + Reformatted usage message so that it doesn't wrap illegibly.
8807 + Removed extra blanks after '-h' and '-D' output.
8809 * Added docbook writer.
8811 * Added implicit setting of default input and output format based
8812 on input and output filename extensions. These defaults are
8813 overridden if explicit input and output formats are specified using
8814 '-t', '-f', '-r', or '-w' options. Documented in pandoc(1) man page
8815 and README.
8817 * Allow ordered list items to begin with (single) letters, as well
8818 as numbers. The list item marker may now be terminated either by
8819 '.' or by ')'. This extension to standard markdown is documented
8820 in README.
8822 * Revised footnote syntax. (See README for full details.) The
8823 '[^1]' format now standard in markdown extensions is supported,
8824 as are inline footnotes with this syntax: '^[My note.]'.
8825 The earlier footnote syntax '^(1)' is no longer supported.
8827 * Improved HTML representation of footnotes. All footnotes
8828 are now auto-numbered and appear in an ordered list at the
8829 end of the HTML document. Since the default appearance is now
8830 acceptable, the old footnote styles have been removed from the
8831 HTML header.
8833 * Bug fixes:
8835 + Fixed a serious bug in the markdown, LaTeX, and RST readers.
8836 These readers ran 'runParser' on processed chunks of text to handle
8837 embedded block lists in lists and quotation blocks. But then
8838 any changes made to the parser state in these chunks was lost,
8839 as the state is local to the parser. So, for example, footnotes
8840 didn't work in quotes or list items. The fix: instead of calling
8841 runParser on some raw text, use setInput to make it the input, then
8842 parse it, then use setInput to restore the input to what it was
8843 before. This is shorter and more elegant, and it fixes the problem.
8844 + Fixed bug in notFollowedBy' combinator (adding 'try' before
8845 'parser'). Adjusted code that uses this combinator accordingly.
8846 + Fixed bug in RTF writer that caused improper indentation on
8847 footnotes occurring in indented blocks like lists.
8848 + Fixed parsing of metadata in LaTeX reader. Now the title, author,
8849 and date are parsed correctly. Everything else in the preamble
8850 is skipped.
8851 + Modified escapedChar in LaTeX reader to allow a '\' at the end of a
8852 line to count as escaped whitespace.
8853 + Modified LaTeX reader to produce inline links rather than reference
8854 links. Otherwise, links in footnotes aren't handled properly.
8855 + Fixed handling of titles in links in Markdown reader, so that
8856 embedded quotation marks are now handled properly.
8857 + Fixed Markdown reader's handling of embedded brackets in links.
8858 + Fixed Markdown reader so that it only parses bracketed material
8859 as a reference link if there is actually a corresponding key.
8860 + Revised inline code parsing in Markdown reader to conform to
8861 markdown standard. Now any number of `s can begin inline code,
8862 which will end with the same number of `s. For example, to
8863 have two backticks as code, write ``` `` ```. Modified Markdown
8864 writer accordingly.
8865 + Fixed bug in text-wrapping routine in Markdown and RST writers.
8866 Now LineBreaks no longer cause wrapping problems.
8867 + Supported hexadecimal numerical entity references as well as
8868 decimal ones.
8869 + Fixed bug in Markdown reader's handling of underscores and other
8870 inline formatting markers inside reference labels: for example,
8871 in '[A_B]: /url/a_b', the material between underscores was being
8872 parsed as emphasized inlines.
8873 + Changed Markdown reader's handling of backslash escapes so that
8874 only non-alphanumeric characters can be escaped. Strict mode
8875 follows Markdown.pl in only allowing a select group of punctuation
8876 characters to be escaped.
8877 + Modified HTML reader to skip a newline following a `<br>` tag.
8878 Otherwise the newline will be treated as a space at the beginning
8879 of the next line.
8881 * Made handling of code blocks more consistent. Previously, some
8882 readers allowed trailing newlines, while others stripped them.
8883 Now, all readers strip trailing newlines in code blocks. Writers
8884 insert a newline at the end of code blocks as needed.
8886 * Modified readers to make spacing at the end of output more consistent.
8888 * Minor improvements to LaTeX reader:
8890 + '\thanks' now treated like a footnote.
8891 + Simplified parsing of LaTeX command arguments and options.
8892 commandArgs now returns a list of arguments OR options (in
8893 whatever order they appear). The brackets are included, and
8894 a new stripFirstAndLast function is provided to strip them off
8895 when needed. This fixes a problem in dealing with \newcommand
8896 and \newenvironment.
8898 * Revised RTF writer:
8900 + Default font is now Helvetica.
8901 + An '\f0' is added to each '\pard', so that font resizing works
8902 correctly.
8904 * Moved handling of "smart typography" from the writers to the Markdown
8905 and LaTeX readers. This allows great simplification of the writers
8906 and more accurate smart quotes, dashes, and ellipses. DocBook can
8907 now use `<quote>`. The '--smart' option now toggles an option in
8908 the parser state rather than a writer option. Several new kinds
8909 of inline elements have been added: Quoted, Ellipses, Apostrophe,
8910 EmDash, EnDash.
8912 * Changes in HTML writer:
8914 + Include title block in header even when title is null.
8915 + Made javascript obfuscation of emails even more obfuscatory,
8916 by combining it with entity obfuscation.
8918 * Changed default ASCIIMathML text color to black.
8920 * Test suite:
8922 + Added --strip-trailing-cr option to diff in runtests.pl, for
8923 compatibility with Windows.
8924 + Added regression tests with footnotes in quote blocks and lists.
8926 * Makefile changes:
8928 + osx-pkg target creates a Mac OS X package (directory). New osx
8929 directory contains files needed for construction of the package.
8930 + osx-dmg target creates a compressed disk image containing the package.
8931 + win-pkg target creates Windows binary package.
8932 + tarball target creates distribution source tarball.
8933 + website target generates pandoc's website automatically, including
8934 demos. New 'web' directory containts files needed for construction
8935 of the website (which will be created as the 'pandoc' subdirectory
8936 of 'web').
8937 + Makefile checks to see if we're running Windows/Cygwin; if so,
8938 a '.exe' extension is added to each executable in EXECS.
8940 * Removed all wrappers except markdown2pdf and html2markdown.
8942 * Added new wrapper hsmarkdown, to be used as a drop-in replacement
8943 for Markdown.pl. hsmarkdown calls pandoc with the '--strict'
8944 option and disables other options.
8946 * Added code to html2markdown that tries to determine the character
8947 encoding of an HTML file, by parsing the "Content-type" meta tag.
8949 + If the encoding can't be determined, then if the content is local,
8950 the local encoding is used; if it comes from a URL, UTF-8 is used
8951 by default.
8952 + If input is from STDIN, don't try to determine character encoding.
8953 + Encoding can be specified explicitly using '-e' option.
8955 * Improved warning messages in wrappers:
8957 + Print warning if iconv not available
8958 + More user-friendly error messages in markdown2pdf, when
8959 pdflatex fails.
8961 * Code cleanup:
8963 + Renamed 'Text/Pandoc/HtmlEntities' module to
8964 'Text/Pandoc/Entities'. Also changed function names so as
8965 not to be HTML-specific.
8966 + Refactored SGML string escaping functions from HTML and Docbook
8967 writers into Text/Pandoc/Shared. (escapeSGML, stringToSGML)
8968 + Removed 'BlockQuoteContext' from ParserContext, as it isn't
8969 used anywhere.
8970 + Removed splitBySpace and replaced it with a general, polymorphic
8971 splitBy function.
8972 + Refactored LaTeX reader for clarity (added isArg function).
8973 + Converted some CR's to LF's in src/ui/default/print.css.
8974 + Added license text to top of source files.
8975 + Added module data for haddock to source files.
8976 + Reformatted code for consistency.
8978 * Rewrote documentation and man pages. Split README into INSTALL
8979 and README.
8981 * Split LICENSE into COPYING and COPYRIGHT.
8983 * Removed TODO, since we now maintain ToDo on the wiki.
8985 * Made COPYRIGHT in top level a symlink to debian/copyright, to avoid
8986 duplication.
8988 [ Recai Oktaş ]
8990 * Revamped build process to conform to debian standards and created
8991 a proper debian package. Closes: #391666.
8993 * Modified build process to support GHC 6.6.
8995 + The package can still be compiled using GHC 6.4.2, though because
8996 of dependencies the "make deb" target works only with GHC 6.6+.
8997 + The script 'cabalize' is used to create an appropriate
8998 'Pandoc.cabal' from 'Pandoc.cabal.in', depending on the GHC and
8999 Cabal versions.
9001 * Refactored template processing (fillTemplates.pl).
9003 * Modified wrapper scripts to make them more robust and portable.
9004 To avoid code duplication and ensure consistency, wrappers are
9005 generated via a templating system from templates in src/wrappers.
9007 + Wrappers now accept multiple filenames, when appropriate.
9008 + Spaces and tabs allowed in filenames.
9009 + getopts shell builtin is used for portable option parsing.
9010 + Improved html2markdown's web grabber code, making it more robust,
9011 configurable and verbose. Added '-e', '-g' options.
9013 -- Recai Oktaş <roktas@debian.org> Fri, 05 Jan 2007 09:41:19 +0200
9015pandoc (0.2) unstable; urgency=low
9017 * Fixed unicode/utf-8 translation
9019 -- John MacFarlane <jgm@berkeley.edu> Mon, 14 Aug 2006 00:00:00 -0400
9021pandoc (0.1) unstable; urgency=low
9023 * Initial creation of debian package
9025 -- John MacFarlane <jgm@berkeley.edu> Mon, 14 Aug 2006 00:00:00 -0400